/*! For license information please see 2.039e384f.chunk.js.LICENSE.txt */ (this.webpackJsonpviraj=this.webpackJsonpviraj||[]).push([[2],[function(e,t,r){"use strict";e.exports=r(158)},function(e,t,r){"use strict";var i=r(93),n=function(){for(var e=0,t=0,r=arguments.length;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 p="["+t+"] "+this._ts()+" "+this.name;if(1===r.length&&"string"===typeof r[0])u(p+" - "+r[0]);else if(1===r.length)u(p,r[0]);else if("string"===typeof r[0]){var c=r.slice(1);1===c.length&&(c=c[0]),u(p+" - "+r[0],c)}else u(p,r)}},e.prototype.log=function(){for(var e=[],t=0;t-1)&&(i===h||y.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var n={channel:e,payload:l({},t),source:r,patternInfo:[]};try{this._toListeners(n)}catch(a){y.error(a)}},e.prototype.listen=function(e,t,r){var i;if(void 0===r&&(r="noname"),function(e){return void 0!==e.onHubCapsule}(t))y.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),i=t.onHubCapsule.bind(t);else{if("function"!==typeof t)throw new Error("No callback supplied to Hub");i=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:i});else{var n=this.listeners[e];n||(n=[],this.listeners[e]=n),n.push({name:r,callback:i})}},e.prototype._toListeners=function(e){var t=e.channel,r=e.payload,i=this.listeners[t];if(i&&i.forEach((function(i){y.debug("Dispatching to "+t+" with ",r);try{i.callback(e)}catch(n){y.error(n)}})),this.patterns.length>0){if(!r.message)return void y.warn("Cannot perform pattern matching without a message key");var n=r.message;this.patterns.forEach((function(t){var r=n.match(t.pattern);if(r){var i=r.slice(1),a=l(l({},e),{patternInfo:i});try{t.callback(a)}catch(o){y.error(o)}}}))}},e}())("__default__"),f=new o("I18n"),g=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),f.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 r=this._lang,i=this.getByLanguage(e,r);return i||(r.indexOf("-")>0&&(i=this.getByLanguage(e,r.split("-")[0])),i||("undefined"!==typeof t?t:e))},e.prototype.getByLanguage=function(e,t,r){if(void 0===r&&(r=null),!t)return r;var i=this._dict[t];return i?i[e]:r},e.prototype.putVocabulariesForLanguage=function(e,t){var r=this._dict[e];r||(r=this._dict[e]={}),Object.assign(r,t)},e.prototype.putVocabularies=function(e){var t=this;Object.keys(e).map((function(r){t.putVocabulariesForLanguage(r,e[r])}))},e}(),S=new o("I18n"),I=null,N=null,v=function(){function e(){}return e.configure=function(t){return S.debug("configure I18n"),t?(I=Object.assign({},I,t.I18n||t),e.createInstance(),I):I},e.getModuleName=function(){return"I18n"},e.createInstance=function(){S.debug("create I18n instance"),N||(N=new g(I))},e.setLanguage=function(t){return e.checkConfig(),N.setLanguage(t)},e.get=function(t,r){return e.checkConfig()?N.get(t,r):"undefined"===typeof r?t:r},e.putVocabulariesForLanguage=function(t,r){return e.checkConfig(),N.putVocabulariesForLanguage(t,r)},e.putVocabularies=function(t){return e.checkConfig(),N.putVocabularies(t)},e.checkConfig=function(){return N||(N=new g(I)),!0},e}();u.register(v);var T=v,C=[{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/png",ext:"png"},{type:"image/gif",ext:"gif"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/bmp",ext:"bmp"},{type:"image/x-icon",ext:"ico"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/svg+xml",ext:"svg"},{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"}],k=function(){function e(){}return e.isEmpty=function(e){return 0===Object.keys(e).length},e.sortByField=function(e,t,r){if(!e||!e.sort)return!1;var i=r&&"desc"===r?-1:1;return e.sort((function(e,r){var n=e[t],a=r[t];return"undefined"===typeof a?"undefined"===typeof n?0:1*i:"undefined"===typeof n?-1*i:na?1*i:0})),!0},e.objectLessAttributes=function(e,t){var r=Object.assign({},e);return t&&("string"===typeof t?delete r[t]:t.forEach((function(e){delete r[e]}))),r},e.filenameToContentType=function(e,t){void 0===t&&(t="application/octet-stream");var r=e.toLowerCase(),i=C.filter((function(e){return r.endsWith("."+e.ext)}));return i.length>0?i[0].type:t},e.isTextFile=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},e.generateRandomString=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r=32;r>0;r-=1)e+=t[Math.floor(Math.random()*t.length)];return e},e.makeQuerablePromise=function(e){if(e.isResolved)return e;var t=!0,r=!1,i=!1,n=e.then((function(e){return i=!0,t=!1,e}),(function(e){throw r=!0,t=!1,e}));return n.isFullfilled=function(){return i},n.isPending=function(){return t},n.isRejected=function(){return r},n},e.browserOrNode=function(){var e=new Function("try {return this===window;}catch(e){ return false;}"),t=new Function("try {return this===global;}catch(e){return false;}");return{isBrowser:e(),isNode:t()}},e.transferKeyToLowerCase=function(t,r,i){if(void 0===r&&(r=[]),void 0===i&&(i=[]),!e.isStrictObject(t))return t;var n={};for(var a in t){if(t.hasOwnProperty(a))n[r.includes(a)?a:a[0].toLowerCase()+a.slice(1)]=i.includes(a)?t[a]:e.transferKeyToLowerCase(t[a],r,i)}return n},e.transferKeyToUpperCase=function(t,r,i){if(void 0===r&&(r=[]),void 0===i&&(i=[]),!e.isStrictObject(t))return t;var n={};for(var a in t){if(t.hasOwnProperty(a))n[r.includes(a)?a:a[0].toUpperCase()+a.slice(1)]=i.includes(a)?t[a]:e.transferKeyToUpperCase(t[a],r,i)}return n},e.isStrictObject=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},e}(),A=function(){return(A=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1](new Date).getTime()?(se.debug("token not expired"),this._setCredentialsFromFederation({provider:r,token:n,user:i,identity_id:o,expires_at:a})):s._refreshHandlers[r]&&"function"===typeof s._refreshHandlers[r]?(se.debug("getting refreshed jwt token from federation provider"),s._refreshHandlers[r]().then((function(e){return se.debug("refresh federated token sucessfully",e),n=e.token,o=e.identity_id,a=e.expires_at,s._setCredentialsFromFederation({provider:r,token:n,user:i,identity_id:o,expires_at:a})})).catch((function(e){return se.debug("refresh federated token failed",e),t.clear(),Promise.reject("refreshing federation token failed: "+e)}))):(se.debug("no refresh handler for provider:",r),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._isExpired=function(e){if(!e)return se.debug("no credentials for expiration check"),!0;se.debug("is this credentials expired?",e);var t=(new Date).getTime(),r=e.expired,i=e.expireTime;return!(!r&&i>t+6e5)},e.prototype._setCredentialsForGuest=function(){return ae(this,void 0,void 0,(function(){var e,t,r,n,a,o,s,u=this;return oe(this,(function(p){switch(p.label){case 0:if(e=!1,se.debug("setting credentials for guest"),t=this._config,r=t.identityPoolId,n=t.region,t.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!r)return se.debug("No Cognito Federated Identity pool provided"),[2,Promise.reject("No Cognito Federated Identity pool provided")];a=void 0,p.label=1;case 1:return p.trys.push([1,3,,4]),[4,this._storageSync];case 2:return p.sent(),a=this._storage.getItem("CognitoIdentityId-"+r),[3,4];case 3:return o=p.sent(),se.debug("Failed to get the cached identityId",o),[3,4];case 4:return s=new i.CognitoIdentityCredentials({IdentityPoolId:r,IdentityId:a||void 0},{region:n}),this,[2,this._loadCredentials(s,"guest",!1,null).then((function(e){return e})).catch((function(t){return ae(u,void 0,void 0,(function(){var o;return oe(this,(function(u){return"ResourceNotFoundException"!==t.code||t.message!=="Identity '"+a+"' not found."||e?[2,t]:(e=!0,se.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+r),s.clearCachedId(),o=new i.CognitoIdentityCredentials({IdentityPoolId:r,IdentityId:void 0},{region:n}),[2,this._loadCredentials(o,"guest",!1,null)])}))}))}))]}}))}))},e.prototype._setCredentialsFromAWS=function(){var e=i.config.credentials;se.debug("setting credentials from aws");return e instanceof i.Credentials?Promise.resolve(e):(se.debug("AWS.config.credentials is not an instance of AWS Credentials"),Promise.reject("AWS.config.credentials is not an instance of AWS Credentials"))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,r=e.token,n=e.identity_id,a=(e.user,e.expires_at,{google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t);if(!a)return Promise.reject("You must specify a federated provider");var o={};o[a]=r;var s=this._config,u=s.identityPoolId,p=s.region;if(!u)return se.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");var c=new i.CognitoIdentityCredentials({IdentityPoolId:u,IdentityId:n,Logins:o},{region:p});return this._loadCredentials(c,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){se.debug("set credentials from session");var t=e.getIdToken().getJwtToken(),r=this._config,n=r.region,a=r.userPoolId,o=r.identityPoolId;if(!o)return se.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");var s={};s["cognito-idp."+n+".amazonaws.com/"+a]=t;var u=new i.CognitoIdentityCredentials({IdentityPoolId:o,Logins:s},{region:n});return this._loadCredentials(u,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,r,i){var n=this,a=this,o=this._config.identityPoolId;return new Promise((function(s,p){e.get((function(c){return ae(n,void 0,void 0,(function(){var n,m,l,d,y,h;return oe(this,(function(b){switch(b.label){case 0:if(c)return se.debug("Failed to load credentials",e),p(c),[2];if(se.debug("Load credentials successfully",e),a._credentials=e,a._credentials.authenticated=r,a._credentials_source=t,"federated"!==t)return[3,3];n=Object.assign({id:this._credentials.identityId},i.user),m=i.provider,l=i.token,d=i.expires_at,y=i.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:m,token:l,user:n,expires_at:d,identity_id:y}))}catch(f){se.debug("Failed to put federated info into auth storage",f)}return u.Cache&&"function"===typeof u.Cache.setItem?[4,u.Cache.setItem("federatedInfo",{provider:m,token:l,user:n,expires_at:d,identity_id:y},{priority:1})]:[3,2];case 1:return b.sent(),[3,3];case 2:se.debug("No Cache module registered in Amplify"),b.label=3;case 3:if("guest"!==t)return[3,7];b.label=4;case 4:return b.trys.push([4,6,,7]),[4,this._storageSync];case 5:return b.sent(),this._storage.setItem("CognitoIdentityId-"+o,e.identityId),[3,7];case 6:return h=b.sent(),se.debug("Failed to cache identityId",h),[3,7];case 7:return s(a._credentials),[2]}}))}))}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(se.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return ae(this,void 0,void 0,(function(){var e,t,r;return oe(this,(function(n){switch(n.label){case 0:return e=this._config,t=e.identityPoolId,r=e.region,t&&new i.CognitoIdentityCredentials({IdentityPoolId:t},{region:r}).clearCachedId(),this._credentials=null,this._credentials_source=null,this._storage.removeItem("aws-amplify-federatedInfo"),u.Cache&&"function"===typeof u.Cache.setItem?[4,u.Cache.removeItem("federatedInfo")]:[3,2];case 1:return n.sent(),[3,3];case 2:se.debug("No Cache module registered in Amplify"),n.label=3;case 3:return[2]}}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null),pe=function(){function e(){this._logger=new o("ServiceWorker")}return Object.defineProperty(e.prototype,"serviceWorker",{get:function(){return this._serviceWorker},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var r=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(i,n){if(!(navigator&&"serviceWorker"in navigator))return n(new Error("Service Worker not available"));navigator.serviceWorker.register(e,{scope:t}).then((function(e){return e.installing?r._serviceWorker=e.installing:e.waiting?r._serviceWorker=e.waiting:e.active&&(r._serviceWorker=e.active),r._registration=e,r._setupListeners(),r._logger.debug("Service Worker Registration Success: "+e),i(e)})).catch((function(e){return r._logger.debug("Service Worker Registration Failed "+e),n(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(r,i){if(!k.browserOrNode().isBrowser)return i(new Error("Service Worker not available"));t._registration.pushManager.getSubscription().then((function(i){if(!i)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)),r(e)})).catch((function(e){t._logger.error(e)}));t._subscription=i,t._logger.debug("User is subscribed to push: "+JSON.stringify(i)),r(i)}))}))},e.prototype._urlB64ToUint8Array=function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),r=window.atob(t),i=new Uint8Array(r.length),n=0;n0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]e)&&r}}(r))},ve=(function(){function e(){this._queue=[],this._pending=!1}e.prototype.isLocked=function(){return this._pending},e.prototype.acquire=function(){var e=this,t=new Promise((function(t){return e._queue.push(t)}));return this._pending||this._dispatchNext(),t},e.prototype.runExclusive=function(e){return this.acquire().then((function(t){var r;try{r=e()}catch(i){throw t(),i}return Promise.resolve(r).then((function(e){return t(),e}),(function(e){throw t(),e}))}))},e.prototype._dispatchNext=function(){this._queue.length>0?(this._pending=!0,this._queue.shift()(this._dispatchNext.bind(this))):this._pending=!1}}(),r(30));!function(){function e(){}e.prototype.networkMonitor=function(){return new ve((function(e){e.next({online:window.navigator.onLine});var t=function(){return e.next({online:!0})},r=function(){return e.next({online:!1})};return window.addEventListener("online",t),window.addEventListener("offline",r),function(){window.removeEventListener("online",t),window.removeEventListener("offline",r)}}))}}();r.d(t,"d",(function(){return Te})),r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return m})),r.d(t,"c",(function(){return o})),r.d(t,"k",(function(){return o})),r.d(t,"f",(function(){return b})),r.d(t,"g",(function(){return T})),r.d(t,"j",(function(){return k})),r.d(t,"p",(function(){return G})),r.d(t,"m",(function(){return V})),r.d(t,"e",(function(){return ue})),r.d(t,"o",(function(){return pe})),r.d(t,"q",(function(){return ie})),r.d(t,"n",(function(){return le})),r.d(t,"h",(function(){return ye})),r.d(t,"i",(function(){return he})),r.d(t,"r",(function(){return"x-amz-user-agent"})),r.d(t,"l",(function(){return Ie})),r.d(t,"t",(function(){return Ne}));var Te={userAgent:le.userAgent},Ce=(t.s=u,new o("Core"));i.util?i.util.userAgent=function(){return Te.userAgent}:i.config?i.config.update({customUserAgent:Te.userAgent}):Ce.warn("No AWS.config")},function(e,t,r){var i={util:r(15)};({}).toString(),e.exports=i,i.util.update(i,{VERSION:"2.518.0",Signers:{},Protocol:{Json:r(72),Query:r(94),Rest:r(56),RestJson:r(96),RestXml:r(97)},XML:{Builder:r(168),Parser:null},JSON:{Builder:r(73),Parser:r(74)},Model:{Api:r(98),Operation:r(99),Shape:r(52),Paginator:r(100),ResourceWaiter:r(101)},apiLoader:r(173),EndpointCache:r(174).EndpointCache}),r(102),r(176),r(179),r(105),r(180),r(185),r(187),r(188),r(189),r(195),i.events=new i.SequentialExecutor,i.util.memoizedProperty(i,"endpointCache",(function(){return new i.EndpointCache(i.config.endpointCacheSize)}),!0)},function(e,t,r){"use strict";function i(){return(i=Object.assign||function(e){for(var t=1;t=0||(n[r]=e[r]);return n}r.d(t,"a",(function(){return i}))},function(e,t,r){var i;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function y(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 r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(i)return G(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function b(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function f(e,t,r,i,n){if(0===e.length)return-1;if("string"===typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"===typeof t&&(t=u.from(t,i)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var a,o=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,r/=2}function p(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var c=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var m=!0,l=0;ln&&(i=n):i=n;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o>8,n=r%256,a.push(n),a.push(i);return a}(t,e.length-r),e,r,i)}function k(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n239?4:p>223?3:p>191?2:1;if(n+m<=r)switch(m){case 1:p<128&&(c=p);break;case 2:128===(192&(a=e[n+1]))&&(u=(31&p)<<6|63&a)>127&&(c=u);break;case 3:a=e[n+1],o=e[n+2],128===(192&a)&&128===(192&o)&&(u=(15&p)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[n+1],o=e[n+2],s=e[n+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&p)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,m=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=m}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,i,n){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(n>>>=0)-(i>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),p=this.slice(i,n),c=e.slice(t,r),m=0;mn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return I(this,e,t,r);case"ascii":return N(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;ni)&&(r=i);for(var n="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function q(e,t,r,i,n,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function w(e,t,r,i){t<0&&(t=65535+t+1);for(var n=0,a=Math.min(e.length-r,2);n>>8*(i?n:1-n)}function _(e,t,r,i){t<0&&(t=4294967295+t+1);for(var n=0,a=Math.min(e.length-r,4);n>>8*(i?n:3-n)&255}function M(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,i,a){return a||M(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function O(e,t,r,i,a){return a||M(e,0,r,8),n.write(e,t,r,i,52,8),r+8}u.prototype.slice=function(e,t){var r,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(n*=256);)i+=this[e+--t]*n;return i},u.prototype.readUInt8=function(e,t){return t||x(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||x(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||x(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||x(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||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||x(e,t,this.length);for(var i=this[e],n=1,a=0;++a=(n*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||x(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||x(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||x(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||x(e,4,this.length),n.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||x(e,4,this.length),n.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||x(e,8,this.length),n.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||x(e,8,this.length),n.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t|=0,r|=0,i)||q(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+n]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||q(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||q(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||q(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||q(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):_(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||q(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):_(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);q(this,e,t,r,n-1,-n)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t|=0,!i){var n=Math.pow(2,8*r-1);q(this,e,t,r,n-1,-n)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||q(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||q(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||q(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||q(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):_(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||q(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):_(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return O(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return O(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,i){if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function F(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function V(e,t,r,i){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,r(37))},function(e,t,r){"use strict";var i=r(1),n=r(136),a=r(24),o=r(18),s=function(e,t,r,i){return new(r||(r=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(t){a(t)}}function s(e){try{u(i.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((i=i.apply(e,t||[])).next())}))},u=function(e,t){var r,i,n,a,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]this._config.bufferSize)return p.debug("Exceeded analytics events buffer size"),e.handlers.reject(new Error("Exceeded the size of analytics events buffer"));var r=((t={})[e.params.event.eventId]=e,t);this._buffer.push(r)},e.prototype.pause=function(){this._pause=!0},e.prototype.resume=function(){this._pause=!1},e.prototype.updateClient=function(e){this._client=e},e.prototype.flush=function(){this._flush=!0},e.prototype._startLoop=function(){this._interval&&clearInterval(this._interval);var e=this._config.flushInterval;this._interval=setInterval(this._sendBatch,e)},e.prototype._sendBatch=function(){var e=this._buffer.length;if(this._flush&&!e&&clearInterval(this._interval),!this._pause&&e){var t=this._config.flushSize,r=Math.min(t,e),i=this._buffer.splice(0,r);this._putEvents(i)}},e.prototype._putEvents=function(e){return s(this,void 0,void 0,(function(){var t,r,i,n;return u(this,(function(a){switch(a.label){case 0:t=this._bufferToMap(e),r=this._generateBatchEventParams(t),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._client.putEvents(r).promise()];case 2:return i=a.sent(),this._processPutEventsSuccessResponse(i,t),[3,4];case 3:return n=a.sent(),[2,this._handlePutEventsFailure(n,t)];case 4:return[2]}}))}))},e.prototype._generateBatchEventParams=function(e){var t={ApplicationId:"",EventsRequest:{BatchItem:{}}};return Object.values(e).forEach((function(e){var r=e.params,i=r.event,n=r.timestamp,a=r.config,o=i.name,s=i.attributes,u=i.metrics,p=i.eventId,c=i.session,m=a.appId,l=a.endpointId,d=t.EventsRequest.BatchItem;t.ApplicationId=t.ApplicationId||m,d[l]||(d[l]={Endpoint:{},Events:{}}),d[l].Events[p]={EventType:o,Timestamp:new Date(n).toISOString(),Attributes:s,Metrics:u,Session:c}})),t},e.prototype._handlePutEventsFailure=function(e,t){p.debug("_putEvents Failed:",e);var r=e.statusCode;if(c.includes(r)){var i=Object.values(t);this._retry(i)}else;},e.prototype._processPutEventsSuccessResponse=function(e,t){var r=e.EventsResponse.Results,i=[];Object.entries(r).forEach((function(e){var r=e[0],n=e[1].EventsItemResponse;Object.entries(n).forEach((function(e){var n,a,o=e[0],s=e[1],u=s.StatusCode,l=s.Message,d=t[o],y={EventsResponse:{Results:(n={},n[r]={EventsItemResponse:(a={},a[o]={StatusCode:u,Message:l},a)},n)}};if(m.includes(u))d.handlers.resolve(y);else{if(!c.includes(u)){var h=d.params.event.name;return p.error("event "+o+" : "+h+" failed with error: "+l),d.handlers.reject(y)}i.push(d)}}))})),i.length&&this._retry(i)},e.prototype._retry=function(e){var t,r=[];e.forEach((function(e){var t,i=e.params,n=i.event,a=n.eventId,o=n.name;if(i.resendLimit-- >0)return p.debug("resending event "+a+" : "+o+" with "+i.resendLimit+" retry attempts remaining"),void r.push((t={},t[a]=e,t));p.debug("no retry attempts remaining for event "+a+" : "+o)})),(t=this._buffer).unshift.apply(t,r)},e.prototype._bufferToMap=function(e){return e.reduce((function(e,t){var r=Object.entries(t)[0],i=r[0],n=r[1];return e[i]=n,e}),{})},e}(),d=function(){return(d=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0?(S.debug("resending event "+e.eventName+" with "+e.resendLimit+" retry times left"),this._pinpointPutEvents(e,t)):S.debug("retry times used up for event "+e.eventName)},e.prototype._updateEndpoint=function(e){return y(this,void 0,void 0,(function(){var t,r,n,a,o,s,u,p,c,m,l;return h(this,(function(d){switch(d.label){case 0:t=e.params,r=e.handlers,n=t.config,a=t.event,o=n.appId,s=n.endpointId,u=this._endpointRequest(n,i.j.transferKeyToLowerCase(a,[],["attributes","userAttributes","Attributes","UserAttributes"])),p={ApplicationId:o,EndpointId:s,EndpointRequest:u},d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.pinpointClient.updateEndpoint(p).promise()];case 2:return c=d.sent(),S.debug("updateEndpoint success",c),this._endpointGenerating=!1,this._resumeBuffer(),r.resolve(c),[2];case 3:return m=d.sent(),l={err:m,update_params:p,endpointObject:e},[2,this._handleEndpointUpdateFailure(l)];case 4:return[2]}}))}))},e.prototype._handleEndpointUpdateFailure=function(e){return y(this,void 0,void 0,(function(){var t,r,i;return h(this,(function(n){switch(t=e.err,r=e.endpointObject,i=t.statusCode,S.debug("updateEndpoint failed",t),i){case 400:return[2,this._handleEndpointUpdateBadRequest(e)];case 403:return[2,this._handleEndpointUpdateForbidden(e)];default:if(I.includes(i))return!0,[2,this._retryEndpointUpdate(r,!0)];r.handlers.reject(t)}return[2]}))}))},e.prototype._handleEndpointUpdateBadRequest=function(e){return y(this,void 0,void 0,(function(){var t,r,i,n,a,o,s;return h(this,(function(u){switch(u.label){case 0:if(t=e.err,r=e.update_params,i=e.endpointObject,n=t.message,a=r.ApplicationId,o=r.EndpointRequest,!String(n).startsWith("Exceeded maximum endpoint per user count"))return[2,i.handlers.reject(t)];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this._removeUnusedEndpoints(a,o.User.UserId)];case 2:return u.sent(),S.debug("Removed unused endpoints successfully"),this._retryEndpointUpdate(i),[3,4];case 3:return s=u.sent(),S.warn("Failed to remove unused endpoints with error: "+s),S.warn('Please ensure you have updated your Pinpoint IAM Policy with the Action: "mobiletargeting:GetUserEndpoints" in order to get endpoints info of the user'),[2,i.handlers.reject(s)];case 4:return[2]}}))}))},e.prototype._handleEndpointUpdateForbidden=function(e){var t=e.err,r=e.endpointObject,i=t.code,n=t.retryable;if("ExpiredTokenException"!==i&&!n)return r.handlers.reject(t);this._retryEndpointUpdate(r)},e.prototype._retryEndpointUpdate=function(e,t){void 0===t&&(t=!1),S.debug("_retryEndpointUpdate",e);var r=e.params;if(r.resendLimit-- >0)return S.debug("resending endpoint update "+r.event.eventId+" with "+r.resendLimit+" retry attempts remaining"),void this._endpointBuffer.unshift(e);S.warn("resending endpoint update "+r.event.eventId+" failed after "+r.config.resendLimit+" attempts"),this._endpointGenerating&&S.error("Initial endpoint update failed. ")},e.prototype._removeUnusedEndpoints=function(e,t){return y(this,void 0,void 0,(function(){var r=this;return h(this,(function(i){return[2,new Promise((function(i,n){r.pinpointClient.getUserEndpoints({ApplicationId:e,UserId:t},(function(a,o){if(a)return S.debug("Failed to get endpoints associated with the userId: "+t+" with error",a),n(a);var s=o.EndpointsResponse.Item;S.debug("get endpoints associated with the userId: "+t+" with data",s);for(var u=s[0],p=1;p0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0},e}(),oe=r(79),se=function(e,t,r,i){return new(r||(r=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(t){a(t)}}function s(e){try{u(i.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((i=i.apply(e,t||[])).next())}))},ue=function(e,t){var r,i,n,a,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&this._config.flushSize<=10?this._config.flushSize:5,this._config.flushInterval=this._config.flushInterval||5e3,this._sessionManager=new be,Object(he.isEmpty)(this._config.trackingId)||(this._sessionInfo=this._sessionManager.retrieveSessionInfo(this._config.trackingId)),this._isBrowser=i.j.browserOrNode().isBrowser,this._setupTimer()}e.prototype._setupTimer=function(){this._timer&&clearInterval(this._timer);var e=this._config,t=(e.flushSize,e.flushInterval),r=this;this._timer=setInterval((function(){r._sendFromBuffer()}),t)},e.prototype.record=function(e){return ge(this,void 0,void 0,(function(){var t,r,i,n,a;return Se(this,(function(o){switch(o.label){case 0:return[4,this._getCredentials()];case 1:return(t=o.sent())?(Object.assign(e,{config:this._config,credentials:t,sentAt:(new Date).getTime()/1e3}),r=e.event,i=r.eventType,n=r.properties,"Identify"===i?(this._sessionManager.updateSessionInfo(n&&n.userId?n.userId:"",this._sessionInfo),[2]):(Object(he.isEmpty)(e.event.userId)||this._sessionManager.updateSessionInfo(e.event.userId,this._sessionInfo),a=this.generateRequestParams(e,this._sessionInfo),"MediaAutoTrack"!==i?[3,7]:this._isBrowser?Object(he.isEmpty)(Object(he.get)(a,"eventData.properties.domElementId",null))?[3,3]:[4,this.isElementFullyLoaded(this.loadElement,a.eventData.properties.domElementId,500,5)]:[3,5])):[2,Promise.resolve(!1)];case 2:return o.sent()?new fe(a,this):Ie.debug("Cannot find the media element."),[3,4];case 3:Ie.debug("Missing domElementId field in 'properties' for MediaAutoTrack event type."),o.label=4;case 4:return[3,6];case 5:Ie.debug("MediaAutoTrack only for browser"),o.label=6;case 6:return[2];case 7:return[2,this.putToBuffer(a)]}}))}))},e.prototype.loadElement=function(e){return new Promise((function(t,r){return document.getElementById(e)&&document.getElementById(e).clientHeight?t(!0):r(!0)}))},e.prototype.isElementFullyLoaded=function(e,t,r,i){var n=this;return new Promise((function(a,o){return e(t).then(a).catch((function(s){return i-1>0?(u=r,new Promise((function(e){return setTimeout(e,u)}))).then(n.isElementFullyLoaded.bind(null,e,t,r,i-1)).then(a).catch(o):o(s);var u}))}))},e.prototype.getCategory=function(){return"Analytics"},e.prototype.getProviderName=function(){return"AmazonPersonalize"},e.prototype.configure=function(e){Ie.debug("configure Analytics",e);var t=e||{};return this._config=Object.assign({},this._config,t),Object(he.isEmpty)(this._config.trackingId)||(this._sessionInfo=this._sessionManager.retrieveSessionInfo(this._config.trackingId)),this._setupTimer(),this._config},e.prototype.generateRequestParams=function(e,t){var r={},i=e.event,n=i.eventType,a=i.properties;return r.eventData={eventType:n,properties:a},r.sessionInfo=t,r.sentAt=e.sentAt,r.credentials=e.credentials,r.config=e.config,r},e.prototype._sendEvents=function(e){var t=e.length;if(0!==t){var r=e[0],i=r.config,n=r.credentials,a=r.sessionInfo;if(!this._init(i,n))return!1;if(t>0){for(var o=[],s=0;s0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]2&&void 0!==arguments[2]?arguments[2]:rt,i=void 0,n=Array.isArray(e),a=[e],o=-1,s=[],u=void 0,p=void 0,c=void 0,m=[],l=[],d=e;do{var y=++o===a.length,h=y&&0!==s.length;if(y){if(p=0===l.length?void 0:m[m.length-1],u=c,c=l.pop(),h){if(n)u=u.slice();else{var b={};for(var f in u)u.hasOwnProperty(f)&&(b[f]=u[f]);u=b}for(var g=0,S=0;S0||ht(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||ht(0,"column in locationOffset is 1-indexed and must be positive")};function St(e,t,r){return new tt.a("Syntax Error: ".concat(r),void 0,e,[t])}function It(e){for(var t=e.split(/\r\n|[\n\r]/g),r=null,i=1;i0&&vt(t[0]);)t.shift();for(;t.length>0&&vt(t[t.length-1]);)t.pop();return t.join("\n")}function Nt(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 Dt(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}var Rt=String.prototype.charCodeAt,Pt=String.prototype.slice;function Et(e,t,r,i,n,a,o){this.kind=e,this.start=t,this.end=r,this.line=i,this.column=n,this.value=o,this.prev=a,this.next=null}function xt(e){return isNaN(e)?At.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function qt(e,t){var r=e.source,i=r.body,n=i.length,a=function(e,t,r){var i=e.length,n=t;for(;n=n)return new Et(At.EOF,n,n,o,s,t);var u=Rt.call(i,a);switch(u){case 33:return new Et(At.BANG,a,a+1,o,s,t);case 35:return function(e,t,r,i,n){var a,o=e.body,s=t;do{a=Rt.call(o,++s)}while(null!==a&&(a>31||9===a));return new Et(At.COMMENT,t,s,r,i,n,Pt.call(o,t+1,s))}(r,a,o,s,t);case 36:return new Et(At.DOLLAR,a,a+1,o,s,t);case 38:return new Et(At.AMP,a,a+1,o,s,t);case 40:return new Et(At.PAREN_L,a,a+1,o,s,t);case 41:return new Et(At.PAREN_R,a,a+1,o,s,t);case 46:if(46===Rt.call(i,a+1)&&46===Rt.call(i,a+2))return new Et(At.SPREAD,a,a+3,o,s,t);break;case 58:return new Et(At.COLON,a,a+1,o,s,t);case 61:return new Et(At.EQUALS,a,a+1,o,s,t);case 64:return new Et(At.AT,a,a+1,o,s,t);case 91:return new Et(At.BRACKET_L,a,a+1,o,s,t);case 93:return new Et(At.BRACKET_R,a,a+1,o,s,t);case 123:return new Et(At.BRACE_L,a,a+1,o,s,t);case 124:return new Et(At.PIPE,a,a+1,o,s,t);case 125:return new Et(At.BRACE_R,a,a+1,o,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,r,i,n){var a=e.body,o=a.length,s=t+1,u=0;for(;s!==o&&null!==(u=Rt.call(a,s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new Et(At.NAME,t,s,r,i,n,Pt.call(a,t,s))}(r,a,o,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,r,i,n,a){var o=e.body,s=r,u=t,p=!1;45===s&&(s=Rt.call(o,++u));if(48===s){if((s=Rt.call(o,++u))>=48&&s<=57)throw St(e,u,"Invalid number, unexpected digit after 0: ".concat(xt(s),"."))}else u=wt(e,u,s),s=Rt.call(o,u);46===s&&(p=!0,s=Rt.call(o,++u),u=wt(e,u,s),s=Rt.call(o,u));69!==s&&101!==s||(p=!0,43!==(s=Rt.call(o,++u))&&45!==s||(s=Rt.call(o,++u)),u=wt(e,u,s));return new Et(p?At.FLOAT:At.INT,t,u,i,n,a,Pt.call(o,t,u))}(r,a,u,o,s,t);case 34:return 34===Rt.call(i,a+1)&&34===Rt.call(i,a+2)?function(e,t,r,i,n){var a=e.body,o=t+3,s=o,u=0,p="";for(;o=48&&a<=57){do{a=Rt.call(i,++n)}while(a>=48&&a<=57);return n}throw St(e,n,"Invalid number, expected digit but got: ".concat(xt(a),"."))}function _t(e,t,r,i){return Mt(e)<<12|Mt(t)<<8|Mt(r)<<4|Mt(i)}function Mt(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Et.prototype.toJSON=Et.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};var Lt=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"}),Ot=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 Bt(e,t){var r="string"===typeof e?new gt(e):e;if(!(r instanceof gt))throw new TypeError("Must provide Source. Received: ".concat(yt(r)));return function(e){var t=e.token;return{kind:Lt.DOCUMENT,definitions:Er(e,At.SOF,Gt,At.EOF),loc:vr(e,t)}}(Tt(r,t||{}))}function Ut(e){var t=Ar(e,At.NAME);return{kind:Lt.NAME,value:t.value,loc:vr(e,t)}}function Gt(e){if(Cr(e,At.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return Ft(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return ur(e);case"extend":return function(e){var t=e.lookahead();if(t.kind===At.NAME)switch(t.value){case"schema":return function(e){var t=e.token;Dr(e,"extend"),Dr(e,"schema");var r=nr(e,!0),i=Cr(e,At.BRACE_L)?Er(e,At.BRACE_L,mr,At.BRACE_R):[];if(0===r.length&&0===i.length)throw Rr(e);return{kind:Lt.SCHEMA_EXTENSION,directives:r,operationTypes:i,loc:vr(e,t)}}(e);case"scalar":return function(e){var t=e.token;Dr(e,"extend"),Dr(e,"scalar");var r=Ut(e),i=nr(e,!0);if(0===i.length)throw Rr(e);return{kind:Lt.SCALAR_TYPE_EXTENSION,name:r,directives:i,loc:vr(e,t)}}(e);case"type":return function(e){var t=e.token;Dr(e,"extend"),Dr(e,"type");var r=Ut(e),i=lr(e),n=nr(e,!0),a=dr(e);if(0===i.length&&0===n.length&&0===a.length)throw Rr(e);return{kind:Lt.OBJECT_TYPE_EXTENSION,name:r,interfaces:i,directives:n,fields:a,loc:vr(e,t)}}(e);case"interface":return function(e){var t=e.token;Dr(e,"extend"),Dr(e,"interface");var r=Ut(e),i=nr(e,!0),n=dr(e);if(0===i.length&&0===n.length)throw Rr(e);return{kind:Lt.INTERFACE_TYPE_EXTENSION,name:r,directives:i,fields:n,loc:vr(e,t)}}(e);case"union":return function(e){var t=e.token;Dr(e,"extend"),Dr(e,"union");var r=Ut(e),i=nr(e,!0),n=fr(e);if(0===i.length&&0===n.length)throw Rr(e);return{kind:Lt.UNION_TYPE_EXTENSION,name:r,directives:i,types:n,loc:vr(e,t)}}(e);case"enum":return function(e){var t=e.token;Dr(e,"extend"),Dr(e,"enum");var r=Ut(e),i=nr(e,!0),n=gr(e);if(0===i.length&&0===n.length)throw Rr(e);return{kind:Lt.ENUM_TYPE_EXTENSION,name:r,directives:i,values:n,loc:vr(e,t)}}(e);case"input":return function(e){var t=e.token;Dr(e,"extend"),Dr(e,"input");var r=Ut(e),i=nr(e,!0),n=Ir(e);if(0===i.length&&0===n.length)throw Rr(e);return{kind:Lt.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:i,fields:n,loc:vr(e,t)}}(e)}throw Rr(e,t)}(e)}else{if(Cr(e,At.BRACE_L))return Ft(e);if(pr(e))return ur(e)}throw Rr(e)}function Ft(e){if(Cr(e,At.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return Vt(e);case"fragment":return function(e){var t=e.token;if(Dr(e,"fragment"),e.options.experimentalFragmentVariables)return{kind:Lt.FRAGMENT_DEFINITION,name:Yt(e),variableDefinitions:zt(e),typeCondition:(Dr(e,"on"),sr(e)),directives:nr(e,!1),selectionSet:Ht(e),loc:vr(e,t)};return{kind:Lt.FRAGMENT_DEFINITION,name:Yt(e),typeCondition:(Dr(e,"on"),sr(e)),directives:nr(e,!1),selectionSet:Ht(e),loc:vr(e,t)}}(e)}else if(Cr(e,At.BRACE_L))return Vt(e);throw Rr(e)}function Vt(e){var t=e.token;if(Cr(e,At.BRACE_L))return{kind:Lt.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:Ht(e),loc:vr(e,t)};var r,i=jt(e);return Cr(e,At.NAME)&&(r=Ut(e)),{kind:Lt.OPERATION_DEFINITION,operation:i,name:r,variableDefinitions:zt(e),directives:nr(e,!1),selectionSet:Ht(e),loc:vr(e,t)}}function jt(e){var t=Ar(e,At.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw Rr(e,t)}function zt(e){return Cr(e,At.PAREN_L)?Er(e,At.PAREN_L,Kt,At.PAREN_R):[]}function Kt(e){var t=e.token;return e.options.experimentalVariableDefinitionDirectives?{kind:Lt.VARIABLE_DEFINITION,variable:Wt(e),type:(Ar(e,At.COLON),or(e)),defaultValue:kr(e,At.EQUALS)?$t(e,!0):void 0,directives:nr(e,!0),loc:vr(e,t)}:{kind:Lt.VARIABLE_DEFINITION,variable:Wt(e),type:(Ar(e,At.COLON),or(e)),defaultValue:kr(e,At.EQUALS)?$t(e,!0):void 0,loc:vr(e,t)}}function Wt(e){var t=e.token;return Ar(e,At.DOLLAR),{kind:Lt.VARIABLE,name:Ut(e),loc:vr(e,t)}}function Ht(e){var t=e.token;return{kind:Lt.SELECTION_SET,selections:Er(e,At.BRACE_L,Qt,At.BRACE_R),loc:vr(e,t)}}function Qt(e){return Cr(e,At.SPREAD)?function(e){var t,r=e.token;if(Ar(e,At.SPREAD),Cr(e,At.NAME)&&"on"!==e.token.value)return{kind:Lt.FRAGMENT_SPREAD,name:Yt(e),directives:nr(e,!1),loc:vr(e,r)};"on"===e.token.value&&(e.advance(),t=sr(e));return{kind:Lt.INLINE_FRAGMENT,typeCondition:t,directives:nr(e,!1),selectionSet:Ht(e),loc:vr(e,r)}}(e):function(e){var t,r,i=e.token,n=Ut(e);kr(e,At.COLON)?(t=n,r=Ut(e)):r=n;return{kind:Lt.FIELD,alias:t,name:r,arguments:Jt(e,!1),directives:nr(e,!1),selectionSet:Cr(e,At.BRACE_L)?Ht(e):void 0,loc:vr(e,i)}}(e)}function Jt(e,t){var r=t?Xt:Zt;return Cr(e,At.PAREN_L)?Er(e,At.PAREN_L,r,At.PAREN_R):[]}function Zt(e){var t=e.token;return{kind:Lt.ARGUMENT,name:Ut(e),value:(Ar(e,At.COLON),$t(e,!1)),loc:vr(e,t)}}function Xt(e){var t=e.token;return{kind:Lt.ARGUMENT,name:Ut(e),value:(Ar(e,At.COLON),tr(e)),loc:vr(e,t)}}function Yt(e){if("on"===e.token.value)throw Rr(e);return Ut(e)}function $t(e,t){var r=e.token;switch(r.kind){case At.BRACKET_L:return function(e,t){var r=e.token,i=t?tr:rr;return{kind:Lt.LIST,values:Pr(e,At.BRACKET_L,i,At.BRACKET_R),loc:vr(e,r)}}(e,t);case At.BRACE_L:return function(e,t){var r=e.token;Ar(e,At.BRACE_L);var i=[];for(;!kr(e,At.BRACE_R);)i.push(ir(e,t));return{kind:Lt.OBJECT,fields:i,loc:vr(e,r)}}(e,t);case At.INT:return e.advance(),{kind:Lt.INT,value:r.value,loc:vr(e,r)};case At.FLOAT:return e.advance(),{kind:Lt.FLOAT,value:r.value,loc:vr(e,r)};case At.STRING:case At.BLOCK_STRING:return er(e);case At.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:Lt.BOOLEAN,value:"true"===r.value,loc:vr(e,r)}):"null"===r.value?(e.advance(),{kind:Lt.NULL,loc:vr(e,r)}):(e.advance(),{kind:Lt.ENUM,value:r.value,loc:vr(e,r)});case At.DOLLAR:if(!t)return Wt(e)}throw Rr(e)}function er(e){var t=e.token;return e.advance(),{kind:Lt.STRING,value:t.value,block:t.kind===At.BLOCK_STRING,loc:vr(e,t)}}function tr(e){return $t(e,!0)}function rr(e){return $t(e,!1)}function ir(e,t){var r=e.token;return{kind:Lt.OBJECT_FIELD,name:Ut(e),value:(Ar(e,At.COLON),$t(e,t)),loc:vr(e,r)}}function nr(e,t){for(var r=[];Cr(e,At.AT);)r.push(ar(e,t));return r}function ar(e,t){var r=e.token;return Ar(e,At.AT),{kind:Lt.DIRECTIVE,name:Ut(e),arguments:Jt(e,t),loc:vr(e,r)}}function or(e){var t,r=e.token;return kr(e,At.BRACKET_L)?(t=or(e),Ar(e,At.BRACKET_R),t={kind:Lt.LIST_TYPE,type:t,loc:vr(e,r)}):t=sr(e),kr(e,At.BANG)?{kind:Lt.NON_NULL_TYPE,type:t,loc:vr(e,r)}:t}function sr(e){var t=e.token;return{kind:Lt.NAMED_TYPE,name:Ut(e),loc:vr(e,t)}}function ur(e){var t=pr(e)?e.lookahead():e.token;if(t.kind===At.NAME)switch(t.value){case"schema":return function(e){var t=e.token;Dr(e,"schema");var r=nr(e,!0),i=Er(e,At.BRACE_L,mr,At.BRACE_R);return{kind:Lt.SCHEMA_DEFINITION,directives:r,operationTypes:i,loc:vr(e,t)}}(e);case"scalar":return function(e){var t=e.token,r=cr(e);Dr(e,"scalar");var i=Ut(e),n=nr(e,!0);return{kind:Lt.SCALAR_TYPE_DEFINITION,description:r,name:i,directives:n,loc:vr(e,t)}}(e);case"type":return function(e){var t=e.token,r=cr(e);Dr(e,"type");var i=Ut(e),n=lr(e),a=nr(e,!0),o=dr(e);return{kind:Lt.OBJECT_TYPE_DEFINITION,description:r,name:i,interfaces:n,directives:a,fields:o,loc:vr(e,t)}}(e);case"interface":return function(e){var t=e.token,r=cr(e);Dr(e,"interface");var i=Ut(e),n=nr(e,!0),a=dr(e);return{kind:Lt.INTERFACE_TYPE_DEFINITION,description:r,name:i,directives:n,fields:a,loc:vr(e,t)}}(e);case"union":return function(e){var t=e.token,r=cr(e);Dr(e,"union");var i=Ut(e),n=nr(e,!0),a=fr(e);return{kind:Lt.UNION_TYPE_DEFINITION,description:r,name:i,directives:n,types:a,loc:vr(e,t)}}(e);case"enum":return function(e){var t=e.token,r=cr(e);Dr(e,"enum");var i=Ut(e),n=nr(e,!0),a=gr(e);return{kind:Lt.ENUM_TYPE_DEFINITION,description:r,name:i,directives:n,values:a,loc:vr(e,t)}}(e);case"input":return function(e){var t=e.token,r=cr(e);Dr(e,"input");var i=Ut(e),n=nr(e,!0),a=Ir(e);return{kind:Lt.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:i,directives:n,fields:a,loc:vr(e,t)}}(e);case"directive":return function(e){var t=e.token,r=cr(e);Dr(e,"directive"),Ar(e,At.AT);var i=Ut(e),n=hr(e);Dr(e,"on");var a=function(e){kr(e,At.PIPE);var t=[];do{t.push(Nr(e))}while(kr(e,At.PIPE));return t}(e);return{kind:Lt.DIRECTIVE_DEFINITION,description:r,name:i,arguments:n,locations:a,loc:vr(e,t)}}(e)}throw Rr(e,t)}function pr(e){return Cr(e,At.STRING)||Cr(e,At.BLOCK_STRING)}function cr(e){if(pr(e))return er(e)}function mr(e){var t=e.token,r=jt(e);Ar(e,At.COLON);var i=sr(e);return{kind:Lt.OPERATION_TYPE_DEFINITION,operation:r,type:i,loc:vr(e,t)}}function lr(e){var t=[];if("implements"===e.token.value){e.advance(),kr(e,At.AMP);do{t.push(sr(e))}while(kr(e,At.AMP)||e.options.allowLegacySDLImplementsInterfaces&&Cr(e,At.NAME))}return t}function dr(e){return e.options.allowLegacySDLEmptyFields&&Cr(e,At.BRACE_L)&&e.lookahead().kind===At.BRACE_R?(e.advance(),e.advance(),[]):Cr(e,At.BRACE_L)?Er(e,At.BRACE_L,yr,At.BRACE_R):[]}function yr(e){var t=e.token,r=cr(e),i=Ut(e),n=hr(e);Ar(e,At.COLON);var a=or(e),o=nr(e,!0);return{kind:Lt.FIELD_DEFINITION,description:r,name:i,arguments:n,type:a,directives:o,loc:vr(e,t)}}function hr(e){return Cr(e,At.PAREN_L)?Er(e,At.PAREN_L,br,At.PAREN_R):[]}function br(e){var t=e.token,r=cr(e),i=Ut(e);Ar(e,At.COLON);var n,a=or(e);kr(e,At.EQUALS)&&(n=tr(e));var o=nr(e,!0);return{kind:Lt.INPUT_VALUE_DEFINITION,description:r,name:i,type:a,defaultValue:n,directives:o,loc:vr(e,t)}}function fr(e){var t=[];if(kr(e,At.EQUALS)){kr(e,At.PIPE);do{t.push(sr(e))}while(kr(e,At.PIPE))}return t}function gr(e){return Cr(e,At.BRACE_L)?Er(e,At.BRACE_L,Sr,At.BRACE_R):[]}function Sr(e){var t=e.token,r=cr(e),i=Ut(e),n=nr(e,!0);return{kind:Lt.ENUM_VALUE_DEFINITION,description:r,name:i,directives:n,loc:vr(e,t)}}function Ir(e){return Cr(e,At.BRACE_L)?Er(e,At.BRACE_L,br,At.BRACE_R):[]}function Nr(e){var t=e.token,r=Ut(e);if(Ot.hasOwnProperty(r.value))return r;throw Rr(e,t)}function vr(e,t){if(!e.options.noLocation)return new Tr(t,e.lastToken,e.source)}function Tr(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function Cr(e,t){return e.token.kind===t}function kr(e,t){var r=e.token.kind===t;return r&&e.advance(),r}function Ar(e,t){var r=e.token;if(r.kind===t)return e.advance(),r;throw St(e.source,r.start,"Expected ".concat(t,", found ").concat(Dt(r)))}function Dr(e,t){var r=e.token;if(r.kind===At.NAME&&r.value===t)return e.advance(),r;throw St(e.source,r.start,'Expected "'.concat(t,'", found ').concat(Dt(r)))}function Rr(e,t){var r=t||e.token;return St(e.source,r.start,"Unexpected ".concat(Dt(r)))}function Pr(e,t,r,i){Ar(e,t);for(var n=[];!kr(e,i);)n.push(r(e));return n}function Er(e,t,r,i){Ar(e,t);for(var n=[r(e)];!kr(e,i);)n.push(r(e));return n}Tr.prototype.toJSON=Tr.prototype.inspect=function(){return{start:this.start,end:this.end}};var xr,qr=r(87),wr=r.n(qr),_r=function(){return(_r=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]=i;if("+"!==o&&o!==s)return!1}return i===n.length})(i,e)&&r.push(t)}));var i=JSON.parse(t);"object"===typeof i&&(i[si]=e),r.forEach((function(e){e.forEach((function(e){return e.next(i)}))}))}catch(n){ai.warn("Error handling message",n,t)}},t.prototype.subscribe=function(e,t){var r=this;void 0===t&&(t={});var i=[].concat(e);return ai.debug("Subscribing to topic(s)",i.join(",")),new Xr((function(e){var n;i.forEach((function(t){var i=r._topicObservers.get(t);i||(i=new Set,r._topicObservers.set(t,i)),i.add(e)}));var a=t.clientId,o=void 0===a?r.clientId:a,s=r._clientIdObservers.get(o);return s||(s=new Set),s.add(e),r._clientIdObservers.set(o,s),ri(r,void 0,void 0,(function(){var r,a,s,u;return ii(this,(function(p){switch(p.label){case 0:return void 0!==(r=t.url)?[3,2]:[4,this.endpoint];case 1:return s=p.sent(),[3,3];case 2:s=r,p.label=3;case 3:a=s,p.label=4;case 4:return p.trys.push([4,6,,7]),[4,this.connect(o,{url:a})];case 5:return n=p.sent(),i.forEach((function(e){n.subscribe(e)})),[3,7];case 6:return u=p.sent(),e.error(u),[3,7];case 7:return[2]}}))})),function(){return ai.debug("Unsubscribing from topic(s)",i.join(",")),n&&(r._clientIdObservers.get(o).delete(e),0===r._clientIdObservers.get(o).size&&(r.disconnect(o),r._clientIdObservers.delete(o)),i.forEach((function(t){var i=r._topicObservers.get(t)||new Set;i.delete(e),0===i.size&&(r._topicObservers.delete(t),n.isConnected()&&n.unsubscribe(t))}))),null}}))},t}(Yr.a),pi=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),ci=function(e,t,r,i){return new(r||(r=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(t){a(t)}}function s(e){try{u(i.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((i=i.apply(e,t||[])).next())}))},mi=function(e,t){var r,i,n,a,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]-1}));if(i){var n=i.client,a=i.url;e[n]||(e[n]={url:a,topics:new Set}),e[n].topics.add(t)}return e}),{})),[4,Promise.all(s.map((function(e){var t=e[0],r=e[1],n=r.url,a=r.topics;return ci(u,void 0,void 0,(function(){var e,r,o=this;return mi(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(t,{clientId:t,url:n})];case 2:return e=s.sent(),[3,4];case 3:return r=s.sent(),i.error({message:"Failed to connect",error:r}),i.complete(),[2,void 0];case 4:return a.forEach((function(t){e.isConnected()&&(e.subscribe(t),o._topicClient.set(t,e))})),[2,e]}}))}))})))];case 1:return p.sent(),[2]}}))})),function(){yi.debug("Unsubscribing from topic(s)",n.join(",")),n.forEach((function(e){var t=r._topicClient.get(e);t&&t.isConnected()&&(t.unsubscribe(e),r._topicClient.delete(e),Array.from(r._topicClient.values()).some((function(e){return e===t}))||r.disconnect(t.clientId)),r._topicObservers.delete(e)}))}}));return Xr.from(i).map((function(e){var t=r.getTopicForValue(e),i=r._topicAlias.get(t);return e.data=Object.entries(e.data).reduce((function(e,t){var r=t[0],n=t[1];return e[i||r]=n,e}),{}),e}))},t}(ui),bi=r(124),fi=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),gi=function(e,t,r,i){return new(r||(r=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(t){a(t)}}function s(e){try{u(i.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((i=i.apply(e,t||[])).next())}))},Si=function(e,t){var r,i,n,a,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]",e),null):t},e.prototype.removePluggable=function(e){this._convertPluggables=this._convertPluggables.filter((function(t){return t.getProviderName()!==e})),this._identifyPluggables=this._identifyPluggables.filter((function(t){return t.getProviderName()!==e})),this._interpretPluggables=this._interpretPluggables.filter((function(t){return t.getProviderName()!==e}))},e.prototype.configure=function(e){var t=this,r=e?e.predictions||e:{};r=Sn(Sn({},r),e),this._options=Object.assign({},this._options,r),Nn.debug("configure Predictions",this._options),this.getAllProviders().forEach((function(e){return t.configurePluggable(e)}))},e.prototype.interpret=function(e,t){return this.getPluggableToExecute(this._interpretPluggables,t).interpret(e)},e.prototype.convert=function(e,t){return this.getPluggableToExecute(this._convertPluggables,t).convert(e)},e.prototype.identify=function(e,t){return this.getPluggableToExecute(this._identifyPluggables,t).identify(e)},e.prototype.getPluggableToExecute=function(e,t){if(t&&t.providerName)return In(e).find((function(e){return e.getProviderName()===t.providerName}));if(1===e.length)return e[0];throw new Error("More than one or no providers are configured, Either specify a provider name or configure exactly one provider")},e.prototype.getAllProviders=function(){return In(this._convertPluggables,this._identifyPluggables,this._interpretPluggables)},e.prototype.configurePluggable=function(e){var t=Object.assign({},this._options.predictions,this._options[e.getCategory().toLowerCase()]);e.configure(t)},e.prototype.implementsConvertPluggable=function(e){return e&&"function"===typeof e.convert},e.prototype.implementsIdentifyPluggable=function(e){return e&&"function"===typeof e.identify},e.prototype.implementsInterpretPluggable=function(e){return e&&"function"===typeof e.interpret},e}(),Tn=r(125),Cn=r(40),kn=r(53),An=r(17),Dn=r(139);function Rn(e,t){if(e){var r={};return(t||Object.keys(e)).forEach((function(t){var i;if(e.hasOwnProperty(t)){var n=t.charAt(0).toLowerCase()+t.substr(1);Object.assign(r,((i={})[n]=e[t],i))}})),r}}function Pn(e,t){if(e)return e.map((function(e){return Rn(e,t)}))}function En(e){return new Promise((function(t,r){var i=new FileReader;i.onload=function(e){t(i.result)},i.onerror=function(e){r(e)};try{i.readAsArrayBuffer(e)}catch(n){r(n)}}))}function xn(e){if(e)return Rn(e.BoundingBox)}function qn(e){if(e)return Pn(e.Polygon)}function wn(e){var t={text:{fullText:"",words:[],lines:[],linesDetailed:[]}};if(0===e.length)return t;var r=Array(),i=Array(),n={};if(e.forEach((function(e){switch(e.BlockType){case"LINE":t.text.lines.push(e.Text),t.text.linesDetailed.push({text:e.Text,polygon:qn(e.Geometry),boundingBox:xn(e.Geometry),page:e.Page});break;case"WORD":t.text.fullText+=e.Text+" ",t.text.words.push({text:e.Text,polygon:qn(e.Geometry),boundingBox:xn(e.Geometry)}),n[e.Id]=e;break;case"SELECTION_ELEMENT":var a="SELECTED"===e.SelectionStatus;t.text.selections||(t.text.selections=[]),t.text.selections.push({selected:a,polygon:qn(e.Geometry),boundingBox:xn(e.Geometry)}),n[e.Id]=e;break;case"TABLE":r.push(e);break;case"KEY_VALUE_SET":i.push(e),n[e.Id]=e;break;default:n[e.Id]=e}})),t.text.fullText=t.text.fullText.substr(0,t.text.fullText.length-1),0!==r.length){var a=Array();r.forEach((function(e){a.push(function(e,t){var r;r=[],e.Relationships.forEach((function(e){e.Ids.forEach((function(e){var i=t[e],n=i.RowIndex-1,a=i.ColumnIndex-1,o=_n(i,t),s={text:o.text,boundingBox:xn(i.Geometry),polygon:qn(i.Geometry),selected:o.selected,rowSpan:i.RowSpan,columnSpan:i.ColumnSpan};r[n]||(r[n]=[]),r[n][a]=s}))}));var i=r.length,n=r[0].length;return{size:{rows:i,columns:n},table:r,boundingBox:xn(e.Geometry),polygon:qn(e.Geometry)}}(e,n))})),t.text.tables=a}if(0!==i.length){var o=Array();i.forEach((function(e){-1!==e.EntityTypes.indexOf("KEY")&&o.push(function(e,t){var r,i="",n="";return e.Relationships.forEach((function(a){if("CHILD"===a.Type){var o=_n(e,t);i=o.text}else"VALUE"===a.Type&&a.Ids.forEach((function(e){var i=_n(t[e],t);n=i.text,null!=i.selected&&(r=i.selected)}))})),{key:i,value:{text:n,selected:r},polygon:qn(e.Geometry),boundingBox:xn(e.Geometry)}}(e,n))})),t.text.keyValues=o}return t}function _n(e,t){var r,i="";return e.Relationships?(e.Relationships.forEach((function(e){e.Ids.forEach((function(e){var n=t[e];"WORD"===n.BlockType?i+=n.Text+" ":"SELECTION_ELEMENT"===n.BlockType&&(r="SELECTED"===n.SelectionStatus)}))})),{text:i=i.substr(0,i.length-1),selected:r}):{text:"",selected:void 0}}var Mn=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),Ln=function(){return(Ln=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]a.Blocks.length?r(i):r(wn(a.Blocks))}))}))):(f={Document:l,FeatureTypes:y},this.textract.analyzeDocument(f,(function(e,t){if(e)return n(e);var i=t.Blocks;r(wn(i))}))),[2]}}))}))}))},t.prototype.identifyLabels=function(e){var t=this;return new Promise((function(r,n){return On(t,void 0,void 0,(function(){var t,a,o,s,u,p,c,m,l,d,y,h;return Bn(this,(function(b){switch(b.label){case 0:return[4,i.e.get()];case 1:return(t=b.sent())?(a=this._config.identifyLabels,s=(o=void 0===a?{}:a).region,u=void 0===s?"":s,p=o.defaults,c=(void 0===p?{}:p).type,m=void 0===c?"LABELS":c,this.rekognition=new kn({region:u,credentials:t}),[4,this.configureSource(e.labels.source).then((function(e){l=e})).catch((function(e){return n(e)}))]):[2,n("No credentials")];case 2:return b.sent(),d={Image:l},y=[],"LABELS"!==(h=e.labels.type||m)&&"ALL"!==h||y.push(this.detectLabels(d)),"UNSAFE"!==h&&"ALL"!==h||y.push(this.detectModerationLabels(d)),Promise.all(y).then((function(e){var t={};e.forEach((function(e){t=Ln(Ln({},t),e)})),r(t)})).catch((function(e){return n(e)})),[2]}}))}))}))},t.prototype.detectLabels=function(e){var t=this;return new Promise((function(r,i){t.rekognition.detectLabels(e,(function(e,t){if(e)return i(e);if(!t.Labels)return r({labels:null});var n=t.Labels.map((function(e){var t=e.Instances?e.Instances.map((function(e){return Rn(e.BoundingBox)})):void 0;return{name:e.Name,boundingBoxes:t,metadata:{confidence:e.Confidence,parents:Pn(e.Parents)}}}));return r({labels:n})}))}))},t.prototype.detectModerationLabels=function(e){var t=this;return new Promise((function(r,i){t.rekognition.detectModerationLabels(e,(function(e,t){return e?i(e):0!==t.ModerationLabels.length?r({unsafe:"YES"}):r({unsafe:"NO"})}))}))},t.prototype.identifyEntities=function(e){var t=this;return new Promise((function(r,n){return On(t,void 0,void 0,(function(){var t,a,o,s,u,p,c,m,l,d,y,h,b,f,g,S,I,N,v,T,C,k=this;return Bn(this,(function(A){switch(A.label){case 0:return[4,i.e.get()];case 1:return(t=A.sent())?(a=this._config.identifyEntities,s=(o=void 0===a?{}:a).region,u=void 0===s?"":s,p=o.celebrityDetectionEnabled,c=void 0!==p&&p,m=o.defaults,d=(l=void 0===m?{}:m).collectionId,y=void 0===d?"":d,h=l.maxEntities,b=void 0===h?50:h,this.rekognition=new kn({region:u,credentials:t}),[4,this.configureSource(e.entities.source).then((function(e){return f=e})).catch((function(e){return n(e)}))]):[2,n("No credentials")];case 2:if(A.sent(),g={Image:f},Object(An.d)(e.entities)&&e.entities.celebrityDetection){if(!c)return[2,n("Error: You have to enable celebrity detection first")];this.rekognition.recognizeCelebrities(g,(function(e,t){if(e)return n(e);var i=t.CelebrityFaces.map((function(e){return{boundingBox:Rn(e.Face.BoundingBox),landmarks:Pn(e.Face.Landmarks),metadata:Ln(Ln({},Rn(e,["Id","Name","Urls"])),{pose:Rn(e.Face.Pose)})}}));r({entities:i})}))}else Object(An.e)(e.entities)&&e.entities.collection?(S=e.entities,I=S.collectionId,N=void 0===I?y:I,v=S.maxEntities,T=void 0===v?b:v,C=Ln(Ln({},g),{CollectionId:N,MaxFaces:T}),this.rekognition.searchFacesByImage(C,(function(e,t){if(e)return n(e);var i=t.FaceMatches.map((function(e){return{boundingBox:Rn(e.Face.BoundingBox),metadata:{externalImageId:k.decodeExternalImageId(e.Face.ExternalImageId),similarity:e.Similarity}}}));r({entities:i})}))):this.rekognition.detectFaces(g,(function(e,t){if(e)return n(e);var i=t.FaceDetails.map((function(e){var t=["Smile","Eyeglasses","Sunglasses","Gender","Beard","Mustache","EyesOpen","MouthOpen"],r=Rn(e,t);return e.Emotions&&(r.emotions=e.Emotions.map((function(e){return e.Type}))),{boundingBox:Rn(e.BoundingBox),landmarks:Pn(e.Landmarks),ageRange:Rn(e.AgeRange),attributes:Rn(e,t),metadata:{confidence:e.Confidence,pose:Rn(e.Pose)}}}));r({entities:i})}));return[2]}}))}))}))},t.prototype.decodeExternalImageId=function(e){return(""+e).replace(/::/g,"/")},t}(Cn.a),Gn=r(140),Fn=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),Vn=function(e,t,r,i){return new(r||(r=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(t){a(t)}}function s(e){try{u(i.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((i=i.apply(e,t||[])).next())}))},jn=function(e,t){var r,i,n,a,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]=e.length)return t.push(null);var n=r+i;n>e.length&&(n=e.length),t.push(e.slice(r,n)),r=n},t},concat:function(e){var t,r,i=0,n=0;for(r=0;r>>8^t[255&(r^e.readUInt8(i))]}return(-1^r)>>>0},hmac:function(e,t,r,i){return r||(r="binary"),"buffer"===r&&(r=void 0),i||(i="sha256"),"string"===typeof t&&(t=a.buffer.toBuffer(t)),a.crypto.lib.createHmac(i,e).update(t).digest(r)},md5:function(e,t,r){return a.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return a.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,i){var n=a.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"===typeof t&&(t=a.buffer.toBuffer(t));var o=a.arraySliceFn(t),s=a.Buffer.isBuffer(t);if(a.isBrowser()&&"undefined"!==typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),i&&"object"===typeof t&&"function"===typeof t.on&&!s)t.on("data",(function(e){n.update(e)})),t.on("error",(function(e){i(e)})),t.on("end",(function(){i(null,n.digest(r))}));else{if(!i||!o||s||"undefined"===typeof FileReader){a.isBrowser()&&"object"===typeof t&&!s&&(t=new a.Buffer(new Uint8Array(t)));var u=n.update(t).digest(r);return i&&i(null,u),u}var p=0,c=new FileReader;c.onerror=function(){i(new Error("Failed to read data."))},c.onload=function(){var e=new a.Buffer(new Uint8Array(c.result));n.update(e),p+=e.length,c._continueReading()},c._continueReading=function(){if(p>=t.size)i(null,n.digest(r));else{var e=p+524288;e>t.size&&(e=t.size),c.readAsArrayBuffer(o.call(t,p,e))}},c._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),n.config.isClockSkewed},applyClockOffset:function(e){e&&(n.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&n&&n.config&&(t=n.config.getPromisesDependency()),void 0===t&&"undefined"!==typeof Promise&&(t=Promise),"function"!==typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var i=0;i=500||429===i});n&&o.retryable&&(o.retryAfter=n),u(o)}}))}),u)};n.util.defer(p)},uuid:{v4:function(){return r(197).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,i=t.service.api.operations[r].output||{};i.payload&&e.data[i.payload]&&(e.data[i.payload]=e.data[i.payload].toString())},defer:function(e){"object"===typeof t&&"function"===typeof t.nextTick?t.nextTick(e):"function"===typeof i?i(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){var r={},i={};if(Object({NODE_ENV:"production",PUBLIC_URL:""})[a.configOptInEnv])i=e.loadFrom({isConfig:!0,filename:Object({NODE_ENV:"production",PUBLIC_URL:""})[a.sharedConfigFileEnv]});for(var n=e.loadFrom({filename:t||Object({NODE_ENV:"production",PUBLIC_URL:""})[a.configOptInEnv]&&Object({NODE_ENV:"production",PUBLIC_URL:""})[a.sharedCredentialsFileEnv]}),o=0,s=Object.keys(i);o"']/g,B=RegExp(L.source),U=RegExp(O.source),G=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,H=RegExp(W.source),Q=/^\s+|\s+$/g,J=/^\s+/,Z=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Y=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,re=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ie=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,pe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,me=/['\n\r\u2028\u2029\\]/g,le="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ye="[\\ud800-\\udfff]",he="["+de+"]",be="["+le+"]",fe="\\d+",ge="[\\u2700-\\u27bf]",Se="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ie="[^\\ud800-\\udfff"+de+fe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ne="\\ud83c[\\udffb-\\udfff]",ve="[^\\ud800-\\udfff]",Te="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",ke="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ae="(?:"+Se+"|"+Ie+")",De="(?:"+ke+"|"+Ie+")",Re="(?:"+be+"|"+Ne+")"+"?",Pe="[\\ufe0e\\ufe0f]?"+Re+("(?:\\u200d(?:"+[ve,Te,Ce].join("|")+")[\\ufe0e\\ufe0f]?"+Re+")*"),Ee="(?:"+[ge,Te,Ce].join("|")+")"+Pe,xe="(?:"+[ve+be+"?",be,Te,Ce,ye].join("|")+")",qe=RegExp("['\u2019]","g"),we=RegExp(be,"g"),_e=RegExp(Ne+"(?="+Ne+")|"+xe+Pe,"g"),Me=RegExp([ke+"?"+Se+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[he,ke,"$"].join("|")+")",De+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[he,ke+Ae,"$"].join("|")+")",ke+"?"+Ae+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ke+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fe,Ee].join("|"),"g"),Le=RegExp("[\\u200d\\ud800-\\udfff"+le+"\\ufe0e\\ufe0f]"),Oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Be=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ue=-1,Ge={};Ge[k]=Ge[A]=Ge[D]=Ge[R]=Ge[P]=Ge[E]=Ge["[object Uint8ClampedArray]"]=Ge[x]=Ge[q]=!0,Ge[u]=Ge[p]=Ge[T]=Ge[c]=Ge[C]=Ge[m]=Ge[l]=Ge[d]=Ge[h]=Ge[b]=Ge[f]=Ge[g]=Ge[S]=Ge[I]=Ge[v]=!1;var Fe={};Fe[u]=Fe[p]=Fe[T]=Fe[C]=Fe[c]=Fe[m]=Fe[k]=Fe[A]=Fe[D]=Fe[R]=Fe[P]=Fe[h]=Fe[b]=Fe[f]=Fe[g]=Fe[S]=Fe[I]=Fe[N]=Fe[E]=Fe["[object Uint8ClampedArray]"]=Fe[x]=Fe[q]=!0,Fe[l]=Fe[d]=Fe[v]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},je=parseFloat,ze=parseInt,Ke="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,He=Ke||We||Function("return this")(),Qe=t&&!t.nodeType&&t,Je=Qe&&"object"==typeof i&&i&&!i.nodeType&&i,Ze=Je&&Je.exports===Qe,Xe=Ze&&Ke.process,Ye=function(){try{var e=Je&&Je.require&&Je.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(t){}}(),$e=Ye&&Ye.isArrayBuffer,et=Ye&&Ye.isDate,tt=Ye&&Ye.isMap,rt=Ye&&Ye.isRegExp,it=Ye&&Ye.isSet,nt=Ye&&Ye.isTypedArray;function at(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ot(e,t,r,i){for(var n=-1,a=null==e?0:e.length;++n-1}function lt(e,t,r){for(var i=-1,n=null==e?0:e.length;++i-1;);return r}function _t(e,t){for(var r=e.length;r--&&Nt(t,e[r],0)>-1;);return r}function Mt(e,t){for(var r=e.length,i=0;r--;)e[r]===t&&++i;return i}var Lt=At({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Ot=At({"&":"&","<":"<",">":">",'"':""","'":"'"});function Bt(e){return"\\"+Ve[e]}function Ut(e){return Le.test(e)}function Gt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,i){r[++t]=[i,e]})),r}function Ft(e,t){return function(r){return e(t(r))}}function Vt(e,t){for(var r=-1,i=e.length,n=0,a=[];++r",""":'"',"'":"'"});var Qt=function e(t){var r=(t=null==t?He:Qt.defaults(He.Object(),t,Qt.pick(He,Be))).Array,i=t.Date,n=t.Error,le=t.Function,de=t.Math,ye=t.Object,he=t.RegExp,be=t.String,fe=t.TypeError,ge=r.prototype,Se=le.prototype,Ie=ye.prototype,Ne=t["__core-js_shared__"],ve=Se.toString,Te=Ie.hasOwnProperty,Ce=0,ke=function(){var e=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ae=Ie.toString,De=ve.call(ye),Re=He._,Pe=he("^"+ve.call(Te).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=Ze?t.Buffer:void 0,xe=t.Symbol,_e=t.Uint8Array,Le=Ee?Ee.allocUnsafe:void 0,Ve=Ft(ye.getPrototypeOf,ye),Ke=ye.create,We=Ie.propertyIsEnumerable,Qe=ge.splice,Je=xe?xe.isConcatSpreadable:void 0,Xe=xe?xe.iterator:void 0,Ye=xe?xe.toStringTag:void 0,gt=function(){try{var e=Yn(ye,"defineProperty");return e({},"",{}),e}catch(t){}}(),At=t.clearTimeout!==He.clearTimeout&&t.clearTimeout,Jt=i&&i.now!==He.Date.now&&i.now,Zt=t.setTimeout!==He.setTimeout&&t.setTimeout,Xt=de.ceil,Yt=de.floor,$t=ye.getOwnPropertySymbols,er=Ee?Ee.isBuffer:void 0,tr=t.isFinite,rr=ge.join,ir=Ft(ye.keys,ye),nr=de.max,ar=de.min,or=i.now,sr=t.parseInt,ur=de.random,pr=ge.reverse,cr=Yn(t,"DataView"),mr=Yn(t,"Map"),lr=Yn(t,"Promise"),dr=Yn(t,"Set"),yr=Yn(t,"WeakMap"),hr=Yn(ye,"create"),br=yr&&new yr,fr={},gr=ka(cr),Sr=ka(mr),Ir=ka(lr),Nr=ka(dr),vr=ka(yr),Tr=xe?xe.prototype:void 0,Cr=Tr?Tr.valueOf:void 0,kr=Tr?Tr.toString:void 0;function Ar(e){if(jo(e)&&!qo(e)&&!(e instanceof Er)){if(e instanceof Pr)return e;if(Te.call(e,"__wrapped__"))return Aa(e)}return new Pr(e)}var Dr=function(){function e(){}return function(t){if(!Vo(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Rr(){}function Pr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function xr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Qr(e,t,r,i,n,a){var o,s=1&t,p=2&t,l=4&t;if(r&&(o=n?r(e,i,n,a):r(e)),void 0!==o)return o;if(!Vo(e))return e;var v=qo(e);if(v){if(o=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Te.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!s)return bn(e,o)}else{var w=ta(e),_=w==d||w==y;if(Lo(e))return cn(e,s);if(w==f||w==u||_&&!n){if(o=p||_?{}:ia(e),!s)return p?function(e,t){return fn(e,ea(e),t)}(e,function(e,t){return e&&fn(t,Is(t),e)}(o,e)):function(e,t){return fn(e,$n(e),t)}(e,zr(o,e))}else{if(!Fe[w])return n?e:{};o=function(e,t,r){var i=e.constructor;switch(t){case T:return mn(e);case c:case m:return new i(+e);case C:return function(e,t){var r=t?mn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case k:case A:case D:case R:case P:case E:case"[object Uint8ClampedArray]":case x:case q:return ln(e,r);case h:return new i;case b:case I:return new i(e);case g:return function(e){var t=new e.constructor(e.source,ie.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return new i;case N:return n=e,Cr?ye(Cr.call(n)):{}}var n}(e,w,s)}}a||(a=new Mr);var M=a.get(e);if(M)return M;a.set(e,o),Qo(e)?e.forEach((function(i){o.add(Qr(i,t,r,i,e,a))})):zo(e)&&e.forEach((function(i,n){o.set(n,Qr(i,t,r,n,e,a))}));var L=v?void 0:(l?p?Kn:zn:p?Is:Ss)(e);return st(L||e,(function(i,n){L&&(i=e[n=i]),Fr(o,n,Qr(i,t,r,n,e,a))})),o}function Jr(e,t,r){var i=r.length;if(null==e)return!i;for(e=ye(e);i--;){var n=r[i],a=t[n],o=e[n];if(void 0===o&&!(n in e)||!a(o))return!1}return!0}function Zr(e,t,r){if("function"!=typeof e)throw new fe(a);return ga((function(){e.apply(void 0,r)}),t)}function Xr(e,t,r,i){var n=-1,a=mt,o=!0,s=e.length,u=[],p=t.length;if(!s)return u;r&&(t=dt(t,Et(r))),i?(a=lt,o=!1):t.length>=200&&(a=qt,o=!1,t=new _r(t));e:for(;++n-1},qr.prototype.set=function(e,t){var r=this.__data__,i=Vr(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new xr,map:new(mr||qr),string:new xr}},wr.prototype.delete=function(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Zn(this,e).get(e)},wr.prototype.has=function(e){return Zn(this,e).has(e)},wr.prototype.set=function(e,t){var r=Zn(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},_r.prototype.add=_r.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_r.prototype.has=function(e){return this.__data__.has(e)},Mr.prototype.clear=function(){this.__data__=new qr,this.size=0},Mr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Mr.prototype.get=function(e){return this.__data__.get(e)},Mr.prototype.has=function(e){return this.__data__.has(e)},Mr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof qr){var i=r.__data__;if(!mr||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new wr(i)}return r.set(e,t),this.size=r.size,this};var Yr=In(oi),$r=In(si,!0);function ei(e,t){var r=!0;return Yr(e,(function(e,i,n){return r=!!t(e,i,n)})),r}function ti(e,t,r){for(var i=-1,n=e.length;++i0&&r(s)?t>1?ii(s,t-1,r,i,n):yt(n,s):i||(n[n.length]=s)}return n}var ni=Nn(),ai=Nn(!0);function oi(e,t){return e&&ni(e,t,Ss)}function si(e,t){return e&&ai(e,t,Ss)}function ui(e,t){return ct(t,(function(t){return Uo(e[t])}))}function pi(e,t){for(var r=0,i=(t=on(t,e)).length;null!=e&&rt}function di(e,t){return null!=e&&Te.call(e,t)}function yi(e,t){return null!=e&&t in ye(e)}function hi(e,t,i){for(var n=i?lt:mt,a=e[0].length,o=e.length,s=o,u=r(o),p=1/0,c=[];s--;){var m=e[s];s&&t&&(m=dt(m,Et(t))),p=ar(m.length,p),u[s]=!i&&(t||a>=120&&m.length>=120)?new _r(s&&m):void 0}m=e[0];var l=-1,d=u[0];e:for(;++l=s)return u;var p=r[i];return u*("desc"==p?-1:1)}}return e.index-t.index}(e,t,r)}))}function xi(e,t,r){for(var i=-1,n=t.length,a={};++i-1;)s!==e&&Qe.call(s,u,1),Qe.call(e,u,1);return e}function wi(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==a){var a=n;aa(n)?Qe.call(e,n,1):Xi(e,n)}}return e}function _i(e,t){return e+Yt(ur()*(t-e+1))}function Mi(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=Yt(t/2))&&(e+=e)}while(t);return r}function Li(e,t){return Sa(da(e,t,Ks),e+"")}function Oi(e){return Or(Rs(e))}function Bi(e,t){var r=Rs(e);return va(r,Hr(t,0,r.length))}function Ui(e,t,r,i){if(!Vo(e))return e;for(var n=-1,a=(t=on(t,e)).length,o=a-1,s=e;null!=s&&++na?0:a+t),(i=i>a?a:i)<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var o=r(a);++n>>1,o=e[a];null!==o&&!Zo(o)&&(r?o<=t:o=200){var p=t?null:Ln(e);if(p)return jt(p);o=!1,n=qt,u=new _r}else u=t?[]:s;e:for(;++i=i?e:ji(e,t,r)}var pn=At||function(e){return He.clearTimeout(e)};function cn(e,t){if(t)return e.slice();var r=e.length,i=Le?Le(r):new e.constructor(r);return e.copy(i),i}function mn(e){var t=new e.constructor(e.byteLength);return new _e(t).set(new _e(e)),t}function ln(e,t){var r=t?mn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function dn(e,t){if(e!==t){var r=void 0!==e,i=null===e,n=e===e,a=Zo(e),o=void 0!==t,s=null===t,u=t===t,p=Zo(t);if(!s&&!p&&!a&&e>t||a&&o&&u&&!s&&!p||i&&o&&u||!r&&u||!n)return 1;if(!i&&!a&&!p&&e1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(n--,a):void 0,o&&oa(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),t=ye(t);++i-1?n[a?t[o]:o]:void 0}}function An(e){return jn((function(t){var r=t.length,i=r,n=Pr.prototype.thru;for(e&&t.reverse();i--;){var o=t[i];if("function"!=typeof o)throw new fe(a);if(n&&!s&&"wrapper"==Hn(o))var s=new Pr([],!0)}for(i=s?i:r;++i1&&S.reverse(),m&&ps))return!1;var p=a.get(e);if(p&&a.get(t))return p==t;var c=-1,m=!0,l=2&r?new _r:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return st(s,(function(r){var i="_."+r[0];t&r[1]&&!mt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(Y);return t?t[1].split($):[]}(i),r)))}function Na(e){var t=0,r=0;return function(){var i=or(),n=16-(i-r);if(r=i,n>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function va(e,t){var r=-1,i=e.length,n=i-1;for(t=void 0===t?i:t;++r1?e[t-1]:void 0;return r="function"==typeof r?(e.pop(),r):void 0,Wa(e,r)}));function $a(e){var t=Ar(e);return t.__chain__=!0,t}function eo(e,t){return t(e)}var to=jn((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,n=function(t){return Wr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Er&&aa(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:eo,args:[n],thisArg:void 0}),new Pr(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(n)}));var ro=gn((function(e,t,r){Te.call(e,r)?++e[r]:Kr(e,r,1)}));var io=kn(Ea),no=kn(xa);function ao(e,t){return(qo(e)?st:Yr)(e,Jn(t,3))}function oo(e,t){return(qo(e)?ut:$r)(e,Jn(t,3))}var so=gn((function(e,t,r){Te.call(e,r)?e[r].push(t):Kr(e,r,[t])}));var uo=Li((function(e,t,i){var n=-1,a="function"==typeof t,o=_o(e)?r(e.length):[];return Yr(e,(function(e){o[++n]=a?at(t,e,i):bi(e,t,i)})),o})),po=gn((function(e,t,r){Kr(e,r,t)}));function co(e,t){return(qo(e)?dt:ki)(e,Jn(t,3))}var mo=gn((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var lo=Li((function(e,t){if(null==e)return[];var r=t.length;return r>1&&oa(e,t[0],t[1])?t=[]:r>2&&oa(t[0],t[1],t[2])&&(t=[t[0]]),Ei(e,ii(t,1),[])})),yo=Jt||function(){return He.Date.now()};function ho(e,t,r){return t=r?void 0:t,Bn(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function bo(e,t){var r;if("function"!=typeof t)throw new fe(a);return e=rs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}var fo=Li((function(e,t,r){var i=1;if(r.length){var n=Vt(r,Qn(fo));i|=32}return Bn(e,i,t,r,n)})),go=Li((function(e,t,r){var i=3;if(r.length){var n=Vt(r,Qn(go));i|=32}return Bn(t,i,e,r,n)}));function So(e,t,r){var i,n,o,s,u,p,c=0,m=!1,l=!1,d=!0;if("function"!=typeof e)throw new fe(a);function y(t){var r=i,a=n;return i=n=void 0,c=t,s=e.apply(a,r)}function h(e){return c=e,u=ga(f,t),m?y(e):s}function b(e){var r=e-p;return void 0===p||r>=t||r<0||l&&e-c>=o}function f(){var e=yo();if(b(e))return g(e);u=ga(f,function(e){var r=t-(e-p);return l?ar(r,o-(e-c)):r}(e))}function g(e){return u=void 0,d&&i?y(e):(i=n=void 0,s)}function S(){var e=yo(),r=b(e);if(i=arguments,n=this,p=e,r){if(void 0===u)return h(p);if(l)return pn(u),u=ga(f,t),y(p)}return void 0===u&&(u=ga(f,t)),s}return t=ns(t)||0,Vo(r)&&(m=!!r.leading,o=(l="maxWait"in r)?nr(ns(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d),S.cancel=function(){void 0!==u&&pn(u),c=0,i=p=n=u=void 0},S.flush=function(){return void 0===u?s:g(yo())},S}var Io=Li((function(e,t){return Zr(e,1,t)})),No=Li((function(e,t,r){return Zr(e,ns(t)||0,r)}));function vo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new fe(a);var r=function r(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var o=e.apply(this,i);return r.cache=a.set(n,o)||a,o};return r.cache=new(vo.Cache||wr),r}function To(e){if("function"!=typeof e)throw new fe(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}vo.Cache=wr;var Co=sn((function(e,t){var r=(t=1==t.length&&qo(t[0])?dt(t[0],Et(Jn())):dt(ii(t,1),Et(Jn()))).length;return Li((function(i){for(var n=-1,a=ar(i.length,r);++n=t})),xo=fi(function(){return arguments}())?fi:function(e){return jo(e)&&Te.call(e,"callee")&&!We.call(e,"callee")},qo=r.isArray,wo=$e?Et($e):function(e){return jo(e)&&mi(e)==T};function _o(e){return null!=e&&Fo(e.length)&&!Uo(e)}function Mo(e){return jo(e)&&_o(e)}var Lo=er||nu,Oo=et?Et(et):function(e){return jo(e)&&mi(e)==m};function Bo(e){if(!jo(e))return!1;var t=mi(e);return t==l||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wo(e)}function Uo(e){if(!Vo(e))return!1;var t=mi(e);return t==d||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Go(e){return"number"==typeof e&&e==rs(e)}function Fo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Vo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function jo(e){return null!=e&&"object"==typeof e}var zo=tt?Et(tt):function(e){return jo(e)&&ta(e)==h};function Ko(e){return"number"==typeof e||jo(e)&&mi(e)==b}function Wo(e){if(!jo(e)||mi(e)!=f)return!1;var t=Ve(e);if(null===t)return!0;var r=Te.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ve.call(r)==De}var Ho=rt?Et(rt):function(e){return jo(e)&&mi(e)==g};var Qo=it?Et(it):function(e){return jo(e)&&ta(e)==S};function Jo(e){return"string"==typeof e||!qo(e)&&jo(e)&&mi(e)==I}function Zo(e){return"symbol"==typeof e||jo(e)&&mi(e)==N}var Xo=nt?Et(nt):function(e){return jo(e)&&Fo(e.length)&&!!Ge[mi(e)]};var Yo=wn(Ci),$o=wn((function(e,t){return e<=t}));function es(e){if(!e)return[];if(_o(e))return Jo(e)?Wt(e):bn(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=ta(e);return(t==h?Gt:t==S?jt:Rs)(e)}function ts(e){return e?(e=ns(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function rs(e){var t=ts(e),r=t%1;return t===t?r?t-r:t:0}function is(e){return e?Hr(rs(e),0,4294967295):0}function ns(e){if("number"==typeof e)return e;if(Zo(e))return NaN;if(Vo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Vo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Q,"");var r=ae.test(e);return r||se.test(e)?ze(e.slice(2),r?2:8):ne.test(e)?NaN:+e}function as(e){return fn(e,Is(e))}function os(e){return null==e?"":Ji(e)}var ss=Sn((function(e,t){if(ca(t)||_o(t))fn(t,Ss(t),e);else for(var r in t)Te.call(t,r)&&Fr(e,r,t[r])})),us=Sn((function(e,t){fn(t,Is(t),e)})),ps=Sn((function(e,t,r,i){fn(t,Is(t),e,i)})),cs=Sn((function(e,t,r,i){fn(t,Ss(t),e,i)})),ms=jn(Wr);var ls=Li((function(e,t){e=ye(e);var r=-1,i=t.length,n=i>2?t[2]:void 0;for(n&&oa(t[0],t[1],n)&&(i=1);++r1),t})),fn(e,Kn(e),r),i&&(r=Qr(r,7,Fn));for(var n=t.length;n--;)Xi(r,t[n]);return r}));var Cs=jn((function(e,t){return null==e?{}:function(e,t){return xi(e,t,(function(t,r){return hs(e,r)}))}(e,t)}));function ks(e,t){if(null==e)return{};var r=dt(Kn(e),(function(e){return[e]}));return t=Jn(t),xi(e,r,(function(e,r){return t(e,r[0])}))}var As=On(Ss),Ds=On(Is);function Rs(e){return null==e?[]:xt(e,Ss(e))}var Ps=Tn((function(e,t,r){return t=t.toLowerCase(),e+(r?Es(t):t)}));function Es(e){return Bs(os(e).toLowerCase())}function xs(e){return(e=os(e))&&e.replace(pe,Lt).replace(we,"")}var qs=Tn((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),ws=Tn((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),_s=vn("toLowerCase");var Ms=Tn((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Ls=Tn((function(e,t,r){return e+(r?" ":"")+Bs(t)}));var Os=Tn((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Bs=vn("toUpperCase");function Us(e,t,r){return e=os(e),void 0===(t=r?void 0:t)?function(e){return Oe.test(e)}(e)?function(e){return e.match(Me)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Gs=Li((function(e,t){try{return at(e,void 0,t)}catch(r){return Bo(r)?r:new n(r)}})),Fs=jn((function(e,t){return st(t,(function(t){t=Ca(t),Kr(e,t,fo(e[t],e))})),e}));function Vs(e){return function(){return e}}var js=An(),zs=An(!0);function Ks(e){return e}function Ws(e){return Ni("function"==typeof e?e:Qr(e,1))}var Hs=Li((function(e,t){return function(r){return bi(r,e,t)}})),Qs=Li((function(e,t){return function(r){return bi(e,r,t)}}));function Js(e,t,r){var i=Ss(t),n=ui(t,i);null!=r||Vo(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=ui(t,Ss(t)));var a=!(Vo(r)&&"chain"in r)||!!r.chain,o=Uo(e);return st(n,(function(r){var i=t[r];e[r]=i,o&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__),n=r.__actions__=bn(this.__actions__);return n.push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,yt([this.value()],arguments))})})),e}function Zs(){}var Xs=En(dt),Ys=En(pt),$s=En(ft);function eu(e){return sa(e)?kt(Ca(e)):function(e){return function(t){return pi(t,e)}}(e)}var tu=qn(),ru=qn(!0);function iu(){return[]}function nu(){return!1}var au=Pn((function(e,t){return e+t}),0),ou=Mn("ceil"),su=Pn((function(e,t){return e/t}),1),uu=Mn("floor");var pu=Pn((function(e,t){return e*t}),1),cu=Mn("round"),mu=Pn((function(e,t){return e-t}),0);return Ar.after=function(e,t){if("function"!=typeof t)throw new fe(a);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},Ar.ary=ho,Ar.assign=ss,Ar.assignIn=us,Ar.assignInWith=ps,Ar.assignWith=cs,Ar.at=ms,Ar.before=bo,Ar.bind=fo,Ar.bindAll=Fs,Ar.bindKey=go,Ar.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qo(e)?e:[e]},Ar.chain=$a,Ar.chunk=function(e,t,i){t=(i?oa(e,t,i):void 0===t)?1:nr(rs(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var a=0,o=0,s=r(Xt(n/t));an?0:n+r),(i=void 0===i||i>n?n:rs(i))<0&&(i+=n),i=r>i?0:is(i);r>>0)?(e=os(e))&&("string"==typeof t||null!=t&&!Ho(t))&&!(t=Ji(t))&&Ut(e)?un(Wt(e),0,r):e.split(t,r):[]},Ar.spread=function(e,t){if("function"!=typeof e)throw new fe(a);return t=null==t?0:nr(rs(t),0),Li((function(r){var i=r[t],n=un(r,0,t);return i&&yt(n,i),at(e,this,n)}))},Ar.tail=function(e){var t=null==e?0:e.length;return t?ji(e,1,t):[]},Ar.take=function(e,t,r){return e&&e.length?ji(e,0,(t=r||void 0===t?1:rs(t))<0?0:t):[]},Ar.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ji(e,(t=i-(t=r||void 0===t?1:rs(t)))<0?0:t,i):[]},Ar.takeRightWhile=function(e,t){return e&&e.length?$i(e,Jn(t,3),!1,!0):[]},Ar.takeWhile=function(e,t){return e&&e.length?$i(e,Jn(t,3)):[]},Ar.tap=function(e,t){return t(e),e},Ar.throttle=function(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new fe(a);return Vo(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),So(e,t,{leading:i,maxWait:t,trailing:n})},Ar.thru=eo,Ar.toArray=es,Ar.toPairs=As,Ar.toPairsIn=Ds,Ar.toPath=function(e){return qo(e)?dt(e,Ca):Zo(e)?[e]:bn(Ta(os(e)))},Ar.toPlainObject=as,Ar.transform=function(e,t,r){var i=qo(e),n=i||Lo(e)||Xo(e);if(t=Jn(t,4),null==r){var a=e&&e.constructor;r=n?i?new a:[]:Vo(e)&&Uo(a)?Dr(Ve(e)):{}}return(n?st:oi)(e,(function(e,i,n){return t(r,e,i,n)})),r},Ar.unary=function(e){return ho(e,1)},Ar.union=Va,Ar.unionBy=ja,Ar.unionWith=za,Ar.uniq=function(e){return e&&e.length?Zi(e):[]},Ar.uniqBy=function(e,t){return e&&e.length?Zi(e,Jn(t,2)):[]},Ar.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zi(e,void 0,t):[]},Ar.unset=function(e,t){return null==e||Xi(e,t)},Ar.unzip=Ka,Ar.unzipWith=Wa,Ar.update=function(e,t,r){return null==e?e:Yi(e,t,an(r))},Ar.updateWith=function(e,t,r,i){return i="function"==typeof i?i:void 0,null==e?e:Yi(e,t,an(r),i)},Ar.values=Rs,Ar.valuesIn=function(e){return null==e?[]:xt(e,Is(e))},Ar.without=Ha,Ar.words=Us,Ar.wrap=function(e,t){return ko(an(t),e)},Ar.xor=Qa,Ar.xorBy=Ja,Ar.xorWith=Za,Ar.zip=Xa,Ar.zipObject=function(e,t){return rn(e||[],t||[],Fr)},Ar.zipObjectDeep=function(e,t){return rn(e||[],t||[],Ui)},Ar.zipWith=Ya,Ar.entries=As,Ar.entriesIn=Ds,Ar.extend=us,Ar.extendWith=ps,Js(Ar,Ar),Ar.add=au,Ar.attempt=Gs,Ar.camelCase=Ps,Ar.capitalize=Es,Ar.ceil=ou,Ar.clamp=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=ns(r))===r?r:0),void 0!==t&&(t=(t=ns(t))===t?t:0),Hr(ns(e),t,r)},Ar.clone=function(e){return Qr(e,4)},Ar.cloneDeep=function(e){return Qr(e,5)},Ar.cloneDeepWith=function(e,t){return Qr(e,5,t="function"==typeof t?t:void 0)},Ar.cloneWith=function(e,t){return Qr(e,4,t="function"==typeof t?t:void 0)},Ar.conformsTo=function(e,t){return null==t||Jr(e,t,Ss(t))},Ar.deburr=xs,Ar.defaultTo=function(e,t){return null==e||e!==e?t:e},Ar.divide=su,Ar.endsWith=function(e,t,r){e=os(e),t=Ji(t);var i=e.length,n=r=void 0===r?i:Hr(rs(r),0,i);return(r-=t.length)>=0&&e.slice(r,n)==t},Ar.eq=Ro,Ar.escape=function(e){return(e=os(e))&&U.test(e)?e.replace(O,Ot):e},Ar.escapeRegExp=function(e){return(e=os(e))&&H.test(e)?e.replace(W,"\\$&"):e},Ar.every=function(e,t,r){var i=qo(e)?pt:ei;return r&&oa(e,t,r)&&(t=void 0),i(e,Jn(t,3))},Ar.find=io,Ar.findIndex=Ea,Ar.findKey=function(e,t){return St(e,Jn(t,3),oi)},Ar.findLast=no,Ar.findLastIndex=xa,Ar.findLastKey=function(e,t){return St(e,Jn(t,3),si)},Ar.floor=uu,Ar.forEach=ao,Ar.forEachRight=oo,Ar.forIn=function(e,t){return null==e?e:ni(e,Jn(t,3),Is)},Ar.forInRight=function(e,t){return null==e?e:ai(e,Jn(t,3),Is)},Ar.forOwn=function(e,t){return e&&oi(e,Jn(t,3))},Ar.forOwnRight=function(e,t){return e&&si(e,Jn(t,3))},Ar.get=ys,Ar.gt=Po,Ar.gte=Eo,Ar.has=function(e,t){return null!=e&&ra(e,t,di)},Ar.hasIn=hs,Ar.head=wa,Ar.identity=Ks,Ar.includes=function(e,t,r,i){e=_o(e)?e:Rs(e),r=r&&!i?rs(r):0;var n=e.length;return r<0&&(r=nr(n+r,0)),Jo(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&Nt(e,t,r)>-1},Ar.indexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:rs(r);return n<0&&(n=nr(i+n,0)),Nt(e,t,n)},Ar.inRange=function(e,t,r){return t=ts(t),void 0===r?(r=t,t=0):r=ts(r),function(e,t,r){return e>=ar(t,r)&&e=-9007199254740991&&e<=9007199254740991},Ar.isSet=Qo,Ar.isString=Jo,Ar.isSymbol=Zo,Ar.isTypedArray=Xo,Ar.isUndefined=function(e){return void 0===e},Ar.isWeakMap=function(e){return jo(e)&&ta(e)==v},Ar.isWeakSet=function(e){return jo(e)&&"[object WeakSet]"==mi(e)},Ar.join=function(e,t){return null==e?"":rr.call(e,t)},Ar.kebabCase=qs,Ar.last=Oa,Ar.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=i;return void 0!==r&&(n=(n=rs(r))<0?nr(i+n,0):ar(n,i-1)),t===t?function(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,n):It(e,Tt,n,!0)},Ar.lowerCase=ws,Ar.lowerFirst=_s,Ar.lt=Yo,Ar.lte=$o,Ar.max=function(e){return e&&e.length?ti(e,Ks,li):void 0},Ar.maxBy=function(e,t){return e&&e.length?ti(e,Jn(t,2),li):void 0},Ar.mean=function(e){return Ct(e,Ks)},Ar.meanBy=function(e,t){return Ct(e,Jn(t,2))},Ar.min=function(e){return e&&e.length?ti(e,Ks,Ci):void 0},Ar.minBy=function(e,t){return e&&e.length?ti(e,Jn(t,2),Ci):void 0},Ar.stubArray=iu,Ar.stubFalse=nu,Ar.stubObject=function(){return{}},Ar.stubString=function(){return""},Ar.stubTrue=function(){return!0},Ar.multiply=pu,Ar.nth=function(e,t){return e&&e.length?Pi(e,rs(t)):void 0},Ar.noConflict=function(){return He._===this&&(He._=Re),this},Ar.noop=Zs,Ar.now=yo,Ar.pad=function(e,t,r){e=os(e);var i=(t=rs(t))?Kt(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return xn(Yt(n),r)+e+xn(Xt(n),r)},Ar.padEnd=function(e,t,r){e=os(e);var i=(t=rs(t))?Kt(e):0;return t&&it){var i=e;e=t,t=i}if(r||e%1||t%1){var n=ur();return ar(e+n*(t-e+je("1e-"+((n+"").length-1))),t)}return _i(e,t)},Ar.reduce=function(e,t,r){var i=qo(e)?ht:Dt,n=arguments.length<3;return i(e,Jn(t,4),r,n,Yr)},Ar.reduceRight=function(e,t,r){var i=qo(e)?bt:Dt,n=arguments.length<3;return i(e,Jn(t,4),r,n,$r)},Ar.repeat=function(e,t,r){return t=(r?oa(e,t,r):void 0===t)?1:rs(t),Mi(os(e),t)},Ar.replace=function(){var e=arguments,t=os(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ar.result=function(e,t,r){var i=-1,n=(t=on(t,e)).length;for(n||(n=1,e=void 0);++i9007199254740991)return[];var r=4294967295,i=ar(e,4294967295);e-=4294967295;for(var n=Pt(i,t=Jn(t));++r=a)return e;var s=r-Kt(i);if(s<1)return i;var u=o?un(o,0,s).join(""):e.slice(0,s);if(void 0===n)return u+i;if(o&&(s+=u.length-s),Ho(n)){if(e.slice(s).search(n)){var p,c=u;for(n.global||(n=he(n.source,os(ie.exec(n))+"g")),n.lastIndex=0;p=n.exec(c);)var m=p.index;u=u.slice(0,void 0===m?s:m)}}else if(e.indexOf(Ji(n),s)!=s){var l=u.lastIndexOf(n);l>-1&&(u=u.slice(0,l))}return u+i},Ar.unescape=function(e){return(e=os(e))&&B.test(e)?e.replace(L,Ht):e},Ar.uniqueId=function(e){var t=++Ce;return os(e)+t},Ar.upperCase=Os,Ar.upperFirst=Bs,Ar.each=ao,Ar.eachRight=oo,Ar.first=wa,Js(Ar,function(){var e={};return oi(Ar,(function(t,r){Te.call(Ar.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),Ar.VERSION="4.17.15",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ar[e].placeholder=Ar})),st(["drop","take"],(function(e,t){Er.prototype[e]=function(r){r=void 0===r?1:nr(rs(r),0);var i=this.__filtered__&&!t?new Er(this):this.clone();return i.__filtered__?i.__takeCount__=ar(r,i.__takeCount__):i.__views__.push({size:ar(r,4294967295),type:e+(i.__dir__<0?"Right":"")}),i},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var r=t+1,i=1==r||3==r;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Jn(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}})),st(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Er.prototype[e]=function(){return this[r](1).value()[0]}})),st(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[r](1)}})),Er.prototype.compact=function(){return this.filter(Ks)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=Li((function(e,t){return"function"==typeof e?new Er(this):this.map((function(r){return bi(r,e,t)}))})),Er.prototype.reject=function(e){return this.filter(To(Jn(e)))},Er.prototype.slice=function(e,t){e=rs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Er(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),void 0!==t&&(r=(t=rs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(4294967295)},oi(Er.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),n=Ar[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);n&&(Ar.prototype[t]=function(){var t=this.__wrapped__,o=i?[1]:arguments,s=t instanceof Er,u=o[0],p=s||qo(t),c=function(e){var t=n.apply(Ar,yt([e],o));return i&&m?t[0]:t};p&&r&&"function"==typeof u&&1!=u.length&&(s=p=!1);var m=this.__chain__,l=!!this.__actions__.length,d=a&&!m,y=s&&!l;if(!a&&p){t=y?t:new Er(this);var h=e.apply(t,o);return h.__actions__.push({func:eo,args:[c],thisArg:void 0}),new Pr(h,m)}return d&&y?e.apply(this,o):(h=this.thru(c),d?i?h.value()[0]:h.value():h)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ge[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Ar.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(qo(n)?n:[],e)}return this[r]((function(r){return t.apply(qo(r)?r:[],e)}))}})),oi(Er.prototype,(function(e,t){var r=Ar[t];if(r){var i=r.name+"";Te.call(fr,i)||(fr[i]=[]),fr[i].push({name:t,func:r})}})),fr[Dn(void 0,2).name]=[{name:"wrapper",func:void 0}],Er.prototype.clone=function(){var e=new Er(this.__wrapped__);return e.__actions__=bn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bn(this.__views__),e},Er.prototype.reverse=function(){if(this.__filtered__){var e=new Er(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Er.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=qo(e),i=t<0,n=r?e.length:0,a=function(e,t,r){var i=-1,n=r.length;for(;++i=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Ar.prototype.plant=function(e){for(var t,r=this;r instanceof Rr;){var i=Aa(r);i.__index__=0,i.__values__=void 0,t?n.__wrapped__=i:t=i;var n=i;r=r.__wrapped__}return n.__wrapped__=e,t},Ar.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Er){var t=e;return this.__actions__.length&&(t=new Er(this)),(t=t.reverse()).__actions__.push({func:eo,args:[Fa],thisArg:void 0}),new Pr(t,this.__chain__)}return this.thru(Fa)},Ar.prototype.toJSON=Ar.prototype.valueOf=Ar.prototype.value=function(){return en(this.__wrapped__,this.__actions__)},Ar.prototype.first=Ar.prototype.head,Xe&&(Ar.prototype[Xe]=function(){return this}),Ar}();He._=Qt,void 0===(n=function(){return Qt}.call(t,r,t,i))||(i.exports=n)}).call(this)}).call(this,r(37),r(110)(e))},function(e,t,r){"use strict";var i=r(27);r.d(t,"a",(function(){return i.a})),r.d(t,"b",(function(){return i.b})),r.d(t,"c",(function(){return i.c})),r.d(t,"d",(function(){return i.d})),r.d(t,"e",(function(){return i.f})),r.d(t,"f",(function(){return i.k}))},function(e,t,r){var i=r(236),n=r(237),a=n;a.v1=i,a.v4=n,e.exports=a},function(e,t,r){e.exports=function(){var e=e||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},n=i.lib={},a=n.Base={extend:function(e){var t=r(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)}},o=n.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,i=this.sigBytes,n=e.sigBytes;if(this.clamp(),i%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[i+a>>>2]|=o<<24-(i+a)%4*8}else for(a=0;a>>2]=r[a>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,i=[],n=function(t){t=t;var r=987654321,i=4294967295;return function(){var n=((r=36969*(65535&r)+(r>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return n/=4294967296,(n+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-n%4*8&255;i.push((a>>>4).toString(16)),i.push((15&a).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new o.init(r,t/2)}},p=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new o.init(r,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},m=n.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,i=r.words,n=r.sigBytes,a=this.blockSize,s=n/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,p=e.min(4*u,n);if(u){for(var c=0;c",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(p),m=["%","/","?",";","#"].concat(c),l=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(111);function S(e,t,r){if(e&&n.isObject(e)&&e instanceof a)return e;var i=new a;return i.parse(e,t,r),i}a.prototype.parse=function(e,t,r){if(!n.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),s=-1!==a&&a127?w+="x":w+=q[_];if(!w.match(d)){var L=E.slice(0,D),O=E.slice(D+1),B=q.match(y);B&&(L.push(B[1]),O.unshift(B[2])),O.length&&(S="/"+O.join(".")+S),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=i.toASCII(this.hostname));var U=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+U,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==S[0]&&(S="/"+S))}if(!h[v])for(D=0,x=c.length;D0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=T.slice(-1)[0],A=(r.host||e.host||T.length>1)&&("."===k||".."===k)||""===k,D=0,R=T.length;R>=0;R--)"."===(k=T[R])?T.splice(R,1):".."===k?(T.splice(R,1),D++):D&&(T.splice(R,1),D--);if(!N&&!v)for(;D--;D)T.unshift("..");!N||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),A&&"/"!==T.join("/").substr(-1)&&T.push("");var P,E=""===T[0]||T[0]&&"/"===T[0].charAt(0);C&&(r.hostname=r.host=E?"":T.length?T.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(N=N||r.host&&T.length)&&!E&&T.unshift(""),T.length?r.pathname=T.join("/"):(r.pathname=null,r.path=null),n.isNull(r.pathname)&&n.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.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,r){"use strict";var i=r(0),n=r.n(i).a.createContext({controlId:void 0});t.a=n},function(e,t,r){"use strict";var i=r(1),n={keyPrefix:"aws-amplify-cache",capacityInBytes:1048576,itemMaxSize:21e4,defaultTTL:2592e5,defaultPriority:5,warningThreshold:.8,storage:(new i.q).getStorage()};function a(e){var t=0;t=e.length;for(var r=e.length;r>=0;r-=1){var i=e.charCodeAt(r);i>127&&i<=2047?t+=1:i>2047&&i<=65535&&(t+=2),i>=56320&&i<=57343&&(r-=1)}return t}function o(){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={},p=function(){function e(){}return 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]},e}(),c=function(e){this.key=e||"",this.prevNode=null,this.nextNode=null},m=function(){function e(){this.head=new c,this.tail=new c,this.hashtable={},this.length=0,this.head.nextNode=this.tail,this.tail.prevNode=this.head}return e.prototype.insertNodeToHead=function(e){var t=this.head.nextNode;this.head.nextNode=e,e.nextNode=t,e.prevNode=this.head,t.prevNode=e,this.length=this.length+1},e.prototype.removeNode=function(e){e.prevNode.nextNode=e.nextNode,e.nextNode.prevNode=e.prevNode,e.prevNode=null,e.nextNode=null,this.length=this.length-1},e.prototype.isEmpty=function(){return 0===this.length},e.prototype.refresh=function(e){var t=this.hashtable[e];this.removeNode(t),this.insertNodeToHead(t)},e.prototype.insertItem=function(e){var t=new c(e);this.hashtable[e]=t,this.insertNodeToHead(t)},e.prototype.getLastItem=function(){return this.tail.prevNode.key},e.prototype.removeItem=function(e){var t=this.hashtable[e];this.removeNode(t),delete this.hashtable[e]},e.prototype.getSize=function(){return this.length},e.prototype.containsKey=function(e){return e in this.hashtable},e.prototype.clearList=function(){for(var e=0,t=Object.keys(this.hashtable);ethis.config.capacityInBytes&&(l.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=n.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=n.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=n.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=n.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,r){var i={key:e,data:t,timestamp:o(),visitedTime:o(),priority:r.priority,expires:r.expires,type:typeof t,byteSize:0};return i.byteSize=a(JSON.stringify(i)),i.byteSize=a(JSON.stringify(i)),i},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}(),y=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),h=new i.c("Cache"),b=new(function(e){function t(t){var r=this,i=t?Object.assign({},n,t):n;return(r=e.call(this,i)||this).config.storage=i.storage,r.getItem=r.getItem.bind(r),r.setItem=r.setItem.bind(r),r.removeItem=r.removeItem.bind(r),r}return y(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=o(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var t=this.config.storage.getItem(e),r=JSON.parse(t);return o()>=r.expires},t.prototype._removeItem=function(e,t){var r=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(r),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(r){this._decreaseCurSizeInBytes(t.byteSize),h.error("Failed to set item "+r)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,r=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>r?t:r},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],r=0;rt.priority?-1:e.priority5)h.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var a=this.fillCacheItem(i,t,n);if(a.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(i);if(s&&this._removeItem(i,JSON.parse(s).byteSize),this._isCacheFull(a.byteSize)){var u=this._findValidKeys();if(this._isCacheFull(a.byteSize)){var p=this._sizeToPop(a.byteSize);this._popOutItems(u,p)}}this._setItem(i,a)}catch(c){h.warn("setItem failed! "+c)}}}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 r=null,i=this.config.keyPrefix+e;if(i===this.config.keyPrefix||i===this.cacheCurSizeKey)return h.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(r=this.config.storage.getItem(i))){if(!this._isExpired(i)){var n=JSON.parse(r);return(n=this._refreshItem(n,i)).data}this._removeItem(i,JSON.parse(r).byteSize),r=null}if(t&&void 0!==t.callback){var a=t.callback();return null!==a&&this.setItem(e,a,t),a}return null}catch(o){return h.warn("getItem failed! "+o),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 r=this.config.storage.getItem(t);r&&this._removeItem(t,JSON.parse(r).byteSize)}catch(i){h.warn("removeItem failed! "+i)}},t.prototype.clear=function(){h.log("Clear Cache");for(var e=[],t=0;t=r.expires},t.prototype._removeItem=function(e,t){this.cacheList[t].removeItem(e),this._decreaseCurSizeInBytes(JSON.parse(p.getItem(e)).byteSize),p.removeItem(e)},t.prototype._setItem=function(e,t,r){this.cacheList[r].insertItem(e),this._increaseCurSizeInBytes(t.byteSize),p.setItem(e,JSON.stringify(t))},t.prototype._isCacheFull=function(e){return this.curSizeInBytes+e>this.config.capacityInBytes},t.prototype.containsKey=function(e){for(var t=this.config.keyPrefix+e,r=0;r5)g.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var a=this.fillCacheItem(i,t,n);if(a.byteSize>this.config.itemMaxSize)g.warn("Item with key: "+e+" you are trying to put into is too big!");else{var s=this.containsKey(e);-1!==s&&this._removeItem(i,s-1);for(var u=this.maxPriority-1;this._isCacheFull(a.byteSize)&&u>=0;)if(this.cacheList[u].isEmpty())u-=1;else{var p=this.cacheList[u].getLastItem();this._removeItem(p,u)}this._setItem(i,a,Number(a.priority)-1)}}}else g.warn("The value of item should not be undefined!");else g.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){var r=null,i=this.config.keyPrefix+e;if(i===this.config.keyPrefix||i===this.cacheCurSizeKey)return g.warn("Invalid key: should not be empty or 'CurSize'"),null;var n=this.containsKey(e);if(-1!==n){if(!this._isExpired(i)){r=p.getItem(i);var a=JSON.parse(r);return this.cacheList[a.priority-1].refresh(i),a.data}this._removeItem(i,n-1)}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null},t.prototype.removeItem=function(e){var t=this.config.keyPrefix+e,r=this.containsKey(e);-1!==r&&this._removeItem(t,r-1)},t.prototype.clear=function(){for(var e=0;e=0;l--){var d=o[l];"."===d?a(o,l):".."===d?(a(o,l),m++):m&&(a(o,l),m--)}if(!p)for(;m--;m)o.unshift("..");!p||""===o[0]||o[0]&&n(o[0])||o.unshift("");var y=o.join("/");return r&&"/"!==y.substr(-1)&&(y+="/"),y};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if(Array.isArray(t))return Array.isArray(r)&&t.length===r.length&&t.every((function(t,i){return e(t,r[i])}));if("object"===typeof t||"object"===typeof r){var i=s(t),n=s(r);return i!==t||n!==r?e(i,n):Object.keys(Object.assign({},t,r)).every((function(i){return e(t[i],r[i])}))}return!1},p=r(25);function c(e){return"/"===e.charAt(0)?e:"/"+e}function m(e){return"/"===e.charAt(0)?e.substr(1):e}function l(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 d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function y(e){var t=e.pathname,r=e.search,i=e.hash,n=t||"/";return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function h(e,t,r,n){var a;"string"===typeof e?(a=function(e){var t=e||"/",r="",i="",n=t.indexOf("#");-1!==n&&(i=t.substr(n),t=t.substr(0,n));var a=t.indexOf("?");return-1!==a&&(r=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===r?"":r,hash:"#"===i?"":i}}(e)).state=t:(void 0===(a=Object(i.a)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return r&&(a.key=r),n?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=o(a.pathname,n.pathname)):a.pathname=n.pathname:a.pathname||(a.pathname="/"),a}function b(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 f(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,i,n){if(null!=e){var a="function"===typeof e?e(t,r):e;"string"===typeof a?"function"===typeof i?i(a,n):n(!0):n(!1!==a)}else n(!0)},appendListener:function(e){var r=!0;function i(){r&&e.apply(void 0,arguments)}return t.push(i),function(){r=!1,t=t.filter((function(e){return e!==i}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),i=0;it?r.splice(t,r.length-t,i):r.push(i),m({action:"PUSH",location:i,index:t,entries:r})}}))},replace:function(e,t){var i=h(e,t,l(),I.location);c.confirmTransitionTo(i,"REPLACE",r,(function(e){e&&(I.entries[I.index]=i,m({action:"REPLACE",location:i}))}))},go:S,goBack:function(){S(-1)},goForward:function(){S(1)},canGo:function(e){var t=I.index+e;return t>=0&&t>15;--a>=0;){var u=32767&this[e],p=this[e++]>>15,c=s*u+p*o;n=((u=o*u+((32767&c)<<15)+r[i]+(1073741823&n))>>>30)+(c>>>15)+s*p+(n>>>30),r[i++]=1073741823&u}return n},s=30):I&&"Netscape"!=navigator.appName?(g.prototype.am=function(e,t,r,i,n,a){for(;--a>=0;){var o=t*this[e++]+r[i]+n;n=Math.floor(o/67108864),r[i++]=67108863&o}return n},s=26):(g.prototype.am=function(e,t,r,i,n,a){for(var o=16383&t,s=t>>14;--a>=0;){var u=16383&this[e],p=this[e++]>>14,c=s*u+p*o;n=((u=o*u+((16383&c)<<14)+r[i]+n)>>28)+(c>>14)+s*p,r[i++]=268435455&u}return n},s=28),g.prototype.DB=s,g.prototype.DM=(1<>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function R(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},R.prototype.revert=function(e){var t=S();return e.copyTo(t),this.reduce(t),t},R.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[r=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},R.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},R.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},g.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},g.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},g.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");r=2}this.t=0,this.s=0;for(var i=e.length,n=!1,a=0;--i>=0;){var o=k(e,i);o<0?"-"==e.charAt(i)&&(n=!0):(n=!1,0==a?this[this.t++]=o:a+r>this.DB?(this[this.t-1]|=(o&(1<>this.DB-a):this[this.t-1]|=o<=this.DB&&(a-=this.DB))}this.clamp(),n&&g.ZERO.subTo(this,this)},g.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},g.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},g.prototype.drShiftTo=function(e,t){for(var r=e;r=0;--r)t[r+o+1]=this[r]>>n|s,s=(this[r]&a)<=0;--r)t[r]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()},g.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var i=e%this.DB,n=this.DB-i,a=(1<>i;for(var o=r+1;o>i;i>0&&(t[this.t-r-1]|=(this.s&a)<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;r>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},g.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),n=r.t;for(t.t=n+i.t;--n>=0;)t[n]=0;for(n=0;n=0;)e[r]=0;for(r=0;r=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},g.prototype.divRemTo=function(e,t,r){var i=e.abs();if(!(i.t<=0)){var n=this.abs();if(n.t0?(i.lShiftTo(u,a),n.lShiftTo(u,r)):(i.copyTo(a),n.copyTo(r));var p=a.t,c=a[p-1];if(0!=c){var m=c*(1<1?a[p-2]>>this.F2:0),l=this.FV/m,d=(1<=0&&(r[r.t++]=1,r.subTo(f,r)),g.ONE.dlShiftTo(p,f),f.subTo(a,a);a.t=0;){var I=r[--h]==c?this.DM:Math.floor(r[h]*l+(r[h-1]+y)*d);if((r[h]+=a.am(0,I,r,b,0,p))0&&r.rShiftTo(u,r),o<0&&g.ZERO.subTo(r,r)}}},g.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},g.prototype.addTo=function(e,t){for(var r=0,i=0,n=Math.min(e.t,this.t);r>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;r>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},g.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 r,i=(1<0)for(s>s)>0&&(n=!0,a=C(r));o>=0;)s>(s+=this.DB-t)):(r=this[o]>>(s-=t)&i,s<=0&&(s+=this.DB,--o)),r>0&&(n=!0),n&&(a+=C(r));return n?a:"0"},g.prototype.negate=function(){var e=S();return g.ZERO.subTo(this,e),e},g.prototype.abs=function(){return this.s<0?this.negate():this},g.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},g.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)},g.prototype.mod=function(e){var t=S();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(g.ZERO)>0&&e.subTo(t,t),t},g.prototype.equals=function(e){return 0==this.compareTo(e)},g.prototype.add=function(e){var t=S();return this.addTo(e,t),t},g.prototype.subtract=function(e){var t=S();return this.subTo(e,t),t},g.prototype.multiply=function(e){var t=S();return this.multiplyTo(e,t),t},g.prototype.divide=function(e){var t=S();return this.divRemTo(e,t,null),t},g.prototype.modPow=function(e,t,r){var i,n=e.bitLength(),a=A(1),o=new R(t);if(n<=0)return a;i=n<18?1:n<48?3:n<144?4:n<768?5:6;var s=new Array,u=3,p=i-1,c=(1<1){var m=S();for(o.sqrTo(s[1],m);u<=c;)s[u]=S(),o.mulTo(m,s[u-2],s[u]),u+=2}var l,d,y=e.t-1,h=!0,b=S();for(n=D(e[y])-1;y>=0;){for(n>=p?l=e[y]>>n-p&c:(l=(e[y]&(1<0&&(l|=e[y-1]>>this.DB+n-p)),u=i;0==(1&l);)l>>=1,--u;if((n-=u)<0&&(n+=this.DB,--y),h)s[l].copyTo(a),h=!1;else{for(;u>1;)o.sqrTo(a,b),o.sqrTo(b,a),u-=2;u>0?o.sqrTo(a,b):(d=a,a=b,b=d),o.mulTo(b,s[l],a)}for(;y>=0&&0==(e[y]&1<0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0;--r)t+=i[Math.round(Math.random()*(i.length-1))];return t},e.prototype._generateChallenge=function(e){return this._base64URL(ne(e))},e.prototype._base64URL=function(e){return e.toString(ae).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 r=0;r0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]1)for(var r=1;r-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"===typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function d(){s.apply(this,arguments),this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&"function"===typeof n.Buffer.alloc){var r=n.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=n.base64.encode}function y(){d.apply(this,arguments)}function h(){s.apply(this,arguments),this.toType=function(e){return"boolean"===typeof e?e:null===e||void 0===e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:p,list:c,map:m,boolean:h,timestamp:function(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)a(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)a(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)a(this,"timestampFormat","rfc822");else if("querystring"===this.location)a(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":a(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":a(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"===typeof e.toUTCString?e:"string"===typeof e||"number"===typeof e?n.date.parseTimestamp(e):null},this.toWireFormat=function(e){return n.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:l,base64:y,binary:d},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var i=s.resolve(e,t);if(i){var n=Object.keys(e);t.documentation||(n=n.filter((function(e){return!e.match(/documentation/)})));var a=function(){i.constructor.call(this,e,t,r)};return a.prototype=i,new a}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var o=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+o)},s.shapes={StructureShape:p,ListShape:c,MapShape:m,StringShape:l,BooleanShape:h,Base64Shape:y},e.exports=s},function(e,t,r){r(4);var i=r(2),n=i.Service,a=i.apiLoader;a.services.rekognition={},i.Rekognition=n.defineService("rekognition",["2016-06-27"]),Object.defineProperty(a.services.rekognition,"2016-06-27",{get:function(){var e=r(280);return e.paginators=r(281).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.Rekognition},function(e,t,r){"use strict";t.a=function(e,t,r,i){var n=i&&"boolean"!==typeof i?i.capture:i;e.removeEventListener(t,r,n),r.__once&&e.removeEventListener(t,r.__once,n)}},,function(e,t,r){var i=r(15),n=r(75).populateHostPrefix;function a(e,t,r,n){var a=[e,t].join("/");a=a.replace(/\/+/g,"/");var o={},s=!1;if(i.each(r.members,(function(e,t){var r=n[e];if(null!==r&&void 0!==r)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");a=a.replace(u,(function(e,t){return(t?i.uriEscapePath:i.uriEscape)(String(r))}))}else"querystring"===t.location&&(s=!0,"list"===t.type?o[t.name]=r.map((function(e){return i.uriEscape(t.member.toWireFormat(e).toString())})):"map"===t.type?i.each(r,(function(e,t){Array.isArray(t)?o[e]=t.map((function(e){return i.uriEscape(String(e))})):o[e]=i.uriEscape(String(t))})):o[t.name]=i.uriEscape(t.toWireFormat(r).toString()))})),s){a+=a.indexOf("?")>=0?"&":"?";var u=[];i.arrayEach(Object.keys(o).sort(),(function(e){Array.isArray(o[e])||(o[e]=[o[e]]);for(var t=0;t-1});var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"===typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"===typeof e&&(e=new i(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},function(e,t,r){!function(t,i){var n;e.exports=(n=r(19),function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=[],u=[];!function(){function t(t){for(var r=e.sqrt(t),i=2;i<=r;i++)if(!(t%i))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var i=2,n=0;n<64;)t(i)&&(n<8&&(s[n]=r(e.pow(i,.5))),u[n]=r(e.pow(i,1/3)),n++),i++}();var p=[],c=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],n=r[1],a=r[2],o=r[3],s=r[4],c=r[5],m=r[6],l=r[7],d=0;d<64;d++){if(d<16)p[d]=0|e[t+d];else{var y=p[d-15],h=(y<<25|y>>>7)^(y<<14|y>>>18)^y>>>3,b=p[d-2],f=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;p[d]=h+p[d-7]+f+p[d-16]}var g=i&n^i&a^n&a,S=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),I=l+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&m)+u[d]+p[d];l=m,m=c,c=s,s=o+I|0,o=a,a=n,n=i,i=I+(S+g)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+s|0,r[5]=r[5]+c|0,r[6]=r[6]+m|0,r[7]=r[7]+l|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(c),t.HmacSHA256=a._createHmacHelper(c)}(Math),n.SHA256)}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var i=r(27),n=r(40),a=r(1),o=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),s=new a.c("AbstractConvertPredictionsProvider"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCategory=function(){return"Convert"},t.prototype.convert=function(e){return Object(i.m)(e)?(s.debug("translateText"),this.translateText(e)):Object(i.l)(e)?(s.debug("textToSpeech"),this.convertTextToSpeech(e)):Object(i.j)(e)?(s.debug("textToSpeech"),this.convertSpeechToText(e)):void 0},t.prototype.translateText=function(e){throw new Error("convertText is not implemented by this provider")},t.prototype.convertTextToSpeech=function(e){throw new Error("convertTextToSpeech is not implemented by this provider")},t.prototype.convertSpeechToText=function(e){throw new Error("convertSpeechToText is not implemented by this provider")},t}(n.c)},function(e,t,r){!function(t,i){var n;e.exports=(n=r(19),function(){var e=n,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var u=i.charAt(64);if(u)for(;n.length%4;)n.push(u);return n.join("")},parse:function(e){var r=e.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var a=0;a>>6-o%4*2;n[a>>>2]|=(s|u)<<24-a%4*8,a++}return t.create(n,a)}(e,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)}()},function(e,t,r){r(4);var i=r(2),n=i.Service,a=i.apiLoader;a.services.lexruntime={},i.LexRuntime=n.defineService("lexruntime",["2016-11-28"]),Object.defineProperty(a.services.lexruntime,"2016-11-28",{get:function(){var e=r(267);return e.paginators=r(268).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.LexRuntime},function(e,t,r){"use strict";var i=r(31),n=!1,a=!1;try{var o={get passive(){return n=!0},get once(){return a=n=!0}};i.a&&(window.addEventListener("test",o,o),window.removeEventListener("test",o,!0))}catch(s){}t.a=function(e,t,r,i){if(i&&"boolean"!==typeof i&&!a){var o=i.once,s=i.capture,u=r;!a&&o&&(u=r.__once||function e(i){this.removeEventListener(t,e,s),r.call(this,i)},r.__once=u),e.addEventListener(t,u,n?i:s)}e.addEventListener(t,r,i)}},function(e,t,r){"use strict";var i=r(31),n=r(28),a=r(51),o=i.a&&"ontransitionend"in window;function s(e,t,r){void 0===r&&(r=5);var i=!1,n=setTimeout((function(){i||function(e){var t=document.createEvent("HTMLEvents");t.initEvent("transitionend",!0,!0),e.dispatchEvent(t)}(e)}),t+r),o=Object(a.a)(e,"transitionend",(function(){i=!0}),{once:!0});return function(){clearTimeout(n),o()}}t.a=function(e,t,r){return o?(null==r&&(r=function(e){var t=Object(n.a)(e,"transitionDuration")||"",r=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*r}(e)||0),s(e,r),Object(a.a)(e,"transitionend",t)):s(e,0,0)}},function(e,t,r){"use strict";function i(e){e.offsetHeight}r.d(t,"a",(function(){return i}))},function(e,t,r){"use strict";var i=r(3),n=r(5),a=r(0),o=r.n(a),s=r(42);function u(e){return!e||"#"===e.trim()}var p=o.a.forwardRef((function(e,t){var r=e.as,a=void 0===r?"a":r,p=e.disabled,c=e.onKeyDown,m=Object(n.a)(e,["as","disabled","onKeyDown"]),l=function(e){var t=m.href,r=m.onClick;(p||u(t))&&e.preventDefault(),p?e.stopPropagation():r&&r(e)};return u(m.href)&&(m.role=m.role||"button",m.href=m.href||"#"),p&&(m.tabIndex=-1,m["aria-disabled"]=!0),o.a.createElement(a,Object(i.a)({ref:t},m,{onClick:l,onKeyDown:Object(s.a)((function(e){" "===e.key&&(e.preventDefault(),l(e))}),c)}))}));p.displayName="SafeAnchor",t.a=p},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var i=r(67);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function a(e){for(var t=1;t1?t-1:0),n=1;n0)try{var n=JSON.parse(r.body.toString());(n.__type||n.code)&&(t.code=(n.__type||n.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=n.message||n.Message||null}catch(n){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=i.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},i=new a;e.data=i.parse(t,r)}}}},function(e,t,r){var i=r(15);function n(){}function a(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return function(e,t){var r={};return i.each(e,(function(e,i){var n=t.members[e];if(n){if("body"!==n.location)return;var o=n.isLocationName?n.name:e,s=a(i,n);void 0!==s&&(r[o]=s)}})),r}(e,t);case"map":return function(e,t){var r={};return i.each(e,(function(e,i){var n=a(i,t.value);void 0!==n&&(r[e]=n)})),r}(e,t);case"list":return function(e,t){var r=[];return i.arrayEach(e,(function(e){var i=a(e,t.member);void 0!==i&&r.push(i)})),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}n.prototype.build=function(e,t){return JSON.stringify(a(e,t))},e.exports=n},function(e,t,r){var i=r(15);function n(){}function a(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;var r={},n=t.members;return i.each(n,(function(t,i){var n=i.isLocationName?i.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var o=a(e[n],i);void 0!==o&&(r[t]=o)}})),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return i.each(e,(function(e,i){var n=a(i,t.value);r[e]=void 0===n?null:n})),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return i.arrayEach(e,(function(e){var i=a(e,t.member);void 0===i?r.push(null):r.push(i)})),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}n.prototype.parse=function(e,t){return a(JSON.parse(e),t)},e.exports=n},function(e,t,r){var i=r(15),n=r(2);e.exports={populateHostPrefix:function(e){if(!e.service.config.hostPrefixEnabled)return e;var t=e.service.api.operations[e.operation];if(function(e){var t=e.service.api,r=t.operations[e.operation],n=t.endpointOperation&&t.endpointOperation===i.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===n}(e))return e;if(t.endpoint&&t.endpoint.hostPrefix){var r=function(e,t,r){return i.each(r.members,(function(r,n){if(!0===n.hostLabel){if("string"!==typeof t[r]||""===t[r])throw i.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"});var a=new RegExp("\\{"+r+"\\}","g");e=e.replace(a,t[r])}})),e}(t.endpoint.hostPrefix,e.params,t.input);!function(e,t){e.host&&(e.host=t+e.host);e.hostname&&(e.hostname=t+e.hostname)}(e.httpRequest.endpoint,r),function(e){var t=e.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;i.arrayEach(t,(function(e){if(!e.length||e.length<1||e.length>63)throw i.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}))}(e.httpRequest.endpoint.hostname)}return e}}},function(e,t,r){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,n){if(e===n)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(n))return!1;if(!0===t(e)){if(e.length!==n.length)return!1;for(var a=0;a":!0,"=":!0,"!":!0},c={" ":!0,"\t":!0,"\n":!0};function m(e){return e>="0"&&e<="9"||"-"===e}function l(){}l.prototype={tokenize:function(e){var t,r,i,n,a=[];for(this._current=0;this._current="a"&&n<="z"||n>="A"&&n<="Z"||"_"===n)t=this._current,r=this._consumeUnquotedIdentifier(e),a.push({type:"UnquotedIdentifier",value:r,start:t});else if(void 0!==u[e[this._current]])a.push({type:u[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(m(e[this._current]))i=this._consumeNumber(e),a.push(i);else if("["===e[this._current])i=this._consumeLBracket(e),a.push(i);else if('"'===e[this._current])t=this._current,r=this._consumeQuotedIdentifier(e),a.push({type:"QuotedIdentifier",value:r,start:t});else if("'"===e[this._current])t=this._current,r=this._consumeRawStringLiteral(e),a.push({type:"Literal",value:r,start:t});else if("`"===e[this._current]){t=this._current;var o=this._consumeLiteral(e);a.push({type:"Literal",value:o,start:t})}else if(void 0!==p[e[this._current]])a.push(this._consumeOperator(e));else if(void 0!==c[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,a.push({type:"And",value:"&&",start:t})):a.push({type:"Expref",value:"&",start:t});else{if("|"!==e[this._current]){var s=new Error("Unknown character:"+e[this._current]);throw s.name="LexerError",s}t=this._current,this._current++,"|"===e[this._current]?(this._current++,a.push({type:"Or",value:"||",start:t})):a.push({type:"Pipe",value:"|",start:t})}return a},_consumeUnquotedIdentifier:function(e){var t,r=this._current;for(this._current++;this._current="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"_"===t);)this._current++;return e.slice(r,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var r=e.length;'"'!==e[this._current]&&this._current"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,i=e.length;"`"!==e[this._current]&&this._current=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(t){return!1}}};var d={};function y(){}function h(e){this.runtime=e}function b(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[o]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[o]}]},contains:{_func:this._functionContains,_signature:[{types:[s,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[s]},{types:[s]}]},floor:{_func:this._functionFloor,_signature:[{types:[o]}]},length:{_func:this._functionLength,_signature:[{types:[s,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[s]},{types:[s]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[s]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[s,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}d.EOF=0,d.UnquotedIdentifier=0,d.QuotedIdentifier=0,d.Rbracket=0,d.Rparen=0,d.Comma=0,d.Rbrace=0,d.Number=0,d.Current=0,d.Expref=0,d.Pipe=1,d.Or=2,d.And=3,d.EQ=5,d.GT=5,d.LT=5,d.GTE=5,d.LTE=5,d.NE=5,d.Flatten=9,d.Star=20,d.Filter=21,d.Dot=40,d.Not=45,d.Lbrace=50,d.Lbracket=55,d.Lparen=60,y.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),i=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw i.name="ParserError",i}return t},_loadTokens:function(e){var t=(new l).tokenize(e);t.push({type:"EOF",value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),i=this._lookahead(0);e=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(d[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),i=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw i.name="ParserError",i}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,i=[],n=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),n.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r={type:"KeyValuePair",name:t,value:this.expression(0)},i.push(r),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:i}}},h.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,a){var o,s,u,p,c,m,l,d,y;switch(e.type){case"Field":return null===a?null:r(a)?void 0===(m=a[e.name])?null:m:null;case"Subexpression":for(u=this.visit(e.children[0],a),y=1;y0)for(y=g;yS;y+=I)u.push(a[y]);return u;case"Projection":var N=this.visit(e.children[0],a);if(!t(N))return null;for(d=[],y=0;yc;break;case"GTE":u=p>=c;break;case"LT":u=p=e&&(t=r<0?e-1:e),t}},b.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var i,n,a,o;if(r[r.length-1].variadic){if(t.length=0;i--)r+=t[i];return r}var n=e[0].slice(0);return n.reverse(),n},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],i=0;i=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,i=e[0],n=e[1],a=0;a0){if(this._getTypeName(e[0][0])===o)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],i=1;i0){if(this._getTypeName(e[0][0])===o)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],i=1;is?1:ou&&(u=r,t=n[p]);return t},_functionMinBy:function(e){for(var t,r,i=e[1],n=e[0],a=this.createKeyFunction(i,[o,s]),u=1/0,p=0;p=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,r,o):n(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function u(e,t){return function(r,i){t(r,i,e)}}function p(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,r,i){return new(r||(r=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(t){a(t)}}function s(e){try{u(i.throw(e))}catch(t){a(t)}}function u(e){e.done?n(e.value):new r((function(t){t(e.value)})).then(o,s)}u((i=i.apply(e,t||[])).next())}))}function m(e,t){var r,i,n,a,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function y(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}function h(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=n[e](t)).value instanceof f?Promise.resolve(r.value.v).then(u,p):c(a[0][2],r)}catch(i){c(a[0][3],i)}var r}function u(e){s("next",e)}function p(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function S(e){var t,r;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,n){t[i]=e[i]?function(t){return(r=!r)?{value:f(e[i](t)),done:"return"===i}:n?n(t):t}:n}}function I(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=d(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise((function(i,n){(function(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)})(i,n,(t=e[r](t)).done,t.value)}))}}}function N(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function T(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){r(4);var i=r(2),n=i.Service,a=i.apiLoader;a.services.kinesis={},i.Kinesis=n.defineService("kinesis",["2013-12-02"]),Object.defineProperty(a.services.kinesis,"2013-12-02",{get:function(){var e=r(238);return e.paginators=r(239).pagination,e.waiters=r(240).waiters,e},enumerable:!0,configurable:!0}),e.exports=i.Kinesis},function(e,t,r){r(4);var i=r(2),n=i.Service,a=i.apiLoader;a.services.firehose={},i.Firehose=n.defineService("firehose",["2015-08-04"]),Object.defineProperty(a.services.firehose,"2015-08-04",{get:function(){var e=r(241);return e.paginators=r(242).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.Firehose},function(e,t,r){r(4);var i=r(2),n=i.Service,a=i.apiLoader;a.services.personalizeevents={},i.PersonalizeEvents=n.defineService("personalizeevents",["2018-03-22"]),Object.defineProperty(a.services.personalizeevents,"2018-03-22",{get:function(){var e=r(243);return e.paginators=r(244).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.PersonalizeEvents},function(e,t,r){r(4);var i=r(2),n=i.Service,a=i.apiLoader;a.services.s3={},i.S3=n.defineService("s3",["2006-03-01"]),r(246),Object.defineProperty(a.services.s3,"2006-03-01",{get:function(){var e=r(248);return e.paginators=r(249).pagination,e.waiters=r(250).waiters,e},enumerable:!0,configurable:!0}),e.exports=i.S3},function(e,t,r){e.exports=function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";function i(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),i(r(1)),i(r(2)),i(r(3)),i(r(4)),i(r(5)),i(r(6)),i(r(7)),i(r(8)),i(r(9)),i(r(10)),i(r(11)),i(r(12)),i(r(13))},function(e,t,r){e.exports={a:"Anchor__a___1_Iz8"}},function(e,t,r){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,r){e.exports={formContainer:"Form__formContainer___1GA3x",formSection:"Form__formSection___1PPvW",formField:"Form__formField___38Ikl",formRow:"Form__formRow___2mwRs"}},function(e,t,r){e.exports={hint:"Hint__hint___2XngB"}},function(e,t,r){e.exports={input:"Input__input___3e_bf",inputLabel:"Input__inputLabel___3VF0S",label:"Input__label___23sO8",radio:"Input__radio___2hllK"}},function(e,t,r){e.exports={navBar:"Nav__navBar___xtCFA",navRight:"Nav__navRight___1QG2J",nav:"Nav__nav___2Dx2Y",navItem:"Nav__navItem___1LtFQ"}},function(e,t,r){e.exports={photoPickerButton:"PhotoPicker__photoPickerButton___2XdVn",photoPlaceholder:"PhotoPicker__photoPlaceholder___2JXO4",photoPlaceholderIcon:"PhotoPicker__photoPlaceholderIcon___3Et71"}},function(e,t,r){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,r){e.exports={selectInput:"SelectInput__selectInput___3efO4"}},function(e,t,r){e.exports={strike:"Strike__strike___1XV1b",strikeContent:"Strike__strikeContent___10gLb"}},function(e,t,r){e.exports={toast:"Toast__toast___XXr3v",toastClose:"Toast__toastClose___18lU4"}},function(e,t,r){e.exports={totpQrcode:"Totp__totpQrcode___1crLx"}},function(e,t,r){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,r){r(4);var i=r(2),n=i.Service,a=i.apiLoader;a.services.translate={},i.Translate=n.defineService("translate",["2017-07-01"]),Object.defineProperty(a.services.translate,"2017-07-01",{get:function(){var e=r(269);return e.paginators=r(270).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.Translate},function(e,t,r){r(4);var i=r(2),n=i.Service,a=i.apiLoader;a.services.polly={},i.Polly=n.defineService("polly",["2016-06-10"]),r(271),Object.defineProperty(a.services.polly,"2016-06-10",{get:function(){var e=r(273);return e.paginators=r(274).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.Polly},function(e,t,r){"use strict";e.exports=function(e,t,r,i,n,a,o,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[r,i,n,a,o,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return p[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,r){e.exports=r(251)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(278);t.fromUtf8=function(e){var t=i.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},t.toUtf8=function(e){return i.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},function(e,t,r){"use strict";function i(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}r.d(t,"a",(function(){return i}))},function(e,t,r){"use strict";var i=r(33),n=r.n(i),a=r(26);t.a=function(e){return Object(a.a)(n.a.findDOMNode(e))}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,r){var i=r(568);e.exports=d,e.exports.parse=a,e.exports.compile=function(e,t){return s(a(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=l;var n=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var r,i=[],a=0,o=0,s="",c=t&&t.delimiter||"/";null!=(r=n.exec(e));){var m=r[0],l=r[1],d=r.index;if(s+=e.slice(o,d),o=d+m.length,l)s+=l[1];else{var y=e[o],h=r[2],b=r[3],f=r[4],g=r[5],S=r[6],I=r[7];s&&(i.push(s),s="");var N=null!=h&&null!=y&&y!==h,v="+"===S||"*"===S,T="?"===S||"*"===S,C=r[2]||c,k=f||g;i.push({name:b||a++,prefix:h||"",delimiter:C,optional:T,repeat:v,partial:N,asterisk:!!I,pattern:k?p(k):I?".*":"[^"+u(C)+"]+?"})}}return o0){var m=(t=new i.XML.Parser).parse(o.toString(),u);n.update(e.data,m)}}}},function(e,t,r){var i=r(95),n=r(99),a=r(52),o=r(100),s=r(101),u=r(15),p=u.property,c=u.memoizedProperty;e.exports=function(e,t){var r=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{},p(this,"isApi",!0,!1),p(this,"apiVersion",e.metadata.apiVersion),p(this,"endpointPrefix",e.metadata.endpointPrefix),p(this,"signingName",e.metadata.signingName),p(this,"globalEndpoint",e.metadata.globalEndpoint),p(this,"signatureVersion",e.metadata.signatureVersion),p(this,"jsonVersion",e.metadata.jsonVersion),p(this,"targetPrefix",e.metadata.targetPrefix),p(this,"protocol",e.metadata.protocol),p(this,"timestampFormat",e.metadata.timestampFormat),p(this,"xmlNamespaceUri",e.metadata.xmlNamespace),p(this,"abbreviation",e.metadata.serviceAbbreviation),p(this,"fullName",e.metadata.serviceFullName),p(this,"serviceId",e.metadata.serviceId),c(this,"className",(function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null})),p(this,"operations",new i(e.operations,t,(function(e,r){return new n(e,r,t)}),u.string.lowerFirst,(function(e,t){!0===t.endpointoperation&&p(r,"endpointOperation",u.string.lowerFirst(e))}))),p(this,"shapes",new i(e.shapes,t,(function(e,r){return a.create(r,t)}))),p(this,"paginators",new i(e.paginators,t,(function(e,r){return new o(e,r,t)}))),p(this,"waiters",new i(e.waiters,t,(function(e,r){return new s(e,r,t)}),u.string.lowerFirst)),t.documentation&&(p(this,"documentation",e.documentation),p(this,"documentationUrl",e.documentationUrl))}},function(e,t,r){var i=r(52),n=r(15),a=n.property,o=n.memoizedProperty;e.exports=function(e,t,r){var n=this;r=r||{},a(this,"name",t.name||e),a(this,"api",r.api,!1),t.http=t.http||{},a(this,"endpoint",t.endpoint),a(this,"httpMethod",t.http.method||"POST"),a(this,"httpPath",t.http.requestUri||"/"),a(this,"authtype",t.authtype||""),a(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),o(this,"input",(function(){return t.input?i.create(t.input,r):new i.create({type:"structure"},r)})),o(this,"output",(function(){return t.output?i.create(t.output,r):new i.create({type:"structure"},r)})),o(this,"errors",(function(){var e=[];if(!t.errors)return null;for(var n=0;n-1&&r.splice(n,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var i=this.listeners(e),n=i.length;return this.callListeners(i,t,r),n>0},callListeners:function(e,t,r,n){var a=this,o=n||null;function s(n){if(n&&(o=i.util.error(o||new Error,n),a._haltHandlersOnError))return r.call(a,o);a.callListeners(e,t,r,o)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(a,t.concat([s]));try{u.apply(a,t)}catch(p){o=i.util.error(o||new Error,p)}if(o&&a._haltHandlersOnError)return void r.call(a,o)}r.call(a,o)},addListeners:function(e){var t=this;return e._events&&(e=e._events),i.util.each(e,(function(e,r){"function"===typeof r&&(r=[r]),i.util.arrayEach(r,(function(r){t.on(e,r)}))})),t},addNamedListener:function(e,t,r,i){return this[e]=r,this.addListener(t,r,i),this},addNamedAsyncListener:function(e,t,r,i){return r._isAsync=!0,this.addNamedListener(e,t,r,i)},addNamedListeners:function(e){var t=this;return e((function(){t.addNamedListener.apply(t,arguments)}),(function(){t.addNamedAsyncListener.apply(t,arguments)})),this}}),i.SequentialExecutor.prototype.addListener=i.SequentialExecutor.prototype.on,e.exports=i.SequentialExecutor},function(e,t,r){var i=r(2);i.Credentials=i.util.inherit({constructor:function(){if(i.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"===typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=i.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh((function(r){r||(t.expired=!1),e&&e(r)})):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load((function(e){i.util.arrayEach(r.refreshCallbacks,(function(r){t?r(e):i.util.defer((function(){r(e)}))})),r.refreshCallbacks.length=0}))},load:function(e){e()}}),i.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=i.util.promisifyMethod("get",e),this.prototype.refreshPromise=i.util.promisifyMethod("refresh",e)},i.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},i.util.addPromises(i.Credentials)},function(e,t,r){var i=r(2);i.CredentialProviderChain=i.util.inherit(i.Credentials,{constructor:function(e){this.providers=e||i.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){var t=this;if(0===t.providers.length)return e(new Error("No providers")),t;if(1===t.resolveCallbacks.push(e)){var r=0,n=t.providers.slice(0);!function e(a,o){if(!a&&o||r===n.length)return i.util.arrayEach(t.resolveCallbacks,(function(e){e(a,o)})),void(t.resolveCallbacks.length=0);var s=n[r++];(o="function"===typeof s?s.call():s).get?o.get((function(t){e(t,t?null:o)})):e(null,o)}()}return t}}),i.CredentialProviderChain.defaultProviders=[],i.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=i.util.promisifyMethod("resolve",e)},i.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},i.util.addPromises(i.CredentialProviderChain)},function(e,t,r){var i=r(2),n=i.util.inherit;i.Endpoint=n({constructor:function(e,t){if(i.util.hideProperties(this,["slashes","auth","hash","search","query"]),"undefined"===typeof e||null===e)throw new Error("Invalid endpoint: "+e);if("string"!==typeof e)return i.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:i.config.sslEnabled)?"https":"http")+"://"+e);i.util.update(this,i.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),i.HttpRequest=n({constructor:function(e,t){e=new i.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=i.util.userAgent()},getUserAgentHeaderName:function(){return(i.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"===typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=i.util.queryStringParse(e),i.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new i.Endpoint(e);this.endpoint=t,this.path=t.path||"/"}}),i.HttpResponse=n({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),i.HttpClient=n({}),i.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(e,t,r){var i=r(2),n=i.util.inherit;i.Signers.V3=n(i.Signers.RequestSigner,{addAuthorization:function(e,t){var r=i.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return i.util.arrayEach(this.headersToSign(),(function(t){e.push(t.toLowerCase())})),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return i.util.arrayEach(this.headersToSign(),(function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())})),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return i.util.each(this.request.headers,(function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)})),e},signature:function(e){return i.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),i.util.crypto.sha256(e.join("\n"))}}),e.exports=i.Signers.V3},function(e,t,r){var i=r(2),n={},a=[],o="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,o].join("/")},getSigningKey:function(e,t,r,s,u){var p=[i.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((u=!1!==u)&&p in n)return n[p];var c=i.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),m=i.util.crypto.hmac(c,r,"buffer"),l=i.util.crypto.hmac(m,s,"buffer"),d=i.util.crypto.hmac(l,o,"buffer");return u&&(n[p]=d,a.push(p),a.length>50&&delete n[a.shift()]),d},emptyCache:function(){n={},a=[]}}},function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var i=new Uint8Array(16);e.exports=function(){return r(i),i}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},function(e,t){for(var r=[],i=0;i<256;++i)r[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0,n=r;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}},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,r){"use strict";t.decode=t.parse=r(210),t.encode=t.stringify=r(211)},function(e,t,r){r(4);var i=r(2),n=i.Service,a=i.apiLoader;a.services.cognitoidentity={},i.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]),r(226),Object.defineProperty(a.services.cognitoidentity,"2014-06-30",{get:function(){var e=r(227);return e.paginators=r(228).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.CognitoIdentity},function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var i=new Uint8Array(16);e.exports=function(){return r(i),i}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},function(e,t){for(var r=[],i=0;i<256;++i)r[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0,n=r;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}},function(e,t,r){!function(t,i){var n;e.exports=(n=r(19),function(){if("function"==typeof ArrayBuffer){var e=n.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 r=e.byteLength,i=[],n=0;n>>2]|=e[n]<<24-n%4*8;t.call(this,i,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)}()},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),i=0;i=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){s.headers[e]=i.merge(a)})),e.exports=s}).call(this,r(43))},function(e,t,r){"use strict";var i=r(20),n=r(257),a=r(117),o=r(259),s=r(262),u=r(263),p=r(121);e.exports=function(e){return new Promise((function(t,c){var m=e.data,l=e.headers;i.isFormData(m)&&delete l["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",h=e.auth.password||"";l.Authorization="Basic "+btoa(y+":"+h)}var b=o(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(b,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};n(t,c,i),d=null}},d.onabort=function(){d&&(c(p("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){c(p("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),c(p(t,e,"ECONNABORTED",d)),d=null},i.isStandardBrowserEnv()){var f=r(264),g=(e.withCredentials||u(b))&&e.xsrfCookieName?f.read(e.xsrfCookieName):void 0;g&&(l[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&i.forEach(l,(function(e,t){"undefined"===typeof m&&"content-type"===t.toLowerCase()?delete l[t]:d.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(S){if("json"!==e.responseType)throw S}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),c(e),d=null)})),void 0===m&&(m=null),d.send(m)}))}},function(e,t,r){"use strict";var i=r(258);e.exports=function(e,t,r,n,a){var o=new Error(e);return i(o,t,r,n,a)}},function(e,t,r){"use strict";var i=r(20);e.exports=function(e,t){t=t||{};var r={},n=["url","method","params","data"],a=["headers","auth","proxy"],o=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];i.forEach(n,(function(e){"undefined"!==typeof t[e]&&(r[e]=t[e])})),i.forEach(a,(function(n){i.isObject(t[n])?r[n]=i.deepMerge(e[n],t[n]):"undefined"!==typeof t[n]?r[n]=t[n]:i.isObject(e[n])?r[n]=i.deepMerge(e[n]):"undefined"!==typeof e[n]&&(r[n]=e[n])})),i.forEach(o,(function(i){"undefined"!==typeof t[i]?r[i]=t[i]:"undefined"!==typeof e[i]&&(r[i]=e[i])}));var s=n.concat(a).concat(o),u=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return i.forEach(u,(function(i){"undefined"!==typeof t[i]?r[i]=t[i]:"undefined"!==typeof e[i]&&(r[i]=e[i])})),r}},function(e,t,r){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return v}));var i,n,a,o=r(30),s=r(45),u=r(22),p=r(18),c=r(1),m=r(24),l=r(38),d=r(47),y=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),h=function(){return(h=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0?setTimeout(this._closeSocketWhenFlushed.bind(this),1e3):(this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=a.CLOSED):this.socketStatus=a.CLOSED},r.prototype._handleIncomingSubscriptionMessage=function(e){g.debug("subscription message from AWS AppSync RealTime: "+e.data);var t=JSON.parse(e.data),r=t.id,a=void 0===r?"":r,o=t.payload,u=t.type,p=this.subscriptionObserverMap.get(a)||{},m=p.observer,l=void 0===m?null:m,d=p.query,y=void 0===d?"":d,b=p.variables,f=void 0===b?{}:b,I=p.startAckTimeoutId,N=p.subscriptionReadyCallback,v=p.subscriptionFailedCallback;if(g.debug({id:a,observer:l,query:y,variables:f}),u===i.GQL_DATA&&o&&o.data)l?l.next(o):g.debug("observer not found for id: "+a);else if(u!==i.GQL_START_ACK){if(u===i.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._timeoutDisconnect.bind(this),this.keepAliveTimeout));if(u===i.GQL_ERROR){T=n.FAILED;this.subscriptionObserverMap.set(a,{observer:l,query:y,variables:f,startAckTimeoutId:I,subscriptionReadyCallback:N,subscriptionFailedCallback:v,subscriptionState:T}),l.error({errors:[h({},new s.a("Connection failed: "+JSON.stringify(o)))]}),clearTimeout(I),l.complete(),"function"===typeof v&&v()}}else{g.debug("subscription ready for "+JSON.stringify({query:y,variables:f})),"function"===typeof N&&N(),clearTimeout(I),function(e,t,r){c.f.dispatch("api",{event:e,data:t,message:r},"PubSub",S)}("connected",{query:y,variables:f},"Connection established for subscription");var T=n.CONNECTED;this.subscriptionObserverMap.set(a,{observer:l,query:y,variables:f,startAckTimeoutId:null,subscriptionState:T,subscriptionReadyCallback:N,subscriptionFailedCallback:v})}},r.prototype._timeoutDisconnect=function(){this.subscriptionObserverMap.forEach((function(e){var t=e.observer;t.closed||(t.error({errors:[h({},new s.a("Timeout disconnect"))]}),t.complete())})),this.subscriptionObserverMap=new Map,this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=a.CLOSED},r.prototype._timeoutStartSubscriptionAck=function(e){var t=this.subscriptionObserverMap.get(e)||{},r=t.observer,i=t.query,a=t.variables;r&&(this.subscriptionObserverMap.set(e,{observer:r,query:i,variables:a,subscriptionState:n.FAILED}),r&&!r.closed&&(r.error({errors:[h({},new s.a("Subscription timeout "+JSON.stringify({query:i,variables:a})))]}),r.complete()),g.debug("timeoutStartSubscription",JSON.stringify({query:i,variables:a})))},r.prototype._initializeWebSocketConnection=function(t){var r=this,i=t.appSyncGraphqlEndpoint,n=t.authenticationType,o=t.apiKey,s=t.region;if(this.socketStatus!==a.READY)return new Promise((function(t,u){return b(r,void 0,void 0,(function(){var r,p,c,m,l,d,y,h,b;return f(this,(function(f){switch(f.label){case 0:if(this.promiseArray.push({res:t,rej:u}),this.socketStatus!==a.CLOSED)return[3,5];f.label=1;case 1:return f.trys.push([1,4,,5]),this.socketStatus=a.CONNECTING,r=i.replace("https://","wss://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta"),p="{}",l=(m=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:n,payload:p,canonicalUri:"/connect",apiKey:o,appSyncGraphqlEndpoint:i,region:s})];case 2:return c=l.apply(m,[f.sent()]),d=e.from(c).toString("base64"),y=e.from(p).toString("base64"),h=r+"?header="+d+"&payload="+y,[4,this._initializeRetryableHandshake({awsRealTimeUrl:h})];case 3:return f.sent(),this.promiseArray.forEach((function(e){var t=e.res;g.debug("Notifying connection successful"),t()})),this.socketStatus=a.READY,this.promiseArray=[],[3,5];case 4:return b=f.sent(),this.promiseArray.forEach((function(e){return(0,e.rej)(b)})),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=a.CLOSED,[3,5];case 5:return[2]}}))}))}))},r.prototype._initializeRetryableHandshake=function(e){var t=e.awsRealTimeUrl;return b(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return g.debug("Initializaling retryable Handshake"),[4,Object(c.t)(this._initializeHandshake.bind(this),[{awsRealTimeUrl:t}],5e3)];case 1:return e.sent(),[2]}}))}))},r.prototype._initializeHandshake=function(e){var t=e.awsRealTimeUrl;return b(this,void 0,void 0,(function(){var e,r,n,a=this;return f(this,(function(o){switch(o.label){case 0:g.debug("Initializing handshake "+t),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,new Promise((function(e,r){var i=new WebSocket(t,"graphql-ws");i.onerror=function(){g.debug("WebSocket connection error")},i.onclose=function(){r(new Error("Connection handshake error"))},i.onopen=function(){return a.awsRealTimeSocket=i,e()}}))];case 2:return o.sent(),[4,new Promise((function(e,t){var r=!1;a.awsRealTimeSocket.onerror=function(e){g.debug("WebSocket closed "+JSON.stringify(e))},a.awsRealTimeSocket.onclose=function(e){g.debug("WebSocket closed "+e.reason),t(new Error(JSON.stringify(e)))},a.awsRealTimeSocket.onmessage=function(n){g.debug("subscription message from AWS AppSyncRealTime: "+n.data+" ");var o=JSON.parse(n.data),s=o.type,u=o.payload,p=(void 0===u?{}:u).connectionTimeoutMs,c=void 0===p?3e5:p;if(s===i.GQL_CONNECTION_ACK)return r=!0,a.keepAliveTimeout=c,a.awsRealTimeSocket.onmessage=a._handleIncomingSubscriptionMessage.bind(a),a.awsRealTimeSocket.onerror=g.debug,void e("Cool, connected to AWS AppSyncRealTime");if(s===i.GQL_CONNECTION_ERROR){var m=o.payload,l=(void 0===m?{}:m).errors,d=(void 0===l?[]:l)[0],y=void 0===d?{}:d,h=y.errorType,b=void 0===h?"":h,f=y.errorCode;t({errorType:b,errorCode:void 0===f?0:f})}};var n={type:i.GQL_CONNECTION_INIT};a.awsRealTimeSocket.send(JSON.stringify(n)),setTimeout(function(){r||t(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(a),15e3)}))];case 3:return o.sent(),[3,5];case 4:throw e=o.sent(),r=e.errorType,n=e.errorCode,I.includes(n)?new c.l(r):r?new Error(r):e;case 5:return[2]}}))}))},r.prototype._awsRealTimeHeaderBasedAuth=function(e){var t=e.authenticationType,r=e.payload,i=e.canonicalUri,n=e.appSyncGraphqlEndpoint,a=e.apiKey,o=e.region;return b(this,void 0,void 0,(function(){var e,s,p;return f(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])?(g.debug("Authentication type "+t+" not supported"),[2,""]):(p=u.parse(n).host,[4,s({payload:r,canonicalUri:i,appSyncGraphqlEndpoint:n,apiKey:a,region:o,host:p})]);case 1:return[2,c.sent()]}}))}))},r.prototype._awsRealTimeCUPHeader=function(e){var t=e.host;return b(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return[4,l.a.currentSession()];case 1:return[2,{Authorization:e.sent().getAccessToken().getJwtToken(),host:t}]}}))}))},r.prototype._awsRealTimeOPENIDHeader=function(e){var t=e.host;return b(this,void 0,void 0,(function(){var e;return f(this,(function(r){switch(r.label){case 0:return[4,m.a.getItem("federatedInfo")];case 1:if(!(e=r.sent())||!e.token)throw new Error("No federated jwt");return[2,{Authorization:e.token,host:t}]}}))}))},r.prototype._awsRealTimeApiKeyHeader=function(e){var t=e.apiKey,r=e.host;return b(this,void 0,void 0,(function(){var e,i;return f(this,(function(n){return e=new Date,i=e.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:r,"x-amz-date":i,"x-api-key":t}]}))}))},r.prototype._awsRealTimeIAMHeader=function(e){var t=e.payload,r=e.canonicalUri,i=e.appSyncGraphqlEndpoint,n=e.region;return b(this,void 0,void 0,(function(){var e,a,o;return f(this,(function(s){switch(s.label){case 0:return e={region:n,service:"appsync"},[4,this._ensureCredentials()];case 1:if(!s.sent())throw new Error("No credentials");return[4,c.e.get().then((function(e){return{secret_key:e.secretAccessKey,access_key:e.accessKeyId,session_token:e.sessionToken}}))];case 2:return a=s.sent(),o={url:""+i+r,data:t,method:"POST",headers:h({},N)},[2,c.p.sign(o,a,e).headers]}}))}))},r.prototype._ensureCredentials=function(){return c.e.get().then((function(e){if(!e)return!1;var t=c.e.shear(e);return g.debug("set credentials for AWSAppSyncRealTimeProvider",t),!0})).catch((function(e){return g.warn("ensure credentials error",e),!1}))},r}(d.a)}).call(this,r(11).Buffer)},function(e,t,r){"use strict";(function(e){var i=r(59),n=r(84),a=r(85),o=r(17),s=r(1),u=r(138),p=r(88),c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),m=function(e,t,r,i){return new(r||(r=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(t){a(t)}}function s(e){try{u(i.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((i=i.apply(e,t||[])).next())}))},l=function(e,t){var r,i,n,a,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&n.Transcript.Results[0].Alternatives.length>0&&n.Transcript.Results[0].Alternatives[0].Transcript.length>0&&(!1===n.Transcript.Results[0].IsPartial?(r=n.Transcript.Results[0].Alternatives[0].Transcript+"\n",d.debug({decodedMessage:r})):d.debug({transcript:n.Transcript.Results[0].Alternatives[0]})),r},r.prototype.sendDataToTranscribe=function(t){var i=this,n=t.connection,a=t.raw;return new Promise((function(t,o){var s="";if(n.onmessage=function(e){try{var t=r.serializeDataFromTranscribe(e);t&&(s+=t+" ")}catch(i){d.debug(i),o(i.message)}},n.onerror=function(e){d.debug({errorEvent:e}),o("failed to transcribe, network error")},n.onclose=function(e){return d.debug({closeEvent:e}),t(s.trim())},d.debug({raw:a}),Array.isArray(a))for(var u=0;u0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var r=new Uint8Array(8),i=7,n=Math.abs(Math.round(t));i>-1&&n>0;i--,n/=256)r[i]=n;return t<0&&a(r),new e(r)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&a(e),parseInt(i.toHex(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function a(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}t.Int64=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(78);t.crc32=function(e){return(new n).update(e).digest()};var n=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=i.__values(e),o=n.next();!o.done;o=n.next()){var s=o.value;this.checksum=this.checksum>>>8^a[255&(this.checksum^s)]}}catch(u){t={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=n;var a=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,r){var i=r(2).util;function n(e){var t=["Buffer","File","Blob","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"];if(i.isNode()){var r=i.stream.Stream;if(i.Buffer.isBuffer(e)||e instanceof r)return!0}for(var n=0;n0){var o=r.substring(0,n),s=r.substring(n+i.length);r=o+t[a]+s}return r},N=[0,6,77,81,73,115,100,112,3],v=[0,4,77,81,84,84,4],T=function(e,t){for(var r in this.type=e,t)t.hasOwnProperty(r)&&(this[r]=t[r])};function C(e,t){var r,p=t,m=e[t],d=m>>4,y=m&=15;t+=1;var h=0,b=1;do{if(t==e.length)return[null,p];h+=(127&(r=e[t++]))*b,b*=128}while(0!==(128&r));var f=t+h;if(f>e.length)return[null,p];var g=new T(d);switch(d){case i:1&e[t++]&&(g.sessionPresent=!0),g.returnCode=e[t++];break;case n:var S=y>>1&3,I=D(e,t),N=E(e,t+=2,I);t+=I,S>0&&(g.messageIdentifier=D(e,t),t+=2);var v=new _(e.subarray(t,f));1==(1&y)&&(v.retained=!0),8==(8&y)&&(v.duplicate=!0),v.qos=S,v.destinationName=N,g.payloadMessage=v;break;case a:case o:case s:case u:case l:g.messageIdentifier=D(e,t);break;case c:g.messageIdentifier=D(e,t),t+=2,g.returnCode=e.subarray(t,f)}return[g,f]}function k(e,t,r){return t[r++]=e>>8,t[r++]=e%256,r}function A(e,t,r,i){return P(e,r,i=k(t,r,i)),i+t}function D(e,t){return 256*e[t]+e[t+1]}function R(e){for(var t=0,r=0;r2047?(55296<=i&&i<=56319&&(r++,t++),t+=3):i>127?t+=2:t++}return t}function P(e,t,r){for(var i=r,n=0;n>6&31|192,t[i++]=63&a|128):a<=65535?(t[i++]=a>>12&15|224,t[i++]=a>>6&63|128,t[i++]=63&a|128):(t[i++]=a>>18&7|240,t[i++]=a>>12&63|128,t[i++]=a>>6&63|128,t[i++]=63&a|128)}return t}function E(e,t,r){for(var i,n="",a=t;a65535&&(i-=65536,n+=String.fromCharCode(55296+(i>>10)),i=56320+(1023&i)),n+=String.fromCharCode(i)}return n}T.prototype.encode=function(){var e,t=(15&this.type)<<4,i=0,a=[],o=0;switch(void 0!==this.messageIdentifier&&(i+=2),this.type){case r:switch(this.mqttVersion){case 3:i+=N.length+3;break;case 4:i+=v.length+3}i+=R(this.clientId)+2,void 0!==this.willMessage&&(i+=R(this.willMessage.destinationName)+2,(e=this.willMessage.payloadBytes)instanceof Uint8Array||(e=new Uint8Array(c)),i+=e.byteLength+2),void 0!==this.userName&&(i+=R(this.userName)+2),void 0!==this.password&&(i+=R(this.password)+2);break;case p:t|=2;for(var u=0;u>=7)>0&&(i|=128),t[r++]=i}while(e>0&&r<4);return t}(i),d=l.length+1,y=new ArrayBuffer(i+d),h=new Uint8Array(y);if(h[0]=t,h.set(l,1),this.type==n)d=A(this.payloadMessage.destinationName,o,h,d);else if(this.type==r){switch(this.mqttVersion){case 3:h.set(N,d),d+=N.length;break;case 4:h.set(v,d),d+=v.length}var b=0;this.cleanSession&&(b=2),void 0!==this.willMessage&&(b|=4,b|=this.willMessage.qos<<3,this.willMessage.retained&&(b|=32)),void 0!==this.userName&&(b|=128),void 0!==this.password&&(b|=64),h[d++]=b,d=k(this.keepAliveInterval,h,d)}switch(void 0!==this.messageIdentifier&&(d=k(this.messageIdentifier,h,d)),this.type){case r:d=A(this.clientId,R(this.clientId),h,d),void 0!==this.willMessage&&(d=A(this.willMessage.destinationName,R(this.willMessage.destinationName),h,d),d=k(e.byteLength,h,d),h.set(e,d),d+=e.byteLength),void 0!==this.userName&&(d=A(this.userName,R(this.userName),h,d)),void 0!==this.password&&(d=A(this.password,R(this.password),h,d));break;case n:h.set(c,d);break;case p:for(u=0;u0&&(this.timeout=setTimeout(i(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},q=function(e,t,r,i){t||(t=30),this.timeout=setTimeout(function(e,t,r){return function(){return e.apply(t,r)}}(r,e,i),1e3*t),this.cancel=function(){clearTimeout(this.timeout)}},w=function(r,i,n,a,o){if(!("WebSocket"in e&&null!==e.WebSocket))throw new Error(I(g.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in e&&null!==e.ArrayBuffer))throw new Error(I(g.UNSUPPORTED,["ArrayBuffer"]));for(var s in this._trace("Paho.Client",r,i,n,a,o),this.host=i,this.port=n,this.path=a,this.uri=r,this.clientId=o,this._wsuri=null,this._localKey=i+":"+n+("/mqtt"!=a?":"+a:"")+":"+o+":",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)};w.prototype.host=null,w.prototype.port=null,w.prototype.path=null,w.prototype.uri=null,w.prototype.clientId=null,w.prototype.socket=null,w.prototype.connected=!1,w.prototype.maxMessageIdentifier=65536,w.prototype.connectOptions=null,w.prototype.hostIndex=null,w.prototype.onConnected=null,w.prototype.onConnectionLost=null,w.prototype.onMessageDelivered=null,w.prototype.onMessageArrived=null,w.prototype.traceFunction=null,w.prototype._msg_queue=null,w.prototype._buffered_msg_queue=null,w.prototype._connectTimeout=null,w.prototype.sendPinger=null,w.prototype.receivePinger=null,w.prototype._reconnectInterval=1,w.prototype._reconnecting=!1,w.prototype._reconnectTimeout=null,w.prototype.disconnectedPublishing=!1,w.prototype.disconnectedBufferSize=5e3,w.prototype.receiveBuffer=null,w.prototype._traceBuffer=null,w.prototype._MAX_TRACE_ENTRIES=100,w.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(I(g.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(I(g.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)},w.prototype.subscribe=function(e,t){if(this._trace("Client.subscribe",e,t),!this.connected)throw new Error(I(g.INVALID_STATE,["not connected"]));var r=new T(p);r.topics=e.constructor===Array?e:[e],void 0===t.qos&&(t.qos=0),r.requestedQos=[];for(var i=0;i0?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(I(g.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(I(g.BUFFER_FULL,[this.disconnectedBufferSize]));e.qos>0?this._requires_ack(t):(t.sequence=++this._sequence,this._buffered_msg_queue.unshift(t))}},w.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(I(g.INVALID_STATE,["not connecting or connected"]));var e=new T(h);this._notify_msg_sent[e]=f(this._disconnected,this),this._schedule_message(e)},w.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}},w.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},w.prototype.stopTrace=function(){delete this._traceBuffer},w.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=f(this._on_socket_open,this),this.socket.onmessage=f(this._on_socket_message,this),this.socket.onerror=f(this._on_socket_error,this),this.socket.onclose=f(this._on_socket_close,this),this.sendPinger=new x(this,this.connectOptions.keepAliveInterval),this.receivePinger=new x(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new q(this,this.connectOptions.timeout,this._disconnected,[g.CONNECT_TIMEOUT.code,I(g.CONNECT_TIMEOUT)])},w.prototype._schedule_message=function(e){this._msg_queue.unshift(e),this.connected&&this._process_queue()},w.prototype.store=function(e,r){var i={type:r.type,messageIdentifier:r.messageIdentifier,version:1};switch(r.type){case n:r.pubRecReceived&&(i.pubRecReceived=!0),i.payloadMessage={};for(var a="",o=r.payloadMessage.payloadBytes,s=0;s=2;){var c=parseInt(o.substring(0,2),16);o=o.substring(2,o.length),u[p++]=c}var m=new _(u);m.qos=i.payloadMessage.qos,m.destinationName=i.payloadMessage.destinationName,i.payloadMessage.duplicate&&(m.duplicate=!0),i.payloadMessage.retained&&(m.retained=!0),a.payloadMessage=m;break;default:throw Error(I(g.INVALID_STORED_DATA,[e,r]))}0===e.indexOf("Sent:"+this._localKey)?(a.payloadMessage.duplicate=!0,this._sentMessages[a.messageIdentifier]=a):0===e.indexOf("Received:"+this._localKey)&&(this._receivedMessages[a.messageIdentifier]=a)},w.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])},w.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===n&&this.store("Sent:",e),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},w.prototype._on_socket_open=function(){var e=new T(r,this.connectOptions);e.clientId=this.clientId,this._socket_send(e)},w.prototype._on_socket_message=function(e){this._trace("Client._on_socket_message",e.data);for(var t=this._deframeMessages(e.data),r=0;r0)for(var f=null;f=this._buffered_msg_queue.pop();)d.push(f),this.onMessageDelivered&&(this._notify_msg_sent[f]=this.onMessageDelivered(f.payloadMessage));d=d.sort((function(e,t){return e.sequence-t.sequence}));for(var N=0,v=d.length;N65535)throw new Error(I(g.INVALID_ARGUMENT,[i,"clientId"]));var c=new w(n,e,t,r,i);Object.defineProperties(this,{host:{get:function(){return e},set:function(){throw new Error(I(g.UNSUPPORTED_OPERATION))}},port:{get:function(){return t},set:function(){throw new Error(I(g.UNSUPPORTED_OPERATION))}},path:{get:function(){return r},set:function(){throw new Error(I(g.UNSUPPORTED_OPERATION))}},uri:{get:function(){return n},set:function(){throw new Error(I(g.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return c.clientId},set:function(){throw new Error(I(g.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return c.onConnected},set:function(e){if("function"!==typeof e)throw new Error(I(g.INVALID_TYPE,[typeof e,"onConnected"]));c.onConnected=e}},disconnectedPublishing:{get:function(){return c.disconnectedPublishing},set:function(e){c.disconnectedPublishing=e}},disconnectedBufferSize:{get:function(){return c.disconnectedBufferSize},set:function(e){c.disconnectedBufferSize=e}},onConnectionLost:{get:function(){return c.onConnectionLost},set:function(e){if("function"!==typeof e)throw new Error(I(g.INVALID_TYPE,[typeof e,"onConnectionLost"]));c.onConnectionLost=e}},onMessageDelivered:{get:function(){return c.onMessageDelivered},set:function(e){if("function"!==typeof e)throw new Error(I(g.INVALID_TYPE,[typeof e,"onMessageDelivered"]));c.onMessageDelivered=e}},onMessageArrived:{get:function(){return c.onMessageArrived},set:function(e){if("function"!==typeof e)throw new Error(I(g.INVALID_TYPE,[typeof e,"onMessageArrived"]));c.onMessageArrived=e}},trace:{get:function(){return c.traceFunction},set:function(e){if("function"!==typeof e)throw new Error(I(g.INVALID_TYPE,[typeof e,"onTrace"]));c.traceFunction=e}}}),this.connect=function(e){if(b(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(I(g.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(I(g.INVALID_ARGUMENT,[e.password,"connectOptions.password"]));if(e.willMessage){if(!(e.willMessage instanceof _))throw new Error(I(g.INVALID_TYPE,[e.willMessage,"connectOptions.willMessage"]));if(e.willMessage.stringPayload=null,"undefined"===typeof e.willMessage.destinationName)throw new Error(I(g.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(I(g.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));if(e.hosts.length<1)throw new Error(I(g.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));for(var t=!1,i=0;i=3&&(n.qos=r),arguments.length>=4&&(n.retained=i),c.send(n)},this.publish=function(e,t,r,i){var n;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof _)&&"string"!==typeof e)throw new Error("Invalid argument:"+typeof e);if("undefined"===typeof(n=e).destinationName)throw new Error(I(g.INVALID_ARGUMENT,[n.destinationName,"Message.destinationName"]));c.send(n)}else(n=new _(t)).destinationName=e,arguments.length>=3&&(n.qos=r),arguments.length>=4&&(n.retained=i),c.send(n)},this.disconnect=function(){c.disconnect()},this.getTraceLog=function(){return c.getTraceLog()},this.startTrace=function(){c.startTrace()},this.stopTrace=function(){c.stopTrace()},this.isConnected=function(){return c.connected}},Message:_}}("undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},e.exports=r()}).call(this,r(37))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(78);i.__exportStar(r(275),t),i.__exportStar(r(127),t)},function(e,t,r){r(4);var i=r(2),n=i.Service,a=i.apiLoader;a.services.textract={},i.Textract=n.defineService("textract",["2018-06-27"]),Object.defineProperty(a.services.textract,"2018-06-27",{get:function(){var e=r(282);return e.paginators=r(283).pagination,e},enumerable:!0,configurable:!0}),e.exports=i.Textract},function(e,t,r){r(4);var i=r(2);"undefined"!==typeof window&&(window.AWS=i),e.exports=i,"undefined"!==typeof self&&(self.AWS=i),r(284)},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i=r(26),n=r(0),a=function(e){if("undefined"!==typeof document)return null==e?Object(i.a)().body:("function"===typeof e&&(e=e()),e&&e.current&&(e=e.current),e&&e.nodeType?e:null)};function o(e,t){var r=Object(n.useState)((function(){return a(e)})),i=r[0],o=r[1];if(!i){var s=a(e);s&&o(s)}return Object(n.useEffect)((function(){t&&i&&t(i)}),[t,i]),Object(n.useEffect)((function(){var t=a(e);t!==i&&o(t)}),[e,i]),i}},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){var r=void 0===t?{}:t,i=r.propTypes,a=r.defaultProps,o=r.allowFallback,s=void 0!==o&&o,u=r.displayName,p=void 0===u?e.name||e.displayName:u,c=function(t,r){return e(t,r)};return Object.assign(n.default.forwardRef||!s?n.default.forwardRef(c):function(e){return c(e,null)},{displayName:p,propTypes:i,defaultProps:a})};var i,n=(i=r(0))&&i.__esModule?i:{default:i}},function(e,t,r){"use strict";var i=r(561).CopyToClipboard;i.CopyToClipboard=i,e.exports=i},function(e,t,r){t.__esModule=!0,t.Helmet=void 0;var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var h=function(e){var t,r;return r=t=function(t){function r(){return d(this,r),y(this,t.apply(this,arguments))}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)}(r,t),r.prototype.shouldComponentUpdate=function(e){return!(0,u.default)(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case c.TAG_NAMES.SCRIPT:case c.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case c.TAG_NAMES.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},r.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,a=e.newChildProps,o=e.nestedChildren;return i({},n,((t={})[r.type]=[].concat(n[r.type]||[],[i({},a,this.mapNestedChildrenToProps(r,o))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,a=e.newProps,o=e.newChildProps,s=e.nestedChildren;switch(n.type){case c.TAG_NAMES.TITLE:return i({},a,((t={})[n.type]=s,t.titleAttributes=i({},o),t));case c.TAG_NAMES.BODY:return i({},a,{bodyAttributes:i({},o)});case c.TAG_NAMES.HTML:return i({},a,{htmlAttributes:i({},o)})}return i({},a,((r={})[n.type]=i({},o),r))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=i({},t);return Object.keys(e).forEach((function(t){var n;r=i({},r,((n={})[t]=e[t],n))})),r},r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(e,t){var r=this,i={};return a.default.Children.forEach(e,(function(e){if(e&&e.props){var n=e.props,a=n.children,o=l(n,["children"]),s=(0,p.convertReactPropstoHtmlAttributes)(o);switch(r.warnOnInvalidChildren(e,a),e.type){case c.TAG_NAMES.LINK:case c.TAG_NAMES.META:case c.TAG_NAMES.NOSCRIPT:case c.TAG_NAMES.SCRIPT:case c.TAG_NAMES.STYLE:i=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:s,nestedChildren:a});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(i,t)},r.prototype.render=function(){var t=this.props,r=t.children,n=l(t,["children"]),o=i({},n);return r&&(o=this.mapChildrenToProps(r,o)),a.default.createElement(e,o)},n(r,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),r}(a.default.Component),t.propTypes={base:o.default.object,bodyAttributes:o.default.object,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node]),defaultTitle:o.default.string,defer:o.default.bool,encodeSpecialCharacters:o.default.bool,htmlAttributes:o.default.object,link:o.default.arrayOf(o.default.object),meta:o.default.arrayOf(o.default.object),noscript:o.default.arrayOf(o.default.object),onChangeClientState:o.default.func,script:o.default.arrayOf(o.default.object),style:o.default.arrayOf(o.default.object),title:o.default.string,titleAttributes:o.default.object,titleTemplate:o.default.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=(0,p.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},r}((0,s.default)(p.reducePropsToState,p.handleClientStateChange,p.mapStateOnServer)((function(){return null})));h.renderStatic=h.rewind,t.Helmet=h,t.default=h},function(e,t,r){"use strict";(function(t){var r="__global_unique_id__";e.exports=function(){return t[r]=(t[r]||0)+1}}).call(this,r(37))},function(e,t,r){"use strict";var i=r(132),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return i.isMemo(e)?o:s[e.$$typeof]||n}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i.Memo]=o;var p=Object.defineProperty,c=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,r,i){if("string"!==typeof r){if(y){var n=d(r);n&&n!==y&&e(t,n,i)}var o=c(r);m&&(o=o.concat(m(r)));for(var s=u(t),h=u(r),b=0;b=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},function(e,t,r){"use strict";var i=r(3),n=r(5),a=r(6),o=r.n(a),s=r(0),u=r.n(s),p=r(8),c=["xl","lg","md","sm","xs"],m=u.a.forwardRef((function(e,t){var r=e.bsPrefix,a=e.className,s=e.as,m=void 0===s?"div":s,l=Object(n.a)(e,["bsPrefix","className","as"]),d=Object(p.b)(r,"col"),y=[],h=[];return c.forEach((function(e){var t,r,i,n=l[e];if(delete l[e],null!=n&&"object"===typeof n){var a=n.span;t=void 0===a||a,r=n.offset,i=n.order}else t=n;var o="xs"!==e?"-"+e:"";null!=t&&y.push(!0===t?""+d+o:""+d+o+"-"+t),null!=i&&h.push("order"+o+"-"+i),null!=r&&h.push("offset"+o+"-"+r)})),y.length||y.push(d),u.a.createElement(m,Object(i.a)({},l,{ref:t,className:o.a.apply(void 0,[a].concat(y,h))}))}));m.displayName="Col",t.a=m},function(e,t,r){"use strict";var i=r(3),n=r(5),a=r(6),o=r.n(a),s=r(0),u=r.n(s),p=r(23),c=r(8),m=u.a.forwardRef((function(e,t){var r=e.bsPrefix,a=e.className,m=e.children,l=e.controlId,d=e.as,y=void 0===d?"div":d,h=Object(n.a)(e,["bsPrefix","className","children","controlId","as"]);r=Object(c.b)(r,"form-group");var b=Object(s.useMemo)((function(){return{controlId:l}}),[l]);return u.a.createElement(p.a.Provider,{value:b},u.a.createElement(y,Object(i.a)({},h,{ref:t,className:o()(a,r)}),m))}));m.displayName="FormGroup",t.a=m},function(e,t,r){"use strict";var i=r(3),n=r(5),a=r(6),o=r.n(a),s=r(0),u=r.n(s),p=(r(134),r(68)),c=r(23),m=r(8),l=u.a.forwardRef((function(e,t){var r,a,p=e.bsPrefix,l=e.type,d=e.size,y=e.id,h=e.className,b=e.isValid,f=e.isInvalid,g=e.plaintext,S=e.readOnly,I=e.as,N=void 0===I?"input":I,v=Object(n.a)(e,["bsPrefix","type","size","id","className","isValid","isInvalid","plaintext","readOnly","as"]),T=Object(s.useContext)(c.a).controlId;if(p=Object(m.b)(p,"form-control"),g)(a={})[p+"-plaintext"]=!0,r=a;else if("file"===l){var C;(C={})[p+"-file"]=!0,r=C}else{var k;(k={})[p]=!0,k[p+"-"+d]=d,r=k}return u.a.createElement(N,Object(i.a)({},v,{type:l,ref:t,readOnly:S,id:y||T,className:o()(h,r,b&&"is-valid",f&&"is-invalid")}))}));l.displayName="FormControl",l.Feedback=p.a,t.a=l},function(e,t,r){"use strict";var i=r(3),n=r(5),a=r(6),o=r.n(a),s=r(0),u=r.n(s),p=(r(134),r(148)),c=r(23),m=r(8),l=u.a.forwardRef((function(e,t){var r=e.bsPrefix,a=e.column,l=e.srOnly,d=e.className,y=e.htmlFor,h=Object(n.a)(e,["bsPrefix","column","srOnly","className","htmlFor"]),b=Object(s.useContext)(c.a).controlId;r=Object(m.b)(r,"form-label");var f=o()(d,r,l&&"sr-only",a&&"col-form-label");return y=y||b,a?u.a.createElement(p.a,Object(i.a)({as:"label",className:f,htmlFor:y},h)):u.a.createElement("label",Object(i.a)({ref:t,className:f,htmlFor:y},h))}));l.displayName="FormLabel",l.defaultProps={column:!1,srOnly:!1},t.a=l},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r(0);function n(){return Object(i.useReducer)((function(e){return!e}),!1)[1]}},function(e,t,r){"use strict";var i=r(0),n=function(e){return e&&"function"!==typeof e?function(t){e.current=t}:e};t.a=function(e,t){return Object(i.useMemo)((function(){return function(e,t){var r=n(e),i=n(t);return function(e){r&&r(e),i&&i(e)}}(e,t)}),[e,t])}},function(e,t,r){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);tx.length&&x.push(e)}function _(e,t,r){return null==e?0:function e(t,r,i,n){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case o:u=!0}}if(u)return i(n,t,""===r?"."+M(t,0):r),1;if(u=0,r=""===r?".":r+":",Array.isArray(t))for(var p=0;p