/*! For license information please see main.aacd1fd1.js.LICENSE.txt */ !function(){var e={45482:function(e,t,r){"use strict";var n=r(82793),i=r(683),a="/*|*/",o=a+"}";function s(e){e&&u.current.insert(e+"}")}var u={current:null},c=function(e,t,r,n,i,c,l,p,m,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return u.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===p)return t+a;break;case 3:switch(p){case 102:case 112:return u.current.insert(r[0]+t),"";default:return t+(0===d?a:"")}case-2:t.split(o).forEach(s)}};t.Z=function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var a=new i.Z(t);var o,s={};o=e.container||document.head;var l,p=document.querySelectorAll("style[data-emotion-"+r+"]");Array.prototype.forEach.call(p,(function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach((function(e){s[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),a.use(e.stylisPlugins)(c),l=function(e,t,r,n){var i=t.name;u.current=r,a(e,t.styles),n&&(m.inserted[i]=!0)};var m={key:r,sheet:new n.m({key:r,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:s,registered:{},insert:l};return m}},64274:function(e,t,r){"use strict";r.r(t),r.d(t,{CacheProvider:function(){return m},ClassNames:function(){return A},Global:function(){return k},ThemeContext:function(){return p},createElement:function(){return N},css:function(){return v.Z},jsx:function(){return N},keyframes:function(){return C},withEmotionCache:function(){return d}});var n=r(94578),i=r(72791),a=r(45482);function o(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]):n+=r+" "})),n}var s=function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+n,i,e.sheet,!0);i=i.next}while(void 0!==i)}},u=r(19433),c=Object.prototype.hasOwnProperty,l=(0,i.createContext)("undefined"!==typeof HTMLElement?(0,a.Z)():null),p=(0,i.createContext)({}),m=l.Provider,d=function(e){var t=function(t,r){return(0,i.createElement)(l.Consumer,null,(function(n){return e(t,n,r)}))};return(0,i.forwardRef)(t)},y="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h=function(e,t){var r={};for(var n in t)c.call(t,n)&&(r[n]=t[n]);return r[y]=e,r},f=function(){return null},b=function(e,t,r,n){var a=null===r?t.css:t.css(r);"string"===typeof a&&void 0!==e.registered[a]&&(a=e.registered[a]);var l=t[y],p=[a],m="";"string"===typeof t.className?m=o(e.registered,p,t.className):null!=t.className&&(m=t.className+" ");var d=(0,u.O)(p);s(e,d,"string"===typeof l);m+=e.key+"-"+d.name;var h={};for(var b in t)c.call(t,b)&&"css"!==b&&b!==y&&(h[b]=t[b]);h.ref=n,h.className=m;var g=(0,i.createElement)(l,h),S=(0,i.createElement)(f,null);return(0,i.createElement)(i.Fragment,null,S,g)},g=d((function(e,t,r){return"function"===typeof e.css?(0,i.createElement)(p.Consumer,null,(function(n){return b(t,e,n,r)})):b(t,e,null,r)}));var S=r(82793),v=r(89550),N=function(e,t){var r=arguments;if(null==t||!c.call(t,"css"))return i.createElement.apply(void 0,r);var n=r.length,a=new Array(n);a[0]=g,a[1]=h(e,t);for(var o=2;o=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},i=r(63840);var a=/[A-Z]|^ms/g,o=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!==typeof e},c=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),l=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(o,(function(e,t,r){return m={name:t,styles:r,next:m},t}))}return 1===i.Z[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function p(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return m={name:r.name,styles:r.styles,next:m},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)m={name:i.name,styles:i.styles,next:m},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;id)&&(B=(U=U.replace(" ",":")).length),0n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(f,"$1"+e.trim());case 58:return e.trim()+t.replace(f,"$1"+e.trim());default:if(0<1*r&&0u.charCodeAt(8))break;case 115:o=o.replace(u,"-webkit-"+u)+";"+o;break;case 207:case 102:o=o.replace(u,"-webkit-"+(102n.charCodeAt(0)&&(n=n.trim()),n=[n],0-1});var i=["[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 n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},60555:function(e,t,r){var n=r(79488);function i(e,t){this.hash=new e,this.outer=new e;var r=function(e,t){var r=n.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var i=new e;i.update(r),r=i.digest()}var a=new Uint8Array(e.BLOCK_SIZE);return a.set(r),a}(e,t),i=new Uint8Array(e.BLOCK_SIZE);i.set(r);for(var a=0;a>>32-i)+r&4294967295}function u(e,t,r,n,i,a,o){return s(t&r|~t&n,e,t,i,a,o)}function c(e,t,r,n,i,a,o){return s(t&n|r&~n,e,t,i,a,o)}function l(e,t,r,n,i,a,o){return s(t^r^n,e,t,i,a,o)}function p(e,t,r,n,i,a,o){return s(r^(t|~n),e,t,i,a,o)}e.exports=o,o.BLOCK_SIZE=a,o.prototype.update=function(e){if(n.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=n.convertToBuffer(e),r=0,i=t.byteLength;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),i--,this.bufferLength===a&&(this.hashBuffer(),this.bufferLength=0);return this},o.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,n=t.bufferLength,o=8*t.bytesHashed;if(r.setUint8(this.bufferLength++,128),n%a>=a-8){for(var s=this.bufferLength;s>>0,!0),r.setUint32(a-4,Math.floor(o/4294967296),!0),this.hashBuffer(),this.finished=!0}var u=new DataView(new ArrayBuffer(16));for(s=0;s<4;s++)u.setUint32(4*s,this.state[s],!0);var c=new i(u.buffer,u.byteOffset,u.byteLength);return e?c.toString(e):c},o.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],a=t[3];r=u(r,n,i,a,e.getUint32(0,!0),7,3614090360),a=u(a,r,n,i,e.getUint32(4,!0),12,3905402710),i=u(i,a,r,n,e.getUint32(8,!0),17,606105819),n=u(n,i,a,r,e.getUint32(12,!0),22,3250441966),r=u(r,n,i,a,e.getUint32(16,!0),7,4118548399),a=u(a,r,n,i,e.getUint32(20,!0),12,1200080426),i=u(i,a,r,n,e.getUint32(24,!0),17,2821735955),n=u(n,i,a,r,e.getUint32(28,!0),22,4249261313),r=u(r,n,i,a,e.getUint32(32,!0),7,1770035416),a=u(a,r,n,i,e.getUint32(36,!0),12,2336552879),i=u(i,a,r,n,e.getUint32(40,!0),17,4294925233),n=u(n,i,a,r,e.getUint32(44,!0),22,2304563134),r=u(r,n,i,a,e.getUint32(48,!0),7,1804603682),a=u(a,r,n,i,e.getUint32(52,!0),12,4254626195),i=u(i,a,r,n,e.getUint32(56,!0),17,2792965006),r=c(r,n=u(n,i,a,r,e.getUint32(60,!0),22,1236535329),i,a,e.getUint32(4,!0),5,4129170786),a=c(a,r,n,i,e.getUint32(24,!0),9,3225465664),i=c(i,a,r,n,e.getUint32(44,!0),14,643717713),n=c(n,i,a,r,e.getUint32(0,!0),20,3921069994),r=c(r,n,i,a,e.getUint32(20,!0),5,3593408605),a=c(a,r,n,i,e.getUint32(40,!0),9,38016083),i=c(i,a,r,n,e.getUint32(60,!0),14,3634488961),n=c(n,i,a,r,e.getUint32(16,!0),20,3889429448),r=c(r,n,i,a,e.getUint32(36,!0),5,568446438),a=c(a,r,n,i,e.getUint32(56,!0),9,3275163606),i=c(i,a,r,n,e.getUint32(12,!0),14,4107603335),n=c(n,i,a,r,e.getUint32(32,!0),20,1163531501),r=c(r,n,i,a,e.getUint32(52,!0),5,2850285829),a=c(a,r,n,i,e.getUint32(8,!0),9,4243563512),i=c(i,a,r,n,e.getUint32(28,!0),14,1735328473),r=l(r,n=c(n,i,a,r,e.getUint32(48,!0),20,2368359562),i,a,e.getUint32(20,!0),4,4294588738),a=l(a,r,n,i,e.getUint32(32,!0),11,2272392833),i=l(i,a,r,n,e.getUint32(44,!0),16,1839030562),n=l(n,i,a,r,e.getUint32(56,!0),23,4259657740),r=l(r,n,i,a,e.getUint32(4,!0),4,2763975236),a=l(a,r,n,i,e.getUint32(16,!0),11,1272893353),i=l(i,a,r,n,e.getUint32(28,!0),16,4139469664),n=l(n,i,a,r,e.getUint32(40,!0),23,3200236656),r=l(r,n,i,a,e.getUint32(52,!0),4,681279174),a=l(a,r,n,i,e.getUint32(0,!0),11,3936430074),i=l(i,a,r,n,e.getUint32(12,!0),16,3572445317),n=l(n,i,a,r,e.getUint32(24,!0),23,76029189),r=l(r,n,i,a,e.getUint32(36,!0),4,3654602809),a=l(a,r,n,i,e.getUint32(48,!0),11,3873151461),i=l(i,a,r,n,e.getUint32(60,!0),16,530742520),r=p(r,n=l(n,i,a,r,e.getUint32(8,!0),23,3299628645),i,a,e.getUint32(0,!0),6,4096336452),a=p(a,r,n,i,e.getUint32(28,!0),10,1126891415),i=p(i,a,r,n,e.getUint32(56,!0),15,2878612391),n=p(n,i,a,r,e.getUint32(20,!0),21,4237533241),r=p(r,n,i,a,e.getUint32(48,!0),6,1700485571),a=p(a,r,n,i,e.getUint32(12,!0),10,2399980690),i=p(i,a,r,n,e.getUint32(40,!0),15,4293915773),n=p(n,i,a,r,e.getUint32(4,!0),21,2240044497),r=p(r,n,i,a,e.getUint32(32,!0),6,1873313359),a=p(a,r,n,i,e.getUint32(60,!0),10,4264355552),i=p(i,a,r,n,e.getUint32(24,!0),15,2734768916),n=p(n,i,a,r,e.getUint32(52,!0),21,1309151649),r=p(r,n,i,a,e.getUint32(16,!0),6,4149444226),a=p(a,r,n,i,e.getUint32(44,!0),10,3174756917),i=p(i,a,r,n,e.getUint32(8,!0),15,718787259),n=p(n,i,a,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=a+t[3]&4294967295}},47811:function(e,t,r){var n=r(19778).lW,i=r(79488);new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);function a(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}e.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(i.isEmptyData(e))return this;var t=(e=i.convertToBuffer(e)).length;this.totalLength+=8*t;for(var r=0;r14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new n(20),i=new DataView(r.buffer);return i.setUint32(0,this.h0,!1),i.setUint32(4,this.h1,!1),i.setUint32(8,this.h2,!1),i.setUint32(12,this.h3,!1),i.setUint32(16,this.h4,!1),e?r.toString(e):r},a.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,n,i=this.h0,a=this.h1,o=this.h2,s=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=s^a&(o^s),n=1518500249):e<40?(r=a^o^s,n=1859775393):e<60?(r=a&o|s&(a|o),n=2400959708):(r=a^o^s,n=3395469782);var c=(i<<5|i>>>27)+r+u+n+(0|this.block[e]);u=s,s=o,o=a<<30|a>>>2,a=i,i=c}for(this.h0=this.h0+i|0,this.h1=this.h1+a|0,this.h2=this.h2+o|0,this.h3=this.h3+s|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},97467:function(e,t,r){var n=r(19778).lW,i=r(79488),a=64,o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=Math.pow(2,53)-1;function u(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}e.exports=u,u.BLOCK_SIZE=a,u.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(i.isEmptyData(e))return this;var t=0,r=(e=i.convertToBuffer(e)).byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>s)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===a&&(this.hashBuffer(),this.bufferLength=0);return this},u.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(r.setUint8(this.bufferLength++,128),i%a>=56){for(var o=this.bufferLength;o>>24&255,s[4*o+1]=this.state[o]>>>16&255,s[4*o+2]=this.state[o]>>>8&255,s[4*o+3]=this.state[o]>>>0&255;return e?s.toString(e):s},u.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],s=t[3],u=t[4],c=t[5],l=t[6],p=t[7],m=0;m>>17|d<<15)^(d>>>19|d<<13)^d>>>10,h=((d=this.temp[m-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[m]=(y+this.temp[m-7]|0)+(h+this.temp[m-16]|0)}var f=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&c^~u&l)|0)+(p+(o[m]+this.temp[m]|0)|0)|0,b=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&i^n&i)|0;p=l,l=c,c=u,u=s+f|0,s=i,i=n,n=r,r=f+b|0}t[0]+=r,t[1]+=n,t[2]+=i,t[3]+=s,t[4]+=u,t[5]+=c,t[6]+=l,t[7]+=p}},544:function(e,t,r){var n=r(23657);n.crypto.lib=r(82623),n.Buffer=r(19778).lW,n.url=r(12114),n.querystring=r(30863),n.realClock=r(35067),n.environment="js",n.createEventStream=r(28962).createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var i=r(8468);if(e.exports=i,r(73916),r(28732),r(14524),r(79382),r(19589),r(89065),r(78437),i.XML.Parser=r(68918),r(76311),"undefined"===typeof a)var a={browser:!0}},65473:function(e,t,r){var n=r(8468),i=n.util.url,a=n.util.crypto.lib,o=n.util.base64.encode,s=n.util.inherit,u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,(function(e){return t[e]}))},c=function(e,t){var r=a.createSign("RSA-SHA1");return r.write(e),u(r.sign(t,"base64"))},l=function(e,t,r,n){var i=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":r,Signature:c(i.toString(),n)}},p=function(e,t,r){return e=e.replace(/\s/gm,""),{Policy:u(o(e)),"Key-Pair-Id":t,Signature:c(e,r)}},m=function(e){var t=e.split("://");if(t.length<2)throw new Error("Invalid URL.");return t[0].replace("*","")},d=function(e){var t=i.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")},y=function(e,t){if(!t||"function"!==typeof t)throw e;t(e)},h=function(e,t){if(!t||"function"!==typeof t)return e;t(null,e)};n.CloudFront.Signer=s({constructor:function(e,t){if(void 0===e||void 0===t)throw new Error("A key pair ID and private key are required");this.keyPairId=e,this.privateKey=t},getSignedCookie:function(e,t){var r="policy"in e?p(e.policy,this.keyPairId,this.privateKey):l(e.url,e.expires,this.keyPairId,this.privateKey),n={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n["CloudFront-"+i]=r[i]);return h(n,t)},getSignedUrl:function(e,t){try{var r=function(e){switch(m(e)){case"http":case"https":return e;case"rtmp":return d(e);default:throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp")}}(e.url)}catch(u){return y(u,t)}var n=i.parse(e.url,!0),a=Object.prototype.hasOwnProperty.call(e,"policy")?p(e.policy,this.keyPairId,this.privateKey):l(r,e.expires,this.keyPairId,this.privateKey);for(var o in n.search=null,a)Object.prototype.hasOwnProperty.call(a,o)&&(n.query[o]=a[o]);try{var s="rtmp"===m(e.url)?d(i.format(n)):i.format(n)}catch(u){return y(u,t)}return h(s,t)}}),e.exports=n.CloudFront.Signer},69070:function(e,t,r){var n,i=r(8468);r(73916),r(28732),i.Config=i.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),i.util.each.call(this,this.keys,(function(t,r){this.set(t,e[t],r)}))},getCredentials:function(e){var t=this;function r(r){e(r,r?null:t.credentials)}function n(e,t){return new i.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}t.credentials?"function"===typeof t.credentials.get?t.credentials.get((function(e){e&&(e=n("Could not load credentials from "+t.credentials.constructor.name,e)),r(e)})):function(){var e=null;t.credentials.accessKeyId&&t.credentials.secretAccessKey||(e=n("Missing credentials")),r(e)}():t.credentialProvider?t.credentialProvider.resolve((function(e,i){e&&(e=n("Could not load credentials from any providers",e)),t.credentials=i,r(e)})):r(n("No credentials to load"))},getToken:function(e){var t=this;function r(r){e(r,r?null:t.token)}function n(e,t){return new i.util.error(t||new Error,{code:"TokenError",message:e,name:"TokenError"})}t.token?"function"===typeof t.token.get?t.token.get((function(e){e&&(e=n("Could not load token from "+t.token.constructor.name,e)),r(e)})):function(){var e=null;t.token.token||(e=n("Missing token")),r(e)}():t.tokenProvider?t.tokenProvider.resolve((function(e,i){e&&(e=n("Could not load token from any providers",e)),t.token=i,r(e)})):r(n("No token to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),i.util.each.call(this,e,(function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||i.Service.hasService(e))&&this.set(e,r)}))},loadFromPath:function(e){this.clear();var t=JSON.parse(i.util.readFileSync(e)),r=new i.FileSystemCredentials(e),n=new i.CredentialProviderChain;return n.providers.unshift(r),n.resolve((function(e,r){if(e)throw e;t.credentials=r})),this.constructor(t),this},clear:function(){i.util.each.call(this,this.keys,(function(e){delete this[e]})),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"===typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=i.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&((e=i.util.copy(e)).credentials=new i.Credentials(e)),e},setPromisesDependency:function(e){n=e,null===e&&"function"===typeof Promise&&(n=Promise);var t=[i.Request,i.Credentials,i.CredentialProviderChain];i.S3&&(t.push(i.S3),i.S3.ManagedUpload&&t.push(i.S3.ManagedUpload)),i.util.addPromises(t,n)},getPromisesDependency:function(){return n}}),i.config=new i.Config},21980:function(e,t,r){var n=r(8468);function i(e,t){if("string"===typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw n.util.error(new Error,t)}}e.exports=function(e,t){var r;if((e=e||{})[t.clientConfig]&&(r=i(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return r;if(!n.util.isNode())return r;if(Object.prototype.hasOwnProperty.call({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"},t.env)&&(r=i({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}[t.env]+'".'})))return r;var a={};try{a=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}.AWS_PROFILE||n.util.defaultProfile]}catch(o){}return a&&Object.prototype.hasOwnProperty.call(a,t.sharedConfig)&&(r=i(a[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+a[t.sharedConfig]+'".'})),r}},8468:function(e,t,r){var n={util:r(23657)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.1318.0",Signers:{},Protocol:{Json:r(89864),Query:r(66588),Rest:r(19701),RestJson:r(12085),RestXml:r(61622)},XML:{Builder:r(98302),Parser:null},JSON:{Builder:r(48212),Parser:r(26815)},Model:{Api:r(65565),Operation:r(91970),Shape:r(3825),Paginator:r(8594),ResourceWaiter:r(15545)},apiLoader:r(44185),EndpointCache:r(50038).$}),r(78451),r(75724),r(69070),r(78168),r(18663),r(33845),r(10767),r(90630),r(85232),r(70778),r(45663),n.events=new n.SequentialExecutor,n.util.memoizedProperty(n,"endpointCache",(function(){return new n.EndpointCache(n.config.endpointCacheSize)}),!0)},73916:function(e,t,r){var n=r(8468);n.Credentials=n.util.inherit({constructor:function(){if(n.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=n.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){n.util.arrayEach(r.refreshCallbacks,(function(r){t?r(e):n.util.defer((function(){r(e)}))})),r.refreshCallbacks.length=0}))},load:function(e){e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},79382:function(e,t,r){var n=r(8468),i=r(62362);n.ChainableTemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=n.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!==typeof e.tokenCodeFn)throw new n.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=n.util.merge({params:t,credentials:e.masterCredentials||n.config.credentials},e.stsConfig||{});this.service=new i(r)},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode((function(n,i){var a={};n?e(n):(i&&(a.TokenCode=i),t.service[r](a,(function(r,n){r||t.service.credentialsFrom(n,t),e(r)})))}))},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,(function(r,i){if(r){var a=r;return r instanceof Error&&(a=r.message),void e(n.util.error(new Error("Error fetching MFA token: "+a),{code:t.errorCode}))}e(null,i)})):e(null)}})},89065:function(e,t,r){var n=r(8468),i=r(49055),a=r(62362);n.CognitoIdentityCredentials=n.util.inherit(n.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=n.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId((function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)}))},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){"NotAuthorizedException"==e.code&&this.clearCachedId()},getId:function(e){var t=this;if("string"===typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId((function(r,n){!r&&n.IdentityId?(t.params.IdentityId=n.IdentityId,e(null,n.IdentityId)):e(r)}))},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity((function(r,n){r?t.clearIdOnNotAuthorized(r):(t.cacheId(n),t.data=n,t.loadCredentials(t.data,t)),e(r)}))},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken((function(r,n){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(n),t.params.WebIdentityToken=n.Token,t.webIdentityCredentials.refresh((function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)})))}))},loadCachedId:function(){var e=this;if(n.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter((function(e){return-1!==r.indexOf(e)})).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new n.WebIdentityCredentials(this.params,e),!this.cognito){var t=n.util.merge({},e);t.params=this.params,this.cognito=new i(t)}this.sts=this.sts||new a(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,n.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(r){}},storage:function(){try{var e=n.util.isBrowser()&&null!==window.localStorage&&"object"===typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(t){return{}}}()})},28732:function(e,t,r){var n=r(8468);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.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,i=t.providers.slice(0);!function e(a,o){if(!a&&o||r===i.length)return n.util.arrayEach(t.resolveCallbacks,(function(e){e(a,o)})),void(t.resolveCallbacks.length=0);var s=i[r++];(o="function"===typeof s?s.call():s).get?o.get((function(t){e(t,t?null:o)})):e(null,o)}()}return t}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},78437:function(e,t,r){var n=r(8468),i=r(62362);n.SAMLCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML((function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))},createClients:function(){this.service=this.service||new i({params:this.params})}})},14524:function(e,t,r){var n=r(8468),i=r(62362);n.TemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get((function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,(function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))}))},loadMasterCredentials:function(e){for(this.masterCredentials=e||n.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!==typeof this.masterCredentials.get&&(this.masterCredentials=new n.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new i({params:this.params})}})},19589:function(e,t,r){var n=r(8468),i=r(62362);n.WebIdentityCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=n.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity((function(r,n){t.data=null,r||(t.data=n,t.service.credentialsFrom(n,t)),e(r)}))},createClients:function(){if(!this.service){var e=n.util.merge({},this._clientConfig);e.params=this.params,this.service=new i(e)}}})},24265:function(e,t,r){var n=r(8468),i=r(23657),a=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function o(e){var t=e.service,r=t.api||{},n=(r.operations,{});return t.config.region&&(n.region=t.config.region),r.serviceId&&(n.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(n.accessKeyId=t.config.credentials.accessKeyId),n}function s(e,t,r){r&&void 0!==t&&null!==t&&"structure"===r.type&&r.required&&r.required.length>0&&i.arrayEach(r.required,(function(n){var i=r.members[n];if(!0===i.endpointDiscoveryId){var a=i.isLocationName?i.name:n;e[a]=String(t[n])}else s(e,t[n],i)}))}function u(e,t){var r={};return s(r,e.params,t),r}function c(e){var t=e.service,r=t.api,a=r.operations?r.operations[e.operation]:void 0,s=u(e,a?a.input:void 0),c=o(e);Object.keys(s).length>0&&(c=i.update(c,s),a&&(c.operation=a.name));var l=n.endpointCache.get(c);if(!l||1!==l.length||""!==l[0].Address)if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address);else{var p=t.makeRequest(r.endpointOperation,{Operation:a.name,Identifiers:s});m(p),p.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),p.removeListener("retry",n.EventListeners.Core.RETRY_CHECK),n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]),p.send((function(e,t){t&&t.Endpoints?n.endpointCache.put(c,t.Endpoints):e&&n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])}))}}var l={};function p(e,t){var r=e.service,a=r.api,s=a.operations?a.operations[e.operation]:void 0,c=s?s.input:void 0,p=u(e,c),d=o(e);Object.keys(p).length>0&&(d=i.update(d,p),s&&(d.operation=s.name));var y=n.EndpointCache.getKeyString(d),h=n.endpointCache.get(y);if(h&&1===h.length&&""===h[0].Address)return l[y]||(l[y]=[]),void l[y].push({request:e,callback:t});if(h&&h.length>0)e.httpRequest.updateEndpoint(h[0].Address),t();else{var f=r.makeRequest(a.endpointOperation,{Operation:s.name,Identifiers:p});f.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),m(f),n.endpointCache.put(y,[{Address:"",CachePeriodInMinutes:60}]),f.send((function(r,a){if(r){if(e.response.error=i.error(r,{retryable:!1}),n.endpointCache.remove(d),l[y]){var o=l[y];i.arrayEach(o,(function(e){e.request.response.error=i.error(r,{retryable:!1}),e.callback()})),delete l[y]}}else if(a&&(n.endpointCache.put(y,a.Endpoints),e.httpRequest.updateEndpoint(a.Endpoints[0].Address),l[y])){o=l[y];i.arrayEach(o,(function(e){e.request.httpRequest.updateEndpoint(a.Endpoints[0].Address),e.callback()})),delete l[y]}t()}))}}function m(e){var t=e.service.api.apiVersion;t&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=t)}function d(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var a=e.request,s=a.service.api.operations||{},c=u(a,s[a.operation]?s[a.operation].input:void 0),l=o(a);Object.keys(c).length>0&&(l=i.update(l,c),s[a.operation]&&(l.operation=s[a.operation].name)),n.endpointCache.remove(l)}}function y(e){return["false","0"].indexOf(e)>=0}e.exports={discoverEndpoint:function(e,t){var r=e.service||{};if(function(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw i.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=n.config[e.serviceIdentifier]||{};return Boolean(n.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}(r)||e.isPresigned())return t();var o=(r.api.operations||{})[e.operation],s=o?o.endpointDiscoveryRequired:"NULL",u=function(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!i.isBrowser()){for(var r=0;r-1&&(e[t]++,0===e[t]);t--);}a.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&o(t),new a(t)},a.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&o(e),parseInt(e.toString("hex"),16)*(t?-1:1)},a.prototype.toString=function(){return String(this.valueOf())},e.exports={Int64:a}},53523:function(e,t,r){var n=r(72408).parseMessage;e.exports={parseEvent:function(e,t,r){var i=n(t),a=i.headers[":message-type"];if(a){if("error"===a.value)throw function(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],n=new Error(r.value||r);return n.code=n.name=t.value||t,n}(i);if("event"!==a.value)return}var o=i.headers[":event-type"],s=r.members[o.value];if(s){var u={},c=s.eventPayloadMemberName;if(c){var l=s.members[c];"binary"===l.type?u[c]=i.body:u[c]=e.parse(i.body.toString(),l)}for(var p=s.eventHeaderMemberNames,m=0;m=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();n.util.computeSha256(a,(function(r,n){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=n,t())}))}else t()}})),e("SET_CONTENT_LENGTH","afterBuild",(function(e){var t=o(e),r=n.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var i=n.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=i}catch(a){if(r&&r.isStreaming){if(r.requiresLength)throw a;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw a}throw a}})),e("SET_HTTP_HOST","afterBuild",(function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host})),e("SET_TRACE_ID","afterBuild",(function(e){var t="X-Amzn-Trace-Id";if(n.util.isNode()&&!Object.hasOwnProperty.call(e.httpRequest.headers,t)){var r={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}.AWS_LAMBDA_FUNCTION_NAME,i={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}._X_AMZN_TRACE_ID;"string"===typeof r&&r.length>0&&"string"===typeof i&&i.length>0&&(e.httpRequest.headers[t]=i)}})),e("RESTART","restart",(function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new n.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount=600?this.emit("sign",[this],(function(e){e?t(e):a()})):a()})),e("HTTP_HEADERS","httpHeaders",(function(e,t,r,i){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=i,r.httpResponse.headers=t,r.httpResponse.body=n.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var a=t.date||t.Date,o=r.request.service;if(a){var s=Date.parse(a);o.config.correctClockSkew&&o.isClockSkewed(s)&&o.applyClockOffset(s)}})),e("HTTP_DATA","httpData",(function(e,t){if(e){if(n.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],i={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[i,t])}t.httpResponse.buffers.push(n.util.buffer.toBuffer(e))}})),e("HTTP_DONE","httpDone",(function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=n.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers})),e("FINALIZE_ERROR","retry",(function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))})),e("INVALIDATE_CREDENTIALS","retry",(function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}})),e("EXPIRED_SIGNATURE","retry",(function(e){var t=e.error;t&&"string"===typeof t.code&&"string"===typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)})),e("CLOCK_SKEWED","retry",(function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)})),e("REDIRECT","retry",(function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new n.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)})),e("RETRY_CHECK","retry",(function(e){e.error&&(e.error.redirect&&e.redirectCount=0?(e.error=null,setTimeout(t,r)):t()}))})),CorePost:(new i).addNamedListeners((function(e){e("EXTRACT_REQUEST_ID","extractData",n.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",n.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",(function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"===typeof e.errno&&"function"===typeof n.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(n.util.getSystemErrorName(e.errno)>=0)}(e)){var t="Inaccessible host: `"+e.hostname+"' at port `"+e.port+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=n.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}}))})),Logger:(new i).addNamedListeners((function(e){e("LOG_REQUEST","complete",(function(e){var t=e.request,i=t.service.config.logger;if(i){var a=function(){var a=(e.request.service.getSkewCorrectedDate().getTime()-t.startTime.getTime())/1e3,s=!!i.isTTY,u=e.httpResponse.statusCode,c=t.params;t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input&&(c=o(t.service.api.operations[t.operation].input,t.params));var l=r(49639).inspect(c,!0,null),p="";return s&&(p+="\x1b[33m"),p+="[AWS "+t.service.serviceIdentifier+" "+u,p+=" "+a.toString()+"s "+e.retryCount+" retries]",s&&(p+="\x1b[0;1m"),p+=" "+n.util.string.lowerFirst(t.operation),p+="("+l+")",s&&(p+="\x1b[0m"),p}();"function"===typeof i.log?i.log(a):"function"===typeof i.write&&i.write(a+"\n")}function o(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var r={};return n.util.each(t,(function(t,n){Object.prototype.hasOwnProperty.call(e.members,t)?r[t]=o(e.members[t],n):r[t]=n})),r;case"list":var i=[];return n.util.arrayEach(t,(function(t,r){i.push(o(e.member,t))})),i;case"map":var a={};return n.util.each(t,(function(t,r){a[t]=o(e.value,r)})),a;default:return t}}}))})),Json:(new i).addNamedListeners((function(e){var t=r(89864);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Rest:(new i).addNamedListeners((function(e){var t=r(19701);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),RestJson:(new i).addNamedListeners((function(e){var t=r(12085);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError),e("UNSET_CONTENT_LENGTH","afterBuild",t.unsetContentLength)})),RestXml:(new i).addNamedListeners((function(e){var t=r(61622);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Query:(new i).addNamedListeners((function(e){var t=r(66588);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}))}},78168:function(e,t,r){var n=r(8468),i=n.util.inherit;n.Endpoint=i({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),"undefined"===typeof e||null===e)throw new Error("Invalid endpoint: "+e);if("string"!==typeof e)return n.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:n.config.sslEnabled)?"https":"http")+"://"+e);n.util.update(this,n.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),n.HttpRequest=i({constructor:function(e,t){e=new n.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()]=n.util.userAgent()},getUserAgentHeaderName:function(){return(n.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=n.util.queryStringParse(e),n.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new n.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),n.HttpResponse=i({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}}),n.HttpClient=i({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},76311:function(e,t,r){var n=r(8468),i=r(47465).EventEmitter;r(78168),n.XHRClient=n.util.inherit({handleRequest:function(e,t,r,a){var o=this,s=e.endpoint,u=new i,c=s.protocol+"//"+s.hostname;80!==s.port&&443!==s.port&&(c+=":"+s.port),c+=e.path;var l=new XMLHttpRequest,p=!1;e.stream=l,l.addEventListener("readystatechange",(function(){try{if(0===l.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!p&&(u.statusCode=l.status,u.headers=o.parseHeaders(l.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,l.statusText),p=!0),this.readyState===this.DONE&&o.finishRequest(l,u)}),!1),l.upload.addEventListener("progress",(function(e){u.emit("sendProgress",e)})),l.addEventListener("progress",(function(e){u.emit("receiveProgress",e)}),!1),l.addEventListener("timeout",(function(){a(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))}),!1),l.addEventListener("error",(function(){a(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))}),!1),l.addEventListener("abort",(function(){a(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))}),!1),r(u),l.open(e.method,c,!1!==t.xhrAsync),n.util.each(e.headers,(function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&l.setRequestHeader(e,t)})),t.timeout&&!1!==t.xhrAsync&&(l.timeout=t.timeout),t.xhrWithCredentials&&(l.withCredentials=!0);try{l.responseType="arraybuffer"}catch(m){}try{e.body?l.send(e.body):l.send()}catch(d){if(!e.body||"object"!==typeof e.body.buffer)throw d;l.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),(function(e){var r=e.split(":",1)[0],n=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=n)})),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var i=e.response;r=new n.util.Buffer(i.byteLength);for(var a=new Uint8Array(i),o=0;o-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=i.base64.decode(e);if(this.isSensitive&&i.isNode()&&"function"===typeof i.Buffer.alloc){var r=i.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=i.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:c,list:l,map:p,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?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.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:m,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 n=s.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter((function(e){return!e.match(/documentation/)})));var a=function(){n.constructor.call(this,e,t,r)};return a.prototype=n,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:c,ListShape:l,MapShape:p,StringShape:m,BooleanShape:h,Base64Shape:y},e.exports=s},70778:function(e,t,r){var n=r(8468);n.ParamValidator=n.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,n.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(n.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){if(e.isDocument)return!0;var n;this.validateType(t,r,["object"],"structure");for(var i=0;e.required&&i= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,n){this.validation.min&&void 0!==e.min&&t= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+n+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,i){if(null===e||void 0===e)return!1;for(var a=!1,o=0;o63)throw n.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw i.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}))}(e.httpRequest.endpoint.hostname)}return e}}},89864:function(e,t,r){var n=r(23657),i=r(48212),a=r(26815),o=r(85363).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,a=r.jsonVersion||"1.0",s=r.operations[e.operation].input,u=new i;1===a&&(a="1.0"),t.body=u.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+a,t.headers["X-Amz-Target"]=n,o(e)},extractError:function(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"===typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var i=JSON.parse(r.body.toString()),a=i.__type||i.code||i.Code;a&&(t.code=a.split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.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||{},n=new a;e.data=n.parse(t,r)}}}},66588:function(e,t,r){var n=r(8468),i=r(23657),a=r(31625),o=r(3825),s=r(85363).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new a).serialize(e.params,t.input,(function(e,t){r.params[e]=t})),r.body=i.queryParamsToString(r.params),s(e)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("=0?"&":"?";var u=[];n.arrayEach(Object.keys(o).sort(),(function(e){Array.isArray(o[e])||(o[e]=[o[e]]);for(var t=0;t=0&&delete e.httpRequest.headers["Content-Length"]}}},61622:function(e,t,r){var n=r(8468),i=r(23657),a=r(19701);e.exports={buildRequest:function(e){a.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,a=e.params,o=t.payload;if(o){var s=t.members[o];if(void 0===(a=a[o]))return;if("structure"===s.type){var u=s.name;e.httpRequest.body=r.toXML(a,s,u,!0)}else e.httpRequest.body=a}else e.httpRequest.body=r.toXML(a,t,t.name||t.shape||i.string.upperFirst(e.operation)+"Request")}(e)},extractError:function(e){var t;a.extractError(e);try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=i.error(new Error,{code:t.Code,message:t.Message}):e.error=i.error(new Error,{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t;a.extractData(e);var r=e.request,o=e.httpResponse.body,s=r.service.api.operations[r.operation],u=s.output,c=(s.hasEventOutput,u.payload);if(c){var l=u.members[c];l.isEventStream?(t=new n.XML.Parser,e.data[c]=i.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,l)):"structure"===l.type?(t=new n.XML.Parser,e.data[c]=t.parse(o.toString(),l)):"binary"===l.type||l.isStreaming?e.data[c]=o:e.data[c]=l.toType(o)}else if(o.length>0){var p=(t=new n.XML.Parser).parse(o.toString(),u);i.update(e.data,p)}}}},31625:function(e,t,r){var n=r(23657);function i(){}function a(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function o(e,t,r,i){n.each(r.members,(function(r,n){var o=t[r];if(null!==o&&void 0!==o){var u=a(n);s(u=e?e+"."+u:u,o,n,i)}}))}function s(e,t,r,i){null!==t&&void 0!==t&&("structure"===r.type?o(e,t,r,i):"list"===r.type?function(e,t,r,i){var o=r.member||{};0!==t.length?n.arrayEach(t,(function(t,n){var u="."+(n+1);if("ec2"===r.api.protocol)u+="";else if(r.flattened){if(o.name){var c=e.split(".");c.pop(),c.push(a(o)),e=c.join(".")}}else u="."+(o.name?o.name:"member")+u;s(e+u,t,o,i)})):i.call(this,e,null)}(e,t,r,i):"map"===r.type?function(e,t,r,i){var a=1;n.each(t,(function(t,n){var o=(r.flattened?".":".entry.")+a+++".",u=o+(r.key.name||"key"),c=o+(r.value.name||"value");s(e+u,t,r.key,i),s(e+c,n,r.value,i)}))}(e,t,r,i):i(e,r.toWireFormat(t).toString()))}i.prototype.serialize=function(e,t,r){o("",e,t,r)},e.exports=i},42418:function(e,t,r){var n=r(8468),i=null,a={signatureVersion:"v4",signingName:"rds-db",operations:{}},o={region:"string",hostname:"string",port:"number",username:"string"};n.RDS.Signer=n.util.inherit({constructor:function(e){this.options=e||{}},convertUrlToAuthToken:function(e){var t="https://";if(0===e.indexOf(t))return e.substring(t.length)},getAuthToken:function(e,t){"function"===typeof e&&void 0===t&&(t=e,e={});var r=this,o="function"===typeof t;e=n.util.merge(this.options,e);var s=this.validateAuthTokenOptions(e);if(!0!==s){if(o)return t(s,null);throw s}var u={region:e.region,endpoint:new n.Endpoint(e.hostname+":"+e.port),paramValidation:!1,signatureVersion:"v4"};e.credentials&&(u.credentials=e.credentials),(i=new n.Service(u)).api=a;var c=i.makeRequest();if(this.modifyRequestForAuthToken(c,e),!o){var l=c.presign(900);return this.convertUrlToAuthToken(l)}c.presign(900,(function(e,n){n&&(n=r.convertUrlToAuthToken(n)),t(e,n)}))},modifyRequestForAuthToken:function(e,t){e.on("build",e.buildAsGet),e.httpRequest.body=n.util.queryParamsToString({Action:"connect",DBUser:t.username})},validateAuthTokenOptions:function(e){var t="";for(var r in e=e||{},o)Object.prototype.hasOwnProperty.call(o,r)&&typeof e[r]!==o[r]&&(t+="option '"+r+"' should have been type '"+o[r]+"', was '"+typeof e[r]+"'.\n");return!t.length||n.util.error(new Error,{code:"InvalidParameter",message:t})}})},35067:function(e){e.exports={now:function(){return"undefined"!==typeof performance&&"function"===typeof performance.now?performance.now():Date.now()}}},88918:function(e){e.exports={isFipsRegion:function(e){return"string"===typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))},isGlobalRegion:function(e){return"string"===typeof e&&["aws-global","aws-us-gov-global"].includes(e)},getRealRegion:function(e){return["fips-aws-global","aws-fips","aws-global"].includes(e)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(e)?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},37139:function(e,t,r){var n=r(23657),i=r(80738);function a(e,t){n.each(t,(function(t,r){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=r))}))}e.exports={configureEndpoint:function(e){for(var t=function(e){var t=e.config.region,r=function(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}(t),n=e.api.endpointPrefix;return[[t,n],[r,n],[t,"*"],[r,"*"],["*",n],["*","*"]].map((function(e){return e[0]&&e[1]?e.join("/"):null}))}(e),r=e.config.useFipsEndpoint,n=e.config.useDualstackEndpoint,o=0;o=0){u=!0;var c=0}var l=function(){u&&c!==s?r.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+c+" of "+s+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?r.end():r.emit("end")},p=o.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(u){var m=new e.PassThrough;m._write=function(t){return t&&t.length&&(c+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},m.on("end",l),r.on("error",(function(e){u=!1,p.unpipe(m),m.emit("end"),m.end()})),p.pipe(m).pipe(r,{end:!1})}else p.pipe(r);else u&&p.on("data",(function(e){e&&e.length&&(c+=e.length)})),p.on("data",(function(e){r.emit("data",e)})),p.on("end",l);p.on("error",(function(e){u=!1,r.emit("error",e)}))}})),r},emitEvent:function(e,t,r){"function"===typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),n.SequentialExecutor.prototype.emit.call(this,e,t,(function(e){e&&(this.response.error=e),r.call(this,e)}))},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!==typeof e||(t=e,e=null),(new n.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",n.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",n.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),n.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e((function(e,r){t.on("complete",(function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))})),t.runTo()}))}},n.Request.deletePromisesFromClass=function(){delete this.prototype.promise},n.util.addPromises(n.Request),n.util.mixin(n.Request,n.SequentialExecutor)},90630:function(e,t,r){var n=r(8468),i=n.util.inherit,a=r(24247);function o(e){var t=e.request._waiter,r=t.config.acceptors,n=!1,i="retry";r.forEach((function(r){if(!n){var a=t.matchers[r.matcher];a&&a(e,r.expected,r.argument)&&(n=!0,i=r.state)}})),!n&&e.error&&(i="failure"),"success"===i?t.setSuccess(e):t.setError(e,"retry"===i)}n.ResourceWaiter=i({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var n=a.search(e.data,r)}catch(i){return!1}return a.strictDeepEqual(n,t)},pathAll:function(e,t,r){try{var n=a.search(e.data,r)}catch(s){return!1}Array.isArray(n)||(n=[n]);var i=n.length;if(!i)return!1;for(var o=0;o=1&&t.doneParts===t.numParts&&t.finishMultiPart()})))}r&&t.fillQueue.call(t)},abort:function(){var e=this;!0===e.isDoneChunking&&1===e.totalPartNumbers&&e.singlePart?e.singlePart.abort():e.cleanup(n.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1}))},validateBody:function(){var e=this;if(e.body=e.service.config.params.Body,"string"===typeof e.body)e.body=n.util.buffer.toBuffer(e.body);else if(!e.body)throw new Error("params.Body is required");e.sliceFn=n.util.arraySliceFn(e.body)},bindServiceObject:function(e){e=e||{};var t=this;if(t.service){var r=t.service,i=n.util.copy(r.config);i.signatureVersion=r.getSignatureVersion(),t.service=new r.constructor.__super__(i),t.service.config.params=n.util.merge(t.service.config.params||{},e),Object.defineProperty(t.service,"_originalConfig",{get:function(){return r._originalConfig},enumerable:!1,configurable:!0})}else t.service=new n.S3({params:e})},adjustTotalBytes:function(){var e=this;try{e.totalBytes=i(e.body)}catch(r){}if(e.totalBytes){var t=Math.ceil(e.totalBytes/e.maxTotalParts);t>e.partSize&&(e.partSize=t)}else e.totalBytes=void 0},isDoneChunking:!1,partPos:0,totalChunkedBytes:0,totalUploadedBytes:0,totalBytes:void 0,numParts:0,totalPartNumbers:0,activeParts:0,doneParts:0,parts:null,completeInfo:null,failed:!1,multipartReq:null,partBuffers:null,partBufferLength:0,fillBuffer:function(){var e=this,t=i(e.body);if(0===t)return e.isDoneChunking=!0,e.numParts=1,void e.nextChunk(e.body);for(;e.activeParts=e.queueSize)){var t=e.body.read(e.partSize-e.partBufferLength)||e.body.read();if(t&&(e.partBuffers.push(t),e.partBufferLength+=t.length,e.totalChunkedBytes+=t.length),e.partBufferLength>=e.partSize){var r=1===e.partBuffers.length?e.partBuffers[0]:a.concat(e.partBuffers);if(e.partBuffers=[],e.partBufferLength=0,r.length>e.partSize){var n=r.slice(e.partSize);e.partBuffers.push(n),e.partBufferLength+=n.length,r=r.slice(0,e.partSize)}e.nextChunk(r)}e.isDoneChunking&&!e.isDoneSending&&(r=1===e.partBuffers.length?e.partBuffers[0]:a.concat(e.partBuffers),e.partBuffers=[],e.partBufferLength=0,e.totalBytes=e.totalChunkedBytes,e.isDoneSending=!0,(0===e.numParts||r.length>0)&&(e.numParts++,e.nextChunk(r))),e.body.read(0)}},nextChunk:function(e){var t=this;if(t.failed)return null;var r=++t.totalPartNumbers;if(t.isDoneChunking&&1===r){var i={Body:e};this.tags&&(i.Tagging=this.getTaggingHeader());var a=t.service.putObject(i);return a._managedUpload=t,a.on("httpUploadProgress",t.progress).send(t.finishSinglePart),t.singlePart=a,null}if(t.service.config.params.ContentMD5){var o=n.util.error(new Error("The Content-MD5 you specified is invalid for multi-part uploads."),{code:"InvalidDigest",retryable:!1});return t.cleanup(o),null}if(t.completeInfo[r]&&null!==t.completeInfo[r].ETag)return null;t.activeParts++,t.service.config.params.UploadId?t.uploadPart(e,r):t.multipartReq?t.queueChunks(e,r):(t.multipartReq=t.service.createMultipartUpload(),t.multipartReq.on("success",(function(e){t.service.config.params.UploadId=e.data.UploadId,t.multipartReq=null})),t.queueChunks(e,r),t.multipartReq.on("error",(function(e){t.cleanup(e)})),t.multipartReq.send())},getTaggingHeader:function(){for(var e=[],t=0;t-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var a=this,o=i||null;function s(i){if(i&&(o=n.util.error(o||new Error,i),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(c){o=n.util.error(o||new Error,c)}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),n.util.each(e,(function(e,r){"function"===typeof r&&(r=[r]),n.util.arrayEach(r,(function(r){t.on(e,r)}))})),t},addNamedListener:function(e,t,r,n){return this[e]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(e,t,r,n){return r._isAsync=!0,this.addNamedListener(e,t,r,n)},addNamedListeners:function(e){var t=this;return e((function(){t.addNamedListener.apply(t,arguments)}),(function(){t.addNamedAsyncListener.apply(t,arguments)})),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},75724:function(e,t,r){var n=r(8468),i=r(65565),a=r(37139),o=n.util.inherit,s=0,u=r(88918);n.Service=o({constructor:function(e){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var t=e.region;u.isFipsRegion(t)&&(e.region=u.getRealRegion(t),e.useFipsEndpoint=!0),u.isGlobalRegion(t)&&(e.region=u.getRealRegion(t))}"boolean"===typeof e.useDualstack&&"boolean"!==typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var r=this.loadServiceClass(e||{});if(r){var i=n.util.copy(e),a=new r(e);return Object.defineProperty(a,"_originalConfig",{get:function(){return i},enumerable:!1,configurable:!0}),a._clientId=++s,a}this.initialize(e)},initialize:function(e){var t=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||a.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),n.SequentialExecutor.call(this),n.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||n.Service._clientSideMonitoring)&&this.publisher){var r=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",(function(e){process.nextTick((function(){r.eventHandler(e)}))})),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",(function(e){process.nextTick((function(){r.eventHandler(e)}))}))}},validateService:function(){},loadServiceClass:function(e){var t=e;if(n.util.isEmpty(this.api)){if(t.apiConfig)return n.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){(t=new n.Config(n.config)).update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&n.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?n.util.isType(e,Date)&&(e=n.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,i=t.length-1;i>=0;i--)if("*"!==t[i][t[i].length-1]&&(r=t[i]),t[i].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!==typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"===typeof t&&(r=t,t=null),t=t||{},this.config.params){var i=this.api.operations[e];i&&(t=n.util.copy(t),n.util.each(this.config.params,(function(e,r){i.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))})))}var a=new n.Request(this,e,t);return this.addAllRequestListeners(a),this.attachMonitoringEmitter(a),r&&a.send(r),a},makeUnauthenticatedRequest:function(e,t,r){"function"===typeof t&&(r=t,t={});var n=this.makeRequest(e,t).toUnauthenticated();return r?n.send(r):n},waitFor:function(e,t,r){return new n.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],r=0;r299?(i.code&&(r.FinalAwsException=i.code),i.message&&(r.FinalAwsExceptionMessage=i.message)):((i.code||i.name)&&(r.FinalSdkException=i.code||i.name),i.message&&(r.FinalSdkExceptionMessage=i.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},n=e.response;return n.httpResponse.statusCode&&(r.HttpStatusCode=n.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),n.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),n.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=n.httpResponse.headers["x-amzn-requestid"]),n.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=n.httpResponse.headers["x-amz-request-id"]),n.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=n.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,n=r.error;return r.httpResponse.statusCode>299?(n.code&&(t.AwsException=n.code),n.message&&(t.AwsExceptionMessage=n.message)):((n.code||n.name)&&(t.SdkException=n.code||n.name),n.message&&(t.SdkExceptionMessage=n.message)),t},attachMonitoringEmitter:function(e){var t,r,i,a,o,s,u=0,c=this;e.on("validate",(function(){a=n.util.realClock.now(),s=Date.now()}),true),e.on("sign",(function(){r=n.util.realClock.now(),t=Date.now(),o=e.httpRequest.region,u++}),true),e.on("validateResponse",(function(){i=Math.round(n.util.realClock.now()-r)})),e.addNamedListener("API_CALL_ATTEMPT","success",(function(){var r=c.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=i>=0?i:0,r.Region=o,c.emit("apiCallAttempt",[r])})),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",(function(){var a=c.attemptFailEvent(e);a.Timestamp=t,i=i||Math.round(n.util.realClock.now()-r),a.AttemptLatency=i>=0?i:0,a.Region=o,c.emit("apiCallAttempt",[a])})),e.addNamedListener("API_CALL","complete",(function(){var t=c.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=s;var r=Math.round(n.util.realClock.now()-a);t.Latency=r>=0?r:0;var i=e.response;i.error&&i.error.retryable&&"number"===typeof i.retryCount&&"number"===typeof i.maxRetries&&i.retryCount>=i.maxRetries&&(t.MaxRetriesExceeded=1),c.emit("apiCall",[t])}}))},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var t,r=null,i="";e&&(i=(r=(e.service.api.operations||{})[e.operation]||null)?r.authtype:"");return t=this.config.signatureVersion?this.config.signatureVersion:"v4"===i||"v4-unsigned-body"===i?"v4":"bearer"===i?"bearer":this.api.signatureVersion,n.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest-json":return n.EventListeners.RestJson;case"rest-xml":return n.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return n.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!this.timeoutError(e)||(!!this.networkingError(e)||(!!this.expiredCredentialsError(e)||(!!this.throttledError(e)||e.statusCode>=500)))},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!==typeof e)return e;var t=e;return t=(t=(t=t.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new n.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var i=new Error;throw n.util.error(i,"No pagination configuration for "+e)}return null}return r}}),n.util.update(n.Service,{defineMethods:function(e){n.util.each(e.prototype.api.operations,(function(t){e.prototype[t]||("none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)})}))},defineService:function(e,t,r){n.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var i=o(n.Service,r||{});if("string"===typeof e){n.Service.addVersions(i,t);var a=i.serviceIdentifier||e;i.serviceIdentifier=a}else i.prototype.api=e,n.Service.defineMethods(i);if(n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var s=n.util.clientSideMonitoring.Publisher,u=(0,n.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new s(u),u.enabled&&(n.Service._clientSideMonitoring=!0)}return n.SequentialExecutor.call(i.prototype),n.Service.addDefaultMonitoringListeners(i.prototype),i},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r=0){throw n.util.error(new Error,{name:"InvalidEndpoint",message:"AWS.IotData requires an explicit `endpoint' configuration option."})}},setupRequestListeners:function(e){e.addListener("validateResponse",this.validateResponseBody),i.indexOf(e.operation)>-1&&e.addListener("extractData",n.util.convertPayloadToString)},validateResponseBody:function(e){var t=(e.httpResponse.body.toString()||"{}").trim();t&&"{"===t.charAt(0)||(e.httpResponse.body="")}})},85447:function(e,t,r){var n=r(8468);n.util.update(n.Lambda.prototype,{setupRequestListeners:function(e){"invoke"===e.operation&&e.addListener("extractData",n.util.convertPayloadToString)}})},50566:function(e,t,r){var n=r(8468);n.util.update(n.MachineLearning.prototype,{setupRequestListeners:function(e){"predict"===e.operation&&e.addListener("build",this.buildEndpoint)},buildEndpoint:function(e){var t=e.params.PredictEndpoint;t&&(e.httpRequest.endpoint=new n.Endpoint(t))}})},92540:function(e,t,r){r(84796)},99875:function(e,t,r){var n=r(8468),i=r(11483);r(42418);var a=["copyDBSnapshot","createDBInstanceReadReplica","createDBCluster","copyDBClusterSnapshot","startDBInstanceAutomatedBackupsReplication"];n.util.update(n.RDS.prototype,{setupRequestListeners:function(e){i.setupRequestListeners(this,e,a)}})},11483:function(e,t,r){var n=r(8468),i={setupRequestListeners:function(e,t,r){if(-1!==r.indexOf(t.operation)&&t.params.SourceRegion)if(t.params=n.util.copy(t.params),t.params.PreSignedUrl||t.params.SourceRegion===e.config.region)delete t.params.SourceRegion;else{var a=!!e.config.paramValidation;a&&t.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),t.onAsync("validate",i.buildCrossRegionPresignedUrl),a&&t.addListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS)}},buildCrossRegionPresignedUrl:function(e,t){var r=n.util.copy(e.service.config);r.region=e.params.SourceRegion,delete e.params.SourceRegion,delete r.endpoint,delete r.params,r.signatureVersion="v4";var i=e.service.config.region,a=new e.service.constructor(r)[e.operation](n.util.copy(e.params));a.on("build",(function(e){var t=e.httpRequest;t.params.DestinationRegion=i,t.body=n.util.queryParamsToString(t.params)})),a.presign((function(r,n){r?t(r):(e.params.PreSignedUrl=n,t())}))}};e.exports=i},12449:function(e,t,r){var n=r(8468);n.util.update(n.Route53.prototype,{setupRequestListeners:function(e){e.on("build",this.sanitizeUrl)},sanitizeUrl:function(e){var t=e.httpRequest.path;e.httpRequest.path=t.replace(/\/%2F\w+%2F/,"/")},retryableError:function(e){return"PriorRequestNotComplete"===e.code&&400===e.statusCode||n.Service.prototype.retryableError.call(this,e)}})},57700:function(e,t,r){var n=r(8468),i=r(94966),a=r(21980),o=r(22605),s=r(37139);r(51470);var u={completeMultipartUpload:!0,copyObject:!0,uploadPartCopy:!0},c=["AuthorizationHeaderMalformed","BadRequest","PermanentRedirect",301],l="s3-object-lambda";n.util.update(n.S3.prototype,{getSignatureVersion:function(e){var t=this.api.signatureVersion,r=this._originalConfig?this._originalConfig.signatureVersion:null,n=this.config.signatureVersion,i=!!e&&e.isPresigned();return r?r="v2"===r?"s3":r:(!0!==i?t="v4":n&&(t=n),t)},getSigningName:function(e){if(e&&"writeGetObjectResponse"===e.operation)return l;var t=n.Service.prototype.getSigningName;return e&&e._parsedArn&&e._parsedArn.service?e._parsedArn.service:t.call(this)},getSignerClass:function(e){var t=this.getSignatureVersion(e);return n.Signers.RequestSigner.getVersion(t)},validateService:function(){var e,t=[];if(this.config.region||(this.config.region="us-east-1"),!this.config.endpoint&&this.config.s3BucketEndpoint&&t.push("An endpoint must be provided when configuring `s3BucketEndpoint` to true."),1===t.length?e=t[0]:t.length>1&&(e="Multiple configuration errors:\n"+t.join("\n")),e)throw n.util.error(new Error,{name:"InvalidEndpoint",message:e})},shouldDisableBodySigning:function(e){var t=this.getSignerClass();return!0===this.config.s3DisableBodySigning&&t===n.Signers.V4&&"https:"===e.httpRequest.endpoint.protocol},setupRequestListeners:function(e){if(e.addListener("validate",this.validateScheme),e.addListener("validate",this.validateBucketName,true),e.addListener("validate",this.optInUsEast1RegionalEndpoint,true),e.removeListener("validate",n.EventListeners.Core.VALIDATE_REGION),e.addListener("build",this.addContentType),e.addListener("build",this.computeContentMd5),e.addListener("build",this.computeSseCustomerKeyMd5),e.addListener("build",this.populateURI),e.addListener("afterBuild",this.addExpect100Continue),e.addListener("extractError",this.extractError),e.addListener("extractData",n.util.hoistPayloadMember),e.addListener("extractData",this.extractData),e.addListener("extractData",this.extractErrorFrom200Response),e.addListener("beforePresign",this.prepareSignedUrl),this.shouldDisableBodySigning(e)&&(e.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),e.addListener("afterBuild",this.disableBodySigning)),"createBucket"!==e.operation&&o.isArnInParam(e,"Bucket"))return e._parsedArn=n.util.ARN.parse(e.params.Bucket),e.removeListener("validate",this.validateBucketName),e.removeListener("build",this.populateURI),"s3"===e._parsedArn.service?(e.addListener("validate",o.validateS3AccessPointArn),e.addListener("validate",this.validateArnResourceType),e.addListener("validate",this.validateArnRegion)):"s3-outposts"===e._parsedArn.service&&(e.addListener("validate",o.validateOutpostsAccessPointArn),e.addListener("validate",o.validateOutpostsArn),e.addListener("validate",o.validateArnRegion)),e.addListener("validate",o.validateArnAccount),e.addListener("validate",o.validateArnService),e.addListener("build",this.populateUriFromAccessPointArn),void e.addListener("build",o.validatePopulateUriFromArn);e.addListener("validate",this.validateBucketEndpoint),e.addListener("validate",this.correctBucketRegionFromCache),e.onAsync("extractError",this.requestBucketRegion),n.util.isBrowser()&&e.onAsync("retry",this.reqRegionForNetworkingError)},validateScheme:function(e){var t=e.params,r=e.httpRequest.endpoint.protocol;if((t.SSECustomerKey||t.CopySourceSSECustomerKey)&&"https:"!==r){throw n.util.error(new Error,{code:"ConfigError",message:"Cannot send SSE keys over HTTP. Set 'sslEnabled'to 'true' in your configuration"})}},validateBucketEndpoint:function(e){if(!e.params.Bucket&&e.service.config.s3BucketEndpoint){throw n.util.error(new Error,{code:"ConfigError",message:"Cannot send requests to root API with `s3BucketEndpoint` set."})}},validateArnRegion:function(e){o.validateArnRegion(e,{allowFipsEndpoint:!0})},validateArnResourceType:function(e){var t=e._parsedArn.resource;if(0!==t.indexOf("accesspoint:")&&0!==t.indexOf("accesspoint/"))throw n.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'accesspoint/'"})},validateBucketName:function(e){var t=e.service.getSignatureVersion(e),r=e.params&&e.params.Bucket,i=e.params&&e.params.Key,a=r&&r.indexOf("/");if(r&&a>=0)if("string"===typeof i&&a>0){e.params=n.util.copy(e.params);var o=r.substr(a+1)||"";e.params.Key=o+"/"+i,e.params.Bucket=r.substr(0,a)}else if("v4"===t){var s="Bucket names cannot contain forward slashes. Bucket: "+r;throw n.util.error(new Error,{code:"InvalidBucket",message:s})}},isValidAccelerateOperation:function(e){return-1===["createBucket","deleteBucket","listBuckets"].indexOf(e)},optInUsEast1RegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.s3UsEast1RegionalEndpoint=a(t._originalConfig,{env:"AWS_S3_US_EAST_1_REGIONAL_ENDPOINT",sharedConfig:"s3_us_east_1_regional_endpoint",clientConfig:"s3UsEast1RegionalEndpoint"}),!(t._originalConfig||{}).endpoint&&"us-east-1"===e.httpRequest.region&&"regional"===r.s3UsEast1RegionalEndpoint&&e.httpRequest.endpoint.hostname.indexOf("s3.amazonaws.com")>=0){var n=r.endpoint.indexOf(".amazonaws.com");regionalEndpoint=r.endpoint.substring(0,n)+".us-east-1"+r.endpoint.substring(n),e.httpRequest.updateEndpoint(regionalEndpoint)}},populateURI:function(e){var t=e.httpRequest,r=e.params.Bucket,n=e.service,i=t.endpoint;if(r&&!n.pathStyleBucketName(r)){n.config.useAccelerateEndpoint&&n.isValidAccelerateOperation(e.operation)?n.config.useDualstackEndpoint?i.hostname=r+".s3-accelerate.dualstack.amazonaws.com":i.hostname=r+".s3-accelerate.amazonaws.com":n.config.s3BucketEndpoint||(i.hostname=r+"."+i.hostname);var a=i.port;i.host=80!==a&&443!==a?i.hostname+":"+i.port:i.hostname,t.virtualHostedBucket=r,n.removeVirtualHostedBucketFromPath(e)}},removeVirtualHostedBucketFromPath:function(e){var t=e.httpRequest,r=t.virtualHostedBucket;if(r&&t.path){if(e.params&&e.params.Key){var i="/"+n.util.uriEscapePath(e.params.Key);if(0===t.path.indexOf(i)&&(t.path.length===i.length||"?"===t.path[i.length]))return}t.path=t.path.replace(new RegExp("/"+r),""),"/"!==t.path[0]&&(t.path="/"+t.path)}},populateUriFromAccessPointArn:function(e){var t=e._parsedArn,r="s3-outposts"===t.service,i="s3-object-lambda"===t.service,a=r?"."+t.outpostId:"",o=r?"s3-outposts":"s3-accesspoint",u=!r&&e.service.config.useFipsEndpoint?"-fips":"",c=!r&&e.service.config.useDualstackEndpoint?".dualstack":"",l=e.httpRequest.endpoint,p=s.getEndpointSuffix(t.region),m=e.service.config.s3UseArnRegion;if(l.hostname=[t.accessPoint+"-"+t.accountId+a,o+u+c,m?t.region:e.service.config.region,p].join("."),i){o="s3-object-lambda";var d=t.resource.split("/")[1];u=e.service.config.useFipsEndpoint?"-fips":"";l.hostname=[d+"-"+t.accountId,o+u,m?t.region:e.service.config.region,p].join(".")}l.host=l.hostname;var y=n.util.uriEscape(e.params.Bucket),h=e.httpRequest.path;e.httpRequest.path=h.replace(new RegExp("/"+y),""),"/"!==e.httpRequest.path[0]&&(e.httpRequest.path="/"+e.httpRequest.path),e.httpRequest.region=t.region},addExpect100Continue:function(e){var t=e.httpRequest.headers["Content-Length"];n.util.isNode()&&(t>=1048576||e.params.Body instanceof n.util.stream.Stream)&&(e.httpRequest.headers.Expect="100-continue")},addContentType:function(e){var t=e.httpRequest;if("GET"!==t.method&&"HEAD"!==t.method){t.headers["Content-Type"]||(t.headers["Content-Type"]="application/octet-stream");var r=t.headers["Content-Type"];if(n.util.isBrowser())if("string"!==typeof t.body||r.match(/;\s*charset=/)){t.headers["Content-Type"]=r.replace(/(;\s*charset=)(.+)$/,(function(e,t,r){return t+r.toUpperCase()}))}else{t.headers["Content-Type"]+="; charset=UTF-8"}}else delete t.headers["Content-Type"]},willComputeChecksums:function(e){var t=e.service.api.operations[e.operation].input.members,r=e.httpRequest.body,i=e.service.config.computeChecksums&&t.ContentMD5&&!e.params.ContentMD5&&r&&(n.util.Buffer.isBuffer(e.httpRequest.body)||"string"===typeof e.httpRequest.body);return!(!i||!e.service.shouldDisableBodySigning(e)||e.isPresigned())||!(!i||"s3"!==this.getSignatureVersion(e)||!e.isPresigned())},computeContentMd5:function(e){if(e.service.willComputeChecksums(e)){var t=n.util.crypto.md5(e.httpRequest.body,"base64");e.httpRequest.headers["Content-MD5"]=t}},computeSseCustomerKeyMd5:function(e){n.util.each({SSECustomerKey:"x-amz-server-side-encryption-customer-key-MD5",CopySourceSSECustomerKey:"x-amz-copy-source-server-side-encryption-customer-key-MD5"},(function(t,r){if(e.params[t]){var i=n.util.crypto.md5(e.params[t],"base64");e.httpRequest.headers[r]=i}}))},pathStyleBucketName:function(e){return!!this.config.s3ForcePathStyle||!this.config.s3BucketEndpoint&&(!o.dnsCompatibleBucketName(e)||!(!this.config.sslEnabled||!e.match(/\./)))},extractErrorFrom200Response:function(e){if(u[e.request.operation]){var t=e.httpResponse;if(t.body&&t.body.toString().match(""))throw e.data=null,(this.service?this.service:this).extractError(e),e.error;if(!t.body||!t.body.toString().match(/<[\w_]/))throw e.data=null,n.util.error(new Error,{code:"InternalError",message:"S3 aborted request"})}},retryableError:function(e,t){return!(!u[t.operation]||200!==e.statusCode)||(!t._requestRegionForBucket||!t.service.bucketRegionCache[t._requestRegionForBucket])&&(!(!e||"RequestTimeout"!==e.code)||(e&&-1!=c.indexOf(e.code)&&e.region&&e.region!=t.httpRequest.region?(t.httpRequest.region=e.region,301===e.statusCode&&t.service.updateReqBucketRegion(t),!0):n.Service.prototype.retryableError.call(this,e,t)))},updateReqBucketRegion:function(e,t){var r=e.httpRequest;if("string"===typeof t&&t.length&&(r.region=t),r.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)){var i=e.service,a=i.config,o=a.s3BucketEndpoint;o&&delete a.s3BucketEndpoint;var s=n.util.copy(a);delete s.endpoint,s.region=r.region,r.endpoint=new n.S3(s).endpoint,i.populateURI(e),a.s3BucketEndpoint=o,r.headers.Host=r.endpoint.host,"validate"===e._asm.currentState&&(e.removeListener("build",i.populateURI),e.addListener("build",i.removeVirtualHostedBucketFromPath))}},extractData:function(e){var t=e.request;if("getBucketLocation"===t.operation){var r=e.httpResponse.body.toString().match(/>(.+)<\/Location/);delete e.data._,e.data.LocationConstraint=r?r[1]:""}var n=t.params.Bucket||null;if("deleteBucket"!==t.operation||"string"!==typeof n||e.error){var i=(e.httpResponse.headers||{})["x-amz-bucket-region"]||null;if(!i&&"createBucket"===t.operation&&!e.error){var a=t.params.CreateBucketConfiguration;i=a?"EU"===a.LocationConstraint?"eu-west-1":a.LocationConstraint:"us-east-1"}i&&n&&i!==t.service.bucketRegionCache[n]&&(t.service.bucketRegionCache[n]=i)}else t.service.clearBucketRegionCache(n);t.service.extractRequestIds(e)},extractError:function(e){var t,r={304:"NotModified",403:"Forbidden",400:"BadRequest",404:"NotFound"},i=e.request,a=e.httpResponse.statusCode,o=e.httpResponse.body||"",s=(e.httpResponse.headers||{})["x-amz-bucket-region"]||null,u=i.params.Bucket||null,c=i.service.bucketRegionCache;if(s&&u&&s!==c[u]&&(c[u]=s),r[a]&&0===o.length)u&&!s&&(t=c[u]||null)!==i.httpRequest.region&&(s=t),e.error=n.util.error(new Error,{code:r[a],message:null,region:s});else{var l=(new n.XML.Parser).parse(o.toString());l.Region&&!s?(s=l.Region,u&&s!==c[u]&&(c[u]=s)):!u||s||l.Region||(t=c[u]||null)!==i.httpRequest.region&&(s=t),e.error=n.util.error(new Error,{code:l.Code||a,message:l.Message||null,region:s})}i.service.extractRequestIds(e)},requestBucketRegion:function(e,t){var r=e.error,i=e.request,a=i.params.Bucket||null;if(!r||!a||r.region||"listObjects"===i.operation||n.util.isNode()&&"headBucket"===i.operation||400===r.statusCode&&"headObject"!==i.operation||-1===c.indexOf(r.code))return t();var o=n.util.isNode()?"headBucket":"listObjects",s={Bucket:a};"listObjects"===o&&(s.MaxKeys=0);var u=i.service[o](s);u._requestRegionForBucket=a,u.send((function(){var e=i.service.bucketRegionCache[a]||null;r.region=e,t()}))},reqRegionForNetworkingError:function(e,t){if(!n.util.isBrowser())return t();var r=e.error,i=e.request,a=i.params.Bucket;if(!r||"NetworkingError"!==r.code||!a||"us-east-1"===i.httpRequest.region)return t();var s=i.service,u=s.bucketRegionCache,c=u[a]||null;if(c&&c!==i.httpRequest.region)s.updateReqBucketRegion(i,c),t();else if(o.dnsCompatibleBucketName(a))if(i.httpRequest.virtualHostedBucket){var l=s.listObjects({Bucket:a,MaxKeys:0});s.updateReqBucketRegion(l,"us-east-1"),l._requestRegionForBucket=a,l.send((function(){var e=s.bucketRegionCache[a]||null;e&&e!==i.httpRequest.region&&s.updateReqBucketRegion(i,e),t()}))}else t();else s.updateReqBucketRegion(i,"us-east-1"),"us-east-1"!==u[a]&&(u[a]="us-east-1"),t()},bucketRegionCache:{},clearBucketRegionCache:function(e){var t=this.bucketRegionCache;e?"string"===typeof e&&(e=[e]):e=Object.keys(t);for(var r=0;r=0)throw n.util.error(new Error,{code:"InvalidConfiguration",message:"FIPS region not allowed in ARN"});if(!r&&o!==s)throw n.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region conflicts with access point region"});if(r&&i.getEndpointSuffix(o)!==i.getEndpointSuffix(s))throw n.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region and access point region not in same partition"});if(e.service.config.useAccelerateEndpoint)throw n.util.error(new Error,{code:"InvalidConfiguration",message:"useAccelerateEndpoint config is not supported with access point ARN"});if("s3-outposts"===e._parsedArn.service&&e.service.config.useDualstackEndpoint)throw n.util.error(new Error,{code:"InvalidConfiguration",message:"Dualstack is not supported with outposts access point ARN"})},loadUseArnRegionConfig:function(e){var t="AWS_S3_USE_ARN_REGION",r="s3_use_arn_region",i=!0,a=e.service._originalConfig||{};if(void 0!==e.service.config.s3UseArnRegion)return e.service.config.s3UseArnRegion;if(void 0!==a.s3UseArnRegion)i=!0===a.s3UseArnRegion;else if(n.util.isNode())if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}[t]){var o={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}[t].trim().toLowerCase();if(["false","true"].indexOf(o)<0)throw n.util.error(new Error,{code:"InvalidConfiguration",message:t+" only accepts true or false. Got "+{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}[t],retryable:!1});i="true"===o}else{var s={};try{s=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}.AWS_PROFILE||n.util.defaultProfile]}catch(u){}if(s[r]){if(["false","true"].indexOf(s[r].trim().toLowerCase())<0)throw n.util.error(new Error,{code:"InvalidConfiguration",message:r+" only accepts true or false. Got "+s[r],retryable:!1});i="true"===s[r].trim().toLowerCase()}}return e.service.config.s3UseArnRegion=i,i},validatePopulateUriFromArn:function(e){if(e.service._originalConfig&&e.service._originalConfig.endpoint)throw n.util.error(new Error,{code:"InvalidConfiguration",message:"Custom endpoint is not compatible with access point ARN"});if(e.service.config.s3ForcePathStyle)throw n.util.error(new Error,{code:"InvalidConfiguration",message:"Cannot construct path-style endpoint with access point"})},dnsCompatibleBucketName:function(e){var t=e,r=new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/),n=new RegExp(/(\d+\.){3}\d+/),i=new RegExp(/\.\./);return!(!t.match(r)||t.match(n)||t.match(i))}};e.exports=a},5387:function(e,t,r){var n=r(8468);n.util.update(n.SQS.prototype,{setupRequestListeners:function(e){e.addListener("build",this.buildEndpoint),e.service.config.computeChecksums&&("sendMessage"===e.operation?e.addListener("extractData",this.verifySendMessageChecksum):"sendMessageBatch"===e.operation?e.addListener("extractData",this.verifySendMessageBatchChecksum):"receiveMessage"===e.operation&&e.addListener("extractData",this.verifyReceiveMessageChecksum))},verifySendMessageChecksum:function(e){if(e.data){var t=e.data.MD5OfMessageBody,r=this.params.MessageBody,n=this.service.calculateChecksum(r);if(n!==t){var i='Got "'+e.data.MD5OfMessageBody+'", expecting "'+n+'".';this.service.throwInvalidChecksumError(e,[e.data.MessageId],i)}}},verifySendMessageBatchChecksum:function(e){if(e.data){var t=this.service,r={},i=[],a=[];n.util.arrayEach(e.data.Successful,(function(e){r[e.Id]=e})),n.util.arrayEach(this.params.Entries,(function(e){if(r[e.Id]){var n=r[e.Id].MD5OfMessageBody,o=e.MessageBody;t.isChecksumValid(n,o)||(i.push(e.Id),a.push(r[e.Id].MessageId))}})),i.length>0&&t.throwInvalidChecksumError(e,a,"Invalid messages: "+i.join(", "))}},verifyReceiveMessageChecksum:function(e){if(e.data){var t=this.service,r=[];n.util.arrayEach(e.data.Messages,(function(e){var n=e.MD5OfBody,i=e.Body;t.isChecksumValid(n,i)||r.push(e.MessageId)})),r.length>0&&t.throwInvalidChecksumError(e,r,"Invalid messages: "+r.join(", "))}},throwInvalidChecksumError:function(e,t,r){e.error=n.util.error(new Error,{retryable:!0,code:"InvalidChecksum",messageIds:t,message:e.request.operation+" returned an invalid MD5 response. "+r})},isChecksumValid:function(e,t){return this.calculateChecksum(t)===e},calculateChecksum:function(e){return n.util.crypto.md5(e,"hex")},buildEndpoint:function(e){var t=e.httpRequest.params.QueueUrl;if(t){e.httpRequest.endpoint=new n.Endpoint(t);var r=e.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./);r&&(e.httpRequest.region=r[1])}}})},28177:function(e,t,r){var n=r(8468),i=r(21980);n.util.update(n.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new n.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=i(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var a=r.endpoint.indexOf(".amazonaws.com"),o=r.endpoint.substring(0,a)+"."+r.region+r.endpoint.substring(a);e.httpRequest.updateEndpoint(o),e.httpRequest.region=r.region}}})},11261:function(e,t,r){var n=r(8468);n.Signers.Bearer=n.util.inherit(n.Signers.RequestSigner,{constructor:function(e){n.Signers.RequestSigner.call(this,e)},addAuthorization:function(e){this.request.headers.Authorization="Bearer "+e.token}})},10062:function(e,t,r){var n=r(8468),i=n.util.inherit,a="presigned-expires";function o(e){var t=e.httpRequest.headers[a],r=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],r===n.Signers.V4){if(t>604800){throw n.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1})}e.httpRequest.headers[a]=t}else{if(r!==n.Signers.S3)throw n.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var i=e.service?e.service.getSkewCorrectedDate():n.util.date.getDate();e.httpRequest.headers[a]=parseInt(n.util.date.unixTimestamp(i)+t,10).toString()}}function s(e){var t=e.httpRequest.endpoint,r=n.util.urlParse(e.httpRequest.path),i={};r.search&&(i=n.util.queryStringParse(r.search.substr(1)));var o=e.httpRequest.headers.Authorization.split(" ");if("AWS"===o[0])o=o[1].split(":"),i.Signature=o.pop(),i.AWSAccessKeyId=o.join(":"),n.util.each(e.httpRequest.headers,(function(e,t){e===a&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete i[e],e=e.toLowerCase()),i[e]=t})),delete e.httpRequest.headers[a],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===o[0]){o.shift();var s=o.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=s,delete i.Expires}t.pathname=r.pathname,t.search=n.util.queryParamsToString(i)}n.Signers.Presign=i({sign:function(e,t,r){if(e.httpRequest.headers[a]=t||3600,e.on("build",o),e.on("sign",s),e.removeListener("afterBuild",n.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return n.util.urlFormat(e.httpRequest.endpoint)}e.build((function(){this.response.error?r(this.response.error):r(null,n.util.urlFormat(e.httpRequest.endpoint))}))}}),e.exports=n.Signers.Presign},85232:function(e,t,r){var n=r(8468),i=n.util.inherit;n.Signers.RequestSigner=i({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),n.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return n.Signers.V2;case"v3":return n.Signers.V3;case"s3v4":case"v4":return n.Signers.V4;case"s3":return n.Signers.S3;case"v3https":return n.Signers.V3Https;case"bearer":return n.Signers.Bearer}throw new Error("Unknown signing version "+e)},r(50442),r(1469),r(98686),r(64355),r(60248),r(10062),r(11261)},60248:function(e,t,r){var n=r(8468),i=n.util.inherit;n.Signers.S3=i(n.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=n.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),i="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=i},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];n.util.each(this.request.headers,(function(t){t.match(/^x-amz-/i)&&e.push(t)})),e.sort((function(e,t){return e.toLowerCase()=0?"&":"?";this.request.path+=a+n.util.queryParamsToString(i)},authorization:function(e,t){var r=[],n=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+n),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=i.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=n.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];n.util.each.call(this,this.request.headers,(function(t,r){e.push([t,r])})),e.sort((function(e,t){return e[0].toLowerCase()-1&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",o,"expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers[o]}}),e.exports=n.Signers.V4},94966:function(e,t,r){var n=r(8468),i={},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 c=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((u=!1!==u)&&c in i)return i[c];var l=n.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),p=n.util.crypto.hmac(l,r,"buffer"),m=n.util.crypto.hmac(p,s,"buffer"),d=n.util.crypto.hmac(m,o,"buffer");return u&&(i[c]=d,a.push(c),a.length>50&&delete i[a.shift()]),d},emptyCache:function(){i={},a=[]}}},41496:function(e){function t(e,t){this.currentState=t||null,this.states=e||{}}t.prototype.runTo=function(e,t,r,n){"function"===typeof e&&(n=r,r=t,t=e,e=null);var i=this,a=i.states[i.currentState];a.fn.call(r||i,n,(function(n){if(n){if(!a.fail)return t?t.call(r,n):null;i.currentState=a.fail}else{if(!a.accept)return t?t.call(r):null;i.currentState=a.accept}if(i.currentState===e)return t?t.call(r,n):null;i.runTo(e,t,r,n)}))},t.prototype.addState=function(e,t,r,n){return"function"===typeof t?(n=t,t=null,r=null):"function"===typeof r&&(n=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:n},this},e.exports=t},23657:function(e,t,r){var n,i={environment:"nodejs",engine:function(){if(i.isBrowser()&&"undefined"!==typeof navigator)return navigator.userAgent;var e=process.platform+"/"+process.version;return{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}.AWS_EXECUTION_ENV&&(e+=" exec-env/"+{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}.AWS_EXECUTION_ENV),e},userAgent:function(){var e=i.environment,t="aws-sdk-"+e+"/"+r(8468).VERSION;return"nodejs"===e&&(t+=" "+i.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},uriEscapePath:function(e){var t=[];return i.arrayEach(e.split("/"),(function(e){t.push(i.uriEscape(e))})),t.join("/")},urlParse:function(e){return i.url.parse(e)},urlFormat:function(e){return i.url.format(e)},queryStringParse:function(e){return i.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=i.uriEscape,n=Object.keys(e).sort();return i.arrayEach(n,(function(n){var a=e[n],o=r(n),s=o+"=";if(Array.isArray(a)){var u=[];i.arrayEach(a,(function(e){u.push(r(e))})),s=o+"="+u.sort().join("&"+o+"=")}else void 0!==a&&null!==a&&(s=o+"="+r(a));t.push(s)})),t.join("&")},readFileSync:function(e){return i.isBrowser()?null:r(28022).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"===typeof e)throw i.error(new Error("Cannot base64 encode number "+e));return null===e||"undefined"===typeof e?e:i.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"===typeof e)throw i.error(new Error("Cannot base64 decode number "+e));return null===e||"undefined"===typeof e?e:i.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"===typeof i.Buffer.from&&i.Buffer.from!==Uint8Array.from?i.Buffer.from(e,t):new i.Buffer(e,t)},alloc:function(e,t,r){if("number"!==typeof e)throw new Error("size passed to alloc must be a number.");if("function"===typeof i.Buffer.alloc)return i.Buffer.alloc(e,t,r);var n=new i.Buffer(e);return void 0!==t&&"function"===typeof n.fill&&n.fill(t,void 0,void 0,r),n},toStream:function(e){i.Buffer.isBuffer(e)||(e=i.buffer.toBuffer(e));var t=new i.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,a=0;for(r=0;r>>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=i.buffer.toBuffer(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 a=i.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"===typeof t&&(t=i.buffer.toBuffer(t));var o=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){a.update(e)})),t.on("error",(function(e){n(e)})),t.on("end",(function(){n(null,a.digest(r))}));else{if(!n||!o||s||"undefined"===typeof FileReader){i.isBrowser()&&"object"===typeof t&&!s&&(t=new i.Buffer(new Uint8Array(t)));var u=a.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));a.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)n(null,a.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(o.call(t,c,e))}},l._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=0)return s++,void setTimeout(c,a+(e.retryAfter||0))}r(e)},c=function(){var t="";a.handleRequest(e,o,(function(e){e.on("data",(function(e){t+=e.toString()})),e.on("end",(function(){var n=e.statusCode;if(n<300)r(null,t);else{var a=1e3*parseInt(e.headers["retry-after"],10)||0,o=i.error(new Error,{statusCode:n,retryable:n>=500||429===n});a&&o.retryable&&(o.retryAfter=a),u(o)}}))}),u)};n.util.defer(c)},uuid:{v4:function(){return r(12206).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 process&&"function"===typeof process.nextTick?process.nextTick(e):"function"===typeof setImmediate?setImmediate(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={},n={};if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}[i.configOptInEnv])n=e.loadFrom({isConfig:!0,filename:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}[i.sharedConfigFileEnv]});var a={};try{a=e.loadFrom({filename:t||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}[i.configOptInEnv]&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}[i.sharedCredentialsFileEnv]})}catch(c){if(!{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_KASIMU_API_URL:"https://api.kasimu.me"}[i.configOptInEnv])throw c}for(var o=0,s=Object.keys(n);o=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw i.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=i},68918:function(e,t,r){var n=r(23657),i=r(3825);function a(){}function o(e,t){for(var r=e.getElementsByTagName(t),n=0,i=r.length;n0||n?a.toString():""},e.exports=o},7651:function(e){e.exports={escapeAttribute:function(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}}},25483:function(e){e.exports={escapeElement:function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},54731:function(e,t,r){var n=r(7651).escapeAttribute;function i(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}i.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},i.prototype.addChildNode=function(e){return this.children.push(e),this},i.prototype.removeAttribute=function(e){return delete this.attributes[e],this},i.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,i=0,a=Object.keys(r);i"+this.children.map((function(e){return e.toString()})).join("")+"":"/>")},e.exports={XmlNode:i}},27688:function(e,t,r){var n=r(25483).escapeElement;function i(e){this.value=e}i.prototype.toString=function(){return n(""+this.value)},e.exports={XmlText:i}},17861:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);var i=function(e,t){var n=t||0,i=r;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")};t.default=i},12206:function(e,t,r){"use strict";Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return a.default}});var n=s(r(25271)),i=s(r(76895)),a=s(r(10426)),o=s(r(54219));function s(e){return e&&e.__esModule?e:{default:e}}},45891:function(e,t){"use strict";function r(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t,n,i,a,o){return r((s=r(r(t,e),r(i,o)))<<(u=a)|s>>>32-u,n);var s,u}function i(e,t,r,i,a,o,s){return n(t&r|~t&i,e,t,a,o,s)}function a(e,t,r,i,a,o,s){return n(t&i|r&~i,e,t,a,o,s)}function o(e,t,r,i,a,o,s){return n(t^r^i,e,t,a,o,s)}function s(e,t,r,i,a,o,s){return n(r^(t|~i),e,t,a,o,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var n=0;n>5]>>>t%32&255,n=parseInt(o.charAt(r>>>4&15)+o.charAt(15&r),16),i.push(n);return i}(function(e,t){var n,u,c,l,p;e[t>>5]|=128<>>9<<4)]=t;var m=1732584193,d=-271733879,y=-1732584194,h=271733878;for(n=0;n>2)-1]=void 0,t=0;t>5]|=(255&e[t/8])<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){var t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var a=unescape(encodeURIComponent(e));e=new Array(a.length);for(var o=0;o>>0;b=f,f=h,h=n(y,30)>>>0,y=d,d=S}i[0]=i[0]+d>>>0,i[1]=i[1]+y>>>0,i[2]=i[2]+h>>>0,i[3]=i[3]+f>>>0,i[4]=i[4]+b>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};t.default=i},25271:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i,a=s(r(68397)),o=s(r(17861));function s(e){return e&&e.__esModule?e:{default:e}}var u=0,c=0;var l=function(e,t,r){var s=t&&r||0,l=t||[],p=(e=e||{}).node||n,m=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==m){var d=e.random||(e.rng||a.default)();null==p&&(p=n=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==m&&(m=i=16383&(d[6]<<8|d[7]))}var y=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:c+1,f=y-u+(h-c)/1e4;if(f<0&&void 0===e.clockseq&&(m=m+1&16383),(f<0||y>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=y,c=h,i=m;var b=(1e4*(268435455&(y+=122192928e5))+h)%4294967296;l[s++]=b>>>24&255,l[s++]=b>>>16&255,l[s++]=b>>>8&255,l[s++]=255&b;var g=y/4294967296*1e4&268435455;l[s++]=g>>>8&255,l[s++]=255&g,l[s++]=g>>>24&15|16,l[s++]=g>>>16&255,l[s++]=m>>>8|128,l[s++]=255&m;for(var S=0;S<6;++S)l[s+S]=p[S];return t||(0,o.default)(l)};t.default=l},76895:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(9606)),i=a(r(45891));function a(e){return e&&e.__esModule?e:{default:e}}var o=(0,n.default)("v3",48,i.default);t.default=o},9606:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=function(e,n,a,o){var s=a&&o||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),r=0;r=0;a--){i[a].Expire=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}},14976:function(e,t,r){"use strict";var n,i=r(68129),a=(n=i)&&n.__esModule?n:{default:n};t.Z=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":(0,a.default)(t))&&"function"!==typeof t?e:t}},68129:function(e,t,r){"use strict";t.__esModule=!0;var n=o(r(86972)),i=o(r(2399)),a="function"===typeof i.default&&"symbol"===typeof n.default?function(e){return typeof e}:function(e){return e&&"function"===typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof i.default&&"symbol"===a(n.default)?function(e){return"undefined"===typeof e?"undefined":a(e)}:function(e){return e&&"function"===typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":"undefined"===typeof e?"undefined":a(e)}},81721:function(e,t,r){r(47232),e.exports=r(40640).Object.assign},47039:function(e,t,r){r(44664);var n=r(40640).Object;e.exports=function(e,t){return n.create(e,t)}},25907:function(e,t,r){r(34830);var n=r(40640).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},65103:function(e,t,r){r(48267);var n=r(40640).Object;e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)}},90968:function(e,t,r){r(35894),e.exports=r(40640).Object.getPrototypeOf},64294:function(e,t,r){r(25128),e.exports=r(40640).Object.keys},97550:function(e,t,r){r(64938),e.exports=r(40640).Object.setPrototypeOf},74049:function(e,t,r){r(1663),r(21504),r(226),r(27604),e.exports=r(40640).Symbol},61748:function(e,t,r){r(29366),r(45690),e.exports=r(97236).f("iterator")},67281:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},72642:function(e){e.exports=function(){}},79478:function(e,t,r){var n=r(65682);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},71437:function(e,t,r){var n=r(4969),i=r(89839),a=r(22137);e.exports=function(e){return function(t,r,o){var s,u=n(t),c=i(u.length),l=a(o,c);if(e&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}}},93760:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},40640:function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},79882:function(e,t,r){var n=r(67281);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,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},16101:function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},73457:function(e,t,r){e.exports=!r(31718)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},80244:function(e,t,r){var n=r(65682),i=r(69765).document,a=n(i)&&n(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},2158:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},37594:function(e,t,r){var n=r(55059),i=r(87141),a=r(52553);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var o,s=r(e),u=a.f,c=0;s.length>c;)u.call(e,o=s[c++])&&t.push(o);return t}},58430:function(e,t,r){var n=r(69765),i=r(40640),a=r(79882),o=r(61086),s=r(39820),u="prototype",c=function e(t,r,c){var l,p,m,d=t&e.F,y=t&e.G,h=t&e.S,f=t&e.P,b=t&e.B,g=t&e.W,S=y?i:i[r]||(i[r]={}),v=S[u],N=y?n:h?n[r]:(n[r]||{})[u];for(l in y&&(c=r),c)(p=!d&&N&&void 0!==N[l])&&s(S,l)||(m=p?N[l]:c[l],S[l]=y&&"function"!=typeof N[l]?c[l]:b&&p?a(m,n):g&&N[l]==m?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[u]=e[u],t}(m):f&&"function"==typeof m?a(Function.call,m):m,f&&((S.virtual||(S.virtual={}))[l]=m,t&e.R&&v&&!v[l]&&o(v,l,m)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},31718:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},69765:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},39820:function(e){var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},61086:function(e,t,r){var n=r(51272),i=r(6117);e.exports=r(73457)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},45942:function(e,t,r){var n=r(69765).document;e.exports=n&&n.documentElement},23952:function(e,t,r){e.exports=!r(73457)&&!r(31718)((function(){return 7!=Object.defineProperty(r(80244)("div"),"a",{get:function(){return 7}}).a}))},21922:function(e,t,r){var n=r(93760);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},58249:function(e,t,r){var n=r(93760);e.exports=Array.isArray||function(e){return"Array"==n(e)}},65682:function(e){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},59136:function(e,t,r){"use strict";var n=r(91760),i=r(6117),a=r(20825),o={};r(61086)(o,r(56505)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(o,{next:i(1,r)}),a(e,t+" Iterator")}},85387:function(e,t,r){"use strict";var n=r(73845),i=r(58430),a=r(24368),o=r(61086),s=r(1700),u=r(59136),c=r(20825),l=r(94794),p=r(56505)("iterator"),m=!([].keys&&"next"in[].keys()),d="keys",y="values",h=function(){return this};e.exports=function(e,t,r,f,b,g,S){u(r,t,f);var v,N,k,I=function(e){if(!m&&e in A)return A[e];switch(e){case d:case y:return function(){return new r(this,e)}}return function(){return new r(this,e)}},C=t+" Iterator",T=b==y,x=!1,A=e.prototype,P=A[p]||A["@@iterator"]||b&&A[b],D=P||I(b),R=b?T?I("entries"):D:void 0,w="Array"==t&&A.entries||P;if(w&&(k=l(w.call(new e)))!==Object.prototype&&k.next&&(c(k,C,!0),n||"function"==typeof k[p]||o(k,p,h)),T&&P&&P.name!==y&&(x=!0,D=function(){return P.call(this)}),n&&!S||!m&&!x&&A[p]||o(A,p,D),s[t]=D,s[C]=h,b)if(v={values:T?D:I(y),keys:g?D:I(d),entries:R},S)for(N in v)N in A||a(A,N,v[N]);else i(i.P+i.F*(m||x),t,v);return v}},82217:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},1700:function(e){e.exports={}},73845:function(e){e.exports=!0},25619:function(e,t,r){var n=r(87898)("meta"),i=r(65682),a=r(39820),o=r(51272).f,s=0,u=Object.isExtensible||function(){return!0},c=!r(31718)((function(){return u(Object.preventExtensions({}))})),l=function(e){o(e,n,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,n)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[n].i},getWeak:function(e,t){if(!a(e,n)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[n].w},onFreeze:function(e){return c&&p.NEED&&u(e)&&!a(e,n)&&l(e),e}}},11586:function(e,t,r){"use strict";var n=r(73457),i=r(55059),a=r(87141),o=r(52553),s=r(46663),u=r(21922),c=Object.assign;e.exports=!c||r(31718)((function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=c({},e)[r]||Object.keys(c({},t)).join("")!=n}))?function(e,t){for(var r=s(e),c=arguments.length,l=1,p=a.f,m=o.f;c>l;)for(var d,y=u(arguments[l++]),h=p?i(y).concat(p(y)):i(y),f=h.length,b=0;f>b;)d=h[b++],n&&!m.call(y,d)||(r[d]=y[d]);return r}:c},91760:function(e,t,r){var n=r(79478),i=r(75475),a=r(2158),o=r(11383)("IE_PROTO"),s=function(){},u="prototype",c=function(){var e,t=r(80244)("iframe"),n=a.length;for(t.style.display="none",r(45942).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("