!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=247)}([function(e,t,r){var n=r(3),o=r(28),i=r(16),a=r(17),s=r(25),u=function(e,t,r){var c,l,p,f,d=e&u.F,h=e&u.G,m=e&u.S,g=e&u.P,v=e&u.B,b=h?n:m?n[t]||(n[t]={}):(n[t]||{}).prototype,y=h?o:o[t]||(o[t]={}),x=y.prototype||(y.prototype={});h&&(r=t);for(c in r)l=!d&&b&&void 0!==b[c],p=(l?b:r)[c],f=v&&l?s(p,n):g&&"function"==typeof p?s(Function.call,p):p,b&&a(b,c,p,e&u.U),y[c]!=p&&i(y,c,f),g&&x[c]!=p&&(x[c]=p)};n.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){var n=r(5);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){var n={util:r(11)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.145.0",Signers:{},Protocol:{Json:r(128),Query:r(193),Rest:r(90),RestJson:r(195),RestXml:r(196)},XML:{Builder:r(475),Parser:null},JSON:{Builder:r(129),Parser:r(130)},Model:{Api:r(219),Operation:r(220),Shape:r(66),Paginator:r(221),ResourceWaiter:r(222)},apiLoader:r(582)}),r(583),r(586),r(225),r(226),r(587),r(591),r(593),r(594),r(595),r(602),n.events=new n.SequentialExecutor},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(71)("wks"),o=r(44),i=r(3).Symbol,a="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=n},function(e,t,r){e.exports=!r(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(1),o=r(151),i=r(29),a=Object.defineProperty;t.f=r(7)?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(31),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t,r){"use strict";function n(){}function o(e,t){var r,o,i,a,s=j;for(a=arguments.length;a-- >2;)N.push(arguments[a]);for(t&&null!=t.children&&(N.length||N.push(t.children),delete t.children);N.length;)if((o=N.pop())&&void 0!==o.pop)for(a=o.length;a--;)N.push(o[a]);else"boolean"==typeof o&&(o=null),(i="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(i=!1)),i&&r?s[s.length-1]+=o:s===j?s=[o]:s.push(o),r=i;var u=new n;return u.nodeName=e,u.children=s,u.attributes=null==t?void 0:t,u.key=null==t?void 0:t.key,void 0!==R.vnode&&R.vnode(u),u}function i(e,t){for(var r in t)e[r]=t[r];return e}function a(e,t){return o(e.nodeName,i(i({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function s(e){!e._dirty&&(e._dirty=!0)&&1==L.push(e)&&(R.debounceRendering||U)(u)}function u(){var e,t=L;for(L=[];e=t.pop();)e._dirty&&A(e)}function c(e,t,r){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&l(e,t.nodeName):r||e._componentConstructor===t.nodeName}function l(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function p(e){var t=i({},e.attributes);t.children=e.children;var r=e.nodeName.defaultProps;if(void 0!==r)for(var n in r)void 0===t[n]&&(t[n]=r[n]);return t}function f(e,t){var r=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return r.normalizedNodeName=e,r}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,r,n,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)r&&r(null),n&&n(e);else if("class"!==t||o)if("style"===t){if(n&&"string"!=typeof n&&"string"!=typeof r||(e.style.cssText=n||""),n&&"object"==typeof n){if("string"!=typeof r)for(var i in r)i in n||(e.style[i]="");for(var i in n)e.style[i]="number"==typeof n[i]&&!1===M.test(i)?n[i]+"px":n[i]}}else if("dangerouslySetInnerHTML"===t)n&&(e.innerHTML=n.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),n?r||e.addEventListener(t,g,a):e.removeEventListener(t,g,a),(e._listeners||(e._listeners={}))[t]=n}else if("list"!==t&&"type"!==t&&!o&&t in e)m(e,t,null==n?"":n),null!=n&&!1!==n||e.removeAttribute(t);else{var s=o&&t!==(t=t.replace(/^xlink\:?/,""));null==n||!1===n?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof n&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):e.setAttribute(t,n))}else e.className=n||""}function m(e,t,r){try{e[t]=r}catch(e){}}function g(e){return this._listeners[e.type](R.event&&R.event(e)||e)}function v(){for(var e;e=q.pop();)R.afterMount&&R.afterMount(e),e.componentDidMount&&e.componentDidMount()}function b(e,t,r,n,o,i){F++||(H=null!=o&&void 0!==o.ownerSVGElement,B=null!=e&&!("__preactattr_"in e));var a=y(e,t,r,n,i);return o&&a.parentNode!==o&&o.appendChild(a),--F||(B=!1,i||v()),a}function y(e,t,r,n,o){var i=e,a=H;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),w(e,!0))),i.__preactattr_=!0,i;var s=t.nodeName;if("function"==typeof s)return I(e,t,r,n);if(H="svg"===s||"foreignObject"!==s&&H,s=String(s),(!e||!l(e,s))&&(i=f(s,H),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),w(e,!0)}var u=i.firstChild,c=i.__preactattr_,p=t.children;if(null==c){c=i.__preactattr_={};for(var d=i.attributes,h=d.length;h--;)c[d[h].name]=d[h].value}return!B&&p&&1===p.length&&"string"==typeof p[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=p[0]&&(u.nodeValue=p[0]):(p&&p.length||null!=u)&&x(i,p,r,n,B||null!=c.dangerouslySetInnerHTML),k(i,t.attributes,c),H=a,i}function x(e,t,r,n,o){var i,a,s,u,l,p=e.childNodes,f=[],h={},m=0,g=0,v=p.length,b=0,x=t?t.length:0;if(0!==v)for(var S=0;S=e.length)return t.push(null);var o=r+n;o>e.length&&(o=e.length),t.push(e.slice(r,o)),r=o},t},concat:function(e){var t,r=0,n=0,o=null;for(t=0;t>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=new i.Buffer(t)),i.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return i.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return i.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var o=i.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=new i.Buffer(t));var a=i.arraySliceFn(t),s=i.Buffer.isBuffer(t);if(i.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",function(e){o.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,o.digest(r))});else{if(!n||!a||s||"undefined"==typeof FileReader){i.isBrowser()&&"object"==typeof t&&!s&&(t=new i.Buffer(new Uint8Array(t)));var u=o.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new i.Buffer(new Uint8Array(l.result));o.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)return void n(null,o.digest(r));var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,c,e))},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),o.config.isClockSkewed},applyClockOffset:function(e){e&&(o.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){if(void 0===t&&o&&o.config&&(t=o.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t)var r=!0;Array.isArray(e)||(e=[e]);for(var n=0;n=500||429===n});o&&a.retryable&&(a.retryAfter=o),u(a)}})},u)};o.util.defer(c)},uuid:{v4:function(){return r(604).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(e):"function"==typeof n?n(e):setTimeout(e,0)},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE"};e.exports=i}).call(t,r(65),r(472).setImmediate)},function(e,t,r){var n=r(30);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(8),o=r(43);e.exports=r(7)?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(3),o=r(16),i=r(15),a=r(44)("src"),s=Function.toString,u=(""+s).split("toString");r(28).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var c="function"==typeof r;c&&(i(r,"name")||o(r,"name",t)),e[t]!==r&&(c&&(i(r,a)||o(r,a,e[t]?""+e[t]:u.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:o(e,t,r):(delete e[t],o(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,r){var n=r(0),o=r(4),i=r(30),a=/"/g,s=function(e,t,r,n){var o=String(i(e)),s="<"+t;return""!==r&&(s+=" "+r+'="'+String(n).replace(a,""")+'"'),s+">"+o+""};e.exports=function(e,t){var r={};r[e]=t(s),n(n.P+n.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},function(e,t,r){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,r){function n(o,i){try{var a=t[o](i),s=a.value}catch(e){return void r(e)}if(!a.done)return Promise.resolve(s).then(function(e){n("next",e)},function(e){n("throw",e)});e(s)}return n("next")})}}function o(){var e=se.getCurrentUser();return e&&e.signOut(),{type:K}}function i(e){var t=e.find(function(e){return"email"===e.getName()});return t&&t.getValue()}function a(){return{type:J,busy:!0}}function s(){return{type:J,busy:!1}}function u(e){return{type:ne,accountID:e}}function c(e){var t=this;return function(){var r=n(regeneratorRuntime.mark(function r(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,G.addAdditionalEmail(e);case 3:n({type:Z,email:e}),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),n((0,H.setError)(t.t0));case 9:case"end":return t.stop()}},r,t,[[0,6]])}));return function(e){return r.apply(this,arguments)}}()}function l(e){var t=this;return function(){var r=n(regeneratorRuntime.mark(function r(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,G.removeAdditionalEmail(e);case 3:n({type:ee,email:e}),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),n((0,H.setError)(t.t0));case 9:case"end":return t.stop()}},r,t,[[0,6]])}));return function(e){return r.apply(this,arguments)}}()}function p(e){var t=this;return function(){var r=n(regeneratorRuntime.mark(function r(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,G.resendConfirmationEmail(e);case 3:n((0,H.notify)("Confirmation mail sent")),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),n((0,H.setError)(t.t0));case 9:case"end":return t.stop()}},r,t,[[0,6]])}));return function(e){return r.apply(this,arguments)}}()}function f(){var e=this;return function(){var t=n(regeneratorRuntime.mark(function t(r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r({type:Q,emails:[]}),e.prev=1,e.t0=r,e.t1=Q,e.next=6,G.getAdditionalEmails();case 6:e.t2=e.sent,e.t3={type:e.t1,emails:e.t2},(0,e.t0)(e.t3),e.next=14;break;case 11:e.prev=11,e.t4=e.catch(1),r((0,H.setError)(e.t4));case 14:case"end":return e.stop()}},t,e,[[1,11]])}));return function(e){return t.apply(this,arguments)}}()}function d(e){return function(t){var r=se.getCurrentUser();e&&r?(t(a()),r.getSession(function(e,n){if(e)return t(s()),void t(o());r.getUserAttributes(function(e,n){if(e)return void t(s());t(y(r,i(n))),t(_()),t(s())})})):t(o())}}function h(e,t,r){return function(n){var o=se.getCurrentUser();if(!o)return void n((0,H.setError)("No current user"));var i=new z.AuthenticationDetails({Username:e,Password:t});n(a()),o.authenticateUser(i,{onSuccess:function(e){o.changePassword(t,r,function(e,t){if(n(s()),e)return void n((0,H.setError)(e.message));n((0,H.notify)("Password changed successfully")),n(A("oldPassword",void 0)),n(A("password",void 0)),n(A("confirmPassword",void 0))})},onFailure:function(e){if("UserNotConfirmedException"==e.code)return n({type:X,user:{state:"CONFIRMATIONCODE",cognitoUser:o}}),void n(s());n((0,H.setError)(e.message)),n(s())},newPasswordRequired:function(e,t){delete e.email_verified,n({type:X,user:{state:"NEWPASSWORD",cognitoUser:o,userAttributes:e,password:"",confirmPassword:"",oldPassword:""}}),n(s())}})}}function m(e,t,r){return function(n){var o=[new z.CognitoUserAttribute({Name:"email",Value:e})];r&&o.push(new z.CognitoUserAttribute({Name:"custom:resellerId",Value:r})),n(a()),se.signUp(e,t,o,null,function(e,t){if(n(s()),e)return void n((0,H.setError)(e.message));n({type:X,user:{state:"CONFIRMATIONCODE",cognitoUser:t.user}})})}}function g(e){var t=this;return function(){var r=n(regeneratorRuntime.mark(function r(n){var o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e&&null!==e){t.next=4;break}return o=(0,V.getReseller)(e),t.next=4,o(n);case 4:n({type:oe});case 5:case"end":return t.stop()}},r,t)}));return function(e){return r.apply(this,arguments)}}()}function v(){return{type:X,user:{state:"LOGIN",password:"",confirmPassword:"",oldPassword:""}}}function b(e,t,r){return function(n){n(a()),e.completeNewPasswordChallenge(r,t,{onSuccess:function(r){n(y(e,t.email)),n(_()),n(s())},onFailure:function(e){n((0,H.setError)(e.message)),n(s())}})}}function y(e,t){return/^\/signup/.test(location.pathname)&&(0,W.route)("/"),{type:Y,user:{userid:e.getUsername(),username:t},cognitoUser:e}}function x(e,t){return function(r){var n=new z.AuthenticationDetails({Username:e,Password:t}),o=new z.CognitoUser({Username:e,Pool:se});r(a()),o.authenticateUser(n,{onSuccess:function(t){r(y(o,e)),r(_()),r(s())},onFailure:function(e){return"UserNotConfirmedException"==e.code?(r({type:X,user:{state:"CONFIRMATIONCODE",cognitoUser:o}}),void r(s())):"PasswordResetRequiredException"==e.code?(r({type:X,user:{state:"NEWPASSWORD",cognitoUser:o,userAttributes:userAttributes,password:"",confirmPassword:"",oldPassword:""}}),void r(s())):(r((0,H.setError)(e.message)),void r(s()))},newPasswordRequired:function(e,t){delete e.email_verified,r({type:X,user:{state:"NEWPASSWORD",cognitoUser:o,userAttributes:e,password:"",confirmPassword:"",oldPassword:""}}),r(s())}})}}function w(e){return function(t){var r=new z.CognitoUser({Username:e,Pool:se});t(a()),r.resendConfirmationCode(function(e,n){if(t(s()),e)return void t((0,H.setError)(e.message));t({type:X,user:{state:"CONFIRMATIONCODE",cognitoUser:r}})})}}function S(e,t,r){return function(t){t(a()),e.confirmRegistration(r,!0,function(e,r){if(t(s()),e)return void t((0,H.setError)(e.message));t(v()),(0,W.route)("/"),t((0,H.notify)("Email verified successfully. Now you can log in"))})}}function k(e){return function(t){var r={Username:e,Pool:se},n=new z.CognitoUser(r);t(a()),n.forgotPassword({onFailure:function(e){t((0,H.setError)(e.message)),t(v()),t(s())},inputVerificationCode:function(e){t({type:X,user:{state:"FORGOTPASSWORD",cognitoUser:n}}),t(s())}})}}function E(e,t,r){return function(n){e.confirmPassword(t,r,{onSuccess:function(e){n((0,H.notify)("Successfully resetted the account. You can now log in with the new password.")),n(v()),n(s())},onFailure:function(e){return n((0,H.setError)(e.message))}})}}function _(){var e=this;return function(){var t=n(regeneratorRuntime.mark(function t(r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r({type:te,details:{requested:!0}}),e.t0=r,e.t1=te,e.t2=F,e.t3={},e.next=8,G.getUserDetails();case 8:e.t4=e.sent,e.t5={requested:!0,have:!0},e.t6=(0,e.t2)(e.t3,e.t4,e.t5),e.t7={type:e.t1,details:e.t6},(0,e.t0)(e.t7),e.next=18;break;case 15:e.prev=15,e.t8=e.catch(0),r((0,H.setError)(e.t8));case 18:case"end":return e.stop()}},t,e,[[0,15]])}));return function(e){return t.apply(this,arguments)}}()}function C(e){var t=this;return function(){var r=n(regeneratorRuntime.mark(function r(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,G.patch({timeZone:e});case 3:n({type:re,details:{timeZone:e}}),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),n((0,H.setError)(t.t0));case 9:case"end":return t.stop()}},r,t,[[0,6]])}));return function(e){return r.apply(this,arguments)}}()}function T(e){var t=this;return function(){var r=n(regeneratorRuntime.mark(function r(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,G.patch({skipMainEmailWhenReporting:e});case 3:n({type:re,details:{skipMainEmailWhenReporting:e}}),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),n((0,H.setError)(t.t0));case 9:case"end":return t.stop()}},r,t,[[0,6]])}));return function(e){return r.apply(this,arguments)}}()}function A(e,t){return{type:$,property:e,value:t}}function I(e){var t=this;return function(){var r=n(regeneratorRuntime.mark(function r(n){var o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,G.removeGroup(e);case 3:o=t.sent,n({type:re,details:o}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),n((0,H.setError)(t.t0));case 10:case"end":return t.stop()}},r,t,[[0,7]])}));return function(e){return r.apply(this,arguments)}}()}function P(e){var t=this;return function(){var r=n(regeneratorRuntime.mark(function r(n){var o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,G.addGroup(e);case 3:o=t.sent,n({type:re,details:{groups:o}}),n({type:ae,editing:!1,editingGroupID:null,editingGroupName:""}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),n((0,H.setError)(t.t0));case 11:case"end":return t.stop()}},r,t,[[0,8]])}));return function(e){return r.apply(this,arguments)}}()}function O(e,t){var r=this;return function(){var o=n(regeneratorRuntime.mark(function n(o){var i;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,G.modifyGroup(e,t);case 3:i=r.sent,o({type:re,details:{groups:i}}),o({type:ae,editing:!1,editingGroupID:null,editingGroupName:""}),r.next=11;break;case 8:r.prev=8,r.t0=r.catch(0),o((0,H.setError)(r.t0));case 11:case"end":return r.stop()}},n,r,[[0,8]])}));return function(e){return o.apply(this,arguments)}}()}function D(e){return{type:ie,value:e}}function R(){return{type:ae,editing:!0,editingGroupID:null,groupName:""}}function N(e,t){return{type:ae,editing:!0,editingGroupID:e,groupName:t}}function j(){return{type:ae,editing:!1,editingGroupID:null,groupName:""}}function U(e){var t=this;return function(){var r=n(regeneratorRuntime.mark(function r(n){var o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,G.addNotifyGroup(e);case 3:o=t.sent,n({type:re,details:{notify_groups:o}}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),n((0,H.setError)(t.t0));case 10:case"end":return t.stop()}},r,t,[[0,7]])}));return function(e){return r.apply(this,arguments)}}()}function M(e){var t=this;return function(){var r=n(regeneratorRuntime.mark(function r(n){var o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,G.removeNotifyGroup(e);case 3:o=t.sent,n({type:re,details:{notify_groups:o}}),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),n((0,H.setError)(t.t0));case 10:case"end":return t.stop()}},r,t,[[0,7]])}));return function(e){return r.apply(this,arguments)}}()}function L(e,t){var r=this;return function(){var o=n(regeneratorRuntime.mark(function n(o){var i;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,G.addNotifyGroupToRecipient(e,t);case 3:i=r.sent,o({type:Q,emails:i}),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),o((0,H.setError)(r.t0));case 10:case"end":return r.stop()}},n,r,[[0,7]])}));return function(e){return o.apply(this,arguments)}}()}function q(e,t){var r=this;return function(){var o=n(regeneratorRuntime.mark(function n(o){var i;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,G.removeNotifyGroupFromRecipient(e,t);case 3:i=r.sent,o({type:Q,emails:i}),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),o((0,H.setError)(r.t0));case 10:case"end":return r.stop()}},n,r,[[0,7]])}));return function(e){return o.apply(this,arguments)}}()}Object.defineProperty(t,"__esModule",{value:!0}),t.USER_SET_EDITING=t.USER_SET_EDITGROUPNAME=t.USER_START_SIGNUP=t.USER_MANAGE_ACCOUNTID_CHANGED=t.USER_UPDATE_DETAILS=t.USER_GOT_DETAILS=t.USER_REMOVE_ADDITIONAL_EMAIL=t.USER_ADD_ADDITIONAL_EMAIL=t.USER_GOT_ADDITIONAL_EMAILS=t.USER_BUSY=t.USER_LOGIN_PROGRESS=t.USER_FORM_CHANGE=t.USER_LOGGED_IN=t.USER_LOGGED_OUT=void 0;var F=Object.assign||function(e){for(var t=1;t does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions."))}function a(){var e=[],t=[];return{clear:function(){t=se,e=se},notify:function(){for(var r=e=t,n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=n.getDisplayName,i=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,a=n.methodName,c=void 0===a?"connectAdvanced":a,l=n.renderCountProp,p=void 0===l?void 0:l,f=n.shouldHandleStateChanges,d=void 0===f||f,h=n.storeKey,m=void 0===h?"store":h,g=n.withRef,v=void 0!==g&&g,b=K(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),y=m+"Subscription",x=le++,w=(t={},t[m]=B,t[y]=H,t),S=(r={},r[y]=H,r);return function(t){ae("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var r=t.displayName||t.name||"Component",n=i(r),o=W({},b,{getDisplayName:i,methodName:c,renderCountProp:p,shouldHandleStateChanges:d,storeKey:m,withRef:v,displayName:n,wrappedComponentName:r,WrappedComponent:t}),a=function(r){function i(e,t){z(this,i);var o=Y(this,r.call(this,e,t));return o.version=x,o.state={},o.renderCount=0,o.store=e[m]||t[m],o.propsMode=Boolean(e[m]),o.setWrappedInstance=o.setWrappedInstance.bind(o),ae(o.store,'Could not find "'+m+'" in either the context or props of "'+n+'". Either wrap the root component in a , or explicitly pass "'+m+'" as a prop to "'+n+'".'),o.initSelector(),o.initSubscription(),o}return V(i,r),i.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[y]=t||this.context[y],e},i.prototype.componentDidMount=function(){d&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},i.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},i.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},i.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=s,this.store=null,this.selector.run=s,this.selector.shouldComponentUpdate=!1},i.prototype.getWrappedInstance=function(){return ae(v,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},i.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},i.prototype.initSelector=function(){var t=e(this.store.dispatch,o);this.selector=u(t,this.store),this.selector.run(this.props)},i.prototype.initSubscription=function(){if(d){var e=(this.propsMode?this.props:this.context)[y];this.subscription=new ce(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},i.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(pe)):this.notifyNestedSubs()},i.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},i.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},i.prototype.addExtraProps=function(e){if(!(v||p||this.propsMode&&this.subscription))return e;var t=W({},e);return v&&(t.ref=this.setWrappedInstance),p&&(t[p]=this.renderCount++),this.propsMode&&this.subscription&&(t[y]=this.subscription),t},i.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(M.h)(t,this.addExtraProps(e.props))},i}(M.Component);return a.WrappedComponent=t,a.displayName=n,a.childContextTypes=S,a.contextTypes=w,a.prototype.componentWillUpdate=function(){var e=this;if(this.version!==x){this.version=x,this.initSelector();var t=[];this.subscription&&(t=this.subscription.listeners.get(),this.subscription.tryUnsubscribe()),this.initSubscription(),d&&(this.subscription.trySubscribe(),t.forEach(function(t){return e.subscription.listeners.subscribe(t)}))}},ie(a,t)}}function l(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function p(e,t){if(l(e,t))return!0;if("object"!==(void 0===e?"undefined":G(e))||null===e||"object"!==(void 0===t?"undefined":G(t))||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o=0;n--){var o=t[n](e);if(o)return o}return function(t,n){throw new Error("Invalid value of type "+(void 0===e?"undefined":G(e))+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function U(e,t){return e===t}r.d(t,"Provider",function(){return X}),r.d(t,"connect",function(){return Ue}),r.d(t,"connectAdvanced",function(){return c});var M=r(10),L=r(127),q={only:function(e){return e&&e[0]||null}};n.isRequired=n;var F={element:n,func:n,shape:function(){return n},instanceOf:function(){return n}},H=F.shape({trySubscribe:F.func.isRequired,tryUnsubscribe:F.func.isRequired,notifyNestedSubs:F.func.isRequired,isSubscribed:F.func.isRequired}),B=F.shape({subscribe:F.func.isRequired,dispatch:F.func.isRequired,getState:F.func.isRequired}),G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},W=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Y=function(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},$=!1,X=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",r=arguments[1],n=r||t+"Subscription",o=function(e){function r(n,o){z(this,r);var i=Y(this,e.call(this,n,o));return i[t]=n.store,i}return V(r,e),r.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[n]=null,e},r.prototype.render=function(){return q.only(this.props.children)},r}(M.Component);return o.prototype.componentWillReceiveProps=function(e){this[t]!==e.store&&i()},o.childContextTypes=(e={},e[t]=B.isRequired,e[n]=H,e),o}(),J={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},Q={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Z=Object.defineProperty,ee=Object.getOwnPropertyNames,te=Object.getOwnPropertySymbols,re=Object.getOwnPropertyDescriptor,ne=Object.getPrototypeOf,oe=ne&&ne(Object),ie=function e(t,r,n){if("string"!=typeof r){if(oe){var o=ne(r);o&&o!==oe&&e(t,o,n)}var i=ee(r);te&&(i=i.concat(te(r)));for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,r=void 0===t?c:t,n=e.mapStateToPropsFactories,o=void 0===n?Ne:n,i=e.mapDispatchToPropsFactories,a=void 0===i?Re:i,s=e.mergePropsFactories,u=void 0===s?je:s,l=e.selectorFactory,f=void 0===l?N:l;return function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=i.pure,c=void 0===s||s,l=i.areStatesEqual,d=void 0===l?U:l,h=i.areOwnPropsEqual,m=void 0===h?p:h,g=i.areStatePropsEqual,v=void 0===g?p:g,b=i.areMergedPropsEqual,y=void 0===b?p:b,x=K(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=j(e,o,"mapStateToProps"),S=j(t,a,"mapDispatchToProps"),k=j(n,u,"mergeProps");return r(f,W({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:S,initMergeProps:k,pure:c,areStatesEqual:d,areOwnPropsEqual:m,areStatePropsEqual:v,areMergedPropsEqual:y},x))}}(),Me={Provider:X,connect:Ue,connectAdvanced:c};t.default=Me}.call(t,r(14))},function(e,t,r){var n=r(13);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){"use strict";var n=r(4);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){var r=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(5);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(0),o=r(28),i=r(4);e.exports=function(e,t){var r=(o.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*i(function(){r(1)}),"Object",a)}},function(e,t,r){var n=r(25),o=r(62),i=r(12),a=r(9),s=r(120);e.exports=function(e,t){var r=1==e,u=2==e,c=3==e,l=4==e,p=6==e,f=5==e||p,d=t||s;return function(t,s,h){for(var m,g,v=i(t),b=o(v),y=n(s,h,3),x=a(b.length),w=0,S=r?d(t,x):u?d(t,0):void 0;x>w;w++)if((f||w in b)&&(m=b[w],g=y(m,w,v),e))if(r)S[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:S.push(m)}else if(l)return!1;return p?-1:c||l?l:S}}},function(e,t){function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=r},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){"use strict";if(r(7)){var n=r(45),o=r(3),i=r(4),a=r(0),s=r(81),u=r(126),c=r(25),l=r(51),p=r(43),f=r(16),d=r(53),h=r(31),m=r(9),g=r(177),v=r(47),b=r(29),y=r(15),x=r(64),w=r(5),S=r(12),k=r(117),E=r(48),_=r(23),C=r(49).f,T=r(119),A=r(44),I=r(6),P=r(33),O=r(72),D=r(79),R=r(122),N=r(58),j=r(76),U=r(50),M=r(121),L=r(167),q=r(8),F=r(22),H=q.f,B=F.f,G=o.RangeError,z=o.TypeError,W=o.Uint8Array,V=Array.prototype,K=u.ArrayBuffer,Y=u.DataView,$=P(0),X=P(2),J=P(3),Q=P(4),Z=P(5),ee=P(6),te=O(!0),re=O(!1),ne=R.values,oe=R.keys,ie=R.entries,ae=V.lastIndexOf,se=V.reduce,ue=V.reduceRight,ce=V.join,le=V.sort,pe=V.slice,fe=V.toString,de=V.toLocaleString,he=I("iterator"),me=I("toStringTag"),ge=A("typed_constructor"),ve=A("def_constructor"),be=s.CONSTR,ye=s.TYPED,xe=s.VIEW,we=P(1,function(e,t){return Ce(D(e,e[ve]),t)}),Se=i(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),ke=!!W&&!!W.prototype.set&&i(function(){new W(1).set({})}),Ee=function(e,t){var r=h(e);if(r<0||r%t)throw G("Wrong offset!");return r},_e=function(e){if(w(e)&&ye in e)return e;throw z(e+" is not a typed array!")},Ce=function(e,t){if(!(w(e)&&ge in e))throw z("It is not a typed array constructor!");return new e(t)},Te=function(e,t){return Ae(D(e,e[ve]),t)},Ae=function(e,t){for(var r=0,n=t.length,o=Ce(e,n);n>r;)o[r]=t[r++];return o},Ie=function(e,t,r){H(e,t,{get:function(){return this._d[r]}})},Pe=function(e){var t,r,n,o,i,a,s=S(e),u=arguments.length,l=u>1?arguments[1]:void 0,p=void 0!==l,f=T(s);if(void 0!=f&&!k(f)){for(a=f.call(s),n=[],t=0;!(i=a.next()).done;t++)n.push(i.value);s=n}for(p&&u>2&&(l=c(l,arguments[2],2)),t=0,r=m(s.length),o=Ce(this,r);r>t;t++)o[t]=p?l(s[t],t):s[t];return o},Oe=function(){for(var e=0,t=arguments.length,r=Ce(this,t);t>e;)r[e]=arguments[e++];return r},De=!!W&&i(function(){de.call(new W(1))}),Re=function(){return de.apply(De?pe.call(_e(this)):_e(this),arguments)},Ne={copyWithin:function(e,t){return L.call(_e(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Q(_e(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return M.apply(_e(this),arguments)},filter:function(e){return Te(this,X(_e(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Z(_e(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(_e(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){$(_e(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(_e(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(_e(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(_e(this),arguments)},lastIndexOf:function(e){return ae.apply(_e(this),arguments)},map:function(e){return we(_e(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(_e(this),arguments)},reduceRight:function(e){return ue.apply(_e(this),arguments)},reverse:function(){for(var e,t=this,r=_e(t).length,n=Math.floor(r/2),o=0;o1?arguments[1]:void 0)},sort:function(e){return le.call(_e(this),e)},subarray:function(e,t){var r=_e(this),n=r.length,o=v(e,n);return new(D(r,r[ve]))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,m((void 0===t?n:v(t,n))-o))}},je=function(e,t){return Te(this,pe.call(_e(this),e,t))},Ue=function(e){_e(this);var t=Ee(arguments[1],1),r=this.length,n=S(e),o=m(n.length),i=0;if(o+t>r)throw G("Wrong length!");for(;i255?255:255&n),o.v[d](r*t+o.o,n,Se)},I=function(e,t){H(e,t,{get:function(){return T(this,t)},set:function(e){return A(this,t,e)},enumerable:!0})};y?(h=r(function(e,r,n,o){l(e,h,c,"_d");var i,a,s,u,p=0,d=0;if(w(r)){if(!(r instanceof K||"ArrayBuffer"==(u=x(r))||"SharedArrayBuffer"==u))return ye in r?Ae(h,r):Pe.call(h,r);i=r,d=Ee(n,t);var v=r.byteLength;if(void 0===o){if(v%t)throw G("Wrong length!");if((a=v-d)<0)throw G("Wrong length!")}else if((a=m(o)*t)+d>v)throw G("Wrong length!");s=a/t}else s=g(r),a=s*t,i=new K(a);for(f(e,"_d",{b:i,o:d,l:a,e:s,v:new Y(i)});p1&&void 0!==arguments[1]?arguments[1]:{};return u?new Promise(function(r,o){var i=this;u.getSession(function(){var u=n(regeneratorRuntime.mark(function n(u,c){var l,p;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return u&&o(u),n.prev=1,l=t.headers||{},c&&(l.Authorization=c.getIdToken().getJwtToken()),n.next=6,fetch("https://fbk7c7z2xj.execute-api.us-east-1.amazonaws.com/prod/"+e,a({method:"GET"},t,{headers:l}));case 6:return p=n.sent,n.next=9,s(p);case 9:r(p),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(1),o(n.t0);case 15:case"end":return n.stop()}},n,i,[[1,12]])}));return function(e,t){return u.apply(this,arguments)}}())}):fetch("https://fbk7c7z2xj.execute-api.us-east-1.amazonaws.com/prod/"+e,a({method:"GET"},t))}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=400&&t.status<600)){e.next=6;break}if(401!=t.status){e.next=3;break}throw"Access denied";case 3:return e.next=5,t.text();case 5:throw e.sent;case 6:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}();t.setUser=o,t.apiFetch=i;var u},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t){e.exports=!1},function(e,t,r){var n=r(153),o=r(104);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){var n=r(31),o=Math.max,i=Math.min;e.exports=function(e,t){return e=n(e),e<0?o(e+t,0):i(e,t)}},function(e,t,r){var n=r(1),o=r(154),i=r(104),a=r(103)("IE_PROTO"),s=function(){},u=function(){var e,t=r(101)("iframe"),n=i.length;for(t.style.display="none",r(105).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("