/*! For license information please see main.2cd682255f165f5855c9.bundle.js.LICENSE.txt */ (()=>{var e,t,i,r,n={30296:e=>{var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,i){return"number"!=typeof i||t[e]?i:i+"px"}},70254:e=>{e.exports=function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=13)}([function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var i=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=i)},function(e,t,i){e.exports=!i(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var r=i(32)("wks"),n=i(9),o=i(0).Symbol,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:n)("Symbol."+e))}).store=r},function(e,t,i){var r=i(0),n=i(2),o=i(8),s=i(22),a=i(10),u=function(e,t,i){var c,l,d,p,m=e&u.F,h=e&u.G,g=e&u.S,y=e&u.P,f=e&u.B,b=h?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,S=h?n:n[t]||(n[t]={}),v=S.prototype||(S.prototype={});for(c in h&&(i=t),i)d=((l=!m&&b&&void 0!==b[c])?b:i)[c],p=f&&l?a(d,r):y&&"function"==typeof d?a(Function.call,d):d,b&&s(b,c,d,e&u.U),S[c]!=d&&o(S,c,p),y&&v[c]!=d&&(v[c]=d)};r.core=n,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,i){var r=i(16),n=i(21);e.exports=i(3)?function(e,t,i){return r.f(e,t,n(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t){var i=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+r).toString(36))}},function(e,t,i){var r=i(24);e.exports=function(e,t,i){if(r(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,r){return e.call(t,i,r)};case 3:return function(i,r,n){return e.call(t,i,r,n)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,i){var r=i(28),n=Math.min;e.exports=function(e){return e>0?n(r(e),9007199254740991):0}},function(e,t,i){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var i=Array.isArray(t)?t:t.split(","),r=e.name||"",n=e.type||"",o=n.replace(/\/.*$/,"");return i.some((function(e){var t=e.trim();return"."===t.charAt(0)?r.toLowerCase().endsWith(t.toLowerCase()):t.endsWith("/*")?o===t.replace(/\/.*$/,""):n===t}))}return!0},i(14),i(34)},function(e,t,i){i(15),e.exports=i(2).Array.some},function(e,t,i){"use strict";var r=i(7),n=i(25)(3);r(r.P+r.F*!i(33)([].some,!0),"Array",{some:function(e){return n(this,e,arguments[1])}})},function(e,t,i){var r=i(17),n=i(18),o=i(20),s=Object.defineProperty;t.f=i(3)?Object.defineProperty:function(e,t,i){if(r(e),t=o(t,!0),r(i),n)try{return s(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var r=i(1);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,i){e.exports=!i(3)&&!i(4)((function(){return 7!=Object.defineProperty(i(19)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,i){var r=i(1),n=i(0).document,o=r(n)&&r(n.createElement);e.exports=function(e){return o?n.createElement(e):{}}},function(e,t,i){var r=i(1);e.exports=function(e,t){if(!r(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!r(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!r(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!r(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,i){var r=i(0),n=i(8),o=i(23),s=i(9)("src"),a=Function.toString,u=(""+a).split("toString");i(2).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,i,a){var c="function"==typeof i;c&&(o(i,"name")||n(i,"name",t)),e[t]!==i&&(c&&(o(i,s)||n(i,s,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=i:a?e[t]?e[t]=i:n(e,t,i):(delete e[t],n(e,t,i)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||a.call(this)}))},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){var r=i(10),n=i(26),o=i(27),s=i(12),a=i(29);e.exports=function(e,t){var i=1==e,u=2==e,c=3==e,l=4==e,d=6==e,p=5==e||d,m=t||a;return function(t,a,h){for(var g,y,f=o(t),b=n(f),S=r(a,h,3),v=s(b.length),_=0,C=i?m(t,v):u?m(t,0):void 0;v>_;_++)if((p||_ in b)&&(y=S(g=b[_],_,f),e))if(i)C[_]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:C.push(g)}else if(l)return!1;return d?-1:c||l?l:C}}},function(e,t,i){var r=i(5);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,i){var r=i(11);e.exports=function(e){return Object(r(e))}},function(e,t){var i=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:i)(e)}},function(e,t,i){var r=i(30);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,i){var r=i(1),n=i(31),o=i(6)("species");e.exports=function(e){var t;return n(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!n(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,i){var r=i(5);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,i){var r=i(0),n=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return n[e]||(n[e]={})}},function(e,t,i){"use strict";var r=i(4);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,i){i(35),e.exports=i(2).String.endsWith},function(e,t,i){"use strict";var r=i(7),n=i(12),o=i(36),s="".endsWith;r(r.P+r.F*i(38)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),i=arguments.length>1?arguments[1]:void 0,r=n(t.length),a=void 0===i?r:Math.min(n(i),r),u=String(e);return s?s.call(t,u,a):t.slice(a-u.length,a)===u}})},function(e,t,i){var r=i(37),n=i(11);e.exports=function(e,t,i){if(r(t))throw TypeError("String#"+i+" doesn't accept regex!");return String(n(e))}},function(e,t,i){var r=i(1),n=i(5),o=i(6)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==n(e))}},function(e,t,i){var r=i(6)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}}])},64653:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.acm={},r.ACM=n.defineService("acm",["2015-12-08"]),Object.defineProperty(o.services.acm,"2015-12-08",{get:function(){var e=i(34662);return e.paginators=i(42680).o,e.waiters=i(85678).V,e},enumerable:!0,configurable:!0}),e.exports=r.ACM},43289:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.apigateway={},r.APIGateway=n.defineService("apigateway",["2015-07-09"]),i(53370),Object.defineProperty(o.services.apigateway,"2015-07-09",{get:function(){var e=i(59463);return e.paginators=i(25878).o,e},enumerable:!0,configurable:!0}),e.exports=r.APIGateway},36097:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.applicationautoscaling={},r.ApplicationAutoScaling=n.defineService("applicationautoscaling",["2016-02-06"]),Object.defineProperty(o.services.applicationautoscaling,"2016-02-06",{get:function(){var e=i(47320);return e.paginators=i(40322).o,e},enumerable:!0,configurable:!0}),e.exports=r.ApplicationAutoScaling},71942:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.athena={},r.Athena=n.defineService("athena",["2017-05-18"]),Object.defineProperty(o.services.athena,"2017-05-18",{get:function(){var e=i(28680);return e.paginators=i(44417).o,e},enumerable:!0,configurable:!0}),e.exports=r.Athena},37376:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.autoscaling={},r.AutoScaling=n.defineService("autoscaling",["2011-01-01"]),Object.defineProperty(o.services.autoscaling,"2011-01-01",{get:function(){var e=i(55394);return e.paginators=i(81436).o,e},enumerable:!0,configurable:!0}),e.exports=r.AutoScaling},84047:(e,t,i)=>{i(17321),e.exports={ACM:i(64653),APIGateway:i(43289),ApplicationAutoScaling:i(36097),AutoScaling:i(37376),CloudFormation:i(45107),CloudFront:i(94924),CloudHSM:i(94508),CloudTrail:i(95473),CloudWatch:i(4352),CloudWatchEvents:i(30552),CloudWatchLogs:i(60867),CodeBuild:i(61668),CodeCommit:i(68101),CodeDeploy:i(39529),CodePipeline:i(339),CognitoIdentity:i(96105),CognitoIdentityServiceProvider:i(1071),CognitoSync:i(97478),ConfigService:i(6269),CUR:i(75453),DeviceFarm:i(79162),DirectConnect:i(15147),DynamoDB:i(76254),DynamoDBStreams:i(40341),EC2:i(67163),ECR:i(650),ECS:i(72169),EFS:i(43556),ElastiCache:i(11775),ElasticBeanstalk:i(20061),ELB:i(25838),ELBv2:i(24359),EMR:i(35351),ElasticTranscoder:i(71621),Firehose:i(98405),GameLift:i(3940),IAM:i(96559),Inspector:i(32456),Iot:i(999),IotData:i(44030),Kinesis:i(96814),KMS:i(78),Lambda:i(44655),LexRuntime:i(25718),MachineLearning:i(61744),MarketplaceCommerceAnalytics:i(64910),MTurk:i(93978),MobileAnalytics:i(9382),OpsWorks:i(16974),Polly:i(49756),RDS:i(83189),Redshift:i(21615),Rekognition:i(93487),Route53:i(95730),Route53Domains:i(58100),S3:i(34766),ServiceCatalog:i(68641),SES:i(16410),SNS:i(33561),SQS:i(81314),SSM:i(61170),StorageGateway:i(94060),STS:i(93568),XRay:i(44501),WAF:i(95474),WorkDocs:i(93143),LexModelBuildingService:i(3018),Athena:i(71942),CloudHSMV2:i(99699),Pricing:i(75661),CostExplorer:i(59310),MediaStoreData:i(50641),Comprehend:i(42054),KinesisVideoArchivedMedia:i(27629),KinesisVideoMedia:i(40545),KinesisVideo:i(69670),Translate:i(89678),ResourceGroups:i(26139),Connect:i(65261),SecretsManager:i(29639),IoTAnalytics:i(38276),ComprehendMedical:i(98525),Personalize:i(59004),PersonalizeEvents:i(65120),PersonalizeRuntime:i(49574),ForecastService:i(16349),ForecastQueryService:i(20862),KinesisVideoSignalingChannels:i(618),Location:i(39111),LexRuntimeV2:i(79739)}},45107:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cloudformation={},r.CloudFormation=n.defineService("cloudformation",["2010-05-15"]),Object.defineProperty(o.services.cloudformation,"2010-05-15",{get:function(){var e=i(31930);return e.paginators=i(10611).o,e.waiters=i(53732).V,e},enumerable:!0,configurable:!0}),e.exports=r.CloudFormation},94924:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cloudfront={},r.CloudFront=n.defineService("cloudfront",["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25","2016-11-25*","2017-03-25","2017-03-25*","2017-10-30","2017-10-30*","2018-06-18","2018-06-18*","2018-11-05","2018-11-05*","2019-03-26","2019-03-26*","2020-05-31"]),i(67781),Object.defineProperty(o.services.cloudfront,"2016-11-25",{get:function(){var e=i(64908);return e.paginators=i(57305).o,e.waiters=i(71106).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.cloudfront,"2017-03-25",{get:function(){var e=i(76944);return e.paginators=i(83654).o,e.waiters=i(83406).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.cloudfront,"2017-10-30",{get:function(){var e=i(80198);return e.paginators=i(52915).o,e.waiters=i(13399).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.cloudfront,"2018-06-18",{get:function(){var e=i(29549);return e.paginators=i(7805).o,e.waiters=i(2353).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.cloudfront,"2018-11-05",{get:function(){var e=i(22253);return e.paginators=i(29533).o,e.waiters=i(36883).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.cloudfront,"2019-03-26",{get:function(){var e=i(29574);return e.paginators=i(35556).o,e.waiters=i(97142).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.cloudfront,"2020-05-31",{get:function(){var e=i(66310);return e.paginators=i(48335).o,e.waiters=i(83517).V,e},enumerable:!0,configurable:!0}),e.exports=r.CloudFront},94508:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cloudhsm={},r.CloudHSM=n.defineService("cloudhsm",["2014-05-30"]),Object.defineProperty(o.services.cloudhsm,"2014-05-30",{get:function(){var e=i(18637);return e.paginators=i(18988).o,e},enumerable:!0,configurable:!0}),e.exports=r.CloudHSM},99699:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cloudhsmv2={},r.CloudHSMV2=n.defineService("cloudhsmv2",["2017-04-28"]),Object.defineProperty(o.services.cloudhsmv2,"2017-04-28",{get:function(){var e=i(90554);return e.paginators=i(77334).o,e},enumerable:!0,configurable:!0}),e.exports=r.CloudHSMV2},95473:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cloudtrail={},r.CloudTrail=n.defineService("cloudtrail",["2013-11-01"]),Object.defineProperty(o.services.cloudtrail,"2013-11-01",{get:function(){var e=i(11506);return e.paginators=i(27523).o,e},enumerable:!0,configurable:!0}),e.exports=r.CloudTrail},4352:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cloudwatch={},r.CloudWatch=n.defineService("cloudwatch",["2010-08-01"]),Object.defineProperty(o.services.cloudwatch,"2010-08-01",{get:function(){var e=i(16363);return e.paginators=i(46675).o,e.waiters=i(21466).V,e},enumerable:!0,configurable:!0}),e.exports=r.CloudWatch},30552:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cloudwatchevents={},r.CloudWatchEvents=n.defineService("cloudwatchevents",["2014-02-03*","2015-10-07"]),Object.defineProperty(o.services.cloudwatchevents,"2015-10-07",{get:function(){var e=i(40299);return e.paginators=i(54031).o,e},enumerable:!0,configurable:!0}),e.exports=r.CloudWatchEvents},60867:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cloudwatchlogs={},r.CloudWatchLogs=n.defineService("cloudwatchlogs",["2014-03-28"]),Object.defineProperty(o.services.cloudwatchlogs,"2014-03-28",{get:function(){var e=i(73044);return e.paginators=i(15472).o,e},enumerable:!0,configurable:!0}),e.exports=r.CloudWatchLogs},61668:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.codebuild={},r.CodeBuild=n.defineService("codebuild",["2016-10-06"]),Object.defineProperty(o.services.codebuild,"2016-10-06",{get:function(){var e=i(40893);return e.paginators=i(23010).o,e},enumerable:!0,configurable:!0}),e.exports=r.CodeBuild},68101:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.codecommit={},r.CodeCommit=n.defineService("codecommit",["2015-04-13"]),Object.defineProperty(o.services.codecommit,"2015-04-13",{get:function(){var e=i(57144);return e.paginators=i(62599).o,e},enumerable:!0,configurable:!0}),e.exports=r.CodeCommit},39529:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.codedeploy={},r.CodeDeploy=n.defineService("codedeploy",["2014-10-06"]),Object.defineProperty(o.services.codedeploy,"2014-10-06",{get:function(){var e=i(10967);return e.paginators=i(1917).o,e.waiters=i(52416).V,e},enumerable:!0,configurable:!0}),e.exports=r.CodeDeploy},339:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.codepipeline={},r.CodePipeline=n.defineService("codepipeline",["2015-07-09"]),Object.defineProperty(o.services.codepipeline,"2015-07-09",{get:function(){var e=i(4039);return e.paginators=i(78953).o,e},enumerable:!0,configurable:!0}),e.exports=r.CodePipeline},96105:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cognitoidentity={},r.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(o.services.cognitoidentity,"2014-06-30",{get:function(){var e=i(57377);return e.paginators=i(85010).o,e},enumerable:!0,configurable:!0}),e.exports=r.CognitoIdentity},1071:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cognitoidentityserviceprovider={},r.CognitoIdentityServiceProvider=n.defineService("cognitoidentityserviceprovider",["2016-04-18"]),Object.defineProperty(o.services.cognitoidentityserviceprovider,"2016-04-18",{get:function(){var e=i(53166);return e.paginators=i(17149).o,e},enumerable:!0,configurable:!0}),e.exports=r.CognitoIdentityServiceProvider},97478:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cognitosync={},r.CognitoSync=n.defineService("cognitosync",["2014-06-30"]),Object.defineProperty(o.services.cognitosync,"2014-06-30",{get:function(){var e=i(29128);return e.paginators=i(5865).o,e},enumerable:!0,configurable:!0}),e.exports=r.CognitoSync},42054:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.comprehend={},r.Comprehend=n.defineService("comprehend",["2017-11-27"]),Object.defineProperty(o.services.comprehend,"2017-11-27",{get:function(){var e=i(24433);return e.paginators=i(82518).o,e},enumerable:!0,configurable:!0}),e.exports=r.Comprehend},98525:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.comprehendmedical={},r.ComprehendMedical=n.defineService("comprehendmedical",["2018-10-30"]),Object.defineProperty(o.services.comprehendmedical,"2018-10-30",{get:function(){var e=i(96649);return e.paginators=i(43172).o,e},enumerable:!0,configurable:!0}),e.exports=r.ComprehendMedical},6269:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.configservice={},r.ConfigService=n.defineService("configservice",["2014-11-12"]),Object.defineProperty(o.services.configservice,"2014-11-12",{get:function(){var e=i(47124);return e.paginators=i(85980).o,e},enumerable:!0,configurable:!0}),e.exports=r.ConfigService},65261:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.connect={},r.Connect=n.defineService("connect",["2017-08-08"]),Object.defineProperty(o.services.connect,"2017-08-08",{get:function(){var e=i(54511);return e.paginators=i(19742).o,e},enumerable:!0,configurable:!0}),e.exports=r.Connect},59310:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.costexplorer={},r.CostExplorer=n.defineService("costexplorer",["2017-10-25"]),Object.defineProperty(o.services.costexplorer,"2017-10-25",{get:function(){var e=i(4060);return e.paginators=i(75642).o,e},enumerable:!0,configurable:!0}),e.exports=r.CostExplorer},75453:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.cur={},r.CUR=n.defineService("cur",["2017-01-06"]),Object.defineProperty(o.services.cur,"2017-01-06",{get:function(){var e=i(46858);return e.paginators=i(40528).o,e},enumerable:!0,configurable:!0}),e.exports=r.CUR},79162:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.devicefarm={},r.DeviceFarm=n.defineService("devicefarm",["2015-06-23"]),Object.defineProperty(o.services.devicefarm,"2015-06-23",{get:function(){var e=i(34023);return e.paginators=i(37161).o,e},enumerable:!0,configurable:!0}),e.exports=r.DeviceFarm},15147:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.directconnect={},r.DirectConnect=n.defineService("directconnect",["2012-10-25"]),Object.defineProperty(o.services.directconnect,"2012-10-25",{get:function(){var e=i(45125);return e.paginators=i(26404).o,e},enumerable:!0,configurable:!0}),e.exports=r.DirectConnect},76254:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.dynamodb={},r.DynamoDB=n.defineService("dynamodb",["2011-12-05","2012-08-10"]),i(98637),Object.defineProperty(o.services.dynamodb,"2011-12-05",{get:function(){var e=i(46148);return e.paginators=i(86884).o,e.waiters=i(24864).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.dynamodb,"2012-08-10",{get:function(){var e=i(54047);return e.paginators=i(30482).o,e.waiters=i(48411).V,e},enumerable:!0,configurable:!0}),e.exports=r.DynamoDB},40341:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.dynamodbstreams={},r.DynamoDBStreams=n.defineService("dynamodbstreams",["2012-08-10"]),Object.defineProperty(o.services.dynamodbstreams,"2012-08-10",{get:function(){var e=i(26098);return e.paginators=i(40549).o,e},enumerable:!0,configurable:!0}),e.exports=r.DynamoDBStreams},67163:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.ec2={},r.EC2=n.defineService("ec2",["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*","2016-11-15"]),i(56914),Object.defineProperty(o.services.ec2,"2016-11-15",{get:function(){var e=i(2658);return e.paginators=i(82477).o,e.waiters=i(19153).V,e},enumerable:!0,configurable:!0}),e.exports=r.EC2},650:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.ecr={},r.ECR=n.defineService("ecr",["2015-09-21"]),Object.defineProperty(o.services.ecr,"2015-09-21",{get:function(){var e=i(92405);return e.paginators=i(25504).o,e.waiters=i(78925).V,e},enumerable:!0,configurable:!0}),e.exports=r.ECR},72169:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.ecs={},r.ECS=n.defineService("ecs",["2014-11-13"]),Object.defineProperty(o.services.ecs,"2014-11-13",{get:function(){var e=i(44208);return e.paginators=i(15738).o,e.waiters=i(1299).V,e},enumerable:!0,configurable:!0}),e.exports=r.ECS},43556:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.efs={},r.EFS=n.defineService("efs",["2015-02-01"]),Object.defineProperty(o.services.efs,"2015-02-01",{get:function(){var e=i(54784);return e.paginators=i(40174).o,e},enumerable:!0,configurable:!0}),e.exports=r.EFS},11775:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.elasticache={},r.ElastiCache=n.defineService("elasticache",["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*","2015-02-02"]),Object.defineProperty(o.services.elasticache,"2015-02-02",{get:function(){var e=i(58426);return e.paginators=i(79559).o,e.waiters=i(29787).V,e},enumerable:!0,configurable:!0}),e.exports=r.ElastiCache},20061:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.elasticbeanstalk={},r.ElasticBeanstalk=n.defineService("elasticbeanstalk",["2010-12-01"]),Object.defineProperty(o.services.elasticbeanstalk,"2010-12-01",{get:function(){var e=i(72508);return e.paginators=i(72305).o,e.waiters=i(62534).V,e},enumerable:!0,configurable:!0}),e.exports=r.ElasticBeanstalk},71621:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.elastictranscoder={},r.ElasticTranscoder=n.defineService("elastictranscoder",["2012-09-25"]),Object.defineProperty(o.services.elastictranscoder,"2012-09-25",{get:function(){var e=i(23463);return e.paginators=i(36121).o,e.waiters=i(59345).V,e},enumerable:!0,configurable:!0}),e.exports=r.ElasticTranscoder},25838:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.elb={},r.ELB=n.defineService("elb",["2012-06-01"]),Object.defineProperty(o.services.elb,"2012-06-01",{get:function(){var e=i(66258);return e.paginators=i(77372).o,e.waiters=i(56717).V,e},enumerable:!0,configurable:!0}),e.exports=r.ELB},24359:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.elbv2={},r.ELBv2=n.defineService("elbv2",["2015-12-01"]),Object.defineProperty(o.services.elbv2,"2015-12-01",{get:function(){var e=i(42628);return e.paginators=i(12274).o,e.waiters=i(56106).V,e},enumerable:!0,configurable:!0}),e.exports=r.ELBv2},35351:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.emr={},r.EMR=n.defineService("emr",["2009-03-31"]),Object.defineProperty(o.services.emr,"2009-03-31",{get:function(){var e=i(91298);return e.paginators=i(62965).o,e.waiters=i(86792).V,e},enumerable:!0,configurable:!0}),e.exports=r.EMR},98405:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.firehose={},r.Firehose=n.defineService("firehose",["2015-08-04"]),Object.defineProperty(o.services.firehose,"2015-08-04",{get:function(){var e=i(48886);return e.paginators=i(47400).o,e},enumerable:!0,configurable:!0}),e.exports=r.Firehose},20862:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.forecastqueryservice={},r.ForecastQueryService=n.defineService("forecastqueryservice",["2018-06-26"]),Object.defineProperty(o.services.forecastqueryservice,"2018-06-26",{get:function(){var e=i(23865);return e.paginators=i(98135).o,e},enumerable:!0,configurable:!0}),e.exports=r.ForecastQueryService},16349:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.forecastservice={},r.ForecastService=n.defineService("forecastservice",["2018-06-26"]),Object.defineProperty(o.services.forecastservice,"2018-06-26",{get:function(){var e=i(6468);return e.paginators=i(45338).o,e},enumerable:!0,configurable:!0}),e.exports=r.ForecastService},3940:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.gamelift={},r.GameLift=n.defineService("gamelift",["2015-10-01"]),Object.defineProperty(o.services.gamelift,"2015-10-01",{get:function(){var e=i(69257);return e.paginators=i(88381).o,e},enumerable:!0,configurable:!0}),e.exports=r.GameLift},96559:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.iam={},r.IAM=n.defineService("iam",["2010-05-08"]),Object.defineProperty(o.services.iam,"2010-05-08",{get:function(){var e=i(27041);return e.paginators=i(97583).o,e.waiters=i(37757).V,e},enumerable:!0,configurable:!0}),e.exports=r.IAM},32456:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.inspector={},r.Inspector=n.defineService("inspector",["2015-08-18*","2016-02-16"]),Object.defineProperty(o.services.inspector,"2016-02-16",{get:function(){var e=i(71649);return e.paginators=i(69242).o,e},enumerable:!0,configurable:!0}),e.exports=r.Inspector},999:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.iot={},r.Iot=n.defineService("iot",["2015-05-28"]),Object.defineProperty(o.services.iot,"2015-05-28",{get:function(){var e=i(40063);return e.paginators=i(43999).o,e},enumerable:!0,configurable:!0}),e.exports=r.Iot},38276:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.iotanalytics={},r.IoTAnalytics=n.defineService("iotanalytics",["2017-11-27"]),Object.defineProperty(o.services.iotanalytics,"2017-11-27",{get:function(){var e=i(84609);return e.paginators=i(45498).o,e},enumerable:!0,configurable:!0}),e.exports=r.IoTAnalytics},44030:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.iotdata={},r.IotData=n.defineService("iotdata",["2015-05-28"]),i(16184),Object.defineProperty(o.services.iotdata,"2015-05-28",{get:function(){var e=i(21717);return e.paginators=i(31896).o,e},enumerable:!0,configurable:!0}),e.exports=r.IotData},96814:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.kinesis={},r.Kinesis=n.defineService("kinesis",["2013-12-02"]),Object.defineProperty(o.services.kinesis,"2013-12-02",{get:function(){var e=i(648);return e.paginators=i(10424).o,e.waiters=i(54059).V,e},enumerable:!0,configurable:!0}),e.exports=r.Kinesis},69670:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.kinesisvideo={},r.KinesisVideo=n.defineService("kinesisvideo",["2017-09-30"]),Object.defineProperty(o.services.kinesisvideo,"2017-09-30",{get:function(){var e=i(96305);return e.paginators=i(50061).o,e},enumerable:!0,configurable:!0}),e.exports=r.KinesisVideo},27629:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.kinesisvideoarchivedmedia={},r.KinesisVideoArchivedMedia=n.defineService("kinesisvideoarchivedmedia",["2017-09-30"]),Object.defineProperty(o.services.kinesisvideoarchivedmedia,"2017-09-30",{get:function(){var e=i(78868);return e.paginators=i(27352).o,e},enumerable:!0,configurable:!0}),e.exports=r.KinesisVideoArchivedMedia},40545:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.kinesisvideomedia={},r.KinesisVideoMedia=n.defineService("kinesisvideomedia",["2017-09-30"]),Object.defineProperty(o.services.kinesisvideomedia,"2017-09-30",{get:function(){var e=i(18898);return e.paginators=i(85061).o,e},enumerable:!0,configurable:!0}),e.exports=r.KinesisVideoMedia},618:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.kinesisvideosignalingchannels={},r.KinesisVideoSignalingChannels=n.defineService("kinesisvideosignalingchannels",["2019-12-04"]),Object.defineProperty(o.services.kinesisvideosignalingchannels,"2019-12-04",{get:function(){var e=i(89769);return e.paginators=i(41939).o,e},enumerable:!0,configurable:!0}),e.exports=r.KinesisVideoSignalingChannels},78:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.kms={},r.KMS=n.defineService("kms",["2014-11-01"]),Object.defineProperty(o.services.kms,"2014-11-01",{get:function(){var e=i(1219);return e.paginators=i(71402).o,e},enumerable:!0,configurable:!0}),e.exports=r.KMS},44655:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.lambda={},r.Lambda=n.defineService("lambda",["2014-11-11","2015-03-31"]),i(29510),Object.defineProperty(o.services.lambda,"2014-11-11",{get:function(){var e=i(91251);return e.paginators=i(79210).o,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.lambda,"2015-03-31",{get:function(){var e=i(29103);return e.paginators=i(32057).o,e.waiters=i(40626).V,e},enumerable:!0,configurable:!0}),e.exports=r.Lambda},3018:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.lexmodelbuildingservice={},r.LexModelBuildingService=n.defineService("lexmodelbuildingservice",["2017-04-19"]),Object.defineProperty(o.services.lexmodelbuildingservice,"2017-04-19",{get:function(){var e=i(96327);return e.paginators=i(12348).o,e},enumerable:!0,configurable:!0}),e.exports=r.LexModelBuildingService},25718:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.lexruntime={},r.LexRuntime=n.defineService("lexruntime",["2016-11-28"]),Object.defineProperty(o.services.lexruntime,"2016-11-28",{get:function(){var e=i(11059);return e.paginators=i(97715).o,e},enumerable:!0,configurable:!0}),e.exports=r.LexRuntime},79739:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.lexruntimev2={},r.LexRuntimeV2=n.defineService("lexruntimev2",["2020-08-07"]),Object.defineProperty(o.services.lexruntimev2,"2020-08-07",{get:function(){var e=i(17908);return e.paginators=i(469).o,e},enumerable:!0,configurable:!0}),e.exports=r.LexRuntimeV2},39111:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.location={},r.Location=n.defineService("location",["2020-11-19"]),Object.defineProperty(o.services.location,"2020-11-19",{get:function(){var e=i(79257);return e.paginators=i(53350).o,e},enumerable:!0,configurable:!0}),e.exports=r.Location},61744:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.machinelearning={},r.MachineLearning=n.defineService("machinelearning",["2014-12-12"]),i(73865),Object.defineProperty(o.services.machinelearning,"2014-12-12",{get:function(){var e=i(4069);return e.paginators=i(95535).o,e.waiters=i(23194).V,e},enumerable:!0,configurable:!0}),e.exports=r.MachineLearning},64910:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.marketplacecommerceanalytics={},r.MarketplaceCommerceAnalytics=n.defineService("marketplacecommerceanalytics",["2015-07-01"]),Object.defineProperty(o.services.marketplacecommerceanalytics,"2015-07-01",{get:function(){var e=i(96696);return e.paginators=i(43265).o,e},enumerable:!0,configurable:!0}),e.exports=r.MarketplaceCommerceAnalytics},50641:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.mediastoredata={},r.MediaStoreData=n.defineService("mediastoredata",["2017-09-01"]),Object.defineProperty(o.services.mediastoredata,"2017-09-01",{get:function(){var e=i(55081);return e.paginators=i(97948).o,e},enumerable:!0,configurable:!0}),e.exports=r.MediaStoreData},9382:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.mobileanalytics={},r.MobileAnalytics=n.defineService("mobileanalytics",["2014-06-05"]),Object.defineProperty(o.services.mobileanalytics,"2014-06-05",{get:function(){return i(90338)},enumerable:!0,configurable:!0}),e.exports=r.MobileAnalytics},93978:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.mturk={},r.MTurk=n.defineService("mturk",["2017-01-17"]),Object.defineProperty(o.services.mturk,"2017-01-17",{get:function(){var e=i(73064);return e.paginators=i(42409).o,e},enumerable:!0,configurable:!0}),e.exports=r.MTurk},16974:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.opsworks={},r.OpsWorks=n.defineService("opsworks",["2013-02-18"]),Object.defineProperty(o.services.opsworks,"2013-02-18",{get:function(){var e=i(22805);return e.paginators=i(24750).o,e.waiters=i(74961).V,e},enumerable:!0,configurable:!0}),e.exports=r.OpsWorks},59004:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.personalize={},r.Personalize=n.defineService("personalize",["2018-05-22"]),Object.defineProperty(o.services.personalize,"2018-05-22",{get:function(){var e=i(70169);return e.paginators=i(64441).o,e},enumerable:!0,configurable:!0}),e.exports=r.Personalize},65120:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.personalizeevents={},r.PersonalizeEvents=n.defineService("personalizeevents",["2018-03-22"]),Object.defineProperty(o.services.personalizeevents,"2018-03-22",{get:function(){var e=i(3606);return e.paginators=i(94507).o,e},enumerable:!0,configurable:!0}),e.exports=r.PersonalizeEvents},49574:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.personalizeruntime={},r.PersonalizeRuntime=n.defineService("personalizeruntime",["2018-05-22"]),Object.defineProperty(o.services.personalizeruntime,"2018-05-22",{get:function(){var e=i(18824);return e.paginators=i(8069).o,e},enumerable:!0,configurable:!0}),e.exports=r.PersonalizeRuntime},49756:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.polly={},r.Polly=n.defineService("polly",["2016-06-10"]),i(96661),Object.defineProperty(o.services.polly,"2016-06-10",{get:function(){var e=i(55078);return e.paginators=i(77060).o,e},enumerable:!0,configurable:!0}),e.exports=r.Polly},75661:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.pricing={},r.Pricing=n.defineService("pricing",["2017-10-15"]),Object.defineProperty(o.services.pricing,"2017-10-15",{get:function(){var e=i(22484);return e.paginators=i(60369).o,e},enumerable:!0,configurable:!0}),e.exports=r.Pricing},83189:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.rds={},r.RDS=n.defineService("rds",["2013-01-10","2013-02-12","2013-09-09","2014-09-01","2014-09-01*","2014-10-31"]),i(43550),Object.defineProperty(o.services.rds,"2013-01-10",{get:function(){var e=i(59989);return e.paginators=i(978).o,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.rds,"2013-02-12",{get:function(){var e=i(55061);return e.paginators=i(39581).o,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.rds,"2013-09-09",{get:function(){var e=i(36331);return e.paginators=i(14485).o,e.waiters=i(36851).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.rds,"2014-09-01",{get:function(){var e=i(19226);return e.paginators=i(49863).o,e},enumerable:!0,configurable:!0}),Object.defineProperty(o.services.rds,"2014-10-31",{get:function(){var e=i(91916);return e.paginators=i(85082).o,e.waiters=i(20371).V,e},enumerable:!0,configurable:!0}),e.exports=r.RDS},21615:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.redshift={},r.Redshift=n.defineService("redshift",["2012-12-01"]),Object.defineProperty(o.services.redshift,"2012-12-01",{get:function(){var e=i(24827);return e.paginators=i(88012).o,e.waiters=i(79011).V,e},enumerable:!0,configurable:!0}),e.exports=r.Redshift},93487:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.rekognition={},r.Rekognition=n.defineService("rekognition",["2016-06-27"]),Object.defineProperty(o.services.rekognition,"2016-06-27",{get:function(){var e=i(66442);return e.paginators=i(37753).o,e.waiters=i(78910).V,e},enumerable:!0,configurable:!0}),e.exports=r.Rekognition},26139:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.resourcegroups={},r.ResourceGroups=n.defineService("resourcegroups",["2017-11-27"]),Object.defineProperty(o.services.resourcegroups,"2017-11-27",{get:function(){var e=i(73621);return e.paginators=i(24085).o,e},enumerable:!0,configurable:!0}),e.exports=r.ResourceGroups},95730:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.route53={},r.Route53=n.defineService("route53",["2013-04-01"]),i(56182),Object.defineProperty(o.services.route53,"2013-04-01",{get:function(){var e=i(20959);return e.paginators=i(46456).o,e.waiters=i(28347).V,e},enumerable:!0,configurable:!0}),e.exports=r.Route53},58100:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.route53domains={},r.Route53Domains=n.defineService("route53domains",["2014-05-15"]),Object.defineProperty(o.services.route53domains,"2014-05-15",{get:function(){var e=i(57598);return e.paginators=i(52189).o,e},enumerable:!0,configurable:!0}),e.exports=r.Route53Domains},34766:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.s3={},r.S3=n.defineService("s3",["2006-03-01"]),i(3906),Object.defineProperty(o.services.s3,"2006-03-01",{get:function(){var e=i(1129);return e.paginators=i(7265).o,e.waiters=i(74048).V,e},enumerable:!0,configurable:!0}),e.exports=r.S3},29639:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.secretsmanager={},r.SecretsManager=n.defineService("secretsmanager",["2017-10-17"]),Object.defineProperty(o.services.secretsmanager,"2017-10-17",{get:function(){var e=i(89470);return e.paginators=i(25613).o,e},enumerable:!0,configurable:!0}),e.exports=r.SecretsManager},68641:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.servicecatalog={},r.ServiceCatalog=n.defineService("servicecatalog",["2015-12-10"]),Object.defineProperty(o.services.servicecatalog,"2015-12-10",{get:function(){var e=i(95500);return e.paginators=i(21687).o,e},enumerable:!0,configurable:!0}),e.exports=r.ServiceCatalog},16410:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.ses={},r.SES=n.defineService("ses",["2010-12-01"]),Object.defineProperty(o.services.ses,"2010-12-01",{get:function(){var e=i(56693);return e.paginators=i(9399).o,e.waiters=i(98229).V,e},enumerable:!0,configurable:!0}),e.exports=r.SES},33561:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.sns={},r.SNS=n.defineService("sns",["2010-03-31"]),Object.defineProperty(o.services.sns,"2010-03-31",{get:function(){var e=i(64387);return e.paginators=i(58054).o,e},enumerable:!0,configurable:!0}),e.exports=r.SNS},81314:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.sqs={},r.SQS=n.defineService("sqs",["2012-11-05"]),i(22666),Object.defineProperty(o.services.sqs,"2012-11-05",{get:function(){var e=i(53974);return e.paginators=i(17249).o,e},enumerable:!0,configurable:!0}),e.exports=r.SQS},61170:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.ssm={},r.SSM=n.defineService("ssm",["2014-11-06"]),Object.defineProperty(o.services.ssm,"2014-11-06",{get:function(){var e=i(44596);return e.paginators=i(5135).o,e.waiters=i(98523).V,e},enumerable:!0,configurable:!0}),e.exports=r.SSM},94060:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.storagegateway={},r.StorageGateway=n.defineService("storagegateway",["2013-06-30"]),Object.defineProperty(o.services.storagegateway,"2013-06-30",{get:function(){var e=i(11069);return e.paginators=i(33999).o,e},enumerable:!0,configurable:!0}),e.exports=r.StorageGateway},93568:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.sts={},r.STS=n.defineService("sts",["2011-06-15"]),i(44456),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=i(80753);return e.paginators=i(93639).o,e},enumerable:!0,configurable:!0}),e.exports=r.STS},89678:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.translate={},r.Translate=n.defineService("translate",["2017-07-01"]),Object.defineProperty(o.services.translate,"2017-07-01",{get:function(){var e=i(61084);return e.paginators=i(40304).o,e},enumerable:!0,configurable:!0}),e.exports=r.Translate},95474:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.waf={},r.WAF=n.defineService("waf",["2015-08-24"]),Object.defineProperty(o.services.waf,"2015-08-24",{get:function(){var e=i(37925);return e.paginators=i(65794).o,e},enumerable:!0,configurable:!0}),e.exports=r.WAF},93143:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.workdocs={},r.WorkDocs=n.defineService("workdocs",["2016-05-01"]),Object.defineProperty(o.services.workdocs,"2016-05-01",{get:function(){var e=i(41052);return e.paginators=i(94768).o,e},enumerable:!0,configurable:!0}),e.exports=r.WorkDocs},44501:(e,t,i)=>{i(17321);var r=i(79614),n=r.Service,o=r.apiLoader;o.services.xray={},r.XRay=n.defineService("xray",["2016-04-12"]),Object.defineProperty(o.services.xray,"2016-04-12",{get:function(){var e=i(97355);return e.paginators=i(97949).o,e},enumerable:!0,configurable:!0}),e.exports=r.XRay},16862:e=>{function t(e,i){if(!t.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return t.services[e][i]}t.services={},e.exports=t},98690:(e,t,i)=>{i(17321);var r=i(79614);"undefined"!=typeof window&&(window.AWS=r),e.exports=r,"undefined"!=typeof self&&(self.AWS=r),i(84047)},47821:(e,t,i)=>{var r=i(9790),n=i(15610),o=i(14314),s=i(11365);e.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new n;if("sha256"===e)return new s;if("sha1"===e)return new o;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new r(n,t);if("sha256"===e)return new r(s,t);if("sha1"===e)return new r(o,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},66323:(e,t,i)=>{var r=i(48764).lW;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return n.indexOf(Object.prototype.toString.call(e))>-1});var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new r(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},9790:(e,t,i)=>{var r=i(66323);function n(e,t){this.hash=new e,this.outer=new e;var i=function(e,t){var i=r.convertToBuffer(t);if(i.byteLength>e.BLOCK_SIZE){var n=new e;n.update(i),i=n.digest()}var o=new Uint8Array(e.BLOCK_SIZE);return o.set(i),o}(e,t),n=new Uint8Array(e.BLOCK_SIZE);n.set(i);for(var o=0;o{var r=i(66323),n=i(48764).lW;function o(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function s(e,t,i,r,n,o){return((t=(t+e&4294967295)+(r+o&4294967295)&4294967295)<>>32-n)+i&4294967295}function a(e,t,i,r,n,o,a){return s(t&i|~t&r,e,t,n,o,a)}function u(e,t,i,r,n,o,a){return s(t&r|i&~r,e,t,n,o,a)}function c(e,t,i,r,n,o,a){return s(t^i^r,e,t,n,o,a)}function l(e,t,i,r,n,o,a){return s(i^(t|~r),e,t,n,o,a)}e.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(e){if(r.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=r.convertToBuffer(e),i=0,n=t.byteLength;for(this.bytesHashed+=n;n>0;)this.buffer.setUint8(this.bufferLength++,t[i++]),n--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},o.prototype.digest=function(e){if(!this.finished){var t=this,i=t.buffer,r=t.bufferLength,o=8*t.bytesHashed;if(i.setUint8(this.bufferLength++,128),r%64>=56){for(var s=this.bufferLength;s<64;s++)i.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(s=this.bufferLength;s<56;s++)i.setUint8(s,0);i.setUint32(56,o>>>0,!0),i.setUint32(60,Math.floor(o/4294967296),!0),this.hashBuffer(),this.finished=!0}var a=new DataView(new ArrayBuffer(16));for(s=0;s<4;s++)a.setUint32(4*s,this.state[s],!0);var u=new n(a.buffer,a.byteOffset,a.byteLength);return e?u.toString(e):u},o.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,i=t[0],r=t[1],n=t[2],o=t[3];i=a(i,r,n,o,e.getUint32(0,!0),7,3614090360),o=a(o,i,r,n,e.getUint32(4,!0),12,3905402710),n=a(n,o,i,r,e.getUint32(8,!0),17,606105819),r=a(r,n,o,i,e.getUint32(12,!0),22,3250441966),i=a(i,r,n,o,e.getUint32(16,!0),7,4118548399),o=a(o,i,r,n,e.getUint32(20,!0),12,1200080426),n=a(n,o,i,r,e.getUint32(24,!0),17,2821735955),r=a(r,n,o,i,e.getUint32(28,!0),22,4249261313),i=a(i,r,n,o,e.getUint32(32,!0),7,1770035416),o=a(o,i,r,n,e.getUint32(36,!0),12,2336552879),n=a(n,o,i,r,e.getUint32(40,!0),17,4294925233),r=a(r,n,o,i,e.getUint32(44,!0),22,2304563134),i=a(i,r,n,o,e.getUint32(48,!0),7,1804603682),o=a(o,i,r,n,e.getUint32(52,!0),12,4254626195),n=a(n,o,i,r,e.getUint32(56,!0),17,2792965006),i=u(i,r=a(r,n,o,i,e.getUint32(60,!0),22,1236535329),n,o,e.getUint32(4,!0),5,4129170786),o=u(o,i,r,n,e.getUint32(24,!0),9,3225465664),n=u(n,o,i,r,e.getUint32(44,!0),14,643717713),r=u(r,n,o,i,e.getUint32(0,!0),20,3921069994),i=u(i,r,n,o,e.getUint32(20,!0),5,3593408605),o=u(o,i,r,n,e.getUint32(40,!0),9,38016083),n=u(n,o,i,r,e.getUint32(60,!0),14,3634488961),r=u(r,n,o,i,e.getUint32(16,!0),20,3889429448),i=u(i,r,n,o,e.getUint32(36,!0),5,568446438),o=u(o,i,r,n,e.getUint32(56,!0),9,3275163606),n=u(n,o,i,r,e.getUint32(12,!0),14,4107603335),r=u(r,n,o,i,e.getUint32(32,!0),20,1163531501),i=u(i,r,n,o,e.getUint32(52,!0),5,2850285829),o=u(o,i,r,n,e.getUint32(8,!0),9,4243563512),n=u(n,o,i,r,e.getUint32(28,!0),14,1735328473),i=c(i,r=u(r,n,o,i,e.getUint32(48,!0),20,2368359562),n,o,e.getUint32(20,!0),4,4294588738),o=c(o,i,r,n,e.getUint32(32,!0),11,2272392833),n=c(n,o,i,r,e.getUint32(44,!0),16,1839030562),r=c(r,n,o,i,e.getUint32(56,!0),23,4259657740),i=c(i,r,n,o,e.getUint32(4,!0),4,2763975236),o=c(o,i,r,n,e.getUint32(16,!0),11,1272893353),n=c(n,o,i,r,e.getUint32(28,!0),16,4139469664),r=c(r,n,o,i,e.getUint32(40,!0),23,3200236656),i=c(i,r,n,o,e.getUint32(52,!0),4,681279174),o=c(o,i,r,n,e.getUint32(0,!0),11,3936430074),n=c(n,o,i,r,e.getUint32(12,!0),16,3572445317),r=c(r,n,o,i,e.getUint32(24,!0),23,76029189),i=c(i,r,n,o,e.getUint32(36,!0),4,3654602809),o=c(o,i,r,n,e.getUint32(48,!0),11,3873151461),n=c(n,o,i,r,e.getUint32(60,!0),16,530742520),i=l(i,r=c(r,n,o,i,e.getUint32(8,!0),23,3299628645),n,o,e.getUint32(0,!0),6,4096336452),o=l(o,i,r,n,e.getUint32(28,!0),10,1126891415),n=l(n,o,i,r,e.getUint32(56,!0),15,2878612391),r=l(r,n,o,i,e.getUint32(20,!0),21,4237533241),i=l(i,r,n,o,e.getUint32(48,!0),6,1700485571),o=l(o,i,r,n,e.getUint32(12,!0),10,2399980690),n=l(n,o,i,r,e.getUint32(40,!0),15,4293915773),r=l(r,n,o,i,e.getUint32(4,!0),21,2240044497),i=l(i,r,n,o,e.getUint32(32,!0),6,1873313359),o=l(o,i,r,n,e.getUint32(60,!0),10,4264355552),n=l(n,o,i,r,e.getUint32(24,!0),15,2734768916),r=l(r,n,o,i,e.getUint32(52,!0),21,1309151649),i=l(i,r,n,o,e.getUint32(16,!0),6,4149444226),o=l(o,i,r,n,e.getUint32(44,!0),10,3174756917),n=l(n,o,i,r,e.getUint32(8,!0),15,718787259),r=l(r,n,o,i,e.getUint32(36,!0),21,3951481745),t[0]=i+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=n+t[2]&4294967295,t[3]=o+t[3]&4294967295}},14314:(e,t,i)=>{var r=i(48764).lW,n=i(66323);function o(){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}new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53),e.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(n.isEmptyData(e))return this;var t=(e=n.convertToBuffer(e)).length;this.totalLength+=8*t;for(var i=0;i14||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 i=new r(20),n=new DataView(i.buffer);return n.setUint32(0,this.h0,!1),n.setUint32(4,this.h1,!1),n.setUint32(8,this.h2,!1),n.setUint32(12,this.h3,!1),n.setUint32(16,this.h4,!1),e?i.toString(e):i},o.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 i,r,n=this.h0,o=this.h1,s=this.h2,a=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(i=a^o&(s^a),r=1518500249):e<40?(i=o^s^a,r=1859775393):e<60?(i=o&s|a&(o|s),r=2400959708):(i=o^s^a,r=3395469782);var c=(n<<5|n>>>27)+i+u+r+(0|this.block[e]);u=a,a=s,s=o<<30|o>>>2,o=n,n=c}for(this.h0=this.h0+n|0,this.h1=this.h1+o|0,this.h2=this.h2+s|0,this.h3=this.h3+a|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},11365:(e,t,i)=>{var r=i(48764).lW,n=i(66323),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 a(){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=a,a.BLOCK_SIZE=64,a.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(n.isEmptyData(e))return this;var t=0,i=(e=n.convertToBuffer(e)).byteLength;if(this.bytesHashed+=i,8*this.bytesHashed>s)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;i>0;)this.buffer[this.bufferLength++]=e[t++],i--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(i.setUint8(this.bufferLength++,128),n%64>=56){for(var o=this.bufferLength;o<64;o++)i.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<56;o++)i.setUint8(o,0);i.setUint32(56,Math.floor(t/4294967296),!0),i.setUint32(60,t),this.hashBuffer(),this.finished=!0}var s=new r(32);for(o=0;o<8;o++)s[4*o]=this.state[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},a.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,i=t[0],r=t[1],n=t[2],s=t[3],a=t[4],u=t[5],c=t[6],l=t[7],d=0;d<64;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var p=this.temp[d-2],m=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,h=((p=this.temp[d-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[d]=(m+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&u^~a&c)|0)+(l+(o[d]+this.temp[d]|0)|0)|0,y=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&n^r&n)|0;l=c,c=u,u=a,a=s+g|0,s=n,n=r,r=i,i=g+y|0}t[0]+=i,t[1]+=r,t[2]+=n,t[3]+=s,t[4]+=a,t[5]+=u,t[6]+=c,t[7]+=l}},17321:(e,t,i)=>{var r=i(62662);r.crypto.lib=i(47821),r.Buffer=i(48764).lW,r.url=i(8575),r.querystring=i(17673),r.realClock=i(31414),r.environment="js",r.createEventStream=i(2403).createEventStream,r.isBrowser=function(){return!0},r.isNode=function(){return!1};var n=i(79614);if(e.exports=n,i(84465),i(83227),i(46662),i(91),i(97719),i(67372),i(16986),n.XML.Parser=i(35106),i(2631),void 0===o)var o={browser:!0}},13372:(e,t,i)=>{var r=i(79614),n=r.util.url,o=r.util.crypto.lib,s=r.util.base64.encode,a=r.util.inherit,u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,(function(e){return t[e]}))},c=function(e,t){var i=o.createSign("RSA-SHA1");return i.write(e),u(i.sign(t,"base64"))},l=function(e,t,i,r){var n=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":i,Signature:c(n.toString(),r)}},d=function(e,t,i){return e=e.replace(/\s/gm,""),{Policy:u(s(e)),"Key-Pair-Id":t,Signature:c(e,i)}},p=function(e){var t=e.split("://");if(t.length<2)throw new Error("Invalid URL.");return t[0].replace("*","")},m=function(e){var t=n.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")},h=function(e,t){if(!t||"function"!=typeof t)throw e;t(e)},g=function(e,t){if(!t||"function"!=typeof t)return e;t(null,e)};r.CloudFront.Signer=a({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 i="policy"in e?d(e.policy,this.keyPairId,this.privateKey):l(e.url,e.expires,this.keyPairId,this.privateKey),r={};for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r["CloudFront-"+n]=i[n]);return g(r,t)},getSignedUrl:function(e,t){try{var i=function(e){switch(p(e)){case"http":case"https":return e;case"rtmp":return m(e);default:throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp")}}(e.url)}catch(e){return h(e,t)}var r=n.parse(e.url,!0),o=Object.prototype.hasOwnProperty.call(e,"policy")?d(e.policy,this.keyPairId,this.privateKey):l(i,e.expires,this.keyPairId,this.privateKey);for(var s in r.search=null,o)Object.prototype.hasOwnProperty.call(o,s)&&(r.query[s]=o[s]);try{var a="rtmp"===p(e.url)?m(n.format(r)):n.format(r)}catch(e){return h(e,t)}return g(a,t)}}),e.exports=r.CloudFront.Signer},22709:(e,t,i)=>{var r,n=i(79614);i(84465),i(83227),n.Config=n.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),n.util.each.call(this,this.keys,(function(t,i){this.set(t,e[t],i)}))},getCredentials:function(e){var t,i=this;function r(t){e(t,t?null:i.credentials)}function o(e,t){return new n.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}i.credentials?"function"==typeof i.credentials.get?i.credentials.get((function(e){e&&(e=o("Could not load credentials from "+i.credentials.constructor.name,e)),r(e)})):(t=null,i.credentials.accessKeyId&&i.credentials.secretAccessKey||(t=o("Missing credentials")),r(t)):i.credentialProvider?i.credentialProvider.resolve((function(e,t){e&&(e=o("Could not load credentials from any providers",e)),i.credentials=t,r(e)})):r(o("No credentials to load"))},getToken:function(e){var t,i=this;function r(t){e(t,t?null:i.token)}function o(e,t){return new n.util.error(t||new Error,{code:"TokenError",message:e,name:"TokenError"})}i.token?"function"==typeof i.token.get?i.token.get((function(e){e&&(e=o("Could not load token from "+i.token.constructor.name,e)),r(e)})):(t=null,i.token.token||(t=o("Missing token")),r(t)):i.tokenProvider?i.tokenProvider.resolve((function(e,t){e&&(e=o("Could not load token from any providers",e)),i.token=t,r(e)})):r(o("No token to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),n.util.each.call(this,e,(function(e,i){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||n.Service.hasService(e))&&this.set(e,i)}))},loadFromPath:function(e){this.clear();var t=JSON.parse(n.util.readFileSync(e)),i=new n.FileSystemCredentials(e),r=new n.CredentialProviderChain;return r.providers.unshift(i),r.resolve((function(e,i){if(e)throw e;t.credentials=i})),this.constructor(t),this},clear:function(){n.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,i){void 0===t?(void 0===i&&(i=this.keys[e]),this[e]="function"==typeof i?i.call(this):i):"httpOptions"===e&&this[e]?this[e]=n.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=n.util.copy(e)).credentials=new n.Credentials(e)),e},setPromisesDependency:function(e){r=e,null===e&&"function"==typeof Promise&&(r=Promise);var t=[n.Request,n.Credentials,n.CredentialProviderChain];n.S3&&(t.push(n.S3),n.S3.ManagedUpload&&t.push(n.S3.ManagedUpload)),n.util.addPromises(t,r)},getPromisesDependency:function(){return r}}),n.config=new n.Config},65456:(e,t,i)=>{var r=i(79614);function n(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw r.util.error(new Error,t)}}e.exports=function(e,t){var i;if((e=e||{})[t.clientConfig]&&(i=n(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return i;if(!r.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(process.env,t.env)&&(i=n(process.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[t.env]+'".'})))return i;var o={};try{o=r.util.getProfilesFromSharedConfig(r.util.iniLoader)[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}return o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)&&(i=n(o[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[t.sharedConfig]+'".'})),i}},79614:(e,t,i)=>{var r={util:i(62662)};({}).toString(),e.exports=r,r.util.update(r,{VERSION:"2.1223.0",Signers:{},Protocol:{Json:i(76933),Query:i(70293),Rest:i(96225),RestJson:i(53699),RestXml:i(11674)},XML:{Builder:i(52369),Parser:null},JSON:{Builder:i(43658),Parser:i(62622)},Model:{Api:i(85863),Operation:i(66797),Shape:i(68136),Paginator:i(47937),ResourceWaiter:i(90306)},apiLoader:i(16862),EndpointCache:i(85101).$}),i(96380),i(20173),i(22709),i(26344),i(72274),i(73682),i(93975),i(82413),i(92604),i(25479),r.events=new r.SequentialExecutor,r.util.memoizedProperty(r,"endpointCache",(function(){return new r.EndpointCache(r.config.endpointCacheSize)}),!0)},84465:(e,t,i)=>{var r=i(79614);r.Credentials=r.util.inherit({constructor:function(){if(r.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=r.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(i){i||(t.expired=!1),e&&e(i)})):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var i=this;1===i.refreshCallbacks.push(e)&&i.load((function(e){r.util.arrayEach(i.refreshCallbacks,(function(i){t?i(e):r.util.defer((function(){i(e)}))})),i.refreshCallbacks.length=0}))},load:function(e){e()}}),r.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=r.util.promisifyMethod("get",e),this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)},r.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},r.util.addPromises(r.Credentials)},91:(e,t,i)=>{var r=i(79614),n=i(93568);r.ChainableTemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function(e){r.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=r.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new r.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var i=r.util.merge({params:t,credentials:e.masterCredentials||r.config.credentials},e.stsConfig||{});this.service=new n(i)},refresh:function(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function(e){var t=this,i=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode((function(r,n){var o={};r?e(r):(n&&(o.TokenCode=n),t.service[i](o,(function(i,r){i||t.service.credentialsFrom(r,t),e(i)})))}))},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,(function(i,n){if(i){var o=i;return i instanceof Error&&(o=i.message),void e(r.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}))}e(null,n)})):e(null)}})},67372:(e,t,i)=>{var r=i(79614),n=i(96105),o=i(93568);r.CognitoIdentityCredentials=r.util.inherit(r.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){r.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=r.util.copy(t||{}),this.loadCachedId();var i=this;Object.defineProperty(this,"identityId",{get:function(){return i.loadCachedId(),i._identityId||i.params.IdentityId},set:function(e){i._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId((function(i){i?(t.clearIdOnNotAuthorized(i),e(i)):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(i,r){!i&&r.IdentityId?(t.params.IdentityId=r.IdentityId,e(null,r.IdentityId)):e(i)}))},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(i,r){i?t.clearIdOnNotAuthorized(i):(t.cacheId(r),t.data=r,t.loadCredentials(t.data,t)),e(i)}))},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken((function(i,r){i?(t.clearIdOnNotAuthorized(i),e(i)):(t.cacheId(r),t.params.WebIdentityToken=r.Token,t.webIdentityCredentials.refresh((function(i){i||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(i)})))}))},loadCachedId:function(){var e=this;if(r.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var i=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter((function(e){return-1!==i.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 r.WebIdentityCredentials(this.params,e),!this.cognito){var t=r.util.merge({},e);t.params=this.params,this.cognito=new n(t)}this.sts=this.sts||new o(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,r.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(e){}},storage:function(){try{var e=r.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},83227:(e,t,i)=>{var r=i(79614);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function(e){this.providers=e||r.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 i=0,n=t.providers.slice(0);!function e(o,s){if(!o&&s||i===n.length)return r.util.arrayEach(t.resolveCallbacks,(function(e){e(o,s)})),void(t.resolveCallbacks.length=0);var a=n[i++];(s="function"==typeof a?a.call():a).get?s.get((function(t){e(t,t?null:s)})):e(null,s)}()}return t}}),r.CredentialProviderChain.defaultProviders=[],r.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)},r.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},r.util.addPromises(r.CredentialProviderChain)},16986:(e,t,i)=>{var r=i(79614),n=i(93568);r.SAMLCredentials=r.util.inherit(r.Credentials,{constructor:function(e){r.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML((function(i,r){i||t.service.credentialsFrom(r,t),e(i)}))},createClients:function(){this.service=this.service||new n({params:this.params})}})},46662:(e,t,i)=>{var r=i(79614),n=i(93568);r.TemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function(e,t){r.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||r.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(i,r){i||t.service.credentialsFrom(r,t),e(i)}))}))},loadMasterCredentials:function(e){for(this.masterCredentials=e||r.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new r.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new n({params:this.params})}})},97719:(e,t,i)=>{var r=i(79614),n=i(93568);r.WebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function(e,t){r.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=r.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity((function(i,r){t.data=null,i||(t.data=r,t.service.credentialsFrom(r,t)),e(i)}))},createClients:function(){if(!this.service){var e=r.util.merge({},this._clientConfig);e.params=this.params,this.service=new n(e)}}})},33320:(e,t,i)=>{var r=i(79614),n=i(62662),o=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function s(e){var t=e.service,i=t.api||{},r=(i.operations,{});return t.config.region&&(r.region=t.config.region),i.serviceId&&(r.serviceId=i.serviceId),t.config.credentials.accessKeyId&&(r.accessKeyId=t.config.credentials.accessKeyId),r}function a(e,t,i){i&&null!=t&&"structure"===i.type&&i.required&&i.required.length>0&&n.arrayEach(i.required,(function(r){var n=i.members[r];if(!0===n.endpointDiscoveryId){var o=n.isLocationName?n.name:r;e[o]=String(t[r])}else a(e,t[r],n)}))}function u(e,t){var i={};return a(i,e.params,t),i}function c(e){var t=e.service,i=t.api,o=i.operations?i.operations[e.operation]:void 0,a=u(e,o?o.input:void 0),c=s(e);Object.keys(a).length>0&&(c=n.update(c,a),o&&(c.operation=o.name));var l=r.endpointCache.get(c);if(!l||1!==l.length||""!==l[0].Address)if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address);else{var d=t.makeRequest(i.endpointOperation,{Operation:o.name,Identifiers:a});p(d),d.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS),d.removeListener("retry",r.EventListeners.Core.RETRY_CHECK),r.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]),d.send((function(e,t){t&&t.Endpoints?r.endpointCache.put(c,t.Endpoints):e&&r.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])}))}}var l={};function d(e,t){var i=e.service,o=i.api,a=o.operations?o.operations[e.operation]:void 0,c=a?a.input:void 0,d=u(e,c),m=s(e);Object.keys(d).length>0&&(m=n.update(m,d),a&&(m.operation=a.name));var h=r.EndpointCache.getKeyString(m),g=r.endpointCache.get(h);if(g&&1===g.length&&""===g[0].Address)return l[h]||(l[h]=[]),void l[h].push({request:e,callback:t});if(g&&g.length>0)e.httpRequest.updateEndpoint(g[0].Address),t();else{var y=i.makeRequest(o.endpointOperation,{Operation:a.name,Identifiers:d});y.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS),p(y),r.endpointCache.put(h,[{Address:"",CachePeriodInMinutes:60}]),y.send((function(i,o){if(i){if(e.response.error=n.error(i,{retryable:!1}),r.endpointCache.remove(m),l[h]){var s=l[h];n.arrayEach(s,(function(e){e.request.response.error=n.error(i,{retryable:!1}),e.callback()})),delete l[h]}}else o&&(r.endpointCache.put(h,o.Endpoints),e.httpRequest.updateEndpoint(o.Endpoints[0].Address),l[h])&&(s=l[h],n.arrayEach(s,(function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address),e.callback()})),delete l[h]);t()}))}}function p(e){var t=e.service.api.apiVersion;t&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=t)}function m(e){var t=e.error,i=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===i.statusCode)){var o=e.request,a=o.service.api.operations||{},c=u(o,a[o.operation]?a[o.operation].input:void 0),l=s(o);Object.keys(c).length>0&&(l=n.update(l,c),a[o.operation]&&(l.operation=a[o.operation].name)),r.endpointCache.remove(l)}}function h(e){return["false","0"].indexOf(e)>=0}e.exports={discoverEndpoint:function(e,t){var i=e.service||{};if(function(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw n.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=r.config[e.serviceIdentifier]||{};return Boolean(r.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}(i)||e.isPresigned())return t();var s=(i.api.operations||{})[e.operation],a=s?s.endpointDiscoveryRequired:"NULL",u=function(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!n.isBrowser()){for(var i=0;i{var r=i(79614),n=r.util,o=i(79123).typeOf,s=i(44604),a=i(35883);function u(e,t){return t?new a(e):Number(e)}function c(e,t){var i={M:{}};for(var n in e){var o=r.DynamoDB.Converter.input(e[n],t);void 0!==o&&(i.M[n]=o)}return i}r.DynamoDB.Converter={input:function e(t,i){i=i||{};var n=o(t);return"Object"===n?c(t,i):"Array"===n?function(e,t){for(var i={L:[]},n=0;n{var r=i(79614),n=i(51939),o=i(44604);r.DynamoDB.DocumentClient=r.util.inherit({constructor:function(e){var t=this;t.options=e||{},t.configure(t.options)},configure:function(e){var t=this;t.service=e.service,t.bindServiceObject(e),t.attrValue=e.attrValue=t.service.api.operations.putItem.input.members.Item.value.shape},bindServiceObject:function(e){var t=this;if(e=e||{},t.service){var i=r.util.copy(t.service.config);t.service=new t.service.constructor.__super__(i),t.service.config.params=r.util.merge(t.service.config.params||{},e.params)}else t.service=new r.DynamoDB(e)},makeServiceRequest:function(e,t,i){var r=this,n=r.service[e](t);return r.setupRequest(n),r.setupResponse(n),"function"==typeof i&&n.send(i),n},serviceClientOperationsMap:{batchGet:"batchGetItem",batchWrite:"batchWriteItem",delete:"deleteItem",get:"getItem",put:"putItem",query:"query",scan:"scan",update:"updateItem",transactGet:"transactGetItems",transactWrite:"transactWriteItems"},batchGet:function(e,t){var i=this.serviceClientOperationsMap.batchGet;return this.makeServiceRequest(i,e,t)},batchWrite:function(e,t){var i=this.serviceClientOperationsMap.batchWrite;return this.makeServiceRequest(i,e,t)},delete:function(e,t){var i=this.serviceClientOperationsMap.delete;return this.makeServiceRequest(i,e,t)},get:function(e,t){var i=this.serviceClientOperationsMap.get;return this.makeServiceRequest(i,e,t)},put:function(e,t){var i=this.serviceClientOperationsMap.put;return this.makeServiceRequest(i,e,t)},update:function(e,t){var i=this.serviceClientOperationsMap.update;return this.makeServiceRequest(i,e,t)},scan:function(e,t){var i=this.serviceClientOperationsMap.scan;return this.makeServiceRequest(i,e,t)},query:function(e,t){var i=this.serviceClientOperationsMap.query;return this.makeServiceRequest(i,e,t)},transactWrite:function(e,t){var i=this.serviceClientOperationsMap.transactWrite;return this.makeServiceRequest(i,e,t)},transactGet:function(e,t){var i=this.serviceClientOperationsMap.transactGet;return this.makeServiceRequest(i,e,t)},createSet:function(e,t){return new o(e,t=t||{})},getTranslator:function(){return new n(this.options)},setupRequest:function(e){var t=this.getTranslator(),i=e.operation,n=e.service.api.operations[i].input;e._events.validate.unshift((function(e){e.rawParams=r.util.copy(e.params),e.params=t.translateInput(e.rawParams,n)}))},setupResponse:function(e){var t=this,i=t.getTranslator(),n=t.service.api.operations[e.operation].output;e.on("extractData",(function(e){e.data=i.translateOutput(e.data,n)})),e.response.nextPage=function(e){var i,n=this,o=n.request,s=o.service,a=o.operation;try{i=s.paginationConfig(a,!0)}catch(e){n.error=e}if(!n.hasNextPage()){if(e)e(n.error,null);else if(n.error)throw n.error;return null}var u=r.util.copy(o.rawParams);if(n.nextPageTokens){var c=i.inputToken;"string"==typeof c&&(c=[c]);for(var l=0;l{var r=i(79614).util.inherit({constructor:function(e){this.wrapperName="NumberValue",this.value=e.toString()},toJSON:function(){return this.toNumber()},toNumber:function(){return Number(this.value)},toString:function(){return this.value}});e.exports=r},44604:(e,t,i)=>{var r=i(79614).util,n=i(79123).typeOf,o={String:"String",Number:"Number",NumberValue:"Number",Binary:"Binary"},s=r.inherit({constructor:function(e,t){t=t||{},this.wrapperName="Set",this.initialize(e,t.validate)},initialize:function(e,t){var i=this;i.values=[].concat(e),i.detectType(),t&&i.validate()},detectType:function(){if(this.type=o[n(this.values[0])],!this.type)throw r.error(new Error,{code:"InvalidSetType",message:"Sets can contain string, number, or binary values"})},validate:function(){for(var e=this,t=e.values.length,i=e.values,s=0;s{var r=i(79614).util,n=i(68235),o=function(e){e=e||{},this.attrValue=e.attrValue,this.convertEmptyValues=Boolean(e.convertEmptyValues),this.wrapNumbers=Boolean(e.wrapNumbers)};o.prototype.translateInput=function(e,t){return this.mode="input",this.translate(e,t)},o.prototype.translateOutput=function(e,t){return this.mode="output",this.translate(e,t)},o.prototype.translate=function(e,t){var i=this;if(t&&void 0!==e){if(t.shape===i.attrValue)return n[i.mode](e,{convertEmptyValues:i.convertEmptyValues,wrapNumbers:i.wrapNumbers});switch(t.type){case"structure":return i.translateStructure(e,t);case"map":return i.translateMap(e,t);case"list":return i.translateList(e,t);default:return i.translateScalar(e,t)}}},o.prototype.translateStructure=function(e,t){var i=this;if(null!=e){var n={};return r.each(e,(function(e,r){var o=t.members[e];if(o){var s=i.translate(r,o);void 0!==s&&(n[e]=s)}})),n}},o.prototype.translateList=function(e,t){var i=this;if(null!=e){var n=[];return r.arrayEach(e,(function(e){var r=i.translate(e,t.member);void 0===r?n.push(null):n.push(r)})),n}},o.prototype.translateMap=function(e,t){var i=this;if(null!=e){var n={};return r.each(e,(function(e,r){var o=i.translate(r,t.value);n[e]=void 0===o?null:o})),n}},o.prototype.translateScalar=function(e,t){return t.toType(e)},e.exports=o},79123:(e,t,i)=>{var r=i(79614).util;function n(e){var t=["Buffer","File","Blob","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"];if(r.isNode()){var i=r.stream.Stream;if(r.Buffer.isBuffer(e)||e instanceof i)return!0}for(var n=0;n{var r=i(97550).eventMessageChunker,n=i(83851).parseEvent;e.exports={createEventStream:function(e,t,i){for(var o=r(e),s=[],a=0;a{e.exports={eventMessageChunker:function(e){for(var t=[],i=0;i{var r=i(79614).util,n=r.buffer.toBuffer;function o(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");r.Buffer.isBuffer(e)||(e=n(e)),this.bytes=e}function s(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}o.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),i=7,r=Math.abs(Math.round(e));i>-1&&r>0;i--,r/=256)t[i]=r;return e<0&&s(t),new o(t)},o.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&s(e),parseInt(e.toString("hex"),16)*(t?-1:1)},o.prototype.toString=function(){return String(this.valueOf())},e.exports={Int64:o}},83851:(e,t,i)=>{var r=i(89524).parseMessage;e.exports={parseEvent:function(e,t,i){var n=r(t),o=n.headers[":message-type"];if(o){if("error"===o.value)throw function(e){var t=e.headers[":error-code"],i=e.headers[":error-message"],r=new Error(i.value||i);return r.code=r.name=t.value||t,r}(n);if("event"!==o.value)return}var s=n.headers[":event-type"],a=i.members[s.value];if(a){var u={},c=a.eventPayloadMemberName;if(c){var l=a.members[c];"binary"===l.type?u[c]=n.body:u[c]=e.parse(n.body.toString(),l)}for(var d=a.eventHeaderMemberNames,p=0;p{var r=i(31231).Int64,n=i(4441).splitMessage,o="boolean";function s(e){for(var t={},i=0;i{var r=i(79614).util,n=r.buffer.toBuffer;e.exports={splitMessage:function(e){if(r.Buffer.isBuffer(e)||(e=n(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(8);if(t!==r.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var i=e.readUInt32BE(e.length-4);if(i!==r.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+i);var o=12+e.readUInt32BE(4);return{headers:e.slice(12,o),body:e.slice(o,e.length-4)}}}},72274:(e,t,i)=>{var r=i(79614),n=i(96380),o=i(33320).discoverEndpoint;r.EventListeners={Core:{}},r.EventListeners={Core:(new n).addNamedListeners((function(e,t){t("VALIDATE_CREDENTIALS","validate",(function(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials((function(i){i&&(e.response.error=r.util.error(i,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),t()}))})),e("VALIDATE_REGION","validate",(function(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);e.service.config.region?t.test(e.service.config.region)||(e.response.error=r.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):e.response.error=r.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}})),e("BUILD_IDEMPOTENCY_TOKENS","validate",(function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var i=t.idempotentMembers;if(i.length){for(var n=r.util.copy(e.params),o=0,s=i.length;o=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();r.util.computeSha256(o,(function(i,r){i?t(i):(e.httpRequest.headers["X-Amz-Content-Sha256"]=r,t())}))}else t()}})),e("SET_CONTENT_LENGTH","afterBuild",(function(e){var t=function(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}(e),i=r.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var n=r.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=n}catch(r){if(i&&i.isStreaming){if(i.requiresLength)throw r;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw r}throw r}})),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(r.util.isNode()&&!Object.hasOwnProperty.call(e.httpRequest.headers,t)){var i=process.env.AWS_LAMBDA_FUNCTION_NAME,n=process.env._X_AMZN_TRACE_ID;"string"==typeof i&&i.length>0&&"string"==typeof n&&n.length>0&&(e.httpRequest.headers[t]=n)}})),e("RESTART","restart",(function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new r.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount=600?this.emit("sign",[this],(function(e){e?t(e):o()})):o()})),e("HTTP_HEADERS","httpHeaders",(function(e,t,i,n){i.httpResponse.statusCode=e,i.httpResponse.statusMessage=n,i.httpResponse.headers=t,i.httpResponse.body=r.util.buffer.toBuffer(""),i.httpResponse.buffers=[],i.httpResponse.numBytes=0;var o=t.date||t.Date,s=i.request.service;if(o){var a=Date.parse(o);s.config.correctClockSkew&&s.isClockSkewed(a)&&s.applyClockOffset(a)}})),e("HTTP_DATA","httpData",(function(e,t){if(e){if(r.util.isNode()){t.httpResponse.numBytes+=e.length;var i=t.httpResponse.headers["content-length"],n={loaded:t.httpResponse.numBytes,total:i};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(r.util.buffer.toBuffer(e))}})),e("HTTP_DONE","httpDone",(function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=r.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 r.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,i)):t()}))})),CorePost:(new n).addNamedListeners((function(e){e("EXTRACT_REQUEST_ID","extractData",r.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",r.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",(function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"==typeof e.errno&&"function"==typeof r.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(r.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=r.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}}))})),Logger:(new n).addNamedListeners((function(e){e("LOG_REQUEST","complete",(function(e){var t=e.request,n=t.service.config.logger;if(n){var o=function(){var o=(e.request.service.getSkewCorrectedDate().getTime()-t.startTime.getTime())/1e3,a=!!n.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=s(t.service.api.operations[t.operation].input,t.params));var l=i(89539).inspect(c,!0,null),d="";return a&&(d+=""),d+="[AWS "+t.service.serviceIdentifier+" "+u,d+=" "+o.toString()+"s "+e.retryCount+" retries]",a&&(d+=""),d+=" "+r.util.string.lowerFirst(t.operation),d+="("+l+")",a&&(d+=""),d}();"function"==typeof n.log?n.log(o):"function"==typeof n.write&&n.write(o+"\n")}function s(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var i={};return r.util.each(t,(function(t,r){Object.prototype.hasOwnProperty.call(e.members,t)?i[t]=s(e.members[t],r):i[t]=r})),i;case"list":var n=[];return r.util.arrayEach(t,(function(t,i){n.push(s(e.member,t))})),n;case"map":var o={};return r.util.each(t,(function(t,i){o[t]=s(e.value,i)})),o;default:return t}}}))})),Json:(new n).addNamedListeners((function(e){var t=i(76933);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Rest:(new n).addNamedListeners((function(e){var t=i(96225);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),RestJson:(new n).addNamedListeners((function(e){var t=i(53699);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),RestXml:(new n).addNamedListeners((function(e){var t=i(11674);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Query:(new n).addNamedListeners((function(e){var t=i(70293);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}))}},26344:(e,t,i)=>{var r=i(79614),n=r.util.inherit;r.Endpoint=n({constructor:function(e,t){if(r.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return r.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:r.config.sslEnabled)?"https":"http")+"://"+e),r.util.update(this,r.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),r.HttpRequest=n({constructor:function(e,t){e=new r.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()]=r.util.userAgent()},getUserAgentHeaderName:function(){return(r.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=r.util.queryStringParse(e),r.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new r.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),r.HttpResponse=n({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),r.HttpClient=n({}),r.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},2631:(e,t,i)=>{var r=i(79614),n=i(33498).EventEmitter;i(26344),r.XHRClient=r.util.inherit({handleRequest:function(e,t,i,o){var s=this,a=e.endpoint,u=new n,c=a.protocol+"//"+a.hostname;80!==a.port&&443!==a.port&&(c+=":"+a.port),c+=e.path;var l=new XMLHttpRequest,d=!1;e.stream=l,l.addEventListener("readystatechange",(function(){try{if(0===l.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!d&&(u.statusCode=l.status,u.headers=s.parseHeaders(l.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,l.statusText),d=!0),this.readyState===this.DONE&&s.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(){o(r.util.error(new Error("Timeout"),{code:"TimeoutError"}))}),!1),l.addEventListener("error",(function(){o(r.util.error(new Error("Network Failure"),{code:"NetworkingError"}))}),!1),l.addEventListener("abort",(function(){o(r.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))}),!1),i(u),l.open(e.method,c,!1!==t.xhrAsync),r.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(e){}try{e.body?l.send(e.body):l.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;l.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return r.util.arrayEach(e.split(/\r?\n/),(function(e){var i=e.split(":",1)[0],r=e.substring(i.length+2);i.length>0&&(t[i.toLowerCase()]=r)})),t},finishRequest:function(e,t){var i;if("arraybuffer"===e.responseType&&e.response){var n=e.response;i=new r.util.Buffer(n.byteLength);for(var o=new Uint8Array(n),s=0;s{var r=i(62662);function n(){}function o(e,t){if(t&&null!=e)switch(t.type){case"structure":return function(e,t){if(t.isDocument)return e;var i={};return r.each(e,(function(e,r){var n=t.members[e];if(n){if("body"!==n.location)return;var s=n.isLocationName?n.name:e,a=o(r,n);void 0!==a&&(i[s]=a)}})),i}(e,t);case"map":return function(e,t){var i={};return r.each(e,(function(e,r){var n=o(r,t.value);void 0!==n&&(i[e]=n)})),i}(e,t);case"list":return function(e,t){var i=[];return r.arrayEach(e,(function(e){var r=o(e,t.member);void 0!==r&&i.push(r)})),i}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}n.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=n},62622:(e,t,i)=>{var r=i(62662);function n(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null!=e){if(t.isDocument)return e;var i={},n=t.members;return r.each(n,(function(t,r){var n=r.isLocationName?r.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var s=o(e[n],r);void 0!==s&&(i[t]=s)}})),i}}(e,t);case"map":return function(e,t){if(null!=e){var i={};return r.each(e,(function(e,r){var n=o(r,t.value);i[e]=void 0===n?null:n})),i}}(e,t);case"list":return function(e,t){if(null!=e){var i=[];return r.arrayEach(e,(function(e){var r=o(e,t.member);void 0===r?i.push(null):i.push(r)})),i}}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}n.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=n},85863:(e,t,i)=>{var r=i(84351),n=i(66797),o=i(68136),s=i(47937),a=i(90306),u=i(17752),c=i(62662),l=c.property,d=c.memoizedProperty;e.exports=function(e,t){var i=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{};var p=t.serviceIdentifier;delete t.serviceIdentifier,l(this,"isApi",!0,!1),l(this,"apiVersion",e.metadata.apiVersion),l(this,"endpointPrefix",e.metadata.endpointPrefix),l(this,"signingName",e.metadata.signingName),l(this,"globalEndpoint",e.metadata.globalEndpoint),l(this,"signatureVersion",e.metadata.signatureVersion),l(this,"jsonVersion",e.metadata.jsonVersion),l(this,"targetPrefix",e.metadata.targetPrefix),l(this,"protocol",e.metadata.protocol),l(this,"timestampFormat",e.metadata.timestampFormat),l(this,"xmlNamespaceUri",e.metadata.xmlNamespace),l(this,"abbreviation",e.metadata.serviceAbbreviation),l(this,"fullName",e.metadata.serviceFullName),l(this,"serviceId",e.metadata.serviceId),p&&u[p]&&l(this,"xmlNoDefaultLists",u[p].xmlNoDefaultLists,!1),d(this,"className",(function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null})),l(this,"operations",new r(e.operations,t,(function(e,i){return new n(e,i,t)}),c.string.lowerFirst,(function(e,t){!0===t.endpointoperation&&l(i,"endpointOperation",c.string.lowerFirst(e)),t.endpointdiscovery&&!i.hasRequiredEndpointDiscovery&&l(i,"hasRequiredEndpointDiscovery",!0===t.endpointdiscovery.required)}))),l(this,"shapes",new r(e.shapes,t,(function(e,i){return o.create(i,t)}))),l(this,"paginators",new r(e.paginators,t,(function(e,i){return new s(e,i,t)}))),l(this,"waiters",new r(e.waiters,t,(function(e,i){return new a(e,i,t)}),c.string.lowerFirst)),t.documentation&&(l(this,"documentation",e.documentation),l(this,"documentationUrl",e.documentationUrl)),l(this,"errorCodeMapping",e.awsQueryCompatible)}},84351:(e,t,i)=>{var r=i(62662).memoizedProperty;function n(e,t,i,n){r(this,n(e),(function(){return i(e,t)}))}e.exports=function(e,t,i,r,o){for(var s in r=r||String,e)Object.prototype.hasOwnProperty.call(e,s)&&(n.call(this,s,e[s],i,r),o&&o(s,e[s]))}},66797:(e,t,i)=>{var r=i(68136),n=i(62662),o=n.property,s=n.memoizedProperty;e.exports=function(e,t,i){var n=this;i=i||{},o(this,"name",t.name||e),o(this,"api",i.api,!1),t.http=t.http||{},o(this,"endpoint",t.endpoint),o(this,"httpMethod",t.http.method||"POST"),o(this,"httpPath",t.http.requestUri||"/"),o(this,"authtype",t.authtype||""),o(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");var a=t.httpChecksumRequired||t.httpChecksum&&t.httpChecksum.requestChecksumRequired;o(this,"httpChecksumRequired",a,!1),s(this,"input",(function(){return t.input?r.create(t.input,i):new r.create({type:"structure"},i)})),s(this,"output",(function(){return t.output?r.create(t.output,i):new r.create({type:"structure"},i)})),s(this,"errors",(function(){var e=[];if(!t.errors)return null;for(var n=0;n{var r=i(62662).property;e.exports=function(e,t){r(this,"inputToken",t.input_token),r(this,"limitKey",t.limit_key),r(this,"moreResults",t.more_results),r(this,"outputToken",t.output_token),r(this,"resultKey",t.result_key)}},90306:(e,t,i)=>{var r=i(62662),n=r.property;e.exports=function(e,t,i){i=i||{},n(this,"name",e),n(this,"api",i.api,!1),t.operation&&n(this,"operation",r.string.lowerFirst(t.operation));var o=this;["type","description","delay","maxAttempts","acceptors"].forEach((function(e){var i=t[e];i&&n(o,e,i)}))}},68136:(e,t,i)=>{var r=i(84351),n=i(62662);function o(e,t,i){null!=i&&n.property.apply(this,arguments)}function s(e,t){e.constructor.prototype[t]||n.memoizedProperty.apply(this,arguments)}function a(e,t,i){t=t||{},o(this,"shape",e.shape),o(this,"api",t.api,!1),o(this,"type",e.type),o(this,"enum",e.enum),o(this,"min",e.min),o(this,"max",e.max),o(this,"pattern",e.pattern),o(this,"location",e.location||this.location||"body"),o(this,"name",this.name||e.xmlName||e.queryName||e.locationName||i),o(this,"isStreaming",e.streaming||this.isStreaming||!1),o(this,"requiresLength",e.requiresLength,!1),o(this,"isComposite",e.isComposite||!1),o(this,"isShape",!0,!1),o(this,"isQueryName",Boolean(e.queryName),!1),o(this,"isLocationName",Boolean(e.locationName),!1),o(this,"isIdempotent",!0===e.idempotencyToken),o(this,"isJsonValue",!0===e.jsonvalue),o(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),o(this,"isEventStream",Boolean(e.eventstream),!1),o(this,"isEvent",Boolean(e.event),!1),o(this,"isEventPayload",Boolean(e.eventpayload),!1),o(this,"isEventHeader",Boolean(e.eventheader),!1),o(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),o(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),o(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(o(this,"documentation",e.documentation),o(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&o(this,"isXmlAttribute",e.xmlAttribute||!1),o(this,"defaultValue",null),this.toWireFormat=function(e){return null==e?"":e},this.toType=function(e){return e}}function u(e){a.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function c(e,t){var i=this,n=null,c=!this.isShape;u.apply(this,arguments),c&&(o(this,"defaultValue",(function(){return{}})),o(this,"members",{}),o(this,"memberNames",[]),o(this,"required",[]),o(this,"isRequired",(function(){return!1})),o(this,"isDocument",Boolean(e.document))),e.members&&(o(this,"members",new r(e.members,t,(function(e,i){return a.create(i,t,e)}))),s(this,"memberNames",(function(){return e.xmlOrder||Object.keys(e.members)})),e.event&&(s(this,"eventPayloadMemberName",(function(){for(var e=i.members,t=i.memberNames,r=0,n=t.length;r-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function m(){a.apply(this,arguments),this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&"function"==typeof n.Buffer.alloc){var i=n.Buffer.alloc(t.length,t);t.fill(0),t=i}return t},this.toWireFormat=n.base64.encode}function h(){m.apply(this,arguments)}function g(){a.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null==e?null:"true"===e}}a.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},a.types={structure:c,list:l,map:d,boolean:g,timestamp:function(e){var t=this;if(a.apply(this,arguments),e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)o(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)o(this,"timestampFormat","rfc822");else if("querystring"===this.location)o(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null==e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?n.date.parseTimestamp(e):null},this.toWireFormat=function(e){return n.date.format(e,t.timestampFormat)}},float:function(){a.apply(this,arguments),this.toType=function(e){return null==e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){a.apply(this,arguments),this.toType=function(e){return null==e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:p,base64:h,binary:m},a.resolve=function(e,t){if(e.shape){var i=t.api.shapes[e.shape];if(!i)throw new Error("Cannot find shape reference: "+e.shape);return i}return null},a.create=function(e,t,i){if(e.isShape)return e;var r=a.resolve(e,t);if(r){var n=Object.keys(e);t.documentation||(n=n.filter((function(e){return!e.match(/documentation/)})));var o=function(){r.constructor.call(this,e,t,i)};return o.prototype=r,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var s=e.type;if(a.normalizedTypes[e.type]&&(e.type=a.normalizedTypes[e.type]),a.types[e.type])return new a.types[e.type](e,t,i);throw new Error("Unrecognized shape type: "+s)},a.shapes={StructureShape:c,ListShape:l,MapShape:d,StringShape:p,BooleanShape:g,Base64Shape:h},e.exports=a},25479:(e,t,i)=>{var r=i(79614);r.ParamValidator=r.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,i){if(this.errors=[],this.validateMember(e,t||{},i||"params"),this.errors.length>1){var n=this.errors.join("\n* ");throw n="There were "+this.errors.length+" validation errors:\n* "+n,r.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(r.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,i){if(e.isDocument)return!0;var r;this.validateType(t,i,["object"],"structure");for(var n=0;e.required&&n= 1, but found "'+t+'" for '+i)},validatePattern:function(e,t,i){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 "+i))},validateRange:function(e,t,i,r){this.validation.min&&void 0!==e.min&&t= "+e.min+", but found "+t+" for "+i),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+r+" <= "+e.max+", but found "+t+" for "+i)},validateEnum:function(e,t,i){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 "+i)},validateType:function(e,t,i,n){if(null==e)return!1;for(var o=!1,s=0;s{var r=i(79614),n=r.Protocol.Rest;r.Polly.Presigner=r.util.inherit({constructor:function(e){e=e||{},this.options=e,this.service=e.service,this.bindServiceObject(e),this._operations={}},bindServiceObject:function(e){if(e=e||{},this.service){var t=r.util.copy(this.service.config);this.service=new this.service.constructor.__super__(t),this.service.config.params=r.util.merge(this.service.config.params||{},e.params)}else this.service=new r.Polly(e)},modifyInputMembers:function(e){var t=r.util.copy(e);return t.members=r.util.copy(e.members),r.util.each(e.members,(function(e,i){t.members[e]=r.util.copy(i),i.location&&"body"!==i.location||(t.members[e].location="querystring",t.members[e].locationName=e)})),t},convertPostToGet:function(e){e.httpRequest.method="GET";var t=e.service.api.operations[e.operation],i=this._operations[e.operation];i||(this._operations[e.operation]=i=this.modifyInputMembers(t.input));var r=n.generateURI(e.httpRequest.endpoint.path,t.httpPath,i,e.params);e.httpRequest.path=r,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},getSynthesizeSpeechUrl:function(e,t,i){var r=this,n=this.service.makeRequest("synthesizeSpeech",e);return n.removeAllListeners("build"),n.on("build",(function(e){r.convertPostToGet(e)})),n.presign(t,i)}})},80987:(e,t,i)=>{var r=i(62662),n=i(79614);e.exports={populateHostPrefix:function(e){if(!e.service.config.hostPrefixEnabled)return e;var t,i,o,s,a,u,c,l=e.service.api.operations[e.operation];if(function(e){var t=e.service.api,i=t.operations[e.operation],n=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(i.name);return"NULL"!==i.endpointDiscoveryRequired||!0===n}(e))return e;if(l.endpoint&&l.endpoint.hostPrefix){var d=(a=l.endpoint.hostPrefix,u=e.params,c=l.input,r.each(c.members,(function(e,t){if(!0===t.hostLabel){if("string"!=typeof u[e]||""===u[e])throw r.error(new Error,{message:"Parameter "+e+" should be a non-empty string.",code:"InvalidParameter"});var i=new RegExp("\\{"+e+"\\}","g");a=a.replace(i,u[e])}})),a);o=e.httpRequest.endpoint,s=d,o.host&&(o.host=s+o.host),o.hostname&&(o.hostname=s+o.hostname),t=e.httpRequest.endpoint.hostname.split("."),i=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/,r.arrayEach(t,(function(e){if(!e.length||e.length<1||e.length>63)throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!i.test(e))throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}))}return e}}},76933:(e,t,i)=>{var r=i(62662),n=i(43658),o=i(62622),s=i(80987).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.httpRequest,i=e.service.api,r=i.targetPrefix+"."+i.operations[e.operation].name,o=i.jsonVersion||"1.0",a=i.operations[e.operation].input,u=new n;1===o&&(o="1.0"),t.body=u.build(e.params||{},a),t.headers["Content-Type"]="application/x-amz-json-"+o,t.headers["X-Amz-Target"]=r,s(e)},extractError:function(e){var t={},i=e.httpResponse;if(t.code=i.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),i.body.length>0)try{var n=JSON.parse(i.body.toString()),o=n.__type||n.code||n.Code;o&&(t.code=o.split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=n.message||n.Message||null}catch(n){t.statusCode=i.statusCode,t.message=i.statusMessage}else t.statusCode=i.statusCode,t.message=i.statusCode.toString();e.error=r.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 i=e.request.service.api.operations[e.request.operation].output||{},r=new o;e.data=r.parse(t,i)}}}},70293:(e,t,i)=>{var r=i(79614),n=i(62662),o=i(30864),s=i(68136),a=i(80987).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],i=e.httpRequest;i.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",i.params={Version:e.service.api.apiVersion,Action:t.name},(new o).serialize(e.params,t.input,(function(e,t){i.params[e]=t})),i.body=n.queryParamsToString(i.params),a(e)},extractError:function(e){var t,i=e.httpResponse.body.toString();if(i.match("{var r=i(62662),n=i(80987).populateHostPrefix;function o(e,t,i,n){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var s={},a=!1;if(r.each(i.members,(function(e,t){var i=n[e];if(null!=i)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,(function(e,t){return(t?r.uriEscapePath:r.uriEscape)(String(i))}))}else"querystring"===t.location&&(a=!0,"list"===t.type?s[t.name]=i.map((function(e){return r.uriEscape(t.member.toWireFormat(e).toString())})):"map"===t.type?r.each(i,(function(e,t){Array.isArray(t)?s[e]=t.map((function(e){return r.uriEscape(String(e))})):s[e]=r.uriEscape(String(t))})):s[t.name]=r.uriEscape(t.toWireFormat(i).toString()))})),a){o+=o.indexOf("?")>=0?"&":"?";var u=[];r.arrayEach(Object.keys(s).sort(),(function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t{var r=i(62662),n=i(96225),o=i(76933),s=i(43658),a=i(62622);function u(e,t){if(!e.httpRequest.headers["Content-Type"]){var i=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=i}}e.exports={buildRequest:function(e){n.buildRequest(e),["GET","HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&function(e){var t=new s,i=e.service.api.operations[e.operation].input;if(i.payload){var r,n=i.members[i.payload];r=e.params[i.payload],"structure"===n.type?(e.httpRequest.body=t.build(r||{},n),u(e)):void 0!==r&&(e.httpRequest.body=r,("binary"===n.type||n.isStreaming)&&u(e,!0))}else e.httpRequest.body=t.build(e.params,i),u(e)}(e)},extractError:function(e){o.extractError(e)},extractData:function(e){n.extractData(e);var t=e.request,i=t.service.api.operations[t.operation],s=t.service.api.operations[t.operation].output||{};if(i.hasEventOutput,s.payload){var u=s.members[s.payload],c=e.httpResponse.body;if(u.isEventStream)l=new a,e.data[payload]=r.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:c,l,u);else if("structure"===u.type||"list"===u.type){var l=new a;e.data[s.payload]=l.parse(c,u)}else"binary"===u.type||u.isStreaming?e.data[s.payload]=c:e.data[s.payload]=u.toType(c)}else{var d=e.data;o.extractData(e),e.data=r.merge(d,e.data)}}}},11674:(e,t,i)=>{var r=i(79614),n=i(62662),o=i(96225);e.exports={buildRequest:function(e){o.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function(e){var t=e.service.api.operations[e.operation].input,i=new r.XML.Builder,o=e.params,s=t.payload;if(s){var a=t.members[s];if(void 0===(o=o[s]))return;if("structure"===a.type){var u=a.name;e.httpRequest.body=i.toXML(o,a,u,!0)}else e.httpRequest.body=o}else e.httpRequest.body=i.toXML(o,t,t.name||t.shape||n.string.upperFirst(e.operation)+"Request")}(e)},extractError:function(e){var t;o.extractError(e);try{t=(new r.XML.Parser).parse(e.httpResponse.body.toString())}catch(i){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=n.error(new Error,{code:t.Code,message:t.Message}):e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t;o.extractData(e);var i=e.request,s=e.httpResponse.body,a=i.service.api.operations[i.operation],u=a.output,c=(a.hasEventOutput,u.payload);if(c){var l=u.members[c];l.isEventStream?(t=new r.XML.Parser,e.data[c]=n.createEventStream(2===r.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,l)):"structure"===l.type?(t=new r.XML.Parser,e.data[c]=t.parse(s.toString(),l)):"binary"===l.type||l.isStreaming?e.data[c]=s:e.data[c]=l.toType(s)}else if(s.length>0){var d=(t=new r.XML.Parser).parse(s.toString(),u);n.update(e.data,d)}}}},30864:(e,t,i)=>{var r=i(62662);function n(){}function o(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function s(e,t,i,n){r.each(i.members,(function(i,r){var s=t[i];if(null!=s){var u=o(r);a(u=e?e+"."+u:u,s,r,n)}}))}function a(e,t,i,n){null!=t&&("structure"===i.type?s(e,t,i,n):"list"===i.type?function(e,t,i,n){var s=i.member||{};0!==t.length?r.arrayEach(t,(function(t,r){var u="."+(r+1);if("ec2"===i.api.protocol)u+="";else if(i.flattened){if(s.name){var c=e.split(".");c.pop(),c.push(o(s)),e=c.join(".")}}else u="."+(s.name?s.name:"member")+u;a(e+u,t,s,n)})):n.call(this,e,null)}(e,t,i,n):"map"===i.type?function(e,t,i,n){var o=1;r.each(t,(function(t,r){var s=(i.flattened?".":".entry.")+o+++".",u=s+(i.key.name||"key"),c=s+(i.value.name||"value");a(e+u,t,i.key,n),a(e+c,r,i.value,n)}))}(e,t,i,n):n(e,i.toWireFormat(t).toString()))}n.prototype.serialize=function(e,t,i){s("",e,t,i)},e.exports=n},50903:(e,t,i)=>{var r=i(79614),n=null,o={signatureVersion:"v4",signingName:"rds-db",operations:{}},s={region:"string",hostname:"string",port:"number",username:"string"};r.RDS.Signer=r.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 i=this,s="function"==typeof t;e=r.util.merge(this.options,e);var a=this.validateAuthTokenOptions(e);if(!0!==a){if(s)return t(a,null);throw a}var u={region:e.region,endpoint:new r.Endpoint(e.hostname+":"+e.port),paramValidation:!1,signatureVersion:"v4"};e.credentials&&(u.credentials=e.credentials),(n=new r.Service(u)).api=o;var c=n.makeRequest();if(this.modifyRequestForAuthToken(c,e),!s){var l=c.presign(900);return this.convertUrlToAuthToken(l)}c.presign(900,(function(e,r){r&&(r=i.convertUrlToAuthToken(r)),t(e,r)}))},modifyRequestForAuthToken:function(e,t){e.on("build",e.buildAsGet),e.httpRequest.body=r.util.queryParamsToString({Action:"connect",DBUser:t.username})},validateAuthTokenOptions:function(e){var t="";for(var i in e=e||{},s)Object.prototype.hasOwnProperty.call(s,i)&&typeof e[i]!==s[i]&&(t+="option '"+i+"' should have been type '"+s[i]+"', was '"+typeof e[i]+"'.\n");return!t.length||r.util.error(new Error,{code:"InvalidParameter",message:t})}})},31414:e=>{e.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},44040: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/,"")}}},41404:(e,t,i)=>{var r=i(62662),n=i(80738);function o(e,t){r.each(t,(function(t,i){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=i))}))}e.exports={configureEndpoint:function(e){for(var t=function(e){var t=e.config.region,i=function(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}(t),r=e.api.endpointPrefix;return[[t,r],[i,r],[t,"*"],[i,"*"],["*",r],["*","*"]].map((function(e){return e[0]&&e[1]?e.join("/"):null}))}(e),i=e.config.useFipsEndpoint,r=e.config.useDualstackEndpoint,s=0;s{var r=i(79614),n=i(91793),o=r.util.inherit,s=r.util.domain,a=i(44509),u={success:1,error:1,complete:1},c=new n;c.setupStates=function(){var e=function(e,t){var i=this;i._haltHandlersOnError=!1,i.emit(i._asm.currentState,(function(e){if(e)if(r=i,Object.prototype.hasOwnProperty.call(u,r._asm.currentState)){if(!(s&&i.domain instanceof s.Domain))throw e;e.domainEmitter=i,e.domain=i.domain,e.domainThrown=!1,i.domain.emit("error",e)}else i.response.error=e,t(e);else t(i.response.error);var r}))};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)},c.setupStates(),r.Request=o({constructor:function(e,t,i){var o=e.endpoint,a=e.config.region,u=e.config.customUserAgent;e.signingRegion?a=e.signingRegion:e.isGlobalEndpoint&&(a="us-east-1"),this.domain=s&&s.active,this.service=e,this.operation=t,this.params=i||{},this.httpRequest=new r.HttpRequest(o,a),this.httpRequest.appendToUserAgent(u),this.startTime=e.getSkewCorrectedDate(),this.response=new r.Response(this),this._asm=new n(c.states,"validate"),this._haltHandlersOnError=!1,r.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",(function(t){e.call(t,t.error,t.data)}))),this.runTo(),this.response},build:function(e){return this.runTo("send",e)},runTo:function(e,t){return this._asm.runTo(e,t,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",(function(e){e.error=r.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})})),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(e){e=r.util.fn.makeAsync(e,3),this.on("complete",(function t(i){e.call(i,i.error,i.data,(function(n){!1!==n&&(i.hasNextPage()?i.nextPage().on("complete",t).send():e.call(i,null,null,r.util.fn.noop))}))})).send()},eachItem:function(e){var t=this;this.eachPage((function(i,n){if(i)return e(i,null);if(null===n)return e(null,null);var o=t.service.paginationConfig(t.operation).resultKey;Array.isArray(o)&&(o=o[0]);var s=a.search(n,o),u=!0;return r.util.arrayEach(s,(function(t){if(!1===(u=e(null,t)))return r.util.abort})),u}))},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var e=r.util.stream,t=this,i=null;return 2===r.HttpClient.streamsApiVersion?(i=new e.PassThrough,process.nextTick((function(){t.send()}))):((i=new e.Stream).readable=!0,i.sent=!1,i.on("newListener",(function(e){i.sent||"data"!==e||(i.sent=!0,process.nextTick((function(){t.send()})))}))),this.on("error",(function(e){i.emit("error",e)})),this.on("httpHeaders",(function(n,o,s){if(n<300){t.removeListener("httpData",r.EventListeners.Core.HTTP_DATA),t.removeListener("httpError",r.EventListeners.Core.HTTP_ERROR),t.on("httpError",(function(e){s.error=e,s.error.retryable=!1}));var a,u=!1;if("HEAD"!==t.httpRequest.method&&(a=parseInt(o["content-length"],10)),void 0!==a&&!isNaN(a)&&a>=0){u=!0;var c=0}var l=function(){u&&c!==a?i.emit("error",r.util.error(new Error("Stream content length mismatch. Received "+c+" of "+a+" bytes."),{code:"StreamContentLengthMismatch"})):2===r.HttpClient.streamsApiVersion?i.end():i.emit("end")},d=s.httpResponse.createUnbufferedStream();if(2===r.HttpClient.streamsApiVersion)if(u){var p=new e.PassThrough;p._write=function(t){return t&&t.length&&(c+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},p.on("end",l),i.on("error",(function(e){u=!1,d.unpipe(p),p.emit("end"),p.end()})),d.pipe(p).pipe(i,{end:!1})}else d.pipe(i);else u&&d.on("data",(function(e){e&&e.length&&(c+=e.length)})),d.on("data",(function(e){i.emit("data",e)})),d.on("end",l);d.on("error",(function(e){u=!1,i.emit("error",e)}))}})),i},emitEvent:function(e,t,i){"function"==typeof t&&(i=t,t=null),i||(i=function(){}),t||(t=this.eventParameters(e,this.response)),r.SequentialExecutor.prototype.emit.call(this,e,t,(function(e){e&&(this.response.error=e),i.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 r.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",r.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",r.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}}),r.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e((function(e,i){t.on("complete",(function(t){t.error?i(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))})),t.runTo()}))}},r.Request.deletePromisesFromClass=function(){delete this.prototype.promise},r.util.addPromises(r.Request),r.util.mixin(r.Request,r.SequentialExecutor)},82413:(e,t,i)=>{var r=i(79614),n=r.util.inherit,o=i(44509);function s(e){var t=e.request._waiter,i=t.config.acceptors,r=!1,n="retry";i.forEach((function(i){if(!r){var o=t.matchers[i.matcher];o&&o(e,i.expected,i.argument)&&(r=!0,n=i.state)}})),!r&&e.error&&(n="failure"),"success"===n?t.setSuccess(e):t.setError(e,"retry"===n)}r.ResourceWaiter=n({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,i){try{var r=o.search(e.data,i)}catch(e){return!1}return o.strictDeepEqual(r,t)},pathAll:function(e,t,i){try{var r=o.search(e.data,i)}catch(e){return!1}Array.isArray(r)||(r=[r]);var n=r.length;if(!n)return!1;for(var s=0;s{var r=i(79614),n=r.util.inherit,o=i(44509);r.Response=n({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new r.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,i=this.request.service,n=this.request.operation;try{t=i.paginationConfig(n,!0)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=r.util.copy(this.request.params);if(this.nextPageTokens){var s=t.inputToken;"string"==typeof s&&(s=[s]);for(var a=0;a{var r=i(79614),n=r.util.string.byteLength,o=r.util.Buffer;r.S3.ManagedUpload=r.util.inherit({constructor:function(e){var t=this;r.SequentialExecutor.call(t),t.body=null,t.sliceFn=null,t.callback=null,t.parts={},t.completeInfo=[],t.fillQueue=function(){t.callback(new Error("Unsupported body payload "+typeof t.body))},t.configure(e)},configure:function(e){if(e=e||{},this.partSize=this.minPartSize,e.queueSize&&(this.queueSize=e.queueSize),e.partSize&&(this.partSize=e.partSize),e.leavePartsOnError&&(this.leavePartsOnError=!0),e.tags){if(!Array.isArray(e.tags))throw new Error("Tags must be specified as an array; "+typeof e.tags+" provided.");this.tags=e.tags}if(this.partSize=1&&t.doneParts===t.numParts&&t.finishMultiPart()})))}i&&t.fillQueue.call(t)},abort:function(){var e=this;!0===e.isDoneChunking&&1===e.totalPartNumbers&&e.singlePart?e.singlePart.abort():e.cleanup(r.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=r.util.buffer.toBuffer(e.body);else if(!e.body)throw new Error("params.Body is required");e.sliceFn=r.util.arraySliceFn(e.body)},bindServiceObject:function(e){e=e||{};var t=this;if(t.service){var i=t.service,n=r.util.copy(i.config);n.signatureVersion=i.getSignatureVersion(),t.service=new i.constructor.__super__(n),t.service.config.params=r.util.merge(t.service.config.params||{},e),Object.defineProperty(t.service,"_originalConfig",{get:function(){return i._originalConfig},enumerable:!1,configurable:!0})}else t.service=new r.S3({params:e})},adjustTotalBytes:function(){var e=this;try{e.totalBytes=n(e.body)}catch(e){}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=n(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 i=1===e.partBuffers.length?e.partBuffers[0]:o.concat(e.partBuffers);if(e.partBuffers=[],e.partBufferLength=0,i.length>e.partSize){var r=i.slice(e.partSize);e.partBuffers.push(r),e.partBufferLength+=r.length,i=i.slice(0,e.partSize)}e.nextChunk(i)}e.isDoneChunking&&!e.isDoneSending&&(i=1===e.partBuffers.length?e.partBuffers[0]:o.concat(e.partBuffers),e.partBuffers=[],e.partBufferLength=0,e.totalBytes=e.totalChunkedBytes,e.isDoneSending=!0,(0===e.numParts||i.length>0)&&(e.numParts++,e.nextChunk(i))),e.body.read(0)}},nextChunk:function(e){var t=this;if(t.failed)return null;var i=++t.totalPartNumbers;if(t.isDoneChunking&&1===i){var n={Body:e};this.tags&&(n.Tagging=this.getTaggingHeader());var o=t.service.putObject(n);return o._managedUpload=t,o.on("httpUploadProgress",t.progress).send(t.finishSinglePart),t.singlePart=o,null}if(t.service.config.params.ContentMD5){var s=r.util.error(new Error("The Content-MD5 you specified is invalid for multi-part uploads."),{code:"InvalidDigest",retryable:!1});return t.cleanup(s),null}if(t.completeInfo[i]&&null!==t.completeInfo[i].ETag)return null;t.activeParts++,t.service.config.params.UploadId?t.uploadPart(e,i):t.multipartReq?t.queueChunks(e,i):(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,i),t.multipartReq.on("error",(function(e){t.cleanup(e)})),t.multipartReq.send())},getTaggingHeader:function(){for(var e=[],t=0;t{var r=i(79614);r.SequentialExecutor=r.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,i){return this._events[e]?i?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,i){return t._isAsync=!0,this.on(e,t,i)},removeListener:function(e,t){var i=this._events[e];if(i){for(var r=i.length,n=-1,o=0;o-1&&i.splice(n,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,i){i||(i=function(){});var r=this.listeners(e),n=r.length;return this.callListeners(r,t,i),n>0},callListeners:function(e,t,i,n){var o=this,s=n||null;function a(n){if(n&&(s=r.util.error(s||new Error,n),o._haltHandlersOnError))return i.call(o,s);o.callListeners(e,t,i,s)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([a]));try{u.apply(o,t)}catch(e){s=r.util.error(s||new Error,e)}if(s&&o._haltHandlersOnError)return void i.call(o,s)}i.call(o,s)},addListeners:function(e){var t=this;return e._events&&(e=e._events),r.util.each(e,(function(e,i){"function"==typeof i&&(i=[i]),r.util.arrayEach(i,(function(i){t.on(e,i)}))})),t},addNamedListener:function(e,t,i,r){return this[e]=i,this.addListener(t,i,r),this},addNamedAsyncListener:function(e,t,i,r){return i._isAsync=!0,this.addNamedListener(e,t,i,r)},addNamedListeners:function(e){var t=this;return e((function(){t.addNamedListener.apply(t,arguments)}),(function(){t.addNamedAsyncListener.apply(t,arguments)})),this}}),r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on,e.exports=r.SequentialExecutor},20173:(e,t,i)=>{var r=i(79614),n=i(85863),o=i(41404),s=r.util.inherit,a=0,u=i(44040);r.Service=s({constructor:function(e){if(!this.loadServiceClass)throw r.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 i=this.loadServiceClass(e||{});if(i){var n=r.util.copy(e),o=new i(e);return Object.defineProperty(o,"_originalConfig",{get:function(){return n},enumerable:!1,configurable:!0}),o._clientId=++a,o}this.initialize(e)},initialize:function(e){var t=r.config[this.serviceIdentifier];if(this.config=new r.Config(r.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||o.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),r.SequentialExecutor.call(this),r.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||r.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",(function(e){process.nextTick((function(){i.eventHandler(e)}))})),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",(function(e){process.nextTick((function(){i.eventHandler(e)}))}))}},validateService:function(){},loadServiceClass:function(e){var t=e;if(r.util.isEmpty(this.api)){if(t.apiConfig)return r.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){(t=new r.Config(r.config)).update(e,!0);var i=t.apiVersions[this.constructor.serviceIdentifier];return i=i||t.apiVersion,this.getLatestServiceClass(i)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&r.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?r.util.isType(e,Date)&&(e=r.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(),i=null,n=t.length-1;n>=0;n--)if("*"!==t[n][t[n].length-1]&&(i=t[n]),t[n].substr(0,10)<=e)return i;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,i){if("function"==typeof t&&(i=t,t=null),t=t||{},this.config.params){var n=this.api.operations[e];n&&(t=r.util.copy(t),r.util.each(this.config.params,(function(e,i){n.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=i))})))}var o=new r.Request(this,e,t);return this.addAllRequestListeners(o),this.attachMonitoringEmitter(o),i&&o.send(i),o},makeUnauthenticatedRequest:function(e,t,i){"function"==typeof t&&(i=t,t={});var r=this.makeRequest(e,t).toUnauthenticated();return i?r.send(i):r},waitFor:function(e,t,i){return new r.ResourceWaiter(this,e).wait(t,i)},addAllRequestListeners:function(e){for(var t=[r.events,r.EventListeners.Core,this.serviceInterface(),r.EventListeners.CorePost],i=0;i299?(n.code&&(i.FinalAwsException=n.code),n.message&&(i.FinalAwsExceptionMessage=n.message)):((n.code||n.name)&&(i.FinalSdkException=n.code||n.name),n.message&&(i.FinalSdkExceptionMessage=n.message))}return i},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],i={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()},r=e.response;return r.httpResponse.statusCode&&(i.HttpStatusCode=r.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(i.AccessKey=e.service.config.credentials.accessKeyId),r.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(i.SessionToken=e.httpRequest.headers["x-amz-security-token"]),r.httpResponse.headers["x-amzn-requestid"]&&(i.XAmznRequestId=r.httpResponse.headers["x-amzn-requestid"]),r.httpResponse.headers["x-amz-request-id"]&&(i.XAmzRequestId=r.httpResponse.headers["x-amz-request-id"]),r.httpResponse.headers["x-amz-id-2"]&&(i.XAmzId2=r.httpResponse.headers["x-amz-id-2"]),i):i},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),i=e.response,r=i.error;return i.httpResponse.statusCode>299?(r.code&&(t.AwsException=r.code),r.message&&(t.AwsExceptionMessage=r.message)):((r.code||r.name)&&(t.SdkException=r.code||r.name),r.message&&(t.SdkExceptionMessage=r.message)),t},attachMonitoringEmitter:function(e){var t,i,n,o,s,a,u=0,c=this;e.on("validate",(function(){o=r.util.realClock.now(),a=Date.now()}),!0),e.on("sign",(function(){i=r.util.realClock.now(),t=Date.now(),s=e.httpRequest.region,u++}),!0),e.on("validateResponse",(function(){n=Math.round(r.util.realClock.now()-i)})),e.addNamedListener("API_CALL_ATTEMPT","success",(function(){var i=c.apiAttemptEvent(e);i.Timestamp=t,i.AttemptLatency=n>=0?n:0,i.Region=s,c.emit("apiCallAttempt",[i])})),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",(function(){var o=c.attemptFailEvent(e);o.Timestamp=t,n=n||Math.round(r.util.realClock.now()-i),o.AttemptLatency=n>=0?n:0,o.Region=s,c.emit("apiCallAttempt",[o])})),e.addNamedListener("API_CALL","complete",(function(){var t=c.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=a;var i=Math.round(r.util.realClock.now()-o);t.Latency=i>=0?i:0;var n=e.response;n.error&&n.error.retryable&&"number"==typeof n.retryCount&&"number"==typeof n.maxRetries&&n.retryCount>=n.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,i=null,n="";return e&&(n=(i=(e.service.api.operations||{})[e.operation]||null)?i.authtype:""),t=this.config.signatureVersion?this.config.signatureVersion:"v4"===n||"v4-unsigned-body"===n?"v4":"bearer"===n?"bearer":this.api.signatureVersion,r.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return r.EventListeners.Query;case"json":return r.EventListeners.Json;case"rest-json":return r.EventListeners.RestJson;case"rest-xml":return r.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 r.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.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 r.Endpoint(e,this.config)},paginationConfig:function(e,t){var i=this.api.operations[e].paginator;if(!i){if(t){var n=new Error;throw r.util.error(n,"No pagination configuration for "+e)}return null}return i}}),r.util.update(r.Service,{defineMethods:function(e){r.util.each(e.prototype.api.operations,(function(t){e.prototype[t]||("none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,i){return this.makeUnauthenticatedRequest(t,e,i)}:e.prototype[t]=function(e,i){return this.makeRequest(t,e,i)})}))},defineService:function(e,t,i){r.Service._serviceMap[e]=!0,Array.isArray(t)||(i=t,t=[]);var n=s(r.Service,i||{});if("string"==typeof e){r.Service.addVersions(n,t);var o=n.serviceIdentifier||e;n.serviceIdentifier=o}else n.prototype.api=e,r.Service.defineMethods(n);if(r.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&r.util.clientSideMonitoring){var a=r.util.clientSideMonitoring.Publisher,u=(0,r.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new a(u),u.enabled&&(r.Service._clientSideMonitoring=!0)}return r.SequentialExecutor.call(n.prototype),r.Service.addDefaultMonitoringListeners(n.prototype),n},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var i=0;i{var r=i(79614);r.util.update(r.APIGateway.prototype,{setAcceptHeader:function(e){var t=e.httpRequest;t.headers.Accept||(t.headers.Accept="application/json")},setupRequestListeners:function(e){e.addListener("build",this.setAcceptHeader),"getExport"===e.operation&&"swagger"===(e.params||{}).exportType&&e.addListener("extractData",r.util.convertPayloadToString)}})},67781:(e,t,i)=>{var r=i(79614);i(13372),r.util.update(r.CloudFront.prototype,{setupRequestListeners:function(e){e.addListener("extractData",r.util.hoistPayloadMember)}})},98637:(e,t,i)=>{var r=i(79614);i(8714),r.util.update(r.DynamoDB.prototype,{setupRequestListeners:function(e){e.service.config.dynamoDbCrc32&&(e.removeListener("extractData",r.EventListeners.Json.EXTRACT_DATA),e.addListener("extractData",this.checkCrc32),e.addListener("extractData",r.EventListeners.Json.EXTRACT_DATA))},checkCrc32:function(e){if(!e.httpResponse.streaming&&!e.request.service.crc32IsValid(e))throw e.data=null,e.error=r.util.error(new Error,{code:"CRC32CheckFailed",message:"CRC32 integrity check failed",retryable:!0}),e.request.haltHandlersOnError(),e.error},crc32IsValid:function(e){var t=e.httpResponse.headers["x-amz-crc32"];return!t||parseInt(t,10)===r.util.crypto.crc32(e.httpResponse.body)},defaultRetryCount:10,retryDelays:function(e,t){var i=r.util.copy(this.config.retryDelayOptions);return"number"!=typeof i.base&&(i.base=50),r.util.calculateRetryDelay(e,i,t)}})},56914:(e,t,i)=>{var r=i(79614);r.util.update(r.EC2.prototype,{setupRequestListeners:function(e){e.removeListener("extractError",r.EventListeners.Query.EXTRACT_ERROR),e.addListener("extractError",this.extractError),"copySnapshot"===e.operation&&e.onAsync("validate",this.buildCopySnapshotPresignedUrl)},buildCopySnapshotPresignedUrl:function(e,t){if(e.params.PresignedUrl||e._subRequest)return t();e.params=r.util.copy(e.params),e.params.DestinationRegion=e.service.config.region;var i=r.util.copy(e.service.config);delete i.endpoint,i.region=e.params.SourceRegion;var n=new e.service.constructor(i)[e.operation](e.params);n._subRequest=!0,n.presign((function(i,r){i?t(i):(e.params.PresignedUrl=r,t())}))},extractError:function(e){var t=e.httpResponse,i=(new r.XML.Parser).parse(t.body.toString()||"");i.Errors?e.error=r.util.error(new Error,{code:i.Errors.Error.Code,message:i.Errors.Error.Message}):e.error=r.util.error(new Error,{code:t.statusCode,message:null}),e.error.requestId=i.RequestID||null}})},16184:(e,t,i)=>{var r=i(79614),n=["deleteThingShadow","getThingShadow","updateThingShadow"];r.util.update(r.IotData.prototype,{validateService:function(){if(!this.config.endpoint||this.config.endpoint.indexOf("{")>=0)throw r.util.error(new Error,{name:"InvalidEndpoint",message:"AWS.IotData requires an explicit `endpoint' configuration option."})},setupRequestListeners:function(e){e.addListener("validateResponse",this.validateResponseBody),n.indexOf(e.operation)>-1&&e.addListener("extractData",r.util.convertPayloadToString)},validateResponseBody:function(e){var t=(e.httpResponse.body.toString()||"{}").trim();t&&"{"===t.charAt(0)||(e.httpResponse.body="")}})},29510:(e,t,i)=>{var r=i(79614);r.util.update(r.Lambda.prototype,{setupRequestListeners:function(e){"invoke"===e.operation&&e.addListener("extractData",r.util.convertPayloadToString)}})},73865:(e,t,i)=>{var r=i(79614);r.util.update(r.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 r.Endpoint(t))}})},96661:(e,t,i)=>{i(35409)},43550:(e,t,i)=>{var r=i(79614),n=i(56938);i(50903);var o=["copyDBSnapshot","createDBInstanceReadReplica","createDBCluster","copyDBClusterSnapshot","startDBInstanceAutomatedBackupsReplication"];r.util.update(r.RDS.prototype,{setupRequestListeners:function(e){n.setupRequestListeners(this,e,o)}})},56938:(e,t,i)=>{var r=i(79614),n={setupRequestListeners:function(e,t,i){if(-1!==i.indexOf(t.operation)&&t.params.SourceRegion)if(t.params=r.util.copy(t.params),t.params.PreSignedUrl||t.params.SourceRegion===e.config.region)delete t.params.SourceRegion;else{var o=!!e.config.paramValidation;o&&t.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS),t.onAsync("validate",n.buildCrossRegionPresignedUrl),o&&t.addListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS)}},buildCrossRegionPresignedUrl:function(e,t){var i=r.util.copy(e.service.config);i.region=e.params.SourceRegion,delete e.params.SourceRegion,delete i.endpoint,delete i.params,i.signatureVersion="v4";var n=e.service.config.region,o=new e.service.constructor(i)[e.operation](r.util.copy(e.params));o.on("build",(function(e){var t=e.httpRequest;t.params.DestinationRegion=n,t.body=r.util.queryParamsToString(t.params)})),o.presign((function(i,r){i?t(i):(e.params.PreSignedUrl=r,t())}))}};e.exports=n},56182:(e,t,i)=>{var r=i(79614);r.util.update(r.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||r.Service.prototype.retryableError.call(this,e)}})},3906:(e,t,i)=>{var r=i(79614),n=i(16914),o=i(65456),s=i(85133),a=i(41404);i(92149);var u={completeMultipartUpload:!0,copyObject:!0,uploadPartCopy:!0},c=["AuthorizationHeaderMalformed","BadRequest","PermanentRedirect",301];r.util.update(r.S3.prototype,{getSignatureVersion:function(e){var t=this.api.signatureVersion,i=this._originalConfig?this._originalConfig.signatureVersion:null,r=this.config.signatureVersion,n=!!e&&e.isPresigned();return i?i="v2"===i?"s3":i:(!0!==n?t="v4":r&&(t=r),t)},getSigningName:function(e){if(e&&"writeGetObjectResponse"===e.operation)return"s3-object-lambda";var t=r.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 r.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 r.util.error(new Error,{name:"InvalidEndpoint",message:e})},shouldDisableBodySigning:function(e){var t=this.getSignerClass();return!0===this.config.s3DisableBodySigning&&t===r.Signers.V4&&"https:"===e.httpRequest.endpoint.protocol},setupRequestListeners:function(e){if(e.addListener("validate",this.validateScheme),e.addListener("validate",this.validateBucketName,!0),e.addListener("validate",this.optInUsEast1RegionalEndpoint,!0),e.removeListener("validate",r.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",r.util.hoistPayloadMember),e.addListener("extractData",this.extractData),e.addListener("extractData",this.extractErrorFrom200Response),e.addListener("beforePresign",this.prepareSignedUrl),this.shouldDisableBodySigning(e)&&(e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256),e.addListener("afterBuild",this.disableBodySigning)),"createBucket"!==e.operation&&s.isArnInParam(e,"Bucket"))return e._parsedArn=r.util.ARN.parse(e.params.Bucket),e.removeListener("validate",this.validateBucketName),e.removeListener("build",this.populateURI),"s3"===e._parsedArn.service?(e.addListener("validate",s.validateS3AccessPointArn),e.addListener("validate",this.validateArnResourceType),e.addListener("validate",this.validateArnRegion)):"s3-outposts"===e._parsedArn.service&&(e.addListener("validate",s.validateOutpostsAccessPointArn),e.addListener("validate",s.validateOutpostsArn),e.addListener("validate",s.validateArnRegion)),e.addListener("validate",s.validateArnAccount),e.addListener("validate",s.validateArnService),e.addListener("build",this.populateUriFromAccessPointArn),void e.addListener("build",s.validatePopulateUriFromArn);e.addListener("validate",this.validateBucketEndpoint),e.addListener("validate",this.correctBucketRegionFromCache),e.onAsync("extractError",this.requestBucketRegion),r.util.isBrowser()&&e.onAsync("retry",this.reqRegionForNetworkingError)},validateScheme:function(e){var t=e.params,i=e.httpRequest.endpoint.protocol;if((t.SSECustomerKey||t.CopySourceSSECustomerKey)&&"https:"!==i)throw r.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 r.util.error(new Error,{code:"ConfigError",message:"Cannot send requests to root API with `s3BucketEndpoint` set."})},validateArnRegion:function(e){s.validateArnRegion(e,{allowFipsEndpoint:!0})},validateArnResourceType:function(e){var t=e._parsedArn.resource;if(0!==t.indexOf("accesspoint:")&&0!==t.indexOf("accesspoint/"))throw r.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'accesspoint/'"})},validateBucketName:function(e){var t=e.service.getSignatureVersion(e),i=e.params&&e.params.Bucket,n=e.params&&e.params.Key,o=i&&i.indexOf("/");if(i&&o>=0)if("string"==typeof n&&o>0){e.params=r.util.copy(e.params);var s=i.substr(o+1)||"";e.params.Key=s+"/"+n,e.params.Bucket=i.substr(0,o)}else if("v4"===t){var a="Bucket names cannot contain forward slashes. Bucket: "+i;throw r.util.error(new Error,{code:"InvalidBucket",message:a})}},isValidAccelerateOperation:function(e){return-1===["createBucket","deleteBucket","listBuckets"].indexOf(e)},optInUsEast1RegionalEndpoint:function(e){var t=e.service,i=t.config;if(i.s3UsEast1RegionalEndpoint=o(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"===i.s3UsEast1RegionalEndpoint&&e.httpRequest.endpoint.hostname.indexOf("s3.amazonaws.com")>=0){var r=i.endpoint.indexOf(".amazonaws.com");regionalEndpoint=i.endpoint.substring(0,r)+".us-east-1"+i.endpoint.substring(r),e.httpRequest.updateEndpoint(regionalEndpoint)}},populateURI:function(e){var t=e.httpRequest,i=e.params.Bucket,r=e.service,n=t.endpoint;if(i&&!r.pathStyleBucketName(i)){r.config.useAccelerateEndpoint&&r.isValidAccelerateOperation(e.operation)?r.config.useDualstackEndpoint?n.hostname=i+".s3-accelerate.dualstack.amazonaws.com":n.hostname=i+".s3-accelerate.amazonaws.com":r.config.s3BucketEndpoint||(n.hostname=i+"."+n.hostname);var o=n.port;n.host=80!==o&&443!==o?n.hostname+":"+n.port:n.hostname,t.virtualHostedBucket=i,r.removeVirtualHostedBucketFromPath(e)}},removeVirtualHostedBucketFromPath:function(e){var t=e.httpRequest,i=t.virtualHostedBucket;if(i&&t.path){if(e.params&&e.params.Key){var n="/"+r.util.uriEscapePath(e.params.Key);if(0===t.path.indexOf(n)&&(t.path.length===n.length||"?"===t.path[n.length]))return}t.path=t.path.replace(new RegExp("/"+i),""),"/"!==t.path[0]&&(t.path="/"+t.path)}},populateUriFromAccessPointArn:function(e){var t=e._parsedArn,i="s3-outposts"===t.service,n="s3-object-lambda"===t.service,o=i?"."+t.outpostId:"",s=i?"s3-outposts":"s3-accesspoint",u=!i&&e.service.config.useFipsEndpoint?"-fips":"",c=!i&&e.service.config.useDualstackEndpoint?".dualstack":"",l=e.httpRequest.endpoint,d=a.getEndpointSuffix(t.region),p=e.service.config.s3UseArnRegion;if(l.hostname=[t.accessPoint+"-"+t.accountId+o,s+u+c,p?t.region:e.service.config.region,d].join("."),n){s="s3-object-lambda";var m=t.resource.split("/")[1];u=e.service.config.useFipsEndpoint?"-fips":"",l.hostname=[m+"-"+t.accountId,s+u,p?t.region:e.service.config.region,d].join(".")}l.host=l.hostname;var h=r.util.uriEscape(e.params.Bucket),g=e.httpRequest.path;e.httpRequest.path=g.replace(new RegExp("/"+h),""),"/"!==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"];r.util.isNode()&&(t>=1048576||e.params.Body instanceof r.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 i=t.headers["Content-Type"];r.util.isBrowser()&&("string"!=typeof t.body||i.match(/;\s*charset=/)?t.headers["Content-Type"]=i.replace(/(;\s*charset=)(.+)$/,(function(e,t,i){return t+i.toUpperCase()})):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,i=e.httpRequest.body,n=e.service.config.computeChecksums&&t.ContentMD5&&!e.params.ContentMD5&&i&&(r.util.Buffer.isBuffer(e.httpRequest.body)||"string"==typeof e.httpRequest.body);return!(!n||!e.service.shouldDisableBodySigning(e)||e.isPresigned())||!(!n||"s3"!==this.getSignatureVersion(e)||!e.isPresigned())},computeContentMd5:function(e){if(e.service.willComputeChecksums(e)){var t=r.util.crypto.md5(e.httpRequest.body,"base64");e.httpRequest.headers["Content-MD5"]=t}},computeSseCustomerKeyMd5:function(e){r.util.each({SSECustomerKey:"x-amz-server-side-encryption-customer-key-MD5",CopySourceSSECustomerKey:"x-amz-copy-source-server-side-encryption-customer-key-MD5"},(function(t,i){if(e.params[t]){var n=r.util.crypto.md5(e.params[t],"base64");e.httpRequest.headers[i]=n}}))},pathStyleBucketName:function(e){return!(!this.config.s3ForcePathStyle&&(this.config.s3BucketEndpoint||s.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,r.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):r.Service.prototype.retryableError.call(this,e,t)))},updateReqBucketRegion:function(e,t){var i=e.httpRequest;if("string"==typeof t&&t.length&&(i.region=t),i.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)){var n=e.service,o=n.config,s=o.s3BucketEndpoint;s&&delete o.s3BucketEndpoint;var a=r.util.copy(o);delete a.endpoint,a.region=i.region,i.endpoint=new r.S3(a).endpoint,n.populateURI(e),o.s3BucketEndpoint=s,i.headers.Host=i.endpoint.host,"validate"===e._asm.currentState&&(e.removeListener("build",n.populateURI),e.addListener("build",n.removeVirtualHostedBucketFromPath))}},extractData:function(e){var t=e.request;if("getBucketLocation"===t.operation){var i=e.httpResponse.body.toString().match(/>(.+)<\/Location/);delete e.data._,e.data.LocationConstraint=i?i[1]:""}var r=t.params.Bucket||null;if("deleteBucket"!==t.operation||"string"!=typeof r||e.error){var n=(e.httpResponse.headers||{})["x-amz-bucket-region"]||null;if(!n&&"createBucket"===t.operation&&!e.error){var o=t.params.CreateBucketConfiguration;n=o?"EU"===o.LocationConstraint?"eu-west-1":o.LocationConstraint:"us-east-1"}n&&r&&n!==t.service.bucketRegionCache[r]&&(t.service.bucketRegionCache[r]=n)}else t.service.clearBucketRegionCache(r);t.service.extractRequestIds(e)},extractError:function(e){var t,i={304:"NotModified",403:"Forbidden",400:"BadRequest",404:"NotFound"},n=e.request,o=e.httpResponse.statusCode,s=e.httpResponse.body||"",a=(e.httpResponse.headers||{})["x-amz-bucket-region"]||null,u=n.params.Bucket||null,c=n.service.bucketRegionCache;if(a&&u&&a!==c[u]&&(c[u]=a),i[o]&&0===s.length)u&&!a&&(t=c[u]||null)!==n.httpRequest.region&&(a=t),e.error=r.util.error(new Error,{code:i[o],message:null,region:a});else{var l=(new r.XML.Parser).parse(s.toString());l.Region&&!a?(a=l.Region,u&&a!==c[u]&&(c[u]=a)):!u||a||l.Region||(t=c[u]||null)!==n.httpRequest.region&&(a=t),e.error=r.util.error(new Error,{code:l.Code||o,message:l.Message||null,region:a})}n.service.extractRequestIds(e)},requestBucketRegion:function(e,t){var i=e.error,n=e.request,o=n.params.Bucket||null;if(!i||!o||i.region||"listObjects"===n.operation||r.util.isNode()&&"headBucket"===n.operation||400===i.statusCode&&"headObject"!==n.operation||-1===c.indexOf(i.code))return t();var s=r.util.isNode()?"headBucket":"listObjects",a={Bucket:o};"listObjects"===s&&(a.MaxKeys=0);var u=n.service[s](a);u._requestRegionForBucket=o,u.send((function(){var e=n.service.bucketRegionCache[o]||null;i.region=e,t()}))},reqRegionForNetworkingError:function(e,t){if(!r.util.isBrowser())return t();var i=e.error,n=e.request,o=n.params.Bucket;if(!i||"NetworkingError"!==i.code||!o||"us-east-1"===n.httpRequest.region)return t();var a=n.service,u=a.bucketRegionCache,c=u[o]||null;if(c&&c!==n.httpRequest.region)a.updateReqBucketRegion(n,c),t();else if(s.dnsCompatibleBucketName(o))if(n.httpRequest.virtualHostedBucket){var l=a.listObjects({Bucket:o,MaxKeys:0});a.updateReqBucketRegion(l,"us-east-1"),l._requestRegionForBucket=o,l.send((function(){var e=a.bucketRegionCache[o]||null;e&&e!==n.httpRequest.region&&a.updateReqBucketRegion(n,e),t()}))}else t();else a.updateReqBucketRegion(n,"us-east-1"),"us-east-1"!==u[o]&&(u[o]="us-east-1"),t()},bucketRegionCache:{},clearBucketRegionCache:function(e){var t=this.bucketRegionCache;e?"string"==typeof e&&(e=[e]):e=Object.keys(t);for(var i=0;i{var r=i(79614),n=i(41404),o={isArnInParam:function(e,t){var i=((e.service.api.operations[e.operation]||{}).input||{}).members||{};return!(!e.params[t]||!i[t])&&r.util.ARN.validate(e.params[t])},validateArnService:function(e){var t=e._parsedArn;if("s3"!==t.service&&"s3-outposts"!==t.service&&"s3-object-lambda"!==t.service)throw r.util.error(new Error,{code:"InvalidARN",message:"expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component"})},validateArnAccount:function(e){var t=e._parsedArn;if(!/[0-9]{12}/.exec(t.accountId))throw r.util.error(new Error,{code:"InvalidARN",message:'ARN accountID does not match regex "[0-9]{12}"'})},validateS3AccessPointArn:function(e){var t=e._parsedArn,i=t.resource["accesspoint".length];if(2!==t.resource.split(i).length)throw r.util.error(new Error,{code:"InvalidARN",message:"Access Point ARN should have one resource accesspoint/{accesspointName}"});var n=t.resource.split(i)[1],s=n+"-"+t.accountId;if(!o.dnsCompatibleBucketName(s)||s.match(/\./))throw r.util.error(new Error,{code:"InvalidARN",message:"Access point resource in ARN is not DNS compatible. Got "+n});e._parsedArn.accessPoint=n},validateOutpostsArn:function(e){var t=e._parsedArn;if(0!==t.resource.indexOf("outpost:")&&0!==t.resource.indexOf("outpost/"))throw r.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'outpost/'"});var i=t.resource["outpost".length],n=t.resource.split(i)[1];if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw r.util.error(new Error,{code:"InvalidARN",message:"Outpost resource in ARN is not DNS compatible. Got "+n});e._parsedArn.outpostId=n},validateOutpostsAccessPointArn:function(e){var t=e._parsedArn,i=t.resource["outpost".length];if(4!==t.resource.split(i).length)throw r.util.error(new Error,{code:"InvalidARN",message:"Outposts ARN should have two resources outpost/{outpostId}/accesspoint/{accesspointName}"});var n=t.resource.split(i)[3],s=n+"-"+t.accountId;if(!o.dnsCompatibleBucketName(s)||s.match(/\./))throw r.util.error(new Error,{code:"InvalidARN",message:"Access point resource in ARN is not DNS compatible. Got "+n});e._parsedArn.accessPoint=n},validateArnRegion:function(e,t){void 0===t&&(t={});var i=o.loadUseArnRegionConfig(e),s=e._parsedArn.region,a=e.service.config.region,u=e.service.config.useFipsEndpoint,c=t.allowFipsEndpoint||!1;if(!s){var l="ARN region is empty";throw"s3"===e._parsedArn.service&&(l+="\nYou may want to use multi-regional ARN. The feature is not supported in current SDK. You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3)."),r.util.error(new Error,{code:"InvalidARN",message:l})}if(u&&!c)throw r.util.error(new Error,{code:"InvalidConfiguration",message:"ARN endpoint is not compatible with FIPS region"});if(s.indexOf("fips")>=0)throw r.util.error(new Error,{code:"InvalidConfiguration",message:"FIPS region not allowed in ARN"});if(!i&&s!==a)throw r.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region conflicts with access point region"});if(i&&n.getEndpointSuffix(s)!==n.getEndpointSuffix(a))throw r.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region and access point region not in same partition"});if(e.service.config.useAccelerateEndpoint)throw r.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 r.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",i="s3_use_arn_region",n=!0,o=e.service._originalConfig||{};if(void 0!==e.service.config.s3UseArnRegion)return e.service.config.s3UseArnRegion;if(void 0!==o.s3UseArnRegion)n=!0===o.s3UseArnRegion;else if(r.util.isNode())if(process.env[t]){var s=process.env[t].trim().toLowerCase();if(["false","true"].indexOf(s)<0)throw r.util.error(new Error,{code:"InvalidConfiguration",message:t+" only accepts true or false. Got "+process.env[t],retryable:!1});n="true"===s}else{var a={};try{a=r.util.getProfilesFromSharedConfig(r.util.iniLoader)[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}if(a[i]){if(["false","true"].indexOf(a[i].trim().toLowerCase())<0)throw r.util.error(new Error,{code:"InvalidConfiguration",message:i+" only accepts true or false. Got "+a[i],retryable:!1});n="true"===a[i].trim().toLowerCase()}}return e.service.config.s3UseArnRegion=n,n},validatePopulateUriFromArn:function(e){if(e.service._originalConfig&&e.service._originalConfig.endpoint)throw r.util.error(new Error,{code:"InvalidConfiguration",message:"Custom endpoint is not compatible with access point ARN"});if(e.service.config.s3ForcePathStyle)throw r.util.error(new Error,{code:"InvalidConfiguration",message:"Cannot construct path-style endpoint with access point"})},dnsCompatibleBucketName:function(e){var t=e,i=new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/),r=new RegExp(/(\d+\.){3}\d+/),n=new RegExp(/\.\./);return!(!t.match(i)||t.match(r)||t.match(n))}};e.exports=o},22666:(e,t,i)=>{var r=i(79614);r.util.update(r.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,i=this.params.MessageBody,r=this.service.calculateChecksum(i);if(r!==t){var n='Got "'+e.data.MD5OfMessageBody+'", expecting "'+r+'".';this.service.throwInvalidChecksumError(e,[e.data.MessageId],n)}}},verifySendMessageBatchChecksum:function(e){if(e.data){var t=this.service,i={},n=[],o=[];r.util.arrayEach(e.data.Successful,(function(e){i[e.Id]=e})),r.util.arrayEach(this.params.Entries,(function(e){if(i[e.Id]){var r=i[e.Id].MD5OfMessageBody,s=e.MessageBody;t.isChecksumValid(r,s)||(n.push(e.Id),o.push(i[e.Id].MessageId))}})),n.length>0&&t.throwInvalidChecksumError(e,o,"Invalid messages: "+n.join(", "))}},verifyReceiveMessageChecksum:function(e){if(e.data){var t=this.service,i=[];r.util.arrayEach(e.data.Messages,(function(e){var r=e.MD5OfBody,n=e.Body;t.isChecksumValid(r,n)||i.push(e.MessageId)})),i.length>0&&t.throwInvalidChecksumError(e,i,"Invalid messages: "+i.join(", "))}},throwInvalidChecksumError:function(e,t,i){e.error=r.util.error(new Error,{retryable:!0,code:"InvalidChecksum",messageIds:t,message:e.request.operation+" returned an invalid MD5 response. "+i})},isChecksumValid:function(e,t){return this.calculateChecksum(t)===e},calculateChecksum:function(e){return r.util.crypto.md5(e,"hex")},buildEndpoint:function(e){var t=e.httpRequest.params.QueueUrl;if(t){e.httpRequest.endpoint=new r.Endpoint(t);var i=e.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./);i&&(e.httpRequest.region=i[1])}}})},44456:(e,t,i)=>{var r=i(79614),n=i(65456);r.util.update(r.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new r.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,i=t.config;if(i.stsRegionalEndpoints=n(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===i.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!i.region)throw r.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var o=i.endpoint.indexOf(".amazonaws.com"),s=i.endpoint.substring(0,o)+"."+i.region+i.endpoint.substring(o);e.httpRequest.updateEndpoint(s),e.httpRequest.region=i.region}}})},64114:(e,t,i)=>{var r=i(79614);r.Signers.Bearer=r.util.inherit(r.Signers.RequestSigner,{constructor:function(e){r.Signers.RequestSigner.call(this,e)},addAuthorization:function(e){this.request.httpRequest.headers.Authorization="Bearer "+e.token}})},79688:(e,t,i)=>{var r=i(79614),n=r.util.inherit,o="presigned-expires";function s(e){var t=e.httpRequest.headers[o],i=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],i===r.Signers.V4){if(t>604800)throw r.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[o]=t}else{if(i!==r.Signers.S3)throw r.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var n=e.service?e.service.getSkewCorrectedDate():r.util.date.getDate();e.httpRequest.headers[o]=parseInt(r.util.date.unixTimestamp(n)+t,10).toString()}}function a(e){var t=e.httpRequest.endpoint,i=r.util.urlParse(e.httpRequest.path),n={};i.search&&(n=r.util.queryStringParse(i.search.substr(1)));var s=e.httpRequest.headers.Authorization.split(" ");if("AWS"===s[0])s=s[1].split(":"),n.Signature=s.pop(),n.AWSAccessKeyId=s.join(":"),r.util.each(e.httpRequest.headers,(function(e,t){e===o&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete n[e],e=e.toLowerCase()),n[e]=t})),delete e.httpRequest.headers[o],delete n.Authorization,delete n.Host;else if("AWS4-HMAC-SHA256"===s[0]){s.shift();var a=s.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=a,delete n.Expires}t.pathname=i.pathname,t.search=r.util.queryParamsToString(n)}r.Signers.Presign=n({sign:function(e,t,i){if(e.httpRequest.headers[o]=t||3600,e.on("build",s),e.on("sign",a),e.removeListener("afterBuild",r.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!i){if(e.build(),e.response.error)throw e.response.error;return r.util.urlFormat(e.httpRequest.endpoint)}e.build((function(){this.response.error?i(this.response.error):i(null,r.util.urlFormat(e.httpRequest.endpoint))}))}}),e.exports=r.Signers.Presign},92604:(e,t,i)=>{var r=i(79614),n=r.util.inherit;r.Signers.RequestSigner=n({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),r.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return r.Signers.V2;case"v3":return r.Signers.V3;case"s3v4":case"v4":return r.Signers.V4;case"s3":return r.Signers.S3;case"v3https":return r.Signers.V3Https;case"bearer":return r.Signers.Bearer}throw new Error("Unknown signing version "+e)},i(97194),i(56342),i(50416),i(77203),i(51190),i(79688),i(64114)},51190:(e,t,i)=>{var r=i(79614),n=r.util.inherit;r.Signers.S3=n(r.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"]=r.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var i=this.sign(e.secretAccessKey,this.stringToSign()),n="AWS "+e.accessKeyId+":"+i;this.request.headers.Authorization=n},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 i=this.canonicalizedAmzHeaders();return i&&t.push(i),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];r.util.each(this.request.headers,(function(t){t.match(/^x-amz-/i)&&e.push(t)})),e.sort((function(e,t){return e.toLowerCase(){var r=i(79614),n=r.util.inherit;r.Signers.V2=n(r.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=r.util.date.getDate());var i=this.request;i.params.Timestamp=r.util.date.iso8601(t),i.params.SignatureVersion="2",i.params.SignatureMethod="HmacSHA256",i.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(i.params.SecurityToken=e.sessionToken),delete i.params.Signature,i.params.Signature=this.signature(e),i.body=r.util.queryParamsToString(i.params),i.headers["Content-Length"]=i.body.length},signature:function(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(r.util.queryParamsToString(this.request.params)),e.join("\n")}}),e.exports=r.Signers.V2},56342:(e,t,i)=>{var r=i(79614),n=r.util.inherit;r.Signers.V3=n(r.Signers.RequestSigner,{addAuthorization:function(e,t){var i=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=i,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,i)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return r.util.arrayEach(this.headersToSign(),(function(t){e.push(t.toLowerCase())})),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return r.util.arrayEach(this.headersToSign(),(function(i){t.push(i.toLowerCase().trim()+":"+String(e[i]).trim())})),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return r.util.each(this.request.headers,(function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)})),e},signature:function(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),r.util.crypto.sha256(e.join("\n"))}}),e.exports=r.Signers.V3},50416:(e,t,i)=>{var r=i(79614),n=r.util.inherit;i(56342),r.Signers.V3Https=n(r.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),e.exports=r.Signers.V3Https},77203:(e,t,i)=>{var r=i(79614),n=i(16914),o=r.util.inherit,s="presigned-expires";r.Signers.V4=o(r.Signers.RequestSigner,{constructor:function(e,t,i){r.Signers.RequestSigner.call(this,e),this.serviceName=t,i=i||{},this.signatureCache="boolean"!=typeof i.signatureCache||i.signatureCache,this.operation=i.operation,this.signatureVersion=i.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var i=r.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,i):this.addHeaders(e,i),this.request.headers.Authorization=this.authorization(e,i)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var i=this.credentialString(t),n={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+i,"X-Amz-Expires":this.request.headers[s],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(n["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(n["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(n["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(n["Cache-Control"]=this.request.headers["Cache-Control"]),r.util.each.call(this,this.request.headers,(function(e,t){if(e!==s&&this.isSignableHeader(e)){var i=e.toLowerCase();0===i.indexOf("x-amz-meta-")?n[i]=t:0===i.indexOf("x-amz-")&&(n[e]=t)}}));var o=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=o+r.util.queryParamsToString(n)},authorization:function(e,t){var i=[],r=this.credentialString(t);return i.push(this.algorithm+" Credential="+e.accessKeyId+"/"+r),i.push("SignedHeaders="+this.signedHeaders()),i.push("Signature="+this.signature(e,t)),i.join(", ")},signature:function(e,t){var i=n.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return r.util.crypto.hmac(i,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=r.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=[];r.util.each.call(this,this.request.headers,(function(t,i){e.push([t,i])})),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",s,"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[s]}}),e.exports=r.Signers.V4},16914:(e,t,i)=>{var r=i(79614),n={},o=[],s="aws4_request";e.exports={createScope:function(e,t,i){return[e.substr(0,8),t,i,s].join("/")},getSigningKey:function(e,t,i,a,u){var c=[r.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,i,a].join("_");if((u=!1!==u)&&c in n)return n[c];var l=r.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),d=r.util.crypto.hmac(l,i,"buffer"),p=r.util.crypto.hmac(d,a,"buffer"),m=r.util.crypto.hmac(p,s,"buffer");return u&&(n[c]=m,o.push(c),o.length>50&&delete n[o.shift()]),m},emptyCache:function(){n={},o=[]}}},91793:e=>{function t(e,t){this.currentState=t||null,this.states=e||{}}t.prototype.runTo=function(e,t,i,r){"function"==typeof e&&(r=i,i=t,t=e,e=null);var n=this,o=n.states[n.currentState];o.fn.call(i||n,r,(function(r){if(r){if(!o.fail)return t?t.call(i,r):null;n.currentState=o.fail}else{if(!o.accept)return t?t.call(i):null;n.currentState=o.accept}if(n.currentState===e)return t?t.call(i,r):null;n.runTo(e,t,i,r)}))},t.prototype.addState=function(e,t,i,r){return"function"==typeof t?(r=t,t=null,i=null):"function"==typeof i&&(r=i,i=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:i,fn:r},this},e.exports=t},62662:(e,t,i)=>{var r,n={environment:"nodejs",engine:function(){if(n.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=n.environment,t="aws-sdk-"+e+"/"+i(79614).VERSION;return"nodejs"===e&&(t+=" "+n.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return(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 n.arrayEach(e.split("/"),(function(e){t.push(n.uriEscape(e))})),t.join("/")},urlParse:function(e){return n.url.parse(e)},urlFormat:function(e){return n.url.format(e)},queryStringParse:function(e){return n.querystring.parse(e)},queryParamsToString:function(e){var t=[],i=n.uriEscape,r=Object.keys(e).sort();return n.arrayEach(r,(function(r){var o=e[r],s=i(r),a=s+"=";if(Array.isArray(o)){var u=[];n.arrayEach(o,(function(e){u.push(i(e))})),a=s+"="+u.sort().join("&"+s+"=")}else null!=o&&(a=s+"="+i(o));t.push(a)})),t.join("&")},readFileSync:function(e){return n.isBrowser()?null:i(28022).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw n.error(new Error("Cannot base64 encode number "+e));return null==e?e:n.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw n.error(new Error("Cannot base64 decode number "+e));return null==e?e:n.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof n.Buffer.from&&n.Buffer.from!==Uint8Array.from?n.Buffer.from(e,t):new n.Buffer(e,t)},alloc:function(e,t,i){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof n.Buffer.alloc)return n.Buffer.alloc(e,t,i);var r=new n.Buffer(e);return void 0!==t&&"function"==typeof r.fill&&r.fill(t,void 0,void 0,i),r},toStream:function(e){n.Buffer.isBuffer(e)||(e=n.buffer.toBuffer(e));var t=new n.stream.Readable,i=0;return t._read=function(r){if(i>=e.length)return t.push(null);var n=i+r;n>e.length&&(n=e.length),t.push(e.slice(i,n)),i=n},t},concat:function(e){var t,i,r=0,o=0;for(i=0;i>>8^t[255&(i^e.readUInt8(r))];return(-1^i)>>>0},hmac:function(e,t,i,r){return i||(i="binary"),"buffer"===i&&(i=void 0),r||(r="sha256"),"string"==typeof t&&(t=n.buffer.toBuffer(t)),n.crypto.lib.createHmac(r,e).update(t).digest(i)},md5:function(e,t,i){return n.crypto.hash("md5",e,t,i)},sha256:function(e,t,i){return n.crypto.hash("sha256",e,t,i)},hash:function(e,t,i,r){var o=n.crypto.createHash(e);i||(i="binary"),"buffer"===i&&(i=void 0),"string"==typeof t&&(t=n.buffer.toBuffer(t));var s=n.arraySliceFn(t),a=n.Buffer.isBuffer(t);if(n.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(a=!0),r&&"object"==typeof t&&"function"==typeof t.on&&!a)t.on("data",(function(e){o.update(e)})),t.on("error",(function(e){r(e)})),t.on("end",(function(){r(null,o.digest(i))}));else{if(!r||!s||a||"undefined"==typeof FileReader){n.isBrowser()&&"object"==typeof t&&!a&&(t=new n.Buffer(new Uint8Array(t)));var u=o.update(t).digest(i);return r&&r(null,u),u}var c=0,l=new FileReader;l.onerror=function(){r(new Error("Failed to read data."))},l.onload=function(){var e=new n.Buffer(new Uint8Array(l.result));o.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)r(null,o.digest(i));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(s.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],i=0;i=3e5,!1),r.config.isClockSkewed},applyClockOffset:function(e){e&&(r.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 i=!1;void 0===t&&r&&r.config&&(t=r.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(i=!0),Array.isArray(e)||(e=[e]);for(var n=0;n=0)return a++,void setTimeout(c,o+(e.retryAfter||0))}i(e)},c=function(){var t="";o.handleRequest(e,s,(function(e){e.on("data",(function(e){t+=e.toString()})),e.on("end",(function(){var r=e.statusCode;if(r<300)i(null,t);else{var o=1e3*parseInt(e.headers["retry-after"],10)||0,s=n.error(new Error,{statusCode:r,retryable:r>=500||429===r});o&&s.retryable&&(s.retryAfter=o),u(s)}}))}),u)};r.util.defer(c)},uuid:{v4:function(){return i(17593).v4()}},convertPayloadToString:function(e){var t=e.request,i=t.operation,r=t.service.api.operations[i].output||{};r.payload&&e.data[r.payload]&&(e.data[r.payload]=e.data[r.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 i=(t||{})[e.operation];if(i&&i.input&&i.input.payload)return i.input.members[i.input.payload]}},getProfilesFromSharedConfig:function(e,t){var i={},r={};process.env[n.configOptInEnv]&&(r=e.loadFrom({isConfig:!0,filename:process.env[n.sharedConfigFileEnv]}));var o={};try{o=e.loadFrom({filename:t||process.env[n.configOptInEnv]&&process.env[n.sharedCredentialsFileEnv]})}catch(e){if(!process.env[n.configOptInEnv])throw e}for(var s=0,a=Object.keys(r);s=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 n.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=n},35106:(e,t,i)=>{var r=i(62662),n=i(68136);function o(){}function s(e,t){for(var i=e.getElementsByTagName(t),r=0,n=i.length;r{var r=i(62662),n=i(8700).XmlNode,o=i(25009).XmlText;function s(){}function a(e,t,i){switch(i.type){case"structure":return function(e,t,i){r.arrayEach(i.memberNames,(function(r){var o=i.members[r];if("body"===o.location){var s=t[r],c=o.name;if(null!=s)if(o.isXmlAttribute)e.addAttribute(c,s);else if(o.flattened)a(e,s,o);else{var l=new n(c);e.addChildNode(l),u(l,o),a(l,s,o)}}}))}(e,t,i);case"map":return function(e,t,i){var o=i.key.name||"key",s=i.value.name||"value";r.each(t,(function(t,r){var u=new n(i.flattened?i.name:"entry");e.addChildNode(u);var c=new n(o),l=new n(s);u.addChildNode(c),u.addChildNode(l),a(c,t,i.key),a(l,r,i.value)}))}(e,t,i);case"list":return function(e,t,i){i.flattened?r.arrayEach(t,(function(t){var r=i.member.name||i.name,o=new n(r);e.addChildNode(o),a(o,t,i.member)})):r.arrayEach(t,(function(t){var r=i.member.name||"member",o=new n(r);e.addChildNode(o),a(o,t,i.member)}))}(e,t,i);default:return function(e,t,i){e.addChildNode(new o(i.toWireFormat(t)))}(e,t,i)}}function u(e,t,i){var r,n="xmlns";t.xmlNamespaceUri?(r=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(n+=":"+t.xmlNamespacePrefix)):i&&t.api.xmlNamespaceUri&&(r=t.api.xmlNamespaceUri),r&&e.addAttribute(n,r)}s.prototype.toXML=function(e,t,i,r){var o=new n(i);return u(o,t,!0),a(o,e,t),o.children.length>0||r?o.toString():""},e.exports=s},95373:e=>{e.exports={escapeAttribute:function(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}}},55077:e=>{e.exports={escapeElement:function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},8700:(e,t,i)=>{var r=i(95373).escapeAttribute;function n(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}n.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},n.prototype.addChildNode=function(e){return this.children.push(e),this},n.prototype.removeAttribute=function(e){return delete this.attributes[e],this},n.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,i=this.attributes,n=0,o=Object.keys(i);n"+this.children.map((function(e){return e.toString()})).join("")+"":"/>")},e.exports={XmlNode:n}},25009:(e,t,i)=>{var r=i(55077).escapeElement;function n(e){this.value=e}n.prototype.toString=function(){return r(""+this.value)},e.exports={XmlText:n}},33498:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function n(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,o,s,a,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n(o=this._events[e]))return!1;if(i(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),o.apply(this,a)}else if(r(o))for(a=Array.prototype.slice.call(arguments,1),s=(c=o.slice()).length,u=0;u0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},t.prototype.removeListener=function(e,t){var n,o,s,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(n=this._events[e]).length,o=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(n)){for(a=s;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){o=a;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},85101:(e,t,i)=>{"use strict";var r=i(29697),n=function(){function e(e){void 0===e&&(e=1e3),this.maxSize=e,this.cache=new r.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,i){var r="string"!=typeof t?e.getKeyString(t):t,n=this.populateValue(i);this.cache.put(r,n)},e.prototype.get=function(t){var i="string"!=typeof t?e.getKeyString(t):t,r=Date.now(),n=this.cache.get(i);if(n){for(var o=n.length-1;o>=0;o--)n[o].Expire{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){this.key=e,this.value=t},r=function(){function e(e){if(this.nodeMap={},this.size=0,"number"!=typeof e||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,t=e.prev;return t&&(t.next=void 0),e.prev=void 0,this.tailNode=t,this.size--,e}},e.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},e.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];return this.detachFromList(t),this.prependToList(t),t.value}},e.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t),delete this.nodeMap[e]}},e.prototype.put=function(e,t){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var r=this.removeFromTail().key;delete this.nodeMap[r]}var n=new i(e,t);this.nodeMap[e]=n,this.prependToList(n)},e.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),t=0;t{e.exports={default:i(47185),__esModule:!0}},52945:(e,t,i)=>{e.exports={default:i(56981),__esModule:!0}},85861:(e,t,i)=>{e.exports={default:i(45627),__esModule:!0}},74664:(e,t,i)=>{e.exports={default:i(27965),__esModule:!0}},85345:(e,t,i)=>{e.exports={default:i(70433),__esModule:!0}},47518:(e,t,i)=>{e.exports={default:i(48056),__esModule:!0}},93516:(e,t,i)=>{e.exports={default:i(80025),__esModule:!0}},64275:(e,t,i)=>{e.exports={default:i(52392),__esModule:!0}},99663:(e,t)=>{"use strict";t.Z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},88239:(e,t,i)=>{"use strict";var r,n=(r=i(52945))&&r.__esModule?r:{default:r};t.Z=n.default||function(e){for(var t=1;t{"use strict";var r=s(i(85345)),n=s(i(85861)),o=s(i(72444));function s(e){return e&&e.__esModule?e:{default:e}}t.Z=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,o.default)(t)));e.prototype=(0,n.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},42723:(e,t)=>{"use strict";t.Z=function(e,t){var i={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r]);return i}},49135:(e,t,i)=>{"use strict";var r,n=(r=i(72444))&&r.__esModule?r:{default:r};t.Z=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,n.default)(t))&&"function"!=typeof t?e:t}},72444:(e,t,i)=>{"use strict";t.__esModule=!0;var r=s(i(64275)),n=s(i(93516)),o="function"==typeof n.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof n.default&&e.constructor===n.default&&e!==n.default.prototype?"symbol":typeof e};function s(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof n.default&&"symbol"===o(r.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof n.default&&e.constructor===n.default&&e!==n.default.prototype?"symbol":void 0===e?"undefined":o(e)}},79742:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),i=t[0],r=t[1];return 3*(i+r)/4-r},t.toByteArray=function(e){var t,i,o=u(e),s=o[0],a=o[1],c=new n(function(e,t,i){return 3*(t+i)/4-i}(0,s,a)),l=0,d=a>0?s-4:s;for(i=0;i>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===a&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,c[l++]=255&t),1===a&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],s=16383,a=0,u=r-n;au?u:a+s));return 1===n?(t=e[r-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")};for(var i=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function c(e,t,r){for(var n,o,s=[],a=t;a>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48764:(e,t,i)=>{"use strict";var r=i(79742),n=i(80645),o=i(5826);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return U(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,i){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,i);case"utf8":case"utf-8":return w(this,t,i);case"ascii":return T(this,t,i);case"latin1":case"binary":return D(this,t,i);case"base64":return I(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function f(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,i,r,n);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):b(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function b(e,t,i,r,n){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,i/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){var l=-1;for(o=i;oa&&(i=a-u),o=i;o>=0;o--){for(var d=!0,p=0;pn&&(r=n):r=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s>8,n=i%256,o.push(n),o.push(r);return o}(t,e.length-i),e,i,r)}function I(e,t,i){return 0===t&&i===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,i))}function w(e,t,i){i=Math.min(e.length,i);for(var r=[],n=t;n239?4:c>223?3:c>191?2:1;if(n+d<=i)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[n+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[n+1],s=e[n+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[n+1],s=e[n+2],a=e[n+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),n+=d}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);for(var i="",r=0;r0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),""},u.prototype.compare=function(e,t,i,r,n){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(r,n),l=e.slice(t,i),d=0;dn)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return S(this,e,t,i);case"utf8":case"utf-8":return v(this,e,t,i);case"ascii":return _(this,e,t,i);case"latin1":case"binary":return C(this,e,t,i);case"base64":return N(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function T(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;nn)&&(i=n);for(var o="",s=t;si)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,i,r,n,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function E(e,t,i,r){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-i,2);n>>8*(r?n:1-n)}function P(e,t,i,r){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-i,4);n>>8*(r?n:3-n)&255}function O(e,t,i,r,n,o){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function q(e,t,i,r,o){return o||O(e,0,i,4),n.write(e,t,i,r,23,4),i+4}function F(e,t,i,r,o){return o||O(e,0,i,8),n.write(e,t,i,r,52,8),i+8}u.prototype.slice=function(e,t){var i,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(n*=256);)r+=this[e+--t]*n;return r},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||R(e,t,this.length);for(var r=this[e],n=1,o=0;++o=(n*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||R(e,t,this.length);for(var r=t,n=1,o=this[e+--r];r>0&&(n*=256);)o+=this[e+--r]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),n.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),n.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,i,r){e=+e,t|=0,i|=0,r||M(this,e,t,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+n]=e/o&255;return t+i},u.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):E(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):E(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);M(this,e,t,i,n-1,-n)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+i},u.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);M(this,e,t,i,n-1,-n)}var o=i-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+i},u.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):E(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):E(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,i){return q(this,e,t,!0,i)},u.prototype.writeFloatBE=function(e,t,i){return q(this,e,t,!1,i)},u.prototype.writeDoubleLE=function(e,t,i){return F(this,e,t,!0,i)},u.prototype.writeDoubleBE=function(e,t,i){return F(this,e,t,!1,i)},u.prototype.copy=function(e,t,i,r){if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--n)e[n+t]=this[n+i];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,i,r){for(var n=0;n=t.length||n>=e.length);++n)t[n+i]=e[n];return n}},21924:(e,t,i)=>{"use strict";var r=i(40210),n=i(55559),o=n(r("String.prototype.indexOf"));e.exports=function(e,t){var i=r(e,!!t);return"function"==typeof i&&o(e,".prototype.")>-1?n(i):i}},55559:(e,t,i)=>{"use strict";var r=i(58612),n=i(40210),o=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||r.call(s,o),u=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=a(r,s,arguments);if(u&&c){var i=u(t,"length");i.configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var d=function(){return a(r,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},94184:(e,t)=>{var i;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t{i(91867),i(2586),e.exports=i(34579).Array.from},56981:(e,t,i)=>{i(72699),e.exports=i(34579).Object.assign},45627:(e,t,i)=>{i(86760);var r=i(34579).Object;e.exports=function(e,t){return r.create(e,t)}},27965:(e,t,i)=>{i(40520),e.exports=i(34579).Object.entries},70433:(e,t,i)=>{i(59349),e.exports=i(34579).Object.setPrototypeOf},48056:(e,t,i)=>{i(21013),e.exports=i(34579).Object.values},80025:(e,t,i)=>{i(46840),i(94058),i(8174),i(36461),e.exports=i(34579).Symbol},52392:(e,t,i)=>{i(91867),i(73871),e.exports=i(25103).f("iterator")},85663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},79003:e=>{e.exports=function(){}},12159:(e,t,i)=>{var r=i(36727);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},57428:(e,t,i)=>{var r=i(7932),n=i(78728),o=i(16531);e.exports=function(e){return function(t,i,s){var a,u=r(t),c=n(u.length),l=o(s,c);if(e&&i!=i){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===i)return e||l||0;return!e&&-1}}},14677:(e,t,i)=>{var r=i(32894),n=i(22939)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,i,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),n))?i:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},32894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},34579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},52445:(e,t,i)=>{"use strict";var r=i(4743),n=i(83101);e.exports=function(e,t,i){t in e?r.f(e,t,n(0,i)):e[t]=i}},19216:(e,t,i)=>{var r=i(85663);e.exports=function(e,t,i){if(r(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,r){return e.call(t,i,r)};case 3:return function(i,r,n){return e.call(t,i,r,n)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},89666:(e,t,i)=>{e.exports=!i(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},97467:(e,t,i)=>{var r=i(36727),n=i(33938).document,o=r(n)&&r(n.createElement);e.exports=function(e){return o?n.createElement(e):{}}},73338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},70337:(e,t,i)=>{var r=i(46162),n=i(48195),o=i(86274);e.exports=function(e){var t=r(e),i=n.f;if(i)for(var s,a=i(e),u=o.f,c=0;a.length>c;)u.call(e,s=a[c++])&&t.push(s);return t}},83856:(e,t,i)=>{var r=i(33938),n=i(34579),o=i(19216),s=i(41818),a=i(27069),u=function(e,t,i){var c,l,d,p=e&u.F,m=e&u.G,h=e&u.S,g=e&u.P,y=e&u.B,f=e&u.W,b=m?n:n[t]||(n[t]={}),S=b.prototype,v=m?r:h?r[t]:(r[t]||{}).prototype;for(c in m&&(i=t),i)(l=!p&&v&&void 0!==v[c])&&a(b,c)||(d=l?v[c]:i[c],b[c]=m&&"function"!=typeof v[c]?i[c]:y&&l?o(d,r):f&&v[c]==d?function(e){var t=function(t,i,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((b.virtual||(b.virtual={}))[c]=d,e&u.R&&S&&!S[c]&&s(S,c,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},33938: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)},27069:e=>{var t={}.hasOwnProperty;e.exports=function(e,i){return t.call(e,i)}},41818:(e,t,i)=>{var r=i(4743),n=i(83101);e.exports=i(89666)?function(e,t,i){return r.f(e,t,n(1,i))}:function(e,t,i){return e[t]=i,e}},54881:(e,t,i)=>{var r=i(33938).document;e.exports=r&&r.documentElement},33758:(e,t,i)=>{e.exports=!i(89666)&&!i(7929)((function(){return 7!=Object.defineProperty(i(97467)("div"),"a",{get:function(){return 7}}).a}))},50799:(e,t,i)=>{var r=i(32894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},45991:(e,t,i)=>{var r=i(15449),n=i(22939)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[n]===e)}},71421:(e,t,i)=>{var r=i(32894);e.exports=Array.isArray||function(e){return"Array"==r(e)}},36727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},95602:(e,t,i)=>{var r=i(12159);e.exports=function(e,t,i,n){try{return n?t(r(i)[0],i[1]):t(i)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},33945:(e,t,i)=>{"use strict";var r=i(98989),n=i(83101),o=i(25378),s={};i(41818)(s,i(22939)("iterator"),(function(){return this})),e.exports=function(e,t,i){e.prototype=r(s,{next:n(1,i)}),o(e,t+" Iterator")}},45700:(e,t,i)=>{"use strict";var r=i(16227),n=i(83856),o=i(57470),s=i(41818),a=i(15449),u=i(33945),c=i(25378),l=i(95089),d=i(22939)("iterator"),p=!([].keys&&"next"in[].keys()),m="keys",h="values",g=function(){return this};e.exports=function(e,t,i,y,f,b,S){u(i,t,y);var v,_,C,N=function(e){if(!p&&e in x)return x[e];switch(e){case m:case h:return function(){return new i(this,e)}}return function(){return new i(this,e)}},k=t+" Iterator",I=f==h,w=!1,x=e.prototype,T=x[d]||x["@@iterator"]||f&&x[f],D=T||N(f),L=f?I?N("entries"):D:void 0,A="Array"==t&&x.entries||T;if(A&&(C=l(A.call(new e)))!==Object.prototype&&C.next&&(c(C,k,!0),r||"function"==typeof C[d]||s(C,d,g)),I&&T&&T.name!==h&&(w=!0,D=function(){return T.call(this)}),r&&!S||!p&&!w&&x[d]||s(x,d,D),a[t]=D,a[k]=g,f)if(v={values:I?D:N(h),keys:b?D:N(m),entries:L},S)for(_ in v)_ in x||o(x,_,v[_]);else n(n.P+n.F*(p||w),t,v);return v}},96630:(e,t,i)=>{var r=i(22939)("iterator"),n=!1;try{var o=[7][r]();o.return=function(){n=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!n)return!1;var i=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:i=!0}},o[r]=function(){return s},e(o)}catch(e){}return i}},85084:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},15449:e=>{e.exports={}},16227:e=>{e.exports=!0},77177:(e,t,i)=>{var r=i(65730)("meta"),n=i(36727),o=i(27069),s=i(4743).f,a=0,u=Object.isExtensible||function(){return!0},c=!i(7929)((function(){return u(Object.preventExtensions({}))})),l=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!n(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&u(e)&&!o(e,r)&&l(e),e}}},88082:(e,t,i)=>{"use strict";var r=i(89666),n=i(46162),o=i(48195),s=i(86274),a=i(66530),u=i(50799),c=Object.assign;e.exports=!c||i(7929)((function(){var e={},t={},i=Symbol(),r="abcdefghijklmnopqrst";return e[i]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[i]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var i=a(e),c=arguments.length,l=1,d=o.f,p=s.f;c>l;)for(var m,h=u(arguments[l++]),g=d?n(h).concat(d(h)):n(h),y=g.length,f=0;y>f;)m=g[f++],r&&!p.call(h,m)||(i[m]=h[m]);return i}:c},98989:(e,t,i)=>{var r=i(12159),n=i(57856),o=i(73338),s=i(58989)("IE_PROTO"),a=function(){},u=function(){var e,t=i(97467)("iframe"),r=o.length;for(t.style.display="none",i(54881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("