/*! For license information please see 2.e4c68507.chunk.js.LICENSE.txt */ (this.webpackJsonpportal_facturacion=this.webpackJsonpportal_facturacion||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(326)},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u}));var r=function(e,t){return(r=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])})(e,t)};function i(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}Object.create},function(e,t,n){"use strict";e.exports=n(419)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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 f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=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 g(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function _(e){return e&&e.__esModule?e:{default:e}}function D(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return f})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return m}));var r=n(4),i=function e(){var t=[],n=[],i=new Set,s=function(e){return t.forEach((function(t){e.add(t.middleware,Object(r.__assign)({},t))})),n.forEach((function(t){e.addRelativeTo(t.middleware,Object(r.__assign)({},t))})),e},u=function e(t){var n=[];return t.before.forEach((function(t){0===t.before.length&&0===t.after.length?n.push(t):n.push.apply(n,Object(r.__spread)(e(t)))})),n.push(t),t.after.reverse().forEach((function(t){0===t.before.length&&0===t.after.length?n.push(t):n.push.apply(n,Object(r.__spread)(e(t)))})),n},c=function(){var e,i=[],s=[],c={};return t.forEach((function(e){var t=Object(r.__assign)(Object(r.__assign)({},e),{before:[],after:[]});t.name&&(c[t.name]=t),i.push(t)})),n.forEach((function(e){var t=Object(r.__assign)(Object(r.__assign)({},e),{before:[],after:[]});t.name&&(c[t.name]=t),s.push(t)})),s.forEach((function(e){if(e.toMiddleware){var t=c[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)}})),(e=i,e.sort((function(e,t){return o[t.step]-o[e.step]||a[t.priority||"normal"]-a[e.priority||"normal"]}))).map(u).reduce((function(e,t){return e.push.apply(e,Object(r.__spread)(t)),e}),[]).map((function(e){return e.middleware}))},l={add:function(e,n){void 0===n&&(n={});var o=n.name,a=n.override,s=Object(r.__assign)({step:"initialize",priority:"normal",middleware:e},n);if(o){if(i.has(o)){if(!a)throw new Error("Duplicate middleware name '"+o+"'");var u=t.findIndex((function(e){return e.name===o})),c=t[u];if(c.step!==s.step||c.priority!==s.priority)throw new Error('"'+o+'" middleware with '+c.priority+" priority in "+c.step+" step cannot be overridden by same-name middleware with "+s.priority+" priority in "+s.step+" step.");t.splice(u,1)}i.add(o)}t.push(s)},addRelativeTo:function(e,t){var o=t.name,a=t.override,s=Object(r.__assign)({middleware:e},t);if(o){if(i.has(o)){if(!a)throw new Error("Duplicate middleware name '"+o+"'");var u=n.findIndex((function(e){return e.name===o})),c=n[u];if(c.toMiddleware!==s.toMiddleware||c.relation!==s.relation)throw new Error('"'+o+'" middleware '+c.relation+' "'+c.toMiddleware+'" middleware cannot be overridden by same-name middleware '+s.relation+' "'+s.toMiddleware+'" middleware.');n.splice(u,1)}i.add(o)}n.push(s)},clone:function(){return s(e())},use:function(e){e.applyToStack(l)},remove:function(e){return"string"===typeof e?function(e){var r=!1,o=function(t){return!t.name||t.name!==e||(r=!0,i.delete(e),!1)};return t=t.filter(o),n=n.filter(o),r}(e):function(e){var r=!1,o=function(t){return t.middleware!==e||(r=!0,t.name&&i.delete(t.name),!1)};return t=t.filter(o),n=n.filter(o),r}(e)},removeByTag:function(e){var r=!1,o=function(t){var n=t.tags,o=t.name;return!n||!n.includes(e)||(o&&i.delete(o),r=!0,!1)};return t=t.filter(o),n=n.filter(o),r},concat:function(t){var n=s(e());return n.use(t),n},applyToStack:s,resolve:function(e,t){var n,i;try{for(var o=Object(r.__values)(c().reverse()),a=o.next();!a.done;a=o.next()){e=(0,a.value)(e,t)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e}};return l},o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},a={high:3,normal:2,low:1},s=function(){function e(e){this.middlewareStack=i(),this.config=e}return e.prototype.send=function(e,t,n){var r="function"!==typeof t?t:void 0,i="function"===typeof t?t:n,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!i)return o(e).then((function(e){return e.output}));o(e).then((function(e){return i(null,e.output)}),(function(e){return i(e)})).catch((function(){}))},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),u=function(){this.middlewareStack=i()};function c(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}var l=function(e){return Array.isArray(e)?e:[e]},f=function e(t){for(var n in t)t.hasOwnProperty(n)&&void 0!==t[n]["#text"]?t[n]=t[n]["#text"]:"object"===typeof t[n]&&null!==t[n]&&(t[n]=e(t[n]));return t},d=function(){var e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,Object(r.__spread)([null],arguments)),n=new t;return Object.setPrototypeOf(n,e.prototype),n};d.prototype=Object.create(String.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(d,String);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(r.__extends)(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))}}(d);var h=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function g(e){var t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),o=e.getUTCHours(),a=e.getUTCMinutes(),s=e.getUTCSeconds();return h[r]+", "+(i<10?"0"+i:""+i)+" "+p[n]+" "+t+" "+(o<10?"0"+o:""+o)+":"+(a<10?"0"+a:""+a)+":"+(s<10?"0"+s:""+s)+" GMT"}var m="***SensitiveInformation***"},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(36);function i(e,t){if(null==e)return{};var n,i,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,s=t.withTheme,d=void 0!==s&&s,h=t.name,p=Object(i.a)(t,["defaultTheme","withTheme","name"]);var g=h,m=Object(c.a)(e,Object(r.a)({defaultTheme:o,Component:n,name:h||n.displayName,classNamePrefix:g},p)),v=a.a.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,c=Object(i.a)(e,["classes","innerRef"]),p=m(Object(r.a)({},n.defaultProps,e)),g=c;return("string"===typeof h||d)&&(s=Object(f.a)()||o,h&&(g=Object(l.a)({theme:s,name:h,props:c})),d&&!g.theme&&(g.theme=s)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:p},g))}));return u()(v,n),v}},h=n(64);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:h.a},t))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=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}(),i=n(4),o=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(Object(i.__assign)(Object(i.__assign)({},this),{headers:Object(i.__assign)({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce((function(e,n){var r,o=t[n];return Object(i.__assign)(Object(i.__assign)({},e),((r={})[n]=Array.isArray(o)?Object(i.__spread)(o):o,r))}),{}))),n},e}()},function(e,t,n){e.exports=n(363)()},function(e,t,n){"use strict";(function(e){var r=n(384),i=n(385),o=n(386);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0: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(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function g(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 T(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,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 c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function D(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function M(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||F(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(73))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(280);function i(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";var r=n(388),i=n(389);function o(){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}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(390);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?F+="x":F+=P[j];if(!F.match(h)){var R=T.slice(0,A),N=T.slice(A+1),L=P.match(p);L&&(R.push(L[1]),N.unshift(L[2])),N.length&&(b="/"+N.join(".")+b),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+U,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!g[C])for(A=0,I=l.length;A0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var D=E.slice(-1)[0],O=(n.host||e.host||E.length>1)&&("."===D||".."===D)||""===D,A=0,x=E.length;x>=0;x--)"."===(D=E[x])?E.splice(x,1):".."===D?(E.splice(x,1),A++):A&&(E.splice(x,1),A--);if(!S&&!C)for(;A--;A)E.unshift("..");!S||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var k,T=""===E[0]||E[0]&&"/"===E[0].charAt(0);_&&(n.hostname=n.host=T?"":E.length?E.shift():"",(k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift()));return(S=S||n.host&&E.length)&&!T&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.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},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(39);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(i.a)(e,n),Object(i.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"k",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"j",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return p})),n.d(t,"i",(function(){return g}));var r=n(280);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function a(e){if(0===e.indexOf("#"))return e;var t=u(e).values;return"#".concat(t.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))}function s(e){var t=(e=u(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),c({type:s,values:l})}function u(e){if(e.type)return e;if("#"===e.charAt(0))return u(o(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function c(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e,t){var n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function f(e){var t="hsl"===(e=u(e)).type?u(s(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?p(e,t):g(e,t)}function h(e,t){return e=u(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,c(e)}function p(e,t){if(e=u(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return c(e)}function g(e,t){if(e=u(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return c(e)}},function(e,t,n){e.exports=function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,c=e.min(4*u,i);if(u){for(var l=0;l1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:r,n=null,o=null;return function(){return i(t,n,arguments)||(o=e.apply(null,arguments)),n=arguments,o}}))},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(327)},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));for(var r={},i={},o=0;o<256;o++){var a=o.toString(16).toLowerCase();1===a.length&&(a="0"+a),r[o]=a,i[a]=o}function s(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");for(var t=new Uint8Array(e.length/2),n=0;n<+~=|^:(),"'`\s])/g,v="undefined"!==typeof CSS&&CSS.escape,y=function(e){return v?v(e):e.replace(m,"\\$1")},b=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var u=this.options.sheet;return u&&u.attached,this},e}(),w=function(e){function t(t,n,r){var i;(i=e.call(this,t,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var o=r.selector,a=r.scoped,u=r.sheet,c=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=c(Object(s.a)(Object(s.a)(i)),u),i.selectorText="."+y(i.id)),i}Object(a.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=h(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return g(this.selectorText,this.style,n)},Object(o.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(b),S={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new w(e,t,n)}},C={indent:1,children:!0},E=/@([\w-]+)/,_=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var i=e.match(E);for(var o in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new q(Object(r.a)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=C),null==e.indent&&(e.indent=C.indent),null==e.children&&(e.children=C.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),D=/@media|@supports\s+/,O={onCreateRule:function(e,t,n){return D.test(e)?new _(e,t,n):null}},A={indent:1,children:!0},x=/@keyframes\s+([\w-]+)/,k=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var i=e.match(x);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var u in this.id=!1===o?this.name:y(s(this,a)),this.rules=new q(Object(r.a)({},n,{parent:this})),t)this.rules.add(u,t[u],Object(r.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=A),null==e.indent&&(e.indent=A.indent),null==e.children&&(e.children=A.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),T=/@keyframes\s+/,I=/\$([\w-]+)/g,P=function(e,t){return"string"===typeof e?e.replace(I,(function(e,n){return n in t?t[n]:e})):e},F=function(e,t,n){var r=e[t],i=P(r,n);i!==r&&(e[t]=i)},j={onCreateRule:function(e,t,n){return"string"===typeof e&&T.test(e)?new k(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&F(e,"animation-name",n.keyframes),"animation"in e&&F(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return P(e,r.keyframes);default:return e}}},M=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(u.a)(t,["attached"]),i="",o=0;o0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=se(),n=0;nn?n:t},de=function(){function e(e){this.getPropertyValue=re,this.setProperty=ie,this.removeProperty=oe,this.setSelector=ae,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&X.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=ce();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ue(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else se().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,u=t.easing,c=void 0===u?i.easeInOut:u,l=t.delay,f=void 0===l?0:l;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(c," ").concat("string"===typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){!function(t,r){var i;e.exports=(i=n(19),function(){var e=i,t=e.lib.WordArray;function n(e,n,r){for(var i=[],o=0,a=0;a>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o>>7)^(p<<14|p>>>18)^p>>>3,m=c[h-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[h]=g+c[h-7]+v+c[h-16]}var y=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[h]+c[h];d=f,f=l,l=s,s=a+w|0,a=o,o=i,i=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),i.SHA256)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(99);function o(){return r.useContext(i.a)}},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return m}));var r=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],i=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},o=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort((function(e,n){var i=e[t],o=n[t];return"undefined"===typeof o?"undefined"===typeof i?0:1*r:"undefined"===typeof i||io?1*r:0})),!0},a=function(e,t){var n=Object.assign({},e);return t&&("string"===typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),i=r.filter((function(e){return n.endsWith("."+e.ext)}));return i.length>0?i[0].type:t},u=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},c=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},l=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},f=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},d=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof e&&null!=e.versions&&null!=e.versions.node}},h=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!g(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},p=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!g(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},g=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},m=function(){function e(){}return e.isEmpty=i,e.sortByField=o,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=u,e.generateRandomString=c,e.makeQuerablePromise=l,e.isWebWorker=f,e.browserOrNode=d,e.transferKeyToLowerCase=h,e.transferKeyToUpperCase=p,e.isStrictObject=g,e}()}).call(this,n(81))},function(e,t,n){e.exports=n(333)},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=r.useState(e),n=t[0],i=t[1],o=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(95),i=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=new r.a("Amplify"),a=new(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.Logger=r.a,this.ServiceWorker=null}return e.prototype.register=function(e){o.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):o.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),o.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=i(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}())},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r,i=n(158);!function(e){e.CONNECTION_CLOSED="Connection closed",e.CONNECTION_FAILED="Connection failed",e.REALTIME_SUBSCRIPTION_INIT_ERROR="AppSync Realtime subscription init error",e.SUBSCRIPTION_ACK="Subscription ack",e.TIMEOUT_DISCONNECT="Timeout disconnect"}(r||(r={})),t.b=i.a},function(e,t,n){"use strict";var r="Invariant failed";t.a=function(e,t){if(!e)throw new Error(r)}},function(e,t,n){"use strict";var r=n(3),i=n(440),o=n(64);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)(e,Object(r.a)({defaultTheme:o.a},t))}},,function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return m}));var r=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],i=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},o=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort((function(e,n){var i=e[t],o=n[t];return"undefined"===typeof o?"undefined"===typeof i?0:1*r:"undefined"===typeof i||io?1*r:0})),!0},a=function(e,t){var n=Object.assign({},e);return t&&("string"===typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),i=r.filter((function(e){return n.endsWith("."+e.ext)}));return i.length>0?i[0].type:t},u=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},c=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},l=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},f=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},d=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof e&&null!=e.versions&&null!=e.versions.node}},h=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!g(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},p=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!g(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},g=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},m=function(){function e(){}return e.isEmpty=i,e.sortByField=o,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=u,e.generateRandomString=c,e.makeQuerablePromise=l,e.isWebWorker=f,e.browserOrNode=d,e.transferKeyToLowerCase=h,e.transferKeyToUpperCase=p,e.isStrictObject=g,e}()}).call(this,n(81))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return m}));var r=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],i=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},o=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort((function(e,n){var i=e[t],o=n[t];return"undefined"===typeof o?"undefined"===typeof i?0:1*r:"undefined"===typeof i||io?1*r:0})),!0},a=function(e,t){var n=Object.assign({},e);return t&&("string"===typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),i=r.filter((function(e){return n.endsWith("."+e.ext)}));return i.length>0?i[0].type:t},u=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},c=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},l=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},f=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},d=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof e&&null!=e.versions&&null!=e.versions.node}},h=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!g(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},p=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!g(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},g=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},m=function(){function e(){}return e.isEmpty=i,e.sortByField=o,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=u,e.generateRandomString=c,e.makeQuerablePromise=l,e.isWebWorker=f,e.browserOrNode=d,e.transferKeyToLowerCase=h,e.transferKeyToUpperCase=p,e.isStrictObject=g,e}()}).call(this,n(81))},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(119);function i(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return"undefined"===typeof t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(r){}return e}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&this.changeListeners.splice(t,1)},e}();t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return k})),n.d(t,"d",(function(){return I})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return m})),n.d(t,"e",(function(){return p}));var r=n(3);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r=0;d--){var h=a[d];"."===h?o(a,d):".."===h?(o(a,d),f++):f&&(o(a,d),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(51);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,i):n.push(i),f({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=g(e,t,d(),w.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(w.entries[w.index]=i,f({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},i=function(e){return"function"===typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n1&&n<5&&(t="Ulduzlar"),"".concat(e," ").concat(t)},emptyLabelText:"Bo\u015f"},MuiAutocomplete:{clearText:"Silm\u0259k",closeText:"Ba\u011flamaq",loadingText:"Y\xfckl\u0259nir\u2026",noOptionsText:"Se\xe7iml\u0259r m\xf6vcud deyil",openText:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c"},MuiAlert:{closeText:"Ba\u011flamaq"},MuiPagination:{"aria-label":"S\u0259hif\u0259nin naviqasiyas\u0131",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t," ").concat(n?"s\u0259hif\u0259":"s\u0259hif\u0259y\u0259 ke\xe7"):"first"===e?"Birinci s\u0259hif\u0259y\u0259 ke\xe7":"last"===e?"Sonuncu s\u0259hif\u0259y\u0259 ke\xe7":"next"===e?"N\xf6vb\u0259ti s\u0259hif\u0259y\u0259 ke\xe7":"previous"===e?"\u018fvv\u0259lki s\u0259hif\u0259y\u0259 ke\xe7":void 0}}}};t.azAZ=r;var i={props:{MuiBreadcrumbs:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0432\u0430\u043d\u0435 \u043d\u0430 \u043f\u044a\u0442\u044f"},MuiTablePagination:{backIconButtonText:"\u041f\u0440\u0435\u0434\u0438\u0448\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",labelRowsPerPage:"\u0420\u0435\u0434\u043e\u0432\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u043e\u0442 ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u0421\u043b\u0435\u0434\u0432\u0430\u0449\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0417\u0432\u0435\u0437\u0434").concat(1!==e?"\u0438":"\u0430")},emptyLabelText:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438"},MuiAutocomplete:{clearText:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438",closeText:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438",loadingText:"\u0417\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435\u2026",noOptionsText:"\u041d\u044f\u043c\u0430 \u043d\u0430\u043b\u0438\u0447\u043d\u0438 \u043e\u043f\u0446\u0438\u0438",openText:"\u041e\u0442\u0432\u043e\u0440\u0438"},MuiAlert:{closeText:"\u0417\u0430\u0442\u0432\u043e\u0440\u0438"},MuiPagination:{"aria-label":"\u041f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044f",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u041a\u044a\u043c ","\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 ").concat(t):"first"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u044a\u0440\u0432\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"last"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"next"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":"previous"===e?"\u041e\u0442\u0438\u0434\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u0438\u0448\u043d\u0430\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430":void 0}}}};t.bgBG=i;t.caES={props:{MuiTablePagination:{backIconButtonText:"P\xe0gina anterior",labelRowsPerPage:"Files per p\xe0gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Seg\xfcent p\xe0gina"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"Estrelles":"Estrella")},emptyLabelText:"Buit"},MuiAutocomplete:{clearText:"Netejar",closeText:"Tancar",loadingText:"Carregant\u2026",noOptionsText:"Sense opcions",openText:"Obert"},MuiAlert:{closeText:"Tancat"}}};var o={props:{MuiBreadcrumbs:{expandText:"Uk\xe1zat cestu"},MuiTablePagination:{backIconButtonText:"P\u0159edchoz\xed str\xe1nka",labelRowsPerPage:"\u0158\xe1dk\u016f na str\xe1nce:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," z ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Dal\u0161\xed str\xe1nka"},MuiRating:{getLabelText:function(e){return"".concat(e,1===e?" hv\u011bzdi\u010dka":e>=2&&e<=4?" hv\u011bzdi\u010dky":" hv\u011bzdi\u010dek")},emptyLabelText:"Pr\xe1zdn\xe9"},MuiAutocomplete:{clearText:"Vymazat",closeText:"Zav\u0159\xedt",loadingText:"Na\u010d\xedt\xe1n\xed\u2026",noOptionsText:"\u017d\xe1dn\xe9 mo\u017enosti",openText:"Otev\u0159\xedt"},MuiAlert:{closeText:"Zav\u0159\xedt"},MuiPagination:{"aria-label":"Navigace str\xe1nkov\xe1n\xedm",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"J\xedt na ").concat(t," str\xe1nku"):"first"===e?"J\xedt na prvn\xed str\xe1nku":"last"===e?"J\xedt na posledn\xed str\xe1nku":"next"===e?"J\xedt na dal\u0161\xed str\xe1nku":"previous"===e?"J\xedt na p\u0159edchoz\xed str\xe1nku":void 0}}}};t.csCZ=o;var a={props:{MuiBreadcrumbs:{expandText:"Pfad anzeigen"},MuiTablePagination:{backIconButtonText:"N\xe4chste Seite",labelRowsPerPage:"Zeilen pro Seite:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," von ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xe4chste Seite"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"Sterne":"Stern")},emptyLabelText:"Keine Wertung"},MuiAutocomplete:{clearText:"Leeren",closeText:"Schlie\xdfen",loadingText:"Wird geladen\u2026",noOptionsText:"Keine Optionen",openText:"\xd6ffnen"},MuiAlert:{closeText:"Schlie\xdfen"},MuiPagination:{"aria-label":"Navigation via Seitennummerierung",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Gehe zu ","Seite ").concat(t):"first"===e?"Zur ersten Seite":"last"===e?"Zur letzten Seite":"next"===e?"Zur n\xe4chsten Seite":"previous"===e?"Zur vorherigen Seite":void 0}}}};t.deDE=a;t.enUS={};var s={props:{MuiBreadcrumbs:{expandText:"Mostrar ruta"},MuiTablePagination:{backIconButtonText:"P\xe1gina anterior",labelRowsPerPage:"Filas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Siguiente p\xe1gina"},MuiRating:{getLabelText:function(e){return"".concat(e," Estrella").concat(1!==e?"s":"")},emptyLabelText:"Vac\xedo"},MuiAutocomplete:{clearText:"Limpiar",closeText:"Cerrar",loadingText:"Cargando\u2026",noOptionsText:"Sin opciones",openText:"Abierto"},MuiAlert:{closeText:"Cerrar"},MuiPagination:{"aria-label":"Paginador",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir a la ","p\xe1gina ").concat(t):"first"===e?"Ir a la primera p\xe1gina":"last"===e?"Ir a la \xfaltima p\xe1gina":"next"===e?"Ir a la p\xe1gina siguiente":"previous"===e?"Ir a la p\xe1gina anterior":void 0}}}};t.esES=s;var u={props:{MuiBreadcrumbs:{expandText:"N\xe4ita teed"},MuiTablePagination:{backIconButtonText:"Eelmine lehek\xfclg",labelRowsPerPage:"Ridu lehek\xfcljel:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"J\xe4rgmine lehek\xfclg"},MuiRating:{getLabelText:function(e){return"".concat(e," T\xe4rn").concat(1!==e?"i":"")},emptyLabelText:"T\xfchi"},MuiAutocomplete:{clearText:"T\xfchjenda",closeText:"Sulge",loadingText:"Laen\u2026",noOptionsText:"Valikuid ei ole",openText:"Ava"},MuiAlert:{closeText:"Sulge"},MuiPagination:{"aria-label":"Lehek\xfclgede valik",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Vali ","lehek\xfclg ").concat(t):"first"===e?"Vali esimene lehek\xfclg":"last"===e?"Vali viimane lehek\xfclg":"next"===e?"Vali j\xe4rgmine lehek\xfclg":"previous"===e?"Vali eelmine lehek\xfclg":void 0}}}};t.etEE=u;var c={props:{MuiBreadcrumbs:{expandText:"\u0646\u0645\u0627\u06cc\u0634 \u0645\u0633\u06cc\u0631"},MuiTablePagination:{backIconButtonText:"\u0635\u0641\u062d\u0647\u0654 \u0642\u0628\u0644",labelRowsPerPage:"\u062a\u0639\u062f\u0627\u062f \u0633\u0637\u0631\u0647\u0627\u06cc \u0647\u0631 \u0635\u0641\u062d\u0647:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u0627\u0632 ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u0635\u0641\u062d\u0647\u0654 \u0628\u0639\u062f"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0633\u062a\u0627\u0631\u0647")},emptyLabelText:"\u062e\u0627\u0644\u06cc"},MuiAutocomplete:{clearText:"\u067e\u0627\u06a9\u200c\u06a9\u0631\u062f\u0646",closeText:"\u0628\u0633\u062a\u0646",loadingText:"\u062f\u0631 \u062d\u0627\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc\u2026",noOptionsText:"\u0628\u06cc\u200c\u0646\u062a\u06cc\u062c\u0647",openText:"\u0628\u0627\u0632\u06a9\u0631\u062f\u0646"},MuiAlert:{closeText:"\u0628\u0633\u062a\u0646"},MuiPagination:{"aria-label":"\u0646\u0627\u0648\u0628\u0631\u06cc \u0635\u0641\u062d\u0647",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u0631\u0641\u062a\u0646 \u0628\u0647 ","\u0635\u0641\u062d\u0647\u0654 ").concat(t):"first"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0627\u0648\u0644\u06cc\u0646 \u0635\u0641\u062d\u0647":"last"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0622\u062e\u0631\u06cc\u0646 \u0635\u0641\u062d\u0647":"next"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0628\u0639\u062f\u06cc":"previous"===e?"\u0631\u0641\u062a\u0646 \u0628\u0647 \u0635\u0641\u062d\u0647\u200c\u06cc \u0642\u0628\u0644\u06cc":void 0}}}};t.faIR=c;var l={props:{MuiBreadcrumbs:{expandText:"N\xe4yt\xe4 reitti"},MuiTablePagination:{backIconButtonText:"Edellinen sivu",labelRowsPerPage:"Rivej\xe4 per sivu:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Seuraava sivu"},MuiRating:{getLabelText:function(e){return"".concat(e," T\xe4ht").concat(1!==e?"e\xe4":"i")},emptyLabelText:"Tyhj\xe4"},MuiAutocomplete:{clearText:"Tyhjenn\xe4",closeText:"Sulje",loadingText:"Ladataan\u2026",noOptionsText:"Ei valintoja",openText:"Avaa"},MuiAlert:{closeText:"Sulje"},MuiPagination:{"aria-label":"Sivutus navigaatio",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"sivu":"Mene sivulle"," ").concat(t):"first"===e?"Mene ensimm\xe4iselle sivulle":"last"===e?"Mene viimeiselle sivulle":"next"===e?"Mene seuraavalle sivulle":"previous"===e?"Mene edelliselle sivulle":void 0}}}};t.fiFI=l;var f={props:{MuiBreadcrumbs:{expandText:"Montrer le chemin"},MuiTablePagination:{backIconButtonText:"Page pr\xe9c\xe9dente",labelRowsPerPage:"Lignes par page :",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," sur ").concat(-1!==r?r:"plus que ".concat(n))},nextIconButtonText:"Page suivante"},MuiRating:{getLabelText:function(e){return"".concat(e," Etoile").concat(1!==e?"s":"")},emptyLabelText:"Vide"},MuiAutocomplete:{clearText:"Vider",closeText:"Fermer",loadingText:"Chargement\u2026",noOptionsText:"Pas de r\xe9sultats",openText:"Ouvrir"},MuiAlert:{closeText:"Fermer"},MuiPagination:{"aria-label":"navigation de pagination",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Aller \xe0 la ","page ").concat(t):"first"===e?"Aller \xe0 la premi\xe8re page":"last"===e?"Aller \xe0 la derni\xe8re page":"next"===e?"Aller \xe0 la page suivante":"previous"===e?"Aller \xe0 la page pr\xe9c\xe9dente":void 0}}}};t.frFR=f;t.heIL={props:{MuiTablePagination:{backIconButtonText:"\u05d4\u05e2\u05de\u05d5\u05d3 \u05d4\u05e7\u05d5\u05d3\u05dd",labelRowsPerPage:"\u05e9\u05d5\u05e8\u05d5\u05ea \u05d1\u05e2\u05de\u05d5\u05d3:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u05de\u05ea\u05d5\u05da ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u05d4\u05e2\u05de\u05d5\u05d3 \u05d4\u05d1\u05d0"},MuiRating:{getLabelText:function(e){return"".concat(e," \u05db\u05d5\u05db\u05d1").concat(1!==e?"\u05d9\u05dd":"")},emptyLabelText:"\u05e8\u05d9\u05e7"},MuiAutocomplete:{clearText:"\u05e0\u05e7\u05d4",closeText:"\u05e1\u05d2\u05d5\u05e8",loadingText:"\u05d8\u05d5\u05e2\u05df\u2026",noOptionsText:"\u05d0\u05d9\u05df \u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05ea",openText:"\u05e4\u05ea\u05d7"},MuiAlert:{closeText:"\u05e1\u05d2\u05d5\u05e8"}}};var d={props:{MuiBreadcrumbs:{expandText:"\u0930\u093e\u0938\u094d\u0924\u093e \u0926\u093f\u0916\u093e\u092f\u0947\u0902"},MuiTablePagination:{backIconButtonText:"\u092a\u093f\u091b\u0932\u093e \u092a\u0943\u0937\u094d\u0920",labelRowsPerPage:"\u092a\u0902\u0915\u094d\u0924\u093f\u092f\u093e\u0901 \u092a\u094d\u0930\u0924\u093f \u092a\u0943\u0937\u094d\u0920:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(-1===n?r:n," \u0915\u0941\u0932 ").concat(r," \u092e\u0947\u0902")},nextIconButtonText:"\u0905\u0917\u0932\u093e \u092a\u0943\u0937\u094d\u0920"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0924\u093e\u0930").concat(1!==e?"\u0947":"\u093e")},emptyLabelText:"\u0930\u093f\u0915\u094d\u0924"},MuiAutocomplete:{clearText:"\u0939\u091f\u093e\u092f\u0947\u0902",closeText:"\u092c\u0902\u0926 \u0915\u0930\u0947\u0902",loadingText:"\u0932\u094b\u0921 \u0939\u094b \u0930\u0939\u093e \u0939\u0948\u2026",noOptionsText:"\u0915\u094b\u0908 \u0935\u093f\u0915\u0932\u094d\u092a \u0928\u0939\u0940\u0902",openText:"\u0916\u094b\u0932\u0947\u0902"},MuiAlert:{closeText:"\u092c\u0902\u0926 \u0915\u0930\u0947\u0902"},MuiPagination:{"aria-label":"\u092a\u0943\u0938\u094d\u0920\u093e\u0928\u0941\u0938\u093e\u0930 \u0938\u0902\u091a\u093e\u0932\u0928",getItemAriaLabel:function(e,t,n){return"page"===e?"\u092a\u0943\u0937\u094d\u0920 ".concat(t," ").concat(n?"":" \u092a\u0930 \u091c\u093e\u090f\u0901"):"first"===e?"\u092a\u0939\u0932\u0947 \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":"last"===e?"\u0905\u0902\u0924\u093f\u092e \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":"next"===e?"\u0905\u0917\u0932\u0947 \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":"previous"===e?"\u092a\u093f\u091b\u0932\u0947 \u092a\u0943\u0937\u094d\u0920 \u092a\u0930 \u091c\u093e\u090f\u0901":void 0}}}};t.hiIN=d;var h={props:{MuiBreadcrumbs:{expandText:"\xdatvonal"},MuiTablePagination:{backIconButtonText:"El\u0151z\u0151 oldal",labelRowsPerPage:"Sorok sz\xe1ma:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"K\xf6vetkez\u0151 oldal"},MuiRating:{getLabelText:function(e){return"".concat(e," Csillag")},emptyLabelText:"\xdcres"},MuiAutocomplete:{clearText:"T\xf6rl\xe9s",closeText:"Bez\xe1r\xe1s",loadingText:"T\xf6lt\xe9s\u2026",noOptionsText:"Nincs tal\xe1lat",openText:"Megnyit\xe1s"},MuiAlert:{closeText:"Bez\xe1r\xe1s"},MuiPagination:{"aria-label":"Lapoz\xe1s",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t,". oldal").concat(n?"":"ra"):"first"===e?"Els\u0151 oldalra":"last"===e?"Utols\xf3 oldalra":"next"===e?"K\xf6vetkez\u0151 oldalra":"previous"===e?"El\u0151z\u0151 oldalra":void 0}}}};t.huHU=h;t.hyAM={props:{MuiTablePagination:{backIconButtonText:"\u0546\u0561\u056d\u0578\u0580\u0564\u0568",labelRowsPerPage:"\u054f\u0578\u0572\u0565\u0580 \u0574\u0565\u056f \u0567\u057b\u0578\u0582\u0574`",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u0540\u0561\u057b\u0578\u0580\u0564\u0568"},MuiRating:{getLabelText:function(e){return"".concat(e," \u0531\u057d\u057f\u0572")},emptyLabelText:"\u0534\u0561\u057f\u0561\u0580\u056f"},MuiAutocomplete:{clearText:"\u0544\u0561\u0584\u0580\u0565\u056c",closeText:"\u0553\u0561\u056f\u0565\u056c",loadingText:"\u0532\u0565\u057c\u0576\u0578\u0582\u0574\u2026",noOptionsText:"\u054f\u0561\u0580\u0562\u0565\u0580\u0561\u056f\u0576\u0565\u0580 \u0579\u056f\u0561\u0576",openText:"\u0532\u0561\u0581\u0565\u056c"},MuiAlert:{closeText:"\u0553\u0561\u056f\u0565\u056c"}}};t.idID={props:{MuiTablePagination:{backIconButtonText:"Halaman sebelumnya",labelRowsPerPage:"Baris per halaman:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," dari ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Halaman selanjutnya"},MuiRating:{getLabelText:function(e){return"".concat(e," Bintang")}},MuiAutocomplete:{clearText:"Hapus",closeText:"Tutup",loadingText:"Memuat\u2026",noOptionsText:"Tidak ada opsi",openText:"Buka"},MuiAlert:{closeText:"Tutup"}}};t.isIS={props:{MuiTablePagination:{backIconButtonText:"Fyrri s\xed\xf0a",labelRowsPerPage:"Ra\xf0ir \xe1 s\xed\xf0u:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," af ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xe6sta s\xed\xf0a"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1===e?"Stjarna":"Stj\xf6rnur")},emptyLabelText:"T\xf3mt"},MuiAutocomplete:{clearText:"Hreinsa",closeText:"Loka",loadingText:"Hla\xf0a\u2026",noOptionsText:"Engar ni\xf0urst\xf6\xf0ur",openText:"Opna"},MuiAlert:{closeText:"Loka"}}};var p={props:{MuiBreadcrumbs:{expandText:"Visualizza percorso"},MuiTablePagination:{backIconButtonText:"Pagina precedente",labelRowsPerPage:"Righe per pagina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," di ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pagina successiva"},MuiRating:{getLabelText:function(e){return"".concat(e," Stell").concat(1!==e?"e":"a")},emptyLabelText:"Vuoto"},MuiAutocomplete:{clearText:"Svuota",closeText:"Chiudi",loadingText:"Caricamento in corso\u2026",noOptionsText:"Nessuna opzione",openText:"Apri"},MuiAlert:{closeText:"Chiudi"},MuiPagination:{"aria-label":"Navigazione impaginata",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Vai alla ","pagina ").concat(t):"first"===e?"Vai alla prima pagina":"last"===e?"Vai all'ultima pagina":"next"===e?"Vai alla pagina successiva":"previous"===e?"Vai alla pagina precedente":void 0}}}};t.itIT=p;t.jaJP={props:{MuiTablePagination:{backIconButtonText:"\u524d\u306e\u30da\u30fc\u30b8",labelRowsPerPage:"\u30da\u30fc\u30b8\u3054\u3068\u306e\u884c:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u6b21\u306e\u30da\u30fc\u30b8"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"\u51fa\u6f14\u8005":"\u661f")}},MuiAutocomplete:{clearText:"\u30af\u30ea\u30a2",closeText:"\u9589\u3058\u308b",loadingText:"\u7a4d\u307f\u8fbc\u307f\u2026",noOptionsText:"\u7d50\u679c\u304c\u3042\u308a\u307e\u305b\u3093",openText:"\u958b\u3044\u305f"},MuiAlert:{closeText:"\u9589\u3058\u308b"}}};t.koKR={props:{MuiTablePagination:{backIconButtonText:"\uc774\uc804 \ud398\uc774\uc9c0",labelRowsPerPage:"\ud398\uc774\uc9c0 \ub2f9 \ud589:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," / ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\ub2e4\uc74c \ud398\uc774\uc9c0"},MuiRating:{getLabelText:function(e){return"".concat(e," \uc810")}},MuiAutocomplete:{clearText:"\uc9c0\uc6b0\uae30",closeText:"\ub2eb\uae30",loadingText:"\ubd88\ub7ec\uc624\ub294 \uc911\u2026",noOptionsText:"\uc635\uc158 \uc5c6\uc74c",openText:"\uc5f4\uae30"}}};t.nlNL={props:{MuiTablePagination:{backIconButtonText:"Vorige pagina",labelRowsPerPage:"Regels per pagina :",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," van ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Volgende pagina"},MuiRating:{getLabelText:function(e){return"".concat(e," Ster").concat(1!==e?"ren":"")}},MuiAutocomplete:{clearText:"Wissen",closeText:"Sluiten",loadingText:"Laden\u2026",noOptionsText:"Geen opties",openText:"Openen"},MuiAlert:{closeText:"Sluiten"}}};var g={props:{MuiBreadcrumbs:{expandText:"Poka\u017c \u015bcie\u017ck\u0119"},MuiTablePagination:{backIconButtonText:"Poprzednia strona",labelRowsPerPage:"Wierszy na stron\u0119:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," z ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Nast\u0119pna strona"},MuiRating:{getLabelText:function(e){var t="gwiazdek",n=e%10;return(e<10||e>20)&&n>1&&n<5?t="gwiazdki":1===e&&(t="gwiazdka"),"".concat(e," ").concat(t)},emptyLabelText:"Brak gwiazdek"},MuiAutocomplete:{clearText:"Wyczy\u015b\u0107",closeText:"Zamknij",loadingText:"\u0141adowanie\u2026",noOptionsText:"Brak opcji",openText:"Otw\xf3rz"},MuiAlert:{closeText:"Zamknij"},MuiPagination:{"aria-label":"Nawigacja podzia\u0142u na strony",getItemAriaLabel:function(e,t,n){return"page"===e?n?"".concat(t,". strona"):"Przejd\u017a do ".concat(t,". strony"):"first"===e?"Przejd\u017a do pierwszej strony":"last"===e?"Przejd\u017a do ostatniej strony":"next"===e?"Przejd\u017a do nast\u0119pnej strony":"previous"===e?"Przejd\u017a do poprzedniej strony":void 0}}}};t.plPL=g;var m={props:{MuiBreadcrumbs:{expandText:"Mostrar caminho"},MuiTablePagination:{backIconButtonText:"P\xe1gina anterior",labelRowsPerPage:"Linhas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pr\xf3xima p\xe1gina"},MuiRating:{getLabelText:function(e){return"".concat(e," Estrela").concat(1!==e?"s":"")},emptyLabelText:"Vazio"},MuiAutocomplete:{clearText:"Limpar",closeText:"Fechar",loadingText:"Carregando\u2026",noOptionsText:"Sem op\xe7\xf5es",openText:"Abrir"},MuiAlert:{closeText:"Fechar"},MuiPagination:{"aria-label":"Navegar pela pagina\xe7\xe3o",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir para a ","p\xe1gina ").concat(t):"first"===e?"Ir para a primeira p\xe1gina":"last"===e?"Ir para a \xfaltima p\xe1gina":"next"===e?"Ir para a pr\xf3xima p\xe1gina":"previous"===e?"Ir para a p\xe1gina anterior":void 0}}}};t.ptBR=m;var v={props:{MuiBreadcrumbs:{expandText:"Mostrar caminho"},MuiTablePagination:{backIconButtonText:"P\xe1gina anterior",labelRowsPerPage:"Linhas por p\xe1gina:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," de ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pr\xf3xima p\xe1gina"},MuiRating:{getLabelText:function(e){return"".concat(e," Estrela").concat(1!==e?"s":"")},emptyLabelText:"Vazio"},MuiAutocomplete:{clearText:"Limpar",closeText:"Fechar",loadingText:"A carregar\u2026",noOptionsText:"Sem op\xe7\xf5es",openText:"Abrir"},MuiAlert:{closeText:"Fechar"},MuiPagination:{"aria-label":"Navegar por p\xe1ginas",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Ir para a ","p\xe1gina ").concat(t):"first"===e?"Primeira p\xe1gina":"last"===e?"\xdaltima p\xe1gina":"next"===e?"Pr\xf3xima p\xe1gina":"previous"===e?"P\xe1gina anterior":void 0}}}};t.ptPT=v;var y={props:{MuiBreadcrumbs:{expandText:"Arat\u0103 calea"},MuiTablePagination:{backIconButtonText:"Pagina precedent\u0103",labelRowsPerPage:"R\xe2nduri pe pagin\u0103:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," din ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Pagina urm\u0103toare"},MuiRating:{getLabelText:function(e){return"".concat(e," St").concat(1!==e?"ele":"ea")},emptyLabelText:"Gol"},MuiAutocomplete:{clearText:"\u0218terge",closeText:"\xcenchide",loadingText:"Se \xeencarc\u0103\u2026",noOptionsText:"Nicio op\u021biune",openText:"Deschide"},MuiAlert:{closeText:"\xcenchide"},MuiPagination:{"aria-label":"Navigare prin paginare",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"Mergi la ","pagina ").concat(t):"first"===e?"Mergi la prima pagin\u0103":"last"===e?"Mergi la ultima pagin\u0103":"next"===e?"Mergi la pagina urm\u0103toare":"previous"===e?"Mergi la pagina precedent\u0103":void 0}}}};t.roRO=y;t.ruRU={props:{MuiTablePagination:{backIconButtonText:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430",labelRowsPerPage:"\u0421\u0442\u0440\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u0438\u0437 ").concat(-1!==r?r:"\u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c ".concat(n))},nextIconButtonText:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430"},MuiRating:{getLabelText:function(e){var t="\u0417\u0432\u0451\u0437\u0434",n=e%10;return n>1&&n<5?t="\u0417\u0432\u0435\u0437\u0434\u044b":1===n&&(t="\u0417\u0432\u0435\u0437\u0434\u0430"),"".concat(e," ").concat(t)}},MuiAutocomplete:{clearText:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",closeText:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",loadingText:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u2026",noOptionsText:"\u041d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432",openText:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c"},MuiAlert:{closeText:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}}};t.skSK={props:{MuiTablePagination:{backIconButtonText:"Predch\xe1dzaj\xfaca str\xe1nka",labelRowsPerPage:"Riadkov na str\xe1nke:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," z ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"\u010eal\u0161ia str\xe1nka"},MuiRating:{getLabelText:function(e){return"".concat(e,1===e?" hviezdi\u010dka":e>=2&&e<=4?" hviezdi\u010dky":" hviezdi\u010diek")}},MuiAutocomplete:{clearText:"Vymaza\u0165",closeText:"Zavrie\u0165",loadingText:"Na\u010d\xedtanie\u2026",noOptionsText:"\u017diadne mo\u017enosti",openText:"Otvori\u0165"},MuiAlert:{closeText:"Zavrie\u0165"}}};t.svSE={props:{MuiTablePagination:{backIconButtonText:"F\xf6reg\xe5ende sida",labelRowsPerPage:"Rader per sida:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," av ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"N\xe4sta sida"},MuiRating:{getLabelText:function(e){return"".concat(e," ").concat(1!==e?"Stj\xe4rnor":"Stj\xe4rna")}},MuiAutocomplete:{clearText:"Rensa",closeText:"St\xe4ng",loadingText:"Laddar\u2026",noOptionsText:"Inga alternativ",openText:"\xd6ppen"},MuiAlert:{closeText:"St\xe4ng"}}};var b={props:{MuiBreadcrumbs:{expandText:"Yolu g\xf6ster"},MuiTablePagination:{backIconButtonText:"\xd6nceki sayfa",labelRowsPerPage:"Sayfa ba\u015f\u0131na sat\u0131r:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," tanesinden ").concat(-1!==r?r:"more than ".concat(n))},nextIconButtonText:"Sonraki sayfa"},MuiRating:{getLabelText:function(e){return"".concat(e," Y\u0131ld\u0131z")},emptyLabelText:"Bo\u015f"},MuiAutocomplete:{clearText:"Temizle",closeText:"Kapat",loadingText:"Y\xfckleniyor\u2026",noOptionsText:"Se\xe7enek yok",openText:"A\xe7"},MuiAlert:{closeText:"Kapat"},MuiPagination:{"aria-label":"Sayfa navigasyonu",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(t,". ").concat(n?"sayfa":"sayfaya git"):"first"===e?"\u0130lk sayfaya git":"last"===e?"Son sayfaya git":"next"===e?"Sonraki sayfaya git":"previous"===e?"\xd6nceki sayfaya git":void 0}}}};t.trTR=b;var w={props:{MuiBreadcrumbs:{expandText:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0448\u043b\u044f\u0445 \u0441\u0442\u043e\u0440\u0456\u043d\u043e\u043a"},MuiTablePagination:{backIconButtonText:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044f \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430",labelRowsPerPage:"\u0420\u044f\u0434\u043a\u0456\u0432 \u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u0437 ").concat(-1!==r?r:"\u043f\u043e\u043d\u0430\u0434 ".concat(n))},nextIconButtonText:"\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430"},MuiRating:{getLabelText:function(e){var t="\u0417\u0456\u0440\u043e\u043a",n=e%10;return n>1&&n<5?t="\u0417\u0456\u0440\u043a\u0438":1===n&&(t="\u0417\u0456\u0440\u043a\u0430"),"".concat(e," ").concat(t)},emptyLabelText:"\u0420\u0435\u0439\u0442\u0438\u043d\u0433 \u0432\u0456\u0434\u0441\u0443\u0442\u043d\u0456\u0439"},MuiAutocomplete:{clearText:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438",closeText:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438",loadingText:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f\u2026",noOptionsText:"\u041d\u0435\u043c\u0430\u0454 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456\u0432",openText:"\u0420\u043e\u0437\u0433\u043e\u0440\u043d\u0443\u0442\u0438"},MuiAlert:{closeText:"\u0417\u0433\u043e\u0440\u043d\u0443\u0442\u0438"},MuiPagination:{"aria-label":"\u041d\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u044f \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430\u043c\u0438",getItemAriaLabel:function(e,t,n){return"page"===e?"".concat(n?"":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 ","\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 ").concat(t):"first"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u0435\u0440\u0448\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"last"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"next"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":"previous"===e?"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044e \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443":void 0}}}};t.ukUA=w;t.viVN={props:{MuiTablePagination:{backIconButtonText:"Trang tr\u01b0\u1edbc",labelRowsPerPage:"S\u1ed1 h\xe0ng m\u1ed7i trang:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," trong ").concat(-1!==r?r:"nhi\u1ec1u h\u01a1n ".concat(n))},nextIconButtonText:"Trang sau"},MuiRating:{getLabelText:function(e){return"".concat(e," sao")},emptyLabelText:"Tr\u1ed1ng"},MuiAutocomplete:{clearText:"X\xf3a",closeText:"\u0110\xf3ng",loadingText:"\u0110ang t\u1ea3i\u2026",noOptionsText:"Kh\xf4ng c\xf3 l\u1ef1a ch\u1ecdn",openText:"M\u1edf"},MuiAlert:{closeText:"\u0110\xf3ng"}}};t.zhCN={props:{MuiTablePagination:{backIconButtonText:"\u4e0a\u4e00\u9875",labelRowsPerPage:"\u6bcf\u9875\u884c\u6570:",labelDisplayedRows:function(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"-").concat(n," \u7684 ").concat(-1!==r?r:"\u8d85\u8fc7 ".concat(n))},nextIconButtonText:"\u4e0b\u4e00\u9875"},MuiRating:{getLabelText:function(e){return"".concat(e," \u661f").concat(1!==e?"\u661f":"")}},MuiAutocomplete:{clearText:"\u660e\u786e",closeText:"\u5173",loadingText:"\u8f7d\u5165\u4e2d\u2026",noOptionsText:"\u6ca1\u6709\u9009\u62e9",openText:"\u6253\u5f00"},MuiAlert:{closeText:"\u5173"}}}},function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.d(t,"a",(function(){return r}))},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+r+"][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+i+"$");t.isExist=function(e){return"undefined"!==typeof e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t)for(var r=Object.keys(t),i=r.length,o=0;o1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.breakpoints,r=void 0===n?["sm","md","lg"]:n,i=t.disableAlign,o=void 0!==i&&i,a=t.factor,s=void 0===a?2:a,u=t.variants,f=void 0===u?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:u,h=Object(c.a)({},e);h.typography=Object(c.a)({},h.typography);var y=h.typography,b=p(y.htmlFontSize),w=r.map((function(e){return h.breakpoints.values[e]}));return f.forEach((function(e){var t=y[e],n=parseFloat(b(t.fontSize,"rem"));if(!(n<=1)){var r=n,i=1+(r-1)/s,a=t.lineHeight;if(!d(a)&&!o)throw new Error(Object(l.a)(6));d(a)||(a=parseFloat(b(a,"rem"))/parseFloat(n));var u=null;o||(u=function(e){return g({size:e,grid:m({pixels:4,lineHeight:a,htmlFontSize:y.htmlFontSize})})}),y[e]=Object(c.a)({},t,v({cssProperty:"fontSize",min:i,max:r,unit:"rem",breakpoints:w,transform:u}))}})),h}var b=n(159),w=n(35),S=n(27),C=n(9),E=n(6),_=n(0),D=n.n(_),O=(n(11),n(63)),A=n.n(O),x=n(279);function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=D.a.forwardRef((function(n,r){var i=n.innerRef,o=Object(E.a)(n,["innerRef"]),a=Object(x.a)()||t;return D.a.createElement(e,Object(c.a)({theme:a,ref:i||r},o))}));return A()(n,e),n};return n}k();var T=k({defaultTheme:n(64).a}),I=n(424),P=n(286),F=n(167),j=n(88),M=n(31),R=n(507),N=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(F.a)(this,e),this.options=t}return Object(j.a)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new M.b;var n=Object(I.a)();return D.a.createElement(R.b,Object(c.a)({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return D.a.createElement("style",Object(c.a)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}(),L=n(162),U=n(166);var B=function(e){var t=e.children,n=e.theme,r=Object(x.a)(),i=D.a.useMemo((function(){var e=null===r?n:function(e,t){return"function"===typeof t?t(e):Object(c.a)({},e,t)}(r,n);return null!=e&&(e[U.a]=null!==r),e}),[n,r]);return D.a.createElement(L.a.Provider,{value:i},t)}},function(e,t,n){"use strict";var r=n(269),i=n.n(r).a;t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,i)},i=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}},,function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n=0||(i[n]=e[n]);return i}var T=i.a.createContext(),I={root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},P={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},F={default:20,dense:4},j={default:6,dense:2},M={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:v,transitionDuration:{enter:225,exit:195}},R=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},N=function(e){return Object.keys(e).filter((function(e){return!P[e]})).reduce((function(t,n){var r;return x({},t,((r={})[n]=e[n],r))}),{})},L={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},U=function(e){return"anchorOrigin"+e},B=function(e){var t=e.vertical,n=e.horizontal;return"anchorOrigin"+R(t)+R(n)},z=function(e){return"variant"+R(e)},V=function(e){return!!e||0===e},H=function(e){return"number"===typeof e||null===e};function W(e,t,n){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={}),x({},n,{},t,{},e)}var K=function(e){var t;return Object(y.a)({root:(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[e.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t)})},G=Object(r.forwardRef)((function(e,t){var n=e.classes,r=e.className,o=k(e,["classes","className"]);return i.a.createElement("div",Object.assign({ref:t,className:Object(a.a)(n.root,r)},o))})),q=Object(b.a)(K)(G),Y={right:"left",left:"right",bottom:"up",top:"down"},$=function(e){return"center"!==e.horizontal?Y[e.horizontal]:Y[e.vertical]},J=function(e,t){return{container:e.collapseContainer,wrapper:Object(a.a)(e.collapseWrapper,t&&e.collapseWrapperDense),wrapperInner:e.collapseWrapperInner}},X=function(e){return i.a.createElement(D.a,Object.assign({},e),i.a.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},Z=function(e){return i.a.createElement(D.a,Object.assign({},e),i.a.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Q=function(e){return i.a.createElement(D.a,Object.assign({},e),i.a.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},ee=function(e){return i.a.createElement(D.a,Object.assign({},e),i.a.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},te={fontSize:20,marginInlineEnd:8},ne={default:void 0,success:i.a.createElement(X,{style:te}),warning:i.a.createElement(Z,{style:te}),error:i.a.createElement(Q,{style:te}),info:i.a.createElement(ee,{style:te})};function re(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var r=arguments.length,i=new Array(r),o=0;o-1,u=t.snacks.findIndex(r)>-1;if(a||u)return t}return n.handleDisplaySnack(x({},t,{queue:[].concat(t.queue,[l])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?x({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var i=e.snacks.map((function(e){return t||e.persist&&!r?x({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,L.MAXSNACK,e.key),n.props.onClose&&n.props.onClose(null,L.MAXSNACK,e.key),x({},e,{open:!1})):x({},e,{requestClose:!0}))}));return x({},e,{snacks:i})},n.handleEnteredSnack=function(e,t,r){if(!V(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===r?x({},e,{entered:!0}):x({},e)}))}}))},n.handleCloseSnack=function(e,t,r){if(n.props.onClose&&n.props.onClose(e,t,r),t!==L.CLICKAWAY){var i=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return i||e.key===r?e.entered?x({},e,{open:!1}):x({},e,{requestClose:!0}):x({},e)})),queue:n.filter((function(e){return e.key!==r}))}}))}},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.key===e}));V(e)&&t&&t.onClose&&t.onClose(null,L.INSTRUCTED,e),n.handleCloseSnack(null,L.INSTRUCTED,e)},n.handleExitedSnack=function(e,t,r){var i=t||r;if(!V(i))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var t=n.processQueue(x({},e,{snacks:e.snacks.filter((function(e){return e.key!==i}))}));return 0===t.queue.length?t:n.handleDismissOldest(t)}))},n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar,closeSnackbar:n.closeSnackbar}},n}return n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,c.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,r=n.iconVariant,s=n.dense,u=void 0===s?M.dense:s,c=n.hideIconVariant,l=void 0===c?M.hideIconVariant:c,f=n.domRoot,d=n.children,h=n.classes,p=void 0===h?{}:h,g=k(n,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),m=this.state.snacks.reduce((function(e,t){var n,r,i=(r=t.anchorOrigin,""+R(r.vertical)+R(r.horizontal)),o=e[i]||[];return x({},e,((n={})[i]=[].concat(o,[t]),n))}),{}),v=Object.keys(m).map((function(t){var n=m[t];return i.a.createElement(de,{key:t,dense:u,anchorOrigin:n[0].anchorOrigin,className:Object(a.a)(p.containerRoot,p[U(t)])},n.map((function(t){return i.a.createElement(ce,Object.assign({},g,{key:t.key,snack:t,dense:u,iconVariant:r,hideIconVariant:l,classes:N(p),onClose:e.handleCloseSnack,onExited:re([e.handleExitedSnack,e.props.onExited]),onEntered:re([e.handleEnteredSnack,e.props.onEntered])}))})))}));return i.a.createElement(T.Provider,{value:t},d,f?Object(o.createPortal)(v,f):v)},r=c,(s=[{key:"maxSnack",get:function(){return this.props.maxSnack||M.maxSnack}}])&&A(r.prototype,s),u&&A(r,u),c}(r.Component),pe=function(){return Object(r.useContext)(T)}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n>=6;var l=o/4*3;a>>=s%8;for(var f=Math.floor(s/8),d=0;d>h)}}return new Uint8Array(n)}function f(e){for(var t="",n=0;n>l]}t+="==".slice(0,4-u)}return t}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],i=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},o=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort((function(e,n){var i=e[t],o=n[t];return"undefined"===typeof o?"undefined"===typeof i?0:1*r:"undefined"===typeof i||io?1*r:0})),!0},a=function(e,t){var n=Object.assign({},e);return t&&("string"===typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),i=r.filter((function(e){return n.endsWith("."+e.ext)}));return i.length>0?i[0].type:t},u=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},c=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},l=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},f=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},d=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof e&&null!=e.versions&&null!=e.versions.node}},h=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!g(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},p=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!g(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},g=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)};!function(){function e(){}e.isEmpty=i,e.sortByField=o,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=u,e.generateRandomString=c,e.makeQuerablePromise=l,e.isWebWorker=f,e.browserOrNode=d,e.transferKeyToLowerCase=h,e.transferKeyToUpperCase=p,e.isStrictObject=g}()}).call(this,n(81))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],i=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},o=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort((function(e,n){var i=e[t],o=n[t];return"undefined"===typeof o?"undefined"===typeof i?0:1*r:"undefined"===typeof i||io?1*r:0})),!0},a=function(e,t){var n=Object.assign({},e);return t&&("string"===typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),i=r.filter((function(e){return n.endsWith("."+e.ext)}));return i.length>0?i[0].type:t},u=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},c=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},l=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},f=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},d=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof e&&null!=e.versions&&null!=e.versions.node}},h=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!g(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},p=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!g(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},g=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)};!function(){function e(){}e.isEmpty=i,e.sortByField=o,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=u,e.generateRandomString=c,e.makeQuerablePromise=l,e.isWebWorker=f,e.browserOrNode=d,e.transferKeyToLowerCase=h,e.transferKeyToUpperCase=p,e.isStrictObject=g}()}).call(this,n(81))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(4),i=n(10),o=n(113);var a=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,a=this.requestTimeout;if(null===n||void 0===n?void 0:n.aborted){var s=new Error("Request aborted");return s.name="AbortError",Promise.reject(s)}var u=e.path;if(e.query){var c=Object(o.a)(e.query);c&&(u+="?"+c)}var l=e.port,f=e.method,d=e.protocol+"//"+e.hostname+(l?":"+l:"")+u,h={body:"GET"===f||"HEAD"===f?void 0:e.body,headers:new Headers(e.headers),method:f};"undefined"!==typeof AbortController&&(h.signal=n);var p,g=new Request(d,h),m=[fetch(g).then((function(e){var t,n,o=e.headers,a={};try{for(var s=Object(r.__values)(o.entries()),u=s.next();!u.done;u=s.next()){var c=u.value;a[c[0]]=c[1]}}catch(l){t={error:l}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return void 0!==e.body?{response:new i.b({headers:a,statusCode:e.status,body:e.body})}:e.blob().then((function(t){return{response:new i.b({headers:a,statusCode:e.status,body:t})}}))})),(p=a,void 0===p&&(p=0),new Promise((function(e,t){p&&setTimeout((function(){var e=new Error("Request did not complete within "+p+" ms");e.name="TimeoutError",t(e)}),p)})))];return n&&m.push(new Promise((function(e,t){n.onabort=function(){var e=new Error("Request aborted");e.name="AbortError",t(e)}}))),Promise.race(m)},e}(),s=n(90),u=function(e){return"function"===typeof Blob&&e instanceof Blob?function(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return[4,c(e)];case 1:return t=r.sent(),n=Object(s.a)(t),[2,new Uint8Array(n)]}}))}))}(e):function(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,n,i,o,a,s,u;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:t=new Uint8Array(0),n=e.getReader(),i=!1,r.label=1;case 1:return i?[3,3]:[4,n.read()];case 2:return o=r.sent(),a=o.done,(s=o.value)&&(u=t,(t=new Uint8Array(u.length+s.length)).set(u),t.set(s,u.length)),i=a,[3,1];case 3:return[2,t]}}))}))}(e)};function c(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 i=null!==(e=r.result)&&void 0!==e?e:"",o=i.indexOf(","),a=o>-1?o+1:i.length;t(i.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(47);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=function(){for(var e=[],t=0;t=a){var u=console.log.bind(console);"ERROR"===t&&console.error&&(u=console.error.bind(console)),"WARN"===t&&console.warn&&(u=console.warn.bind(console));var c="["+t+"] "+this._ts()+" "+this.name;if(1===n.length&&"string"===typeof n[0])u(c+" - "+n[0]);else if(1===n.length)u(c,n[0]);else if("string"===typeof n[0]){var l=n.slice(1);1===l.length&&(l=l[0]),u(c+" - "+n[0],l)}else u(c,n)}},e.prototype.log=function(){for(var e=[],t=0;t1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i="object"===("undefined"===typeof window?"undefined":r(window))&&"object"===("undefined"===typeof document?"undefined":r(document))&&9===document.nodeType;t.a=i},function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(0),a=(n(11),n(7)),s=n(9),u=n(18),c=n(189),l=n(13),f=o.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,u=e.children,f=e.classes,d=e.className,h=e.color,p=void 0===h?"default":h,g=e.disabled,m=void 0!==g&&g,v=e.disableFocusRipple,y=void 0!==v&&v,b=e.size,w=void 0===b?"medium":b,S=Object(i.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(c.a,Object(r.a)({className:Object(a.a)(f.root,d,"default"!==p&&f["color".concat(Object(l.a)(p))],m&&f.disabled,"small"===w&&f["size".concat(Object(l.a)(w))],{start:f.edgeStart,end:f.edgeEnd}[s]),centerRipple:!0,focusRipple:!y,disabled:m,ref:t},S),o.createElement("span",{className:f.label},u))}));t.a=Object(s.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(u.d)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.d)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.d)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(f)},function(e,t,n){"use strict";var r=n(6),i=n(3),o=n(0),a=(n(11),n(7)),s=n(9),u=n(18),c=n(189),l=n(13),f=o.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,f=e.color,d=void 0===f?"default":f,h=e.component,p=void 0===h?"button":h,g=e.disabled,m=void 0!==g&&g,v=e.disableElevation,y=void 0!==v&&v,b=e.disableFocusRipple,w=void 0!==b&&b,S=e.endIcon,C=e.focusVisibleClassName,E=e.fullWidth,_=void 0!==E&&E,D=e.size,O=void 0===D?"medium":D,A=e.startIcon,x=e.type,k=void 0===x?"button":x,T=e.variant,I=void 0===T?"text":T,P=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),F=A&&o.createElement("span",{className:Object(a.a)(s.startIcon,s["iconSize".concat(Object(l.a)(O))])},A),j=S&&o.createElement("span",{className:Object(a.a)(s.endIcon,s["iconSize".concat(Object(l.a)(O))])},S);return o.createElement(c.a,Object(i.a)({className:Object(a.a)(s.root,s[I],u,"inherit"===d?s.colorInherit:"default"!==d&&s["".concat(I).concat(Object(l.a)(d))],"medium"!==O&&[s["".concat(I,"Size").concat(Object(l.a)(O))],s["size".concat(Object(l.a)(O))]],y&&s.disableElevation,m&&s.disabled,_&&s.fullWidth),component:p,disabled:m,focusRipple:!w,focusVisibleClassName:Object(a.a)(s.focusVisible,C),ref:t,type:k},P),o.createElement("span",{className:s.label},F,n,j))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(u.d)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.d)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.d)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(u.d)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(u.d)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(u.d)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(u.d)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(f)},,,function(e,t,n){!function(t,r){var i;e.exports=(i=n(19),function(){if("function"==typeof ArrayBuffer){var e=i.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)}).prototype=e}}(),i.lib.WordArray)}()},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(420).default;function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(75)},function(e,t,n){"use strict";var r=n(17),i=n(6),o=n(281),a=n(3),s=["xs","sm","md","lg","xl"];function u(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,u=e.step,c=void 0===u?5:u,l=Object(i.a)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function d(e,t){var r=s.indexOf(t);return r===s.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[s[r+1]]?n[s[r+1]]:t)-c/100).concat(o,")")}return Object(a.a)({keys:s,values:n,up:f,down:function(e){var t=s.indexOf(e)+1,r=n[s[t]];return t===s.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-c/100).concat(o,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},l)}function c(e,t,n){var i;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var l=n(280),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},h={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},g={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(18),w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(b.i)(e.main,i):"dark"===t&&(e.dark=Object(b.a)(e.main,o)))}function E(e){var t=e.primary,n=void 0===t?{light:h[300],main:h[500],dark:h[700]}:t,r=e.secondary,s=void 0===r?{light:p.A200,main:p.A400,dark:p.A700}:r,u=e.error,c=void 0===u?{light:g[300],main:g[500],dark:g[700]}:u,E=e.warning,_=void 0===E?{light:m[300],main:m[500],dark:m[700]}:E,D=e.info,O=void 0===D?{light:v[300],main:v[500],dark:v[700]}:D,A=e.success,x=void 0===A?{light:y[300],main:y[500],dark:y[700]}:A,k=e.type,T=void 0===k?"light":k,I=e.contrastThreshold,P=void 0===I?3:I,F=e.tonalOffset,j=void 0===F?.2:F,M=Object(i.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function R(e){return Object(b.e)(e,S.text.primary)>=P?S.text.primary:w.text.primary}var N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return C(e,"light",n,j),C(e,"dark",r,j),e.contrastText||(e.contrastText=R(e.main)),e},L={dark:S,light:w};return Object(o.a)(Object(a.a)({common:f,type:T,primary:N(n),secondary:N(s,"A400","A200","A700"),error:N(c),warning:N(_),info:N(O),success:N(x),grey:d,contrastThreshold:P,getContrastText:R,augmentColor:N,tonalOffset:j},L[T]),M)}function _(e){return Math.round(1e5*e)/1e5}var D={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function A(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,s=void 0===r?O:r,u=n.fontSize,c=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,d=n.fontWeightRegular,h=void 0===d?400:d,p=n.fontWeightMedium,g=void 0===p?500:p,m=n.fontWeightBold,v=void 0===m?700:m,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,S=n.pxToRem,C=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var E=c/14,A=S||function(e){return"".concat(e/b*E,"rem")},x=function(e,t,n,r,i){return Object(a.a)({fontFamily:s,fontWeight:e,fontSize:A(t),lineHeight:n},s===O?{letterSpacing:"".concat(_(r/t),"em")}:{},i,w)},k={h1:x(f,96,1.167,-1.5),h2:x(f,60,1.2,-.5),h3:x(h,48,1.167,0),h4:x(h,34,1.235,.25),h5:x(h,24,1.334,0),h6:x(g,20,1.6,.15),subtitle1:x(h,16,1.75,.15),subtitle2:x(g,14,1.57,.1),body1:x(h,16,1.5,.15),body2:x(h,14,1.43,.15),button:x(g,14,1.75,.4,D),caption:x(h,12,1.66,.4),overline:x(h,12,2.66,1,D)};return Object(o.a)(Object(a.a)({htmlFontSize:b,pxToRem:A,round:_,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:h,fontWeightMedium:g,fontWeightBold:v},k),C,{clone:!1})}function x(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var k=["none",x(0,2,1,-1,0,1,1,0,0,1,3,0),x(0,3,1,-2,0,2,2,0,0,1,5,0),x(0,3,3,-2,0,3,4,0,0,1,8,0),x(0,2,4,-1,0,4,5,0,0,1,10,0),x(0,3,5,-1,0,5,8,0,0,1,14,0),x(0,3,5,-1,0,6,10,0,0,1,18,0),x(0,4,5,-2,0,7,10,1,0,2,16,1),x(0,5,5,-3,0,8,10,1,0,3,14,2),x(0,5,6,-3,0,9,12,1,0,3,16,2),x(0,6,6,-3,0,10,14,1,0,4,18,3),x(0,6,7,-4,0,11,15,1,0,4,20,3),x(0,7,8,-4,0,12,17,2,0,5,22,4),x(0,7,8,-4,0,13,19,2,0,5,24,4),x(0,7,9,-4,0,14,21,2,0,5,26,4),x(0,8,9,-5,0,15,22,2,0,6,28,5),x(0,8,10,-5,0,16,24,2,0,6,30,5),x(0,8,11,-5,0,17,26,2,0,6,32,5),x(0,9,11,-5,0,18,28,2,0,7,34,6),x(0,9,12,-6,0,19,29,2,0,7,36,6),x(0,10,13,-6,0,20,31,3,0,8,38,7),x(0,10,13,-6,0,21,33,3,0,8,40,7),x(0,10,14,-6,0,22,35,3,0,8,42,7),x(0,11,14,-7,0,23,36,3,0,9,44,8),x(0,11,15,-7,0,24,38,3,0,9,46,8)],T={borderRadius:4},I=n(538);function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Object(I.a)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,a=void 0===r?{}:r,s=e.palette,l=void 0===s?{}:s,f=e.spacing,d=e.typography,h=void 0===d?{}:d,p=Object(i.a)(e,["breakpoints","mixins","palette","spacing","typography"]),g=E(l),m=u(n),v=P(f),y=Object(o.a)({breakpoints:m,direction:"ltr",mixins:c(m,v,a),overrides:{},palette:g,props:{},shadows:k,typography:A(g,h),spacing:v,shape:T,transitions:F.a,zIndex:j.a},p),b=arguments.length,w=new Array(b>1?b-1:0),S=1;S=0;n-=1){var r=e.charCodeAt(n);r>127&&r<=2047?t+=1:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&(n-=1)}return t}function a(){return(new Date).getTime()}function s(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var u={},c=(function(){function e(){}e.clear=function(){u={}},e.getItem=function(e){return u[e]||null},e.setItem=function(e,t){u[e]=t},e.removeItem=function(e){delete u[e]}}(),n(95)),l=new c.a("StorageCache"),f=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){s(this.config.capacityInBytes)||(l.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes),s(this.config.itemMaxSize)||(l.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),s(this.config.defaultTTL)||(l.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=i.defaultTTL),s(this.config.defaultPriority)||(l.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=i.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(l.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(l.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=i.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(l.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=i.warningThreshold);this.config.capacityInBytes>5242880&&(l.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,n){var r={key:e,data:t,timestamp:a(),visitedTime:a(),priority:n.priority,expires:n.expires,type:typeof t,byteSize:0};return r.byteSize=o(JSON.stringify(r)),r.byteSize=o(JSON.stringify(r)),r},e.prototype.configure=function(e){return e?(e.keyPrefix&&l.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),d=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=new c.a("Cache"),p=new(function(e){function t(t){var n=this,r=t?Object.assign({},i,t):i;return(n=e.call(this,r)||this).config.storage=r.storage,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind(n),n.removeItem=n.removeItem.bind(n),n}return d(t,e),t.prototype._decreaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t-e).toString())},t.prototype._increaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t+e).toString())},t.prototype._refreshItem=function(e,t){return e.visitedTime=a(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var t=this.config.storage.getItem(e),n=JSON.parse(t);return a()>=n.expires},t.prototype._removeItem=function(e,t){var n=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(n),this.config.storage.removeItem(e)},t.prototype._setItem=function(e,t){this._increaseCurSizeInBytes(t.byteSize);try{this.config.storage.setItem(e,JSON.stringify(t))}catch(n){this._decreaseCurSizeInBytes(t.byteSize),h.error("Failed to set item "+n)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,n=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>n?t:n},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],n=0;nt.priority?-1:e.priority5)h.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(r,t,i);if(o.byteSize>this.config.itemMaxSize)h.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var s=this.config.storage.getItem(r);if(s&&this._removeItem(r,JSON.parse(s).byteSize),this._isCacheFull(o.byteSize)){var u=this._findValidKeys();if(this._isCacheFull(o.byteSize)){var c=this._sizeToPop(o.byteSize);this._popOutItems(u,c)}}this._setItem(r,o)}catch(l){h.warn("setItem failed! "+l)}}}else h.warn("The value of item should not be undefined!");else h.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){h.log("Get item: key is "+e+" with options "+t);var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||r===this.cacheCurSizeKey)return h.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(n=this.config.storage.getItem(r))){if(!this._isExpired(r)){var i=JSON.parse(n);return(i=this._refreshItem(i,r)).data}this._removeItem(r,JSON.parse(n).byteSize),n=null}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null}catch(a){return h.warn("getItem failed! "+a),null}},t.prototype.removeItem=function(e){h.log("Remove item: key is "+e);var t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!==this.cacheCurSizeKey)try{var n=this.config.storage.getItem(t);n&&this._removeItem(t,JSON.parse(n).byteSize)}catch(r){h.warn("removeItem failed! "+r)}},t.prototype.clear=function(){h.log("Clear Cache");for(var e=[],t=0;t>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},U={};function B(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(U[e]=i),t&&(U[t[0]]=function(){return M(i.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,n,r=e.match(R);for(t=0,n=r.length;t=0&&N.test(e);)e=e.replace(N,r),N.lastIndex=0,n-=1;return e}var K={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function Y(){return this._invalidDate}var $="%d",J=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return k(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)s(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function ae(e,t){oe[e]=t}function se(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ue(e){return e%4===0&&e%100!==0||e%400===0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function le(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function fe(e,t){return function(n){return null!=n?(he(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function he(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=le(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Qe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function pe(e){return k(this[e=re(e)])?this[e]():this}function ge(e,t){if("object"===typeof e){var n,r=se(e=ie(e));for(n=0;n68?1900:2e3)};var mt=fe("FullYear",!0);function vt(){return ue(this.year())}function yt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function St(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,i);return s<=0?a=gt(o=e-1)+s:s>gt(e)?(o=e+1,a=s-gt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Ct(e,t,n){var r,i,o=wt(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Et(i=e.year()-1,t,n):a>Et(e.year(),t,n)?(r=a-Et(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Et(e,t,n){var r=wt(e,t,n),i=wt(e+1,t,n);return(gt(e)-r+i)/7}function _t(e){return Ct(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),je("w",Ce),je("ww",Ce,ye),je("W",Ce),je("WW",Ce,ye),Be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=le(e)}));var Dt={dow:0,doy:6};function Ot(){return this._week.dow}function At(){return this._week.doy}function xt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function kt(e){var t=Ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Tt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function It(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),je("d",Ce),je("e",Ce),je("E",Ce),je("dd",(function(e,t){return t.weekdaysMinRegex(e)})),je("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),je("dddd",(function(e,t){return t.weekdaysRegex(e)})),Be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,r){t[r]=le(e)}));var Ft="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=Fe,Nt=Fe,Lt=Fe;function Ut(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zt(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ve.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ve.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ve.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ve.call(this._weekdaysParse,a))||-1!==(i=Ve.call(this._shortWeekdaysParse,a))||-1!==(i=Ve.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ve.call(this._shortWeekdaysParse,a))||-1!==(i=Ve.call(this._weekdaysParse,a))||-1!==(i=Ve.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ve.call(this._minWeekdaysParse,a))||-1!==(i=Ve.call(this._weekdaysParse,a))||-1!==(i=Ve.call(this._shortWeekdaysParse,a))?i:null}function Ht(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Tt(e,this.localeData()),this.add(e-t,"d")):t}function Kt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Gt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=It(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Rt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Nt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $t(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=Ne(this.weekdaysMin(n,"")),i=Ne(this.weekdaysShort(n,"")),o=Ne(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function Qt(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Xt),B("k",["kk",2],0,Zt),B("hmm",0,0,(function(){return""+Xt.apply(this)+M(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Xt.apply(this)+M(this.minutes(),2)+M(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+M(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+M(this.minutes(),2)+M(this.seconds(),2)})),Qt("a",!0),Qt("A",!1),ne("hour","h"),ae("hour",13),je("a",en),je("A",en),je("H",Ce),je("h",Ce),je("k",Ce),je("HH",Ce,ye),je("hh",Ce,ye),je("kk",Ce,ye),je("hmm",Ee),je("hmmss",_e),je("Hmm",Ee),je("Hmmss",_e),Ue(["H","HH"],Ge),Ue(["k","kk"],(function(e,t,n){var r=le(e);t[Ge]=24===r?0:r})),Ue(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ue(["h","hh"],(function(e,t,n){t[Ge]=le(e),m(n).bigHour=!0})),Ue("hmm",(function(e,t,n){var r=e.length-2;t[Ge]=le(e.substr(0,r)),t[qe]=le(e.substr(r)),m(n).bigHour=!0})),Ue("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ge]=le(e.substr(0,r)),t[qe]=le(e.substr(r,2)),t[Ye]=le(e.substr(i)),m(n).bigHour=!0})),Ue("Hmm",(function(e,t,n){var r=e.length-2;t[Ge]=le(e.substr(0,r)),t[qe]=le(e.substr(r))})),Ue("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ge]=le(e.substr(0,r)),t[qe]=le(e.substr(r,2)),t[Ye]=le(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=fe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:F,longDateFormat:K,invalidDate:q,ordinal:$,dayOfMonthOrdinalParse:J,relativeTime:Z,months:et,monthsShort:tt,week:Dt,weekdays:Ft,weekdaysMin:Mt,weekdaysShort:jt,meridiemParse:nn},un={},cn={};function ln(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=hn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&ln(i,n)>=t-1)break;t--}o++}return an}function hn(t){var n=null;if(void 0===un[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=an._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),pn(n)}catch(r){un[t]=null}return un[t]}function pn(e,t){var n;return e&&((n=c(t)?vn(e):gn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=un[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new P(I(r,t)),cn[e]&&cn[e].forEach((function(e){gn(e.name,e.config)})),pn(e),un[e]}return delete un[e],null}function mn(e,t){if(null!=t){var n,r,i=sn;null!=un[e]&&null!=un[e].parentLocale?un[e].set(I(un[e]._config,t)):(null!=(r=hn(e))&&(i=r._config),t=I(i,t),null==r&&(t.abbr=e),(n=new P(t)).parentLocale=un[e],un[e]=n),pn(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===pn()&&pn(e)):null!=un[e]&&delete un[e]);return un[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(t=hn(e))return t;e=[e]}return dn(e)}function yn(){return O(un)}function bn(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[We]<0||n[We]>11?We:n[Ke]<1||n[Ke]>Qe(n[He],n[We])?Ke:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[qe]||0!==n[Ye]||0!==n[$e])?Ge:n[qe]<0||n[qe]>59?qe:n[Ye]<0||n[Ye]>59?Ye:n[$e]<0||n[$e]>999?$e:-1,m(e)._overflowDayOfYear&&(tKe)&&(t=Ke),m(e)._overflowWeeks&&-1===t&&(t=Je),m(e)._overflowWeekday&&-1===t&&(t=Xe),m(e).overflow=t),e}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/Z|[+-]\d\d(?::?\d\d)?/,En=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_n=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((-?\d+)/i,On=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,An={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xn(e){var t,n,r,i,o,a,s=e._i,u=wn.exec(s)||Sn.exec(s);if(u){for(m(e).iso=!0,t=0,n=En.length;tgt(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=bt(o,0,e._dayOfYear),e._a[We]=n.getUTCMonth(),e._a[Ke]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ge]&&0===e._a[qe]&&0===e._a[Ye]&&0===e._a[$e]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?bt:yt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function Un(e){var t,n,r,i,o,a,s,u,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Rn(t.GG,e._a[He],Ct(Yn(),1,4).year),r=Rn(t.W,1),((i=Rn(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Ct(Yn(),o,a),n=Rn(t.gg,e._a[He],c.year),r=Rn(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>Et(n,o,a)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(s=St(n,r,i,o,a),e._a[He]=s.year,e._dayOfYear=s.dayOfYear)}function Bn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,o,a,s,u=""+e._i,c=u.length,l=0;for(i=W(e._f,e._locale).match(R)||[],t=0;t0&&m(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),l+=n.length),U[o]?(n?m(e).empty=!1:m(e).unusedTokens.push(o),ze(o,n,e)):e._strict&&!n&&m(e).unusedTokens.push(o);m(e).charsLeftOver=c-l,u.length>0&&m(e).unusedInput.push(u),e._a[Ge]<=12&&!0===m(e).bigHour&&e._a[Ge]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[Ge]=zn(e._locale,e._a[Ge],e._meridiem),null!==(s=m(e).era)&&(e._a[He]=e._locale.erasConvertYear(s,e._a[He])),Ln(e),bn(e)}else jn(e);else xn(e)}function zn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Vn(e){var t,n,r,i,o,a,s=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:y()}));function Xn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Yn();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return S(t,this),(t=Kn(t))._a?(e=t._isUTC?p(t._a):Yn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Cr(){return!!this.isValid()&&!this._isUTC}function Er(){return!!this.isValid()&&this._isUTC}function _r(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Dr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Or=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ar(e,t){var n,r,i,o=e,a=null;return ar(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Dr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:le(a[Ke])*n,h:le(a[Ge])*n,m:le(a[qe])*n,s:le(a[Ye])*n,ms:le(sr(1e3*a[$e]))*n}):(a=Or.exec(e))?(n="-"===a[1]?-1:1,o={y:xr(a[2],n),M:xr(a[3],n),w:xr(a[4],n),d:xr(a[5],n),h:xr(a[6],n),m:xr(a[7],n),s:xr(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=Tr(Yn(o.from),Yn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new or(o),ar(e)&&s(e,"_locale")&&(r._locale=e._locale),ar(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function xr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function kr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Tr(e,t){var n;return e.isValid()&&t.isValid()?(t=dr(t,e),e.isBefore(t)?n=kr(e,t):((n=kr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ir(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(x(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Pr(this,Ar(n,r),e),this}}function Pr(e,t,n,i){var o=t._milliseconds,a=sr(t._days),s=sr(t._months);e.isValid()&&(i=null==i||i,s&&ct(e,de(e,"Month")+s*n),a&&he(e,"Date",de(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Ar.fn=or.prototype,Ar.invalid=ir;var Fr=Ir(1,"add"),jr=Ir(-1,"subtract");function Mr(e){return"string"===typeof e||e instanceof String}function Rr(e){return E(e)||f(e)||Mr(e)||l(e)||Lr(e)||Nr(e)||null===e||void 0===e}function Nr(e){var t,n,r=a(e)&&!u(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;tn.valueOf():n.valueOf()9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Qr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ei(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=H(this,e);return this.localeData().postformat(t)}function ti(e,t){return this.isValid()&&(E(e)&&e.isValid()||Yn(e).isValid())?Ar({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ni(e){return this.from(Yn(),e)}function ri(e,t){return this.isValid()&&(E(e)&&e.isValid()||Yn(e).isValid())?Ar({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.to(Yn(),e)}function oi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ai=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function si(){return this._locale}var ui=1e3,ci=60*ui,li=60*ci,fi=3506328*li;function di(e,t){return(e%t+t)%t}function hi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function pi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pi:hi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=di(t+(this._isUTC?0:this.utcOffset()*ci),li);break;case"minute":t=this._d.valueOf(),t-=di(t,ci);break;case"second":t=this._d.valueOf(),t-=di(t,ui)}return this._d.setTime(t),r.updateOffset(this,!0),this}function mi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pi:hi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=li-di(t+(this._isUTC?0:this.utcOffset()*ci),li)-1;break;case"minute":t=this._d.valueOf(),t+=ci-di(t,ci)-1;break;case"second":t=this._d.valueOf(),t+=ui-di(t,ui)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-6e4*(this._offset||0)}function yi(){return Math.floor(this.valueOf()/1e3)}function bi(){return new Date(this.valueOf())}function wi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Si(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ci(){return this.isValid()?this.toISOString():null}function Ei(){return v(this)}function _i(){return h({},m(this))}function Di(){return m(this).overflow}function Oi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ai(e,t){var n,i,o,a=this._eras||vn("en")._eras;for(n=0,i=a.length;n=0)return u[r]}function ki(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ti(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e(o=Et(e,r,i))&&(t=o),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var o=St(e,t,n,r,i),a=bt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Xi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),je("N",Ni),je("NN",Ni),je("NNN",Ni),je("NNNN",Li),je("NNNNN",Ui),Ue(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e})),je("y",xe),je("yy",xe),je("yyy",xe),je("yyyy",xe),je("yo",Bi),Ue(["y","yy","yyy","yyyy"],He),Ue(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[He]=n._locale.eraYearOrdinalParse(e,i):t[He]=parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Vi("gggg","weekYear"),Vi("ggggg","weekYear"),Vi("GGGG","isoWeekYear"),Vi("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),je("G",ke),je("g",ke),je("GG",Ce,ye),je("gg",Ce,ye),je("GGGG",Oe,we),je("gggg",Oe,we),je("GGGGG",Ae,Se),je("ggggg",Ae,Se),Be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=le(e)})),Be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),je("Q",ve),Ue("Q",(function(e,t){t[We]=3*(le(e)-1)})),B("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),je("D",Ce),je("DD",Ce,ye),je("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ue(["D","DD"],Ke),Ue("Do",(function(e,t){t[Ke]=le(e.match(Ce)[0])}));var Zi=fe("Date",!0);function Qi(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),je("DDD",De),je("DDDD",be),Ue(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=le(e)})),B("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),je("m",Ce),je("mm",Ce,ye),Ue(["m","mm"],qe);var eo=fe("Minutes",!1);B("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),je("s",Ce),je("ss",Ce,ye),Ue(["s","ss"],Ye);var to,no,ro=fe("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),je("S",De,ve),je("SS",De,ye),je("SSS",De,be),to="SSSS";to.length<=9;to+="S")je(to,xe);function io(e,t){t[$e]=le(1e3*("0."+e))}for(to="S";to.length<=9;to+="S")Ue(to,io);function oo(){return this._isUTC?"UTC":""}function ao(){return this._isUTC?"Coordinated Universal Time":""}no=fe("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var so=C.prototype;function uo(e){return Yn(1e3*e)}function co(){return Yn.apply(null,arguments).parseZone()}function lo(e){return e}so.add=Fr,so.calendar=zr,so.clone=Vr,so.diff=$r,so.endOf=mi,so.format=ei,so.from=ti,so.fromNow=ni,so.to=ri,so.toNow=ii,so.get=pe,so.invalidAt=Di,so.isAfter=Hr,so.isBefore=Wr,so.isBetween=Kr,so.isSame=Gr,so.isSameOrAfter=qr,so.isSameOrBefore=Yr,so.isValid=Ei,so.lang=ai,so.locale=oi,so.localeData=si,so.max=Jn,so.min=$n,so.parsingFlags=_i,so.set=ge,so.startOf=gi,so.subtract=jr,so.toArray=wi,so.toObject=Si,so.toDate=bi,so.toISOString=Zr,so.inspect=Qr,"undefined"!==typeof Symbol&&null!=Symbol.for&&(so[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),so.toJSON=Ci,so.toString=Xr,so.unix=yi,so.valueOf=vi,so.creationData=Oi,so.eraName=Ti,so.eraNarrow=Ii,so.eraAbbr=Pi,so.eraYear=Fi,so.year=mt,so.isLeapYear=vt,so.weekYear=Hi,so.isoWeekYear=Wi,so.quarter=so.quarters=Xi,so.month=lt,so.daysInMonth=ft,so.week=so.weeks=xt,so.isoWeek=so.isoWeeks=kt,so.weeksInYear=qi,so.weeksInWeekYear=Yi,so.isoWeeksInYear=Ki,so.isoWeeksInISOWeekYear=Gi,so.date=Zi,so.day=so.days=Wt,so.weekday=Kt,so.isoWeekday=Gt,so.dayOfYear=Qi,so.hour=so.hours=rn,so.minute=so.minutes=eo,so.second=so.seconds=ro,so.millisecond=so.milliseconds=no,so.utcOffset=pr,so.utc=mr,so.local=vr,so.parseZone=yr,so.hasAlignedHourOffset=br,so.isDST=wr,so.isLocal=Cr,so.isUtcOffset=Er,so.isUtc=_r,so.isUTC=_r,so.zoneAbbr=oo,so.zoneName=ao,so.dates=D("dates accessor is deprecated. Use date instead.",Zi),so.months=D("months accessor is deprecated. Use month instead",lt),so.years=D("years accessor is deprecated. Use year instead",mt),so.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),so.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var fo=P.prototype;function ho(e,t,n,r){var i=vn(),o=p().set(r,t);return i[n](o,e)}function po(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return ho(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ho(e,r,n,"month");return i}function go(e,t,n,r){"boolean"===typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,o=vn(),a=e?o._week.dow:0,s=[];if(null!=n)return ho(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=ho(t,(i+a)%7,r,"day");return s}function mo(e,t){return po(e,t,"months")}function vo(e,t){return po(e,t,"monthsShort")}function yo(e,t,n){return go(e,t,n,"weekdays")}function bo(e,t,n){return go(e,t,n,"weekdaysShort")}function wo(e,t,n){return go(e,t,n,"weekdaysMin")}fo.calendar=j,fo.longDateFormat=G,fo.invalidDate=Y,fo.ordinal=X,fo.preparse=lo,fo.postformat=lo,fo.relativeTime=Q,fo.pastFuture=ee,fo.set=T,fo.eras=Ai,fo.erasParse=xi,fo.erasConvertYear=ki,fo.erasAbbrRegex=Mi,fo.erasNameRegex=ji,fo.erasNarrowRegex=Ri,fo.months=ot,fo.monthsShort=at,fo.monthsParse=ut,fo.monthsRegex=ht,fo.monthsShortRegex=dt,fo.week=_t,fo.firstDayOfYear=At,fo.firstDayOfWeek=Ot,fo.weekdays=Ut,fo.weekdaysMin=zt,fo.weekdaysShort=Bt,fo.weekdaysParse=Ht,fo.weekdaysRegex=qt,fo.weekdaysShortRegex=Yt,fo.weekdaysMinRegex=$t,fo.isPM=tn,fo.meridiem=on,pn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===le(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=D("moment.lang is deprecated. Use moment.locale instead.",pn),r.langData=D("moment.langData is deprecated. Use moment.localeData instead.",vn);var So=Math.abs;function Co(){var e=this._data;return this._milliseconds=So(this._milliseconds),this._days=So(this._days),this._months=So(this._months),e.milliseconds=So(e.milliseconds),e.seconds=So(e.seconds),e.minutes=So(e.minutes),e.hours=So(e.hours),e.months=So(e.months),e.years=So(e.years),this}function Eo(e,t,n,r){var i=Ar(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function _o(e,t){return Eo(this,e,t,1)}function Do(e,t){return Eo(this,e,t,-1)}function Oo(e){return e<0?Math.floor(e):Math.ceil(e)}function Ao(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Oo(ko(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=ce(o/1e3),u.seconds=e%60,t=ce(e/60),u.minutes=t%60,n=ce(t/60),u.hours=n%24,a+=ce(n/24),s+=i=ce(xo(a)),a-=Oo(ko(i)),r=ce(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function xo(e){return 4800*e/146097}function ko(e){return 146097*e/4800}function To(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+xo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(ko(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Io(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*le(this._months/12):NaN}function Po(e){return function(){return this.as(e)}}var Fo=Po("ms"),jo=Po("s"),Mo=Po("m"),Ro=Po("h"),No=Po("d"),Lo=Po("w"),Uo=Po("M"),Bo=Po("Q"),zo=Po("y");function Vo(){return Ar(this)}function Ho(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Wo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ko=Wo("milliseconds"),Go=Wo("seconds"),qo=Wo("minutes"),Yo=Wo("hours"),$o=Wo("days"),Jo=Wo("months"),Xo=Wo("years");function Zo(){return ce(this.days()/7)}var Qo=Math.round,ea={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ta(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function na(e,t,n,r){var i=Ar(e).abs(),o=Qo(i.as("s")),a=Qo(i.as("m")),s=Qo(i.as("h")),u=Qo(i.as("d")),c=Qo(i.as("M")),l=Qo(i.as("w")),f=Qo(i.as("y")),d=o<=n.ss&&["s",o]||o0,d[4]=r,ta.apply(null,d)}function ra(e){return void 0===e?Qo:"function"===typeof e&&(Qo=e,!0)}function ia(e,t){return void 0!==ea[e]&&(void 0===t?ea[e]:(ea[e]=t,"s"===e&&(ea.ss=t-1),!0))}function oa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ea;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},ea,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=na(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var aa=Math.abs;function sa(e){return(e>0)-(e<0)||+e}function ua(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=aa(this._milliseconds)/1e3,c=aa(this._days),l=aa(this._months),f=this.asSeconds();return f?(e=ce(u/60),t=ce(e/60),u%=60,e%=60,n=ce(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",o=sa(this._months)!==sa(f)?"-":"",a=sa(this._days)!==sa(f)?"-":"",s=sa(this._milliseconds)!==sa(f)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var ca=or.prototype;return ca.isValid=rr,ca.abs=Co,ca.add=_o,ca.subtract=Do,ca.as=To,ca.asMilliseconds=Fo,ca.asSeconds=jo,ca.asMinutes=Mo,ca.asHours=Ro,ca.asDays=No,ca.asWeeks=Lo,ca.asMonths=Uo,ca.asQuarters=Bo,ca.asYears=zo,ca.valueOf=Io,ca._bubble=Ao,ca.clone=Vo,ca.get=Ho,ca.milliseconds=Ko,ca.seconds=Go,ca.minutes=qo,ca.hours=Yo,ca.days=$o,ca.weeks=Zo,ca.months=Jo,ca.years=Xo,ca.humanize=oa,ca.toISOString=ua,ca.toString=ua,ca.toJSON=ua,ca.locale=oi,ca.localeData=si,ca.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),ca.lang=ai,B("X",0,0,"unix"),B("x",0,0,"valueOf"),je("x",ke),je("X",Pe),Ue("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ue("x",(function(e,t,n){n._d=new Date(le(e))})),r.version="2.29.1",i(Yn),r.fn=so,r.min=Zn,r.max=Qn,r.now=er,r.utc=p,r.unix=uo,r.months=mo,r.isDate=f,r.locale=pn,r.invalid=y,r.duration=Ar,r.isMoment=E,r.weekdays=yo,r.parseZone=co,r.localeData=vn,r.isDuration=ar,r.monthsShort=vo,r.weekdaysMin=wo,r.defineLocale=gn,r.updateLocale=mn,r.locales=yn,r.weekdaysShort=bo,r.normalizeUnits=re,r.relativeTimeRounding=ra,r.relativeTimeThreshold=ia,r.calendarFormat=Br,r.prototype=so,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(235)(e))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var r=n(4),i=n(10);function o(e){return e}var a={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},s=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var o,a;return Object(r.__generator)(this,(function(r){return i.a.isInstance(n.request)?(o=n.request,(void 0===(a=(e.requestHandler.metadata||{}).handlerProtocol)?"":a).indexOf("h2")>=0&&!o.headers[":authority"]?(delete o.headers.host,o.headers[":authority"]=""):o.headers.host||(o.headers.host=o.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),a)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return D})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return x}));var r,i,o,a,s,u,c,l,f,d,h,p,g,m,v,y,b,w,S,C,E,_,D,O,A,x,k,T,I,P,F,j,M,R,N,L,U,B,z,V,H,W,K,G,q,Y,$,J,X,Z,Q,ee,te,ne,re,ie,oe,ae=n(1);!function(e){e.AUTHENTICATED_ROLE="AuthenticatedRole",e.DENY="Deny"}(r||(r={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(i||(i={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(o||(o={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(a||(a={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(s||(s={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(u||(u={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(c||(c={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(l||(l={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(f||(f={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(d||(d={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(h||(h={})),function(e){e.ACCESS_DENIED="AccessDenied",e.INTERNAL_SERVER_ERROR="InternalServerError"}(p||(p={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(g||(g={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(m||(m={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(v||(v={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(y||(y={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(b||(b={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(w||(w={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(S||(S={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(C||(C={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(E||(E={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(_||(_={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(D||(D={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(O||(O={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(A||(A={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(x||(x={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(k||(k={})),function(e){e.CONTAINS="Contains",e.EQUALS="Equals",e.NOT_EQUAL="NotEqual",e.STARTS_WITH="StartsWith"}(T||(T={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(I||(I={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(P||(P={})),function(e){e.RULES="Rules",e.TOKEN="Token"}(F||(F={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(j||(j={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(M||(M={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(R||(R={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(N||(N={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(L||(L={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(U||(U={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(B||(B={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(z||(z={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(V||(V={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(H||(H={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(W||(W={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(K||(K={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(G||(G={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(q||(q={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(Y||(Y={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}($||($={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(J||(J={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(X||(X={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(Z||(Z={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(Q||(Q={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(ee||(ee={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(te||(te={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(ne||(ne={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(re||(re={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(ie||(ie={})),function(e){e.filterSensitiveLog=function(e){return Object(ae.a)({},e)}}(oe||(oe={}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(1),i=n(10),o=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(r){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},i=JSON.stringify(w(e,t)),[2,N(t,n,"/",void 0,i)]}))}))},a=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(r){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetId"},i=JSON.stringify(S(e,t)),[2,N(t,n,"/",void 0,i)]}))}))},s=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i,o;return Object(r.d)(this,(function(a){switch(a.label){case 0:return e.statusCode>=300?[2,u(e,t)]:[4,L(e.body,t)];case 1:return n=a.sent(),{},i=D(n,t),o=Object(r.a)({$metadata:M(e)},i),[2,Promise.resolve(o)]}}))}))},u=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i,o,a,s,u,c,l,g,w,S,C,E,_,D;return Object(r.d)(this,(function(O){switch(O.label){case 0:return i=[Object(r.a)({},e)],D={},[4,L(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(D.body=O.sent(),D)])),a="UnknownError",a=U(e,n.body),a){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 s=[{}],[4,f(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 4:return u=[{}],[4,d(n,t)];case 5:return o=r.a.apply(void 0,[r.a.apply(void 0,u.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 6:return c=[{}],[4,h(n,t)];case 7:return o=r.a.apply(void 0,[r.a.apply(void 0,c.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 8:return l=[{}],[4,p(n,t)];case 9:return o=r.a.apply(void 0,[r.a.apply(void 0,l.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 10:return g=[{}],[4,m(n,t)];case 11:return o=r.a.apply(void 0,[r.a.apply(void 0,g.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 12:return w=[{}],[4,v(n,t)];case 13:return o=r.a.apply(void 0,[r.a.apply(void 0,w.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 14:return S=[{}],[4,y(n,t)];case 15:return o=r.a.apply(void 0,[r.a.apply(void 0,S.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 16:return C=[{}],[4,b(n,t)];case 17:return o=r.a.apply(void 0,[r.a.apply(void 0,C.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 18:E=n.body,a=E.code||E.Code||a,o=Object(r.a)(Object(r.a)({},E),{name:""+a,message:E.message||E.Message||a,$fault:"client",$metadata:M(e)}),O.label=19;case 19:return _=o.message||o.Message||a,o.message=_,delete o.Message,[2,Promise.reject(Object.assign(new Error(_),o))]}}))}))},c=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i,o;return Object(r.d)(this,(function(a){switch(a.label){case 0:return e.statusCode>=300?[2,l(e,t)]:[4,L(e.body,t)];case 1:return n=a.sent(),{},i=O(n,t),o=Object(r.a)({$metadata:M(e)},i),[2,Promise.resolve(o)]}}))}))},l=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i,o,a,s,u,c,l,h,w,S,C,E,_,D;return Object(r.d)(this,(function(O){switch(O.label){case 0:return i=[Object(r.a)({},e)],D={},[4,L(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(D.body=O.sent(),D)])),a="UnknownError",a=U(e,n.body),a){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 s=[{}],[4,f(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 4:return u=[{}],[4,d(n,t)];case 5:return o=r.a.apply(void 0,[r.a.apply(void 0,u.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 6:return c=[{}],[4,p(n,t)];case 7:return o=r.a.apply(void 0,[r.a.apply(void 0,c.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 8:return l=[{}],[4,g(n,t)];case 9:return o=r.a.apply(void 0,[r.a.apply(void 0,l.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 10:return h=[{}],[4,m(n,t)];case 11:return o=r.a.apply(void 0,[r.a.apply(void 0,h.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 12:return w=[{}],[4,v(n,t)];case 13:return o=r.a.apply(void 0,[r.a.apply(void 0,w.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 14:return S=[{}],[4,y(n,t)];case 15:return o=r.a.apply(void 0,[r.a.apply(void 0,S.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 16:return C=[{}],[4,b(n,t)];case 17:return o=r.a.apply(void 0,[r.a.apply(void 0,C.concat([O.sent()])),{name:a,$metadata:M(e)}]),[3,19];case 18:E=n.body,a=E.code||E.Code||a,o=Object(r.a)(Object(r.a)({},E),{name:""+a,message:E.message||E.Message||a,$fault:"client",$metadata:M(e)}),O.label=19;case 19:return _=o.message||o.Message||a,o.message=_,delete o.Message,[2,Promise.reject(Object.assign(new Error(_),o))]}}))}))},f=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(o){return n=e.body,i=_(n,t),[2,Object(r.a)({name:"ExternalServiceException",$fault:"client",$metadata:M(e)},i)]}))}))},d=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(o){return n=e.body,i=A(n,t),[2,Object(r.a)({name:"InternalErrorException",$fault:"server",$metadata:M(e)},i)]}))}))},h=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(o){return n=e.body,i=x(n,t),[2,Object(r.a)({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:M(e)},i)]}))}))},p=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(o){return n=e.body,i=k(n,t),[2,Object(r.a)({name:"InvalidParameterException",$fault:"client",$metadata:M(e)},i)]}))}))},g=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(o){return n=e.body,i=T(n,t),[2,Object(r.a)({name:"LimitExceededException",$fault:"client",$metadata:M(e)},i)]}))}))},m=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(o){return n=e.body,i=I(n,t),[2,Object(r.a)({name:"NotAuthorizedException",$fault:"client",$metadata:M(e)},i)]}))}))},v=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(o){return n=e.body,i=P(n,t),[2,Object(r.a)({name:"ResourceConflictException",$fault:"client",$metadata:M(e)},i)]}))}))},y=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(o){return n=e.body,i=F(n,t),[2,Object(r.a)({name:"ResourceNotFoundException",$fault:"client",$metadata:M(e)},i)]}))}))},b=function(e,t){return Object(r.b)(void 0,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(o){return n=e.body,i=j(n,t),[2,Object(r.a)({name:"TooManyRequestsException",$fault:"client",$metadata:M(e)},i)]}))}))},w=function(e,t){return Object(r.a)(Object(r.a)(Object(r.a)({},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:C(e.Logins,t)})},S=function(e,t){return Object(r.a)(Object(r.a)(Object(r.a)({},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:C(e.Logins,t)})},C=function(e,t){return Object.entries(e).reduce((function(e,t){var n,i=Object(r.e)(t,2),o=i[0],a=i[1];return null===a?e:Object(r.a)(Object(r.a)({},e),((n={})[o]=a,n))}),{})},E=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}},_=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},D=function(e,t){return{Credentials:void 0!==e.Credentials&&null!==e.Credentials?E(e.Credentials):void 0,IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},O=function(e,t){return{IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},A=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},x=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},k=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},T=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},I=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},P=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},F=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},j=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},M=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"]}},R=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},N=function(e,t,n,o,a){return Object(r.b)(void 0,void 0,void 0,(function(){var s,u,c,l,f,d;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,e.endpoint()];case 1:return s=r.sent(),u=s.hostname,c=s.protocol,l=void 0===c?"https":c,f=s.port,d={protocol:l,hostname:u,port:f,method:"POST",path:n,headers:t},void 0!==o&&(d.hostname=o),void 0!==a&&(d.body=a),[2,new i.a(d)]}}))}))},L=function(e,t){return function(e,t){return R(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){return e.length?JSON.parse(e):{}}))},U=function(e,t){var n,r,i=function(e){var t=e;return t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find((function(e){return e.toLowerCase()===r.toLowerCase()})));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""}},function(e,t,n){"use strict";t.parse=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},a=e.split(o),u=i.decode||r,c=0;c0})).map((function(e){return null===e||void 0===e?void 0:e.replace(s,"_")})).join("/")},c={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},l=function(e){return{applyToStack:function(t){var n;t.add((n=e,function(e,t){return function(i){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var s,c,l,f,d,h,p,g;return Object(r.__generator)(this,(function(m){switch(m.label){case 0:return s=i.request,o.a.isInstance(s)?(c=s.headers,l=(null===(p=null===t||void 0===t?void 0:t.userAgent)||void 0===p?void 0:p.map(u))||[],[4,n.defaultUserAgentProvider()]):[2,e(i)];case 1:return f=m.sent().map(u),d=(null===(g=null===n||void 0===n?void 0:n.customUserAgent)||void 0===g?void 0:g.map(u))||[],c["x-amz-user-agent"]=Object(r.__spread)(f,l,d).join(" "),h=Object(r.__spread)(f.filter((function(e){return e.startsWith("aws-sdk-")})),d).join(" "),"browser"!==n.runtime&&h&&(c[a]=c[a]?c[a]+" "+h:h),[2,e(Object(r.__assign)(Object(r.__assign)({},i),{request:s}))]}}))}))}}),c)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n(4),i=function(e){var t;return Object(r.__assign)(Object(r.__assign)({},e),{tls:null===(t=e.tls)||void 0===t||t,endpoint:e.endpoint?o(e):function(){return a(e)},isCustomEndpoint:!!e.endpoint})},o=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 i=Promise.resolve(t);return function(){return i}}return t},a=function(e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,i,o,a;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return t=e.tls,n=void 0===t||t,[4,e.region()];case 1:if(i=r.sent(),!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(i))throw new Error("Invalid region in client config");return[4,e.regionInfoProvider(i)];case 2:if(!(o=(null!==(a=r.sent())&&void 0!==a?a:{}).hostname))throw new Error("Cannot resolve hostname from client config");return[2,e.urlParser((n?"https:":"http:")+"//"+o)]}}))}))},s=function(e){if(!e.region)throw new Error("Region is missing");return Object(r.__assign)(Object(r.__assign)({},e),{region:u(e.region)})},u=function(e){if("string"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}},function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(0),a=(n(11),n(7)),s=n(100),u=n(9),c=n(13),l=n(85),f=n(99),d=o.forwardRef((function(e,t){var n=e.children,u=e.classes,d=e.className,h=e.color,p=void 0===h?"primary":h,g=e.component,m=void 0===g?"div":g,v=e.disabled,y=void 0!==v&&v,b=e.error,w=void 0!==b&&b,S=e.fullWidth,C=void 0!==S&&S,E=e.focused,_=e.hiddenLabel,D=void 0!==_&&_,O=e.margin,A=void 0===O?"none":O,x=e.required,k=void 0!==x&&x,T=e.size,I=e.variant,P=void 0===I?"standard":I,F=Object(i.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),j=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){if(Object(l.a)(t,["Input","Select"])){var n=Object(l.a)(t,["Select"])?t.props.input:t;n&&Object(s.a)(n.props)&&(e=!0)}})),e})),M=j[0],R=j[1],N=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){Object(l.a)(t,["Input","Select"])&&Object(s.b)(t.props,!0)&&(e=!0)})),e})),L=N[0],U=N[1],B=o.useState(!1),z=B[0],V=B[1],H=void 0!==E?E:z;y&&H&&V(!1);var W=o.useCallback((function(){U(!0)}),[]),K={adornedStart:M,setAdornedStart:R,color:p,disabled:y,error:w,filled:L,focused:H,fullWidth:C,hiddenLabel:D,margin:("small"===T?"dense":void 0)||A,onBlur:function(){V(!1)},onEmpty:o.useCallback((function(){U(!1)}),[]),onFilled:W,onFocus:function(){V(!0)},registerEffect:undefined,required:k,variant:P};return o.createElement(f.a.Provider,{value:K},o.createElement(m,Object(r.a)({className:Object(a.a)(u.root,d,"none"!==A&&u["margin".concat(Object(c.a)(A))],C&&u.fullWidth),ref:t},F),n))}));t.a=Object(u.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(d)},,,,,,function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=0)}({"./xmlParser.js":function(e,t){function n(e,t){for(var n=0;n/g,">\n").replace(/\]\]/g,"]]\n"),r=[];return n.split("\n").map((function(e){if((e=e.trim())&&!(e.indexOf("?xml")>-1))if(0==e.indexOf("<")&&e.indexOf("CDATA")<0){var n=t._parseTag(e);r.push(n),e.match(/\/\s*>$/)&&r.push(t._parseTag(""))}else r[r.length-1].value+=" ".concat(t._parseValue(e))})),this._convertTagsArrayToTree(r)[0]}},{key:"_encodeCDATAValues",value:function(e){for(var t=new RegExp(/1&&(e=e.replace(n[1],encodeURIComponent(n[1]))),n=t.exec(e);return e}},{key:"_getElementsByTagName",value:function(e){var t=[];return"*"!=e&&this.name.toLowerCase()!==e.toLowerCase()||t.push(this),this.children.map((function(n){t=t.concat(n.getElementsByTagName(e))})),t}},{key:"_parseTag",value:function(e,t){var n=e.match(/([^\s]*)=('([^']*?)'|"([^"]*?)")|([\/?\w\-\:]+)/g),r={name:n.shift().replace(/\/\s*$/,""),attributes:{},children:[],value:"",getElementsByTagName:this._getElementsByTagName};return n.map((function(e){var t=e.split("=");if(!(t.length<2)){var n=t[0],i="";i=2===t.length?t[1]:(t=t.slice(1)).join("="),r.attributes[n]="string"==typeof i?i.replace(/^"/g,"").replace(/^'/g,"").replace(/"$/g,"").replace(/'$/g,"").trim():i}})),r}},{key:"_parseValue",value:function(e){return e.indexOf("CDATA")<0?e.trim():e.substring(e.lastIndexOf("[")+1,e.indexOf("]"))}},{key:"_convertTagsArrayToTree",value:function(e){for(var t=[];e.length>0;){var n=e.shift();if(n.value.indexOf("-1||n.name.match(/\/$/))n.name=n.name.replace(/\/$/,"").trim(),n.value=n.value.substring(0,n.value.indexOf("0&&(e.children.map((function(e){n+=t._toString(e)})),n+=""),n}},{key:"_convertTagToText",value:function(e){var t="<"+e.name;for(var n in e.attributes)t+=" "+n+'="'+e.attributes[n]+'"';return e.value.length>0?t+=">"+e.value:t+=">",0===e.children.length&&(t+=""),t}},{key:"parseFromString",value:function(e){return this._parseFromString(e)}},{key:"toString",value:function(e){return this._toString(e)}}])&&n(t.prototype,r),i&&n(t,i),e}()},0:function(e,t,n){e.exports=n("./xmlParser.js")}})},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=3e5&&(e.systemClockOffset=p-Date.now())),[2,c]}var v,y}))}))}}}var l={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},f=function(e){return{applyToStack:function(t){t.addRelativeTo(c(e),l)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=function(){for(var e=[],t=0;t=a){var u=console.log.bind(console);"ERROR"===t&&console.error&&(u=console.error.bind(console)),"WARN"===t&&console.warn&&(u=console.warn.bind(console));var c="["+t+"] "+this._ts()+" "+this.name;if(1===n.length&&"string"===typeof n[0])u(c+" - "+n[0]);else if(1===n.length)u(c,n[0]);else if("string"===typeof n[0]){var l=n.slice(1);1===l.length&&(l=l[0]),u(c+" - "+n[0],l)}else u(c,n)}},e.prototype.log=function(){for(var e=[],t=0;t))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var a={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};t.defaultOptions=a;var s=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];function u(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=l(t=n.tagValueProcessor(t,e),n.parseNodeValue,n.parseTrueNumberOnly)),t}function c(e,t){if(t.ignoreNameSpace){var n=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===n[0])return"";2===n.length&&(e=r+n[1])}return e}function l(e,t,n){var i;return t&&"string"===typeof e?(""===e.trim()||isNaN(e)?i="true"===e||"false"!==e&&e:(-1!==e.indexOf("0x")?i=Number.parseInt(e,16):-1!==e.indexOf(".")?(i=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):i=Number.parseInt(e,10),n&&(i=String(i)===e?i:e)),i):r.isExist(e)?e:""}t.props=s;var f=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function d(e,t){if(!t.ignoreAttributes&&"string"===typeof e){e=e.replace(/\r?\n/g," ");for(var n=r.getAllMatches(e,f),i=n.length,o={},a=0;a"===o)return{data:r,index:i};"\t"===o&&(o=" ")}r+=o}}function p(e,t,n,r){var i=e.indexOf(t,n);if(-1===i)throw new Error(r);return i+t.length-1}t.getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n"),t=i(t,a,s);for(var n=new o("!xml"),c=n,l="",f=0;f",f,"Closing Tag is not closed."),m=e.substring(f+2,g).trim();if(t.ignoreNameSpace){var v=m.indexOf(":");-1!==v&&(m=m.substr(v+1))}c&&(c.val?c.val=r.getValue(c.val)+""+u(m,l,t):c.val=u(m,l,t)),t.stopNodes.length&&t.stopNodes.includes(c.tagname)&&(c.child=[],void 0==c.attrsMap&&(c.attrsMap={}),c.val=e.substr(c.startIndex+1,f-c.startIndex-1)),c=c.parent,l="",f=g}else if("?"===e[f+1])f=p(e,"?>",f,"Pi Tag is not closed.");else if("!--"===e.substr(f+1,3))f=p(e,"--\x3e",f,"Comment is not closed.");else if("!D"===e.substr(f+1,2)){var y=p(e,">",f,"DOCTYPE is not closed.");f=e.substring(f,y).indexOf("[")>=0?e.indexOf("]>",f)+1:y}else if("!["===e.substr(f+1,2)){var b=p(e,"]]>",f,"CDATA is not closed.")-2,w=e.substring(f+9,b);if(l&&(c.val=r.getValue(c.val)+""+u(c.tagname,l,t),l=""),t.cdataTagName){var S=new o(t.cdataTagName,c,w);c.addChild(S),c.val=r.getValue(c.val)+t.cdataPositionChar,w&&(S.val=w)}else c.val=(c.val||"")+(w||"");f=b+2}else{var C=h(e,f+1),E=C.data,_=C.index,D=E.indexOf(" "),O=E,A=!0;if(-1!==D&&(O=E.substr(0,D).replace(/\s\s*$/,""),E=E.substr(D+1)),t.ignoreNameSpace){var x=O.indexOf(":");-1!==x&&(A=(O=O.substr(x+1))!==C.data.substr(x+1))}if(c&&l&&"!xml"!==c.tagname&&(c.val=r.getValue(c.val)+""+u(c.tagname,l,t)),E.length>0&&E.lastIndexOf("/")===E.length-1){E="/"===O[O.length-1]?O=O.substr(0,O.length-1):E.substr(0,E.length-1);var k=new o(O,c,"");O!==E&&(k.attrsMap=d(E,t)),c.addChild(k)}else{var T=new o(O,c);t.stopNodes.length&&t.stopNodes.includes(T.tagname)&&(T.startIndex=_),O!==E&&A&&(T.attrsMap=d(E,t)),c.addChild(T),c=T}l="",f=_}else l+=e[f]}return n}},function(e,t,n){"use strict";function r(e,t,n,r,i){return null}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return hr}));var r=n(78),i=n(56),o=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},a=function(){for(var e=[],t=0;t=o){var u=console.log.bind(console);"ERROR"===t&&console.error&&(u=console.error.bind(console)),"WARN"===t&&console.warn&&(u=console.warn.bind(console));var c="["+t+"] "+this._ts()+" "+this.name;if(1===n.length&&"string"===typeof n[0])u(c+" - "+n[0]);else if(1===n.length)u(c,n[0]);else if("string"===typeof n[0]){var l=n.slice(1);1===l.length&&(l=l[0]),u(c+" - "+n[0],l)}else u(c,n)}},e.prototype.log=function(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},h=new u("Amplify"),p=new(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.Logger=u,this.ServiceWorker=null}return e.prototype.register=function(e){h.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):h.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),h.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=d(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}()),g=n(270),m=n(178),v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=r;if("+"!==a&&a!==s)return!1}return r===i.length})(r,e)&&n.push(t)}));var r=JSON.parse(t);"object"===typeof r&&(r[A]=e),n.forEach((function(e){e.forEach((function(e){return e.next(r)}))}))}catch(i){D.warn("Error handling message",i,t)}},t.prototype.subscribe=function(e,t){var n=this;void 0===t&&(t={});var i=[].concat(e);return D.debug("Subscribing to topic(s)",i.join(",")),new r.a((function(e){var r;i.forEach((function(t){var r=n._topicObservers.get(t);r||(r=new Set,n._topicObservers.set(t,r)),r.add(e)}));var o=t.clientId,a=void 0===o?n.clientId:o,s=n._clientIdObservers.get(a);return s||(s=new Set),s.add(e),n._clientIdObservers.set(a,s),C(n,void 0,void 0,(function(){var n,o,s,u;return E(this,(function(c){switch(c.label){case 0:return void 0!==(n=t.url)?[3,2]:[4,this.endpoint];case 1:return s=c.sent(),[3,3];case 2:s=n,c.label=3;case 3:o=s,c.label=4;case 4:return c.trys.push([4,6,,7]),[4,this.connect(a,{url:o})];case 5:return r=c.sent(),i.forEach((function(e){r.subscribe(e)})),[3,7];case 6:return u=c.sent(),e.error(u),[3,7];case 7:return[2]}}))})),function(){return D.debug("Unsubscribing from topic(s)",i.join(",")),r&&(n._clientIdObservers.get(a).delete(e),0===n._clientIdObservers.get(a).size&&(n.disconnect(a),n._clientIdObservers.delete(a)),i.forEach((function(t){var i=n._topicObservers.get(t)||new Set;i.delete(e),0===i.size&&(n._topicObservers.delete(t),r.isConnected()&&r.unsubscribe(t))}))),null}}))},t}(b),k=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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())}))},I=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},j=function(){for(var e=[],t=0;t-1}));if(r){var i=r.client,o=r.url;e[i]||(e[i]={url:o,topics:new Set}),e[i].topics.add(t)}return e}),{})),[4,Promise.all(s.map((function(e){var t=F(e,2),n=t[0],i=t[1],o=i.url,a=i.topics;return T(u,void 0,void 0,(function(){var e,t,i=this;return I(this,(function(s){switch(s.label){case 0:e=null,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.connect(n,{clientId:n,url:o})];case 2:return e=s.sent(),[3,4];case 3:return t=s.sent(),r.error({message:"Failed to connect",error:t}),r.complete(),[2,void 0];case 4:return a.forEach((function(t){e.isConnected()&&(e.subscribe(t),i._topicClient.set(t,e))})),[2,e]}}))}))})))];case 1:return c.sent(),[2]}}))})),function(){M.debug("Unsubscribing from topic(s)",i.join(",")),i.forEach((function(e){var t=n._topicClient.get(e);t&&t.isConnected()&&(t.unsubscribe(e),n._topicClient.delete(e),Array.from(n._topicClient.values()).some((function(e){return e===t}))||n.disconnect(t.clientId)),n._topicObservers.delete(e)}))}}));return r.a.from(i).map((function(e){var t=n.getTopicForValue(e),r=n._topicAlias.get(t);return e.data=Object.entries(e.data).reduce((function(e,t){var n=F(t,2),i=n[0],o=n[1];return e[r||i]=o,e}),{}),e}))},t}(x),N=n(138),L=n(14),U=n(12),B=function(){return(B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},V=function(){for(var e=[],t=0;t-1)&&(r===W||H.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var i={channel:e,payload:B({},t),source:n,patternInfo:[]};try{this._toListeners(i)}catch(o){H.error(o)}},e.prototype.listen=function(e,t,n){var r,i=this;if(void 0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(t))H.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 o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:n,callback:r})}return function(){i.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){H.debug("Dispatching to "+t+" with ",n);try{r.callback(e)}catch(i){H.error(i)}})),this.patterns.length>0){if(!n.message)return void H.warn("Cannot perform pattern matching without a message key");var i=n.message;this.patterns.forEach((function(t){var n=i.match(t.pattern);if(n){var r=z(n).slice(1),o=B(B({},e),{patternInfo:r});try{t.callback(o)}catch(a){H.error(a)}}}))}},e}())("__default__"),G="aws-amplify/3.8.23",q={userAgent:G+" js",product:"",navigator:null,isReactNative:!1};if("undefined"!==typeof navigator&&navigator.product)switch(q.product=navigator.product||"",q.navigator=navigator||null,navigator.product){case"ReactNative":q.userAgent=G+" react-native",q.isReactNative=!0;break;default:q.userAgent=G+" js",q.isReactNative=!1}var Y=function(){return q.userAgent},$=new u("I18n"),J=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),$.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"undefined"!==typeof 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||("undefined"!==typeof 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}(),X=new u("I18n"),Z=null,Q=null,ee=function(){function e(){}return e.configure=function(t){return X.debug("configure I18n"),t?(Z=Object.assign({},Z,t.I18n||t),e.createInstance(),Z):Z},e.getModuleName=function(){return"I18n"},e.createInstance=function(){X.debug("create I18n instance"),Q||(Q=new J(Z))},e.setLanguage=function(t){return e.checkConfig(),Q.setLanguage(t)},e.get=function(t,n){return e.checkConfig()?Q.get(t,n):"undefined"===typeof n?t:n},e.putVocabulariesForLanguage=function(t,n){return e.checkConfig(),Q.putVocabulariesForLanguage(t,n)},e.putVocabularies=function(t){return e.checkConfig(),Q.putVocabularies(t)},e.checkConfig=function(){return Q||(Q=new J(Z)),!0},e}();p.register(ee);var te={},ne=function(){function e(){}return e.setItem=function(e,t){return te[e]=t,te[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(te,e)?te[e]:void 0},e.removeItem=function(e){return delete te[e]},e.clear=function(){return te={}},e}(),re=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=ne}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),ie=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oe=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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())}))},ae=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ue=function(){for(var e=[],t=0;te)&&n}}(n))},he=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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())}))},pe=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1](new Date).getTime()?(Pe.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:i,expires_at:o})):a._refreshHandlers[t]&&"function"===typeof a._refreshHandlers[t]?(Pe.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:a._refreshHandlers[t],provider:t,user:n})):(Pe.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,i=e.user;return de(n,[],1e4).then((function(e){return Pe.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:i,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(),Pe.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return Pe.debug("no credentials for expiration check"),!0;Pe.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(){return Te(this,void 0,void 0,(function(){var e,t,n,r,i,o,a,s,u=this;return Ie(this,(function(c){switch(c.label){case 0:if(Pe.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,n=e.region,e.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!t)return Pe.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!n)return Pe.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];r=void 0,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._storageSync];case 2:return c.sent(),r=this._storage.getItem("CognitoIdentityId-"+t),this._identityId=r,[3,4];case 3:return i=c.sent(),Pe.debug("Failed to get the cached identityId",i),[3,4];case 4:return o=new Ae.a({region:n,customUserAgent:Y()}),a=void 0,r?(s={identityId:r,client:o},a=Object(De.a)(s)()):a=function(){return Te(u,void 0,void 0,(function(){var e,n;return Ie(this,(function(r){switch(r.label){case 0:return[4,o.send(new xe.a({IdentityPoolId:t}))];case 1:return e=r.sent().IdentityId,this._identityId=e,n={client:o,identityId:e},[2,Object(De.a)(n)()]}}))}))}().catch((function(e){return Te(u,void 0,void 0,(function(){return Ie(this,(function(t){throw e}))}))})),[2,this._loadCredentials(a,"guest",!1,null).then((function(e){return e})).catch((function(e){return Te(u,void 0,void 0,(function(){var n=this;return Ie(this,(function(i){return"ResourceNotFoundException"===e.name&&e.message==="Identity '"+r+"' not found."?(Pe.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+t),a=function(){return Te(n,void 0,void 0,(function(){var e,n;return Ie(this,(function(r){switch(r.label){case 0:return[4,o.send(new xe.a({IdentityPoolId:t}))];case 1:return e=r.sent().IdentityId,this._identityId=e,n={client:o,identityId:e},[2,Object(De.a)(n)()]}}))}))}().catch((function(e){return Te(n,void 0,void 0,(function(){return Ie(this,(function(t){throw e}))}))})),[2,this._loadCredentials(a,"guest",!1,null)]):[2,e]}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,i={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!i)return Promise.reject("You must specify a federated provider");var o={};o[i]=n;var a=this._config,s=a.identityPoolId,u=a.region;if(!s)return Pe.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!u)return Pe.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var c=new Ae.a({region:u,customUserAgent:Y()}),l=void 0;if(r){var f={identityId:r,logins:o,client:c};l=Object(De.a)(f)()}else{f={logins:o,identityPoolId:s,client:c};l=Object(Oe.a)(f)()}return this._loadCredentials(l,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;Pe.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,i=r.region,o=r.userPoolId,a=r.identityPoolId;if(!a)return Pe.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!i)return Pe.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var s={};s["cognito-idp."+i+".amazonaws.com/"+o]=n;var u=new Ae.a({region:i,customUserAgent:Y()}),c=Te(t,void 0,void 0,(function(){var e,t;return Ie(this,(function(n){switch(n.label){case 0:return[4,u.send(new xe.a({IdentityPoolId:a,Logins:s}))];case 1:return e=n.sent().IdentityId,this._identityId=e,t={client:u,logins:s,identityId:e},[2,Object(De.a)(t)()]}}))})).catch((function(e){return Te(t,void 0,void 0,(function(){return Ie(this,(function(t){throw e}))}))}));return this._loadCredentials(c,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var i=this,o=this,a=this._config.identityPoolId;return new Promise((function(s,u){e.then((function(e){return Te(i,void 0,void 0,(function(){var i,u,c,l,f,d;return Ie(this,(function(h){switch(h.label){case 0:if(Pe.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=n,o._credentials_source=t,o._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===t){i=Object.assign({id:this._credentials.identityId},r.user),u=r.provider,c=r.token,l=r.expires_at,f=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:u,token:c,user:i,expires_at:l,identity_id:f}))}catch(p){Pe.debug("Failed to put federated info into auth storage",p)}}if("guest"!==t)return[3,4];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,this._storageSync];case 2:return h.sent(),this._storage.setItem("CognitoIdentityId-"+a,e.identityId),[3,4];case 3:return d=h.sent(),Pe.debug("Failed to cache identityId",d),[3,4];case 4:return s(o._credentials),[2]}}))}))})).catch((function(t){if(t)return Pe.debug("Failed to load credentials",e),Pe.debug("Error loading credentials",t),void u(t)}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(Pe.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return Te(this,void 0,void 0,(function(){return Ie(this,(function(e){return this._credentials=null,this._credentials_source=null,Pe.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);p.register(Fe);var je={userAgent:q.userAgent},Me=n(120),Re=n(24),Ne=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Le={clockOffset:0,getDateWithClockOffset:function(){return Le.clockOffset?new Date((new Date).getTime()+Le.clockOffset):new Date},getClockOffset:function(){return Le.clockOffset},getHeaderStringFromDate:function(e){return void 0===e&&(e=Le.getDateWithClockOffset()),e.toISOString().replace(/[:\-]|\.\d{3}/g,"")},getDateFromHeaderString:function(e){var t=Ne(e.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/),7),n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6];return new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(o),Number(a),Number(s)))},isClockSkewed:function(e){return Math.abs(e.getTime()-Le.getDateWithClockOffset().getTime())>=3e5},isClockSkewError:function(e){if(!e.response||!e.response.headers)return!1;var t=e.response.headers;return Boolean("BadRequestException"===t["x-amzn-errortype"]&&(t.date||t.Date))},setClockOffset:function(e){Le.clockOffset=e}},Ue=function(){return(Ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;n-=1){var r=e.charCodeAt(n);r>127&&r<=2047?t+=1:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&(n-=1)}return t}function tt(){return(new Date).getTime()}function nt(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var rt,it,ot={},at=(function(){function e(){}e.clear=function(){ot={}},e.getItem=function(e){return ot[e]||null},e.setItem=function(e,t){ot[e]=t},e.removeItem=function(e){delete ot[e]}}(),new u("StorageCache")),st=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){nt(this.config.capacityInBytes)||(at.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=Qe.capacityInBytes),nt(this.config.itemMaxSize)||(at.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=Qe.itemMaxSize),nt(this.config.defaultTTL)||(at.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=Qe.defaultTTL),nt(this.config.defaultPriority)||(at.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=Qe.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(at.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=Qe.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(at.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=Qe.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(at.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=Qe.warningThreshold);this.config.capacityInBytes>5242880&&(at.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=Qe.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,n){var r={key:e,data:t,timestamp:tt(),visitedTime:tt(),priority:n.priority,expires:n.expires,type:typeof t,byteSize:0};return r.byteSize=et(JSON.stringify(r)),r.byteSize=et(JSON.stringify(r)),r},e.prototype.configure=function(e){return e?(e.keyPrefix&&at.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),ut=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ct=new u("Cache"),lt=new(function(e){function t(t){var n=this,r=t?Object.assign({},Qe,t):Qe;return(n=e.call(this,r)||this).config.storage=r.storage,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind(n),n.removeItem=n.removeItem.bind(n),n}return ut(t,e),t.prototype._decreaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t-e).toString())},t.prototype._increaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t+e).toString())},t.prototype._refreshItem=function(e,t){return e.visitedTime=tt(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var t=this.config.storage.getItem(e),n=JSON.parse(t);return tt()>=n.expires},t.prototype._removeItem=function(e,t){var n=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(n),this.config.storage.removeItem(e)},t.prototype._setItem=function(e,t){this._increaseCurSizeInBytes(t.byteSize);try{this.config.storage.setItem(e,JSON.stringify(t))}catch(n){this._decreaseCurSizeInBytes(t.byteSize),ct.error("Failed to set item "+n)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,n=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>n?t:n},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],n=0;nt.priority?-1:e.priority5)ct.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(r,t,i);if(o.byteSize>this.config.itemMaxSize)ct.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var a=this.config.storage.getItem(r);if(a&&this._removeItem(r,JSON.parse(a).byteSize),this._isCacheFull(o.byteSize)){var s=this._findValidKeys();if(this._isCacheFull(o.byteSize)){var u=this._sizeToPop(o.byteSize);this._popOutItems(s,u)}}this._setItem(r,o)}catch(c){ct.warn("setItem failed! "+c)}}}else ct.warn("The value of item should not be undefined!");else ct.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){ct.log("Get item: key is "+e+" with options "+t);var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||r===this.cacheCurSizeKey)return ct.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(n=this.config.storage.getItem(r))){if(!this._isExpired(r)){var i=JSON.parse(n);return(i=this._refreshItem(i,r)).data}this._removeItem(r,JSON.parse(n).byteSize),n=null}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null}catch(a){return ct.warn("getItem failed! "+a),null}},t.prototype.removeItem=function(e){ct.log("Remove item: key is "+e);var t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!==this.cacheCurSizeKey)try{var n=this.config.storage.getItem(t);n&&this._removeItem(t,JSON.parse(n).byteSize)}catch(r){ct.warn("removeItem failed! "+r)}},t.prototype.clear=function(){ct.log("Clear Cache");for(var e=[],t=0;t>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(this)},e}(),It=Pt;function Pt(e,t){null!=e&&this.fromString(e,t)}function Ft(){return new Pt(null)}var jt="undefined"!==typeof navigator;jt&&"Microsoft Internet Explorer"==navigator.appName?(Pt.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},kt=30):jt&&"Netscape"!=navigator.appName?(Pt.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},kt=26):(Pt.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},kt=28),Pt.prototype.DB=kt,Pt.prototype.DM=(1<>>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 Vt(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},Vt.prototype.revert=function(e){var t=Ft();return e.copyTo(t),this.reduce(t),t},Vt.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(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)},Vt.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},Vt.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},Pt.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},Pt.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},Pt.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,i=!1,o=0;--r>=0;){var a=Ut(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}this.clamp(),i&&Pt.ZERO.subTo(this,this)},Pt.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},Pt.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},Pt.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},Pt.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,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=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()},Pt.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=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()},Pt.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var c=o.t,l=o[c-1];if(0!=l){var f=l*(1<1?o[c-2]>>this.F2:0),d=this.FV/f,h=(1<=0&&(n[n.t++]=1,n.subTo(v,n)),Pt.ONE.dlShiftTo(c,v),v.subTo(o,o);o.t=0;){var y=n[--g]==l?this.DM:Math.floor(n[g]*d+(n[g-1]+p)*h);if((n[g]+=o.am(0,y,n,m,0,c))0&&n.rShiftTo(u,n),a<0&&Pt.ZERO.subTo(n,n)}}},Pt.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},Pt.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=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()},Pt.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<0)for(s>s)>0&&(i=!0,o=Lt(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=Lt(n));return i?o:"0"},Pt.prototype.negate=function(){var e=Ft();return Pt.ZERO.subTo(this,e),e},Pt.prototype.abs=function(){return this.s<0?this.negate():this},Pt.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},Pt.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+zt(this[this.t-1]^this.s&this.DM)},Pt.prototype.mod=function(e){var t=Ft();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Pt.ZERO)>0&&e.subTo(t,t),t},Pt.prototype.equals=function(e){return 0==this.compareTo(e)},Pt.prototype.add=function(e){var t=Ft();return this.addTo(e,t),t},Pt.prototype.subtract=function(e){var t=Ft();return this.subTo(e,t),t},Pt.prototype.multiply=function(e){var t=Ft();return this.multiplyTo(e,t),t},Pt.prototype.divide=function(e){var t=Ft();return this.divRemTo(e,t,null),t},Pt.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=Bt(1),a=new Vt(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6;var s=new Array,u=3,c=r-1,l=(1<1){var f=Ft();for(a.sqrTo(s[1],f);u<=l;)s[u]=Ft(),a.mulTo(f,s[u-2],s[u]),u+=2}var d,h,p=e.t-1,g=!0,m=Ft();for(i=zt(e[p])-1;p>=0;){for(i>=c?d=e[p]>>i-c&l:(d=(e[p]&(1<0&&(d|=e[p-1]>>this.DB+i-c)),u=r;0==(1&d);)d>>=1,--u;if((i-=u)<0&&(i+=this.DB,--p),g)s[d].copyTo(o),g=!1;else{for(;u>1;)a.sqrTo(o,m),a.sqrTo(m,o),u-=2;u>0?a.sqrTo(o,m):(h=o,o=m,m=h),a.mulTo(m,s[d],o)}for(;p>=0&&0==(e[p]&1<0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},kn="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Tn=function(e,t,n){K.dispatch("auth",{event:e,data:t,message:n},"Auth",kn)},In=new u("OAuth"),Pn=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,i=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||_n,this._config=t,this._cognitoClientId=n,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}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,i,o){void 0===e&&(e="code"),void 0===i&&(i=rt.Cognito);var a=this._generateState(32),s=o?a+"-"+o.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,c=this._generateRandom(128);u=c,window.sessionStorage.setItem("ouath_pkce_key",u);var l=this._generateChallenge(c),f=this._scopes.join(" "),d="https://"+t+"/oauth2/authorize?"+Object.entries(Dn(Dn({redirect_uri:n,response_type:e,client_id:r,identity_provider:i,scope:f,state:s},"code"===e?{code_challenge:l}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=xn(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&");In.debug("Redirecting to "+d),this._urlOpener(d,n)},e.prototype._handleCodeFlow=function(e){return On(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,u,c,l,f,d,h,p;return An(this,(function(g){switch(g.label){case 0:return t=(Object(L.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=xn(t,2),i=r[0],o=r[1];return Dn(Dn({},e),((n={})[i]=o,n))}),{code:void 0}).code,n=Object(L.parse)(e).pathname||"/",r=Object(L.parse)(this._config.redirectSignIn).pathname||"/",t&&n===r?(i="https://"+this._config.domain+"/oauth2/token",Tn("codeFlow",{},"Retrieving tokens from "+i),o=ht(this._config)?this._cognitoClientId:this._config.clientID,a=ht(this._config)?this._config.redirectSignIn:this._config.redirectUri,s=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e}(),u=Dn({grant_type:"authorization_code",code:t,client_id:o,redirect_uri:a},s?{code_verifier:s}:{}),In.debug("Calling token endpoint: "+i+" with",u),c=Object.entries(u).map((function(e){var t=xn(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),[4,fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:c})]):[2];case 1:return[4,g.sent().json()];case 2:if(l=g.sent(),f=l.access_token,d=l.refresh_token,h=l.id_token,p=l.error)throw new Error(p);return[2,{accessToken:f,refreshToken:d,idToken:h}]}}))}))},e.prototype._handleImplicitFlow=function(e){return On(this,void 0,void 0,(function(){var t,n,r;return An(this,(function(i){return t=(Object(L.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=xn(t,2),i=r[0],o=r[1];return Dn(Dn({},e),((n={})[i]=o,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,Tn("implicitFlow",{},"Got tokens from "+e),In.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return On(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return An(this,(function(u){switch(u.label){case 0:if(u.trys.push([0,5,,6]),t=e?Dn(Dn({},(Object(L.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=xn(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})),(Object(L.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=xn(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return i=this._validateState(t),In.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(o=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,Dn.apply(void 0,[Dn.apply(void 0,o.concat([u.sent()])),{state:i}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,Dn.apply(void 0,[Dn.apply(void 0,a.concat([u.sent()])),{state:i}])];case 4:return[3,6];case 5:throw s=u.sent(),In.error("Error handling auth response.",s),s;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e}(),n=e.state;if(t&&t!==n)throw new Error("Invalid state in OAuth flow");return n}},e.prototype.signOut=function(){return On(this,void 0,void 0,(function(){var e,t,n;return An(this,(function(r){return e="https://"+this._config.domain+"/logout?",t=ht(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=ht(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=xn(e,2);return t[0]+"="+t[1]})).join("&"),Tn("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),In.debug("Signing out from "+e),[2,this._urlOpener(e)]}))}))},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){return this._base64URL(Dt()(e))},e.prototype._base64URL=function(e){return e.toString(Qt.a).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;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Vn=new u("AuthClass"),Hn="aws.cognito.signin.user.admin",Wn="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Kn=function(e,t,n){K.dispatch("auth",{event:e,data:t,message:n},"Auth",Wn)},Gn=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=Fe,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?Kn("tokenRefresh",void 0,"New token retrieved"):Kn("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),K.listen("auth",(function(e){switch(e.payload.event){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||{};Vn.debug("configure Auth");var n=Object.assign({},this._config,mt.parseMobilehubConfig(e).Auth,e);this._config=n;var r=this._config,o=r.userPoolId,a=r.userPoolWebClientId,s=r.cookieStorage,u=r.oauth,c=r.region,l=r.identityPoolId,f=r.mandatorySignIn,d=r.refreshHandlers,h=r.identityPoolRegion,p=r.clientMetadata,g=r.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw Vn.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=s?new En(s):e.ssr?new bt:(new re).getStorage();if(this._storageSync=Promise.resolve(),"function"===typeof this._storage.sync&&(this._storageSync=this._storage.sync()),o){var m={UserPoolId:o,ClientId:a,endpoint:g};m.Storage=this._storage,this.userPool=new Sn(m,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:f,region:h||c,userPoolId:o,identityPoolId:l,refreshHandlers:d,storage:this._storage});var v=u?ht(this._config.oauth)?u:u.awsCognito:void 0;if(v){var y=Object.assign({cognitoClientId:a,UserPoolId:o,domain:v.domain,scopes:v.scope,redirectSignIn:v.redirectSignIn,redirectSignOut:v.redirectSignOut,responseType:v.responseType,Storage:this._storage,urlOpener:v.urlOpener,clientMetadata:p},v.options);this._oAuthHandler=new Pn({scopes:y.scopes,config:y,cognitoClientId:y.cognitoClientId});var b={};!function(e){if(i.a.browserOrNode().isBrowser&&window.location)e({url:window.location.href});else if(!i.a.browserOrNode().isNode)throw new Error("Not supported")}((function(e){var n=e.url;b[n]||(b[n]=!0,t._handleAuthResponse(n))}))}return Kn("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,n=[],r=1;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},rr=new u("AWSAppSyncRealTimeProvider"),ir="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",or=[400,401,403];!function(e){e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_START="start",e.GQL_START_ACK="start_ack",e.GQL_DATA="data",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_STOP="stop",e.GQL_COMPLETE="complete",e.GQL_ERROR="error"}(qn||(qn={})),function(e){e[e.PENDING=0]="PENDING",e[e.CONNECTED=1]="CONNECTED",e[e.FAILED=2]="FAILED"}(Yn||(Yn={})),function(e){e[e.CLOSED=0]="CLOSED",e[e.READY=1]="READY",e[e.CONNECTING=2]="CONNECTING"}($n||($n={}));var ar={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},sr=3e5,ur=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.socketStatus=$n.CLOSED,t.keepAliveTimeout=sr,t.subscriptionObserverMap=new Map,t.promiseArray=[],t}return Zn(t,e),t.prototype.getProviderName=function(){return"AWSAppSyncRealTimeProvider"},t.prototype.newClient=function(){throw new Error("Not used here")},t.prototype.publish=function(e,t,n){return er(this,void 0,void 0,(function(){return tr(this,(function(e){throw new Error("Operation not supported")}))}))},t.prototype.subscribe=function(e,t){var n=this,i=t.appSyncGraphqlEndpoint;return new r.a((function(e){if(i){var r=Object(m.v4)();return n._startSubscriptionWithAWSAppSyncRealTime({options:t,observer:e,subscriptionId:r}).catch((function(t){e.error({errors:[Qn({},new N.a(Xn.a.REALTIME_SUBSCRIPTION_INIT_ERROR+": "+t))]}),e.complete()})),function(){return er(n,void 0,void 0,(function(){var e,t;return tr(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),[4,this._waitForSubscriptionToBeConnected(r)];case 1:if(n.sent(),!(e=(this.subscriptionObserverMap.get(r)||{}).subscriptionState))return[2];if(e!==Yn.CONNECTED)throw new Error("Subscription never connected");return this._sendUnsubscriptionMessage(r),[3,4];case 2:return t=n.sent(),rr.debug("Error while unsubscribing "+t),[3,4];case 3:return this._removeSubscriptionObserver(r),[7];case 4:return[2]}}))}))}}e.error({errors:[Qn({},new N.a("Subscribe only available for AWS AppSync endpoint"))]}),e.complete()}))},Object.defineProperty(t.prototype,"isSSLEnabled",{get:function(){return!this.options.aws_appsync_dangerously_connect_to_http_endpoint_for_testing},enumerable:!0,configurable:!0}),t.prototype._startSubscriptionWithAWSAppSyncRealTime=function(e){var t=e.options,n=e.observer,r=e.subscriptionId;return er(this,void 0,void 0,(function(){var e,i,o,a,s,u,c,l,f,d,h,p,g,m,v,y,b,w,S,C,E,_,D,O,A,x,k=this;return tr(this,(function(T){switch(T.label){case 0:return e=t.appSyncGraphqlEndpoint,i=t.authenticationType,o=t.query,a=t.variables,s=t.apiKey,u=t.region,c=t.graphql_headers,l=void 0===c?function(){return{}}:c,f=t.additionalHeaders,d=void 0===f?{}:f,h=Yn.PENDING,p={query:o,variables:a},this.subscriptionObserverMap.set(r,{observer:n,query:o,variables:a,subscriptionState:h,startAckTimeoutId:null}),g=JSON.stringify(p),v=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:s,appSyncGraphqlEndpoint:e,authenticationType:i,payload:g,canonicalUri:"",region:u})];case 1:return y=[Qn.apply(void 0,v.concat([T.sent()]))],[4,l()];case 2:m=Qn.apply(void 0,[Qn.apply(void 0,[Qn.apply(void 0,y.concat([T.sent()])),d]),(x={},x["x-amz-user-agent"]=je.userAgent,x)]),b={id:r,payload:{data:g,extensions:{authorization:Qn({},m)}},type:qn.GQL_START},w=JSON.stringify(b),T.label=3;case 3:return T.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:s,appSyncGraphqlEndpoint:e,authenticationType:i,region:u})];case 4:return T.sent(),[3,6];case 5:return S=T.sent(),rr.debug({err:S}),C=S.message,E=void 0===C?"":C,n.error({errors:[Qn({},new N.a(Xn.a.CONNECTION_FAILED+": "+E))]}),n.complete(),"function"===typeof(_=(this.subscriptionObserverMap.get(r)||{}).subscriptionFailedCallback)&&_(),[2];case 6:return D=this.subscriptionObserverMap.get(r),O=D.subscriptionFailedCallback,A=D.subscriptionReadyCallback,this.subscriptionObserverMap.set(r,{observer:n,subscriptionState:h,variables:a,query:o,subscriptionReadyCallback:A,subscriptionFailedCallback:O,startAckTimeoutId:setTimeout((function(){k._timeoutStartSubscriptionAck.call(k,r)}),15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(w),[2]}}))}))},t.prototype._waitForSubscriptionToBeConnected=function(e){return er(this,void 0,void 0,(function(){var t=this;return tr(this,(function(n){return this.subscriptionObserverMap.get(e).subscriptionState===Yn.PENDING?[2,new Promise((function(n,r){var i=t.subscriptionObserverMap.get(e),o=i.observer,a=i.subscriptionState,s=i.variables,u=i.query;t.subscriptionObserverMap.set(e,{observer:o,subscriptionState:a,variables:s,query:u,subscriptionReadyCallback:n,subscriptionFailedCallback:r})}))]:[2]}))}))},t.prototype._sendUnsubscriptionMessage=function(e){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===$n.READY){var t={id:e,type:qn.GQL_STOP},n=JSON.stringify(t);this.awsRealTimeSocket.send(n)}}catch(r){rr.debug({err:r})}},t.prototype._removeSubscriptionObserver=function(e){this.subscriptionObserverMap.delete(e),setTimeout(this._closeSocketIfRequired.bind(this),1e3)},t.prototype._closeSocketIfRequired=function(){if(!(this.subscriptionObserverMap.size>0))if(this.awsRealTimeSocket)if(this.awsRealTimeSocket.bufferedAmount>0)setTimeout(this._closeSocketIfRequired.bind(this),1e3);else{rr.debug("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId);var e=this.awsRealTimeSocket;e.onclose=void 0,e.onerror=void 0,e.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=$n.CLOSED}else this.socketStatus=$n.CLOSED},t.prototype._handleIncomingSubscriptionMessage=function(e){rr.debug("subscription message from AWS AppSync RealTime: "+e.data);var t=JSON.parse(e.data),n=t.id,r=void 0===n?"":n,i=t.payload,o=t.type,a=this.subscriptionObserverMap.get(r)||{},s=a.observer,u=void 0===s?null:s,c=a.query,l=void 0===c?"":c,f=a.variables,d=void 0===f?{}:f,h=a.startAckTimeoutId,p=a.subscriptionReadyCallback,g=a.subscriptionFailedCallback;if(rr.debug({id:r,observer:u,query:l,variables:d}),o===qn.GQL_DATA&&i&&i.data)u?u.next(i):rr.debug("observer not found for id: "+r);else if(o!==qn.GQL_START_ACK){if(o===qn.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,Xn.a.TIMEOUT_DISCONNECT),this.keepAliveTimeout));if(o===qn.GQL_ERROR){m=Yn.FAILED;this.subscriptionObserverMap.set(r,{observer:u,query:l,variables:d,startAckTimeoutId:h,subscriptionReadyCallback:p,subscriptionFailedCallback:g,subscriptionState:m}),u.error({errors:[Qn({},new N.a(Xn.a.CONNECTION_FAILED+": "+JSON.stringify(i)))]}),clearTimeout(h),u.complete(),"function"===typeof g&&g()}}else{rr.debug("subscription ready for "+JSON.stringify({query:l,variables:d})),"function"===typeof p&&p(),clearTimeout(h),function(e,t,n){K.dispatch("api",{event:e,data:t,message:n},"PubSub",ir)}(Xn.a.SUBSCRIPTION_ACK,{query:l,variables:d},"Connection established for subscription");var m=Yn.CONNECTED;this.subscriptionObserverMap.set(r,{observer:u,query:l,variables:d,startAckTimeoutId:null,subscriptionState:m,subscriptionReadyCallback:p,subscriptionFailedCallback:g})}},t.prototype._errorDisconnect=function(e){rr.debug("Disconnect error: "+e),this.subscriptionObserverMap.forEach((function(t){var n=t.observer;n&&!n.closed&&n.error({errors:[Qn({},new N.a(e))]})})),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=$n.CLOSED},t.prototype._timeoutStartSubscriptionAck=function(e){var t=this.subscriptionObserverMap.get(e)||{},n=t.observer,r=t.query,i=t.variables;n&&(this.subscriptionObserverMap.set(e,{observer:n,query:r,variables:i,subscriptionState:Yn.FAILED}),n&&!n.closed&&(n.error({errors:[Qn({},new N.a("Subscription timeout "+JSON.stringify({query:r,variables:i})))]}),n.complete()),rr.debug("timeoutStartSubscription",JSON.stringify({query:r,variables:i})))},t.prototype._initializeWebSocketConnection=function(e){var t=this,n=e.appSyncGraphqlEndpoint,r=e.authenticationType,i=e.apiKey,o=e.region;if(this.socketStatus!==$n.READY)return new Promise((function(e,a){return er(t,void 0,void 0,(function(){var t,s,u,c,l,f,d,h,p,g;return tr(this,(function(m){switch(m.label){case 0:if(this.promiseArray.push({res:e,rej:a}),this.socketStatus!==$n.CLOSED)return[3,5];m.label=1;case 1:return m.trys.push([1,4,,5]),this.socketStatus=$n.CONNECTING,t=this.isSSLEnabled?"wss://":"ws://",s=n.replace("https://",t).replace("http://",t).replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta"),u="{}",f=(l=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:r,payload:u,canonicalUri:"/connect",apiKey:i,appSyncGraphqlEndpoint:n,region:o})];case 2:return c=f.apply(l,[m.sent()]),d=U.Buffer.from(c).toString("base64"),h=U.Buffer.from(u).toString("base64"),p=s+"?header="+d+"&payload="+h,[4,this._initializeRetryableHandshake({awsRealTimeUrl:p})];case 3:return m.sent(),this.promiseArray.forEach((function(e){var t=e.res;rr.debug("Notifying connection successful"),t()})),this.socketStatus=$n.READY,this.promiseArray=[],[3,5];case 4:return g=m.sent(),this.promiseArray.forEach((function(e){return(0,e.rej)(g)})),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=$n.CLOSED,[3,5];case 5:return[2]}}))}))}))},t.prototype._initializeRetryableHandshake=function(e){var t=e.awsRealTimeUrl;return er(this,void 0,void 0,(function(){return tr(this,(function(e){switch(e.label){case 0:return rr.debug("Initializaling retryable Handshake"),[4,de(this._initializeHandshake.bind(this),[{awsRealTimeUrl:t}],5e3)];case 1:return e.sent(),[2]}}))}))},t.prototype._initializeHandshake=function(e){var t=e.awsRealTimeUrl;return er(this,void 0,void 0,(function(){var e,n,r,i=this;return tr(this,(function(o){switch(o.label){case 0:rr.debug("Initializing handshake "+t),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,new Promise((function(e,n){var r=new WebSocket(t,"graphql-ws");r.onerror=function(){rr.debug("WebSocket connection error")},r.onclose=function(){n(new Error("Connection handshake error"))},r.onopen=function(){return i.awsRealTimeSocket=r,e()}}))];case 2:return o.sent(),[4,new Promise((function(e,t){var n=!1;i.awsRealTimeSocket.onerror=function(e){rr.debug("WebSocket error "+JSON.stringify(e))},i.awsRealTimeSocket.onclose=function(e){rr.debug("WebSocket closed "+e.reason),t(new Error(JSON.stringify(e)))},i.awsRealTimeSocket.onmessage=function(r){rr.debug("subscription message from AWS AppSyncRealTime: "+r.data+" ");var o=JSON.parse(r.data),a=o.type,s=o.payload,u=(void 0===s?{}:s).connectionTimeoutMs,c=void 0===u?sr:u;if(a===qn.GQL_CONNECTION_ACK)return n=!0,i.keepAliveTimeout=c,i.awsRealTimeSocket.onmessage=i._handleIncomingSubscriptionMessage.bind(i),i.awsRealTimeSocket.onerror=function(e){rr.debug(e),i._errorDisconnect(Xn.a.CONNECTION_CLOSED)},i.awsRealTimeSocket.onclose=function(e){rr.debug("WebSocket closed "+e.reason),i._errorDisconnect(Xn.a.CONNECTION_CLOSED)},void e("Cool, connected to AWS AppSyncRealTime");if(a===qn.GQL_CONNECTION_ERROR){var l=o.payload,f=(void 0===l?{}:l).errors,d=nr(void 0===f?[]:f,1)[0],h=void 0===d?{}:d,p=h.errorType,g=void 0===p?"":p,m=h.errorCode;t({errorType:g,errorCode:void 0===m?0:m})}};var r={type:qn.GQL_CONNECTION_INIT};i.awsRealTimeSocket.send(JSON.stringify(r)),setTimeout(function(){n||t(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(i),15e3)}))];case 3:return o.sent(),[3,5];case 4:throw e=o.sent(),n=e.errorType,r=e.errorCode,or.includes(r)?new le(n):n?new Error(n):e;case 5:return[2]}}))}))},t.prototype._awsRealTimeHeaderBasedAuth=function(e){var t=e.authenticationType,n=e.payload,r=e.canonicalUri,i=e.appSyncGraphqlEndpoint,o=e.apiKey,a=e.region;return er(this,void 0,void 0,(function(){var e,s,u;return tr(this,(function(c){switch(c.label){case 0:return e={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeCUPHeader.bind(this)},"function"!==typeof(s=e[t])?(rr.debug("Authentication type "+t+" not supported"),[2,""]):(u=L.parse(i).host,[4,s({payload:n,canonicalUri:r,appSyncGraphqlEndpoint:i,apiKey:o,region:a,host:u})]);case 1:return[2,c.sent()]}}))}))},t.prototype._awsRealTimeCUPHeader=function(e){var t=e.host;return er(this,void 0,void 0,(function(){return tr(this,(function(e){switch(e.label){case 0:return[4,Jn.currentSession()];case 1:return[2,{Authorization:e.sent().getAccessToken().getJwtToken(),host:t}]}}))}))},t.prototype._awsRealTimeOPENIDHeader=function(e){var t=e.host;return er(this,void 0,void 0,(function(){var e,n,r;return tr(this,(function(i){switch(i.label){case 0:return[4,ft.getItem("federatedInfo")];case 1:return(n=i.sent())?(e=n.token,[3,4]):[3,2];case 2:return[4,Jn.currentAuthenticatedUser()];case 3:(r=i.sent())&&(e=r.token),i.label=4;case 4:if(!e)throw new Error("No federated jwt");return[2,{Authorization:e,host:t}]}}))}))},t.prototype._awsRealTimeApiKeyHeader=function(e){var t=e.apiKey,n=e.host;return er(this,void 0,void 0,(function(){var e,r;return tr(this,(function(i){return e=new Date,r=e.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:n,"x-amz-date":r,"x-api-key":t}]}))}))},t.prototype._awsRealTimeIAMHeader=function(e){var t=e.payload,n=e.canonicalUri,r=e.appSyncGraphqlEndpoint,i=e.region;return er(this,void 0,void 0,(function(){var e,o,a;return tr(this,(function(s){switch(s.label){case 0:return e={region:i,service:"appsync"},[4,this._ensureCredentials()];case 1:if(!s.sent())throw new Error("No credentials");return[4,Fe.get().then((function(e){return{secret_key:e.secretAccessKey,access_key:e.accessKeyId,session_token:e.sessionToken}}))];case 2:return o=s.sent(),a={url:""+r+n,data:t,method:"POST",headers:Qn({},ar)},[2,Ze.sign(a,o,e).headers]}}))}))},t.prototype._ensureCredentials=function(){return Fe.get().then((function(e){if(!e)return!1;var t=Fe.shear(e);return rr.debug("set credentials for AWSAppSyncRealTimeProvider",t),!0})).catch((function(e){return rr.warn("ensure credentials error",e),!1}))},t}(b),cr=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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())}))},lr=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==arguments[1]?arguments[1]:{},u=o.name,d=Object(i.a)(o,["name"]),h=u,p="function"===typeof t?function(e){return{root:function(n){return t(Object(r.a)({theme:e},n))}}}:{root:t},g=Object(l.a)(p,Object(r.a)({Component:e,name:u||e.displayName,classNamePrefix:h},d));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var m=a.a.forwardRef((function(t,o){var u=t.children,c=t.className,l=t.clone,d=t.component,h=Object(i.a)(t,["children","className","clone","component"]),p=g(t),m=Object(s.a)(p.root,c),v=h;if(n&&(v=f(v,n)),l)return a.a.cloneElement(u,Object(r.a)({className:Object(s.a)(u.props.className,m)},v));if("function"===typeof u)return u(Object(r.a)({className:m},v));var y=d||e;return a.a.createElement(y,Object(r.a)({ref:o,className:m},v),u)}));return c()(m,e),m}}(e);return function(e,n){return t(e,Object(r.a)({defaultTheme:d.a},n))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(131);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};m=!0,window.hcaptchaOnLoad=function(){g=g.filter((function(e){return e(),!1}))};var t=e.apihost||"https://hcaptcha.com";delete e.apihost;var n=document.createElement("script");n.src="".concat(t,"/1/api.js?render=explicit&onload=hcaptchaOnLoad"),n.async=!0;var r=p(e);n.src+=""!==r?"&".concat(r):"",document.head.appendChild(n)}({apihost:t,assethost:n,endpoint:r,hl:a,host:i,imghost:o,recaptchacompat:!1===s?"off":null,reportapi:u,sentry:c}),g.push(this.handleOnLoad))}},{key:"componentWillUnmount",value:function(){var e=this.state,t=e.isApiReady,n=e.isRemoved,r=e.captchaId;t&&!n&&(hcaptcha.reset(r),hcaptcha.remove(r))}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.isApiReady===t.isApiReady&&this.state.isRemoved===t.isRemoved}},{key:"componentDidUpdate",value:function(e){var t=this;["sitekey","size","theme","tabindex","languageOverride","endpoint"].every((function(n){return e[n]===t.props[n]}))||this.removeCaptcha((function(){t.renderCaptcha()}))}},{key:"renderCaptcha",value:function(){if(this.state.isApiReady){var e=hcaptcha.render(this.ref.current,o(o({},this.props),{},{"error-callback":this.handleError,"expired-callback":this.handleExpire,callback:this.handleSubmit}));this.setState({isRemoved:!1,captchaId:e})}}},{key:"resetCaptcha",value:function(){var e=this.state,t=e.isApiReady,n=e.isRemoved,r=e.captchaId;t&&!n&&hcaptcha.reset(r)}},{key:"removeCaptcha",value:function(e){var t=this.state,n=t.isApiReady,r=t.isRemoved,i=t.captchaId;n&&!r&&this.setState({isRemoved:!0},(function(){hcaptcha.remove(i),e&&e()}))}},{key:"handleOnLoad",value:function(){var e=this;this.setState({isApiReady:!0},(function(){var t=e.props.onLoad;t&&t(),e.renderCaptcha()}))}},{key:"handleSubmit",value:function(e){var t=this.props.onVerify,n=this.state,r=n.isRemoved,i=n.captchaId;"undefined"===typeof hcaptcha||r||t(hcaptcha.getResponse(i),hcaptcha.getRespKey(i))}},{key:"handleExpire",value:function(){var e=this.props.onExpire,t=this.state,n=t.isApiReady,r=t.isRemoved,i=t.captchaId;n&&!r&&(hcaptcha.reset(i),e&&e())}},{key:"handleError",value:function(e){var t=this.props.onError,n=this.state,r=n.isApiReady,i=n.isRemoved,o=n.captchaId;r&&!i&&(hcaptcha.reset(o),t&&t(e))}},{key:"execute",value:function(){var e=this.state,t=e.isApiReady,n=e.isRemoved,r=e.captchaId;t&&!n&&hcaptcha.execute(r)}},{key:"render",value:function(){var e=this.state.elementId;return h.createElement("div",{ref:this.ref,id:e})}}])&&s(t.prototype,n),r&&s(t,r),a}(h.Component);e.exports=v},function(e,t,n){"use strict";var r=n(0),i=n.n(r).a.createContext(null);t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(132);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(67),n(3);var r=n(98),i=(n(11),n(84),{xs:0,sm:600,md:960,lg:1280,xl:1920}),o={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(i[e],"px)")}};function a(e,t,n){if(Array.isArray(t)){var i=e.theme.breakpoints||o;return t.reduce((function(e,r,o){return e[i.up(i.keys[o])]=n(t[o]),e}),{})}if("object"===Object(r.a)(t)){var a=e.theme.breakpoints||o;return Object.keys(t).reduce((function(e,r){return e[a.up(r)]=n(t[r]),e}),{})}return n(t)}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(3),i=n(41),o=n(6),a=n(0),s=(n(11),n(7)),u=n(82),c=n(44),l=n(9),f=n(103),d=a.forwardRef((function(e,t){var n=e.autoFocus,l=e.checked,d=e.checkedIcon,h=e.classes,p=e.className,g=e.defaultChecked,m=e.disabled,v=e.icon,y=e.id,b=e.inputProps,w=e.inputRef,S=e.name,C=e.onBlur,E=e.onChange,_=e.onFocus,D=e.readOnly,O=e.required,A=e.tabIndex,x=e.type,k=e.value,T=Object(o.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),I=Object(u.a)({controlled:l,default:Boolean(g),name:"SwitchBase",state:"checked"}),P=Object(i.a)(I,2),F=P[0],j=P[1],M=Object(c.a)(),R=m;M&&"undefined"===typeof R&&(R=M.disabled);var N="checkbox"===x||"radio"===x;return a.createElement(f.a,Object(r.a)({component:"span",className:Object(s.a)(h.root,p,F&&h.checked,R&&h.disabled),disabled:R,tabIndex:null,role:void 0,onFocus:function(e){_&&_(e),M&&M.onFocus&&M.onFocus(e)},onBlur:function(e){C&&C(e),M&&M.onBlur&&M.onBlur(e)},ref:t},T),a.createElement("input",Object(r.a)({autoFocus:n,checked:l,defaultChecked:g,className:h.input,disabled:R,id:N&&y,name:S,onChange:function(e){var t=e.target.checked;j(t),E&&E(e,t)},readOnly:D,ref:w,required:O,tabIndex:A,type:x,value:k},b)),F?d:v)}));t.a=Object(l.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(d)},function(e,t,n){"use strict";var r=n(0),i=r.createContext();t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(4),i=n(10),o="content-length";var a={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},s=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(a){return Object(r.__awaiter)(t,void 0,void 0,(function(){var t,s,u,c,l;return Object(r.__generator)(this,(function(f){return t=a.request,i.a.isInstance(t)&&(s=t.body,u=t.headers,s&&-1===Object.keys(u).map((function(e){return e.toLowerCase()})).indexOf(o)&&void 0!==(c=e(s))&&(t.headers=Object(r.__assign)(Object(r.__assign)({},t.headers),((l={})["content-length"]=String(c),l)))),[2,n(Object(r.__assign)(Object(r.__assign)({},a),{request:t}))]}))}))}}}(e.bodyLengthChecker),a)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,n(4).__exportStar(n(396),t);var r=n(242);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return r.Sha256}});var i=n(245);Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return i.Sha256}})},function(e,t,n){"use strict";function r(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}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i=n(264),o=n.n(i),a=function(e){var t=e.serviceId,n=e.clientVersion;return function(){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var e,i,a,s,u,c,l,f,d;return Object(r.__generator)(this,(function(r){return e=(null===(a=null===window||void 0===window?void 0:window.navigator)||void 0===a?void 0:a.userAgent)?o.a.parse(window.navigator.userAgent):void 0,i=[["aws-sdk-js",n],["os/"+((null===(s=null===e||void 0===e?void 0:e.os)||void 0===s?void 0:s.name)||"other"),null===(u=null===e||void 0===e?void 0:e.os)||void 0===u?void 0:u.version],["lang/js"],["md/browser",(null!==(l=null===(c=null===e||void 0===e?void 0:e.browser)||void 0===c?void 0:c.name)&&void 0!==l?l:"unknown")+"_"+(null!==(d=null===(f=null===e||void 0===e?void 0:e.browser)||void 0===f?void 0:f.version)&&void 0!==d?d:"unknown")]],t&&i.push(["api/"+t,n]),[2,i]}))}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4);function i(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=Object(r.__read)(t,2),i=n[0],o=n[1];return e[i]=o,e}),{})}))}},function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&v(e,"error",t,n)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,s;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Crc32=t.crc32=void 0;var r=n(4);t.crc32=function(e){return(new i).update(e).digest()};var i=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var i=r.__values(e),a=i.next();!a.done;a=i.next()){var s=a.value;this.checksum=this.checksum>>>8^o[255&(this.checksum^s)]}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=i;var o=Uint32Array.from([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117])},function(e,t,n){var r=n(417),i=n(418),o=i;o.v1=r,o.v4=i,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n(4),i=n(24),o="X-Amz-Date",a="X-Amz-Signature",s="X-Amz-Security-Token",u="authorization",c=o.toLowerCase(),l=[u,c,"date"],f=a.toLowerCase(),d="x-amz-content-sha256",h=s.toLowerCase(),p={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},g=/^proxy-/,m=/^sec-/,v="AWS4-HMAC-SHA256",y="AWS4-HMAC-SHA256-PAYLOAD",b="aws4_request",w={},S=[];function C(e,t,n){return e+"/"+t+"/"+n+"/"+b}function E(e,t,n){var r=new e(t);return r.update(n),r.digest()}function _(e,t,n){var i,o,a=e.headers,s={};try{for(var u=Object(r.__values)(Object.keys(a).sort()),c=u.next();!c.done;c=u.next()){var l=c.value,f=l.toLowerCase();(f in p||(null===t||void 0===t?void 0:t.has(f))||g.test(f)||m.test(f))&&(!n||n&&!n.has(f))||(s[f]=a[l].trim().replace(/\s+/g," "))}}catch(d){i={error:d}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return s}var D=n(79);var O=n(263);function A(e,t){var n=e.headers,o=e.body;return Object(r.__awaiter)(this,void 0,void 0,(function(){var e,a,s,u,c,l,f;return Object(r.__generator)(this,(function(h){switch(h.label){case 0:try{for(e=Object(r.__values)(Object.keys(n)),a=e.next();!a.done;a=e.next())if((s=a.value).toLowerCase()===d)return[2,n[s]]}catch(p){l={error:p}}finally{try{a&&!a.done&&(f=e.return)&&f.call(e)}finally{if(l)throw l.error}}return void 0!=o?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"===typeof o||ArrayBuffer.isView(o)||Object(O.a)(o)?((u=new t).update(o),c=i.b,[4,u.digest()]):[3,3];case 2:return[2,c.apply(void 0,[h.sent()])];case 3:return[2,"UNSIGNED-PAYLOAD"]}}))}))}function x(e){var t=e.headers,n=e.query,i=Object(r.__rest)(e,["headers","query"]);return Object(r.__assign)(Object(r.__assign)({},i),{headers:Object(r.__assign)({},t),query:n?k(n):void 0})}function k(e){return Object.keys(e).reduce((function(t,n){var i,o=e[n];return Object(r.__assign)(Object(r.__assign)({},t),((i={})[n]=Array.isArray(o)?Object(r.__spread)(o):o,i))}),{})}function T(e){var t,n;e="function"===typeof e.clone?e.clone():x(e);try{for(var i=Object(r.__values)(Object.keys(e.headers)),o=i.next();!o.done;o=i.next()){var a=o.value;l.indexOf(a.toLowerCase())>-1&&delete e.headers[a]}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return e}function I(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 P=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!==typeof t||t,this.regionProvider=M(r),this.credentialProvider=R(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Object(r.__awaiter)(this,void 0,void 0,(function(){var n,i,o,u,c,l,f,d,h,p,g,m,y,b,w,S,E,D,O,k,I,P,M,R;return Object(r.__generator)(this,(function(N){switch(N.label){case 0:return n=t.signingDate,i=void 0===n?new Date:n,o=t.expiresIn,u=void 0===o?3600:o,c=t.unsignableHeaders,l=t.unhoistableHeaders,f=t.signableHeaders,d=t.signingRegion,h=t.signingService,[4,this.credentialProvider()];case 1:return p=N.sent(),null===d||void 0===d?[3,2]:(m=d,[3,4]);case 2:return[4,this.regionProvider()];case 3:m=N.sent(),N.label=4;case 4:return g=m,y=F(i),b=y.longDate,w=y.shortDate,u>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(S=C(w,g,null!==h&&void 0!==h?h:this.service),E=function(e,t){var n,i,o;void 0===t&&(t={});var a="function"===typeof e.clone?e.clone():x(e),s=a.headers,u=a.query,c=void 0===u?{}:u;try{for(var l=Object(r.__values)(Object.keys(s)),f=l.next();!f.done;f=l.next()){var d=f.value,h=d.toLowerCase();"x-amz-"!==h.substr(0,6)||(null===(o=t.unhoistableHeaders)||void 0===o?void 0:o.has(h))||(c[d]=s[d],delete s[d])}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return Object(r.__assign)(Object(r.__assign)({},e),{headers:s,query:c})}(T(e),{unhoistableHeaders:l}),p.sessionToken&&(E.query[s]=p.sessionToken),E.query["X-Amz-Algorithm"]=v,E.query["X-Amz-Credential"]=p.accessKeyId+"/"+S,E.query["X-Amz-Date"]=b,E.query["X-Amz-Expires"]=u.toString(10),D=_(E,c,f),E.query["X-Amz-SignedHeaders"]=j(D),O=E.query,k=a,I=this.getSignature,P=[b,S,this.getSigningKey(p,g,w,h)],M=this.createCanonicalRequest,R=[E,D],[4,A(e,this.sha256)]);case 5:return[4,I.apply(this,P.concat([M.apply(this,R.concat([N.sent()]))]))];case 6:return O[k]=N.sent(),[2,E]}}))}))},e.prototype.sign=function(e,t){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(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,o=e.payload,a=t.signingDate,s=void 0===a?new Date:a,u=t.priorSignature,c=t.signingRegion,l=t.signingService;return Object(r.__awaiter)(this,void 0,void 0,(function(){var e,t,a,f,d,h,p,g,m,v,b;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return null===c||void 0===c?[3,1]:(t=c,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=r.sent(),r.label=3;case 3:return e=t,a=F(s),f=a.shortDate,d=a.longDate,h=C(f,e,null!==l&&void 0!==l?l:this.service),[4,A({headers:{},body:o},this.sha256)];case 4:return p=r.sent(),(g=new this.sha256).update(n),v=i.b,[4,g.digest()];case 5:return m=v.apply(void 0,[r.sent()]),b=[y,d,h,u,m,p].join("\n"),[2,this.signString(b,{signingDate:s,signingRegion:e,signingService:l})]}}))}))},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,o=n.signingDate,a=void 0===o?new Date:o,s=n.signingRegion,u=n.signingService;return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,n,o,c,l,f,d,h;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return[4,this.credentialProvider()];case 1:return t=r.sent(),null===s||void 0===s?[3,2]:(o=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:o=r.sent(),r.label=4;case 4:return n=o,c=F(a).shortDate,d=(f=this.sha256).bind,[4,this.getSigningKey(t,n,c,u)];case 5:return(l=new(d.apply(f,[void 0,r.sent()]))).update(e),h=i.b,[4,l.digest()];case 6:return[2,h.apply(void 0,[r.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,i=n.signingDate,o=void 0===i?new Date:i,a=n.signableHeaders,s=n.unsignableHeaders,l=n.signingRegion,f=n.signingService;return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,n,i,p,g,m,v,y,b,w,S;return Object(r.__generator)(this,(function(E){switch(E.label){case 0:return[4,this.credentialProvider()];case 1:return t=E.sent(),null===l||void 0===l?[3,2]:(i=l,[3,4]);case 2:return[4,this.regionProvider()];case 3:i=E.sent(),E.label=4;case 4:return n=i,p=T(e),g=F(o),m=g.longDate,v=g.shortDate,y=C(v,n,null!==f&&void 0!==f?f:this.service),p.headers[c]=m,t.sessionToken&&(p.headers[h]=t.sessionToken),[4,A(p,this.sha256)];case 5:return b=E.sent(),!function(e,t){var n,i;e=e.toLowerCase();try{for(var o=Object(r.__values)(Object.keys(t)),a=o.next();!a.done;a=o.next())if(e===a.value.toLowerCase())return!0}catch(s){n={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1}(d,p.headers)&&this.applyChecksum&&(p.headers[d]=b),w=_(p,s,a),[4,this.getSignature(m,y,this.getSigningKey(t,n,v,f),this.createCanonicalRequest(p,w,b))];case 6:return S=E.sent(),p.headers[u]="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+y+", SignedHeaders="+j(w)+", Signature="+S,[2,p]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var i=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,i=e.query,o=void 0===i?{}:i,a=[],s={},u=function(e){if(e.toLowerCase()===f)return"continue";a.push(e);var t=o[e];"string"===typeof t?s[e]=Object(D.a)(e)+"="+Object(D.a)(t):Array.isArray(t)&&(s[e]=t.slice(0).sort().reduce((function(t,n){return t.concat([Object(D.a)(e)+"="+Object(D.a)(n)])}),[]).join("&"))};try{for(var c=Object(r.__values)(Object.keys(o).sort()),l=c.next();!l.done;l=c.next())u(l.value)}catch(d){t={error:d}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return a.map((function(e){return s[e]})).filter((function(e){return e})).join("&")}(e)+"\n"+i.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+i.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return Object(r.__awaiter)(this,void 0,void 0,(function(){var o,a;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return(o=new this.sha256).update(n),[4,o.digest()];case 1:return a=r.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+Object(i.b)(a)]}}))}))},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,o){return Object(r.__awaiter)(this,void 0,void 0,(function(){var a,s,u,c,l;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return[4,this.createStringToSign(e,t,o)];case 1:return a=r.sent(),c=(u=this.sha256).bind,[4,n];case 2:return(s=new(c.apply(u,[void 0,r.sent()]))).update(a),l=i.b,[4,s.digest()];case 3:return[2,l.apply(void 0,[r.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,o){return function(e,t,n,o,a){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var s,u,c,l,f,d,h,p,g;return Object(r.__generator)(this,(function(m){switch(m.label){case 0:return[4,E(e,t.secretAccessKey,t.accessKeyId)];case 1:if(s=m.sent(),(u=n+":"+o+":"+a+":"+Object(i.b)(s)+":"+t.sessionToken)in w)return[2,w[u]];for(S.push(u);S.length>50;)delete w[S.shift()];c="AWS4"+t.secretAccessKey,m.label=2;case 2:m.trys.push([2,7,8,9]),l=Object(r.__values)([n,o,a,b]),f=l.next(),m.label=3;case 3:return f.done?[3,6]:(d=f.value,[4,E(e,c,d)]);case 4:c=m.sent(),m.label=5;case 5:return f=l.next(),[3,3];case 6:return[3,9];case 7:return h=m.sent(),p={error:h},[3,9];case 8:try{f&&!f.done&&(g=l.return)&&g.call(l)}finally{if(p)throw p.error}return[7];case 9:return[2,w[u]=c]}}))}))}(this.sha256,e,n,t,o||this.service)},e}(),F=function(e){var t=I(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},j=function(e){return Object.keys(e).sort().join(";")},M=function(e){if("string"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e},R=function(e){if("object"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return function(){return Promise.reject(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4),i={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},o=function(e){return{applyToStack:function(e){e.add((function(e,t){return function(n){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var i,o,a,s,u,c,l,f,d;return Object(r.__generator)(this,(function(h){switch(h.label){case 0:return i=t.clientName,o=t.commandName,a=t.inputFilterSensitiveLog,s=t.logger,u=t.outputFilterSensitiveLog,[4,e(n)];case 1:return c=h.sent(),s?("function"===typeof s.info&&(l=c.output,f=l.$metadata,d=Object(r.__rest)(l,["$metadata"]),s.info({clientName:i,commandName:o,input:a(n.input),output:u(d),metadata:f})),[2,c]):[2,c]}}))}))}}),i)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4);var i=function(e){var t,n=new URL(e),i=n.hostname,o=n.pathname,a=n.port,s=n.protocol,u=n.search;return u&&(t=function(e){var t,n,i={};if(e=e.replace(/^\?/,""))try{for(var o=Object(r.__values)(e.split("&")),a=o.next();!a.done;a=o.next()){var s=a.value,u=Object(r.__read)(s.split("="),2),c=u[0],l=u[1],f=void 0===l?null:l;c=decodeURIComponent(c),f&&(f=decodeURIComponent(f)),c in i?Array.isArray(i[c])?i[c].push(f):i[c]=[i[c],f]:i[c]=f}}catch(d){t={error:d}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}(u)),{hostname:i,port:a?parseInt(a):void 0,protocol:s,path:o,query:t}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=function(){for(var e=[],t=0;t=a){var u=console.log.bind(console);"ERROR"===t&&console.error&&(u=console.error.bind(console)),"WARN"===t&&console.warn&&(u=console.warn.bind(console));var c="["+t+"] "+this._ts()+" "+this.name;if(1===n.length&&"string"===typeof n[0])u(c+" - "+n[0]);else if(1===n.length)u(c,n[0]);else if("string"===typeof n[0]){var l=n.slice(1);1===l.length&&(l=l[0]),u(c+" - "+n[0],l)}else u(c,n)}},e.prototype.log=function(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=new r.a("Amplify"),a=new(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.Logger=r.a,this.ServiceWorker=null}return e.prototype.register=function(e){o.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):o.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),o.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=i(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}())},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r="aws-amplify/3.8.23",i={userAgent:r+" js",product:"",navigator:null,isReactNative:!1};if("undefined"!==typeof navigator&&navigator.product)switch(i.product=navigator.product||"",i.navigator=navigator||null,navigator.product){case"ReactNative":i.userAgent=r+" react-native",i.isReactNative=!0;break;default:i.userAgent=r+" js",i.isReactNative=!1}var o=function(){return i.userAgent}},function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(0),a=(n(11),n(506)),s=n(41),u=n(98),c=n(280),l=(n(97),n(7)),f=n(23),d=n(13),h=n(9),p=n(22),g=n(40),m=n(65),v=n(66),y=n(441),b=n(284),w=n(141);function S(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function C(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function E(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function _(e){return"function"===typeof e?e():e}var D=o.forwardRef((function(e,t){var n=e.action,a=e.anchorEl,s=e.anchorOrigin,u=void 0===s?{vertical:"top",horizontal:"left"}:s,c=e.anchorPosition,d=e.anchorReference,h=void 0===d?"anchorEl":d,D=e.children,O=e.classes,A=e.className,x=e.container,k=e.elevation,T=void 0===k?8:k,I=e.getContentAnchorEl,P=e.marginThreshold,F=void 0===P?16:P,j=e.onEnter,M=e.onEntered,R=e.onEntering,N=e.onExit,L=e.onExited,U=e.onExiting,B=e.open,z=e.PaperProps,V=void 0===z?{}:z,H=e.transformOrigin,W=void 0===H?{vertical:"top",horizontal:"left"}:H,K=e.TransitionComponent,G=void 0===K?b.a:K,q=e.transitionDuration,Y=void 0===q?"auto":q,$=e.TransitionProps,J=void 0===$?{}:$,X=Object(i.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Z=o.useRef(),Q=o.useCallback((function(e){if("anchorPosition"===h)return c;var t=_(a),n=(t&&1===t.nodeType?t:Object(f.a)(Z.current).body).getBoundingClientRect(),r=0===e?u.vertical:"center";return{top:n.top+S(n,r),left:n.left+C(n,u.horizontal)}}),[a,u.horizontal,u.vertical,c,h]),ee=o.useCallback((function(e){var t=0;if(I&&"anchorEl"===h){var n=I(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[u.vertical,h,I]),te=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:S(e,W.vertical)+t,horizontal:C(e,W.horizontal)}}),[W.horizontal,W.vertical]),ne=o.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===h)return{top:null,left:null,transformOrigin:E(r)};var i=Q(t),o=i.top-r.vertical,s=i.left-r.horizontal,u=o+n.height,c=s+n.width,l=Object(m.a)(_(a)),f=l.innerHeight-F,d=l.innerWidth-F;if(of){var g=u-f;o-=g,r.vertical+=g}if(sd){var y=c-d;s-=y,r.horizontal+=y}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:E(r)}}),[a,h,Q,ee,te,F]),re=o.useCallback((function(){var e=Z.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=o.useCallback((function(e){Z.current=p.findDOMNode(e)}),[]);o.useEffect((function(){B&&re()})),o.useImperativeHandle(n,(function(){return B?{updatePosition:function(){re()}}:null}),[B,re]),o.useEffect((function(){if(B){var e=Object(g.a)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[B,re]);var oe=Y;"auto"!==Y||G.muiSupportAuto||(oe=void 0);var ae=x||(a?Object(f.a)(_(a)).body:void 0);return o.createElement(y.a,Object(r.a)({container:ae,open:B,ref:t,BackdropProps:{invisible:!0},className:Object(l.a)(O.root,A)},X),o.createElement(G,Object(r.a)({appear:!0,in:B,onEnter:j,onEntered:M,onExit:N,onExited:L,onExiting:U,timeout:oe},J,{onEntering:Object(v.a)((function(e,t){R&&R(e,t),re()}),J.onEntering)}),o.createElement(w.a,Object(r.a)({elevation:T,ref:ie},V,{className:Object(l.a)(O.paper,V.className)}),D)))})),O=Object(h.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(D),A=n(213),x=n(39),k=n(27),T={vertical:"top",horizontal:"right"},I={vertical:"top",horizontal:"left"},P=o.forwardRef((function(e,t){var n=e.autoFocus,a=void 0===n||n,s=e.children,u=e.classes,c=e.disableAutoFocusItem,f=void 0!==c&&c,d=e.MenuListProps,h=void 0===d?{}:d,g=e.onClose,m=e.onEntering,v=e.open,y=e.PaperProps,b=void 0===y?{}:y,w=e.PopoverClasses,S=e.transitionDuration,C=void 0===S?"auto":S,E=e.variant,_=void 0===E?"selectedMenu":E,D=Object(i.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),P=Object(k.a)(),F=a&&!f&&v,j=o.useRef(null),M=o.useRef(null),R=-1;o.Children.map(s,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==_&&e.props.selected||-1===R)&&(R=t))}));var N=o.Children.map(s,(function(e,t){return t===R?o.cloneElement(e,{ref:function(t){M.current=p.findDOMNode(t),Object(x.a)(e.ref,t)}}):e}));return o.createElement(O,Object(r.a)({getContentAnchorEl:function(){return M.current},classes:w,onClose:g,onEntering:function(e,t){j.current&&j.current.adjustStyleForScrollbar(e,P),m&&m(e,t)},anchorOrigin:"rtl"===P.direction?T:I,transformOrigin:"rtl"===P.direction?T:I,PaperProps:Object(r.a)({},b,{classes:Object(r.a)({},b.classes,{root:u.paper})}),open:v,ref:t,transitionDuration:C},D),o.createElement(A.a,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:j,autoFocus:a&&(-1===R||f),autoFocusItem:F,variant:_},h,{className:Object(l.a)(u.list,h.className)}),N))})),F=Object(h.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(P),j=n(100),M=n(16),R=n(82);function N(e,t){return"object"===Object(u.a)(t)&&null!==t?e===t:String(e)===String(t)}var L=o.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,u=e.autoWidth,h=e.children,p=e.classes,g=e.className,m=e.defaultValue,v=e.disabled,y=e.displayEmpty,b=e.IconComponent,w=e.inputRef,S=e.labelId,C=e.MenuProps,E=void 0===C?{}:C,_=e.multiple,D=e.name,O=e.onBlur,A=e.onChange,x=e.onClose,k=e.onFocus,T=e.onOpen,I=e.open,P=e.readOnly,L=e.renderValue,U=e.SelectDisplayProps,B=void 0===U?{}:U,z=e.tabIndex,V=(e.type,e.value),H=e.variant,W=void 0===H?"standard":H,K=Object(i.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),G=Object(R.a)({controlled:V,default:m,name:"Select"}),q=Object(s.a)(G,2),Y=q[0],$=q[1],J=o.useRef(null),X=o.useState(null),Z=X[0],Q=X[1],ee=o.useRef(null!=I).current,te=o.useState(),ne=te[0],re=te[1],ie=o.useState(!1),oe=ie[0],ae=ie[1],se=Object(M.a)(t,w);o.useImperativeHandle(se,(function(){return{focus:function(){Z.focus()},node:J.current,value:Y}}),[Z,Y]),o.useEffect((function(){a&&Z&&Z.focus()}),[a,Z]),o.useEffect((function(){if(Z){var e=Object(f.a)(Z).getElementById(S);if(e){var t=function(){getSelection().isCollapsed&&Z.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[S,Z]);var ue,ce,le=function(e,t){e?T&&T(t):x&&x(t),ee||(re(u?null:Z.clientWidth),ae(e))},fe=o.Children.toArray(h),de=function(e){return function(t){var n;if(_||le(!1,t),_){n=Array.isArray(Y)?Y.slice():[];var r=Y.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),Y!==n&&($(n),A&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:D}}),A(t,e)))}},he=null!==Z&&(ee?I:oe);delete K["aria-invalid"];var pe=[],ge=!1;(Object(j.b)({value:Y})||y)&&(L?ue=L(Y):ge=!0);var me=fe.map((function(e){if(!o.isValidElement(e))return null;var t;if(_){if(!Array.isArray(Y))throw new Error(Object(c.a)(2));(t=Y.some((function(t){return N(t,e.props.value)})))&&ge&&pe.push(e.props.children)}else(t=N(Y,e.props.value))&&ge&&(ce=e.props.children);return t&&!0,o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:de(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ge&&(ue=_?pe.join(", "):ce);var ve,ye=ne;!u&&ee&&Z&&(ye=Z.clientWidth),ve="undefined"!==typeof z?z:v?null:0;var be=B.id||(D?"mui-component-select-".concat(D):void 0);return o.createElement(o.Fragment,null,o.createElement("div",Object(r.a)({className:Object(l.a)(p.root,p.select,p.selectMenu,p[W],g,v&&p.disabled),ref:Q,tabIndex:ve,role:"button","aria-disabled":v?"true":void 0,"aria-expanded":he?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[S,be].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),le(!0,e))}},onMouseDown:v||P?null:function(e){0===e.button&&(e.preventDefault(),Z.focus(),le(!0,e))},onBlur:function(e){!he&&O&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:Y,name:D}}),O(e))},onFocus:k},B,{id:be}),function(e){return null==e||"string"===typeof e&&!e.trim()}(ue)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ue),o.createElement("input",Object(r.a)({value:Array.isArray(Y)?Y.join(","):Y,name:D,ref:J,"aria-hidden":!0,onChange:function(e){var t=fe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=fe[t];$(n.props.value),A&&A(e,n)}},tabIndex:-1,className:p.nativeInput,autoFocus:a},K)),o.createElement(b,{className:Object(l.a)(p.icon,p["icon".concat(Object(d.a)(W))],he&&p.iconOpen,v&&p.disabled)}),o.createElement(F,Object(r.a)({id:"menu-".concat(D||""),anchorEl:Z,open:he,onClose:function(e){le(!1,e)}},E,{MenuListProps:Object(r.a)({"aria-labelledby":S,role:"listbox",disableListWrap:!0},E.MenuListProps),PaperProps:Object(r.a)({},E.PaperProps,{style:Object(r.a)({minWidth:ye},null!=E.PaperProps?E.PaperProps.style:null)})}),me))})),U=n(54),B=n(44),z=n(20),V=Object(z.a)(o.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),H=n(426),W=o.forwardRef((function(e,t){var n=e.classes,a=e.className,s=e.disabled,u=e.IconComponent,c=e.inputRef,f=e.variant,h=void 0===f?"standard":f,p=Object(i.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return o.createElement(o.Fragment,null,o.createElement("select",Object(r.a)({className:Object(l.a)(n.root,n.select,n[h],a,s&&n.disabled),disabled:s,ref:c||t},p)),e.multiple?null:o.createElement(u,{className:Object(l.a)(n.icon,n["icon".concat(Object(d.a)(h))],s&&n.disabled)}))})),K=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},G=o.createElement(H.a,null),q=o.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,u=void 0===s?V:s,c=e.input,l=void 0===c?G:c,f=e.inputProps,d=(e.variant,Object(i.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),h=Object(B.a)(),p=Object(U.a)({props:e,muiFormControl:h,states:["variant"]});return o.cloneElement(l,Object(r.a)({inputComponent:W,inputProps:Object(r.a)({children:n,classes:a,IconComponent:u,variant:p.variant,type:void 0},f,l?l.props.inputProps:{}),ref:t},d))}));q.muiName="Select";Object(h.a)(K,{name:"MuiNativeSelect"})(q);var Y=n(427),$=n(442),J=K,X=o.createElement(H.a,null),Z=o.createElement(Y.a,null),Q=o.forwardRef((function e(t,n){var s=t.autoWidth,u=void 0!==s&&s,c=t.children,l=t.classes,f=t.displayEmpty,d=void 0!==f&&f,h=t.IconComponent,p=void 0===h?V:h,g=t.id,m=t.input,v=t.inputProps,y=t.label,b=t.labelId,w=t.labelWidth,S=void 0===w?0:w,C=t.MenuProps,E=t.multiple,_=void 0!==E&&E,D=t.native,O=void 0!==D&&D,A=t.onClose,x=t.onOpen,k=t.open,T=t.renderValue,I=t.SelectDisplayProps,P=t.variant,F=void 0===P?"standard":P,j=Object(i.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),M=O?W:L,R=Object(B.a)(),N=Object(U.a)({props:t,muiFormControl:R,states:["variant"]}).variant||F,z=m||{standard:X,outlined:o.createElement($.a,{label:y,labelWidth:S}),filled:Z}[N];return o.cloneElement(z,Object(r.a)({inputComponent:M,inputProps:Object(r.a)({children:c,IconComponent:p,variant:N,type:void 0,multiple:_},O?{id:g}:{autoWidth:u,displayEmpty:d,labelId:b,MenuProps:C,onClose:A,onOpen:x,open:k,renderValue:T,SelectDisplayProps:Object(r.a)({id:g},I)},v,{classes:v?Object(a.a)({baseClasses:l,newClasses:v.classes,Component:e}):l},m?m.props.inputProps:{}),ref:n},j))}));Q.muiName="Select";t.a=Object(h.a)(J,{name:"MuiSelect"})(Q)},function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(0),a=n.n(o),s=(n(11),n(22)),u=n(7),c=n(16),l=n(30),f=n(9),d=n(83),h=n(67),p=n(36),g=n(133),m=n(28),v=n(114);function y(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(o.isValidElement)(e)?t(e):e}(e)})),n}function b(e,t,n){return null!=n[t]?n[t]:e.props[t]}function w(e,t,n){var r=y(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in t){if(i[u])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,s=void 0===o?a||t.pulsate:o,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===e.type&&v.current)v.current=!1;else{"touchstart"===e.type&&(v.current=!0);var l,f,d,h=c?null:w.current,p=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(p.width/2),f=Math.round(p.height/2);else{var g=e.touches?e.touches[0]:e,m=g.clientX,C=g.clientY;l=Math.round(m-p.left),f=Math.round(C-p.top)}if(s)(d=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2===0&&(d+=1);else{var E=2*Math.max(Math.abs((h?h.clientWidth:0)-l),l)+2,_=2*Math.max(Math.abs((h?h.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(E,2)+Math.pow(_,2))}e.touches?null===b.current&&(b.current=function(){S({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:n})},y.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):S({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:n})}}),[a,S]),_=o.useCallback((function(){C({},{pulsate:!0})}),[C]),O=o.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(y.current=setTimeout((function(){O(e,t)})));b.current=null,p((function(e){return e.length>0?e.slice(1):e})),m.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:_,start:C,stop:O}}),[_,C,O]),o.createElement("span",Object(r.a)({className:Object(u.a)(s.root,c),ref:w},l),o.createElement(E,{component:null,exit:!0},d))})),A=Object(f.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(O)),x=o.forwardRef((function(e,t){var n=e.action,a=e.buttonRef,f=e.centerRipple,h=void 0!==f&&f,p=e.children,g=e.classes,m=e.className,v=e.component,y=void 0===v?"button":v,b=e.disabled,w=void 0!==b&&b,S=e.disableRipple,C=void 0!==S&&S,E=e.disableTouchRipple,_=void 0!==E&&E,D=e.focusRipple,O=void 0!==D&&D,x=e.focusVisibleClassName,k=e.onBlur,T=e.onClick,I=e.onFocus,P=e.onFocusVisible,F=e.onKeyDown,j=e.onKeyUp,M=e.onMouseDown,R=e.onMouseLeave,N=e.onMouseUp,L=e.onTouchEnd,U=e.onTouchMove,B=e.onTouchStart,z=e.onDragLeave,V=e.tabIndex,H=void 0===V?0:V,W=e.TouchRippleProps,K=e.type,G=void 0===K?"button":K,q=Object(i.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Y=o.useRef(null);var $=o.useRef(null),J=o.useState(!1),X=J[0],Z=J[1];w&&X&&Z(!1);var Q=Object(d.a)(),ee=Q.isFocusVisible,te=Q.onBlurVisible,ne=Q.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;return Object(l.a)((function(r){return t&&t(r),!n&&$.current&&$.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){Z(!0),Y.current.focus()}}}),[]),o.useEffect((function(){X&&O&&!C&&$.current.pulsate()}),[C,O,X]);var ie=re("start",M),oe=re("stop",z),ae=re("stop",N),se=re("stop",(function(e){X&&e.preventDefault(),R&&R(e)})),ue=re("start",B),ce=re("stop",L),le=re("stop",U),fe=re("stop",(function(e){X&&(te(e),Z(!1)),k&&k(e)}),!1),de=Object(l.a)((function(e){Y.current||(Y.current=e.currentTarget),ee(e)&&(Z(!0),P&&P(e)),I&&I(e)})),he=function(){var e=s.findDOMNode(Y.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},pe=o.useRef(!1),ge=Object(l.a)((function(e){O&&!pe.current&&X&&$.current&&" "===e.key&&(pe.current=!0,e.persist(),$.current.stop(e,(function(){$.current.start(e)}))),e.target===e.currentTarget&&he()&&" "===e.key&&e.preventDefault(),F&&F(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!w&&(e.preventDefault(),T&&T(e))})),me=Object(l.a)((function(e){O&&" "===e.key&&$.current&&X&&!e.defaultPrevented&&(pe.current=!1,e.persist(),$.current.stop(e,(function(){$.current.pulsate(e)}))),j&&j(e),T&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&T(e)})),ve=y;"button"===ve&&q.href&&(ve="a");var ye={};"button"===ve?(ye.type=G,ye.disabled=w):("a"===ve&&q.href||(ye.role="button"),ye["aria-disabled"]=w);var be=Object(c.a)(a,t),we=Object(c.a)(ne,Y),Se=Object(c.a)(be,we),Ce=o.useState(!1),Ee=Ce[0],_e=Ce[1];o.useEffect((function(){_e(!0)}),[]);var De=Ee&&!C&&!w;return o.createElement(ve,Object(r.a)({className:Object(u.a)(g.root,m,X&&[g.focusVisible,x],w&&g.disabled),onBlur:fe,onClick:T,onFocus:de,onKeyDown:ge,onKeyUp:me,onMouseDown:ie,onMouseLeave:se,onMouseUp:ae,onDragLeave:oe,onTouchEnd:ce,onTouchMove:le,onTouchStart:ue,ref:Se,tabIndex:w?-1:H},ye,q),p,De?o.createElement(A,Object(r.a)({ref:$,center:h},W)):null)}));t.a=Object(f.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(x)},function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(0),a=(n(11),n(7)),s=n(54),u=n(44),c=n(9),l=n(13),f=o.forwardRef((function(e,t){var n=e.children,c=e.classes,f=e.className,d=(e.color,e.component),h=void 0===d?"label":d,p=(e.disabled,e.error,e.filled,e.focused,e.required,Object(i.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),g=Object(u.a)(),m=Object(s.a)({props:e,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]});return o.createElement(h,Object(r.a)({className:Object(a.a)(c.root,c["color".concat(Object(l.a)(m.color||"primary"))],f,m.disabled&&c.disabled,m.error&&c.error,m.filled&&c.filled,m.focused&&c.focused,m.required&&c.required),ref:t},p),n,m.required&&o.createElement("span",{"aria-hidden":!0,className:Object(a.a)(c.asterisk,m.error&&c.error)},"\u2009","*"))})),d=Object(c.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(f),h=o.forwardRef((function(e,t){var n=e.classes,c=e.className,l=e.disableAnimation,f=void 0!==l&&l,h=(e.margin,e.shrink),p=(e.variant,Object(i.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),g=Object(u.a)(),m=h;"undefined"===typeof m&&g&&(m=g.filled||g.focused||g.adornedStart);var v=Object(s.a)({props:e,muiFormControl:g,states:["margin","variant"]});return o.createElement(d,Object(r.a)({"data-shrink":m,className:Object(a.a)(n.root,c,g&&n.formControl,!f&&n.animated,m&&n.shrink,"dense"===v.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[v.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},p))}));t.a=Object(c.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(h)},,,,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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(i){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),c=1;c0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},c=function(){for(var e=[],t=0;t-1)&&(r===f||l.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var i={channel:e,payload:s({},t),source:n,patternInfo:[]};try{this._toListeners(i)}catch(o){l.error(o)}},e.prototype.listen=function(e,t,n){var r,i=this;if(void 0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(t))l.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 o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:n,callback:r})}return function(){i.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){l.debug("Dispatching to "+t+" with ",n);try{r.callback(e)}catch(i){l.error(i)}})),this.patterns.length>0){if(!n.message)return void l.warn("Cannot perform pattern matching without a message key");var i=n.message;this.patterns.forEach((function(t){var n=i.match(t.pattern);if(n){var r=u(n).slice(1),o=s(s({},e),{patternInfo:r});try{t.callback(o)}catch(a){l.error(a)}}}))}},e}())("__default__"),h={},p=function(){function e(){}return e.setItem=function(e,t){return h[e]=t,h[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(h,e)?h[e]:void 0},e.removeItem=function(e){return delete h[e]},e.clear=function(){return h={}},e}(),g=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=p}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),m=n(91),v=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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())}))},b=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},S=function(){for(var e=[],t=0;te)&&n}}(n))},O=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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())}))},A=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1](new Date).getTime()?($.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:i,expires_at:o})):a._refreshHandlers[t]&&"function"===typeof a._refreshHandlers[t]?($.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:a._refreshHandlers[t],provider:t,user:n})):($.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,i=e.user;return D(n,[],1e4).then((function(e){return $.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:i,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(),$.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return $.debug("no credentials for expiration check"),!0;$.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(){return q(this,void 0,void 0,(function(){var e,t,n,r,i,o,a,s,u=this;return Y(this,(function(c){switch(c.label){case 0:if($.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,n=e.region,e.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!t)return $.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!n)return $.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];r=void 0,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._storageSync];case 2:return c.sent(),r=this._storage.getItem("CognitoIdentityId-"+t),this._identityId=r,[3,4];case 3:return i=c.sent(),$.debug("Failed to get the cached identityId",i),[3,4];case 4:return o=new W.a({region:n,customUserAgent:B()}),a=void 0,r?(s={identityId:r,client:o},a=Object(V.a)(s)()):a=function(){return q(u,void 0,void 0,(function(){var e,n;return Y(this,(function(r){switch(r.label){case 0:return[4,o.send(new K.a({IdentityPoolId:t}))];case 1:return e=r.sent().IdentityId,this._identityId=e,n={client:o,identityId:e},[2,Object(V.a)(n)()]}}))}))}().catch((function(e){return q(u,void 0,void 0,(function(){return Y(this,(function(t){throw e}))}))})),[2,this._loadCredentials(a,"guest",!1,null).then((function(e){return e})).catch((function(e){return q(u,void 0,void 0,(function(){var n=this;return Y(this,(function(i){return"ResourceNotFoundException"===e.name&&e.message==="Identity '"+r+"' not found."?($.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+t),a=function(){return q(n,void 0,void 0,(function(){var e,n;return Y(this,(function(r){switch(r.label){case 0:return[4,o.send(new K.a({IdentityPoolId:t}))];case 1:return e=r.sent().IdentityId,this._identityId=e,n={client:o,identityId:e},[2,Object(V.a)(n)()]}}))}))}().catch((function(e){return q(n,void 0,void 0,(function(){return Y(this,(function(t){throw e}))}))})),[2,this._loadCredentials(a,"guest",!1,null)]):[2,e]}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,i={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!i)return Promise.reject("You must specify a federated provider");var o={};o[i]=n;var a=this._config,s=a.identityPoolId,u=a.region;if(!s)return $.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!u)return $.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var c=new W.a({region:u,customUserAgent:B()}),l=void 0;if(r){var f={identityId:r,logins:o,client:c};l=Object(V.a)(f)()}else{f={logins:o,identityPoolId:s,client:c};l=Object(H.a)(f)()}return this._loadCredentials(l,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;$.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,i=r.region,o=r.userPoolId,a=r.identityPoolId;if(!a)return $.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!i)return $.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var s={};s["cognito-idp."+i+".amazonaws.com/"+o]=n;var u=new W.a({region:i,customUserAgent:B()}),c=q(t,void 0,void 0,(function(){var e,t;return Y(this,(function(n){switch(n.label){case 0:return[4,u.send(new K.a({IdentityPoolId:a,Logins:s}))];case 1:return e=n.sent().IdentityId,this._identityId=e,t={client:u,logins:s,identityId:e},[2,Object(V.a)(t)()]}}))})).catch((function(e){return q(t,void 0,void 0,(function(){return Y(this,(function(t){throw e}))}))}));return this._loadCredentials(c,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var i=this,o=this,a=this._config.identityPoolId;return new Promise((function(s,u){e.then((function(e){return q(i,void 0,void 0,(function(){var i,u,c,l,f,d;return Y(this,(function(h){switch(h.label){case 0:if($.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=n,o._credentials_source=t,o._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===t){i=Object.assign({id:this._credentials.identityId},r.user),u=r.provider,c=r.token,l=r.expires_at,f=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:u,token:c,user:i,expires_at:l,identity_id:f}))}catch(p){$.debug("Failed to put federated info into auth storage",p)}}if("guest"!==t)return[3,4];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,this._storageSync];case 2:return h.sent(),this._storage.setItem("CognitoIdentityId-"+a,e.identityId),[3,4];case 3:return d=h.sent(),$.debug("Failed to cache identityId",d),[3,4];case 4:return s(o._credentials),[2]}}))}))})).catch((function(t){if(t)return $.debug("Failed to load credentials",e),$.debug("Error loading credentials",t),void u(t)}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():($.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return q(this,void 0,void 0,(function(){return Y(this,(function(e){return this._credentials=null,this._credentials_source=null,$.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);z.a.register(J);var X=function(e,t){return(X=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])})(e,t)};function Z(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}X(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Q=function(){return(Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]/g,">").replace(/"/g,""")+'"'))}}catch(c){e={error:c}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r+(n?">"+this.children.map((function(e){return e.toString()})).join("")+"":"/>")},e}();var Vi=function(){function e(e){this.value=e}return e.prototype.toString=function(){return(""+this.value).replace(/&/g,"&").replace(//g,">")},e}(),Hi=n(267),Wi=function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c;return te(this,(function(l){switch(l.label){case 0:return r=[Q({},e)],c={},[4,po(e.body,t)];case 1:switch(n=Q.apply(void 0,r.concat([(c.body=l.sent(),c)])),o="UnknownError",o=go(e,n.body),o){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":return[3,2]}return[3,4];case 2:return a=[{}],[4,no(n,t)];case 3:return i=Q.apply(void 0,[Q.apply(void 0,a.concat([l.sent()])),{name:o,$metadata:lo(e)}]),[3,5];case 4:s=n.body,o=s.code||s.Code||o,i=Q(Q({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:lo(e)}),l.label=5;case 5:return u=i.message||i.Message||o,i.message=u,delete i.Message,[2,Promise.reject(Object.assign(new Error(u),i))]}}))}))},Ki=function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return te(this,(function(c){switch(c.label){case 0:return r=[Q({},e)],u={},[4,po(e.body,t)];case 1:return n=Q.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=go(e,n.body),a=n.body,o=a.code||a.Code||o,i=Q(Q({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:lo(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},Gi=function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return te(this,(function(c){switch(c.label){case 0:return r=[Q({},e)],u={},[4,po(e.body,t)];case 1:return n=Q.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=go(e,n.body),a=n.body,o=a.code||a.Code||o,i=Q(Q({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:lo(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},qi=function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return te(this,(function(c){switch(c.label){case 0:return r=[Q({},e)],u={},[4,po(e.body,t)];case 1:return n=Q.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=go(e,n.body),a=n.body,o=a.code||a.Code||o,i=Q(Q({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:lo(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},Yi=function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return te(this,(function(f){switch(f.label){case 0:return r=[Q({},e)],l={},[4,po(e.body,t)];case 1:switch(n=Q.apply(void 0,r.concat([(l.body=f.sent(),l)])),o="UnknownError",o=go(e,n.body),o){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":return[3,2];case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":return[3,4]}return[3,6];case 2:return a=[{}],[4,Qi(n,t)];case 3:return i=Q.apply(void 0,[Q.apply(void 0,a.concat([f.sent()])),{name:o,$metadata:lo(e)}]),[3,7];case 4:return s=[{}],[4,to(n,t)];case 5:return i=Q.apply(void 0,[Q.apply(void 0,s.concat([f.sent()])),{name:o,$metadata:lo(e)}]),[3,7];case 6:u=n.body,o=u.code||u.Code||o,i=Q(Q({},u),{name:""+o,message:u.message||u.Message||o,$fault:"client",$metadata:lo(e)}),f.label=7;case 7:return c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}}))}))},$i=function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c;return te(this,(function(l){switch(l.label){case 0:return r=[Q({},e)],c={},[4,po(e.body,t)];case 1:switch(n=Q.apply(void 0,r.concat([(c.body=l.sent(),c)])),o="UnknownError",o=go(e,n.body),o){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:return a=[{}],[4,eo(n,t)];case 3:return i=Q.apply(void 0,[Q.apply(void 0,a.concat([l.sent()])),{name:o,$metadata:lo(e)}]),[3,5];case 4:s=n.body,o=s.code||s.Code||o,i=Q(Q({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:lo(e)}),l.label=5;case 5:return u=i.message||i.Message||o,i.message=u,delete i.Message,[2,Promise.reject(Object.assign(new Error(u),i))]}}))}))},Ji=function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return te(this,(function(c){switch(c.label){case 0:return r=[Q({},e)],u={},[4,po(e.body,t)];case 1:return n=Q.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=go(e,n.body),a=n.body,o=a.code||a.Code||o,i=Q(Q({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:lo(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},Xi=function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return te(this,(function(c){switch(c.label){case 0:return r=[Q({},e)],u={},[4,po(e.body,t)];case 1:return n=Q.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=go(e,n.body),a=n.body,o=a.code||a.Code||o,i=Q(Q({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:lo(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},Zi=function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return te(this,(function(c){switch(c.label){case 0:return r=[Q({},e)],u={},[4,po(e.body,t)];case 1:return n=Q.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=go(e,n.body),a=n.body,o=a.code||a.Code||o,i=Q(Q({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:lo(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},Qi=function(e,t){return ee(void 0,void 0,void 0,(function(){var t,n;return te(this,(function(r){return t={name:"InvalidObjectState",$fault:"client",$metadata:lo(e),AccessTier:void 0,StorageClass:void 0},void 0!==(n=e.body).AccessTier&&(t.AccessTier=n.AccessTier),void 0!==n.StorageClass&&(t.StorageClass=n.StorageClass),[2,t]}))}))},eo=function(e,t){return ee(void 0,void 0,void 0,(function(){var t;return te(this,(function(n){return t={name:"NoSuchBucket",$fault:"client",$metadata:lo(e)},e.body,[2,t]}))}))},to=function(e,t){return ee(void 0,void 0,void 0,(function(){var t;return te(this,(function(n){return t={name:"NoSuchKey",$fault:"client",$metadata:lo(e)},e.body,[2,t]}))}))},no=function(e,t){return ee(void 0,void 0,void 0,(function(){var t;return te(this,(function(n){return t={name:"NoSuchUpload",$fault:"client",$metadata:lo(e)},e.body,[2,t]}))}))},ro=function(e,t){var n=new zi("CompletedMultipartUpload");void 0!==e.Parts&&null!==e.Parts&&io(e.Parts,t).map((function(e){e=e.withName("Part"),n.addChildNode(e)}));return n},io=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new zi("CompletedPart");if(void 0!==e.ETag&&null!==e.ETag){var r=new zi("ETag").addChildNode(new Vi(e.ETag)).withName("ETag");n.addChildNode(r)}void 0!==e.PartNumber&&null!==e.PartNumber&&(r=new zi("PartNumber").addChildNode(new Vi(String(e.PartNumber))).withName("PartNumber"),n.addChildNode(r));return n}(e).withName("member")}))},oo=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Prefix:void 0};return void 0!==e.Prefix&&(n.Prefix=e.Prefix),n}(e)}))},ao=function(e,t){var n={ID:void 0,DisplayName:void 0};return void 0!==e.ID&&(n.ID=e.ID),void 0!==e.DisplayName&&(n.DisplayName=e.DisplayName),n},so=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Key:void 0,LastModified:void 0,ETag:void 0,Size:void 0,StorageClass:void 0,Owner:void 0};return void 0!==e.Key&&(n.Key=e.Key),void 0!==e.LastModified&&(n.LastModified=new Date(e.LastModified)),void 0!==e.ETag&&(n.ETag=e.ETag),void 0!==e.Size&&(n.Size=parseInt(e.Size)),void 0!==e.StorageClass&&(n.StorageClass=e.StorageClass),void 0!==e.Owner&&(n.Owner=uo(e.Owner,t)),n}(e,t)}))},uo=function(e,t){var n={DisplayName:void 0,ID:void 0};return void 0!==e.DisplayName&&(n.DisplayName=e.DisplayName),void 0!==e.ID&&(n.ID=e.ID),n},co=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={PartNumber:void 0,LastModified:void 0,ETag:void 0,Size:void 0};return void 0!==e.PartNumber&&(n.PartNumber=parseInt(e.PartNumber)),void 0!==e.LastModified&&(n.LastModified=new Date(e.LastModified)),void 0!==e.ETag&&(n.ETag=e.ETag),void 0!==e.Size&&(n.Size=parseInt(e.Size)),n}(e)}))},lo=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"]}},fo=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},ho=function(e){return void 0!==e&&null!==e&&""!==e&&(!Object.getOwnPropertyNames(e).includes("length")||0!=e.length)&&(!Object.getOwnPropertyNames(e).includes("size")||0!=e.size)},po=function(e,t){return function(e,t){return fo(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){if(e.length){var t=Object(Hi.parse)(e,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,tagValueProcessor:function(e,t){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<")}}),n=Object.keys(t)[0],r=t[n];return r["#text"]&&(r[n]=r["#text"],delete r["#text"]),Object(Li.g)(r)}return{}}))},go=function(e,t){return void 0!==t.Code?t.Code:404==e.statusCode?"NotFound":""},mo=function(e){return"string"===typeof e&&0===e.indexOf("arn:")&&e.split(":").length>=6},vo=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,yo=/(\d+\.){3}\d+/,bo=/\.\./,wo=/\./,So=/^(.+\.)?s3[.-]([a-z0-9-]+)\./,Co=/^s3(-external-1)?\.amazonaws\.com$/,Eo="amazonaws.com",_o=function(e){return Oo(e)?e.replace(/fips-|-fips/,""):e},Do=function(e){var t=e.match(So);return[t[2],e.replace(new RegExp("^"+t[0]),"")]},Oo=function(e){return e.startsWith("fips-")||e.endsWith("-fips")},Ao=function(e,t){return e===t||_o(e)===t||e===_o(t)},xo=function(e,t){if(void 0===t&&(t={tlsCompatible:!0}),e.length>=64||!/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||(null===t||void 0===t?void 0:t.tlsCompatible)&&wo.test(e))throw new Error("Invalid DNS label "+e)},ko=function(e){var t=e.isCustomEndpoint,n=(e.baseHostname,e.dualstackEndpoint),r=e.accelerateEndpoint;if(t){if(n)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(r)throw new Error("Accelerate endpoint is not supported with custom endpoint")}return function(e){return"string"===typeof e.bucketName}(e)?Io(Object(Bi.__assign)(Object(Bi.__assign)({},e),{isCustomEndpoint:t})):To(Object(Bi.__assign)(Object(Bi.__assign)({},e),{isCustomEndpoint:t}))},To=function(e){var t,n=e.isCustomEndpoint,r=e.baseHostname,i=Object(Bi.__read)(n?[e.clientRegion,r]:(t=r,Co.test(t)?[t.replace(".amazonaws.com",""),Eo]:Do(t)),2),o=i[0],a=i[1],s=e.pathStyleEndpoint,u=e.dualstackEndpoint,c=void 0!==u&&u,l=e.accelerateEndpoint,f=void 0!==l&&l,d=e.tlsCompatible,h=void 0===d||d,p=e.useArnRegion,g=e.bucketName,m=e.clientPartition,v=void 0===m?"aws":m,y=e.clientSigningRegion,b=void 0===y?o:y;!function(e){if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")}({pathStyleEndpoint:s,accelerateEndpoint:f,tlsCompatible:h});var w=g.service,S=g.partition,C=g.accountId,E=g.region,_=g.resource;!function(e){if("s3"!==e&&"s3-outposts"!==e)throw new Error("Expect 's3' or 's3-outposts' in ARN service component")}(w),function(e,t){if(e!==t.clientPartition)throw new Error('Partition in ARN is incompatible, got "'+e+'" but expected "'+t.clientPartition+'"')}(S,{clientPartition:v}),function(e){if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")}(C),function(e,t){if(""===e)throw new Error("ARN region is empty");if(!t.useArnRegion&&!Ao(e,t.clientRegion)&&!Ao(e,t.clientSigningRegion))throw new Error("Region in ARN is incompatible, got "+e+" but expected "+t.clientRegion);if(t.useArnRegion&&Oo(e))throw new Error("Endpoint does not support FIPS region")}(E,{useArnRegion:p,clientRegion:o,clientSigningRegion:b});var D=function(e){var t=e.includes(":")?":":"/",n=Object(Bi.__read)(e.split(t)),r=n[0],i=n.slice(1);if("accesspoint"===r){if(1!==i.length||""===i[0])throw new Error("Access Point ARN should have one resource accesspoint"+t+"{accesspointname}");return{accesspointName:i[0]}}if("outpost"===r){if(!i[0]||"accesspoint"!==i[1]||!i[2]||3!==i.length)throw new Error("Outpost ARN should have resource outpost"+t+"{outpostId}"+t+"accesspoint"+t+"{accesspointName}");var o=Object(Bi.__read)(i,3),a=o[0];return o[1],{outpostId:a,accesspointName:o[2]}}throw new Error("ARN resource should begin with 'accesspoint"+t+"' or 'outpost"+t+"'")}(_),O=D.accesspointName,A=D.outpostId;xo(O+"-"+C,{tlsCompatible:h});var x=p?E:o,k=p?E:b;return A?(function(e){if("s3-outposts"!==e)throw new Error("Expect 's3-posts' in Outpost ARN service component")}(w),xo(A,{tlsCompatible:h}),function(e){if(e)throw new Error("Dualstack endpoint is not supported with Outpost")}(c),function(e){if(Oo(null!==e&&void 0!==e?e:""))throw new Error("FIPS region is not supported with Outpost, got "+e)}(x),{bucketEndpoint:!0,hostname:O+"-"+C+"."+A+(n?"":".s3-outposts."+x)+"."+a,signingRegion:k,signingService:"s3-outposts"}):(function(e){if("s3"!==e)throw new Error("Expect 's3' in Accesspoint ARN service component")}(w),{bucketEndpoint:!0,hostname:O+"-"+C+(n?"":".s3-accesspoint"+(c?".dualstack":"")+"."+x)+"."+a,signingRegion:k})},Io=function(e){var t,n=e.accelerateEndpoint,r=void 0!==n&&n,i=e.clientRegion,o=e.baseHostname,a=e.bucketName,s=e.dualstackEndpoint,u=void 0!==s&&s,c=e.pathStyleEndpoint,l=void 0!==c&&c,f=e.tlsCompatible,d=void 0===f||f,h=e.isCustomEndpoint,p=void 0!==h&&h,g=Object(Bi.__read)(p?[i,o]:(t=o,Co.test(t)?["us-east-1",Eo]:Do(t)),2),m=g[0],v=g[1];return l||!function(e){return vo.test(e)&&!yo.test(e)&&!bo.test(e)}(a)||d&&wo.test(a)?{bucketEndpoint:!1,hostname:u?"s3.dualstack."+m+"."+v:o}:(r?o="s3-accelerate"+(u?".dualstack":"")+"."+v:u&&(o="s3.dualstack."+m+"."+v),{bucketEndpoint:!0,hostname:a+"."+o})},Po=function(e){return function(t,n){return function(r){return Object(Bi.__awaiter)(void 0,void 0,void 0,(function(){var i,o,a,s,u,c,l,f,d,h,p,g,m,v,y,b,w,S;return Object(Bi.__generator)(this,(function(C){switch(C.label){case 0:return i=r.input.Bucket,o=e.bucketEndpoint,a=r.request,Ui.a.isInstance(a)?e.bucketEndpoint?(a.hostname=i,[3,7]):[3,1]:[3,8];case 1:return mo(i)?(s=function(e){var t=e.split(":");if(t.length<6||"arn"!==t[0])throw new Error("Malformed ARN");var n=Object(Bi.__read)(t);return{partition:n[1],service:n[2],region:n[3],accountId:n[4],resource:n.slice(5).join(":")}}(i),u=_o,[4,e.region()]):[3,5];case 2:return v=u.apply(void 0,[C.sent()]),[4,e.regionInfoProvider(v)];case 3:return c=C.sent()||{},l=c.partition,f=c.signingRegion,d=void 0===f?v:f,[4,e.useArnRegion()];case 4:return h=C.sent(),p=ko({bucketName:s,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===a.protocol,useArnRegion:h,clientPartition:l,clientSigningRegion:d,clientRegion:v,isCustomEndpoint:e.isCustomEndpoint}),w=p.hostname,S=p.bucketEndpoint,g=p.signingRegion,m=p.signingService,g&&g!==d&&(n.signing_region=g),m&&"s3"!==m&&(n.signing_service=m),a.hostname=w,o=S,[3,7];case 5:return y=_o,[4,e.region()];case 6:v=y.apply(void 0,[C.sent()]),b=ko({bucketName:i,clientRegion:v,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===a.protocol,isCustomEndpoint:e.isCustomEndpoint}),w=b.hostname,S=b.bucketEndpoint,a.hostname=w,o=S,C.label=7;case 7:o&&(a.path=a.path.replace(/^(\/)?[^\/]+/,""),""===a.path&&(a.path="/")),C.label=8;case 8:return[2,t(Object(Bi.__assign)(Object(Bi.__assign)({},r),{request:a}))]}}))}))}}},Fo={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},jo=function(e){return{applyToStack:function(t){t.addRelativeTo(Po(e),Fo)}}};var Mo=n(25);var Ro={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},No=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(r){return Object(Bi.__awaiter)(t,void 0,void 0,(function(){var t,i,o,a,s,u,c,l,f,d,h,p,g,m,v,y,b;return Object(Bi.__generator)(this,(function(w){switch(w.label){case 0:t=Object(Bi.__assign)({},r.input),i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}],w.label=1;case 1:w.trys.push([1,6,7,8]),o=Object(Bi.__values)(i),a=o.next(),w.label=2;case 2:return a.done?[3,5]:(s=a.value,(u=t[s.target])?(c=ArrayBuffer.isView(u)?new Uint8Array(u.buffer,u.byteOffset,u.byteLength):"string"===typeof u?e.utf8Decoder(u):new Uint8Array(u),l=e.base64Encoder(c),(f=new e.md5).update(c),d=[Object(Bi.__assign)({},t)],(b={})[s.target]=l,h=s.hash,g=(p=e).base64Encoder,[4,f.digest()]):[3,4]);case 3:t=Bi.__assign.apply(void 0,d.concat([(b[h]=g.apply(p,[w.sent()]),b)])),w.label=4;case 4:return a=o.next(),[3,2];case 5:return[3,8];case 6:return m=w.sent(),v={error:m},[3,8];case 7:try{a&&!a.done&&(y=o.return)&&y.call(o)}finally{if(v)throw v.error}return[7];case 8:return[2,n(Object(Bi.__assign)(Object(Bi.__assign)({},r),{input:t}))]}}))}))}}}(e),Ro)}}},Lo=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Z(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Mo.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(No(t)),this.middlewareStack.use(jo(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:Jn.filterSensitiveLog,outputFilterSensitiveLog:$n.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return te(this,(function(f){switch(f.label){case 0:if(n=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({},ho(e.IfMatch)&&{"if-match":e.IfMatch}),ho(e.IfModifiedSince)&&{"if-modified-since":Object(Li.d)(e.IfModifiedSince).toString()}),ho(e.IfNoneMatch)&&{"if-none-match":e.IfNoneMatch}),ho(e.IfUnmodifiedSince)&&{"if-unmodified-since":Object(Li.d)(e.IfUnmodifiedSince).toString()}),ho(e.Range)&&{range:e.Range}),ho(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),ho(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),ho(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),ho(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),ho(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Li.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Li.e)(e)})).join("/")),o=Q(Q(Q(Q(Q(Q(Q(Q({"x-id":"GetObject"},void 0!==e.ResponseCacheControl&&{"response-cache-control":e.ResponseCacheControl}),void 0!==e.ResponseContentDisposition&&{"response-content-disposition":e.ResponseContentDisposition}),void 0!==e.ResponseContentEncoding&&{"response-content-encoding":e.ResponseContentEncoding}),void 0!==e.ResponseContentLanguage&&{"response-content-language":e.ResponseContentLanguage}),void 0!==e.ResponseContentType&&{"response-content-type":e.ResponseContentType}),void 0!==e.ResponseExpires&&{"response-expires":(e.ResponseExpires.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Ui.a({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r;return te(this,(function(i){return 200!==e.statusCode&&e.statusCode>=300?[2,Yi(e,t)]:(n={$metadata:lo(e),AcceptRanges:void 0,Body:void 0,BucketKeyEnabled:void 0,CacheControl:void 0,ContentDisposition:void 0,ContentEncoding:void 0,ContentLanguage:void 0,ContentLength:void 0,ContentRange:void 0,ContentType:void 0,DeleteMarker:void 0,ETag:void 0,Expiration:void 0,Expires:void 0,LastModified:void 0,Metadata:void 0,MissingMeta:void 0,ObjectLockLegalHoldStatus:void 0,ObjectLockMode:void 0,ObjectLockRetainUntilDate:void 0,PartsCount:void 0,ReplicationStatus:void 0,RequestCharged:void 0,Restore:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,StorageClass:void 0,TagCount:void 0,VersionId:void 0,WebsiteRedirectLocation:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["accept-ranges"]&&(n.AcceptRanges=e.headers["accept-ranges"]),void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-restore"]&&(n.Restore=e.headers["x-amz-restore"]),void 0!==e.headers["last-modified"]&&(n.LastModified=new Date(e.headers["last-modified"])),void 0!==e.headers["content-length"]&&(n.ContentLength=parseInt(e.headers["content-length"],10)),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-missing-meta"]&&(n.MissingMeta=parseInt(e.headers["x-amz-missing-meta"],10)),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["cache-control"]&&(n.CacheControl=e.headers["cache-control"]),void 0!==e.headers["content-disposition"]&&(n.ContentDisposition=e.headers["content-disposition"]),void 0!==e.headers["content-encoding"]&&(n.ContentEncoding=e.headers["content-encoding"]),void 0!==e.headers["content-language"]&&(n.ContentLanguage=e.headers["content-language"]),void 0!==e.headers["content-range"]&&(n.ContentRange=e.headers["content-range"]),void 0!==e.headers["content-type"]&&(n.ContentType=e.headers["content-type"]),void 0!==e.headers.expires&&(n.Expires=new Date(e.headers.expires)),void 0!==e.headers["x-amz-website-redirect-location"]&&(n.WebsiteRedirectLocation=e.headers["x-amz-website-redirect-location"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-storage-class"]&&(n.StorageClass=e.headers["x-amz-storage-class"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),void 0!==e.headers["x-amz-replication-status"]&&(n.ReplicationStatus=e.headers["x-amz-replication-status"]),void 0!==e.headers["x-amz-mp-parts-count"]&&(n.PartsCount=parseInt(e.headers["x-amz-mp-parts-count"],10)),void 0!==e.headers["x-amz-tagging-count"]&&(n.TagCount=parseInt(e.headers["x-amz-tagging-count"],10)),void 0!==e.headers["x-amz-object-lock-mode"]&&(n.ObjectLockMode=e.headers["x-amz-object-lock-mode"]),void 0!==e.headers["x-amz-object-lock-retain-until-date"]&&(n.ObjectLockRetainUntilDate=new Date(e.headers["x-amz-object-lock-retain-until-date"])),void 0!==e.headers["x-amz-object-lock-legal-hold"]&&(n.ObjectLockLegalHoldStatus=e.headers["x-amz-object-lock-legal-hold"]),Object.keys(e.headers).forEach((function(t){void 0===n.Metadata&&(n.Metadata={}),t.startsWith("x-amz-meta-")&&(n.Metadata[t.substring(11)]=e.headers[t])})),r=e.body,n.Body=r,[2,Promise.resolve(n)])}))}))}(e,t)},t}(Li.b),Uo=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Z(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Mo.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(jo(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:ze.filterSensitiveLog,outputFilterSensitiveLog:Be.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return te(this,(function(f){switch(f.label){case 0:if(n=Q(Q(Q(Q({},ho(e.MFA)&&{"x-amz-mfa":e.MFA}),ho(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),ho(e.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":e.BypassGovernanceRetention.toString()}),ho(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Li.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Li.e)(e)})).join("/")),o=Q({"x-id":"DeleteObject"},void 0!==e.VersionId&&{versionId:e.VersionId}),[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Ui.a({protocol:c,hostname:s,port:l,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n;return te(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,qi(e,t)]:(n={$metadata:lo(e),DeleteMarker:void 0,RequestCharged:void 0,VersionId:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,fo(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Li.b),Bo=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Z(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Mo.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(jo(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:Br.filterSensitiveLog,outputFilterSensitiveLog:Ur.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return te(this,(function(f){switch(f.label){case 0:if(n=Q(Q({},ho(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),ho(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(Li.e)(i)),o=Q(Q(Q(Q(Q({},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.Marker&&{marker:e.Marker}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Ui.a({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r;return te(this,(function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,$i(e,t)]:(n={$metadata:lo(e),CommonPrefixes:void 0,Contents:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,Marker:void 0,MaxKeys:void 0,Name:void 0,NextMarker:void 0,Prefix:void 0},[4,po(e.body,t)]);case 1:return""===(r=i.sent()).CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==r.CommonPrefixes&&(n.CommonPrefixes=oo(Object(Li.f)(r.CommonPrefixes),t)),""===r.Contents&&(n.Contents=[]),void 0!==r.Contents&&(n.Contents=so(Object(Li.f)(r.Contents),t)),void 0!==r.Delimiter&&(n.Delimiter=r.Delimiter),void 0!==r.EncodingType&&(n.EncodingType=r.EncodingType),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.Marker&&(n.Marker=r.Marker),void 0!==r.MaxKeys&&(n.MaxKeys=parseInt(r.MaxKeys)),void 0!==r.Name&&(n.Name=r.Name),void 0!==r.NextMarker&&(n.NextMarker=r.NextMarker),void 0!==r.Prefix&&(n.Prefix=r.Prefix),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Li.b),zo=n(268),Vo=n(172),Ho=n(177),Wo=n(24),Ko=function(){function e(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}return e.fromNumber=function(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var n=new Uint8Array(8),r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&Go(n),new e(n)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&Go(e),parseInt(Object(Wo.b)(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function Go(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}var qo,Yo=function(){function e(e,t){this.toUtf8=e,this.fromUtf8=t}return e.prototype.format=function(e){var t,n,r,i,o=[];try{for(var a=Object(Bi.__values)(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,c=this.fromUtf8(u);o.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(e[u]))}}catch(g){t={error:g}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}var l=new Uint8Array(o.reduce((function(e,t){return e+t.byteLength}),0)),f=0;try{for(var d=Object(Bi.__values)(o),h=d.next();!h.done;h=d.next()){var p=h.value;l.set(p,f),f+=p.byteLength}}catch(m){r={error:m}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return l},e.prototype.formatHeaderValue=function(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":var t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":var n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":var r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":var i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);var o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":var a=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+a.byteLength));s.setUint8(0,7),s.setUint16(1,a.byteLength,!1);var u=new Uint8Array(s.buffer);return u.set(a,3),u;case"timestamp":var c=new Uint8Array(9);return c[0]=8,c.set(Ko.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!ia.test(e.value))throw new Error("Invalid UUID received: "+e.value);var l=new Uint8Array(17);return l[0]=9,l.set(Object(Wo.a)(e.value.replace(/\-/g,"")),1),l}},e.prototype.parse=function(e){for(var t={},n=0;n=a?r():o.readAsArrayBuffer(e.slice(s,Math.min(a,s+n)))}o.addEventListener("load",(function(e){var n=e.target.result;t(new Uint8Array(n)),s+=n.byteLength,u()})),u()}))}var fa=n(180),da=n(61),ha=64,pa=[1732584193,4023233417,2562383102,271733878],ga=function(){function e(){this.state=Uint32Array.from(pa),this.buffer=new DataView(new ArrayBuffer(ha)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(!function(e){if("string"===typeof e)return 0===e.length;return 0===e.byteLength}(e)){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=function(e){if("string"===typeof e)return Object(da.fromUtf8)(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(e)}(e),n=0,r=t.byteLength;for(this.bytesHashed+=r;r>0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===ha&&(this.hashBuffer(),this.bufferLength=0)}},e.prototype.digest=function(){return Object(Bi.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,i,o,a;return Object(Bi.__generator)(this,(function(s){if(!this.finished){if(t=(e=this).buffer,n=e.bufferLength,r=e.bytesHashed,i=8*r,t.setUint8(this.bufferLength++,128),n%ha>=56){for(a=this.bufferLength;a>>0,!0),t.setUint32(60,Math.floor(i/4294967296),!0),this.hashBuffer(),this.finished=!0}for(o=new DataView(new ArrayBuffer(16)),a=0;a<4;a++)o.setUint32(4*a,this.state[a],!0);return[2,new Uint8Array(o.buffer,o.byteOffset,o.byteLength)]}))}))},e.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,n=t[0],r=t[1],i=t[2],o=t[3];n=va(n,r,i,o,e.getUint32(0,!0),7,3614090360),o=va(o,n,r,i,e.getUint32(4,!0),12,3905402710),i=va(i,o,n,r,e.getUint32(8,!0),17,606105819),r=va(r,i,o,n,e.getUint32(12,!0),22,3250441966),n=va(n,r,i,o,e.getUint32(16,!0),7,4118548399),o=va(o,n,r,i,e.getUint32(20,!0),12,1200080426),i=va(i,o,n,r,e.getUint32(24,!0),17,2821735955),r=va(r,i,o,n,e.getUint32(28,!0),22,4249261313),n=va(n,r,i,o,e.getUint32(32,!0),7,1770035416),o=va(o,n,r,i,e.getUint32(36,!0),12,2336552879),i=va(i,o,n,r,e.getUint32(40,!0),17,4294925233),r=va(r,i,o,n,e.getUint32(44,!0),22,2304563134),n=va(n,r,i,o,e.getUint32(48,!0),7,1804603682),o=va(o,n,r,i,e.getUint32(52,!0),12,4254626195),i=va(i,o,n,r,e.getUint32(56,!0),17,2792965006),n=ya(n,r=va(r,i,o,n,e.getUint32(60,!0),22,1236535329),i,o,e.getUint32(4,!0),5,4129170786),o=ya(o,n,r,i,e.getUint32(24,!0),9,3225465664),i=ya(i,o,n,r,e.getUint32(44,!0),14,643717713),r=ya(r,i,o,n,e.getUint32(0,!0),20,3921069994),n=ya(n,r,i,o,e.getUint32(20,!0),5,3593408605),o=ya(o,n,r,i,e.getUint32(40,!0),9,38016083),i=ya(i,o,n,r,e.getUint32(60,!0),14,3634488961),r=ya(r,i,o,n,e.getUint32(16,!0),20,3889429448),n=ya(n,r,i,o,e.getUint32(36,!0),5,568446438),o=ya(o,n,r,i,e.getUint32(56,!0),9,3275163606),i=ya(i,o,n,r,e.getUint32(12,!0),14,4107603335),r=ya(r,i,o,n,e.getUint32(32,!0),20,1163531501),n=ya(n,r,i,o,e.getUint32(52,!0),5,2850285829),o=ya(o,n,r,i,e.getUint32(8,!0),9,4243563512),i=ya(i,o,n,r,e.getUint32(28,!0),14,1735328473),n=ba(n,r=ya(r,i,o,n,e.getUint32(48,!0),20,2368359562),i,o,e.getUint32(20,!0),4,4294588738),o=ba(o,n,r,i,e.getUint32(32,!0),11,2272392833),i=ba(i,o,n,r,e.getUint32(44,!0),16,1839030562),r=ba(r,i,o,n,e.getUint32(56,!0),23,4259657740),n=ba(n,r,i,o,e.getUint32(4,!0),4,2763975236),o=ba(o,n,r,i,e.getUint32(16,!0),11,1272893353),i=ba(i,o,n,r,e.getUint32(28,!0),16,4139469664),r=ba(r,i,o,n,e.getUint32(40,!0),23,3200236656),n=ba(n,r,i,o,e.getUint32(52,!0),4,681279174),o=ba(o,n,r,i,e.getUint32(0,!0),11,3936430074),i=ba(i,o,n,r,e.getUint32(12,!0),16,3572445317),r=ba(r,i,o,n,e.getUint32(24,!0),23,76029189),n=ba(n,r,i,o,e.getUint32(36,!0),4,3654602809),o=ba(o,n,r,i,e.getUint32(48,!0),11,3873151461),i=ba(i,o,n,r,e.getUint32(60,!0),16,530742520),n=wa(n,r=ba(r,i,o,n,e.getUint32(8,!0),23,3299628645),i,o,e.getUint32(0,!0),6,4096336452),o=wa(o,n,r,i,e.getUint32(28,!0),10,1126891415),i=wa(i,o,n,r,e.getUint32(56,!0),15,2878612391),r=wa(r,i,o,n,e.getUint32(20,!0),21,4237533241),n=wa(n,r,i,o,e.getUint32(48,!0),6,1700485571),o=wa(o,n,r,i,e.getUint32(12,!0),10,2399980690),i=wa(i,o,n,r,e.getUint32(40,!0),15,4293915773),r=wa(r,i,o,n,e.getUint32(4,!0),21,2240044497),n=wa(n,r,i,o,e.getUint32(32,!0),6,1873313359),o=wa(o,n,r,i,e.getUint32(60,!0),10,4264355552),i=wa(i,o,n,r,e.getUint32(24,!0),15,2734768916),r=wa(r,i,o,n,e.getUint32(52,!0),21,1309151649),n=wa(n,r,i,o,e.getUint32(16,!0),6,4149444226),o=wa(o,n,r,i,e.getUint32(44,!0),10,3174756917),i=wa(i,o,n,r,e.getUint32(8,!0),15,718787259),r=wa(r,i,o,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=o+t[3]&4294967295},e}();function ma(e,t,n,r,i,o){return((t=(t+e&4294967295)+(r+o&4294967295)&4294967295)<>>32-i)+n&4294967295}function va(e,t,n,r,i,o,a){return ma(t&n|~t&r,e,t,i,o,a)}function ya(e,t,n,r,i,o,a){return ma(t&r|n&~r,e,t,i,o,a)}function ba(e,t,n,r,i,o,a){return ma(t^n^r,e,t,i,o,a)}function wa(e,t,n,r,i,o,a){return ma(n^(t|~r),e,t,i,o,a)}var Sa=n(68),Ca=n(90),Ea=n(173),_a=n(174),Da="s3.{region}.amazonaws.com",Oa=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"]),Aa=new Set(["cn-north-1","cn-northwest-1"]),xa=new Set(["us-iso-east-1"]),ka=new Set(["us-isob-east-1"]),Ta=new Set(["us-gov-east-1","us-gov-west-1"]),Ia={apiVersion:"2006-03-01",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"af-south-1":n={hostname:"s3.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"s3.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"s3.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"s3.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"s3.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"s3.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"s3.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"aws-global":n={hostname:"s3.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"ca-central-1":n={hostname:"s3.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"s3.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"s3.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"s3.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"s3.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"s3.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"s3.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"s3.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"s3.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-gov-west-1":n={hostname:"s3-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"me-south-1":n={hostname:"s3.me-south-1.amazonaws.com",partition:"aws"};break;case"s3-external-1":n={hostname:"s3-external-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"sa-east-1":n={hostname:"s3.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"s3.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"s3.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-east-1":n={hostname:"s3.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1":n={hostname:"s3.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-iso-east-1":n={hostname:"s3.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"s3.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"s3.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"s3.us-west-2.amazonaws.com",partition:"aws"};break;default:Oa.has(e)&&(n={hostname:Da.replace("{region}",e),partition:"aws"}),Aa.has(e)&&(n={hostname:"s3.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),xa.has(e)&&(n={hostname:"s3.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),ka.has(e)&&(n={hostname:"s3.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),Ta.has(e)&&(n={hostname:"s3.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:Da.replace("{region}",e),partition:"aws"})}return Promise.resolve(Q({signingService:"s3"},n))},serviceId:"S3",signingEscapePath:!1,urlParser:n(182).a,useArnRegion:!1},Pa=Q(Q({},Ia),{runtime:"browser",base64Decoder:Ca.a,base64Encoder:Ca.b,bodyLengthChecker:Ea.a,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:Object(_a.a)({serviceId:Ia.serviceId,clientVersion:zo.version}),eventStreamSerdeProvider:function(e){return new sa(e)},maxAttempts:Sa.a,md5:ga,region:Object(fa.a)("Region is missing"),requestHandler:new ca.a,sha256:Vo.Sha256,streamCollector:ca.b,streamHasher:function(e,t){return Object(Bi.__awaiter)(this,void 0,void 0,(function(){var n;return Object(Bi.__generator)(this,(function(r){switch(r.label){case 0:return n=new e,[4,la(t,(function(e){n.update(e)}))];case 1:return r.sent(),[2,n.digest()]}}))}))},utf8Decoder:da.fromUtf8,utf8Encoder:da.toUtf8}),Fa=n(123),ja=n(171);var Ma={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},Ra=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(r){return Object(Bi.__awaiter)(t,void 0,void 0,(function(){var t;return Object(Bi.__generator)(this,(function(i){return t=r.request,Ui.a.isInstance(t)&&t.body&&"node"===e.runtime&&(t.headers=Object(Bi.__assign)(Object(Bi.__assign)({},t.headers),{Expect:"100-continue"})),[2,n(Object(Bi.__assign)(Object(Bi.__assign)({},r),{request:t}))]}))}))}}}(e),Ma)}}},Na=n(116),La=n(181);var Ua={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},Ba=function(e){return{applyToStack:function(e){e.add(function(){var e=this;return function(t){return function(n){return Object(Bi.__awaiter)(e,void 0,void 0,(function(){var e,r;return Object(Bi.__generator)(this,(function(i){if("string"===typeof(e=n.input.Bucket)&&!mo(e)&&e.indexOf("/")>=0)throw(r=new Error("Bucket name shouldn't contain '/', received '"+e+"'")).name="InvalidBucketName",r;return[2,t(Object(Bi.__assign)({},n))]}))}))}}}(),Ua)}}},za={step:"build",tags:["USE_REGIONAL_ENDPOINT","S3"],name:"useRegionalEndpointMiddleware",override:!0},Va=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(Bi.__awaiter)(void 0,void 0,void 0,(function(){var r,i;return Object(Bi.__generator)(this,(function(o){switch(o.label){case 0:return r=n.request,!Ui.a.isInstance(r)||e.isCustomEndpoint?[2,t(Object(Bi.__assign)({},n))]:"s3.amazonaws.com"!==r.hostname?[3,1]:(r.hostname="s3.us-east-1.amazonaws.com",[3,3]);case 1:return i="aws-global",[4,e.region()];case 2:i===o.sent()&&(r.hostname="s3.amazonaws.com"),o.label=3;case 3:return[2,t(Object(Bi.__assign)({},n))]}}))}))}}}(e),za)}}},Ha=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},Wa=function(e,t){return Ha(e,t).then((function(e){return t.utf8Encoder(e)}))},Ka={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Ga=function(e){return{applyToStack:function(t){t.addRelativeTo(function(e){return function(t){return function(n){return Object(Bi.__awaiter)(void 0,void 0,void 0,(function(){var r,i,o,a,s,u,c;return Object(Bi.__generator)(this,(function(l){switch(l.label){case 0:return[4,t(n)];case 1:return r=l.sent(),i=r.response,Ui.b.isInstance(i)?(o=i.statusCode,a=i.body,o<200&&o>=300?[2,r]:[4,Ha(a,e)]):[2,r];case 2:return s=l.sent(),[4,Wa(s,e)];case 3:if(u=l.sent(),0===s.length)throw(c=new Error("S3 aborted request")).name="InternalError",c;return u&&u.match("")&&(i.statusCode=400),i.body=s,[2,r]}}))}))}}}(e),Ka)}}},qa=n(139),Ya=n(122),$a=function(e){function t(t){var n,r=this,i=Q(Q({},Pa),t),o=Object(Fa.b)(i),a=Object(Fa.a)(o),s=Object(qa.b)(a),u=Object(Sa.c)(s),c=function(e){var t=e.bucketEndpoint,n=void 0!==t&&t,r=e.forcePathStyle,i=void 0!==r&&r,o=e.useAccelerateEndpoint,a=void 0!==o&&o,s=e.useDualstackEndpoint,u=void 0!==s&&s,c=e.useArnRegion,l=void 0!==c&&c;return Object(Bi.__assign)(Object(Bi.__assign)({},e),{bucketEndpoint:n,forcePathStyle:i,useAccelerateEndpoint:a,useDualstackEndpoint:u,useArnRegion:"function"===typeof l?l:function(){return Promise.resolve(l)}})}(Object(Na.b)(u)),l=Object(Ya.b)(c),f=(n=l,Object(Bi.__assign)(Object(Bi.__assign)({},n),{eventStreamMarshaller:n.eventStreamSerdeProvider(n)}));return(r=e.call(this,f)||this).config=f,r.middlewareStack.use(Object(qa.a)(r.config)),r.middlewareStack.use(Object(Sa.b)(r.config)),r.middlewareStack.use(Object(ja.a)(r.config)),r.middlewareStack.use(Object(Na.a)(r.config)),r.middlewareStack.use(Object(La.a)(r.config)),r.middlewareStack.use(Ba(r.config)),r.middlewareStack.use(Va(r.config)),r.middlewareStack.use(Ra(r.config)),r.middlewareStack.use(Object(Ya.a)(r.config)),r}return Z(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Li.a),Ja=n(113);function Xa(e){var t=e.port,n=e.query,r=e.protocol,i=e.path,o=e.hostname;r&&":"!==r.substr(-1)&&(r+=":"),t&&(o+=":"+t),i&&"/"!==i.charAt(0)&&(i="/"+i);var a=n?Object(Ja.a)(n):"";return a&&"?"!==a[0]&&(a="?"+a),r+"//"+o+i+a}function Za(e,t){return Object(Bi.__awaiter)(this,void 0,void 0,(function(){var n,r,i=this;return Object(Bi.__generator)(this,(function(o){switch(o.label){case 0:return n=function(e){return function(e){return Object(Bi.__awaiter)(i,void 0,void 0,(function(){return Object(Bi.__generator)(this,(function(t){return[2,{output:{request:e.request},response:void 0}]}))}))}},(r=e.middlewareStack.clone()).add(n,{step:"build",priority:"low"}),[4,t.resolveMiddleware(r,e.config,void 0)(t).then((function(e){return e.output.request}))];case 1:return[2,o.sent()]}}))}))}var Qa=n(179),es=function(){function e(e){var t=Object(Bi.__assign)({service:e.signingName||e.service||"s3",uriEscapePath:e.uriEscapePath||!1},e);this.signer=new Qa.a(t)}return e.prototype.presign=function(e,t){void 0===t&&(t={});var n=t.unsignableHeaders,r=void 0===n?new Set:n,i=t.unhoistableHeaders,o=void 0===i?new Set:i,a=Object(Bi.__rest)(t,["unsignableHeaders","unhoistableHeaders"]);return Object(Bi.__awaiter)(this,void 0,void 0,(function(){return Object(Bi.__generator)(this,(function(t){return r.add("content-type"),Object.keys(e.headers).map((function(e){return e.toLowerCase()})).filter((function(e){return e.startsWith("x-amz-server-side-encryption")})).forEach((function(e){o.add(e)})),e.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",e.headers.host||(e.headers.host=e.hostname),[2,this.signer.presign(e,Object(Bi.__assign)({expiresIn:900,unsignableHeaders:r,unhoistableHeaders:o},a))]}))}))},e}(),ts=n(46),ns=n.n(ts),rs=new r.a("axios-http-handler"),is="sendProgress",os=function(){function e(e,t,n){void 0===e&&(e={}),this.httpOptions=e,this.emitter=t,this.cancelTokenSource=n}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=this.httpOptions.requestTimeout,r=this.emitter,i=e.path;if(e.query){var o=Object(Ja.a)(e.query);o&&(i+="?"+o)}var a=e.port,s=e.protocol+"//"+e.hostname+(a?":"+a:"")+i,u={};u.url=s,u.method=e.method,u.headers=e.headers,delete u.headers.host,e.body?u.data=e.body:u.headers["Content-Type"]&&(u.data=null),r&&(u.onUploadProgress=function(e){r.emit(is,e),rs.debug(e)}),this.cancelTokenSource&&(u.cancelToken=this.cancelTokenSource.token),u.responseType="blob";var c=[ns.a.request(u).then((function(e){return{response:new Ui.b({headers:e.headers,statusCode:e.status,body:e.data})}})).catch((function(e){throw rs.error(e),e})),as(n)];return Promise.race(c)},e}();function as(e){return void 0===e&&(e=0),new Promise((function(t,n){e&&setTimeout((function(){var t=new Error("Request did not complete within "+e+" ms");t.name="TimeoutError",n(t)}),e)}))}var ss,us,cs,ls,fs,ds,hs,ps,gs,ms,vs,ys,bs,ws,Ss,Cs,Es,_s,Ds,Os,As,xs,ks,Ts,Is,Ps,Fs,js,Ms,Rs,Ns,Ls,Us,Bs,zs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Z(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Mo.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(No(t)),this.middlewareStack.use(jo(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:Ci.filterSensitiveLog,outputFilterSensitiveLog:Si.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l,f,d;return te(this,(function(h){switch(h.label){case 0:if(n=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({"content-type":"application/octet-stream"},ho(e.ACL)&&{"x-amz-acl":e.ACL}),ho(e.CacheControl)&&{"cache-control":e.CacheControl}),ho(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),ho(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),ho(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),ho(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),ho(e.ContentMD5)&&{"content-md5":e.ContentMD5}),ho(e.ContentType)&&{"content-type":e.ContentType}),ho(e.Expires)&&{expires:Object(Li.d)(e.Expires).toString()}),ho(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),ho(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),ho(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),ho(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),ho(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),ho(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),ho(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),ho(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),ho(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),ho(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),ho(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),ho(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),ho(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),ho(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),ho(e.Tagging)&&{"x-amz-tagging":e.Tagging}),ho(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),ho(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),ho(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),ho(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var r;return Q(Q({},t),((r={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))}),{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Li.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Li.e)(e)})).join("/")),o={"x-id":"PutObject"},void 0!==e.Body&&(s=e.Body,a=s),[4,t.endpoint()];case 1:return u=h.sent(),c=u.hostname,l=u.protocol,f=void 0===l?"https":l,d=u.port,[2,new Ui.a({protocol:f,hostname:c,port:d,method:"PUT",headers:n,path:r,query:o,body:a})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n;return te(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Xi(e,t)]:(n={$metadata:lo(e),BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,fo(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Li.b),Vs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Z(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Mo.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(No(t)),this.middlewareStack.use(jo(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:Oe.filterSensitiveLog,outputFilterSensitiveLog:De.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return te(this,(function(f){switch(f.label){case 0:if(n=Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({},ho(e.ACL)&&{"x-amz-acl":e.ACL}),ho(e.CacheControl)&&{"cache-control":e.CacheControl}),ho(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),ho(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),ho(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),ho(e.ContentType)&&{"content-type":e.ContentType}),ho(e.Expires)&&{expires:Object(Li.d)(e.Expires).toString()}),ho(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),ho(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),ho(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),ho(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),ho(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),ho(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),ho(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),ho(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),ho(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),ho(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),ho(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),ho(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),ho(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),ho(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),ho(e.Tagging)&&{"x-amz-tagging":e.Tagging}),ho(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),ho(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),ho(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),ho(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var r;return Q(Q({},t),((r={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))}),{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Li.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Li.e)(e)})).join("/")),o={uploads:""},[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Ui.a({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r;return te(this,(function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Gi(e,t)]:(n={$metadata:lo(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,BucketKeyEnabled:void 0,Key:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(n.AbortDate=new Date(e.headers["x-amz-abort-date"])),void 0!==e.headers["x-amz-abort-rule-id"]&&(n.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,po(e.body,t)]);case 1:return void 0!==(r=i.sent()).Bucket&&(n.Bucket=r.Bucket),void 0!==r.Key&&(n.Key=r.Key),void 0!==r.UploadId&&(n.UploadId=r.UploadId),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Li.b);(ss||(ss={})).filterSensitiveLog=function(e){return Q({},e)},(us||(us={})).filterSensitiveLog=function(e){return Q(Q({},e),e.Encryption&&{Encryption:Ni.filterSensitiveLog(e.Encryption)})},(cs||(cs={})).filterSensitiveLog=function(e){return Q(Q({},e),e.S3&&{S3:us.filterSensitiveLog(e.S3)})},function(e){e.IGNORE="IGNORE",e.NONE="NONE",e.USE="USE"}(ls||(ls={})),(fs||(fs={})).filterSensitiveLog=function(e){return Q({},e)},function(e){e.DOCUMENT="DOCUMENT",e.LINES="LINES"}(ds||(ds={})),(hs||(hs={})).filterSensitiveLog=function(e){return Q({},e)},(ps||(ps={})).filterSensitiveLog=function(e){return Q({},e)},(gs||(gs={})).filterSensitiveLog=function(e){return Q({},e)},function(e){e.ALWAYS="ALWAYS",e.ASNEEDED="ASNEEDED"}(ms||(ms={})),(vs||(vs={})).filterSensitiveLog=function(e){return Q({},e)},(ys||(ys={})).filterSensitiveLog=function(e){return Q({},e)},(bs||(bs={})).filterSensitiveLog=function(e){return Q({},e)},(ws||(ws={})).filterSensitiveLog=function(e){return Q({},e)},function(e){e.SELECT="SELECT"}(Ss||(Ss={})),(Cs||(Cs={})).filterSensitiveLog=function(e){return Q(Q({},e),e.OutputLocation&&{OutputLocation:cs.filterSensitiveLog(e.OutputLocation)})},(Es||(Es={})).filterSensitiveLog=function(e){return Q(Q({},e),e.RestoreRequest&&{RestoreRequest:Cs.filterSensitiveLog(e.RestoreRequest)})},(_s||(_s={})).filterSensitiveLog=function(e){return Q({},e)},(Ds||(Ds={})).filterSensitiveLog=function(e){return Q({},e)},(Os||(Os={})).filterSensitiveLog=function(e){return Q({},e)},(As||(As={})).filterSensitiveLog=function(e){return Q({},e)},(xs||(xs={})).filterSensitiveLog=function(e){return Q({},e)},(ks||(ks={})).filterSensitiveLog=function(e){return Q({},e)},(Ts||(Ts={})).filterSensitiveLog=function(e){return Q({},e)},function(e){e.visit=function(e,t){return void 0!==e.Records?t.Records(e.Records):void 0!==e.Stats?t.Stats(e.Stats):void 0!==e.Progress?t.Progress(e.Progress):void 0!==e.Cont?t.Cont(e.Cont):void 0!==e.End?t.End(e.End):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Records?{Records:xs.filterSensitiveLog(e.Records)}:void 0!==e.Stats?{Stats:Ts.filterSensitiveLog(e.Stats)}:void 0!==e.Progress?{Progress:As.filterSensitiveLog(e.Progress)}:void 0!==e.Cont?{Cont:_s.filterSensitiveLog(e.Cont)}:void 0!==e.End?{End:Ds.filterSensitiveLog(e.End)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Is||(Is={})),(Ps||(Ps={})).filterSensitiveLog=function(e){return Q(Q({},e),e.Payload&&{Payload:"STREAMING_CONTENT"})},(Fs||(Fs={})).filterSensitiveLog=function(e){return Q({},e)},(js||(js={})).filterSensitiveLog=function(e){return Q({},e)},(Ms||(Ms={})).filterSensitiveLog=function(e){return Q(Q({},e),e.SSECustomerKey&&{SSECustomerKey:Li.c})},(Rs||(Rs={})).filterSensitiveLog=function(e){return Q(Q({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Li.c})},(Ns||(Ns={})).filterSensitiveLog=function(e){return Q(Q({},e),e.SSECustomerKey&&{SSECustomerKey:Li.c})},(Ls||(Ls={})).filterSensitiveLog=function(e){return Q({},e)},(Us||(Us={})).filterSensitiveLog=function(e){return Q(Q({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Li.c})},(Bs||(Bs={})).filterSensitiveLog=function(e){return Q(Q(Q({},e),e.SSECustomerKey&&{SSECustomerKey:Li.c}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Li.c})};var Hs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Z(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Mo.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(No(t)),this.middlewareStack.use(jo(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:Ns.filterSensitiveLog,outputFilterSensitiveLog:Rs.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l,f,d;return te(this,(function(h){switch(h.label){case 0:if(n=Q(Q(Q(Q(Q(Q(Q({"content-type":"application/octet-stream"},ho(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),ho(e.ContentMD5)&&{"content-md5":e.ContentMD5}),ho(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),ho(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),ho(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),ho(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),ho(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Li.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Li.e)(e)})).join("/")),o=Q(Q({"x-id":"UploadPart"},void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.Body&&(s=e.Body,a=s),[4,t.endpoint()];case 1:return u=h.sent(),c=u.hostname,l=u.protocol,f=void 0===l?"https":l,d=u.port,[2,new Ui.a({protocol:f,hostname:c,port:d,method:"PUT",headers:n,path:r,query:o,body:a})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n;return te(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Zi(e,t)]:(n={$metadata:lo(e),BucketKeyEnabled:void 0,ETag:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0},void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,fo(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Li.b),Ws=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Z(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Mo.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Ga(t)),this.middlewareStack.use(jo(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:ge.filterSensitiveLog,outputFilterSensitiveLog:de.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l,f,d;return te(this,(function(h){switch(h.label){case 0:if(n=Q(Q({"content-type":"application/xml"},ho(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),ho(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Li.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Li.e)(e)})).join("/")),o=Q({},void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.MultipartUpload&&(s=ro(e.MultipartUpload,t),a='',s.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),a+=s.toString()),[4,t.endpoint()];case 1:return u=h.sent(),c=u.hostname,l=u.protocol,f=void 0===l?"https":l,d=u.port,[2,new Ui.a({protocol:f,hostname:c,port:d,method:"POST",headers:n,path:r,query:o,body:a})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r;return te(this,(function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ki(e,t)]:(n={$metadata:lo(e),Bucket:void 0,BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,Key:void 0,Location:void 0,RequestCharged:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,po(e.body,t)]);case 1:return void 0!==(r=i.sent()).Bucket&&(n.Bucket=r.Bucket),void 0!==r.ETag&&(n.ETag=r.ETag),void 0!==r.Key&&(n.Key=r.Key),void 0!==r.Location&&(n.Location=r.Location),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Li.b),Ks=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Z(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Mo.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(jo(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:ie.filterSensitiveLog,outputFilterSensitiveLog:re.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return te(this,(function(f){switch(f.label){case 0:if(n=Q(Q({},ho(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),ho(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Li.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Li.e)(e)})).join("/")),o=Q({"x-id":"AbortMultipartUpload"},void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Ui.a({protocol:c,hostname:s,port:l,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n;return te(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Wi(e,t)]:(n={$metadata:lo(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,fo(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Li.b),Gs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Z(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Mo.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(jo(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:$r.filterSensitiveLog,outputFilterSensitiveLog:Yr.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return te(this,(function(f){switch(f.label){case 0:if(n=Q(Q({},ho(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),ho(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Li.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Li.e)(e)})).join("/")),o=Q(Q(Q({"x-id":"ListParts"},void 0!==e.MaxParts&&{"max-parts":e.MaxParts.toString()}),void 0!==e.PartNumberMarker&&{"part-number-marker":e.PartNumberMarker}),void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Ui.a({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return ee(void 0,void 0,void 0,(function(){var n,r;return te(this,(function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ji(e,t)]:(n={$metadata:lo(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,Initiator:void 0,IsTruncated:void 0,Key:void 0,MaxParts:void 0,NextPartNumberMarker:void 0,Owner:void 0,PartNumberMarker:void 0,Parts:void 0,RequestCharged:void 0,StorageClass:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(n.AbortDate=new Date(e.headers["x-amz-abort-date"])),void 0!==e.headers["x-amz-abort-rule-id"]&&(n.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,po(e.body,t)]);case 1:return void 0!==(r=i.sent()).Bucket&&(n.Bucket=r.Bucket),void 0!==r.Initiator&&(n.Initiator=ao(r.Initiator,t)),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.Key&&(n.Key=r.Key),void 0!==r.MaxParts&&(n.MaxParts=parseInt(r.MaxParts)),void 0!==r.NextPartNumberMarker&&(n.NextPartNumberMarker=r.NextPartNumberMarker),void 0!==r.Owner&&(n.Owner=uo(r.Owner,t)),void 0!==r.PartNumberMarker&&(n.PartNumberMarker=r.PartNumberMarker),""===r.Part&&(n.Parts=[]),void 0!==r.Part&&(n.Parts=co(Object(Li.f)(r.Part),t)),void 0!==r.StorageClass&&(n.StorageClass=r.StorageClass),void 0!==r.UploadId&&(n.UploadId=r.UploadId),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Li.b),qs=n(176),Ys=function(){return(Ys=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Zs=new r.a("AWSS3ProviderManagedUpload"),Qs=function(){function e(e,t,n){this.minPartSize=5242880,this.queueSize=4,this.body=null,this.params=null,this.opts=null,this.multiPartMap=[],this.cancel=!1,this.bytesUploaded=0,this.totalBytesToUpload=0,this.emitter=null,this.params=e,this.opts=t,this.emitter=n}return e.prototype.upload=function(){return $s(this,void 0,void 0,(function(){var e,t,n,r,i,o;return Js(this,(function(a){switch(a.label){case 0:return e=this,[4,this.validateAndSanitizeBody(this.params.Body)];case 1:return e.body=a.sent(),this.totalBytesToUpload=this.byteLength(this.body),this.totalBytesToUpload<=this.minPartSize?(this.params.Body=this.body,t=new zs(this.params),[4,this._createNewS3Client(this.opts,this.emitter)]):[3,3];case 2:return[2,a.sent().send(t)];case 3:return[4,this.createMultiPartUpload()];case 4:n=a.sent(),r=Math.ceil(this.totalBytesToUpload/this.minPartSize),i=0,a.label=5;case 5:return i0)throw new Error("Multi Part upload clean up failed");return[2]}}))}))},e.prototype.setupEventListener=function(e){var t=this;e.emitter.on(is,(function(n){t.progressChanged(e.partNumber,n.loaded-e._lastUploadedBytes),e._lastUploadedBytes=n.loaded}))},e.prototype.progressChanged=function(e,t){this.bytesUploaded+=t,this.emitter.emit(is,{loaded:this.bytesUploaded,total:this.totalBytesToUpload,part:e,key:this.params.Key})},e.prototype.byteLength=function(e){if(null===e||void 0===e)return 0;if("number"===typeof e.byteLength)return e.byteLength;if("number"===typeof e.length)return e.length;if("number"===typeof e.size)return e.size;if("string"!==typeof e.path)throw new Error("Cannot determine length of "+e)},e.prototype.validateAndSanitizeBody=function(e){return $s(this,void 0,void 0,(function(){return Js(this,(function(t){switch(t.label){case 0:return this.isGenericObject(e)?[2,JSON.stringify(e)]:[3,1];case 1:return this.isBlob(e)?U.isReactNative?[4,Object(ca.b)(e)]:[3,3]:[3,4];case 2:return[2,t.sent()];case 3:case 4:return[2,e]}}))}))},e.prototype.isBlob=function(e){return"undefined"!==typeof Blob&&e instanceof Blob},e.prototype.isGenericObject=function(e){if(null!==e&&"object"===typeof e)try{return!(this.byteLength(e)>=0)}catch(t){return!0}return!1},e.prototype._createNewS3Client=function(e,t){return $s(this,void 0,void 0,(function(){var n,r,i,o,a,s;return Js(this,(function(u){switch(u.label){case 0:return[4,this._getCredentials()];case 1:return n=u.sent(),r=e.region,i=e.dangerouslyConnectToHttpEndpointForTesting,o=e.cancelTokenSource,a={},i&&(a={endpoint:"http://localhost:20005",tls:!1,bucketEndpoint:!1,forcePathStyle:!0}),(s=new $a(Ys(Ys({region:r,credentials:n},a),{requestHandler:new os({},t,o),customUserAgent:B()}))).middlewareStack.remove("contentLengthMiddleware"),[2,s]}}))}))},e.prototype._getCredentials=function(){return J.get().then((function(e){if(!e)return!1;var t=J.shear(e);return Zs.debug("set credentials for storage",t),t})).catch((function(e){return Zs.warn("ensure credentials error",e),!1}))},e}(),eu=function(){return(eu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},fu=new r.a("StorageClass"),du="AWSS3",hu=function(){function e(){this._config={},this._pluggables=[],this._cancelTokenSourceMap=new WeakMap,fu.debug("Storage Options",this._config),this.get=this.get.bind(this),this.put=this.put.bind(this),this.remove=this.remove.bind(this),this.list=this.list.bind(this)}return e.prototype.getModuleName=function(){return"Storage"},e.prototype.addPluggable=function(e){if(e&&"Storage"===e.getCategory()){this._pluggables.push(e);return e.configure(this._config[e.getProviderName()])}},e.prototype.getPluggable=function(e){var t=this._pluggables.find((function(t){return t.getProviderName()===e}));return void 0===t?(fu.debug("No plugin found with providerName",e),null):t},e.prototype.removePluggable=function(e){this._pluggables=this._pluggables.filter((function(t){return t.getProviderName()!==e}))},e.prototype.configure=function(e){var t=this;if(fu.debug("configure Storage"),!e)return this._config;var n=a.parseMobilehubConfig(e),r=Object.keys(n.Storage),i=["bucket","region","level","track","customPrefix","serverSideEncryption","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId"],o=function(e){return i.some((function(t){return t===e}))};return r&&r.find((function(e){return o(e)}))&&!n.Storage.AWSS3&&(n.Storage.AWSS3={}),Object.entries(n.Storage).map((function(e){var t=lu(e,2),r=t[0],i=t[1];r&&o(r)&&void 0!==i&&(n.Storage.AWSS3[r]=i,delete n.Storage[r])})),Object.keys(n.Storage).forEach((function(e){"string"!==typeof n.Storage[e]&&(t._config[e]=su(su({},t._config[e]),n.Storage[e]))})),this._pluggables.forEach((function(e){e.configure(t._config[e.getProviderName()])})),0===this._pluggables.length&&this.addPluggable(new au),this._config},e.prototype.getCancellableTokenSource=function(){return ns.a.CancelToken.source()},e.prototype.updateRequestToBeCancellable=function(e,t){this._cancelTokenSourceMap.set(e,t)},e.prototype.cancel=function(e,t){var n=this._cancelTokenSourceMap.get(e);n?n.cancel(t):fu.debug("The request does not map to any cancel token")},e.prototype.get=function(e,t){var n=(t||{}).provider,r=void 0===n?du:n,i=this._pluggables.find((function(e){return e.getProviderName()===r}));if(void 0===i)return fu.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider");var o=this.getCancellableTokenSource(),a=i.get(e,su(su({},t),{cancelTokenSource:o}));return this.updateRequestToBeCancellable(a,o),a},e.prototype.isCancelError=function(e){return ns.a.isCancel(e)},e.prototype.put=function(e,t,n){var r=(n||{}).provider,i=void 0===r?du:r,o=this._pluggables.find((function(e){return e.getProviderName()===i}));if(void 0===o)return fu.debug("No plugin found with providerName",i),Promise.reject("No plugin found in Storage for the provider");var a=this.getCancellableTokenSource(),s=o.put(e,t,su(su({},n),{cancelTokenSource:a}));return this.updateRequestToBeCancellable(s,a),s},e.prototype.remove=function(e,t){return uu(this,void 0,void 0,(function(){var n,r,i;return cu(this,(function(o){return n=(t||{}).provider,r=void 0===n?du:n,void 0===(i=this._pluggables.find((function(e){return e.getProviderName()===r})))?(fu.debug("No plugin found with providerName",r),[2,Promise.reject("No plugin found in Storage for the provider")]):[2,i.remove(e,t)]}))}))},e.prototype.list=function(e,t){return uu(this,void 0,void 0,(function(){var n,r,i;return cu(this,(function(o){return n=(t||{}).provider,r=void 0===n?du:n,void 0===(i=this._pluggables.find((function(e){return e.getProviderName()===r})))?(fu.debug("No plugin found with providerName",r),[2,Promise.reject("No plugin found in Storage for the provider")]):[2,i.list(e,t)]}))}))},e}(),pu=function(){return(pu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=new r.a("Amplify"),a=new(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.Logger=r.a,this.ServiceWorker=null}return e.prototype.register=function(e){o.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):o.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),o.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=i(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}())},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(28),a=n(11),s=n.n(a),u=1073741823,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var f=i.a.createContext||function(e,t){var n,i,a="__create-react-context-"+function(){var e="__global_unique_id__";return c[e]=(c[e]||0)+1}()+"__",f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):u,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?u:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?u:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((i={})[a]=s.a.object,i),{Provider:f,Consumer:d}};t.a=f}).call(this,n(73))},function(e,t,n){var r=n(421);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",l=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],d=n[1],h=n.index;if(s+=e.slice(a,h),a=h+f.length,d)s+=d[1];else{var p=e[a],g=n[2],m=n[3],v=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var S=null!=g&&null!=p&&p!==g,C="+"===b||"*"===b,E="?"===b||"*"===b,_=n[2]||l,D=v||y;r.push({name:m||o++,prefix:g||"",delimiter:_,optional:E,repeat:C,partial:S,asterisk:!!w,pattern:D?c(D):w?".*":"[^"+u(_)+"]+?"})}}return a>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(this)},e}(),I=P;function P(e,t){null!=e&&this.fromString(e,t)}function F(){return new P(null)}var j="undefined"!==typeof navigator;j&&"Microsoft Internet Explorer"==navigator.appName?(P.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},k=30):j&&"Netscape"!=navigator.appName?(P.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},k=26):(P.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},k=28),P.prototype.DB=k,P.prototype.DM=(1<>>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 V(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},V.prototype.revert=function(e){var t=F();return e.copyTo(t),this.reduce(t),t},V.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(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)},V.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},V.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},P.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},P.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},P.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,i=!1,o=0;--r>=0;){var a=U(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}this.clamp(),i&&P.ZERO.subTo(this,this)},P.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},P.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},P.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},P.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,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=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()},P.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=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()},P.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var c=o.t,l=o[c-1];if(0!=l){var f=l*(1<1?o[c-2]>>this.F2:0),d=this.FV/f,h=(1<=0&&(n[n.t++]=1,n.subTo(v,n)),P.ONE.dlShiftTo(c,v),v.subTo(o,o);o.t=0;){var y=n[--g]==l?this.DM:Math.floor(n[g]*d+(n[g-1]+p)*h);if((n[g]+=o.am(0,y,n,m,0,c))0&&n.rShiftTo(u,n),a<0&&P.ZERO.subTo(n,n)}}},P.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},P.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=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()},P.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<0)for(s>s)>0&&(i=!0,o=L(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=L(n));return i?o:"0"},P.prototype.negate=function(){var e=F();return P.ZERO.subTo(this,e),e},P.prototype.abs=function(){return this.s<0?this.negate():this},P.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},P.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+z(this[this.t-1]^this.s&this.DM)},P.prototype.mod=function(e){var t=F();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(P.ZERO)>0&&e.subTo(t,t),t},P.prototype.equals=function(e){return 0==this.compareTo(e)},P.prototype.add=function(e){var t=F();return this.addTo(e,t),t},P.prototype.subtract=function(e){var t=F();return this.subTo(e,t),t},P.prototype.multiply=function(e){var t=F();return this.multiplyTo(e,t),t},P.prototype.divide=function(e){var t=F();return this.divRemTo(e,t,null),t},P.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=B(1),a=new V(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6;var s=new Array,u=3,c=r-1,l=(1<1){var f=F();for(a.sqrTo(s[1],f);u<=l;)s[u]=F(),a.mulTo(f,s[u-2],s[u]),u+=2}var d,h,p=e.t-1,g=!0,m=F();for(i=z(e[p])-1;p>=0;){for(i>=c?d=e[p]>>i-c&l:(d=(e[p]&(1<0&&(d|=e[p-1]>>this.DB+i-c)),u=r;0==(1&d);)d>>=1,--u;if((i-=u)<0&&(i+=this.DB,--p),g)s[d].copyTo(o),g=!1;else{for(;u>1;)a.sqrTo(o,m),a.sqrTo(m,o),u-=2;u>0?a.sqrTo(o,m):(h=o,o=m,m=h),a.mulTo(m,s[d],o)}for(;p>=0&&0==(e[p]&1<0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ke="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Te=function(e,t,n){u.a.dispatch("auth",{event:e,data:t,message:n},"Auth",ke)},Ie=new s.a("OAuth"),Pe=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,i=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||_e,this._config=t,this._cognitoClientId=n,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}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,i,o,a){void 0===e&&(e="code"),void 0===o&&(o=r.Cognito);var s=this._generateState(32),u=a?s+"-"+a.split("").map((function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):s;!function(e){window.sessionStorage.setItem("oauth_state",e)}(u);var c,l=this._generateRandom(128);c=l,window.sessionStorage.setItem("ouath_pkce_key",c);var f=this._generateChallenge(l),d=this._scopes.join(" "),h="https://"+t+"/oauth2/authorize?"+Object.entries(De(De({redirect_uri:n,response_type:e,client_id:i,identity_provider:o,scope:d,state:u},"code"===e?{code_challenge:f}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=xe(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&");Ie.debug("Redirecting to "+h),this._urlOpener(h,n)},e.prototype._handleCodeFlow=function(e){return Oe(this,void 0,void 0,(function(){var t,n,r,i,o,s,u,c,l,f,d,h,p,g;return Ae(this,(function(m){switch(m.label){case 0:return t=(Object(Ee.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=xe(t,2),i=r[0],o=r[1];return De(De({},e),((n={})[i]=o,n))}),{code:void 0}).code,n=Object(Ee.parse)(e).pathname||"/",r=Object(Ee.parse)(this._config.redirectSignIn).pathname||"/",t&&n===r?(i="https://"+this._config.domain+"/oauth2/token",Te("codeFlow",{},"Retrieving tokens from "+i),o=a(this._config)?this._cognitoClientId:this._config.clientID,s=a(this._config)?this._config.redirectSignIn:this._config.redirectUri,u=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e}(),c=De({grant_type:"authorization_code",code:t,client_id:o,redirect_uri:s},u?{code_verifier:u}:{}),Ie.debug("Calling token endpoint: "+i+" with",c),l=Object.entries(c).map((function(e){var t=xe(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),[4,fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:l})]):[2];case 1:return[4,m.sent().json()];case 2:if(f=m.sent(),d=f.access_token,h=f.refresh_token,p=f.id_token,g=f.error)throw new Error(g);return[2,{accessToken:d,refreshToken:h,idToken:p}]}}))}))},e.prototype._handleImplicitFlow=function(e){return Oe(this,void 0,void 0,(function(){var t,n,r;return Ae(this,(function(i){return t=(Object(Ee.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=xe(t,2),i=r[0],o=r[1];return De(De({},e),((n={})[i]=o,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,Te("implicitFlow",{},"Got tokens from "+e),Ie.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return Oe(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return Ae(this,(function(u){switch(u.label){case 0:if(u.trys.push([0,5,,6]),t=e?De(De({},(Object(Ee.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=xe(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})),(Object(Ee.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=xe(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return i=this._validateState(t),Ie.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(o=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,De.apply(void 0,[De.apply(void 0,o.concat([u.sent()])),{state:i}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,De.apply(void 0,[De.apply(void 0,a.concat([u.sent()])),{state:i}])];case 4:return[3,6];case 5:throw s=u.sent(),Ie.error("Error handling auth response.",s),s;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e}(),n=e.state;if(t&&t!==n)throw new Error("Invalid state in OAuth flow");return n}},e.prototype.signOut=function(){return Oe(this,void 0,void 0,(function(){var e,t,n;return Ae(this,(function(r){return e="https://"+this._config.domain+"/logout?",t=a(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=a(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=xe(e,2);return t[0]+"="+t[1]})).join("&"),Te("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),Ie.debug("Signing out from "+e),[2,this._urlOpener(e)]}))}))},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){return this._base64URL(D()(e))},e.prototype._base64URL=function(e){return e.toString(Q.a).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;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ve=new s.a("AuthClass"),He="aws.cognito.signin.user.admin",We="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Ke=function(e,t,n){u.a.dispatch("auth",{event:e,data:t,message:n},"Auth",We)},Ge=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=c.a,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?Ke("tokenRefresh",void 0,"New token retrieved"):Ke("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),u.a.listen("auth",(function(e){switch(e.payload.event){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||{};Ve.debug("configure Auth");var n=Object.assign({},this._config,d.parseMobilehubConfig(e).Auth,e);this._config=n;var r=this._config,i=r.userPoolId,o=r.userPoolWebClientId,s=r.cookieStorage,u=r.oauth,c=r.region,l=r.identityPoolId,f=r.mandatorySignIn,h=r.refreshHandlers,g=r.identityPoolRegion,y=r.clientMetadata,b=r.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw Ve.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=s?new Ce(s):e.ssr?new m:(new v.a).getStorage();if(this._storageSync=Promise.resolve(),"function"===typeof this._storage.sync&&(this._storageSync=this._storage.sync()),i){var w={UserPoolId:i,ClientId:o,endpoint:b};w.Storage=this._storage,this.userPool=new we(w,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:f,region:g||c,userPoolId:i,identityPoolId:l,refreshHandlers:h,storage:this._storage});var S=u?a(this._config.oauth)?u:u.awsCognito:void 0;if(S){var C=Object.assign({cognitoClientId:o,UserPoolId:i,domain:S.domain,scopes:S.scope,redirectSignIn:S.redirectSignIn,redirectSignOut:S.redirectSignOut,responseType:S.responseType,Storage:this._storage,urlOpener:S.urlOpener,clientMetadata:y},S.options);this._oAuthHandler=new Pe({scopes:C.scopes,config:C,cognitoClientId:C.cognitoClientId});var E={};!function(e){if(p.a.browserOrNode().isBrowser&&window.location)e({url:window.location.href});else if(!p.a.browserOrNode().isNode)throw new Error("Not supported")}((function(e){var n=e.url;E[n]||(E[n]=!0,t._handleAuthResponse(n))}))}return Ke("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,n=[],r=1;rb?"".concat(b,"+"):c),o.createElement(m,Object(r.a)({className:Object(a.a)(f.root,d),ref:t},O),l,o.createElement("span",{className:Object(a.a)(f.badge,f["".concat(s.horizontal).concat(Object(u.a)(s.vertical),"}")],f["anchorOrigin".concat(Object(u.a)(s.vertical)).concat(Object(u.a)(s.horizontal)).concat(Object(u.a)(S))],"default"!==p&&f["color".concat(Object(u.a)(p))],A&&f.invisible,"dot"===D&&f.dot)},x))}));t.a=Object(s.a)((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(c)},function(e,t,n){"use strict";var r=n(3),i=n(41),o=n(6),a=n(17),s=n(0),u=n(22),c=(n(11),n(7)),l=n(281),f=n(18),d=n(9),h=n(13),p=n(284),g=n(210),m=n(16),v=n(48),y=n(39),b=n(83),w=n(82),S=n(27);function C(e){return Math.round(1e5*e)/1e5}var E=!1,_=null;var D=s.forwardRef((function(e,t){var n=e.arrow,a=void 0!==n&&n,f=e.children,d=e.classes,C=e.disableFocusListener,D=void 0!==C&&C,O=e.disableHoverListener,A=void 0!==O&&O,x=e.disableTouchListener,k=void 0!==x&&x,T=e.enterDelay,I=void 0===T?100:T,P=e.enterNextDelay,F=void 0===P?0:P,j=e.enterTouchDelay,M=void 0===j?700:j,R=e.id,N=e.interactive,L=void 0!==N&&N,U=e.leaveDelay,B=void 0===U?0:U,z=e.leaveTouchDelay,V=void 0===z?1500:z,H=e.onClose,W=e.onOpen,K=e.open,G=e.placement,q=void 0===G?"bottom":G,Y=e.PopperComponent,$=void 0===Y?g.a:Y,J=e.PopperProps,X=e.title,Z=e.TransitionComponent,Q=void 0===Z?p.a:Z,ee=e.TransitionProps,te=Object(o.a)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),ne=Object(S.a)(),re=s.useState(),ie=re[0],oe=re[1],ae=s.useState(null),se=ae[0],ue=ae[1],ce=s.useRef(!1),le=s.useRef(),fe=s.useRef(),de=s.useRef(),he=s.useRef(),pe=Object(w.a)({controlled:K,default:!1,name:"Tooltip",state:"open"}),ge=Object(i.a)(pe,2),me=ge[0],ve=ge[1],ye=me,be=Object(v.a)(R);s.useEffect((function(){return function(){clearTimeout(le.current),clearTimeout(fe.current),clearTimeout(de.current),clearTimeout(he.current)}}),[]);var we=function(e){clearTimeout(_),E=!0,ve(!0),W&&W(e)},Se=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=f.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),ce.current&&"touchstart"!==t.type||(ie&&ie.removeAttribute("title"),clearTimeout(fe.current),clearTimeout(de.current),I||E&&F?(t.persist(),fe.current=setTimeout((function(){we(t)}),E?F:I)):we(t))}},Ce=Object(b.a)(),Ee=Ce.isFocusVisible,_e=Ce.onBlurVisible,De=Ce.ref,Oe=s.useState(!1),Ae=Oe[0],xe=Oe[1],ke=function(){Ae&&(xe(!1),_e())},Te=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){ie||oe(t.currentTarget),Ee(t)&&(xe(!0),Se()(t));var n=f.props;n.onFocus&&e&&n.onFocus(t)}},Ie=function(e){clearTimeout(_),_=setTimeout((function(){E=!1}),800+B),ve(!1),H&&H(e),clearTimeout(le.current),le.current=setTimeout((function(){ce.current=!1}),ne.transitions.duration.shortest)},Pe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=f.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),ke()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===ie&&n.onMouseLeave(t),clearTimeout(fe.current),clearTimeout(de.current),t.persist(),de.current=setTimeout((function(){Ie(t)}),B)}},Fe=function(e){ce.current=!0;var t=f.props;t.onTouchStart&&t.onTouchStart(e)},je=Object(m.a)(oe,t),Me=Object(m.a)(De,je),Re=s.useCallback((function(e){Object(y.a)(Me,u.findDOMNode(e))}),[Me]),Ne=Object(m.a)(f.ref,Re);""===X&&(ye=!1);var Le=!ye&&!A,Ue=Object(r.a)({"aria-describedby":ye?be:null,title:Le&&"string"===typeof X?X:null},te,f.props,{className:Object(c.a)(te.className,f.props.className),onTouchStart:Fe,ref:Ne}),Be={};k||(Ue.onTouchStart=function(e){Fe(e),clearTimeout(de.current),clearTimeout(le.current),clearTimeout(he.current),e.persist(),he.current=setTimeout((function(){Se()(e)}),M)},Ue.onTouchEnd=function(e){f.props.onTouchEnd&&f.props.onTouchEnd(e),clearTimeout(he.current),clearTimeout(de.current),e.persist(),de.current=setTimeout((function(){Ie(e)}),V)}),A||(Ue.onMouseOver=Se(),Ue.onMouseLeave=Pe(),L&&(Be.onMouseOver=Se(!1),Be.onMouseLeave=Pe(!1))),D||(Ue.onFocus=Te(),Ue.onBlur=Pe(),L&&(Be.onFocus=Te(!1),Be.onBlur=Pe(!1)));var ze=s.useMemo((function(){return Object(l.a)({popperOptions:{modifiers:{arrow:{enabled:Boolean(se),element:se}}}},J)}),[se,J]);return s.createElement(s.Fragment,null,s.cloneElement(f,Ue),s.createElement($,Object(r.a)({className:Object(c.a)(d.popper,L&&d.popperInteractive,a&&d.popperArrow),placement:q,anchorEl:ie,open:!!ie&&ye,id:Ue["aria-describedby"],transition:!0},Be,ze),(function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(Q,Object(r.a)({timeout:ne.transitions.duration.shorter},n,ee),s.createElement("div",{className:Object(c.a)(d.tooltip,d["tooltipPlacement".concat(Object(h.a)(t.split("-")[0]))],ce.current&&d.touch,a&&d.tooltipArrow)},X,a?s.createElement("span",{className:d.arrow,ref:ue}):null))})))}));t.a=Object(d.a)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:Object(f.d)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(C(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Object(f.d)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(C(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Object(a.a)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(a.a)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(a.a)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(a.a)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(D)},function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(0),a=(n(11),n(259)),s=n(279),u=n(428),c=n(66),l=n(39),f=n(16);function d(e){return"function"===typeof e?e():e}var h="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,p={},g=o.forwardRef((function(e,t){var n=e.anchorEl,g=e.children,m=e.container,v=e.disablePortal,y=void 0!==v&&v,b=e.keepMounted,w=void 0!==b&&b,S=e.modifiers,C=e.open,E=e.placement,_=void 0===E?"bottom":E,D=e.popperOptions,O=void 0===D?p:D,A=e.popperRef,x=e.style,k=e.transition,T=void 0!==k&&k,I=Object(i.a)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),P=o.useRef(null),F=Object(f.a)(P,t),j=o.useRef(null),M=Object(f.a)(j,A),R=o.useRef(M);h((function(){R.current=M}),[M]),o.useImperativeHandle(A,(function(){return j.current}),[]);var N=o.useState(!0),L=N[0],U=N[1],B=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(_,Object(s.a)()),z=o.useState(B),V=z[0],H=z[1];o.useEffect((function(){j.current&&j.current.update()}));var W=o.useCallback((function(){if(P.current&&n&&C){j.current&&(j.current.destroy(),R.current(null));var e=function(e){H(e.placement)},t=(d(n),new a.a(d(n),P.current,Object(r.a)({placement:B},O,{modifiers:Object(r.a)({},y?{}:{preventOverflow:{boundariesElement:"window"}},S,O.modifiers),onCreate:Object(c.a)(e,O.onCreate),onUpdate:Object(c.a)(e,O.onUpdate)})));R.current(t)}}),[n,y,S,C,B,O]),K=o.useCallback((function(e){Object(l.a)(F,e),W()}),[F,W]),G=function(){j.current&&(j.current.destroy(),R.current(null))};if(o.useEffect((function(){return function(){G()}}),[]),o.useEffect((function(){C||T||G()}),[C,T]),!w&&!C&&(!T||L))return null;var q={placement:V};return T&&(q.TransitionProps={in:C,onEnter:function(){U(!1)},onExited:function(){U(!0),G()}}),o.createElement(u.a,{disablePortal:y,container:m},o.createElement("div",Object(r.a)({ref:K,role:"tooltip"},I,{style:Object(r.a)({position:"fixed",top:0,left:0,display:C||!w||T?null:"none"},x)}),"function"===typeof g?g(q):g))}));t.a=g},function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(0),a=(n(11),n(7)),s=n(169),u=n(20),c=Object(u.a)(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),l=Object(u.a)(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),f=n(18),d=Object(u.a)(o.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),h=n(13),p=n(9),g=o.createElement(l,null),m=o.createElement(c,null),v=o.createElement(d,null),y=o.forwardRef((function(e,t){var n=e.checkedIcon,u=void 0===n?g:n,c=e.classes,l=e.color,f=void 0===l?"secondary":l,d=e.icon,p=void 0===d?m:d,y=e.indeterminate,b=void 0!==y&&y,w=e.indeterminateIcon,S=void 0===w?v:w,C=e.inputProps,E=e.size,_=void 0===E?"medium":E,D=Object(i.a)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),O=b?S:p,A=b?S:u;return o.createElement(s.a,Object(r.a)({type:"checkbox",classes:{root:Object(a.a)(c.root,c["color".concat(Object(h.a)(f))],b&&c.indeterminate),checked:c.checked,disabled:c.disabled},color:f,inputProps:Object(r.a)({"data-indeterminate":b},C),icon:o.cloneElement(O,{fontSize:void 0===O.props.fontSize&&"small"===_?_:O.props.fontSize}),checkedIcon:o.cloneElement(A,{fontSize:void 0===A.props.fontSize&&"small"===_?_:A.props.fontSize}),ref:t},D))}));t.a=Object(p.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(f.d)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(f.d)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(y)},function(e,t,n){"use strict";var r=n(6),i=n(3),o=n(280),a=n(0),s=(n(11),n(7)),u=n(54),c=n(99),l=n(9),f=n(13),d=n(16),h=n(40);function p(e,t){return parseInt(e[t],10)||0}var g="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,m={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},v=a.forwardRef((function(e,t){var n=e.onChange,o=e.rows,s=e.rowsMax,u=e.rowsMin,c=void 0===u?1:u,l=e.style,f=e.value,v=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),y=o||c,b=a.useRef(null!=f).current,w=a.useRef(null),S=Object(d.a)(t,w),C=a.useRef(null),E=a.useRef(0),_=a.useState({}),D=_[0],O=_[1],A=a.useCallback((function(){var t=w.current,n=window.getComputedStyle(t),r=C.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=p(n,"padding-bottom")+p(n,"padding-top"),a=p(n,"border-bottom-width")+p(n,"border-top-width"),u=r.scrollHeight-o;r.value="x";var c=r.scrollHeight-o,l=u;y&&(l=Math.max(Number(y)*c,l)),s&&(l=Math.min(Number(s)*c,l));var f=(l=Math.max(l,c))+("border-box"===i?o+a:0),d=Math.abs(l-u)<=1;O((function(e){return E.current<20&&(f>0&&Math.abs((e.outerHeightStyle||0)-f)>1||e.overflow!==d)?(E.current+=1,{overflow:d,outerHeightStyle:f}):e}))}),[s,y,e.placeholder]);a.useEffect((function(){var e=Object(h.a)((function(){E.current=0,A()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[A]),g((function(){A()})),a.useEffect((function(){E.current=0}),[f]);return a.createElement(a.Fragment,null,a.createElement("textarea",Object(i.a)({value:f,onChange:function(e){E.current=0,b||A(),n&&n(e)},ref:S,rows:y,style:Object(i.a)({height:D.outerHeightStyle,overflow:D.overflow?"hidden":null},l)},v)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:C,tabIndex:-1,style:Object(i.a)({},m,l)}))})),y=n(100),b="undefined"===typeof window?a.useEffect:a.useLayoutEffect,w=a.forwardRef((function(e,t){var n=e["aria-describedby"],l=e.autoComplete,h=e.autoFocus,p=e.classes,g=e.className,m=(e.color,e.defaultValue),w=e.disabled,S=e.endAdornment,C=(e.error,e.fullWidth),E=void 0!==C&&C,_=e.id,D=e.inputComponent,O=void 0===D?"input":D,A=e.inputProps,x=void 0===A?{}:A,k=e.inputRef,T=(e.margin,e.multiline),I=void 0!==T&&T,P=e.name,F=e.onBlur,j=e.onChange,M=e.onClick,R=e.onFocus,N=e.onKeyDown,L=e.onKeyUp,U=e.placeholder,B=e.readOnly,z=e.renderSuffix,V=e.rows,H=e.rowsMax,W=e.rowsMin,K=e.startAdornment,G=e.type,q=void 0===G?"text":G,Y=e.value,$=Object(r.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),J=null!=x.value?x.value:Y,X=a.useRef(null!=J).current,Z=a.useRef(),Q=a.useCallback((function(e){0}),[]),ee=Object(d.a)(x.ref,Q),te=Object(d.a)(k,ee),ne=Object(d.a)(Z,te),re=a.useState(!1),ie=re[0],oe=re[1],ae=Object(c.b)();var se=Object(u.a)({props:e,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});se.focused=ae?ae.focused:ie,a.useEffect((function(){!ae&&w&&ie&&(oe(!1),F&&F())}),[ae,w,ie,F]);var ue=ae&&ae.onFilled,ce=ae&&ae.onEmpty,le=a.useCallback((function(e){Object(y.b)(e)?ue&&ue():ce&&ce()}),[ue,ce]);b((function(){X&&le({value:J})}),[J,le,X]);a.useEffect((function(){le(Z.current)}),[]);var fe=O,de=Object(i.a)({},x,{ref:ne});"string"!==typeof fe?de=Object(i.a)({inputRef:ne,type:q},de,{ref:null}):I?!V||H||W?(de=Object(i.a)({rows:V,rowsMax:H},de),fe=v):fe="textarea":de=Object(i.a)({type:q},de);return a.useEffect((function(){ae&&ae.setAdornedStart(Boolean(K))}),[ae,K]),a.createElement("div",Object(i.a)({className:Object(s.a)(p.root,p["color".concat(Object(f.a)(se.color||"primary"))],g,se.disabled&&p.disabled,se.error&&p.error,E&&p.fullWidth,se.focused&&p.focused,ae&&p.formControl,I&&p.multiline,K&&p.adornedStart,S&&p.adornedEnd,"dense"===se.margin&&p.marginDense),onClick:function(e){Z.current&&e.currentTarget===e.target&&Z.current.focus(),M&&M(e)},ref:t},$),K,a.createElement(c.a.Provider,{value:null},a.createElement(fe,Object(i.a)({"aria-invalid":se.error,"aria-describedby":n,autoComplete:l,autoFocus:h,defaultValue:m,disabled:se.disabled,id:_,onAnimationStart:function(e){le("mui-auto-fill-cancel"===e.animationName?Z.current:{value:"x"})},name:P,placeholder:U,readOnly:B,required:se.required,rows:V,value:J,onKeyDown:N,onKeyUp:L},de,{className:Object(s.a)(p.input,x.className,se.disabled&&p.disabled,I&&p.inputMultiline,se.hiddenLabel&&p.inputHiddenLabel,K&&p.inputAdornedStart,S&&p.inputAdornedEnd,"search"===q&&p.inputTypeSearch,"dense"===se.margin&&p.inputMarginDense),onBlur:function(e){F&&F(e),x.onBlur&&x.onBlur(e),ae&&ae.onBlur?ae.onBlur(e):oe(!1)},onChange:function(e){if(!X){var t=e.target||Z.current;if(null==t)throw new Error(Object(o.a)(1));le({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var u=r&&!i.repeating&&v(r,i);i.previousKeyMatched&&(u||y(t,r,!1,E,g,i))?e.preventDefault():i.previousKeyMatched=!1}O&&O(e)},tabIndex:c?0:-1},k),M)}));t.a=w},,,,,,,,,,,,function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(o)})),e.exports=s}).call(this,n(81))},function(e,t,n){"use strict";var r=n(42),i=n(339),o=n(341),a=n(226),s=n(342),u=n(345),c=n(346),l=n(230);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+g)}var m=s(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),a(m,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}},h.onabort=function(){h&&(n(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||c(m))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&r.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,n){"use strict";var r=n(340);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(42);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(o,c),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var l=i.concat(o).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(f,c),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={RESISTANCE_COEF:.6,UNCERTAINTY_THRESHOLD:3}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";n.r(t),function(e){var r=n(258),i=setTimeout;function o(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void c(t.promise,i)}u(t.promise,r)}else(1===e._state?u:c)(t.promise,e._value)}))):e._deferreds.push(t)}function u(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void d((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(o){c(e,o)}var r,i}function c(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t0&&void 0!==arguments[0])||arguments[0];return r.walk(r.childs,e)},d(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=(e.onSubmit,e.instantValidate,e.onError,e.debounceTime,e.children),n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["onSubmit","instantValidate","onError","debounceTime","children"]);return o.default.createElement(h.Provider,{value:this.getFormHelpers()},o.default.createElement("form",r({},n,{onSubmit:this.submit}),t))}}]),t}(o.default.Component);p.getValidator=function(e,t,n){var r=!0,i=e;if("required"!==i||n){var o=void 0,a=e.indexOf(":");-1!==a&&(i=e.substring(0,a),o=e.substring(a+1)),r=c.default[i](t,o)}return r},p.addValidationRule=function(e,t){c.default[e]=t},p.getValidationRule=function(e){return c.default[e]},p.hasValidationRule=function(e){return c.default[e]&&"function"===typeof c.default[e]},p.removeValidationRule=function(e){delete c.default[e]},p.propTypes={onSubmit:a.default.func.isRequired,instantValidate:a.default.bool,children:a.default.node,onError:a.default.func,debounceTime:a.default.number},p.defaultProps={onError:function(){},debounceTime:0},t.default=p},function(e,t,n){"use strict";var r=function(e){return null!==e&&void 0!==e},i=function(e){return e instanceof Array?0===e.length:""===e||!r(e)},o={matchRegexp:function(e,t){var n=t instanceof RegExp?t:new RegExp(t);return i(e)||n.test(e)},isEmail:function(e){return o.matchRegexp(e,/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i)},isEmpty:function(e){return i(e)},required:function(e){return!i(e)},trim:function(e){return!function(e){return"string"!==typeof e||""===e.trim()}(e)},isNumber:function(e){return o.matchRegexp(e,/^-?[0-9]\d*(\d+)?$/i)},isFloat:function(e){return o.matchRegexp(e,/^(?:-?[1-9]\d*|-?0)?(?:\.\d+)?$/i)},isPositive:function(e){return!r(e)||(o.isNumber(e)||o.isFloat(e))&&e>=0},maxNumber:function(e,t){return i(e)||parseInt(e,10)<=parseInt(t,10)},minNumber:function(e,t){return i(e)||parseInt(e,10)>=parseInt(t,10)},maxFloat:function(e,t){return i(e)||parseFloat(e)<=parseFloat(t)},minFloat:function(e,t){return i(e)||parseFloat(e)>=parseFloat(t)},isString:function(e){return i(e)||"string"===typeof e||e instanceof String},minStringLength:function(e,t){return o.isString(e)&&e.length>=t},maxStringLength:function(e,t){return o.isString(e)&&e.length<=t},isFile:function(e){return i(e)||e instanceof File},maxFileSize:function(e,t){return i(e)||o.isFile(e)&&e.size<=parseInt(t,10)},allowedExtensions:function(e,t){return i(e)||o.isFile(e)&&-1!==t.split(",").indexOf(e.type)}};e.exports=o},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},u=function e(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:e,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(u())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)}))}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n(243),i=n(244),o=n(61),a=n(198),s=function(){function e(e){e?(this.operation=function(e){return new Promise((function(t,n){var r=a.locateWindow().msCrypto.subtle.importKey("raw",u(e),i.SHA_256_HMAC_ALGO,!1,["sign"]);r.oncomplete=function(){r.result&&t(r.result),n("ImportKey completed without importing key.")},r.onerror=function(){n("ImportKey failed to import key.")}}))}(e).then((function(e){return a.locateWindow().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve(a.locateWindow().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var t=this;r.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("Error encountered finalizing hash")},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),n("Error encountered finalizing hash")},e.finish()}))}))},e}();function u(e){return"string"===typeof e?o.fromUtf8(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"===typeof e?0===e.length:0===e.byteLength}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.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])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n(61),i=n(243),o=n(244),a=n(198),s=function(){function e(e){this.toHash=new Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,n){a.locateWindow().crypto.subtle.importKey("raw",u(e),o.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,n)})),this.key.catch((function(){})))}return e.prototype.update=function(e){if(!i.isEmptyData(e)){var t=u(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return a.locateWindow().crypto.subtle.sign(o.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):i.isEmptyData(this.toHash)?Promise.resolve(o.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return a.locateWindow().crypto.subtle.digest(o.SHA_256_HASH,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e}();function u(e){return"string"===typeof e?r.fromUtf8(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.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]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=0)}([function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(1)),r(n(2)),r(n(3)),r(n(4)),r(n(5)),r(n(6)),r(n(7)),r(n(8)),r(n(9)),r(n(10)),r(n(11)),r(n(12)),r(n(13))},function(e,t,n){e.exports={a:"Anchor__a___1_Iz8"}},function(e,t,n){e.exports={button:"Button__button___vS7Mv",signInButton:"Button__signInButton___3bUH-",googleSignInButton:"Button__googleSignInButton___1YiCu",signInButtonIcon:"Button__signInButtonIcon___ihN75",auth0SignInButton:"Button__auth0SignInButton___znnCj",facebookSignInButton:"Button__facebookSignInButton___34Txh",amazonSignInButton:"Button__amazonSignInButton___2EMtl",oAuthSignInButton:"Button__oAuthSignInButton___3UGOl",signInButtonContent:"Button__signInButtonContent___xqTXJ"}},function(e,t,n){e.exports={formContainer:"Form__formContainer___1GA3x",formSection:"Form__formSection___1PPvW",formField:"Form__formField___38Ikl",formRow:"Form__formRow___2mwRs"}},function(e,t,n){e.exports={hint:"Hint__hint___2XngB"}},function(e,t,n){e.exports={input:"Input__input___3e_bf",inputLabel:"Input__inputLabel___3VF0S",label:"Input__label___23sO8",radio:"Input__radio___2hllK"}},function(e,t,n){e.exports={navBar:"Nav__navBar___xtCFA",navRight:"Nav__navRight___1QG2J",nav:"Nav__nav___2Dx2Y",navItem:"Nav__navItem___1LtFQ"}},function(e,t,n){e.exports={photoPickerButton:"PhotoPicker__photoPickerButton___2XdVn",photoPlaceholder:"PhotoPicker__photoPlaceholder___2JXO4",photoPlaceholderIcon:"PhotoPicker__photoPlaceholderIcon___3Et71"}},function(e,t,n){e.exports={container:"Section__container___3YYTG",actionRow:"Section__actionRow___2LWSU",sectionHeader:"Section__sectionHeader___2djyg",sectionHeaderHint:"Section__sectionHeaderHint___3Wxdc",sectionBody:"Section__sectionBody___ihqqd",sectionHeaderContent:"Section__sectionHeaderContent___1UCqa",sectionFooter:"Section__sectionFooter___1T54C",sectionFooterPrimaryContent:"Section__sectionFooterPrimaryContent___2r9ZX",sectionFooterSecondaryContent:"Section__sectionFooterSecondaryContent___Nj41Q"}},function(e,t,n){e.exports={selectInput:"SelectInput__selectInput___3efO4"}},function(e,t,n){e.exports={strike:"Strike__strike___1XV1b",strikeContent:"Strike__strikeContent___10gLb"}},function(e,t,n){e.exports={toast:"Toast__toast___XXr3v",toastClose:"Toast__toastClose___18lU4"}},function(e,t,n){e.exports={totpQrcode:"Totp__totpQrcode___1crLx"}},function(e,t,n){e.exports={sumerianSceneContainer:"XR__sumerianSceneContainer___3nVMt",sumerianScene:"XR__sumerianScene___2Tt7-",loadingOverlay:"XR__loadingOverlay___IbqcI",loadingContainer:"XR__loadingContainer___2Itxb",loadingLogo:"XR__loadingLogo___Ub7xQ",loadingSceneName:"XR__loadingSceneName___3__ne",loadingBar:"XR__loadingBar___2vcke",loadingBarFill:"XR__loadingBarFill___3M-D9",sceneErrorText:"XR__sceneErrorText___2y0tp",sceneBar:"XR__sceneBar___2ShrP",sceneName:"XR__sceneName___1ApHr",sceneActions:"XR__sceneActions___7plGs",actionButton:"XR__actionButton___2poIM",tooltip:"XR__tooltip___UYyhn",actionIcon:"XR__actionIcon___2qnd2",autoShowTooltip:"XR__autoShowTooltip___V1QH7"}}])},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(205),i=n(112),o=n(436),a=n(276),s=n(95),u=n(438),c=n(49),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(233);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(351)).default;t.default=i},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}},function(e,t,n){"use strict";(function(e){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:u(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?l:10===e?f:l||f}function h(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function g(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||h(e.firstElementChild)===e)}(a)?a:h(a);var s=p(e);return s.host?g(s.host,t):g(e,p(t).host)}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(t,"top"),i=m(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function y(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var S=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},C=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=d(10),i="HTML"===t.nodeName,o=O(e),s=O(t),c=u(e),l=a(t),f=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=D({top:o.top-s.top-f,left:o.left-s.left-h,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),m=parseFloat(l.marginLeft);p.top-=f-g,p.bottom-=f-g,p.left-=h-m,p.right-=h-m,p.marginTop=g,p.marginLeft=m}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(p=v(p,t)),p}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=A(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:m(n),s=t?0:m(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return D(u)}function k(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&k(n)}function T(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function I(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?T(e):g(e,c(t));if("viewport"===r)o=x(a,i);else{var l=void 0;"scrollParent"===r?"BODY"===(l=u(s(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var f=A(l,a,i);if("HTML"!==l.nodeName||k(a))o=f;else{var d=w(e.ownerDocument),h=d.height,p=d.width;o.top+=f.top-f.marginTop,o.bottom=h+f.top,o.left+=f.left-f.marginLeft,o.right=p+f.left}}var m="number"===typeof(n=n||0);return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function P(e){return e.width*e.height}function F(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=I(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return _({key:e},s[e],{area:P(s[e])})})).sort((function(e,t){return t.area-e.area})),c=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function j(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?T(t):g(t,c(n));return A(n,i,r)}function M(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function R(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function N(e,t,n){n=n.split("-")[0];var r=M(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[c]:t[R(s)],i}function L(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function U(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=L(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=D(t.offsets.popper),t.offsets.reference=D(t.offsets.reference),t=n(t,e))})),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=j(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=F(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=U(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function z(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function V(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}var ne="flip",re="clockwise",ie="counterclockwise";function oe(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(L(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return D(s)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){$(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var ae={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:E({},u,o[u]),end:E({},u,o[u]+o[c]-a[c])};e.offsets.popper=_({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=$(+n)?[+n,0]:oe(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=V("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=I(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),E({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=_({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",c=a?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Z(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,u=o.reference,c=-1!==["left","right"].indexOf(i),l=c?"height":"width",f=c?"Top":"Left",d=f.toLowerCase(),h=c?"left":"top",p=c?"bottom":"right",g=M(r)[l];u[p]-gs[p]&&(e.offsets.popper[d]+=u[d]+g-s[p]),e.offsets.popper=D(e.offsets.popper);var m=u[d]+u[l]/2-g/2,v=a(e.instance.popper),y=parseFloat(v["margin"+f]),b=parseFloat(v["border"+f+"Width"]),w=m-e.offsets.popper[d]-y-b;return w=Math.max(Math.min(s[l]-g,w),0),e.arrowElement=r,e.offsets.arrow=(E(n={},d,Math.round(w)),E(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(z(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=R(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ne:a=[r,i];break;case re:a=te(r);break;case ie:a=te(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=R(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)f(l.top)||"bottom"===r&&f(c.top)f(n.right),g=f(c.top)f(n.bottom),v="left"===r&&h||"right"===r&&p||"top"===r&&g||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&m),w=!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&m||!y&&"end"===o&&g),S=b||w;(d||v||S)&&(e.flipped=!0,(d||v)&&(r=a[u+1]),S&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=_({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=U(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=R(t),e.offsets.popper=D(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Z(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=L(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};S(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=_({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=_({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return _({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return C(e,[{key:"update",value:function(){return B.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return q.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();se.Utils=("undefined"!==typeof window?window:e).PopperUtils,se.placements=Q,se.Defaults=ae,t.a=se}).call(this,n(73))},function(e,t,n){"use strict";var r=n(49),i=n(266),o=n(205),a=n(112);n(200),n(247);r.a.Auth=o.a,r.a.Cache=a.a,r.a.ServiceWorker=i.a,t.default=r.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={},i=function(){function e(){}return e.setItem=function(e,t){return r[e]=t,r[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},e.removeItem=function(e){return delete r[e]},e.clear=function(){return r={}},e}(),o=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=i}}return e.prototype.getStorage=function(){return this.storageWindow},e}()},function(e,t,n){var r=n(394),i=n(395),o=i;o.v1=r,o.v4=i,e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return"function"===typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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),i=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":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";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 i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),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(i,o)),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]1?i-1:0),a=1;a0){var a=Object.keys(n),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var l=s.default.find(a,(function(e){return t.isPlatform(e)}));if(l){var f=this.satisfies(n[l]);if(void 0!==f)return f}}if(o>0){var d=Object.keys(i),h=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)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(i,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=c,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,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=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.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=i.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=i.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=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.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=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.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=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(o,e)||i.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=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.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=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.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=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.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=i.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=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.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,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.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=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.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,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.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=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.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:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.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,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.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:o.ENGINE_MAP.Presto},n=i.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:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},function(e){e.exports=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"}}')},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(95),i=n(45),o=n(49),a=function(){function e(){this._logger=new r.a("ServiceWorker")}return Object.defineProperty(e.prototype,"serviceWorker",{get:function(){return this._serviceWorker},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this;return void 0===e&&(e="/service-worker.js"),void 0===t&&(t="/"),this._logger.debug("registering "+e),this._logger.debug("registering service worker with scope "+t),new Promise((function(r,i){if(!navigator||!("serviceWorker"in navigator))return i(new Error("Service Worker not available"));navigator.serviceWorker.register(e,{scope:t}).then((function(e){return e.installing?n._serviceWorker=e.installing:e.waiting?n._serviceWorker=e.waiting:e.active&&(n._serviceWorker=e.active),n._registration=e,n._setupListeners(),n._logger.debug("Service Worker Registration Success: "+e),r(e)})).catch((function(e){return n._logger.debug("Service Worker Registration Failed "+e),i(e)}))}))},e.prototype.enablePush=function(e){var t=this;if(!this._registration)throw new Error("Service Worker not registered");return this._publicKey=e,new Promise((function(n,r){if(!Object(i.b)().isBrowser)return r(new Error("Service Worker not available"));t._registration.pushManager.getSubscription().then((function(r){if(!r)return t._logger.debug("User is NOT subscribed to push"),t._registration.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:t._urlB64ToUint8Array(e)}).then((function(e){t._subscription=e,t._logger.debug("User subscribed: "+JSON.stringify(e)),n(e)})).catch((function(e){t._logger.error(e)}));t._subscription=r,t._logger.debug("User is subscribed to push: "+JSON.stringify(r)),n(r)}))}))},e.prototype._urlB64ToUint8Array=function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=window.atob(t),r=new Uint8Array(n.length),i=0;i=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-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"}}')},function(e,t,n){e.exports=n(416).Observable},function(e,t,n){(function(t){var n;n=function(){return function(e){var t=e.localStorage||function(){var e={};return{setItem:function(t,n){e[t]=n},getItem:function(t){return e[t]},removeItem:function(t){delete e[t]}}}(),n=1,r=2,i=3,o=4,a=5,s=6,u=7,c=8,l=9,f=10,d=11,h=12,p=13,g=14,m=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n)){var r="Unknown property, "+n+". Valid properties are:";for(var i in t)t.hasOwnProperty(i)&&(r=r+" "+i);throw new Error(r)}if(typeof e[n]!==t[n])throw new Error(w(y.INVALID_TYPE,[typeof e[n],n]))}},v=function(e,t){return function(){return e.apply(t,arguments)}},y={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"},CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."},UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."},BUFFER_FULL:{code:18,text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}},b={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},w=function(e,t){var n=e.text;if(t)for(var r,i,o=0;o0){var a=n.substring(0,i),s=n.substring(i+r.length);n=a+t[o]+s}return n},S=[0,6,77,81,73,115,100,112,3],C=[0,4,77,81,84,84,4],E=function(e,t){for(var n in this.type=e,t)t.hasOwnProperty(n)&&(this[n]=t[n])};function _(e,t){var n,c=t,f=e[t],h=f>>4,p=f&=15;t+=1;var g=0,m=1;do{if(t==e.length)return[null,c];g+=(127&(n=e[t++]))*m,m*=128}while(0!==(128&n));var v=t+g;if(v>e.length)return[null,c];var y=new E(h);switch(h){case r:1&e[t++]&&(y.sessionPresent=!0),y.returnCode=e[t++];break;case i:var b=p>>1&3,w=A(e,t),S=T(e,t+=2,w);t+=w,b>0&&(y.messageIdentifier=A(e,t),t+=2);var C=new j(e.subarray(t,v));1==(1&p)&&(C.retained=!0),8==(8&p)&&(C.duplicate=!0),C.qos=b,C.destinationName=S,y.payloadMessage=C;break;case o:case a:case s:case u:case d:y.messageIdentifier=A(e,t);break;case l:y.messageIdentifier=A(e,t),t+=2,y.returnCode=e.subarray(t,v)}return[y,v]}function D(e,t,n){return t[n++]=e>>8,t[n++]=e%256,n}function O(e,t,n,r){return k(e,n,r=D(t,n,r)),r+t}function A(e,t){return 256*e[t]+e[t+1]}function x(e){for(var t=0,n=0;n2047?(55296<=r&&r<=56319&&(n++,t++),t+=3):r>127?t+=2:t++}return t}function k(e,t,n){for(var r=n,i=0;i>6&31|192,t[r++]=63&o|128):o<=65535?(t[r++]=o>>12&15|224,t[r++]=o>>6&63|128,t[r++]=63&o|128):(t[r++]=o>>18&7|240,t[r++]=o>>12&63|128,t[r++]=o>>6&63|128,t[r++]=63&o|128)}return t}function T(e,t,n){for(var r,i="",o=t;o65535&&(r-=65536,i+=String.fromCharCode(55296+(r>>10)),r=56320+(1023&r)),i+=String.fromCharCode(r)}return i}E.prototype.encode=function(){var e,t=(15&this.type)<<4,r=0,o=[],a=0;switch(void 0!==this.messageIdentifier&&(r+=2),this.type){case n:switch(this.mqttVersion){case 3:r+=S.length+3;break;case 4:r+=C.length+3}r+=x(this.clientId)+2,void 0!==this.willMessage&&(r+=x(this.willMessage.destinationName)+2,(e=this.willMessage.payloadBytes)instanceof Uint8Array||(e=new Uint8Array(l)),r+=e.byteLength+2),void 0!==this.userName&&(r+=x(this.userName)+2),void 0!==this.password&&(r+=x(this.password)+2);break;case c:t|=2;for(var u=0;u>=7)>0&&(r|=128),t[n++]=r}while(e>0&&n<4);return t}(r),h=d.length+1,p=new ArrayBuffer(r+h),g=new Uint8Array(p);if(g[0]=t,g.set(d,1),this.type==i)h=O(this.payloadMessage.destinationName,a,g,h);else if(this.type==n){switch(this.mqttVersion){case 3:g.set(S,h),h+=S.length;break;case 4:g.set(C,h),h+=C.length}var m=0;this.cleanSession&&(m=2),void 0!==this.willMessage&&(m|=4,m|=this.willMessage.qos<<3,this.willMessage.retained&&(m|=32)),void 0!==this.userName&&(m|=128),void 0!==this.password&&(m|=64),g[h++]=m,h=D(this.keepAliveInterval,g,h)}switch(void 0!==this.messageIdentifier&&(h=D(this.messageIdentifier,g,h)),this.type){case n:h=O(this.clientId,x(this.clientId),g,h),void 0!==this.willMessage&&(h=O(this.willMessage.destinationName,x(this.willMessage.destinationName),g,h),h=D(e.byteLength,g,h),g.set(e,h),h+=e.byteLength),void 0!==this.userName&&(h=O(this.userName,x(this.userName),g,h)),void 0!==this.password&&(h=O(this.password,x(this.password),g,h));break;case i:g.set(l,h);break;case c:for(u=0;u0&&(this.timeout=setTimeout(r(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},P=function(e,t,n,r){t||(t=30),this.timeout=setTimeout(function(e,t,n){return function(){return e.apply(t,n)}}(n,e,r),1e3*t),this.cancel=function(){clearTimeout(this.timeout)}},F=function(n,r,i,o,a){if(!("WebSocket"in e)||null===e.WebSocket)throw new Error(w(y.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in e)||null===e.ArrayBuffer)throw new Error(w(y.UNSUPPORTED,["ArrayBuffer"]));for(var s in this._trace("Paho.Client",n,r,i,o,a),this.host=r,this.port=i,this.path=o,this.uri=n,this.clientId=a,this._wsuri=null,this._localKey=r+":"+i+("/mqtt"!=o?":"+o:"")+":"+a+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,t)0!==s.indexOf("Sent:"+this._localKey)&&0!==s.indexOf("Received:"+this._localKey)||this.restore(s)};F.prototype.host=null,F.prototype.port=null,F.prototype.path=null,F.prototype.uri=null,F.prototype.clientId=null,F.prototype.socket=null,F.prototype.connected=!1,F.prototype.maxMessageIdentifier=65536,F.prototype.connectOptions=null,F.prototype.hostIndex=null,F.prototype.onConnected=null,F.prototype.onConnectionLost=null,F.prototype.onMessageDelivered=null,F.prototype.onMessageArrived=null,F.prototype.traceFunction=null,F.prototype._msg_queue=null,F.prototype._buffered_msg_queue=null,F.prototype._connectTimeout=null,F.prototype.sendPinger=null,F.prototype.receivePinger=null,F.prototype._reconnectInterval=1,F.prototype._reconnecting=!1,F.prototype._reconnectTimeout=null,F.prototype.disconnectedPublishing=!1,F.prototype.disconnectedBufferSize=5e3,F.prototype.receiveBuffer=null,F.prototype._traceBuffer=null,F.prototype._MAX_TRACE_ENTRIES=100,F.prototype.connect=function(e){var t=this._traceMask(e,"password");if(this._trace("Client.connect",t,this.socket,this.connected),this.connected)throw new Error(w(y.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(w(y.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=e,this._reconnectInterval=1,this._reconnecting=!1,e.uris?(this.hostIndex=0,this._doConnect(e.uris[0])):this._doConnect(this.uri)},F.prototype.subscribe=function(e,t){if(this._trace("Client.subscribe",e,t),!this.connected)throw new Error(w(y.INVALID_STATE,["not connected"]));var n=new E(c);n.topics=e.constructor===Array?e:[e],void 0===t.qos&&(t.qos=0),n.requestedQos=[];for(var r=0;r0?this._requires_ack(t):this.onMessageDelivered&&(this._notify_msg_sent[t]=this.onMessageDelivered(t.payloadMessage)),this._schedule_message(t);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(w(y.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(w(y.BUFFER_FULL,[this.disconnectedBufferSize]));e.qos>0?this._requires_ack(t):(t.sequence=++this._sequence,this._buffered_msg_queue.unshift(t))}},F.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(w(y.INVALID_STATE,["not connecting or connected"]));var e=new E(g);this._notify_msg_sent[e]=v(this._disconnected,this),this._schedule_message(e)},F.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var e in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",e,this._sentMessages[e]);for(var e in this._receivedMessages)this._trace("_receivedMessages ",e,this._receivedMessages[e]);return this._traceBuffer}},F.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},F.prototype.stopTrace=function(){delete this._traceBuffer},F.prototype._doConnect=function(e){if(this.connectOptions.useSSL){var t=e.split(":");t[0]="wss",e=t.join(":")}this._wsuri=e,this.connected=!1,this.connectOptions.mqttVersion<4?this.socket=new WebSocket(e,["mqttv3.1"]):this.socket=new WebSocket(e,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=v(this._on_socket_open,this),this.socket.onmessage=v(this._on_socket_message,this),this.socket.onerror=v(this._on_socket_error,this),this.socket.onclose=v(this._on_socket_close,this),this.sendPinger=new I(this,this.connectOptions.keepAliveInterval),this.receivePinger=new I(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new P(this,this.connectOptions.timeout,this._disconnected,[y.CONNECT_TIMEOUT.code,w(y.CONNECT_TIMEOUT)])},F.prototype._schedule_message=function(e){this._msg_queue.unshift(e),this.connected&&this._process_queue()},F.prototype.store=function(e,n){var r={type:n.type,messageIdentifier:n.messageIdentifier,version:1};switch(n.type){case i:n.pubRecReceived&&(r.pubRecReceived=!0),r.payloadMessage={};for(var o="",a=n.payloadMessage.payloadBytes,s=0;s=2;){var l=parseInt(a.substring(0,2),16);a=a.substring(2,a.length),u[c++]=l}var f=new j(u);f.qos=r.payloadMessage.qos,f.destinationName=r.payloadMessage.destinationName,r.payloadMessage.duplicate&&(f.duplicate=!0),r.payloadMessage.retained&&(f.retained=!0),o.payloadMessage=f;break;default:throw Error(w(y.INVALID_STORED_DATA,[e,n]))}0===e.indexOf("Sent:"+this._localKey)?(o.payloadMessage.duplicate=!0,this._sentMessages[o.messageIdentifier]=o):0===e.indexOf("Received:"+this._localKey)&&(this._receivedMessages[o.messageIdentifier]=o)},F.prototype._process_queue=function(){for(var e=null;e=this._msg_queue.pop();)this._socket_send(e),this._notify_msg_sent[e]&&(this._notify_msg_sent[e](),delete this._notify_msg_sent[e])},F.prototype._requires_ack=function(e){var t=Object.keys(this._sentMessages).length;if(t>this.maxMessageIdentifier)throw Error("Too many messages:"+t);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;e.messageIdentifier=this._message_identifier,this._sentMessages[e.messageIdentifier]=e,e.type===i&&this.store("Sent:",e),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},F.prototype._on_socket_open=function(){var e=new E(n,this.connectOptions);e.clientId=this.clientId,this._socket_send(e)},F.prototype._on_socket_message=function(e){this._trace("Client._on_socket_message",e.data);for(var t=this._deframeMessages(e.data),n=0;n0)for(var v=null;v=this._buffered_msg_queue.pop();)h.push(v),this.onMessageDelivered&&(this._notify_msg_sent[v]=this.onMessageDelivered(v.payloadMessage));h=h.sort((function(e,t){return e.sequence-t.sequence}));for(var S=0,C=h.length;S65535)throw new Error(w(y.INVALID_ARGUMENT,[r,"clientId"]));var l=new F(i,e,t,n,r);Object.defineProperties(this,{host:{get:function(){return e},set:function(){throw new Error(w(y.UNSUPPORTED_OPERATION))}},port:{get:function(){return t},set:function(){throw new Error(w(y.UNSUPPORTED_OPERATION))}},path:{get:function(){return n},set:function(){throw new Error(w(y.UNSUPPORTED_OPERATION))}},uri:{get:function(){return i},set:function(){throw new Error(w(y.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return l.clientId},set:function(){throw new Error(w(y.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return l.onConnected},set:function(e){if("function"!==typeof e)throw new Error(w(y.INVALID_TYPE,[typeof e,"onConnected"]));l.onConnected=e}},disconnectedPublishing:{get:function(){return l.disconnectedPublishing},set:function(e){l.disconnectedPublishing=e}},disconnectedBufferSize:{get:function(){return l.disconnectedBufferSize},set:function(e){l.disconnectedBufferSize=e}},onConnectionLost:{get:function(){return l.onConnectionLost},set:function(e){if("function"!==typeof e)throw new Error(w(y.INVALID_TYPE,[typeof e,"onConnectionLost"]));l.onConnectionLost=e}},onMessageDelivered:{get:function(){return l.onMessageDelivered},set:function(e){if("function"!==typeof e)throw new Error(w(y.INVALID_TYPE,[typeof e,"onMessageDelivered"]));l.onMessageDelivered=e}},onMessageArrived:{get:function(){return l.onMessageArrived},set:function(e){if("function"!==typeof e)throw new Error(w(y.INVALID_TYPE,[typeof e,"onMessageArrived"]));l.onMessageArrived=e}},trace:{get:function(){return l.traceFunction},set:function(e){if("function"!==typeof e)throw new Error(w(y.INVALID_TYPE,[typeof e,"onTrace"]));l.traceFunction=e}}}),this.connect=function(e){if(m(e=e||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===e.keepAliveInterval&&(e.keepAliveInterval=60),e.mqttVersion>4||e.mqttVersion<3)throw new Error(w(y.INVALID_ARGUMENT,[e.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===e.mqttVersion?(e.mqttVersionExplicit=!1,e.mqttVersion=4):e.mqttVersionExplicit=!0,void 0!==e.password&&void 0===e.userName)throw new Error(w(y.INVALID_ARGUMENT,[e.password,"connectOptions.password"]));if(e.willMessage){if(!(e.willMessage instanceof j))throw new Error(w(y.INVALID_TYPE,[e.willMessage,"connectOptions.willMessage"]));if(e.willMessage.stringPayload=null,"undefined"===typeof e.willMessage.destinationName)throw new Error(w(y.INVALID_TYPE,[typeof e.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if("undefined"===typeof e.cleanSession&&(e.cleanSession=!0),e.hosts){if(!(e.hosts instanceof Array))throw new Error(w(y.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));if(e.hosts.length<1)throw new Error(w(y.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));for(var t=!1,r=0;r=3&&(i.qos=n),arguments.length>=4&&(i.retained=r),l.send(i)},this.publish=function(e,t,n,r){var i;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof j)&&"string"!==typeof e)throw new Error("Invalid argument:"+typeof e);if("undefined"===typeof(i=e).destinationName)throw new Error(w(y.INVALID_ARGUMENT,[i.destinationName,"Message.destinationName"]));l.send(i)}else(i=new j(t)).destinationName=e,arguments.length>=3&&(i.qos=n),arguments.length>=4&&(i.retained=r),l.send(i)},this.disconnect=function(){l.disconnect()},this.getTraceLog=function(){return l.getTraceLog()},this.startTrace=function(){l.startTrace()},this.stopTrace=function(){l.stopTrace()},this.isConnected=function(){return l.connected}},Message:j}}("undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},e.exports=n()}).call(this,n(73))},function(e,t,n){"use strict";var r=n(108),i=n(109);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(110)).default)(o.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t.default=a},function(e,t,n){"use strict";var r=n(108),i=n(109);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(110)).default)(o.createElement("path",{d:"M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff");t.default=a},function(e,t,n){"use strict";var r=n(108),i=n(109);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(110)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}),"ClearOutlined");t.default=a},function(e,t,n){"use strict";var r=n(108),i=n(109);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(110)).default)(o.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=a},function(e,t,n){"use strict";var r=n(108),i=n(109);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(0)),a=(0,r(n(110)).default)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return Kr})),n.d(t,"a",(function(){return Gr}));var r=n(138),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o={};function a(e){return Boolean(e&&"string"===typeof e.kind)}function s(e,t,n){var r=e[t];if(r){if(!n&&"function"===typeof r)return r;var i=n?r.leave:r.enter;if("function"===typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"===typeof o)return o;var a=o[t];if("function"===typeof a)return a}}}function u(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,r=void 0,u=Array.isArray(e),c=[e],l=-1,f=[],d=void 0,h=void 0,p=void 0,g=[],m=[],v=e;do{var y=++l===c.length,b=y&&0!==f.length;if(y){if(h=0===m.length?void 0:g[g.length-1],d=p,p=m.pop(),b){if(u)d=d.slice();else{var w={};for(var S in d)d.hasOwnProperty(S)&&(w[S]=d[S]);d=w}for(var C=0,E=0;E0||v(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||v(0,"column in locationOffset is 1-indexed and must be positive")};function S(e,t,n){return new r.a("Syntax Error: ".concat(n),void 0,e,[t])}function C(e){for(var t=e.split(/\r\n|[\n\r]/g),n=null,r=1;r0&&_(t[0]);)t.shift();for(;t.length>0&&_(t[t.length-1]);)t.pop();return t.join("\n")}function E(e){for(var t=0;t",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function k(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}var T=String.prototype.charCodeAt,I=String.prototype.slice;function P(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function F(e){return isNaN(e)?x.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function j(e,t){var n=e.source,r=n.body,i=r.length,o=function(e,t,n){var r=e.length,i=t;for(;i=i)return new P(x.EOF,i,i,a,s,t);var u=T.call(r,o);switch(u){case 33:return new P(x.BANG,o,o+1,a,s,t);case 35:return function(e,t,n,r,i){var o,a=e.body,s=t;do{o=T.call(a,++s)}while(null!==o&&(o>31||9===o));return new P(x.COMMENT,t,s,n,r,i,I.call(a,t+1,s))}(n,o,a,s,t);case 36:return new P(x.DOLLAR,o,o+1,a,s,t);case 38:return new P(x.AMP,o,o+1,a,s,t);case 40:return new P(x.PAREN_L,o,o+1,a,s,t);case 41:return new P(x.PAREN_R,o,o+1,a,s,t);case 46:if(46===T.call(r,o+1)&&46===T.call(r,o+2))return new P(x.SPREAD,o,o+3,a,s,t);break;case 58:return new P(x.COLON,o,o+1,a,s,t);case 61:return new P(x.EQUALS,o,o+1,a,s,t);case 64:return new P(x.AT,o,o+1,a,s,t);case 91:return new P(x.BRACKET_L,o,o+1,a,s,t);case 93:return new P(x.BRACKET_R,o,o+1,a,s,t);case 123:return new P(x.BRACE_L,o,o+1,a,s,t);case 124:return new P(x.PIPE,o,o+1,a,s,t);case 125:return new P(x.BRACE_R,o,o+1,a,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){var o=e.body,a=o.length,s=t+1,u=0;for(;s!==a&&null!==(u=T.call(o,s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new P(x.NAME,t,s,n,r,i,I.call(o,t,s))}(n,o,a,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,o){var a=e.body,s=n,u=t,c=!1;45===s&&(s=T.call(a,++u));if(48===s){if((s=T.call(a,++u))>=48&&s<=57)throw S(e,u,"Invalid number, unexpected digit after 0: ".concat(F(s),"."))}else u=M(e,u,s),s=T.call(a,u);46===s&&(c=!0,s=T.call(a,++u),u=M(e,u,s),s=T.call(a,u));69!==s&&101!==s||(c=!0,43!==(s=T.call(a,++u))&&45!==s||(s=T.call(a,++u)),u=M(e,u,s));return new P(c?x.FLOAT:x.INT,t,u,r,i,o,I.call(a,t,u))}(n,o,u,a,s,t);case 34:return 34===T.call(r,o+1)&&34===T.call(r,o+2)?function(e,t,n,r,i){var o=e.body,a=t+3,s=a,u=0,c="";for(;a=48&&o<=57){do{o=T.call(r,++i)}while(o>=48&&o<=57);return i}throw S(e,i,"Invalid number, expected digit but got: ".concat(F(o),"."))}function R(e,t,n,r){return N(e)<<12|N(t)<<8|N(n)<<4|N(r)}function N(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}P.prototype.toJSON=P.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};var L=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),U=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function B(e,t){var n="string"===typeof e?new w(e):e;if(!(n instanceof w))throw new TypeError("Must provide Source. Received: ".concat(m(n)));return function(e){var t=e.token;return{kind:L.DOCUMENT,definitions:Pe(e,x.SOF,V,x.EOF),loc:_e(e,t)}}(D(n,t||{}))}function z(e){var t=xe(e,x.NAME);return{kind:L.NAME,value:t.value,loc:_e(e,t)}}function V(e){if(Oe(e,x.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return H(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return le(e);case"extend":return function(e){var t=e.lookahead();if(t.kind===x.NAME)switch(t.value){case"schema":return function(e){var t=e.token;ke(e,"extend"),ke(e,"schema");var n=ae(e,!0),r=Oe(e,x.BRACE_L)?Pe(e,x.BRACE_L,he,x.BRACE_R):[];if(0===n.length&&0===r.length)throw Te(e);return{kind:L.SCHEMA_EXTENSION,directives:n,operationTypes:r,loc:_e(e,t)}}(e);case"scalar":return function(e){var t=e.token;ke(e,"extend"),ke(e,"scalar");var n=z(e),r=ae(e,!0);if(0===r.length)throw Te(e);return{kind:L.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:_e(e,t)}}(e);case"type":return function(e){var t=e.token;ke(e,"extend"),ke(e,"type");var n=z(e),r=pe(e),i=ae(e,!0),o=ge(e);if(0===r.length&&0===i.length&&0===o.length)throw Te(e);return{kind:L.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o,loc:_e(e,t)}}(e);case"interface":return function(e){var t=e.token;ke(e,"extend"),ke(e,"interface");var n=z(e),r=ae(e,!0),i=ge(e);if(0===r.length&&0===i.length)throw Te(e);return{kind:L.INTERFACE_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:_e(e,t)}}(e);case"union":return function(e){var t=e.token;ke(e,"extend"),ke(e,"union");var n=z(e),r=ae(e,!0),i=be(e);if(0===r.length&&0===i.length)throw Te(e);return{kind:L.UNION_TYPE_EXTENSION,name:n,directives:r,types:i,loc:_e(e,t)}}(e);case"enum":return function(e){var t=e.token;ke(e,"extend"),ke(e,"enum");var n=z(e),r=ae(e,!0),i=we(e);if(0===r.length&&0===i.length)throw Te(e);return{kind:L.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i,loc:_e(e,t)}}(e);case"input":return function(e){var t=e.token;ke(e,"extend"),ke(e,"input");var n=z(e),r=ae(e,!0),i=Ce(e);if(0===r.length&&0===i.length)throw Te(e);return{kind:L.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:_e(e,t)}}(e)}throw Te(e,t)}(e)}else{if(Oe(e,x.BRACE_L))return H(e);if(fe(e))return le(e)}throw Te(e)}function H(e){if(Oe(e,x.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return W(e);case"fragment":return function(e){var t=e.token;if(ke(e,"fragment"),e.options.experimentalFragmentVariables)return{kind:L.FRAGMENT_DEFINITION,name:ee(e),variableDefinitions:G(e),typeCondition:(ke(e,"on"),ce(e)),directives:ae(e,!1),selectionSet:$(e),loc:_e(e,t)};return{kind:L.FRAGMENT_DEFINITION,name:ee(e),typeCondition:(ke(e,"on"),ce(e)),directives:ae(e,!1),selectionSet:$(e),loc:_e(e,t)}}(e)}else if(Oe(e,x.BRACE_L))return W(e);throw Te(e)}function W(e){var t=e.token;if(Oe(e,x.BRACE_L))return{kind:L.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:$(e),loc:_e(e,t)};var n,r=K(e);return Oe(e,x.NAME)&&(n=z(e)),{kind:L.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:G(e),directives:ae(e,!1),selectionSet:$(e),loc:_e(e,t)}}function K(e){var t=xe(e,x.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw Te(e,t)}function G(e){return Oe(e,x.PAREN_L)?Pe(e,x.PAREN_L,q,x.PAREN_R):[]}function q(e){var t=e.token;return e.options.experimentalVariableDefinitionDirectives?{kind:L.VARIABLE_DEFINITION,variable:Y(e),type:(xe(e,x.COLON),ue(e)),defaultValue:Ae(e,x.EQUALS)?te(e,!0):void 0,directives:ae(e,!0),loc:_e(e,t)}:{kind:L.VARIABLE_DEFINITION,variable:Y(e),type:(xe(e,x.COLON),ue(e)),defaultValue:Ae(e,x.EQUALS)?te(e,!0):void 0,loc:_e(e,t)}}function Y(e){var t=e.token;return xe(e,x.DOLLAR),{kind:L.VARIABLE,name:z(e),loc:_e(e,t)}}function $(e){var t=e.token;return{kind:L.SELECTION_SET,selections:Pe(e,x.BRACE_L,J,x.BRACE_R),loc:_e(e,t)}}function J(e){return Oe(e,x.SPREAD)?function(e){var t,n=e.token;if(xe(e,x.SPREAD),Oe(e,x.NAME)&&"on"!==e.token.value)return{kind:L.FRAGMENT_SPREAD,name:ee(e),directives:ae(e,!1),loc:_e(e,n)};"on"===e.token.value&&(e.advance(),t=ce(e));return{kind:L.INLINE_FRAGMENT,typeCondition:t,directives:ae(e,!1),selectionSet:$(e),loc:_e(e,n)}}(e):function(e){var t,n,r=e.token,i=z(e);Ae(e,x.COLON)?(t=i,n=z(e)):n=i;return{kind:L.FIELD,alias:t,name:n,arguments:X(e,!1),directives:ae(e,!1),selectionSet:Oe(e,x.BRACE_L)?$(e):void 0,loc:_e(e,r)}}(e)}function X(e,t){var n=t?Q:Z;return Oe(e,x.PAREN_L)?Pe(e,x.PAREN_L,n,x.PAREN_R):[]}function Z(e){var t=e.token;return{kind:L.ARGUMENT,name:z(e),value:(xe(e,x.COLON),te(e,!1)),loc:_e(e,t)}}function Q(e){var t=e.token;return{kind:L.ARGUMENT,name:z(e),value:(xe(e,x.COLON),re(e)),loc:_e(e,t)}}function ee(e){if("on"===e.token.value)throw Te(e);return z(e)}function te(e,t){var n=e.token;switch(n.kind){case x.BRACKET_L:return function(e,t){var n=e.token,r=t?re:ie;return{kind:L.LIST,values:Ie(e,x.BRACKET_L,r,x.BRACKET_R),loc:_e(e,n)}}(e,t);case x.BRACE_L:return function(e,t){var n=e.token;xe(e,x.BRACE_L);var r=[];for(;!Ae(e,x.BRACE_R);)r.push(oe(e,t));return{kind:L.OBJECT,fields:r,loc:_e(e,n)}}(e,t);case x.INT:return e.advance(),{kind:L.INT,value:n.value,loc:_e(e,n)};case x.FLOAT:return e.advance(),{kind:L.FLOAT,value:n.value,loc:_e(e,n)};case x.STRING:case x.BLOCK_STRING:return ne(e);case x.NAME:return"true"===n.value||"false"===n.value?(e.advance(),{kind:L.BOOLEAN,value:"true"===n.value,loc:_e(e,n)}):"null"===n.value?(e.advance(),{kind:L.NULL,loc:_e(e,n)}):(e.advance(),{kind:L.ENUM,value:n.value,loc:_e(e,n)});case x.DOLLAR:if(!t)return Y(e)}throw Te(e)}function ne(e){var t=e.token;return e.advance(),{kind:L.STRING,value:t.value,block:t.kind===x.BLOCK_STRING,loc:_e(e,t)}}function re(e){return te(e,!0)}function ie(e){return te(e,!1)}function oe(e,t){var n=e.token;return{kind:L.OBJECT_FIELD,name:z(e),value:(xe(e,x.COLON),te(e,t)),loc:_e(e,n)}}function ae(e,t){for(var n=[];Oe(e,x.AT);)n.push(se(e,t));return n}function se(e,t){var n=e.token;return xe(e,x.AT),{kind:L.DIRECTIVE,name:z(e),arguments:X(e,t),loc:_e(e,n)}}function ue(e){var t,n=e.token;return Ae(e,x.BRACKET_L)?(t=ue(e),xe(e,x.BRACKET_R),t={kind:L.LIST_TYPE,type:t,loc:_e(e,n)}):t=ce(e),Ae(e,x.BANG)?{kind:L.NON_NULL_TYPE,type:t,loc:_e(e,n)}:t}function ce(e){var t=e.token;return{kind:L.NAMED_TYPE,name:z(e),loc:_e(e,t)}}function le(e){var t=fe(e)?e.lookahead():e.token;if(t.kind===x.NAME)switch(t.value){case"schema":return function(e){var t=e.token;ke(e,"schema");var n=ae(e,!0),r=Pe(e,x.BRACE_L,he,x.BRACE_R);return{kind:L.SCHEMA_DEFINITION,directives:n,operationTypes:r,loc:_e(e,t)}}(e);case"scalar":return function(e){var t=e.token,n=de(e);ke(e,"scalar");var r=z(e),i=ae(e,!0);return{kind:L.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i,loc:_e(e,t)}}(e);case"type":return function(e){var t=e.token,n=de(e);ke(e,"type");var r=z(e),i=pe(e),o=ae(e,!0),a=ge(e);return{kind:L.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a,loc:_e(e,t)}}(e);case"interface":return function(e){var t=e.token,n=de(e);ke(e,"interface");var r=z(e),i=ae(e,!0),o=ge(e);return{kind:L.INTERFACE_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:_e(e,t)}}(e);case"union":return function(e){var t=e.token,n=de(e);ke(e,"union");var r=z(e),i=ae(e,!0),o=be(e);return{kind:L.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o,loc:_e(e,t)}}(e);case"enum":return function(e){var t=e.token,n=de(e);ke(e,"enum");var r=z(e),i=ae(e,!0),o=we(e);return{kind:L.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o,loc:_e(e,t)}}(e);case"input":return function(e){var t=e.token,n=de(e);ke(e,"input");var r=z(e),i=ae(e,!0),o=Ce(e);return{kind:L.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:_e(e,t)}}(e);case"directive":return function(e){var t=e.token,n=de(e);ke(e,"directive"),xe(e,x.AT);var r=z(e),i=ve(e);ke(e,"on");var o=function(e){Ae(e,x.PIPE);var t=[];do{t.push(Ee(e))}while(Ae(e,x.PIPE));return t}(e);return{kind:L.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,locations:o,loc:_e(e,t)}}(e)}throw Te(e,t)}function fe(e){return Oe(e,x.STRING)||Oe(e,x.BLOCK_STRING)}function de(e){if(fe(e))return ne(e)}function he(e){var t=e.token,n=K(e);xe(e,x.COLON);var r=ce(e);return{kind:L.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:_e(e,t)}}function pe(e){var t=[];if("implements"===e.token.value){e.advance(),Ae(e,x.AMP);do{t.push(ce(e))}while(Ae(e,x.AMP)||e.options.allowLegacySDLImplementsInterfaces&&Oe(e,x.NAME))}return t}function ge(e){return e.options.allowLegacySDLEmptyFields&&Oe(e,x.BRACE_L)&&e.lookahead().kind===x.BRACE_R?(e.advance(),e.advance(),[]):Oe(e,x.BRACE_L)?Pe(e,x.BRACE_L,me,x.BRACE_R):[]}function me(e){var t=e.token,n=de(e),r=z(e),i=ve(e);xe(e,x.COLON);var o=ue(e),a=ae(e,!0);return{kind:L.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:a,loc:_e(e,t)}}function ve(e){return Oe(e,x.PAREN_L)?Pe(e,x.PAREN_L,ye,x.PAREN_R):[]}function ye(e){var t=e.token,n=de(e),r=z(e);xe(e,x.COLON);var i,o=ue(e);Ae(e,x.EQUALS)&&(i=re(e));var a=ae(e,!0);return{kind:L.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:i,directives:a,loc:_e(e,t)}}function be(e){var t=[];if(Ae(e,x.EQUALS)){Ae(e,x.PIPE);do{t.push(ce(e))}while(Ae(e,x.PIPE))}return t}function we(e){return Oe(e,x.BRACE_L)?Pe(e,x.BRACE_L,Se,x.BRACE_R):[]}function Se(e){var t=e.token,n=de(e),r=z(e),i=ae(e,!0);return{kind:L.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i,loc:_e(e,t)}}function Ce(e){return Oe(e,x.BRACE_L)?Pe(e,x.BRACE_L,ye,x.BRACE_R):[]}function Ee(e){var t=e.token,n=z(e);if(U.hasOwnProperty(n.value))return n;throw Te(e,t)}function _e(e,t){if(!e.options.noLocation)return new De(t,e.lastToken,e.source)}function De(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function Oe(e,t){return e.token.kind===t}function Ae(e,t){var n=e.token.kind===t;return n&&e.advance(),n}function xe(e,t){var n=e.token;if(n.kind===t)return e.advance(),n;throw S(e.source,n.start,"Expected ".concat(t,", found ").concat(k(n)))}function ke(e,t){var n=e.token;if(n.kind===x.NAME&&n.value===t)return e.advance(),n;throw S(e.source,n.start,'Expected "'.concat(t,'", found ').concat(k(n)))}function Te(e,t){var n=t||e.token;return S(e.source,n.start,"Unexpected ".concat(k(n)))}function Ie(e,t,n,r){xe(e,t);for(var i=[];!Ae(e,r);)i.push(n(e));return i}function Pe(e,t,n,r){xe(e,t);for(var i=[n(e)];!Ae(e,r);)i.push(n(e));return i}De.prototype.toJSON=De.prototype.inspect=function(){return{start:this.start,end:this.end}};var Fe=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},je=function(){for(var e=[],t=0;t=o){var s=console.log.bind(console);"ERROR"===t&&console.error&&(s=console.error.bind(console)),"WARN"===t&&console.warn&&(s=console.warn.bind(console));var u="["+t+"] "+this._ts()+" "+this.name;if(1===n.length&&"string"===typeof n[0])s(u+" - "+n[0]);else if(1===n.length)s(u,n[0]);else if("string"===typeof n[0]){var c=n.slice(1);1===c.length&&(c=c[0]),s(u+" - "+n[0],c)}else s(u,n)}},e.prototype.log=function(){for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ke=function(){for(var e=[],t=0;te)&&n}}(n))},Je=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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())}))},Xe=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},dt=new Re("Amplify"),ht=new(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.Logger=Re,this.ServiceWorker=null}return e.prototype.register=function(e){dt.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):dt.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),dt.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=ft(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}()),pt=n(278),gt=n(537),mt=n(536),vt=n(510),yt=function(){return(yt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1](new Date).getTime()?(St.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:i,expires_at:o})):a._refreshHandlers[t]&&"function"===typeof a._refreshHandlers[t]?(St.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:a._refreshHandlers[t],provider:t,user:n})):(St.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,i=e.user;return $e(n,[],1e4).then((function(e){return St.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:i,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(),St.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return St.debug("no credentials for expiration check"),!0;St.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(){return bt(this,void 0,void 0,(function(){var e,t,n,r,i,o,a,s,u=this;return wt(this,(function(c){switch(c.label){case 0:if(St.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,n=e.region,e.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!t)return St.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!n)return St.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];r=void 0,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._storageSync];case 2:return c.sent(),r=this._storage.getItem("CognitoIdentityId-"+t),this._identityId=r,[3,4];case 3:return i=c.sent(),St.debug("Failed to get the cached identityId",i),[3,4];case 4:return o=new mt.a({region:n,customUserAgent:lt()}),a=void 0,r?(s={identityId:r,client:o},a=Object(pt.a)(s)()):a=function(){return bt(u,void 0,void 0,(function(){var e,n;return wt(this,(function(r){switch(r.label){case 0:return[4,o.send(new vt.a({IdentityPoolId:t}))];case 1:return e=r.sent().IdentityId,this._identityId=e,n={client:o,identityId:e},[2,Object(pt.a)(n)()]}}))}))}().catch((function(e){return bt(u,void 0,void 0,(function(){return wt(this,(function(t){throw e}))}))})),[2,this._loadCredentials(a,"guest",!1,null).then((function(e){return e})).catch((function(e){return bt(u,void 0,void 0,(function(){var n=this;return wt(this,(function(i){return"ResourceNotFoundException"===e.name&&e.message==="Identity '"+r+"' not found."?(St.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+t),a=function(){return bt(n,void 0,void 0,(function(){var e,n;return wt(this,(function(r){switch(r.label){case 0:return[4,o.send(new vt.a({IdentityPoolId:t}))];case 1:return e=r.sent().IdentityId,this._identityId=e,n={client:o,identityId:e},[2,Object(pt.a)(n)()]}}))}))}().catch((function(e){return bt(n,void 0,void 0,(function(){return wt(this,(function(t){throw e}))}))})),[2,this._loadCredentials(a,"guest",!1,null)]):[2,e]}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,i={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!i)return Promise.reject("You must specify a federated provider");var o={};o[i]=n;var a=this._config,s=a.identityPoolId,u=a.region;if(!s)return St.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!u)return St.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var c=new mt.a({region:u,customUserAgent:lt()}),l=void 0;if(r){var f={identityId:r,logins:o,client:c};l=Object(pt.a)(f)()}else{f={logins:o,identityPoolId:s,client:c};l=Object(gt.a)(f)()}return this._loadCredentials(l,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;St.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,i=r.region,o=r.userPoolId,a=r.identityPoolId;if(!a)return St.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!i)return St.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var s={};s["cognito-idp."+i+".amazonaws.com/"+o]=n;var u=new mt.a({region:i,customUserAgent:lt()}),c=bt(t,void 0,void 0,(function(){var e,t;return wt(this,(function(n){switch(n.label){case 0:return[4,u.send(new vt.a({IdentityPoolId:a,Logins:s}))];case 1:return e=n.sent().IdentityId,this._identityId=e,t={client:u,logins:s,identityId:e},[2,Object(pt.a)(t)()]}}))})).catch((function(e){return bt(t,void 0,void 0,(function(){return wt(this,(function(t){throw e}))}))}));return this._loadCredentials(c,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var i=this,o=this,a=this._config.identityPoolId;return new Promise((function(s,u){e.then((function(e){return bt(i,void 0,void 0,(function(){var i,u,c,l,f,d;return wt(this,(function(h){switch(h.label){case 0:if(St.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=n,o._credentials_source=t,o._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===t){i=Object.assign({id:this._credentials.identityId},r.user),u=r.provider,c=r.token,l=r.expires_at,f=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:u,token:c,user:i,expires_at:l,identity_id:f}))}catch(p){St.debug("Failed to put federated info into auth storage",p)}}if("guest"!==t)return[3,4];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,this._storageSync];case 2:return h.sent(),this._storage.setItem("CognitoIdentityId-"+a,e.identityId),[3,4];case 3:return d=h.sent(),St.debug("Failed to cache identityId",d),[3,4];case 4:return s(o._credentials),[2]}}))}))})).catch((function(t){if(t)return St.debug("Failed to load credentials",e),St.debug("Error loading credentials",t),void u(t)}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(St.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return bt(this,void 0,void 0,(function(){return wt(this,(function(e){return this._credentials=null,this._credentials_source=null,St.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);ht.register(Ct);var Et=new Re("I18n"),_t=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),Et.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"undefined"!==typeof 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||("undefined"!==typeof 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}(),Dt=new Re("I18n"),Ot=null,At=null,xt=function(){function e(){}return e.configure=function(t){return Dt.debug("configure I18n"),t?(Ot=Object.assign({},Ot,t.I18n||t),e.createInstance(),Ot):Ot},e.getModuleName=function(){return"I18n"},e.createInstance=function(){Dt.debug("create I18n instance"),At||(At=new _t(Ot))},e.setLanguage=function(t){return e.checkConfig(),At.setLanguage(t)},e.get=function(t,n){return e.checkConfig()?At.get(t,n):"undefined"===typeof n?t:n},e.putVocabulariesForLanguage=function(t,n){return e.checkConfig(),At.putVocabulariesForLanguage(t,n)},e.putVocabularies=function(t){return e.checkConfig(),At.putVocabularies(t)},e.checkConfig=function(){return At||(At=new _t(Ot)),!0},e}();ht.register(xt);var kt,Tt,It={userAgent:ct.userAgent},Pt="undefined"!==typeof Symbol&&"function"===typeof Symbol.for,Ft=(Pt&&Symbol.for("INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER"),Pt?Symbol.for("INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER"):"@@INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER"),jt=n(50);function Mt(e){return e&&!!["provider"].find((function(t){return e.hasOwnProperty(t)}))}function Rt(e){return void 0!==e.redirectSignIn}!function(e){e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon",e.Apple="SignInWithApple"}(kt||(kt={})),function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default"}(Tt||(Tt={}));var Nt=function(){return(Nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ut=function(){for(var e=[],t=0;t-1)&&(r===zt||Bt.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var i={channel:e,payload:Nt({},t),source:n,patternInfo:[]};try{this._toListeners(i)}catch(o){Bt.error(o)}},e.prototype.listen=function(e,t,n){var r,i=this;if(void 0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(t))Bt.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 o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:n,callback:r})}return function(){i.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){Bt.debug("Dispatching to "+t+" with ",n);try{r.callback(e)}catch(i){Bt.error(i)}})),this.patterns.length>0){if(!n.message)return void Bt.warn("Cannot perform pattern matching without a message key");var i=n.message;this.patterns.forEach((function(t){var n=i.match(t.pattern);if(n){var r=Lt(n).slice(1),o=Nt(Nt({},e),{patternInfo:r});try{t.callback(o)}catch(a){Bt.error(a)}}}))}},e}())("__default__"),Ht=new Re("Parser"),Wt=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}),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:{},n.Analytics=Object.assign({},n.Analytics,e.Analytics),n.Auth=Object.assign({},n.Auth,e.Auth),n.Storage=Object.assign({},t),Ht.debug("parse config",e,"to amplifyconfig",n),n},Kt=function(){function e(){}return e.parseMobilehubConfig=Wt,e}(),Gt=n(58),qt=Object(Be.b)().isBrowser,Yt=function(){function e(e){void 0===e&&(e={}),this.cookies=new Gt.a,this.store=qt?window.localStorage:Object.create(null),this.cookies=e.req?new Gt.a(e.req.headers.cookie):new Gt.a,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){switch(this.setLocalItem(e,t),e.split(".").pop()){case"LastAuthUser":case"accessToken":case"idToken":this.setUniversalItem(e,t)}},e.prototype.setLocalItem=function(e,t){this.store[e]=t},e.prototype.setUniversalItem=function(e,t){this.cookies.set(e,t,{path:"/",sameSite:!0,secure:"localhost"!==window.location.hostname})},e}();var $t,Jt=function(){function e(e){var t=e||{},n=t.ValidationData,r=t.Username,i=t.Password,o=t.AuthParameters,a=t.ClientMetadata;this.validationData=n||{},this.authParameters=o||{},this.clientMetadata=a||{},this.username=r,this.password=i}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),Xt=n(12),Zt=n(19),Qt=n.n(Zt),en=(n(107),n(43)),tn=n.n(en),nn=n(32),rn=n.n(nn);function on(){if($t){if("function"===typeof $t.getRandomValues)try{return $t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"===typeof $t.randomBytes)try{return $t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")}"undefined"!==typeof window&&window.crypto&&($t=window.crypto),!$t&&"undefined"!==typeof window&&window.msCrypto&&($t=window.msCrypto);var an,sn=function(){function e(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length}var t=e.prototype;return t.random=function(t){for(var n=[],r=0;r>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(this)},e}(),un=cn;function cn(e,t){null!=e&&this.fromString(e,t)}function ln(){return new cn(null)}var fn="undefined"!==typeof navigator;fn&&"Microsoft Internet Explorer"==navigator.appName?(cn.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},an=30):fn&&"Netscape"!=navigator.appName?(cn.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},an=26):(cn.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},an=28),cn.prototype.DB=an,cn.prototype.DM=(1<>>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 bn(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},bn.prototype.revert=function(e){var t=ln();return e.copyTo(t),this.reduce(t),t},bn.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(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)},bn.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},bn.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},cn.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},cn.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},cn.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,i=!1,o=0;--r>=0;){var a=mn(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}this.clamp(),i&&cn.ZERO.subTo(this,this)},cn.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},cn.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},cn.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},cn.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,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=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()},cn.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=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()},cn.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var c=o.t,l=o[c-1];if(0!=l){var f=l*(1<1?o[c-2]>>this.F2:0),d=this.FV/f,h=(1<=0&&(n[n.t++]=1,n.subTo(v,n)),cn.ONE.dlShiftTo(c,v),v.subTo(o,o);o.t=0;){var y=n[--g]==l?this.DM:Math.floor(n[g]*d+(n[g-1]+p)*h);if((n[g]+=o.am(0,y,n,m,0,c))0&&n.rShiftTo(u,n),a<0&&cn.ZERO.subTo(n,n)}}},cn.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},cn.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=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()},cn.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<0)for(s>s)>0&&(i=!0,o=gn(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=gn(n));return i?o:"0"},cn.prototype.negate=function(){var e=ln();return cn.ZERO.subTo(this,e),e},cn.prototype.abs=function(){return this.s<0?this.negate():this},cn.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},cn.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+yn(this[this.t-1]^this.s&this.DM)},cn.prototype.mod=function(e){var t=ln();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(cn.ZERO)>0&&e.subTo(t,t),t},cn.prototype.equals=function(e){return 0==this.compareTo(e)},cn.prototype.add=function(e){var t=ln();return this.addTo(e,t),t},cn.prototype.subtract=function(e){var t=ln();return this.subTo(e,t),t},cn.prototype.multiply=function(e){var t=ln();return this.multiplyTo(e,t),t},cn.prototype.divide=function(e){var t=ln();return this.divRemTo(e,t,null),t},cn.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=vn(1),a=new bn(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6;var s=new Array,u=3,c=r-1,l=(1<1){var f=ln();for(a.sqrTo(s[1],f);u<=l;)s[u]=ln(),a.mulTo(f,s[u-2],s[u]),u+=2}var d,h,p=e.t-1,g=!0,m=ln();for(i=yn(e[p])-1;p>=0;){for(i>=c?d=e[p]>>i-c&l:(d=(e[p]&(1<0&&(d|=e[p-1]>>this.DB+i-c)),u=r;0==(1&d);)d>>=1,--u;if((i-=u)<0&&(i+=this.DB,--p),g)s[d].copyTo(o),g=!1;else{for(;u>1;)a.sqrTo(o,m),a.sqrTo(m,o),u-=2;u>0?a.sqrTo(o,m):(h=o,o=m,m=h),a.mulTo(m,s[d],o)}for(;p>=0&&0==(e[p]&1<0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ar="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",sr=function(e,t,n){Vt.dispatch("auth",{event:e,data:t,message:n},"Auth",ar)},ur=new Re("OAuth"),cr=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,i=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||tr,this._config=t,this._cognitoClientId=n,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}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,i,o){void 0===e&&(e="code"),void 0===i&&(i=kt.Cognito);var a=this._generateState(32),s=o?a+"-"+o.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,c=this._generateRandom(128);u=c,window.sessionStorage.setItem("ouath_pkce_key",u);var l=this._generateChallenge(c),f=this._scopes.join(" "),d="https://"+t+"/oauth2/authorize?"+Object.entries(nr(nr({redirect_uri:n,response_type:e,client_id:r,identity_provider:i,scope:f,state:s},"code"===e?{code_challenge:l}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=or(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&");ur.debug("Redirecting to "+d),this._urlOpener(d,n)},e.prototype._handleCodeFlow=function(e){return rr(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,u,c,l,f,d,h,p;return ir(this,(function(g){switch(g.label){case 0:return t=(Object(er.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=or(t,2),i=r[0],o=r[1];return nr(nr({},e),((n={})[i]=o,n))}),{code:void 0}).code,n=Object(er.parse)(e).pathname||"/",r=Object(er.parse)(this._config.redirectSignIn).pathname||"/",t&&n===r?(i="https://"+this._config.domain+"/oauth2/token",sr("codeFlow",{},"Retrieving tokens from "+i),o=Rt(this._config)?this._cognitoClientId:this._config.clientID,a=Rt(this._config)?this._config.redirectSignIn:this._config.redirectUri,s=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e}(),u=nr({grant_type:"authorization_code",code:t,client_id:o,redirect_uri:a},s?{code_verifier:s}:{}),ur.debug("Calling token endpoint: "+i+" with",u),c=Object.entries(u).map((function(e){var t=or(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),[4,fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:c})]):[2];case 1:return[4,g.sent().json()];case 2:if(l=g.sent(),f=l.access_token,d=l.refresh_token,h=l.id_token,p=l.error)throw new Error(p);return[2,{accessToken:f,refreshToken:d,idToken:h}]}}))}))},e.prototype._handleImplicitFlow=function(e){return rr(this,void 0,void 0,(function(){var t,n,r;return ir(this,(function(i){return t=(Object(er.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=or(t,2),i=r[0],o=r[1];return nr(nr({},e),((n={})[i]=o,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,sr("implicitFlow",{},"Got tokens from "+e),ur.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return rr(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return ir(this,(function(u){switch(u.label){case 0:if(u.trys.push([0,5,,6]),t=e?nr(nr({},(Object(er.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=or(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})),(Object(er.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=or(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return i=this._validateState(t),ur.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(o=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,nr.apply(void 0,[nr.apply(void 0,o.concat([u.sent()])),{state:i}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,nr.apply(void 0,[nr.apply(void 0,a.concat([u.sent()])),{state:i}])];case 4:return[3,6];case 5:throw s=u.sent(),ur.error("Error handling auth response.",s),s;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e}(),n=e.state;if(t&&t!==n)throw new Error("Invalid state in OAuth flow");return n}},e.prototype.signOut=function(){return rr(this,void 0,void 0,(function(){var e,t,n;return ir(this,(function(r){return e="https://"+this._config.domain+"/logout?",t=Rt(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=Rt(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=or(e,2);return t[0]+"="+t[1]})).join("&"),sr("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),ur.debug("Signing out from "+e),[2,this._urlOpener(e)]}))}))},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){return this._base64URL(tn()(e))},e.prototype._base64URL=function(e){return e.toString(Tn.a).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;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},br=new Re("AuthClass"),wr="aws.cognito.signin.user.admin",Sr="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Cr=function(e,t,n){Vt.dispatch("auth",{event:e,data:t,message:n},"Auth",Sr)},Er=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=Ct,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?Cr("tokenRefresh",void 0,"New token retrieved"):Cr("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),Vt.listen("auth",(function(e){switch(e.payload.event){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||{};br.debug("configure Auth");var n=Object.assign({},this._config,Kt.parseMobilehubConfig(e).Auth,e);this._config=n;var r=this._config,i=r.userPoolId,o=r.userPoolWebClientId,a=r.cookieStorage,s=r.oauth,u=r.region,c=r.identityPoolId,l=r.mandatorySignIn,f=r.refreshHandlers,d=r.identityPoolRegion,h=r.clientMetadata,p=r.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw br.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 Qn(a):e.ssr?new Yt:(new Ue).getStorage();if(this._storageSync=Promise.resolve(),"function"===typeof this._storage.sync&&(this._storageSync=this._storage.sync()),i){var g={UserPoolId:i,ClientId:o,endpoint:p};g.Storage=this._storage,this.userPool=new Xn(g,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:l,region:d||u,userPoolId:i,identityPoolId:c,refreshHandlers:f,storage:this._storage});var m=s?Rt(this._config.oauth)?s:s.awsCognito:void 0;if(m){var v=Object.assign({cognitoClientId:o,UserPoolId:i,domain:m.domain,scopes:m.scope,redirectSignIn:m.redirectSignIn,redirectSignOut:m.redirectSignOut,responseType:m.responseType,Storage:this._storage,urlOpener:m.urlOpener,clientMetadata:h},m.options);this._oAuthHandler=new cr({scopes:v.scopes,config:v,cognitoClientId:v.cognitoClientId});var y={};!function(e){if(Be.a.browserOrNode().isBrowser&&window.location)e({url:window.location.href});else if(!Be.a.browserOrNode().isNode)throw new Error("Not supported")}((function(e){var n=e.url;y[n]||(y[n]=!0,t._handleAuthResponse(n))}))}return Cr("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,n=[],r=1;r=0;n-=1){var r=e.charCodeAt(n);r>127&&r<=2047?t+=1:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&(n-=1)}return t}function Ar(){return(new Date).getTime()}function xr(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var kr,Tr,Ir={},Pr=(function(){function e(){}e.clear=function(){Ir={}},e.getItem=function(e){return Ir[e]||null},e.setItem=function(e,t){Ir[e]=t},e.removeItem=function(e){delete Ir[e]}}(),new Re("StorageCache")),Fr=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){xr(this.config.capacityInBytes)||(Pr.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=Dr.capacityInBytes),xr(this.config.itemMaxSize)||(Pr.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=Dr.itemMaxSize),xr(this.config.defaultTTL)||(Pr.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=Dr.defaultTTL),xr(this.config.defaultPriority)||(Pr.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=Dr.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(Pr.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=Dr.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(Pr.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=Dr.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(Pr.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=Dr.warningThreshold);this.config.capacityInBytes>5242880&&(Pr.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=Dr.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,n){var r={key:e,data:t,timestamp:Ar(),visitedTime:Ar(),priority:n.priority,expires:n.expires,type:typeof t,byteSize:0};return r.byteSize=Or(JSON.stringify(r)),r.byteSize=Or(JSON.stringify(r)),r},e.prototype.configure=function(e){return e?(e.keyPrefix&&Pr.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),jr=function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mr=new Re("Cache"),Rr=new(function(e){function t(t){var n=this,r=t?Object.assign({},Dr,t):Dr;return(n=e.call(this,r)||this).config.storage=r.storage,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind(n),n.removeItem=n.removeItem.bind(n),n}return jr(t,e),t.prototype._decreaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t-e).toString())},t.prototype._increaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t+e).toString())},t.prototype._refreshItem=function(e,t){return e.visitedTime=Ar(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var t=this.config.storage.getItem(e),n=JSON.parse(t);return Ar()>=n.expires},t.prototype._removeItem=function(e,t){var n=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(n),this.config.storage.removeItem(e)},t.prototype._setItem=function(e,t){this._increaseCurSizeInBytes(t.byteSize);try{this.config.storage.setItem(e,JSON.stringify(t))}catch(n){this._decreaseCurSizeInBytes(t.byteSize),Mr.error("Failed to set item "+n)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,n=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>n?t:n},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],n=0;nt.priority?-1:e.priority5)Mr.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(r,t,i);if(o.byteSize>this.config.itemMaxSize)Mr.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var a=this.config.storage.getItem(r);if(a&&this._removeItem(r,JSON.parse(a).byteSize),this._isCacheFull(o.byteSize)){var s=this._findValidKeys();if(this._isCacheFull(o.byteSize)){var u=this._sizeToPop(o.byteSize);this._popOutItems(s,u)}}this._setItem(r,o)}catch(c){Mr.warn("setItem failed! "+c)}}}else Mr.warn("The value of item should not be undefined!");else Mr.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){Mr.log("Get item: key is "+e+" with options "+t);var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||r===this.cacheCurSizeKey)return Mr.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(n=this.config.storage.getItem(r))){if(!this._isExpired(r)){var i=JSON.parse(n);return(i=this._refreshItem(i,r)).data}this._removeItem(r,JSON.parse(n).byteSize),n=null}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null}catch(a){return Mr.warn("getItem failed! "+a),null}},t.prototype.removeItem=function(e){Mr.log("Remove item: key is "+e);var t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!==this.cacheCurSizeKey)try{var n=this.config.storage.getItem(t);n&&this._removeItem(t,JSON.parse(n).byteSize)}catch(r){Mr.warn("removeItem failed! "+r)}},t.prototype.clear=function(){Mr.log("Clear Cache");for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Wr=new Re("GraphQLAPI"),Kr=function(e,t){return void 0===t&&(t={}),{query:e,variables:t}},Gr=function(){function e(e){this._api=null,this.Auth=_r,this.Cache=Nr,this.Credentials=Ct,this._options=e,Wr.debug("API Options",this._options)}return e.prototype.getModuleName=function(){return"GraphQLAPI"},e.prototype.configure=function(e){var t=e||{},n=t.API,r=void 0===n?{}:n,i=Vr(t,["API"]),o=Ur(Ur({},i),r);return Wr.debug("configure GraphQL API",{opt:o}),o.aws_project_region&&(o=Object.assign({},o,{region:o.aws_project_region,header:{}})),"undefined"!==typeof o.graphql_headers&&"function"!==typeof o.graphql_headers&&(Wr.warn("graphql_headers should be a function"),o.graphql_headers=void 0),this._options=Object.assign({},this._options,o),this.createInstance(),this._options},e.prototype.createInstance=function(){return Wr.debug("create Rest instance"),this._options?(this._api=new Lr.a(this._options),this._api.Credentials=this.Credentials,!0):Promise.reject("API not configured")},e.prototype._headerBasedAuth=function(e){return Br(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,u;return zr(this,(function(c){switch(c.label){case 0:switch(t=this._options,n=t.aws_appsync_authenticationType,r=t.aws_appsync_apiKey,i={},e||n||"AWS_IAM"){case"API_KEY":return[3,1];case"AWS_IAM":return[3,2];case"OPENID_CONNECT":return[3,4];case"AMAZON_COGNITO_USER_POOLS":return[3,11]}return[3,15];case 1:if(!r)throw new Error(Tr.NO_API_KEY);return i={Authorization:null,"X-Api-Key":r},[3,16];case 2:return[4,this._ensureCredentials()];case 3:if(!c.sent())throw new Error(Tr.NO_CREDENTIALS);return[3,16];case 4:return c.trys.push([4,9,,10]),o=void 0,[4,Nr.getItem("federatedInfo")];case 5:return(a=c.sent())?(o=a.token,[3,8]):[3,6];case 6:return[4,_r.currentAuthenticatedUser()];case 7:(s=c.sent())&&(o=s.token),c.label=8;case 8:if(!o)throw new Error(Tr.NO_FEDERATED_JWT);return i={Authorization:o},[3,10];case 9:throw c.sent(),new Error(Tr.NO_CURRENT_USER);case 10:return[3,16];case 11:return c.trys.push([11,13,,14]),[4,this.Auth.currentSession()];case 12:return u=c.sent(),i={Authorization:u.getAccessToken().getJwtToken()},[3,14];case 13:throw c.sent(),new Error(Tr.NO_CURRENT_USER);case 14:return[3,16];case 15:return i={Authorization:null},[3,16];case 16:return[2,i]}}))}))},e.prototype.getGraphqlOperationType=function(e){var t=B(e);return Hr(t.definitions,1)[0].operation},e.prototype.graphql=function(e,t){var n=e.query,r=e.variables,i=void 0===r?{}:r,o=e.authMode,a=B("string"===typeof n?n:u(n)),s=Hr(a.definitions.filter((function(e){return"OperationDefinition"===e.kind})),1)[0],c=(void 0===s?{}:s).operation;switch(c){case"query":case"mutation":var l=this._api.getCancellableToken(),f={cancellableToken:l},d=this._graphql({query:a,variables:i,authMode:o},t,f);return this._api.updateRequestToBeCancellable(d,l),d;case"subscription":return this._graphqlSubscribe({query:a,variables:i,authMode:o},t)}throw new Error("invalid operation type: "+c)},e.prototype._graphql=function(e,t,n){var i=e.query,o=e.variables,a=e.authMode;return void 0===t&&(t={}),void 0===n&&(n={}),Br(this,void 0,void 0,(function(){var e,s,c,l,f,d,h,p,g,m,v,y,b,w,S,C,E,_,D,O,A;return zr(this,(function(x){switch(x.label){case 0:return this._api?[3,2]:[4,this.createInstance()];case 1:x.sent(),x.label=2;case 2:return e=this._options,s=e.aws_appsync_region,c=e.aws_appsync_graphqlEndpoint,l=e.graphql_headers,f=void 0===l?function(){return{}}:l,d=e.graphql_endpoint,h=e.graphql_endpoint_iam_region,g=[{}],(m=!d)?[4,this._headerBasedAuth(a)]:[3,4];case 3:m=x.sent(),x.label=4;case 4:return v=[Ur.apply(void 0,g.concat([m]))],(y=d)?h?[4,this._headerBasedAuth(a)]:[3,6]:[3,8];case 5:return b=x.sent(),[3,7];case 6:b={Authorization:null},x.label=7;case 7:y=b,x.label=8;case 8:return w=[Ur.apply(void 0,v.concat([y]))],[4,f({query:i,variables:o})];case 9:if(p=Ur.apply(void 0,[Ur.apply(void 0,[Ur.apply(void 0,w.concat([x.sent()])),t]),!d&&(A={},A["x-amz-user-agent"]=It.userAgent,A)]),S={query:u(i),variables:o},C=Object.assign({headers:p,body:S,signerServiceInfo:{service:d?"execute-api":"appsync",region:d?h:s}},n),!(E=d||c))throw{data:{},errors:[new r.a("No graphql endpoint provided.")]};x.label=10;case 10:return x.trys.push([10,12,,13]),[4,this._api.post(E,C)];case 11:return _=x.sent(),[3,13];case 12:if(D=x.sent(),this._api.isCancel(D))throw D;return _={data:{},errors:[new r.a(D.message,null,null,null,null,D)]},[3,13];case 13:if((O=_.errors)&&O.length)throw _;return[2,_]}}))}))},e.prototype.isCancel=function(e){return this._api.isCancel(e)},e.prototype.cancel=function(e,t){return this._api.cancel(e,t)},e.prototype._graphqlSubscribe=function(e,t){var n=e.query,r=e.variables,i=e.authMode;void 0===t&&(t={});var o=this._options,a=o.aws_appsync_region,s=o.aws_appsync_graphqlEndpoint,c=o.aws_appsync_authenticationType,l=o.aws_appsync_apiKey,f=o.graphql_headers,d=void 0===f?function(){return{}}:f,h=i||c||"AWS_IAM";if(jt.b&&"function"===typeof jt.b.subscribe)return jt.b.subscribe("",{provider:Ft,appSyncGraphqlEndpoint:s,authenticationType:h,apiKey:l,query:u(n),region:a,variables:r,graphql_headers:d,additionalHeaders:t});throw Wr.debug("No pubsub module applied for subscription"),new Error("No pubsub module applied for subscription")},e.prototype._ensureCredentials=function(){var e=this;return this.Credentials.get().then((function(t){if(!t)return!1;var n=e.Credentials.shear(t);return Wr.debug("set credentials for api",n),!0})).catch((function(e){return Wr.warn("ensure credentials error",e),!1}))},e}(),qr=new Gr(null);ht.register(qr)},function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n(140),i=n(439),o=n(187),a=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},s={clockOffset:0,getDateWithClockOffset:function(){return s.clockOffset?new Date((new Date).getTime()+s.clockOffset):new Date},getClockOffset:function(){return s.clockOffset},getHeaderStringFromDate:function(e){return void 0===e&&(e=s.getDateWithClockOffset()),e.toISOString().replace(/[:\-]|\.\d{3}/g,"")},getDateFromHeaderString:function(e){var t=a(e.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/),7),n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],u=t[6];return new Date(Date.UTC(Number(n),Number(r)-1,Number(i),Number(o),Number(s),Number(u)))},isClockSkewed:function(e){return Math.abs(e.getTime()-s.getDateWithClockOffset().getTime())>=3e5},isClockSkewError:function(e){if(!e.response||!e.response.headers)return!1;var t=e.response.headers;return Boolean("BadRequestException"===t["x-amzn-errortype"]&&(t.date||t.Date))},setClockOffset:function(e){s.clockOffset=e}},u=n(120),c=n(24),l=n(14),f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?Object(r.a)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(0),a=(n(11),n(7)),s=n(9),u=n(13),c=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=e.color,f=void 0===l?"inherit":l,d=e.component,h=void 0===d?"svg":d,p=e.fontSize,g=void 0===p?"default":p,m=e.htmlColor,v=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,w=Object(i.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(h,Object(r.a)({className:Object(a.a)(s.root,c,"inherit"!==f&&s["color".concat(Object(u.a)(f))],"default"!==g&&s["fontSize".concat(Object(u.a)(g))]),focusable:"false",viewBox:b,color:m,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},w),n,v?o.createElement("title",null,v):null)}));c.muiName="SvgIcon",t.a=Object(s.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c)},function(e,t,n){"use strict";var r=n(0),i=n(22),o=(n(11),n(23)),a=n(16),s=n(30);function u(e){return e.substring(2).toLowerCase()}t.a=function(e){var t=e.children,n=e.disableReactTree,c=void 0!==n&&n,l=e.mouseEvent,f=void 0===l?"onClick":l,d=e.onClickAway,h=e.touchEvent,p=void 0===h?"onTouchEnd":h,g=r.useRef(!1),m=r.useRef(null),v=r.useRef(!1),y=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){v.current=!0}),0),function(){v.current=!1}}),[]);var b=r.useCallback((function(e){m.current=i.findDOMNode(e)}),[]),w=Object(a.a)(t.ref,b),S=Object(s.a)((function(e){var t=y.current;if(y.current=!1,v.current&&m.current&&!function(e){return document.documentElement.clientWidth-1;else n=!Object(o.a)(m.current).documentElement.contains(e.target)||m.current.contains(e.target);n||!c&&t||d(e)}})),C=function(e){return function(n){y.current=!0;var r=t.props[e];r&&r(n)}},E={ref:w};return!1!==p&&(E[p]=C(p)),r.useEffect((function(){if(!1!==p){var e=u(p),t=Object(o.a)(m.current),n=function(){g.current=!0};return t.addEventListener(e,S),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,S),t.removeEventListener("touchmove",n)}}}),[S,p]),!1!==f&&(E[f]=C(f)),r.useEffect((function(){if(!1!==f){var e=u(f),t=Object(o.a)(m.current);return t.addEventListener(e,S),function(){t.removeEventListener(e,S)}}}),[S,f]),r.createElement(r.Fragment,null,r.cloneElement(t,E))}},function(e,t,n){"use strict";var r=n(3),i=n(41),o=n(6),a=n(0),s=(n(11),n(287)),u=n(27),c=n(38),l=n(16);function f(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var d={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},h=a.forwardRef((function(e,t){var n=e.children,h=e.disableStrictModeCompat,p=void 0!==h&&h,g=e.in,m=e.onEnter,v=e.onEntered,y=e.onEntering,b=e.onExit,w=e.onExited,S=e.onExiting,C=e.style,E=e.timeout,_=void 0===E?"auto":E,D=e.TransitionComponent,O=void 0===D?s.a:D,A=Object(o.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=a.useRef(),k=a.useRef(),T=Object(u.a)(),I=T.unstable_strictMode&&!p,P=a.useRef(null),F=Object(l.a)(n.ref,t),j=Object(l.a)(I?P:void 0,F),M=function(e){return function(t,n){if(e){var r=I?[P.current,t]:[t,n],o=Object(i.a)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},R=M(y),N=M((function(e,t){Object(c.b)(e);var n,r=Object(c.a)({style:C,timeout:_},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===_?(n=T.transitions.getAutoHeightDuration(e.clientHeight),k.current=n):n=i,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:o}),T.transitions.create("transform",{duration:.666*n,delay:o})].join(","),m&&m(e,t)})),L=M(v),U=M(S),B=M((function(e){var t,n=Object(c.a)({style:C,timeout:_},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===_?(t=T.transitions.getAutoHeightDuration(e.clientHeight),k.current=t):t=r,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:i}),T.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=f(.75),b&&b(e)})),z=M(w);return a.useEffect((function(){return function(){clearTimeout(x.current)}}),[]),a.createElement(O,Object(r.a)({appear:!0,in:g,nodeRef:I?P:void 0,onEnter:N,onEntered:L,onEntering:R,onExit:B,onExited:z,onExiting:U,addEndListener:function(e,t){var n=I?e:t;"auto"===_&&(x.current=setTimeout(n,k.current||0))},timeout:"auto"===_?null:_},A),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:f(.75),visibility:"exited"!==e||g?void 0:"hidden"},d[e],C,n.props.style),ref:j},t))}))}));h.muiSupportAuto=!0,t.a=h},function(e,t,n){"use strict";var r=n(3),i=n(41),o=n(6),a=n(0),s=(n(11),n(287)),u=n(35),c=n(27),l=n(38),f=n(16),d={entering:{opacity:1},entered:{opacity:1}},h={enter:u.b.enteringScreen,exit:u.b.leavingScreen},p=a.forwardRef((function(e,t){var n=e.children,u=e.disableStrictModeCompat,p=void 0!==u&&u,g=e.in,m=e.onEnter,v=e.onEntered,y=e.onEntering,b=e.onExit,w=e.onExited,S=e.onExiting,C=e.style,E=e.TransitionComponent,_=void 0===E?s.a:E,D=e.timeout,O=void 0===D?h:D,A=Object(o.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),x=Object(c.a)(),k=x.unstable_strictMode&&!p,T=a.useRef(null),I=Object(f.a)(n.ref,t),P=Object(f.a)(k?T:void 0,I),F=function(e){return function(t,n){if(e){var r=k?[T.current,t]:[t,n],o=Object(i.a)(r,2),a=o[0],s=o[1];void 0===s?e(a):e(a,s)}}},j=F(y),M=F((function(e,t){Object(l.b)(e);var n=Object(l.a)({style:C,timeout:O},{mode:"enter"});e.style.webkitTransition=x.transitions.create("opacity",n),e.style.transition=x.transitions.create("opacity",n),m&&m(e,t)})),R=F(v),N=F(S),L=F((function(e){var t=Object(l.a)({style:C,timeout:O},{mode:"exit"});e.style.webkitTransition=x.transitions.create("opacity",t),e.style.transition=x.transitions.create("opacity",t),b&&b(e)})),U=F(w);return a.createElement(_,Object(r.a)({appear:!0,in:g,nodeRef:k?T:void 0,onEnter:M,onEntered:R,onEntering:j,onExit:L,onExited:U,onExiting:N,timeout:O},A),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,visibility:"exited"!==e||g?void 0:"hidden"},d[e],C,n.props.style),ref:P},t))}))}));t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return je}));var r=n(31),i=Date.now(),o="fnValues"+i,a="fnStyle"+ ++i,s=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var i=Object(r.d)(e,{},n);return i[a]=t,i},onProcessStyle:function(e,t){if(o in t||a in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[o]=n,e},onUpdate:function(e,t,n,r){var i=t,s=i[a];s&&(i.style=s(e)||{});var u=i[o];if(u)for(var c in u)i.prop(c,u[c](e),r)}}},u=n(3),c="@global",l="@global ",f=function(){function e(e,t,n){for(var i in this.type="global",this.at=c,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.a(Object(u.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),d=function(){function e(e,t,n){this.type="global",this.at=c,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(l.length);this.rule=n.jss.createRule(r,t,Object(u.a)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),h=/\s*,\s*/g;function p(e,t){for(var n=e.split(h),r="",i=0;i-1){var i=me[e];if(!Array.isArray(i))return W+ee(i)in t&&K+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o