@pwrdrvr/microapps-cdk 0.4.0-alpha.5 → 0.4.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,77 +1,89 @@
1
- "use strict";var jU=Object.create;var ho=Object.defineProperty;var PE=Object.getOwnPropertyDescriptor;var kU=Object.getOwnPropertyNames;var UU=Object.getPrototypeOf,FU=Object.prototype.hasOwnProperty;var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),BU=(e,t)=>{for(var r in t)ho(e,r,{get:t[r],enumerable:!0})},NE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of kU(t))!FU.call(e,i)&&i!==r&&ho(e,i,{get:()=>t[i],enumerable:!(n=PE(t,i))||n.enumerable});return e};var Vt=(e,t,r)=>(r=e!=null?jU(UU(e)):{},NE(t||!e||!e.__esModule?ho(r,"default",{value:e,enumerable:!0}):r,e)),GU=e=>NE(ho({},"__esModule",{value:!0}),e),_r=(e,t,r,n)=>{for(var i=n>1?void 0:n?PE(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&ho(t,r,i),i};var LE=f(G_=>{var OE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");G_.encode=function(e){if(0<=e&&e<OE.length)return OE[e];throw new TypeError("Must be between 0 and 63: "+e)};G_.decode=function(e){var t=65,r=90,n=97,i=122,s=48,o=57,a=43,c=47,u=26,d=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+u:s<=e&&e<=o?e-s+d:e==a?62:e==c?63:-1}});var K_=f(V_=>{var qE=LE(),$_=5,ME=1<<$_,zE=ME-1,jE=ME;function $U(e){return e<0?(-e<<1)+1:(e<<1)+0}function VU(e){var t=(e&1)===1,r=e>>1;return t?-r:r}V_.encode=function(t){var r="",n,i=$U(t);do n=i&zE,i>>>=$_,i>0&&(n|=jE),r+=qE.encode(n);while(i>0);return r};V_.decode=function(t,r,n){var i=t.length,s=0,o=0,a,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=qE.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));a=!!(c&jE),c&=zE,s=s+(c<<o),o+=$_}while(a);n.value=VU(s),n.rest=r}});var Ji=f(ut=>{function KU(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}ut.getArg=KU;var kE=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,HU=/^data:.+\,.+$/;function _o(e){var t=e.match(kE);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}ut.urlParse=_o;function Wi(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}ut.urlGenerate=Wi;function H_(e){var t=e,r=_o(e);if(r){if(!r.path)return e;t=r.path}for(var n=ut.isAbsolute(t),i=t.split(/\/+/),s,o=0,a=i.length-1;a>=0;a--)s=i[a],s==="."?i.splice(a,1):s===".."?o++:o>0&&(s===""?(i.splice(a+1,o),o=0):(i.splice(a,2),o--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Wi(r)):t}ut.normalize=H_;function UE(e,t){e===""&&(e="."),t===""&&(t=".");var r=_o(t),n=_o(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Wi(r);if(r||t.match(HU))return t;if(n&&!n.host&&!n.path)return n.host=t,Wi(n);var i=t.charAt(0)==="/"?t:H_(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Wi(n)):i}ut.join=UE;ut.isAbsolute=function(e){return e.charAt(0)==="/"||kE.test(e)};function WU(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}ut.relative=WU;var FE=function(){var e=Object.create(null);return!("__proto__"in e)}();function BE(e){return e}function YU(e){return GE(e)?"$"+e:e}ut.toSetString=FE?BE:YU;function JU(e){return GE(e)?e.slice(1):e}ut.fromSetString=FE?BE:JU;function GE(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function QU(e,t,r){var n=Yi(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:Yi(e.name,t.name)}ut.compareByOriginalPositions=QU;function XU(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=Yi(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Yi(e.name,t.name)}ut.compareByGeneratedPositionsDeflated=XU;function Yi(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function ZU(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=Yi(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Yi(e.name,t.name)}ut.compareByGeneratedPositionsInflated=ZU;function eF(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}ut.parseSourceMapInput=eF;function tF(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=_o(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=UE(Wi(n),t)}return H_(t)}ut.computeSourceURL=tF});var J_=f($E=>{var W_=Ji(),Y_=Object.prototype.hasOwnProperty,ai=typeof Map<"u";function Xr(){this._array=[],this._set=ai?new Map:Object.create(null)}Xr.fromArray=function(t,r){for(var n=new Xr,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n};Xr.prototype.size=function(){return ai?this._set.size:Object.getOwnPropertyNames(this._set).length};Xr.prototype.add=function(t,r){var n=ai?t:W_.toSetString(t),i=ai?this.has(t):Y_.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(ai?this._set.set(t,s):this._set[n]=s)};Xr.prototype.has=function(t){if(ai)return this._set.has(t);var r=W_.toSetString(t);return Y_.call(this._set,r)};Xr.prototype.indexOf=function(t){if(ai){var r=this._set.get(t);if(r>=0)return r}else{var n=W_.toSetString(t);if(Y_.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};Xr.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Xr.prototype.toArray=function(){return this._array.slice()};$E.ArraySet=Xr});var HE=f(KE=>{var VE=Ji();function rF(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||VE.compareByGeneratedPositionsInflated(e,t)<=0}function Uc(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Uc.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Uc.prototype.add=function(t){rF(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Uc.prototype.toArray=function(){return this._sorted||(this._array.sort(VE.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};KE.MappingList=Uc});var Q_=f(WE=>{var yo=K_(),Ge=Ji(),Fc=J_().ArraySet,nF=HE().MappingList;function Kt(e){e||(e={}),this._file=Ge.getArg(e,"file",null),this._sourceRoot=Ge.getArg(e,"sourceRoot",null),this._skipValidation=Ge.getArg(e,"skipValidation",!1),this._sources=new Fc,this._names=new Fc,this._mappings=new nF,this._sourcesContents=null}Kt.prototype._version=3;Kt.fromSourceMap=function(t){var r=t.sourceRoot,n=new Kt({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=Ge.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=Ge.relative(r,i)),n._sources.has(s)||n._sources.add(s);var o=t.sourceContentFor(i);o!=null&&n.setSourceContent(i,o)}),n};Kt.prototype.addMapping=function(t){var r=Ge.getArg(t,"generated"),n=Ge.getArg(t,"original",null),i=Ge.getArg(t,"source",null),s=Ge.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})};Kt.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Ge.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Ge.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Ge.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Kt.prototype.applySourceMap=function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=Ge.relative(s,i));var o=new Fc,a=new Fc;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var u=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});u.source!=null&&(c.source=u.source,n!=null&&(c.source=Ge.join(n,c.source)),s!=null&&(c.source=Ge.relative(s,c.source)),c.originalLine=u.line,c.originalColumn=u.column,u.name!=null&&(c.name=u.name))}var d=c.source;d!=null&&!o.has(d)&&o.add(d);var p=c.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=o,this._names=a,t.sources.forEach(function(c){var u=t.sourceContentFor(c);u!=null&&(n!=null&&(c=Ge.join(n,c)),s!=null&&(c=Ge.relative(s,c)),this.setSourceContent(c,u))},this)};Kt.prototype._validateMapping=function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}};Kt.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,s=0,o=0,a="",c,u,d,p,m=this._mappings.toArray(),_=0,g=m.length;_<g;_++){if(u=m[_],c="",u.generatedLine!==r)for(t=0;u.generatedLine!==r;)c+=";",r++;else if(_>0){if(!Ge.compareByGeneratedPositionsInflated(u,m[_-1]))continue;c+=","}c+=yo.encode(u.generatedColumn-t),t=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),c+=yo.encode(p-o),o=p,c+=yo.encode(u.originalLine-1-i),i=u.originalLine-1,c+=yo.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),c+=yo.encode(d-s),s=d)),a+=c}return a};Kt.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Ge.relative(r,n));var i=Ge.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Kt.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Kt.prototype.toString=function(){return JSON.stringify(this.toJSON())};WE.SourceMapGenerator=Kt});var YE=f(ci=>{ci.GREATEST_LOWER_BOUND=1;ci.LEAST_UPPER_BOUND=2;function X_(e,t,r,n,i,s){var o=Math.floor((t-e)/2)+e,a=i(r,n[o],!0);return a===0?o:a>0?t-o>1?X_(o,t,r,n,i,s):s==ci.LEAST_UPPER_BOUND?t<n.length?t:-1:o:o-e>1?X_(e,o,r,n,i,s):s==ci.LEAST_UPPER_BOUND?o:e<0?-1:e}ci.search=function(t,r,n,i){if(r.length===0)return-1;var s=X_(-1,r.length,t,r,n,i||ci.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var QE=f(JE=>{function Z_(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function iF(e,t){return Math.round(e+Math.random()*(t-e))}function ey(e,t,r,n){if(r<n){var i=iF(r,n),s=r-1;Z_(e,i,n);for(var o=e[n],a=r;a<n;a++)t(e[a],o)<=0&&(s+=1,Z_(e,s,a));Z_(e,s+1,a);var c=s+1;ey(e,t,r,c-1),ey(e,t,c+1,n)}}JE.quickSort=function(e,t){ey(e,t,0,e.length-1)}});var ZE=f(Bc=>{var F=Ji(),ty=YE(),Qi=J_().ArraySet,sF=K_(),go=QE().quickSort;function Ne(e,t){var r=e;return typeof e=="string"&&(r=F.parseSourceMapInput(e)),r.sections!=null?new ir(r,t):new nt(r,t)}Ne.fromSourceMap=function(e,t){return nt.fromSourceMap(e,t)};Ne.prototype._version=3;Ne.prototype.__generatedMappings=null;Object.defineProperty(Ne.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Ne.prototype.__originalMappings=null;Object.defineProperty(Ne.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Ne.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};Ne.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};Ne.GENERATED_ORDER=1;Ne.ORIGINAL_ORDER=2;Ne.GREATEST_LOWER_BOUND=1;Ne.LEAST_UPPER_BOUND=2;Ne.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||Ne.GENERATED_ORDER,o;switch(s){case Ne.GENERATED_ORDER:o=this._generatedMappings;break;case Ne.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(c){var u=c.source===null?null:this._sources.at(c.source);return u=F.computeSourceURL(a,u,this._sourceMapURL),{source:u,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)};Ne.prototype.allGeneratedPositionsFor=function(t){var r=F.getArg(t,"line"),n={source:F.getArg(t,"source"),originalLine:r,originalColumn:F.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,ty.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(t.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:F.getArg(o,"generatedLine",null),column:F.getArg(o,"generatedColumn",null),lastColumn:F.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var c=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==c;)i.push({line:F.getArg(o,"generatedLine",null),column:F.getArg(o,"generatedColumn",null),lastColumn:F.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};Bc.SourceMapConsumer=Ne;function nt(e,t){var r=e;typeof e=="string"&&(r=F.parseSourceMapInput(e));var n=F.getArg(r,"version"),i=F.getArg(r,"sources"),s=F.getArg(r,"names",[]),o=F.getArg(r,"sourceRoot",null),a=F.getArg(r,"sourcesContent",null),c=F.getArg(r,"mappings"),u=F.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=F.normalize(o)),i=i.map(String).map(F.normalize).map(function(d){return o&&F.isAbsolute(o)&&F.isAbsolute(d)?F.relative(o,d):d}),this._names=Qi.fromArray(s.map(String),!0),this._sources=Qi.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(d){return F.computeSourceURL(o,d,t)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=t,this.file=u}nt.prototype=Object.create(Ne.prototype);nt.prototype.consumer=Ne;nt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=F.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};nt.fromSourceMap=function(t,r){var n=Object.create(nt.prototype),i=n._names=Qi.fromArray(t._names.toArray(),!0),s=n._sources=Qi.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(_){return F.computeSourceURL(n.sourceRoot,_,r)});for(var o=t._mappings.toArray().slice(),a=n.__generatedMappings=[],c=n.__originalMappings=[],u=0,d=o.length;u<d;u++){var p=o[u],m=new XE;m.generatedLine=p.generatedLine,m.generatedColumn=p.generatedColumn,p.source&&(m.source=s.indexOf(p.source),m.originalLine=p.originalLine,m.originalColumn=p.originalColumn,p.name&&(m.name=i.indexOf(p.name)),c.push(m)),a.push(m)}return go(n.__originalMappings,F.compareByOriginalPositions),n};nt.prototype._version=3;Object.defineProperty(nt.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function XE(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}nt.prototype._parseMappings=function(t,r){for(var n=1,i=0,s=0,o=0,a=0,c=0,u=t.length,d=0,p={},m={},_=[],g=[],y,A,I,T,U;d<u;)if(t.charAt(d)===";")n++,d++,i=0;else if(t.charAt(d)===",")d++;else{for(y=new XE,y.generatedLine=n,T=d;T<u&&!this._charIsMappingSeparator(t,T);T++);if(A=t.slice(d,T),I=p[A],I)d+=A.length;else{for(I=[];d<T;)sF.decode(t,d,m),U=m.value,d=m.rest,I.push(U);if(I.length===2)throw new Error("Found a source, but no line and column");if(I.length===3)throw new Error("Found a source and line, but no column");p[A]=I}y.generatedColumn=i+I[0],i=y.generatedColumn,I.length>1&&(y.source=a+I[1],a+=I[1],y.originalLine=s+I[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=o+I[3],o=y.originalColumn,I.length>4&&(y.name=c+I[4],c+=I[4])),g.push(y),typeof y.originalLine=="number"&&_.push(y)}go(g,F.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,go(_,F.compareByOriginalPositions),this.__originalMappings=_};nt.prototype._findMapping=function(t,r,n,i,s,o){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return ty.search(t,r,s,o)};nt.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};nt.prototype.originalPositionFor=function(t){var r={generatedLine:F.getArg(t,"line"),generatedColumn:F.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",F.compareByGeneratedPositionsDeflated,F.getArg(t,"bias",Ne.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=F.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=F.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=F.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:F.getArg(i,"originalLine",null),column:F.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};nt.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};nt.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=F.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=F.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};nt.prototype.generatedPositionFor=function(t){var r=F.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:F.getArg(t,"line"),originalColumn:F.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,F.getArg(t,"bias",Ne.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:F.getArg(s,"generatedLine",null),column:F.getArg(s,"generatedColumn",null),lastColumn:F.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Bc.BasicSourceMapConsumer=nt;function ir(e,t){var r=e;typeof e=="string"&&(r=F.parseSourceMapInput(e));var n=F.getArg(r,"version"),i=F.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Qi,this._names=new Qi;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=F.getArg(o,"offset"),c=F.getArg(a,"line"),u=F.getArg(a,"column");if(c<s.line||c===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:c+1,generatedColumn:u+1},consumer:new Ne(F.getArg(o,"map"),t)}})}ir.prototype=Object.create(Ne.prototype);ir.prototype.constructor=Ne;ir.prototype._version=3;Object.defineProperty(ir.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});ir.prototype.originalPositionFor=function(t){var r={generatedLine:F.getArg(t,"line"),generatedColumn:F.getArg(t,"column")},n=ty.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};ir.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};ir.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};ir.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(F.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};ir.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],c=i.consumer._sources.at(a.source);c=F.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var u=null;a.name&&(u=i.consumer._names.at(a.name),this._names.add(u),u=this._names.indexOf(u));var d={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine=="number"&&this.__originalMappings.push(d)}go(this.__generatedMappings,F.compareByGeneratedPositionsDeflated),go(this.__originalMappings,F.compareByOriginalPositions)};Bc.IndexedSourceMapConsumer=ir});var tA=f(eA=>{var oF=Q_().SourceMapGenerator,Gc=Ji(),aF=/(\r?\n)/,cF=10,Xi="$$$isSourceNode$$$";function Mt(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[Xi]=!0,n!=null&&this.add(n)}Mt.fromStringWithSourceMap=function(t,r,n){var i=new Mt,s=t.split(aF),o=0,a=function(){var m=g(),_=g()||"";return m+_;function g(){return o<s.length?s[o++]:void 0}},c=1,u=0,d=null;return r.eachMapping(function(m){if(d!==null)if(c<m.generatedLine)p(d,a()),c++,u=0;else{var _=s[o]||"",g=_.substr(0,m.generatedColumn-u);s[o]=_.substr(m.generatedColumn-u),u=m.generatedColumn,p(d,g),d=m;return}for(;c<m.generatedLine;)i.add(a()),c++;if(u<m.generatedColumn){var _=s[o]||"";i.add(_.substr(0,m.generatedColumn)),s[o]=_.substr(m.generatedColumn),u=m.generatedColumn}d=m},this),o<s.length&&(d&&p(d,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(m){var _=r.sourceContentFor(m);_!=null&&(n!=null&&(m=Gc.join(n,m)),i.setSourceContent(m,_))}),i;function p(m,_){if(m===null||m.source===void 0)i.add(_);else{var g=n?Gc.join(n,m.source):m.source;i.add(new Mt(m.originalLine,m.originalColumn,g,_,m.name))}}};Mt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[Xi]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Mt.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[Xi]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Mt.prototype.walk=function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Xi]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Mt.prototype.join=function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this};Mt.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[Xi]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};Mt.prototype.setSourceContent=function(t,r){this.sourceContents[Gc.toSetString(t)]=r};Mt.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Xi]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Gc.fromSetString(i[r]),this.sourceContents[i[r]])};Mt.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};Mt.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new oF(t),i=!1,s=null,o=null,a=null,c=null;return this.walk(function(u,d){r.code+=u,d.source!==null&&d.line!==null&&d.column!==null?((s!==d.source||o!==d.line||a!==d.column||c!==d.name)&&n.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:r.line,column:r.column},name:d.name}),s=d.source,o=d.line,a=d.column,c=d.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,m=u.length;p<m;p++)u.charCodeAt(p)===cF?(r.line++,r.column=0,p+1===m?(s=null,i=!1):i&&n.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:r.line,column:r.column},name:d.name})):r.column++}),this.walkSourceContents(function(u,d){n.setSourceContent(u,d)}),{code:r.code,map:n}};eA.SourceNode=Mt});var rA=f($c=>{$c.SourceMapGenerator=Q_().SourceMapGenerator;$c.SourceMapConsumer=ZE().SourceMapConsumer;$c.SourceNode=tA().SourceNode});var iA=f((mve,nA)=>{var lF=Object.prototype.toString,ry=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function uF(e){return lF.call(e).slice(8,-1)==="ArrayBuffer"}function dF(e,t,r){t>>>=0;var n=e.byteLength-t;if(n<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=n;else if(r>>>=0,r>n)throw new RangeError("'length' is out of bounds");return ry?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function fF(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return ry?Buffer.from(e,t):new Buffer(e,t)}function mF(e,t,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return uF(e)?dF(e,t,r):typeof e=="string"?fF(e,t):ry?Buffer.from(e):new Buffer(e)}nA.exports=mF});var fA=f((ui,oy)=>{var pF=rA().SourceMapConsumer,ny=require("path"),yr;try{yr=require("fs"),(!yr.existsSync||!yr.readFileSync)&&(yr=null)}catch{}var hF=iA();function sA(e,t){return e.require(t)}var oA=!1,aA=!1,iy=!1,vo="auto",li={},So={},_F=/^data:application\/json[^,]+base64,/,Cn=[],xn=[];function ay(){return vo==="browser"?!0:vo==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function yF(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function gF(){return typeof process=="object"&&process!==null?process.version:""}function vF(){if(typeof process=="object"&&process!==null)return process.stderr}function SF(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function Vc(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var cy=Vc(Cn);Cn.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(n,i){return i?"":"/"})),e in li)return li[e];var t="";try{if(yr)yr.existsSync(e)&&(t=yr.readFileSync(e,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),r.readyState===4&&r.status===200&&(t=r.responseText)}}catch{}return li[e]=t});function sy(e,t){if(!e)return t;var r=ny.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",s=r.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+ny.resolve(r.slice(i.length),t).replace(/\\/g,"/")):i+ny.resolve(r.slice(i.length),t)}function wF(e){var t;if(ay())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=r.readyState===4?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch{}t=cy(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,o;o=i.exec(t);)s=o;return s?s[1]:null}var ly=Vc(xn);xn.push(function(e){var t=wF(e);if(!t)return null;var r;if(_F.test(t)){var n=t.slice(t.indexOf(",")+1);r=hF(n,"base64").toString(),t=e}else t=sy(e,t),r=cy(t);return r?{url:t,map:r}:null});function uy(e){var t=So[e.source];if(!t){var r=ly(e.source);r?(t=So[e.source]={url:r.url,map:new pF(r.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var o=t.map.sourcesContent[s];if(o){var a=sy(t.url,i);li[a]=o}})):t=So[e.source]={url:null,map:null}}if(t&&t.map&&typeof t.map.originalPositionFor=="function"){var n=t.map.originalPositionFor(e);if(n.source!==null)return n.source=sy(t.url,n.source),n}return e}function lA(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=uy({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return t=/^eval at ([^(]+) \((.+)\)$/.exec(e),t?"eval at "+t[1]+" ("+lA(t[2])+")":e}function bF(){var e,t="";if(this.isNative())t="native";else{e=this.getScriptNameOrSourceURL(),!e&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),e?t+=e:t+="<anonymous>";var r=this.getLineNumber();if(r!=null){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",s=this.getFunctionName(),o=!0,a=this.isConstructor(),c=!(this.isToplevel()||a);if(c){var u=this.getTypeName();u==="[object Object]"&&(u="null");var d=this.getMethodName();s?(u&&s.indexOf(u)!=0&&(i+=u+"."),i+=s,d&&s.indexOf("."+d)!=s.length-d.length-1&&(i+=" [as "+d+"]")):i+=u+"."+(d||"<anonymous>")}else a?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function cA(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]}),t.toString=bF,t}function uA(e,t){if(t===void 0&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,s=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,o=s.test(gF())?0:62;n===1&&i>o&&!ay()&&!e.isEval()&&(i-=o);var a=uy({source:r,line:n,column:i});t.curPosition=a,e=cA(e);var c=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?c():t.nextPosition.name||c()},e.getFileName=function(){return a.source},e.getLineNumber=function(){return a.line},e.getColumnNumber=function(){return a.column+1},e.getScriptNameOrSourceURL=function(){return a.source},e}var u=e.isEval()&&e.getEvalOrigin();return u&&(u=lA(u),e=cA(e),e.getEvalOrigin=function(){return u}),e}function EF(e,t){iy&&(li={},So={});for(var r=e.name||"Error",n=e.message||"",i=r+": "+n,s={nextPosition:null,curPosition:null},o=[],a=t.length-1;a>=0;a--)o.push(`
2
- at `+uA(t[a],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,i+o.reverse().join("")}function dA(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],n=+t[2],i=+t[3],s=li[r];if(!s&&yr&&yr.existsSync(r))try{s=yr.readFileSync(r,"utf8")}catch{s=""}if(s){var o=s.split(/(?:\r\n|\r|\n)/)[n-1];if(o)return r+":"+n+`
1
+ "use strict";var j3=Object.create;var fa=Object.defineProperty;var bI=Object.getOwnPropertyDescriptor;var z3=Object.getOwnPropertyNames;var k3=Object.getPrototypeOf,F3=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),U3=(e,t)=>{for(var r in t)fa(e,r,{get:t[r],enumerable:!0})},AI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of z3(t))!F3.call(e,i)&&i!==r&&fa(e,i,{get:()=>t[i],enumerable:!(n=bI(t,i))||n.enumerable});return e};var rr=(e,t,r)=>(r=e!=null?j3(k3(e)):{},AI(t||!e||!e.__esModule?fa(r,"default",{value:e,enumerable:!0}):r,e)),B3=e=>AI(fa({},"__esModule",{value:!0}),e),xr=(e,t,r,n)=>{for(var i=n>1?void 0:n?bI(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&fa(t,r,i),i};var CI=d(qS=>{var TI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");qS.encode=function(e){if(0<=e&&e<TI.length)return TI[e];throw new TypeError("Must be between 0 and 63: "+e)};qS.decode=function(e){var t=65,r=90,n=97,i=122,s=48,o=57,a=43,c=47,l=26,u=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=o?e-s+u:e==a?62:e==c?63:-1}});var jS=d(MS=>{var xI=CI(),LS=5,II=1<<LS,RI=II-1,PI=II;function G3(e){return e<0?(-e<<1)+1:(e<<1)+0}function $3(e){var t=(e&1)===1,r=e>>1;return t?-r:r}MS.encode=function(t){var r="",n,i=G3(t);do n=i&RI,i>>>=LS,i>0&&(n|=PI),r+=xI.encode(n);while(i>0);return r};MS.decode=function(t,r,n){var i=t.length,s=0,o=0,a,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=xI.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));a=!!(c&PI),c&=RI,s=s+(c<<o),o+=LS}while(a);n.value=$3(s),n.rest=r}});var Ls=d(ht=>{function V3(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}ht.getArg=V3;var OI=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,H3=/^data:.+\,.+$/;function ma(e){var t=e.match(OI);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}ht.urlParse=ma;function Ds(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}ht.urlGenerate=Ds;function zS(e){var t=e,r=ma(e);if(r){if(!r.path)return e;t=r.path}for(var n=ht.isAbsolute(t),i=t.split(/\/+/),s,o=0,a=i.length-1;a>=0;a--)s=i[a],s==="."?i.splice(a,1):s===".."?o++:o>0&&(s===""?(i.splice(a+1,o),o=0):(i.splice(a,2),o--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,Ds(r)):t}ht.normalize=zS;function NI(e,t){e===""&&(e="."),t===""&&(t=".");var r=ma(t),n=ma(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Ds(r);if(r||t.match(H3))return t;if(n&&!n.host&&!n.path)return n.host=t,Ds(n);var i=t.charAt(0)==="/"?t:zS(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,Ds(n)):i}ht.join=NI;ht.isAbsolute=function(e){return e.charAt(0)==="/"||OI.test(e)};function K3(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}ht.relative=K3;var DI=function(){var e=Object.create(null);return!("__proto__"in e)}();function qI(e){return e}function W3(e){return LI(e)?"$"+e:e}ht.toSetString=DI?qI:W3;function Y3(e){return LI(e)?e.slice(1):e}ht.fromSetString=DI?qI:Y3;function LI(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function J3(e,t,r){var n=qs(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:qs(e.name,t.name)}ht.compareByOriginalPositions=J3;function Q3(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=qs(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:qs(e.name,t.name)}ht.compareByGeneratedPositionsDeflated=Q3;function qs(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function X3(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=qs(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:qs(e.name,t.name)}ht.compareByGeneratedPositionsInflated=X3;function Z3(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}ht.parseSourceMapInput=Z3;function eW(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ma(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=NI(Ds(n),t)}return zS(t)}ht.computeSourceURL=eW});var US=d(MI=>{var kS=Ls(),FS=Object.prototype.hasOwnProperty,ji=typeof Map<"u";function bn(){this._array=[],this._set=ji?new Map:Object.create(null)}bn.fromArray=function(t,r){for(var n=new bn,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n};bn.prototype.size=function(){return ji?this._set.size:Object.getOwnPropertyNames(this._set).length};bn.prototype.add=function(t,r){var n=ji?t:kS.toSetString(t),i=ji?this.has(t):FS.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(ji?this._set.set(t,s):this._set[n]=s)};bn.prototype.has=function(t){if(ji)return this._set.has(t);var r=kS.toSetString(t);return FS.call(this._set,r)};bn.prototype.indexOf=function(t){if(ji){var r=this._set.get(t);if(r>=0)return r}else{var n=kS.toSetString(t);if(FS.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};bn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};bn.prototype.toArray=function(){return this._array.slice()};MI.ArraySet=bn});var kI=d(zI=>{var jI=Ls();function tW(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||jI.compareByGeneratedPositionsInflated(e,t)<=0}function Eu(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Eu.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Eu.prototype.add=function(t){tW(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Eu.prototype.toArray=function(){return this._sorted||(this._array.sort(jI.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};zI.MappingList=Eu});var BS=d(FI=>{var pa=jS(),Ve=Ls(),bu=US().ArraySet,rW=kI().MappingList;function nr(e){e||(e={}),this._file=Ve.getArg(e,"file",null),this._sourceRoot=Ve.getArg(e,"sourceRoot",null),this._skipValidation=Ve.getArg(e,"skipValidation",!1),this._sources=new bu,this._names=new bu,this._mappings=new rW,this._sourcesContents=null}nr.prototype._version=3;nr.fromSourceMap=function(t){var r=t.sourceRoot,n=new nr({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=Ve.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=Ve.relative(r,i)),n._sources.has(s)||n._sources.add(s);var o=t.sourceContentFor(i);o!=null&&n.setSourceContent(i,o)}),n};nr.prototype.addMapping=function(t){var r=Ve.getArg(t,"generated"),n=Ve.getArg(t,"original",null),i=Ve.getArg(t,"source",null),s=Ve.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})};nr.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Ve.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Ve.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Ve.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};nr.prototype.applySourceMap=function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=Ve.relative(s,i));var o=new bu,a=new bu;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=Ve.join(n,c.source)),s!=null&&(c.source=Ve.relative(s,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var u=c.source;u!=null&&!o.has(u)&&o.add(u);var p=c.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=o,this._names=a,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=Ve.join(n,c)),s!=null&&(c=Ve.relative(s,c)),this.setSourceContent(c,l))},this)};nr.prototype._validateMapping=function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}};nr.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,s=0,o=0,a="",c,l,u,p,m=this._mappings.toArray(),h=0,g=m.length;h<g;h++){if(l=m[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Ve.compareByGeneratedPositionsInflated(l,m[h-1]))continue;c+=","}c+=pa.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),c+=pa.encode(p-o),o=p,c+=pa.encode(l.originalLine-1-i),i=l.originalLine-1,c+=pa.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(u=this._names.indexOf(l.name),c+=pa.encode(u-s),s=u)),a+=c}return a};nr.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Ve.relative(r,n));var i=Ve.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};nr.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};nr.prototype.toString=function(){return JSON.stringify(this.toJSON())};FI.SourceMapGenerator=nr});var UI=d(zi=>{zi.GREATEST_LOWER_BOUND=1;zi.LEAST_UPPER_BOUND=2;function GS(e,t,r,n,i,s){var o=Math.floor((t-e)/2)+e,a=i(r,n[o],!0);return a===0?o:a>0?t-o>1?GS(o,t,r,n,i,s):s==zi.LEAST_UPPER_BOUND?t<n.length?t:-1:o:o-e>1?GS(e,o,r,n,i,s):s==zi.LEAST_UPPER_BOUND?o:e<0?-1:e}zi.search=function(t,r,n,i){if(r.length===0)return-1;var s=GS(-1,r.length,t,r,n,i||zi.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var GI=d(BI=>{function $S(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function nW(e,t){return Math.round(e+Math.random()*(t-e))}function VS(e,t,r,n){if(r<n){var i=nW(r,n),s=r-1;$S(e,i,n);for(var o=e[n],a=r;a<n;a++)t(e[a],o)<=0&&(s+=1,$S(e,s,a));$S(e,s+1,a);var c=s+1;VS(e,t,r,c-1),VS(e,t,c+1,n)}}BI.quickSort=function(e,t){VS(e,t,0,e.length-1)}});var VI=d(Au=>{var G=Ls(),HS=UI(),Ms=US().ArraySet,iW=jS(),_a=GI().quickSort;function Le(e,t){var r=e;return typeof e=="string"&&(r=G.parseSourceMapInput(e)),r.sections!=null?new hr(r,t):new ct(r,t)}Le.fromSourceMap=function(e,t){return ct.fromSourceMap(e,t)};Le.prototype._version=3;Le.prototype.__generatedMappings=null;Object.defineProperty(Le.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Le.prototype.__originalMappings=null;Object.defineProperty(Le.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Le.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};Le.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};Le.GENERATED_ORDER=1;Le.ORIGINAL_ORDER=2;Le.GREATEST_LOWER_BOUND=1;Le.LEAST_UPPER_BOUND=2;Le.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||Le.GENERATED_ORDER,o;switch(s){case Le.GENERATED_ORDER:o=this._generatedMappings;break;case Le.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=G.computeSourceURL(a,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)};Le.prototype.allGeneratedPositionsFor=function(t){var r=G.getArg(t,"line"),n={source:G.getArg(t,"source"),originalLine:r,originalColumn:G.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",G.compareByOriginalPositions,HS.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(t.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:G.getArg(o,"generatedLine",null),column:G.getArg(o,"generatedColumn",null),lastColumn:G.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var c=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==c;)i.push({line:G.getArg(o,"generatedLine",null),column:G.getArg(o,"generatedColumn",null),lastColumn:G.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};Au.SourceMapConsumer=Le;function ct(e,t){var r=e;typeof e=="string"&&(r=G.parseSourceMapInput(e));var n=G.getArg(r,"version"),i=G.getArg(r,"sources"),s=G.getArg(r,"names",[]),o=G.getArg(r,"sourceRoot",null),a=G.getArg(r,"sourcesContent",null),c=G.getArg(r,"mappings"),l=G.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=G.normalize(o)),i=i.map(String).map(G.normalize).map(function(u){return o&&G.isAbsolute(o)&&G.isAbsolute(u)?G.relative(o,u):u}),this._names=Ms.fromArray(s.map(String),!0),this._sources=Ms.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return G.computeSourceURL(o,u,t)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=t,this.file=l}ct.prototype=Object.create(Le.prototype);ct.prototype.consumer=Le;ct.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=G.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ct.fromSourceMap=function(t,r){var n=Object.create(ct.prototype),i=n._names=Ms.fromArray(t._names.toArray(),!0),s=n._sources=Ms.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return G.computeSourceURL(n.sourceRoot,h,r)});for(var o=t._mappings.toArray().slice(),a=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,u=o.length;l<u;l++){var p=o[l],m=new $I;m.generatedLine=p.generatedLine,m.generatedColumn=p.generatedColumn,p.source&&(m.source=s.indexOf(p.source),m.originalLine=p.originalLine,m.originalColumn=p.originalColumn,p.name&&(m.name=i.indexOf(p.name)),c.push(m)),a.push(m)}return _a(n.__originalMappings,G.compareByOriginalPositions),n};ct.prototype._version=3;Object.defineProperty(ct.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function $I(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}ct.prototype._parseMappings=function(t,r){for(var n=1,i=0,s=0,o=0,a=0,c=0,l=t.length,u=0,p={},m={},h=[],g=[],y,w,C,T,B;u<l;)if(t.charAt(u)===";")n++,u++,i=0;else if(t.charAt(u)===",")u++;else{for(y=new $I,y.generatedLine=n,T=u;T<l&&!this._charIsMappingSeparator(t,T);T++);if(w=t.slice(u,T),C=p[w],C)u+=w.length;else{for(C=[];u<T;)iW.decode(t,u,m),B=m.value,u=m.rest,C.push(B);if(C.length===2)throw new Error("Found a source, but no line and column");if(C.length===3)throw new Error("Found a source and line, but no column");p[w]=C}y.generatedColumn=i+C[0],i=y.generatedColumn,C.length>1&&(y.source=a+C[1],a+=C[1],y.originalLine=s+C[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=o+C[3],o=y.originalColumn,C.length>4&&(y.name=c+C[4],c+=C[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}_a(g,G.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,_a(h,G.compareByOriginalPositions),this.__originalMappings=h};ct.prototype._findMapping=function(t,r,n,i,s,o){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return HS.search(t,r,s,o)};ct.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};ct.prototype.originalPositionFor=function(t){var r={generatedLine:G.getArg(t,"line"),generatedColumn:G.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",G.compareByGeneratedPositionsDeflated,G.getArg(t,"bias",Le.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=G.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=G.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=G.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:G.getArg(i,"originalLine",null),column:G.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};ct.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};ct.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=G.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=G.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};ct.prototype.generatedPositionFor=function(t){var r=G.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:G.getArg(t,"line"),originalColumn:G.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",G.compareByOriginalPositions,G.getArg(t,"bias",Le.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:G.getArg(s,"generatedLine",null),column:G.getArg(s,"generatedColumn",null),lastColumn:G.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Au.BasicSourceMapConsumer=ct;function hr(e,t){var r=e;typeof e=="string"&&(r=G.parseSourceMapInput(e));var n=G.getArg(r,"version"),i=G.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Ms,this._names=new Ms;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=G.getArg(o,"offset"),c=G.getArg(a,"line"),l=G.getArg(a,"column");if(c<s.line||c===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new Le(G.getArg(o,"map"),t)}})}hr.prototype=Object.create(Le.prototype);hr.prototype.constructor=Le;hr.prototype._version=3;Object.defineProperty(hr.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});hr.prototype.originalPositionFor=function(t){var r={generatedLine:G.getArg(t,"line"),generatedColumn:G.getArg(t,"column")},n=HS.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};hr.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};hr.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};hr.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(G.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};hr.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],c=i.consumer._sources.at(a.source);c=G.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;a.name&&(l=i.consumer._names.at(a.name),this._names.add(l),l=this._names.indexOf(l));var u={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}_a(this.__generatedMappings,G.compareByGeneratedPositionsDeflated),_a(this.__originalMappings,G.compareByOriginalPositions)};Au.IndexedSourceMapConsumer=hr});var KI=d(HI=>{var sW=BS().SourceMapGenerator,Tu=Ls(),oW=/(\r?\n)/,aW=10,js="$$$isSourceNode$$$";function Vt(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[js]=!0,n!=null&&this.add(n)}Vt.fromStringWithSourceMap=function(t,r,n){var i=new Vt,s=t.split(oW),o=0,a=function(){var m=g(),h=g()||"";return m+h;function g(){return o<s.length?s[o++]:void 0}},c=1,l=0,u=null;return r.eachMapping(function(m){if(u!==null)if(c<m.generatedLine)p(u,a()),c++,l=0;else{var h=s[o]||"",g=h.substr(0,m.generatedColumn-l);s[o]=h.substr(m.generatedColumn-l),l=m.generatedColumn,p(u,g),u=m;return}for(;c<m.generatedLine;)i.add(a()),c++;if(l<m.generatedColumn){var h=s[o]||"";i.add(h.substr(0,m.generatedColumn)),s[o]=h.substr(m.generatedColumn),l=m.generatedColumn}u=m},this),o<s.length&&(u&&p(u,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(m){var h=r.sourceContentFor(m);h!=null&&(n!=null&&(m=Tu.join(n,m)),i.setSourceContent(m,h))}),i;function p(m,h){if(m===null||m.source===void 0)i.add(h);else{var g=n?Tu.join(n,m.source):m.source;i.add(new Vt(m.originalLine,m.originalColumn,g,h,m.name))}}};Vt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[js]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Vt.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[js]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Vt.prototype.walk=function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[js]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Vt.prototype.join=function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this};Vt.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[js]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};Vt.prototype.setSourceContent=function(t,r){this.sourceContents[Tu.toSetString(t)]=r};Vt.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][js]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Tu.fromSetString(i[r]),this.sourceContents[i[r]])};Vt.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};Vt.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new sW(t),i=!1,s=null,o=null,a=null,c=null;return this.walk(function(l,u){r.code+=l,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||o!==u.line||a!==u.column||c!==u.name)&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:r.line,column:r.column},name:u.name}),s=u.source,o=u.line,a=u.column,c=u.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,m=l.length;p<m;p++)l.charCodeAt(p)===aW?(r.line++,r.column=0,p+1===m?(s=null,i=!1):i&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:r.line,column:r.column},name:u.name})):r.column++}),this.walkSourceContents(function(l,u){n.setSourceContent(l,u)}),{code:r.code,map:n}};HI.SourceNode=Vt});var WI=d(Cu=>{Cu.SourceMapGenerator=BS().SourceMapGenerator;Cu.SourceMapConsumer=VI().SourceMapConsumer;Cu.SourceNode=KI().SourceNode});var JI=d((JOe,YI)=>{var cW=Object.prototype.toString,KS=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function lW(e){return cW.call(e).slice(8,-1)==="ArrayBuffer"}function uW(e,t,r){t>>>=0;var n=e.byteLength-t;if(n<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=n;else if(r>>>=0,r>n)throw new RangeError("'length' is out of bounds");return KS?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function dW(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return KS?Buffer.from(e,t):new Buffer(e,t)}function fW(e,t,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return lW(e)?uW(e,t,r):typeof e=="string"?dW(e,t):KS?Buffer.from(e):new Buffer(e)}YI.exports=fW});var i1=d((Fi,QS)=>{var mW=WI().SourceMapConsumer,WS=require("path"),Ir;try{Ir=require("fs"),(!Ir.existsSync||!Ir.readFileSync)&&(Ir=null)}catch{}var pW=JI();function QI(e,t){return e.require(t)}var XI=!1,ZI=!1,YS=!1,ha="auto",ki={},ya={},_W=/^data:application\/json[^,]+base64,/,ei=[],ti=[];function XS(){return ha==="browser"?!0:ha==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function hW(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function yW(){return typeof process=="object"&&process!==null?process.version:""}function gW(){if(typeof process=="object"&&process!==null)return process.stderr}function vW(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function xu(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var ZS=xu(ei);ei.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(n,i){return i?"":"/"})),e in ki)return ki[e];var t="";try{if(Ir)Ir.existsSync(e)&&(t=Ir.readFileSync(e,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),r.readyState===4&&r.status===200&&(t=r.responseText)}}catch{}return ki[e]=t});function JS(e,t){if(!e)return t;var r=WS.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",s=r.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+WS.resolve(r.slice(i.length),t).replace(/\\/g,"/")):i+WS.resolve(r.slice(i.length),t)}function SW(e){var t;if(XS())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=r.readyState===4?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch{}t=ZS(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,o;o=i.exec(t);)s=o;return s?s[1]:null}var ew=xu(ti);ti.push(function(e){var t=SW(e);if(!t)return null;var r;if(_W.test(t)){var n=t.slice(t.indexOf(",")+1);r=pW(n,"base64").toString(),t=e}else t=JS(e,t),r=ZS(t);return r?{url:t,map:r}:null});function tw(e){var t=ya[e.source];if(!t){var r=ew(e.source);r?(t=ya[e.source]={url:r.url,map:new mW(r.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var o=t.map.sourcesContent[s];if(o){var a=JS(t.url,i);ki[a]=o}})):t=ya[e.source]={url:null,map:null}}if(t&&t.map&&typeof t.map.originalPositionFor=="function"){var n=t.map.originalPositionFor(e);if(n.source!==null)return n.source=JS(t.url,n.source),n}return e}function t1(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=tw({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return t=/^eval at ([^(]+) \((.+)\)$/.exec(e),t?"eval at "+t[1]+" ("+t1(t[2])+")":e}function wW(){var e,t="";if(this.isNative())t="native";else{e=this.getScriptNameOrSourceURL(),!e&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),e?t+=e:t+="<anonymous>";var r=this.getLineNumber();if(r!=null){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",s=this.getFunctionName(),o=!0,a=this.isConstructor(),c=!(this.isToplevel()||a);if(c){var l=this.getTypeName();l==="[object Object]"&&(l="null");var u=this.getMethodName();s?(l&&s.indexOf(l)!=0&&(i+=l+"."),i+=s,u&&s.indexOf("."+u)!=s.length-u.length-1&&(i+=" [as "+u+"]")):i+=l+"."+(u||"<anonymous>")}else a?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function e1(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]}),t.toString=wW,t}function r1(e,t){if(t===void 0&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,s=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,o=s.test(yW())?0:62;n===1&&i>o&&!XS()&&!e.isEval()&&(i-=o);var a=tw({source:r,line:n,column:i});t.curPosition=a,e=e1(e);var c=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?c():t.nextPosition.name||c()},e.getFileName=function(){return a.source},e.getLineNumber=function(){return a.line},e.getColumnNumber=function(){return a.column+1},e.getScriptNameOrSourceURL=function(){return a.source},e}var l=e.isEval()&&e.getEvalOrigin();return l&&(l=t1(l),e=e1(e),e.getEvalOrigin=function(){return l}),e}function EW(e,t){YS&&(ki={},ya={});for(var r=e.name||"Error",n=e.message||"",i=r+": "+n,s={nextPosition:null,curPosition:null},o=[],a=t.length-1;a>=0;a--)o.push(`
2
+ at `+r1(t[a],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,i+o.reverse().join("")}function n1(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],n=+t[2],i=+t[3],s=ki[r];if(!s&&Ir&&Ir.existsSync(r))try{s=Ir.readFileSync(r,"utf8")}catch{s=""}if(s){var o=s.split(/(?:\r\n|\r|\n)/)[n-1];if(o)return r+":"+n+`
3
3
  `+o+`
4
- `+new Array(i).join(" ")+"^"}}return null}function AF(e){var t=dA(e),r=vF();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),SF(1)}function TF(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var r=arguments[1]&&arguments[1].stack,n=this.listeners(t).length>0;if(r&&!n)return AF(arguments[1])}return e.apply(this,arguments)}}var CF=Cn.slice(0),xF=xn.slice(0);ui.wrapCallSite=uA;ui.getErrorSource=dA;ui.mapSourcePosition=uy;ui.retrieveSourceMap=ly;ui.install=function(e){if(e=e||{},e.environment&&(vo=e.environment,["node","browser","auto"].indexOf(vo)===-1))throw new Error("environment "+vo+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Cn.length=0),Cn.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(xn.length=0),xn.unshift(e.retrieveSourceMap)),e.hookRequire&&!ay()){var t=sA(oy,"module"),r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(s,o){return li[o]=s,So[o]=void 0,r.call(this,s,o)},t.prototype._compile.__sourceMapSupport=!0)}if(iy||(iy="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),oA||(oA=!0,Error.prepareStackTrace=EF),!aA){var n="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=sA(oy,"worker_threads");i.isMainThread===!1&&(n=!1)}catch{}n&&yF()&&(aA=!0,TF())}};ui.resetRetrieveHandlers=function(){Cn.length=0,xn.length=0,Cn=CF.slice(0),xn=xF.slice(0),ly=Vc(xn),cy=Vc(Cn)}});var dy=f(()=>{fA().install()});var K=f((_ve,Wc)=>{var pA,hA,_A,yA,gA,vA,SA,wA,bA,Kc,fy,EA,AA,TA,Zi,CA,xA,IA,RA,DA,PA,NA,OA,LA,Hc;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Wc=="object"&&typeof Wc.exports=="object"?e(r(t,r(Wc.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(s,o){return n[s]=i?i(s,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])};pA=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function s(){this.constructor=n}n.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)},hA=Object.assign||function(n){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},_A=function(n,i){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(n);a<o.length;a++)i.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(n,o[a])&&(s[o[a]]=n[o[a]]);return s},yA=function(n,i,s,o){var a=arguments.length,c=a<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,s):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,i,s,o);else for(var d=n.length-1;d>=0;d--)(u=n[d])&&(c=(a<3?u(c):a>3?u(i,s,c):u(i,s))||c);return a>3&&c&&Object.defineProperty(i,s,c),c},gA=function(n,i){return function(s,o){i(s,o,n)}},vA=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},SA=function(n,i,s,o){function a(c){return c instanceof s?c:new s(function(u){u(c)})}return new(s||(s=Promise))(function(c,u){function d(_){try{m(o.next(_))}catch(g){u(g)}}function p(_){try{m(o.throw(_))}catch(g){u(g)}}function m(_){_.done?c(_.value):a(_.value).then(d,p)}m((o=o.apply(n,i||[])).next())})},wA=function(n,i){var s={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,a,c,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(m){return function(_){return p([m,_])}}function p(m){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,a&&(c=m[0]&2?a.return:m[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,m[1])).done)return c;switch(a=0,c&&(m=[m[0]&2,c.value]),m[0]){case 0:case 1:c=m;break;case 4:return s.label++,{value:m[1],done:!1};case 5:s.label++,a=m[1],m=[0];continue;case 7:m=s.ops.pop(),s.trys.pop();continue;default:if(c=s.trys,!(c=c.length>0&&c[c.length-1])&&(m[0]===6||m[0]===2)){s=0;continue}if(m[0]===3&&(!c||m[1]>c[0]&&m[1]<c[3])){s.label=m[1];break}if(m[0]===6&&s.label<c[1]){s.label=c[1],c=m;break}if(c&&s.label<c[2]){s.label=c[2],s.ops.push(m);break}c[2]&&s.ops.pop(),s.trys.pop();continue}m=i.call(n,s)}catch(_){m=[6,_],a=0}finally{o=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},bA=function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&Hc(i,n,s)},Hc=Object.create?function(n,i,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,o,a)}:function(n,i,s,o){o===void 0&&(o=s),n[o]=i[s]},Kc=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&n[i],o=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},fy=function(n,i){var s=typeof Symbol=="function"&&n[Symbol.iterator];if(!s)return n;var o=s.call(n),a,c=[],u;try{for(;(i===void 0||i-- >0)&&!(a=o.next()).done;)c.push(a.value)}catch(d){u={error:d}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(u)throw u.error}}return c},EA=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(fy(arguments[i]));return n},AA=function(){for(var n=0,i=0,s=arguments.length;i<s;i++)n+=arguments[i].length;for(var o=Array(n),a=0,i=0;i<s;i++)for(var c=arguments[i],u=0,d=c.length;u<d;u++,a++)o[a]=c[u];return o},TA=function(n,i,s){if(s||arguments.length===2)for(var o=0,a=i.length,c;o<a;o++)(c||!(o in i))&&(c||(c=Array.prototype.slice.call(i,0,o)),c[o]=i[o]);return n.concat(c||Array.prototype.slice.call(i))},Zi=function(n){return this instanceof Zi?(this.v=n,this):new Zi(n)},CA=function(n,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s.apply(n,i||[]),a,c=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(y){o[y]&&(a[y]=function(A){return new Promise(function(I,T){c.push([y,A,I,T])>1||d(y,A)})})}function d(y,A){try{p(o[y](A))}catch(I){g(c[0][3],I)}}function p(y){y.value instanceof Zi?Promise.resolve(y.value.v).then(m,_):g(c[0][2],y)}function m(y){d("next",y)}function _(y){d("throw",y)}function g(y,A){y(A),c.shift(),c.length&&d(c[0][0],c[0][1])}},xA=function(n){var i,s;return i={},o("next"),o("throw",function(a){throw a}),o("return"),i[Symbol.iterator]=function(){return this},i;function o(a,c){i[a]=n[a]?function(u){return(s=!s)?{value:Zi(n[a](u)),done:a==="return"}:c?c(u):u}:c}},IA=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],s;return i?i.call(n):(n=typeof Kc=="function"?Kc(n):n[Symbol.iterator](),s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s);function o(c){s[c]=n[c]&&function(u){return new Promise(function(d,p){u=n[c](u),a(d,p,u.done,u.value)})}}function a(c,u,d,p){Promise.resolve(p).then(function(m){c({value:m,done:d})},u)}},RA=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};DA=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&Hc(i,n,s);return r(i,n),i},PA=function(n){return n&&n.__esModule?n:{default:n}},NA=function(n,i,s,o){if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!o:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?o:s==="a"?o.call(n):o?o.value:i.get(n)},OA=function(n,i,s,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(n,s):a?a.value=s:i.set(n,s),s},LA=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",pA),e("__assign",hA),e("__rest",_A),e("__decorate",yA),e("__param",gA),e("__metadata",vA),e("__awaiter",SA),e("__generator",wA),e("__exportStar",bA),e("__createBinding",Hc),e("__values",Kc),e("__read",fy),e("__spread",EA),e("__spreadArrays",AA),e("__spreadArray",TA),e("__await",Zi),e("__asyncGenerator",CA),e("__asyncDelegator",xA),e("__asyncValues",IA),e("__makeTemplateObject",RA),e("__importStar",DA),e("__importDefault",PA),e("__classPrivateFieldGet",NA),e("__classPrivateFieldSet",OA),e("__classPrivateFieldIn",LA)})});var my=f(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.deserializerMiddleware=void 0;var IF=(e,t)=>(r,n)=>async i=>{let{response:s}=await r(i);try{let o=await t(s,e);return{response:s,output:o}}catch(o){throw Object.defineProperty(o,"$response",{value:s}),o}};Yc.deserializerMiddleware=IF});var py=f(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.serializerMiddleware=void 0;var RF=(e,t)=>(r,n)=>async i=>{let s=await t(i.input,e);return r({...i,request:s})};Jc.serializerMiddleware=RF});var qA=f(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.getSerdePlugin=gr.serializerMiddlewareOption=gr.deserializerMiddlewareOption=void 0;var DF=my(),PF=py();gr.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};gr.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function NF(e,t,r){return{applyToStack:n=>{n.add((0,DF.deserializerMiddleware)(e,r),gr.deserializerMiddlewareOption),n.add((0,PF.serializerMiddleware)(e,t),gr.serializerMiddlewareOption)}}}gr.getSerdePlugin=NF});var B=f(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});var hy=K();hy.__exportStar(my(),wo);hy.__exportStar(qA(),wo);hy.__exportStar(py(),wo)});var jA=f(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.constructStack=void 0;var OF=()=>{let e=[],t=[],r=new Set,n=d=>d.sort((p,m)=>MA[m.step]-MA[p.step]||zA[m.priority||"normal"]-zA[p.priority||"normal"]),i=d=>{let p=!1,m=_=>_.name&&_.name===d?(p=!0,r.delete(d),!1):!0;return e=e.filter(m),t=t.filter(m),p},s=d=>{let p=!1,m=_=>_.middleware===d?(p=!0,_.name&&r.delete(_.name),!1):!0;return e=e.filter(m),t=t.filter(m),p},o=d=>(e.forEach(p=>{d.add(p.middleware,{...p})}),t.forEach(p=>{d.addRelativeTo(p.middleware,{...p})}),d),a=d=>{let p=[];return d.before.forEach(m=>{m.before.length===0&&m.after.length===0?p.push(m):p.push(...a(m))}),p.push(d),d.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?p.push(m):p.push(...a(m))}),p},c=()=>{let d=[],p=[],m={};return e.forEach(g=>{let y={...g,before:[],after:[]};y.name&&(m[y.name]=y),d.push(y)}),t.forEach(g=>{let y={...g,before:[],after:[]};y.name&&(m[y.name]=y),p.push(y)}),p.forEach(g=>{if(g.toMiddleware){let y=m[g.toMiddleware];if(y===void 0)throw new Error(`${g.toMiddleware} is not found when adding ${g.name||"anonymous"} middleware ${g.relation} ${g.toMiddleware}`);g.relation==="after"&&y.after.push(g),g.relation==="before"&&y.before.push(g)}}),n(d).map(a).reduce((g,y)=>(g.push(...y),g),[]).map(g=>g.middleware)},u={add:(d,p={})=>{let{name:m,override:_}=p,g={step:"initialize",priority:"normal",middleware:d,...p};if(m){if(r.has(m)){if(!_)throw new Error(`Duplicate middleware name '${m}'`);let y=e.findIndex(I=>I.name===m),A=e[y];if(A.step!==g.step||A.priority!==g.priority)throw new Error(`"${m}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by same-name middleware with ${g.priority} priority in ${g.step} step.`);e.splice(y,1)}r.add(m)}e.push(g)},addRelativeTo:(d,p)=>{let{name:m,override:_}=p,g={middleware:d,...p};if(m){if(r.has(m)){if(!_)throw new Error(`Duplicate middleware name '${m}'`);let y=t.findIndex(I=>I.name===m),A=t[y];if(A.toMiddleware!==g.toMiddleware||A.relation!==g.relation)throw new Error(`"${m}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by same-name middleware ${g.relation} "${g.toMiddleware}" middleware.`);t.splice(y,1)}r.add(m)}t.push(g)},clone:()=>o((0,es.constructStack)()),use:d=>{d.applyToStack(u)},remove:d=>typeof d=="string"?i(d):s(d),removeByTag:d=>{let p=!1,m=_=>{let{tags:g,name:y}=_;return g&&g.includes(d)?(y&&r.delete(y),p=!0,!1):!0};return e=e.filter(m),t=t.filter(m),p},concat:d=>{let p=o((0,es.constructStack)());return p.use(d),p},applyToStack:o,resolve:(d,p)=>{for(let m of c().reverse())d=m(d,p);return d}};return u};es.constructStack=OF;var MA={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},zA={high:3,normal:2,low:1}});var yy=f(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var LF=K();LF.__exportStar(jA(),_y)});var kA=f(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.Client=void 0;var qF=yy(),gy=class{constructor(t){this.middlewareStack=(0,qF.constructStack)(),this.config=t}send(t,r,n){let i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,o=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(t).then(a=>s(null,a.output),a=>s(a)).catch(()=>{});else return o(t).then(a=>a.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};Qc.Client=gy});var UA=f(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.Command=void 0;var MF=yy(),vy=class{constructor(){this.middlewareStack=(0,MF.constructStack)()}};Xc.Command=vy});var FA=f(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.SENSITIVE_STRING=void 0;Zc.SENSITIVE_STRING="***SensitiveInformation***"});var wy=f(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.strictParseByte=M.strictParseShort=M.strictParseInt32=M.strictParseInt=M.strictParseLong=M.limitedParseFloat32=M.limitedParseFloat=M.handleFloat=M.limitedParseDouble=M.strictParseFloat32=M.strictParseFloat=M.strictParseDouble=M.expectUnion=M.expectString=M.expectObject=M.expectNonNull=M.expectByte=M.expectShort=M.expectInt32=M.expectInt=M.expectLong=M.expectFloat32=M.expectNumber=M.expectBoolean=M.parseBoolean=void 0;var zF=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};M.parseBoolean=zF;var jF=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};M.expectBoolean=jF;var kF=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};M.expectNumber=kF;var UF=Math.ceil(2**127*(2-2**-23)),FF=e=>{let t=(0,M.expectNumber)(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>UF)throw new TypeError(`Expected 32-bit float, got ${e}`);return t};M.expectFloat32=FF;var BF=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}`)}};M.expectLong=BF;M.expectInt=M.expectLong;var GF=e=>Sy(e,32);M.expectInt32=GF;var $F=e=>Sy(e,16);M.expectShort=$F;var VF=e=>Sy(e,8);M.expectByte=VF;var Sy=(e,t)=>{let r=(0,M.expectLong)(e);if(r!==void 0&&KF(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},KF=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},HF=(e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e};M.expectNonNull=HF;var WF=e=>{if(e!=null){if(typeof e=="object"&&!Array.isArray(e))return e;throw new TypeError(`Expected object, got ${typeof e}`)}};M.expectObject=WF;var YF=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};M.expectString=YF;var JF=e=>{if(e==null)return;let t=(0,M.expectObject)(e),r=Object.entries(t).filter(([n,i])=>i!=null).map(([n,i])=>n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return t};M.expectUnion=JF;var QF=e=>typeof e=="string"?(0,M.expectNumber)(ts(e)):(0,M.expectNumber)(e);M.strictParseDouble=QF;M.strictParseFloat=M.strictParseDouble;var XF=e=>typeof e=="string"?(0,M.expectFloat32)(ts(e)):(0,M.expectFloat32)(e);M.strictParseFloat32=XF;var ZF=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,ts=e=>{let t=e.match(ZF);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},eB=e=>typeof e=="string"?BA(e):(0,M.expectNumber)(e);M.limitedParseDouble=eB;M.handleFloat=M.limitedParseDouble;M.limitedParseFloat=M.limitedParseDouble;var tB=e=>typeof e=="string"?BA(e):(0,M.expectFloat32)(e);M.limitedParseFloat32=tB;var BA=e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},rB=e=>typeof e=="string"?(0,M.expectLong)(ts(e)):(0,M.expectLong)(e);M.strictParseLong=rB;M.strictParseInt=M.strictParseLong;var nB=e=>typeof e=="string"?(0,M.expectInt32)(ts(e)):(0,M.expectInt32)(e);M.strictParseInt32=nB;var iB=e=>typeof e=="string"?(0,M.expectShort)(ts(e)):(0,M.expectShort)(e);M.strictParseShort=iB;var sB=e=>typeof e=="string"?(0,M.expectByte)(ts(e)):(0,M.expectByte)(e);M.strictParseByte=sB});var GA=f(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.parseEpochTimestamp=vr.parseRfc7231DateTime=vr.parseRfc3339DateTime=vr.dateToUtcString=void 0;var di=wy(),oB=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ey=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function aB(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,u=s<10?`0${s}`:`${s}`,d=o<10?`0${o}`:`${o}`,p=a<10?`0${a}`:`${a}`;return`${oB[n]}, ${c} ${Ey[r]} ${t} ${u}:${d}:${p} GMT`}vr.dateToUtcString=aB;var cB=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),lB=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=cB.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,i,s,o,a,c,u]=t,d=(0,di.strictParseShort)(bo(n)),p=In(i,"month",1,12),m=In(s,"day",1,31);return el(d,p,m,{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u})};vr.parseRfc3339DateTime=lB;var uB=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),dB=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),fB=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),mB=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=uB.exec(e);if(t){let[r,n,i,s,o,a,c,u]=t;return el((0,di.strictParseShort)(bo(s)),by(i),In(n,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u})}if(t=dB.exec(e),t){let[r,n,i,s,o,a,c,u]=t;return yB(el(hB(s),by(i),In(n,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u}))}if(t=fB.exec(e),t){let[r,n,i,s,o,a,c,u]=t;return el((0,di.strictParseShort)(bo(u)),by(n),In(i.trimLeft(),"day",1,31),{hours:s,minutes:o,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};vr.parseRfc7231DateTime=mB;var pB=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=(0,di.strictParseDouble)(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))};vr.parseEpochTimestamp=pB;var el=(e,t,r,n)=>{let i=t-1;return vB(e,i,r),new Date(Date.UTC(e,i,r,In(n.hours,"hour",0,23),In(n.minutes,"minute",0,59),In(n.seconds,"seconds",0,60),wB(n.fractionalMilliseconds)))},hB=e=>{let t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+(0,di.strictParseShort)(bo(e));return r<t?r+100:r},_B=50*365*24*60*60*1e3,yB=e=>e.getTime()-new Date().getTime()>_B?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,by=e=>{let t=Ey.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},gB=[31,28,31,30,31,30,31,31,30,31,30,31],vB=(e,t,r)=>{let n=gB[t];if(t===1&&SB(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${Ey[t]} in ${e}: ${r}`)},SB=e=>e%4===0&&(e%100!==0||e%400===0),In=(e,t,r,n)=>{let i=(0,di.strictParseByte)(bo(e));if(i<r||i>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return i},wB=e=>e==null?0:(0,di.strictParseFloat32)("0."+e)*1e3,bo=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var $A=f(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.loadConfigsForDefaultMode=void 0;var bB=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};tl.loadConfigsForDefaultMode=bB});var KA=f(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.emitWarningIfUnsupportedVersion=void 0;var VA=!1,EB=e=>{e&&!VA&&parseInt(e.substring(1,e.indexOf(".")))<12&&(VA=!0,process.emitWarning(`The AWS SDK for JavaScript (v3) will
4
+ `+new Array(i).join(" ")+"^"}}return null}function bW(e){var t=n1(e),r=gW();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),vW(1)}function AW(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var r=arguments[1]&&arguments[1].stack,n=this.listeners(t).length>0;if(r&&!n)return bW(arguments[1])}return e.apply(this,arguments)}}var TW=ei.slice(0),CW=ti.slice(0);Fi.wrapCallSite=r1;Fi.getErrorSource=n1;Fi.mapSourcePosition=tw;Fi.retrieveSourceMap=ew;Fi.install=function(e){if(e=e||{},e.environment&&(ha=e.environment,["node","browser","auto"].indexOf(ha)===-1))throw new Error("environment "+ha+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(ei.length=0),ei.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(ti.length=0),ti.unshift(e.retrieveSourceMap)),e.hookRequire&&!XS()){var t=QI(QS,"module"),r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(s,o){return ki[o]=s,ya[o]=void 0,r.call(this,s,o)},t.prototype._compile.__sourceMapSupport=!0)}if(YS||(YS="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),XI||(XI=!0,Error.prepareStackTrace=EW),!ZI){var n="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=QI(QS,"worker_threads");i.isMainThread===!1&&(n=!1)}catch{}n&&hW()&&(ZI=!0,AW())}};Fi.resetRetrieveHandlers=function(){ei.length=0,ti.length=0,ei=TW.slice(0),ti=CW.slice(0),ew=xu(ti),ZS=xu(ei)}});var rw=d(()=>{i1().install()});var M=d((ZOe,Pu)=>{var o1,a1,c1,l1,u1,d1,f1,m1,p1,Iu,nw,_1,h1,y1,zs,g1,v1,S1,w1,E1,b1,A1,T1,C1,Ru;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Pu=="object"&&typeof Pu.exports=="object"?e(r(t,r(Pu.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(s,o){return n[s]=i?i(s,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])};o1=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function s(){this.constructor=n}n.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)},a1=Object.assign||function(n){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},c1=function(n,i){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(n);a<o.length;a++)i.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(n,o[a])&&(s[o[a]]=n[o[a]]);return s},l1=function(n,i,s,o){var a=arguments.length,c=a<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,s):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,i,s,o);else for(var u=n.length-1;u>=0;u--)(l=n[u])&&(c=(a<3?l(c):a>3?l(i,s,c):l(i,s))||c);return a>3&&c&&Object.defineProperty(i,s,c),c},u1=function(n,i){return function(s,o){i(s,o,n)}},d1=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},f1=function(n,i,s,o){function a(c){return c instanceof s?c:new s(function(l){l(c)})}return new(s||(s=Promise))(function(c,l){function u(h){try{m(o.next(h))}catch(g){l(g)}}function p(h){try{m(o.throw(h))}catch(g){l(g)}}function m(h){h.done?c(h.value):a(h.value).then(u,p)}m((o=o.apply(n,i||[])).next())})},m1=function(n,i){var s={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,a,c,l;return l={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function u(m){return function(h){return p([m,h])}}function p(m){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,a&&(c=m[0]&2?a.return:m[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,m[1])).done)return c;switch(a=0,c&&(m=[m[0]&2,c.value]),m[0]){case 0:case 1:c=m;break;case 4:return s.label++,{value:m[1],done:!1};case 5:s.label++,a=m[1],m=[0];continue;case 7:m=s.ops.pop(),s.trys.pop();continue;default:if(c=s.trys,!(c=c.length>0&&c[c.length-1])&&(m[0]===6||m[0]===2)){s=0;continue}if(m[0]===3&&(!c||m[1]>c[0]&&m[1]<c[3])){s.label=m[1];break}if(m[0]===6&&s.label<c[1]){s.label=c[1],c=m;break}if(c&&s.label<c[2]){s.label=c[2],s.ops.push(m);break}c[2]&&s.ops.pop(),s.trys.pop();continue}m=i.call(n,s)}catch(h){m=[6,h],a=0}finally{o=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},p1=function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&Ru(i,n,s)},Ru=Object.create?function(n,i,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,o,a)}:function(n,i,s,o){o===void 0&&(o=s),n[o]=i[s]},Iu=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&n[i],o=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},nw=function(n,i){var s=typeof Symbol=="function"&&n[Symbol.iterator];if(!s)return n;var o=s.call(n),a,c=[],l;try{for(;(i===void 0||i-- >0)&&!(a=o.next()).done;)c.push(a.value)}catch(u){l={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(l)throw l.error}}return c},_1=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(nw(arguments[i]));return n},h1=function(){for(var n=0,i=0,s=arguments.length;i<s;i++)n+=arguments[i].length;for(var o=Array(n),a=0,i=0;i<s;i++)for(var c=arguments[i],l=0,u=c.length;l<u;l++,a++)o[a]=c[l];return o},y1=function(n,i,s){if(s||arguments.length===2)for(var o=0,a=i.length,c;o<a;o++)(c||!(o in i))&&(c||(c=Array.prototype.slice.call(i,0,o)),c[o]=i[o]);return n.concat(c||Array.prototype.slice.call(i))},zs=function(n){return this instanceof zs?(this.v=n,this):new zs(n)},g1=function(n,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s.apply(n,i||[]),a,c=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(y){o[y]&&(a[y]=function(w){return new Promise(function(C,T){c.push([y,w,C,T])>1||u(y,w)})})}function u(y,w){try{p(o[y](w))}catch(C){g(c[0][3],C)}}function p(y){y.value instanceof zs?Promise.resolve(y.value.v).then(m,h):g(c[0][2],y)}function m(y){u("next",y)}function h(y){u("throw",y)}function g(y,w){y(w),c.shift(),c.length&&u(c[0][0],c[0][1])}},v1=function(n){var i,s;return i={},o("next"),o("throw",function(a){throw a}),o("return"),i[Symbol.iterator]=function(){return this},i;function o(a,c){i[a]=n[a]?function(l){return(s=!s)?{value:zs(n[a](l)),done:a==="return"}:c?c(l):l}:c}},S1=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],s;return i?i.call(n):(n=typeof Iu=="function"?Iu(n):n[Symbol.iterator](),s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s);function o(c){s[c]=n[c]&&function(l){return new Promise(function(u,p){l=n[c](l),a(u,p,l.done,l.value)})}}function a(c,l,u,p){Promise.resolve(p).then(function(m){c({value:m,done:u})},l)}},w1=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};E1=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&Ru(i,n,s);return r(i,n),i},b1=function(n){return n&&n.__esModule?n:{default:n}},A1=function(n,i,s,o){if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!o:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?o:s==="a"?o.call(n):o?o.value:i.get(n)},T1=function(n,i,s,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(n,s):a?a.value=s:i.set(n,s),s},C1=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",o1),e("__assign",a1),e("__rest",c1),e("__decorate",l1),e("__param",u1),e("__metadata",d1),e("__awaiter",f1),e("__generator",m1),e("__exportStar",p1),e("__createBinding",Ru),e("__values",Iu),e("__read",nw),e("__spread",_1),e("__spreadArrays",h1),e("__spreadArray",y1),e("__await",zs),e("__asyncGenerator",g1),e("__asyncDelegator",v1),e("__asyncValues",S1),e("__makeTemplateObject",w1),e("__importStar",E1),e("__importDefault",b1),e("__classPrivateFieldGet",A1),e("__classPrivateFieldSet",T1),e("__classPrivateFieldIn",C1)})});var iw=d(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.deserializerMiddleware=void 0;var xW=(e,t)=>(r,n)=>async i=>{let{response:s}=await r(i);try{let o=await t(s,e);return{response:s,output:o}}catch(o){throw Object.defineProperty(o,"$response",{value:s}),o}};Ou.deserializerMiddleware=xW});var sw=d(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.serializerMiddleware=void 0;var IW=(e,t)=>(r,n)=>async i=>{let s=await t(i.input,e);return r({...i,request:s})};Nu.serializerMiddleware=IW});var x1=d(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.getSerdePlugin=Rr.serializerMiddlewareOption=Rr.deserializerMiddlewareOption=void 0;var RW=iw(),PW=sw();Rr.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};Rr.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function OW(e,t,r){return{applyToStack:n=>{n.add((0,RW.deserializerMiddleware)(e,r),Rr.deserializerMiddlewareOption),n.add((0,PW.serializerMiddleware)(e,t),Rr.serializerMiddlewareOption)}}}Rr.getSerdePlugin=OW});var U=d(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var ow=M();ow.__exportStar(iw(),ga);ow.__exportStar(x1(),ga);ow.__exportStar(sw(),ga)});var P1=d(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.constructStack=void 0;var NW=()=>{let e=[],t=[],r=new Set,n=u=>u.sort((p,m)=>I1[m.step]-I1[p.step]||R1[m.priority||"normal"]-R1[p.priority||"normal"]),i=u=>{let p=!1,m=h=>h.name&&h.name===u?(p=!0,r.delete(u),!1):!0;return e=e.filter(m),t=t.filter(m),p},s=u=>{let p=!1,m=h=>h.middleware===u?(p=!0,h.name&&r.delete(h.name),!1):!0;return e=e.filter(m),t=t.filter(m),p},o=u=>(e.forEach(p=>{u.add(p.middleware,{...p})}),t.forEach(p=>{u.addRelativeTo(p.middleware,{...p})}),u),a=u=>{let p=[];return u.before.forEach(m=>{m.before.length===0&&m.after.length===0?p.push(m):p.push(...a(m))}),p.push(u),u.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?p.push(m):p.push(...a(m))}),p},c=()=>{let u=[],p=[],m={};return e.forEach(g=>{let y={...g,before:[],after:[]};y.name&&(m[y.name]=y),u.push(y)}),t.forEach(g=>{let y={...g,before:[],after:[]};y.name&&(m[y.name]=y),p.push(y)}),p.forEach(g=>{if(g.toMiddleware){let y=m[g.toMiddleware];if(y===void 0)throw new Error(`${g.toMiddleware} is not found when adding ${g.name||"anonymous"} middleware ${g.relation} ${g.toMiddleware}`);g.relation==="after"&&y.after.push(g),g.relation==="before"&&y.before.push(g)}}),n(u).map(a).reduce((g,y)=>(g.push(...y),g),[]).map(g=>g.middleware)},l={add:(u,p={})=>{let{name:m,override:h}=p,g={step:"initialize",priority:"normal",middleware:u,...p};if(m){if(r.has(m)){if(!h)throw new Error(`Duplicate middleware name '${m}'`);let y=e.findIndex(C=>C.name===m),w=e[y];if(w.step!==g.step||w.priority!==g.priority)throw new Error(`"${m}" middleware with ${w.priority} priority in ${w.step} step cannot be overridden by same-name middleware with ${g.priority} priority in ${g.step} step.`);e.splice(y,1)}r.add(m)}e.push(g)},addRelativeTo:(u,p)=>{let{name:m,override:h}=p,g={middleware:u,...p};if(m){if(r.has(m)){if(!h)throw new Error(`Duplicate middleware name '${m}'`);let y=t.findIndex(C=>C.name===m),w=t[y];if(w.toMiddleware!==g.toMiddleware||w.relation!==g.relation)throw new Error(`"${m}" middleware ${w.relation} "${w.toMiddleware}" middleware cannot be overridden by same-name middleware ${g.relation} "${g.toMiddleware}" middleware.`);t.splice(y,1)}r.add(m)}t.push(g)},clone:()=>o((0,ks.constructStack)()),use:u=>{u.applyToStack(l)},remove:u=>typeof u=="string"?i(u):s(u),removeByTag:u=>{let p=!1,m=h=>{let{tags:g,name:y}=h;return g&&g.includes(u)?(y&&r.delete(y),p=!0,!1):!0};return e=e.filter(m),t=t.filter(m),p},concat:u=>{let p=o((0,ks.constructStack)());return p.use(u),p},applyToStack:o,resolve:(u,p)=>{for(let m of c().reverse())u=m(u,p);return u}};return l};ks.constructStack=NW;var I1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},R1={high:3,normal:2,low:1}});var cw=d(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0});var DW=M();DW.__exportStar(P1(),aw)});var O1=d(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.Client=void 0;var qW=cw(),lw=class{constructor(t){this.middlewareStack=(0,qW.constructStack)(),this.config=t}send(t,r,n){let i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,o=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(t).then(a=>s(null,a.output),a=>s(a)).catch(()=>{});else return o(t).then(a=>a.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};Du.Client=lw});var N1=d(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.Command=void 0;var LW=cw(),uw=class{constructor(){this.middlewareStack=(0,LW.constructStack)()}};qu.Command=uw});var D1=d(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.SENSITIVE_STRING=void 0;Lu.SENSITIVE_STRING="***SensitiveInformation***"});var fw=d(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.strictParseByte=j.strictParseShort=j.strictParseInt32=j.strictParseInt=j.strictParseLong=j.limitedParseFloat32=j.limitedParseFloat=j.handleFloat=j.limitedParseDouble=j.strictParseFloat32=j.strictParseFloat=j.strictParseDouble=j.expectUnion=j.expectString=j.expectObject=j.expectNonNull=j.expectByte=j.expectShort=j.expectInt32=j.expectInt=j.expectLong=j.expectFloat32=j.expectNumber=j.expectBoolean=j.parseBoolean=void 0;var MW=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};j.parseBoolean=MW;var jW=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};j.expectBoolean=jW;var zW=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};j.expectNumber=zW;var kW=Math.ceil(2**127*(2-2**-23)),FW=e=>{let t=(0,j.expectNumber)(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>kW)throw new TypeError(`Expected 32-bit float, got ${e}`);return t};j.expectFloat32=FW;var UW=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}`)}};j.expectLong=UW;j.expectInt=j.expectLong;var BW=e=>dw(e,32);j.expectInt32=BW;var GW=e=>dw(e,16);j.expectShort=GW;var $W=e=>dw(e,8);j.expectByte=$W;var dw=(e,t)=>{let r=(0,j.expectLong)(e);if(r!==void 0&&VW(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},VW=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},HW=(e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e};j.expectNonNull=HW;var KW=e=>{if(e!=null){if(typeof e=="object"&&!Array.isArray(e))return e;throw new TypeError(`Expected object, got ${typeof e}`)}};j.expectObject=KW;var WW=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};j.expectString=WW;var YW=e=>{if(e==null)return;let t=(0,j.expectObject)(e),r=Object.entries(t).filter(([n,i])=>i!=null).map(([n,i])=>n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return t};j.expectUnion=YW;var JW=e=>typeof e=="string"?(0,j.expectNumber)(Fs(e)):(0,j.expectNumber)(e);j.strictParseDouble=JW;j.strictParseFloat=j.strictParseDouble;var QW=e=>typeof e=="string"?(0,j.expectFloat32)(Fs(e)):(0,j.expectFloat32)(e);j.strictParseFloat32=QW;var XW=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Fs=e=>{let t=e.match(XW);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},ZW=e=>typeof e=="string"?q1(e):(0,j.expectNumber)(e);j.limitedParseDouble=ZW;j.handleFloat=j.limitedParseDouble;j.limitedParseFloat=j.limitedParseDouble;var e8=e=>typeof e=="string"?q1(e):(0,j.expectFloat32)(e);j.limitedParseFloat32=e8;var q1=e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},t8=e=>typeof e=="string"?(0,j.expectLong)(Fs(e)):(0,j.expectLong)(e);j.strictParseLong=t8;j.strictParseInt=j.strictParseLong;var r8=e=>typeof e=="string"?(0,j.expectInt32)(Fs(e)):(0,j.expectInt32)(e);j.strictParseInt32=r8;var n8=e=>typeof e=="string"?(0,j.expectShort)(Fs(e)):(0,j.expectShort)(e);j.strictParseShort=n8;var i8=e=>typeof e=="string"?(0,j.expectByte)(Fs(e)):(0,j.expectByte)(e);j.strictParseByte=i8});var L1=d(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.parseEpochTimestamp=Pr.parseRfc7231DateTime=Pr.parseRfc3339DateTime=Pr.dateToUtcString=void 0;var Ui=fw(),s8=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],pw=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function o8(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,l=s<10?`0${s}`:`${s}`,u=o<10?`0${o}`:`${o}`,p=a<10?`0${a}`:`${a}`;return`${s8[n]}, ${c} ${pw[r]} ${t} ${l}:${u}:${p} GMT`}Pr.dateToUtcString=o8;var a8=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),c8=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=a8.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,i,s,o,a,c,l]=t,u=(0,Ui.strictParseShort)(va(n)),p=ri(i,"month",1,12),m=ri(s,"day",1,31);return Mu(u,p,m,{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})};Pr.parseRfc3339DateTime=c8;var l8=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),u8=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),d8=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),f8=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=l8.exec(e);if(t){let[r,n,i,s,o,a,c,l]=t;return Mu((0,Ui.strictParseShort)(va(s)),mw(i),ri(n,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}if(t=u8.exec(e),t){let[r,n,i,s,o,a,c,l]=t;return h8(Mu(p8(s),mw(i),ri(n,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l}))}if(t=d8.exec(e),t){let[r,n,i,s,o,a,c,l]=t;return Mu((0,Ui.strictParseShort)(va(l)),mw(n),ri(i.trimLeft(),"day",1,31),{hours:s,minutes:o,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};Pr.parseRfc7231DateTime=f8;var m8=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=(0,Ui.strictParseDouble)(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))};Pr.parseEpochTimestamp=m8;var Mu=(e,t,r,n)=>{let i=t-1;return g8(e,i,r),new Date(Date.UTC(e,i,r,ri(n.hours,"hour",0,23),ri(n.minutes,"minute",0,59),ri(n.seconds,"seconds",0,60),S8(n.fractionalMilliseconds)))},p8=e=>{let t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+(0,Ui.strictParseShort)(va(e));return r<t?r+100:r},_8=50*365*24*60*60*1e3,h8=e=>e.getTime()-new Date().getTime()>_8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,mw=e=>{let t=pw.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},y8=[31,28,31,30,31,30,31,31,30,31,30,31],g8=(e,t,r)=>{let n=y8[t];if(t===1&&v8(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${pw[t]} in ${e}: ${r}`)},v8=e=>e%4===0&&(e%100!==0||e%400===0),ri=(e,t,r,n)=>{let i=(0,Ui.strictParseByte)(va(e));if(i<r||i>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return i},S8=e=>e==null?0:(0,Ui.strictParseFloat32)("0."+e)*1e3,va=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var M1=d(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.loadConfigsForDefaultMode=void 0;var w8=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};ju.loadConfigsForDefaultMode=w8});var z1=d(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.emitWarningIfUnsupportedVersion=void 0;var j1=!1,E8=e=>{e&&!j1&&parseInt(e.substring(1,e.indexOf(".")))<12&&(j1=!0,process.emitWarning(`The AWS SDK for JavaScript (v3) will
5
5
  no longer support Node.js ${e} as of January 1, 2022.
6
6
  To continue receiving updates to AWS services, bug fixes, and security
7
7
  updates please upgrade to Node.js 12.x or later.
8
8
 
9
- More information can be found at: https://a.co/1l6FLnu`,"NodeDeprecationWarning"))};rl.emitWarningIfUnsupportedVersion=EB});var HA=f(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.decorateServiceException=rs.ServiceException=void 0;var Eo=class extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,Eo.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}};rs.ServiceException=Eo;var AB=(e,t={})=>{Object.entries(t).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(e[n]==null||e[n]==="")&&(e[n]=i)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e};rs.decorateServiceException=AB});var WA=f(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.extendedEncodeURIComponent=void 0;function TB(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}nl.extendedEncodeURIComponent=TB});var YA=f(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.getArrayIfSingleItem=void 0;var CB=e=>Array.isArray(e)?e:[e];il.getArrayIfSingleItem=CB});var JA=f(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.getValueFromTextNode=void 0;var xB=e=>{let t="#text";for(let r in e)e.hasOwnProperty(r)&&e[r][t]!==void 0?e[r]=e[r][t]:typeof e[r]=="object"&&e[r]!==null&&(e[r]=(0,Ao.getValueFromTextNode)(e[r]));return e};Ao.getValueFromTextNode=xB});var QA=f(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.LazyJsonString=Sr.StringWrapper=void 0;var IB=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),r=new t;return Object.setPrototypeOf(r,e.prototype),r};Sr.StringWrapper=IB;Sr.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:Sr.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Sr.StringWrapper,String);var fi=class extends Sr.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof fi?t:t instanceof String||typeof t=="string"?new fi(t):new fi(JSON.stringify(t))}};Sr.LazyJsonString=fi});var XA=f(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.serializeFloat=void 0;var RB=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};sl.serializeFloat=RB});var ZA=f(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.splitEvery=void 0;function DB(e,t,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=e.split(t);if(r===1)return n;let i=[],s="";for(let o=0;o<n.length;o++)s===""?s=n[o]:s+=t+n[o],(o+1)%r===0&&(i.push(s),s="");return s!==""&&i.push(s),i}ol.splitEvery=DB});var O=f(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});var bt=K();bt.__exportStar(kA(),dt);bt.__exportStar(UA(),dt);bt.__exportStar(FA(),dt);bt.__exportStar(GA(),dt);bt.__exportStar($A(),dt);bt.__exportStar(KA(),dt);bt.__exportStar(HA(),dt);bt.__exportStar(WA(),dt);bt.__exportStar(YA(),dt);bt.__exportStar(JA(),dt);bt.__exportStar(QA(),dt);bt.__exportStar(wy(),dt);bt.__exportStar(XA(),dt);bt.__exportStar(ZA(),dt)});var cl=f(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.DynamoDBServiceException=void 0;var PB=O(),To=class extends PB.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,To.prototype)}};al.DynamoDBServiceException=To});var W=f(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.ProvisionedThroughputOverride=l.CreateGlobalTableInput=l.Replica=l.CreateGlobalSecondaryIndexAction=l.TableNotFoundException=l.TableInUseException=l.LimitExceededException=l.CreateBackupOutput=l.CreateBackupInput=l.ContributorInsightsSummary=l.ContinuousBackupsUnavailableException=l.ContinuousBackupsDescription=l.PointInTimeRecoveryDescription=l.ConditionalCheckFailedException=l.BillingModeSummary=l.ItemCollectionSizeLimitExceededException=l.ResourceNotFoundException=l.ProvisionedThroughputExceededException=l.InvalidEndpointException=l.RequestLimitExceeded=l.InternalServerError=l.BatchStatementError=l.BatchStatementErrorCodeEnum=l.ConsumedCapacity=l.Capacity=l.BackupTypeFilter=l.BackupSummary=l.BackupNotFoundException=l.BackupInUseException=l.BackupDescription=l.SourceTableFeatureDetails=l.TimeToLiveDescription=l.StreamSpecification=l.SSEDescription=l.LocalSecondaryIndexInfo=l.GlobalSecondaryIndexInfo=l.Projection=l.SourceTableDetails=l.ProvisionedThroughput=l.KeySchemaElement=l.BackupDetails=l.BackupType=l.AutoScalingSettingsUpdate=l.AutoScalingSettingsDescription=l.AutoScalingPolicyUpdate=l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=l.AutoScalingPolicyDescription=l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=l.AttributeDefinition=l.ArchivalSummary=void 0;l.DescribeGlobalTableSettingsInput=l.GlobalTableNotFoundException=l.DescribeGlobalTableOutput=l.DescribeGlobalTableInput=l.ExportNotFoundException=l.DescribeExportOutput=l.ExportDescription=l.ExportStatus=l.ExportFormat=l.DescribeExportInput=l.DescribeEndpointsResponse=l.Endpoint=l.DescribeEndpointsRequest=l.DescribeContributorInsightsOutput=l.FailureException=l.DescribeContributorInsightsInput=l.DescribeContinuousBackupsOutput=l.DescribeContinuousBackupsInput=l.DescribeBackupOutput=l.DescribeBackupInput=l.DeleteTableOutput=l.DeleteTableInput=l.DeleteReplicationGroupMemberAction=l.DeleteReplicaAction=l.TransactionConflictException=l.DeleteGlobalSecondaryIndexAction=l.DeleteBackupOutput=l.DeleteBackupInput=l.ResourceInUseException=l.CreateTableOutput=l.TableDescription=l.RestoreSummary=l.LocalSecondaryIndexDescription=l.GlobalSecondaryIndexDescription=l.ProvisionedThroughputDescription=l.CreateTableInput=l.Tag=l.SSESpecification=l.LocalSecondaryIndex=l.GlobalSecondaryIndex=l.CreateReplicationGroupMemberAction=l.ReplicaGlobalSecondaryIndex=l.CreateReplicaAction=l.GlobalTableAlreadyExistsException=l.CreateGlobalTableOutput=l.GlobalTableDescription=l.ReplicaDescription=l.TableClassSummary=l.TableClass=l.ReplicaGlobalSecondaryIndexDescription=void 0;l.PointInTimeRecoverySpecification=l.UntagResourceInput=l.TagResourceInput=l.RestoreTableToPointInTimeOutput=l.RestoreTableToPointInTimeInput=l.InvalidRestoreTimeException=l.TableAlreadyExistsException=l.RestoreTableFromBackupOutput=l.RestoreTableFromBackupInput=l.ListTagsOfResourceOutput=l.ListTagsOfResourceInput=l.ListTablesOutput=l.ListTablesInput=l.ListGlobalTablesOutput=l.GlobalTable=l.ListGlobalTablesInput=l.ListExportsOutput=l.ExportSummary=l.ListExportsInput=l.ListContributorInsightsOutput=l.ListContributorInsightsInput=l.ListBackupsOutput=l.ListBackupsInput=l.PointInTimeRecoveryUnavailableException=l.InvalidExportTimeException=l.ExportTableToPointInTimeOutput=l.ExportTableToPointInTimeInput=l.ExportConflictException=l.TransactionInProgressException=l.IdempotentParameterMismatchException=l.DuplicateItemException=l.KinesisStreamingDestinationOutput=l.KinesisStreamingDestinationInput=l.DescribeTimeToLiveOutput=l.DescribeTimeToLiveInput=l.DescribeTableReplicaAutoScalingOutput=l.TableAutoScalingDescription=l.ReplicaAutoScalingDescription=l.ReplicaGlobalSecondaryIndexAutoScalingDescription=l.DescribeTableReplicaAutoScalingInput=l.DescribeTableOutput=l.DescribeTableInput=l.DescribeLimitsOutput=l.DescribeLimitsInput=l.DescribeKinesisStreamingDestinationOutput=l.KinesisDataStreamDestination=l.DescribeKinesisStreamingDestinationInput=l.DescribeGlobalTableSettingsOutput=l.ReplicaSettingsDescription=l.ReplicaGlobalSecondaryIndexSettingsDescription=void 0;l.ExecuteTransactionOutput=l.ExecuteTransactionInput=l.BatchExecuteStatementOutput=l.BatchExecuteStatementInput=l.TransactGetItem=l.KeysAndAttributes=l.PutRequest=l.ParameterizedStatement=l.ItemResponse=l.ItemCollectionMetrics=l.GetItemOutput=l.GetItemInput=l.Get=l.ExecuteStatementInput=l.DeleteRequest=l.Condition=l.CancellationReason=l.BatchStatementResponse=l.BatchStatementRequest=l.AttributeValueUpdate=l.AttributeValue=l.UpdateTimeToLiveOutput=l.UpdateTimeToLiveInput=l.TimeToLiveSpecification=l.UpdateTableReplicaAutoScalingOutput=l.UpdateTableReplicaAutoScalingInput=l.ReplicaAutoScalingUpdate=l.ReplicaGlobalSecondaryIndexAutoScalingUpdate=l.GlobalSecondaryIndexAutoScalingUpdate=l.UpdateTableOutput=l.UpdateTableInput=l.ReplicationGroupUpdate=l.UpdateReplicationGroupMemberAction=l.GlobalSecondaryIndexUpdate=l.UpdateGlobalSecondaryIndexAction=l.UpdateGlobalTableSettingsOutput=l.UpdateGlobalTableSettingsInput=l.ReplicaSettingsUpdate=l.ReplicaGlobalSecondaryIndexSettingsUpdate=l.GlobalTableGlobalSecondaryIndexSettingsUpdate=l.IndexNotFoundException=l.UpdateGlobalTableOutput=l.UpdateGlobalTableInput=l.ReplicaUpdate=l.ReplicaNotFoundException=l.ReplicaAlreadyExistsException=l.UpdateContributorInsightsOutput=l.UpdateContributorInsightsInput=l.UpdateContinuousBackupsOutput=l.UpdateContinuousBackupsInput=void 0;l.TransactWriteItemsInput=l.TransactWriteItem=l.UpdateItemInput=l.BatchWriteItemOutput=l.QueryInput=l.PutItemInput=l.DeleteItemInput=l.BatchWriteItemInput=l.ScanInput=l.BatchGetItemOutput=l.WriteRequest=l.UpdateItemOutput=l.ScanOutput=l.QueryOutput=l.PutItemOutput=l.ExecuteStatementOutput=l.DeleteItemOutput=l.Update=l.Put=l.Delete=l.ConditionCheck=l.TransactWriteItemsOutput=l.TransactGetItemsInput=l.ExpectedAttributeValue=l.BatchGetItemInput=l.TransactionCanceledException=l.TransactGetItemsOutput=void 0;var we=cl(),NB;(function(e){e.filterSensitiveLog=t=>({...t})})(NB=l.ArchivalSummary||(l.ArchivalSummary={}));var OB;(function(e){e.filterSensitiveLog=t=>({...t})})(OB=l.AttributeDefinition||(l.AttributeDefinition={}));var LB;(function(e){e.filterSensitiveLog=t=>({...t})})(LB=l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var qB;(function(e){e.filterSensitiveLog=t=>({...t})})(qB=l.AutoScalingPolicyDescription||(l.AutoScalingPolicyDescription={}));var MB;(function(e){e.filterSensitiveLog=t=>({...t})})(MB=l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var zB;(function(e){e.filterSensitiveLog=t=>({...t})})(zB=l.AutoScalingPolicyUpdate||(l.AutoScalingPolicyUpdate={}));var jB;(function(e){e.filterSensitiveLog=t=>({...t})})(jB=l.AutoScalingSettingsDescription||(l.AutoScalingSettingsDescription={}));var kB;(function(e){e.filterSensitiveLog=t=>({...t})})(kB=l.AutoScalingSettingsUpdate||(l.AutoScalingSettingsUpdate={}));var UB;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(UB=l.BackupType||(l.BackupType={}));var FB;(function(e){e.filterSensitiveLog=t=>({...t})})(FB=l.BackupDetails||(l.BackupDetails={}));var BB;(function(e){e.filterSensitiveLog=t=>({...t})})(BB=l.KeySchemaElement||(l.KeySchemaElement={}));var GB;(function(e){e.filterSensitiveLog=t=>({...t})})(GB=l.ProvisionedThroughput||(l.ProvisionedThroughput={}));var $B;(function(e){e.filterSensitiveLog=t=>({...t})})($B=l.SourceTableDetails||(l.SourceTableDetails={}));var VB;(function(e){e.filterSensitiveLog=t=>({...t})})(VB=l.Projection||(l.Projection={}));var KB;(function(e){e.filterSensitiveLog=t=>({...t})})(KB=l.GlobalSecondaryIndexInfo||(l.GlobalSecondaryIndexInfo={}));var HB;(function(e){e.filterSensitiveLog=t=>({...t})})(HB=l.LocalSecondaryIndexInfo||(l.LocalSecondaryIndexInfo={}));var WB;(function(e){e.filterSensitiveLog=t=>({...t})})(WB=l.SSEDescription||(l.SSEDescription={}));var YB;(function(e){e.filterSensitiveLog=t=>({...t})})(YB=l.StreamSpecification||(l.StreamSpecification={}));var JB;(function(e){e.filterSensitiveLog=t=>({...t})})(JB=l.TimeToLiveDescription||(l.TimeToLiveDescription={}));var QB;(function(e){e.filterSensitiveLog=t=>({...t})})(QB=l.SourceTableFeatureDetails||(l.SourceTableFeatureDetails={}));var XB;(function(e){e.filterSensitiveLog=t=>({...t})})(XB=l.BackupDescription||(l.BackupDescription={}));var Co=class extends we.DynamoDBServiceException{constructor(t){super({name:"BackupInUseException",$fault:"client",...t}),this.name="BackupInUseException",this.$fault="client",Object.setPrototypeOf(this,Co.prototype)}};l.BackupInUseException=Co;var xo=class extends we.DynamoDBServiceException{constructor(t){super({name:"BackupNotFoundException",$fault:"client",...t}),this.name="BackupNotFoundException",this.$fault="client",Object.setPrototypeOf(this,xo.prototype)}};l.BackupNotFoundException=xo;var ZB;(function(e){e.filterSensitiveLog=t=>({...t})})(ZB=l.BackupSummary||(l.BackupSummary={}));var eG;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(eG=l.BackupTypeFilter||(l.BackupTypeFilter={}));var tG;(function(e){e.filterSensitiveLog=t=>({...t})})(tG=l.Capacity||(l.Capacity={}));var rG;(function(e){e.filterSensitiveLog=t=>({...t})})(rG=l.ConsumedCapacity||(l.ConsumedCapacity={}));var nG;(function(e){e.AccessDenied="AccessDenied",e.ConditionalCheckFailed="ConditionalCheckFailed",e.DuplicateItem="DuplicateItem",e.InternalServerError="InternalServerError",e.ItemCollectionSizeLimitExceeded="ItemCollectionSizeLimitExceeded",e.ProvisionedThroughputExceeded="ProvisionedThroughputExceeded",e.RequestLimitExceeded="RequestLimitExceeded",e.ResourceNotFound="ResourceNotFound",e.ThrottlingError="ThrottlingError",e.TransactionConflict="TransactionConflict",e.ValidationError="ValidationError"})(nG=l.BatchStatementErrorCodeEnum||(l.BatchStatementErrorCodeEnum={}));var iG;(function(e){e.filterSensitiveLog=t=>({...t})})(iG=l.BatchStatementError||(l.BatchStatementError={}));var Io=class extends we.DynamoDBServiceException{constructor(t){super({name:"InternalServerError",$fault:"server",...t}),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,Io.prototype)}};l.InternalServerError=Io;var Ro=class extends we.DynamoDBServiceException{constructor(t){super({name:"RequestLimitExceeded",$fault:"client",...t}),this.name="RequestLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,Ro.prototype)}};l.RequestLimitExceeded=Ro;var Do=class extends we.DynamoDBServiceException{constructor(t){super({name:"InvalidEndpointException",$fault:"client",...t}),this.name="InvalidEndpointException",this.$fault="client",Object.setPrototypeOf(this,Do.prototype),this.Message=t.Message}};l.InvalidEndpointException=Do;var Po=class extends we.DynamoDBServiceException{constructor(t){super({name:"ProvisionedThroughputExceededException",$fault:"client",...t}),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,Po.prototype)}};l.ProvisionedThroughputExceededException=Po;var No=class extends we.DynamoDBServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,No.prototype)}};l.ResourceNotFoundException=No;var Oo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...t}),this.name="ItemCollectionSizeLimitExceededException",this.$fault="client",Object.setPrototypeOf(this,Oo.prototype)}};l.ItemCollectionSizeLimitExceededException=Oo;var sG;(function(e){e.filterSensitiveLog=t=>({...t})})(sG=l.BillingModeSummary||(l.BillingModeSummary={}));var Lo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ConditionalCheckFailedException",$fault:"client",...t}),this.name="ConditionalCheckFailedException",this.$fault="client",Object.setPrototypeOf(this,Lo.prototype)}};l.ConditionalCheckFailedException=Lo;var oG;(function(e){e.filterSensitiveLog=t=>({...t})})(oG=l.PointInTimeRecoveryDescription||(l.PointInTimeRecoveryDescription={}));var aG;(function(e){e.filterSensitiveLog=t=>({...t})})(aG=l.ContinuousBackupsDescription||(l.ContinuousBackupsDescription={}));var qo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...t}),this.name="ContinuousBackupsUnavailableException",this.$fault="client",Object.setPrototypeOf(this,qo.prototype)}};l.ContinuousBackupsUnavailableException=qo;var cG;(function(e){e.filterSensitiveLog=t=>({...t})})(cG=l.ContributorInsightsSummary||(l.ContributorInsightsSummary={}));var lG;(function(e){e.filterSensitiveLog=t=>({...t})})(lG=l.CreateBackupInput||(l.CreateBackupInput={}));var uG;(function(e){e.filterSensitiveLog=t=>({...t})})(uG=l.CreateBackupOutput||(l.CreateBackupOutput={}));var Mo=class extends we.DynamoDBServiceException{constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,Mo.prototype)}};l.LimitExceededException=Mo;var zo=class extends we.DynamoDBServiceException{constructor(t){super({name:"TableInUseException",$fault:"client",...t}),this.name="TableInUseException",this.$fault="client",Object.setPrototypeOf(this,zo.prototype)}};l.TableInUseException=zo;var jo=class extends we.DynamoDBServiceException{constructor(t){super({name:"TableNotFoundException",$fault:"client",...t}),this.name="TableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,jo.prototype)}};l.TableNotFoundException=jo;var dG;(function(e){e.filterSensitiveLog=t=>({...t})})(dG=l.CreateGlobalSecondaryIndexAction||(l.CreateGlobalSecondaryIndexAction={}));var fG;(function(e){e.filterSensitiveLog=t=>({...t})})(fG=l.Replica||(l.Replica={}));var mG;(function(e){e.filterSensitiveLog=t=>({...t})})(mG=l.CreateGlobalTableInput||(l.CreateGlobalTableInput={}));var pG;(function(e){e.filterSensitiveLog=t=>({...t})})(pG=l.ProvisionedThroughputOverride||(l.ProvisionedThroughputOverride={}));var hG;(function(e){e.filterSensitiveLog=t=>({...t})})(hG=l.ReplicaGlobalSecondaryIndexDescription||(l.ReplicaGlobalSecondaryIndexDescription={}));var _G;(function(e){e.STANDARD="STANDARD",e.STANDARD_INFREQUENT_ACCESS="STANDARD_INFREQUENT_ACCESS"})(_G=l.TableClass||(l.TableClass={}));var yG;(function(e){e.filterSensitiveLog=t=>({...t})})(yG=l.TableClassSummary||(l.TableClassSummary={}));var gG;(function(e){e.filterSensitiveLog=t=>({...t})})(gG=l.ReplicaDescription||(l.ReplicaDescription={}));var vG;(function(e){e.filterSensitiveLog=t=>({...t})})(vG=l.GlobalTableDescription||(l.GlobalTableDescription={}));var SG;(function(e){e.filterSensitiveLog=t=>({...t})})(SG=l.CreateGlobalTableOutput||(l.CreateGlobalTableOutput={}));var ko=class extends we.DynamoDBServiceException{constructor(t){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...t}),this.name="GlobalTableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,ko.prototype)}};l.GlobalTableAlreadyExistsException=ko;var wG;(function(e){e.filterSensitiveLog=t=>({...t})})(wG=l.CreateReplicaAction||(l.CreateReplicaAction={}));var bG;(function(e){e.filterSensitiveLog=t=>({...t})})(bG=l.ReplicaGlobalSecondaryIndex||(l.ReplicaGlobalSecondaryIndex={}));var EG;(function(e){e.filterSensitiveLog=t=>({...t})})(EG=l.CreateReplicationGroupMemberAction||(l.CreateReplicationGroupMemberAction={}));var AG;(function(e){e.filterSensitiveLog=t=>({...t})})(AG=l.GlobalSecondaryIndex||(l.GlobalSecondaryIndex={}));var TG;(function(e){e.filterSensitiveLog=t=>({...t})})(TG=l.LocalSecondaryIndex||(l.LocalSecondaryIndex={}));var CG;(function(e){e.filterSensitiveLog=t=>({...t})})(CG=l.SSESpecification||(l.SSESpecification={}));var xG;(function(e){e.filterSensitiveLog=t=>({...t})})(xG=l.Tag||(l.Tag={}));var IG;(function(e){e.filterSensitiveLog=t=>({...t})})(IG=l.CreateTableInput||(l.CreateTableInput={}));var RG;(function(e){e.filterSensitiveLog=t=>({...t})})(RG=l.ProvisionedThroughputDescription||(l.ProvisionedThroughputDescription={}));var DG;(function(e){e.filterSensitiveLog=t=>({...t})})(DG=l.GlobalSecondaryIndexDescription||(l.GlobalSecondaryIndexDescription={}));var PG;(function(e){e.filterSensitiveLog=t=>({...t})})(PG=l.LocalSecondaryIndexDescription||(l.LocalSecondaryIndexDescription={}));var NG;(function(e){e.filterSensitiveLog=t=>({...t})})(NG=l.RestoreSummary||(l.RestoreSummary={}));var OG;(function(e){e.filterSensitiveLog=t=>({...t})})(OG=l.TableDescription||(l.TableDescription={}));var LG;(function(e){e.filterSensitiveLog=t=>({...t})})(LG=l.CreateTableOutput||(l.CreateTableOutput={}));var Uo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ResourceInUseException",$fault:"client",...t}),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,Uo.prototype)}};l.ResourceInUseException=Uo;var qG;(function(e){e.filterSensitiveLog=t=>({...t})})(qG=l.DeleteBackupInput||(l.DeleteBackupInput={}));var MG;(function(e){e.filterSensitiveLog=t=>({...t})})(MG=l.DeleteBackupOutput||(l.DeleteBackupOutput={}));var zG;(function(e){e.filterSensitiveLog=t=>({...t})})(zG=l.DeleteGlobalSecondaryIndexAction||(l.DeleteGlobalSecondaryIndexAction={}));var Fo=class extends we.DynamoDBServiceException{constructor(t){super({name:"TransactionConflictException",$fault:"client",...t}),this.name="TransactionConflictException",this.$fault="client",Object.setPrototypeOf(this,Fo.prototype)}};l.TransactionConflictException=Fo;var jG;(function(e){e.filterSensitiveLog=t=>({...t})})(jG=l.DeleteReplicaAction||(l.DeleteReplicaAction={}));var kG;(function(e){e.filterSensitiveLog=t=>({...t})})(kG=l.DeleteReplicationGroupMemberAction||(l.DeleteReplicationGroupMemberAction={}));var UG;(function(e){e.filterSensitiveLog=t=>({...t})})(UG=l.DeleteTableInput||(l.DeleteTableInput={}));var FG;(function(e){e.filterSensitiveLog=t=>({...t})})(FG=l.DeleteTableOutput||(l.DeleteTableOutput={}));var BG;(function(e){e.filterSensitiveLog=t=>({...t})})(BG=l.DescribeBackupInput||(l.DescribeBackupInput={}));var GG;(function(e){e.filterSensitiveLog=t=>({...t})})(GG=l.DescribeBackupOutput||(l.DescribeBackupOutput={}));var $G;(function(e){e.filterSensitiveLog=t=>({...t})})($G=l.DescribeContinuousBackupsInput||(l.DescribeContinuousBackupsInput={}));var VG;(function(e){e.filterSensitiveLog=t=>({...t})})(VG=l.DescribeContinuousBackupsOutput||(l.DescribeContinuousBackupsOutput={}));var KG;(function(e){e.filterSensitiveLog=t=>({...t})})(KG=l.DescribeContributorInsightsInput||(l.DescribeContributorInsightsInput={}));var HG;(function(e){e.filterSensitiveLog=t=>({...t})})(HG=l.FailureException||(l.FailureException={}));var WG;(function(e){e.filterSensitiveLog=t=>({...t})})(WG=l.DescribeContributorInsightsOutput||(l.DescribeContributorInsightsOutput={}));var YG;(function(e){e.filterSensitiveLog=t=>({...t})})(YG=l.DescribeEndpointsRequest||(l.DescribeEndpointsRequest={}));var JG;(function(e){e.filterSensitiveLog=t=>({...t})})(JG=l.Endpoint||(l.Endpoint={}));var QG;(function(e){e.filterSensitiveLog=t=>({...t})})(QG=l.DescribeEndpointsResponse||(l.DescribeEndpointsResponse={}));var XG;(function(e){e.filterSensitiveLog=t=>({...t})})(XG=l.DescribeExportInput||(l.DescribeExportInput={}));var ZG;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(ZG=l.ExportFormat||(l.ExportFormat={}));var e2;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(e2=l.ExportStatus||(l.ExportStatus={}));var t2;(function(e){e.filterSensitiveLog=t=>({...t})})(t2=l.ExportDescription||(l.ExportDescription={}));var r2;(function(e){e.filterSensitiveLog=t=>({...t})})(r2=l.DescribeExportOutput||(l.DescribeExportOutput={}));var Bo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ExportNotFoundException",$fault:"client",...t}),this.name="ExportNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Bo.prototype)}};l.ExportNotFoundException=Bo;var n2;(function(e){e.filterSensitiveLog=t=>({...t})})(n2=l.DescribeGlobalTableInput||(l.DescribeGlobalTableInput={}));var i2;(function(e){e.filterSensitiveLog=t=>({...t})})(i2=l.DescribeGlobalTableOutput||(l.DescribeGlobalTableOutput={}));var Go=class extends we.DynamoDBServiceException{constructor(t){super({name:"GlobalTableNotFoundException",$fault:"client",...t}),this.name="GlobalTableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Go.prototype)}};l.GlobalTableNotFoundException=Go;var s2;(function(e){e.filterSensitiveLog=t=>({...t})})(s2=l.DescribeGlobalTableSettingsInput||(l.DescribeGlobalTableSettingsInput={}));var o2;(function(e){e.filterSensitiveLog=t=>({...t})})(o2=l.ReplicaGlobalSecondaryIndexSettingsDescription||(l.ReplicaGlobalSecondaryIndexSettingsDescription={}));var a2;(function(e){e.filterSensitiveLog=t=>({...t})})(a2=l.ReplicaSettingsDescription||(l.ReplicaSettingsDescription={}));var c2;(function(e){e.filterSensitiveLog=t=>({...t})})(c2=l.DescribeGlobalTableSettingsOutput||(l.DescribeGlobalTableSettingsOutput={}));var l2;(function(e){e.filterSensitiveLog=t=>({...t})})(l2=l.DescribeKinesisStreamingDestinationInput||(l.DescribeKinesisStreamingDestinationInput={}));var u2;(function(e){e.filterSensitiveLog=t=>({...t})})(u2=l.KinesisDataStreamDestination||(l.KinesisDataStreamDestination={}));var d2;(function(e){e.filterSensitiveLog=t=>({...t})})(d2=l.DescribeKinesisStreamingDestinationOutput||(l.DescribeKinesisStreamingDestinationOutput={}));var f2;(function(e){e.filterSensitiveLog=t=>({...t})})(f2=l.DescribeLimitsInput||(l.DescribeLimitsInput={}));var m2;(function(e){e.filterSensitiveLog=t=>({...t})})(m2=l.DescribeLimitsOutput||(l.DescribeLimitsOutput={}));var p2;(function(e){e.filterSensitiveLog=t=>({...t})})(p2=l.DescribeTableInput||(l.DescribeTableInput={}));var h2;(function(e){e.filterSensitiveLog=t=>({...t})})(h2=l.DescribeTableOutput||(l.DescribeTableOutput={}));var _2;(function(e){e.filterSensitiveLog=t=>({...t})})(_2=l.DescribeTableReplicaAutoScalingInput||(l.DescribeTableReplicaAutoScalingInput={}));var y2;(function(e){e.filterSensitiveLog=t=>({...t})})(y2=l.ReplicaGlobalSecondaryIndexAutoScalingDescription||(l.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var g2;(function(e){e.filterSensitiveLog=t=>({...t})})(g2=l.ReplicaAutoScalingDescription||(l.ReplicaAutoScalingDescription={}));var v2;(function(e){e.filterSensitiveLog=t=>({...t})})(v2=l.TableAutoScalingDescription||(l.TableAutoScalingDescription={}));var S2;(function(e){e.filterSensitiveLog=t=>({...t})})(S2=l.DescribeTableReplicaAutoScalingOutput||(l.DescribeTableReplicaAutoScalingOutput={}));var w2;(function(e){e.filterSensitiveLog=t=>({...t})})(w2=l.DescribeTimeToLiveInput||(l.DescribeTimeToLiveInput={}));var b2;(function(e){e.filterSensitiveLog=t=>({...t})})(b2=l.DescribeTimeToLiveOutput||(l.DescribeTimeToLiveOutput={}));var E2;(function(e){e.filterSensitiveLog=t=>({...t})})(E2=l.KinesisStreamingDestinationInput||(l.KinesisStreamingDestinationInput={}));var A2;(function(e){e.filterSensitiveLog=t=>({...t})})(A2=l.KinesisStreamingDestinationOutput||(l.KinesisStreamingDestinationOutput={}));var $o=class extends we.DynamoDBServiceException{constructor(t){super({name:"DuplicateItemException",$fault:"client",...t}),this.name="DuplicateItemException",this.$fault="client",Object.setPrototypeOf(this,$o.prototype)}};l.DuplicateItemException=$o;var Vo=class extends we.DynamoDBServiceException{constructor(t){super({name:"IdempotentParameterMismatchException",$fault:"client",...t}),this.name="IdempotentParameterMismatchException",this.$fault="client",Object.setPrototypeOf(this,Vo.prototype),this.Message=t.Message}};l.IdempotentParameterMismatchException=Vo;var Ko=class extends we.DynamoDBServiceException{constructor(t){super({name:"TransactionInProgressException",$fault:"client",...t}),this.name="TransactionInProgressException",this.$fault="client",Object.setPrototypeOf(this,Ko.prototype),this.Message=t.Message}};l.TransactionInProgressException=Ko;var Ho=class extends we.DynamoDBServiceException{constructor(t){super({name:"ExportConflictException",$fault:"client",...t}),this.name="ExportConflictException",this.$fault="client",Object.setPrototypeOf(this,Ho.prototype)}};l.ExportConflictException=Ho;var T2;(function(e){e.filterSensitiveLog=t=>({...t})})(T2=l.ExportTableToPointInTimeInput||(l.ExportTableToPointInTimeInput={}));var C2;(function(e){e.filterSensitiveLog=t=>({...t})})(C2=l.ExportTableToPointInTimeOutput||(l.ExportTableToPointInTimeOutput={}));var Wo=class extends we.DynamoDBServiceException{constructor(t){super({name:"InvalidExportTimeException",$fault:"client",...t}),this.name="InvalidExportTimeException",this.$fault="client",Object.setPrototypeOf(this,Wo.prototype)}};l.InvalidExportTimeException=Wo;var Yo=class extends we.DynamoDBServiceException{constructor(t){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...t}),this.name="PointInTimeRecoveryUnavailableException",this.$fault="client",Object.setPrototypeOf(this,Yo.prototype)}};l.PointInTimeRecoveryUnavailableException=Yo;var x2;(function(e){e.filterSensitiveLog=t=>({...t})})(x2=l.ListBackupsInput||(l.ListBackupsInput={}));var I2;(function(e){e.filterSensitiveLog=t=>({...t})})(I2=l.ListBackupsOutput||(l.ListBackupsOutput={}));var R2;(function(e){e.filterSensitiveLog=t=>({...t})})(R2=l.ListContributorInsightsInput||(l.ListContributorInsightsInput={}));var D2;(function(e){e.filterSensitiveLog=t=>({...t})})(D2=l.ListContributorInsightsOutput||(l.ListContributorInsightsOutput={}));var P2;(function(e){e.filterSensitiveLog=t=>({...t})})(P2=l.ListExportsInput||(l.ListExportsInput={}));var N2;(function(e){e.filterSensitiveLog=t=>({...t})})(N2=l.ExportSummary||(l.ExportSummary={}));var O2;(function(e){e.filterSensitiveLog=t=>({...t})})(O2=l.ListExportsOutput||(l.ListExportsOutput={}));var L2;(function(e){e.filterSensitiveLog=t=>({...t})})(L2=l.ListGlobalTablesInput||(l.ListGlobalTablesInput={}));var q2;(function(e){e.filterSensitiveLog=t=>({...t})})(q2=l.GlobalTable||(l.GlobalTable={}));var M2;(function(e){e.filterSensitiveLog=t=>({...t})})(M2=l.ListGlobalTablesOutput||(l.ListGlobalTablesOutput={}));var z2;(function(e){e.filterSensitiveLog=t=>({...t})})(z2=l.ListTablesInput||(l.ListTablesInput={}));var j2;(function(e){e.filterSensitiveLog=t=>({...t})})(j2=l.ListTablesOutput||(l.ListTablesOutput={}));var k2;(function(e){e.filterSensitiveLog=t=>({...t})})(k2=l.ListTagsOfResourceInput||(l.ListTagsOfResourceInput={}));var U2;(function(e){e.filterSensitiveLog=t=>({...t})})(U2=l.ListTagsOfResourceOutput||(l.ListTagsOfResourceOutput={}));var F2;(function(e){e.filterSensitiveLog=t=>({...t})})(F2=l.RestoreTableFromBackupInput||(l.RestoreTableFromBackupInput={}));var B2;(function(e){e.filterSensitiveLog=t=>({...t})})(B2=l.RestoreTableFromBackupOutput||(l.RestoreTableFromBackupOutput={}));var Jo=class extends we.DynamoDBServiceException{constructor(t){super({name:"TableAlreadyExistsException",$fault:"client",...t}),this.name="TableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Jo.prototype)}};l.TableAlreadyExistsException=Jo;var Qo=class extends we.DynamoDBServiceException{constructor(t){super({name:"InvalidRestoreTimeException",$fault:"client",...t}),this.name="InvalidRestoreTimeException",this.$fault="client",Object.setPrototypeOf(this,Qo.prototype)}};l.InvalidRestoreTimeException=Qo;var G2;(function(e){e.filterSensitiveLog=t=>({...t})})(G2=l.RestoreTableToPointInTimeInput||(l.RestoreTableToPointInTimeInput={}));var $2;(function(e){e.filterSensitiveLog=t=>({...t})})($2=l.RestoreTableToPointInTimeOutput||(l.RestoreTableToPointInTimeOutput={}));var V2;(function(e){e.filterSensitiveLog=t=>({...t})})(V2=l.TagResourceInput||(l.TagResourceInput={}));var K2;(function(e){e.filterSensitiveLog=t=>({...t})})(K2=l.UntagResourceInput||(l.UntagResourceInput={}));var H2;(function(e){e.filterSensitiveLog=t=>({...t})})(H2=l.PointInTimeRecoverySpecification||(l.PointInTimeRecoverySpecification={}));var W2;(function(e){e.filterSensitiveLog=t=>({...t})})(W2=l.UpdateContinuousBackupsInput||(l.UpdateContinuousBackupsInput={}));var Y2;(function(e){e.filterSensitiveLog=t=>({...t})})(Y2=l.UpdateContinuousBackupsOutput||(l.UpdateContinuousBackupsOutput={}));var J2;(function(e){e.filterSensitiveLog=t=>({...t})})(J2=l.UpdateContributorInsightsInput||(l.UpdateContributorInsightsInput={}));var Q2;(function(e){e.filterSensitiveLog=t=>({...t})})(Q2=l.UpdateContributorInsightsOutput||(l.UpdateContributorInsightsOutput={}));var Xo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ReplicaAlreadyExistsException",$fault:"client",...t}),this.name="ReplicaAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Xo.prototype)}};l.ReplicaAlreadyExistsException=Xo;var Zo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ReplicaNotFoundException",$fault:"client",...t}),this.name="ReplicaNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Zo.prototype)}};l.ReplicaNotFoundException=Zo;var X2;(function(e){e.filterSensitiveLog=t=>({...t})})(X2=l.ReplicaUpdate||(l.ReplicaUpdate={}));var Z2;(function(e){e.filterSensitiveLog=t=>({...t})})(Z2=l.UpdateGlobalTableInput||(l.UpdateGlobalTableInput={}));var e$;(function(e){e.filterSensitiveLog=t=>({...t})})(e$=l.UpdateGlobalTableOutput||(l.UpdateGlobalTableOutput={}));var ea=class extends we.DynamoDBServiceException{constructor(t){super({name:"IndexNotFoundException",$fault:"client",...t}),this.name="IndexNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ea.prototype)}};l.IndexNotFoundException=ea;var t$;(function(e){e.filterSensitiveLog=t=>({...t})})(t$=l.GlobalTableGlobalSecondaryIndexSettingsUpdate||(l.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var r$;(function(e){e.filterSensitiveLog=t=>({...t})})(r$=l.ReplicaGlobalSecondaryIndexSettingsUpdate||(l.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var n$;(function(e){e.filterSensitiveLog=t=>({...t})})(n$=l.ReplicaSettingsUpdate||(l.ReplicaSettingsUpdate={}));var i$;(function(e){e.filterSensitiveLog=t=>({...t})})(i$=l.UpdateGlobalTableSettingsInput||(l.UpdateGlobalTableSettingsInput={}));var s$;(function(e){e.filterSensitiveLog=t=>({...t})})(s$=l.UpdateGlobalTableSettingsOutput||(l.UpdateGlobalTableSettingsOutput={}));var o$;(function(e){e.filterSensitiveLog=t=>({...t})})(o$=l.UpdateGlobalSecondaryIndexAction||(l.UpdateGlobalSecondaryIndexAction={}));var a$;(function(e){e.filterSensitiveLog=t=>({...t})})(a$=l.GlobalSecondaryIndexUpdate||(l.GlobalSecondaryIndexUpdate={}));var c$;(function(e){e.filterSensitiveLog=t=>({...t})})(c$=l.UpdateReplicationGroupMemberAction||(l.UpdateReplicationGroupMemberAction={}));var l$;(function(e){e.filterSensitiveLog=t=>({...t})})(l$=l.ReplicationGroupUpdate||(l.ReplicationGroupUpdate={}));var u$;(function(e){e.filterSensitiveLog=t=>({...t})})(u$=l.UpdateTableInput||(l.UpdateTableInput={}));var d$;(function(e){e.filterSensitiveLog=t=>({...t})})(d$=l.UpdateTableOutput||(l.UpdateTableOutput={}));var f$;(function(e){e.filterSensitiveLog=t=>({...t})})(f$=l.GlobalSecondaryIndexAutoScalingUpdate||(l.GlobalSecondaryIndexAutoScalingUpdate={}));var m$;(function(e){e.filterSensitiveLog=t=>({...t})})(m$=l.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(l.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var p$;(function(e){e.filterSensitiveLog=t=>({...t})})(p$=l.ReplicaAutoScalingUpdate||(l.ReplicaAutoScalingUpdate={}));var h$;(function(e){e.filterSensitiveLog=t=>({...t})})(h$=l.UpdateTableReplicaAutoScalingInput||(l.UpdateTableReplicaAutoScalingInput={}));var _$;(function(e){e.filterSensitiveLog=t=>({...t})})(_$=l.UpdateTableReplicaAutoScalingOutput||(l.UpdateTableReplicaAutoScalingOutput={}));var y$;(function(e){e.filterSensitiveLog=t=>({...t})})(y$=l.TimeToLiveSpecification||(l.TimeToLiveSpecification={}));var g$;(function(e){e.filterSensitiveLog=t=>({...t})})(g$=l.UpdateTimeToLiveInput||(l.UpdateTimeToLiveInput={}));var v$;(function(e){e.filterSensitiveLog=t=>({...t})})(v$=l.UpdateTimeToLiveOutput||(l.UpdateTimeToLiveOutput={}));var oe;(function(e){e.visit=(t,r)=>t.S!==void 0?r.S(t.S):t.N!==void 0?r.N(t.N):t.B!==void 0?r.B(t.B):t.SS!==void 0?r.SS(t.SS):t.NS!==void 0?r.NS(t.NS):t.BS!==void 0?r.BS(t.BS):t.M!==void 0?r.M(t.M):t.L!==void 0?r.L(t.L):t.NULL!==void 0?r.NULL(t.NULL):t.BOOL!==void 0?r.BOOL(t.BOOL):r._(t.$unknown[0],t.$unknown[1]),e.filterSensitiveLog=t=>{if(t.S!==void 0)return{S:t.S};if(t.N!==void 0)return{N:t.N};if(t.B!==void 0)return{B:t.B};if(t.SS!==void 0)return{SS:t.SS};if(t.NS!==void 0)return{NS:t.NS};if(t.BS!==void 0)return{BS:t.BS};if(t.M!==void 0)return{M:Object.entries(t.M).reduce((r,[n,i])=>({...r,[n]:e.filterSensitiveLog(i)}),{})};if(t.L!==void 0)return{L:t.L.map(r=>e.filterSensitiveLog(r))};if(t.NULL!==void 0)return{NULL:t.NULL};if(t.BOOL!==void 0)return{BOOL:t.BOOL};if(t.$unknown!==void 0)return{[t.$unknown[0]]:"UNKNOWN"}}})(oe=l.AttributeValue||(l.AttributeValue={}));var eT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Value&&{Value:oe.filterSensitiveLog(t.Value)}})})(eT=l.AttributeValueUpdate||(l.AttributeValueUpdate={}));var tT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(r=>oe.filterSensitiveLog(r))}})})(tT=l.BatchStatementRequest||(l.BatchStatementRequest={}));var rT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(rT=l.BatchStatementResponse||(l.BatchStatementResponse={}));var S$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(S$=l.CancellationReason||(l.CancellationReason={}));var ll;(function(e){e.filterSensitiveLog=t=>({...t,...t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(r=>oe.filterSensitiveLog(r))}})})(ll=l.Condition||(l.Condition={}));var nT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(nT=l.DeleteRequest||(l.DeleteRequest={}));var w$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(r=>oe.filterSensitiveLog(r))}})})(w$=l.ExecuteStatementInput||(l.ExecuteStatementInput={}));var iT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(iT=l.Get||(l.Get={}));var b$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(b$=l.GetItemInput||(l.GetItemInput={}));var E$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(E$=l.GetItemOutput||(l.GetItemOutput={}));var ns;(function(e){e.filterSensitiveLog=t=>({...t,...t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(ns=l.ItemCollectionMetrics||(l.ItemCollectionMetrics={}));var Ay;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(Ay=l.ItemResponse||(l.ItemResponse={}));var sT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(r=>oe.filterSensitiveLog(r))}})})(sT=l.ParameterizedStatement||(l.ParameterizedStatement={}));var oT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(oT=l.PutRequest||(l.PutRequest={}));var Ty;(function(e){e.filterSensitiveLog=t=>({...t,...t.Keys&&{Keys:t.Keys.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:oe.filterSensitiveLog(s)}),{}))}})})(Ty=l.KeysAndAttributes||(l.KeysAndAttributes={}));var aT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Get&&{Get:iT.filterSensitiveLog(t.Get)}})})(aT=l.TransactGetItem||(l.TransactGetItem={}));var A$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Statements&&{Statements:t.Statements.map(r=>tT.filterSensitiveLog(r))}})})(A$=l.BatchExecuteStatementInput||(l.BatchExecuteStatementInput={}));var T$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(r=>rT.filterSensitiveLog(r))}})})(T$=l.BatchExecuteStatementOutput||(l.BatchExecuteStatementOutput={}));var C$;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactStatements&&{TransactStatements:t.TransactStatements.map(r=>sT.filterSensitiveLog(r))}})})(C$=l.ExecuteTransactionInput||(l.ExecuteTransactionInput={}));var x$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(r=>Ay.filterSensitiveLog(r))}})})(x$=l.ExecuteTransactionOutput||(l.ExecuteTransactionOutput={}));var I$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(r=>Ay.filterSensitiveLog(r))}})})(I$=l.TransactGetItemsOutput||(l.TransactGetItemsOutput={}));var ta=class extends we.DynamoDBServiceException{constructor(t){super({name:"TransactionCanceledException",$fault:"client",...t}),this.name="TransactionCanceledException",this.$fault="client",Object.setPrototypeOf(this,ta.prototype),this.Message=t.Message,this.CancellationReasons=t.CancellationReasons}};l.TransactionCanceledException=ta;var R$;(function(e){e.filterSensitiveLog=t=>({...t,...t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((r,[n,i])=>({...r,[n]:Ty.filterSensitiveLog(i)}),{})}})})(R$=l.BatchGetItemInput||(l.BatchGetItemInput={}));var ul;(function(e){e.filterSensitiveLog=t=>({...t,...t.Value&&{Value:oe.filterSensitiveLog(t.Value)},...t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(r=>oe.filterSensitiveLog(r))}})})(ul=l.ExpectedAttributeValue||(l.ExpectedAttributeValue={}));var D$;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactItems&&{TransactItems:t.TransactItems.map(r=>aT.filterSensitiveLog(r))}})})(D$=l.TransactGetItemsInput||(l.TransactGetItemsInput={}));var P$;(function(e){e.filterSensitiveLog=t=>({...t,...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((r,[n,i])=>({...r,[n]:i.map(s=>ns.filterSensitiveLog(s))}),{})}})})(P$=l.TransactWriteItemsOutput||(l.TransactWriteItemsOutput={}));var cT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(cT=l.ConditionCheck||(l.ConditionCheck={}));var lT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(lT=l.Delete||(l.Delete={}));var uT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(uT=l.Put||(l.Put={}));var dT;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(dT=l.Update||(l.Update={}));var N$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:ns.filterSensitiveLog(t.ItemCollectionMetrics)}})})(N$=l.DeleteItemOutput||(l.DeleteItemOutput={}));var O$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:oe.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(O$=l.ExecuteStatementOutput||(l.ExecuteStatementOutput={}));var L$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:ns.filterSensitiveLog(t.ItemCollectionMetrics)}})})(L$=l.PutItemOutput||(l.PutItemOutput={}));var q$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:oe.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(q$=l.QueryOutput||(l.QueryOutput={}));var M$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:oe.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(M$=l.ScanOutput||(l.ScanOutput={}));var z$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:ns.filterSensitiveLog(t.ItemCollectionMetrics)}})})(z$=l.UpdateItemOutput||(l.UpdateItemOutput={}));var Cy;(function(e){e.filterSensitiveLog=t=>({...t,...t.PutRequest&&{PutRequest:oT.filterSensitiveLog(t.PutRequest)},...t.DeleteRequest&&{DeleteRequest:nT.filterSensitiveLog(t.DeleteRequest)}})})(Cy=l.WriteRequest||(l.WriteRequest={}));var j$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:Object.entries(t.Responses).reduce((r,[n,i])=>({...r,[n]:i.map(s=>Object.entries(s).reduce((o,[a,c])=>({...o,[a]:oe.filterSensitiveLog(c)}),{}))}),{})},...t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((r,[n,i])=>({...r,[n]:Ty.filterSensitiveLog(i)}),{})}})})(j$=l.BatchGetItemOutput||(l.BatchGetItemOutput={}));var k$;(function(e){e.filterSensitiveLog=t=>({...t,...t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((r,[n,i])=>({...r,[n]:ll.filterSensitiveLog(i)}),{})},...t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(k$=l.ScanInput||(l.ScanInput={}));var U$;(function(e){e.filterSensitiveLog=t=>({...t,...t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((r,[n,i])=>({...r,[n]:i.map(s=>Cy.filterSensitiveLog(s))}),{})}})})(U$=l.BatchWriteItemInput||(l.BatchWriteItemInput={}));var F$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>({...r,[n]:ul.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(F$=l.DeleteItemInput||(l.DeleteItemInput={}));var B$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>({...r,[n]:ul.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(B$=l.PutItemInput||(l.PutItemInput={}));var G$;(function(e){e.filterSensitiveLog=t=>({...t,...t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((r,[n,i])=>({...r,[n]:ll.filterSensitiveLog(i)}),{})},...t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((r,[n,i])=>({...r,[n]:ll.filterSensitiveLog(i)}),{})},...t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(G$=l.QueryInput||(l.QueryInput={}));var $$;(function(e){e.filterSensitiveLog=t=>({...t,...t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((r,[n,i])=>({...r,[n]:i.map(s=>Cy.filterSensitiveLog(s))}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((r,[n,i])=>({...r,[n]:i.map(s=>ns.filterSensitiveLog(s))}),{})}})})($$=l.BatchWriteItemOutput||(l.BatchWriteItemOutput={}));var V$;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})},...t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((r,[n,i])=>({...r,[n]:eT.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>({...r,[n]:ul.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:oe.filterSensitiveLog(i)}),{})}})})(V$=l.UpdateItemInput||(l.UpdateItemInput={}));var fT;(function(e){e.filterSensitiveLog=t=>({...t,...t.ConditionCheck&&{ConditionCheck:cT.filterSensitiveLog(t.ConditionCheck)},...t.Put&&{Put:uT.filterSensitiveLog(t.Put)},...t.Delete&&{Delete:lT.filterSensitiveLog(t.Delete)},...t.Update&&{Update:dT.filterSensitiveLog(t.Update)}})})(fT=l.TransactWriteItem||(l.TransactWriteItem={}));var K$;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactItems&&{TransactItems:t.TransactItems.map(r=>fT.filterSensitiveLog(r))}})})(K$=l.TransactWriteItemsInput||(l.TransactWriteItemsInput={}))});var pT=f(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0})});var hT=f(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.HttpRequest=void 0;var ra=class{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/"}static isInstance(t){if(!t)return!1;let r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){let t=new ra({...this,headers:{...this.headers}});return t.query&&(t.query=H$(t.query)),t}};dl.HttpRequest=ra;function H$(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}});var _T=f(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.HttpResponse=void 0;var xy=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}};fl.HttpResponse=xy});var yT=f(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.isValidHostname=void 0;function W$(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}ml.isValidHostname=W$});var Et=f(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});var pl=K();pl.__exportStar(pT(),is);pl.__exportStar(hT(),is);pl.__exportStar(_T(),is);pl.__exportStar(yT(),is)});var Ry=f(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});Iy.default=Q$;var Y$=J$(require("crypto"));function J$(e){return e&&e.__esModule?e:{default:e}}var _l=new Uint8Array(256),hl=_l.length;function Q$(){return hl>_l.length-16&&(Y$.default.randomFillSync(_l),hl=0),_l.slice(hl,hl+=16)}});var gT=f(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.default=void 0;var X$=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;yl.default=X$});var na=f(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.default=void 0;var Z$=eV(gT());function eV(e){return e&&e.__esModule?e:{default:e}}function tV(e){return typeof e=="string"&&Z$.default.test(e)}var rV=tV;gl.default=rV});var ia=f(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.default=void 0;var nV=iV(na());function iV(e){return e&&e.__esModule?e:{default:e}}var it=[];for(let e=0;e<256;++e)it.push((e+256).toString(16).substr(1));function sV(e,t=0){let r=(it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]).toLowerCase();if(!(0,nV.default)(r))throw TypeError("Stringified UUID is invalid");return r}var oV=sV;vl.default=oV});var wT=f(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.default=void 0;var aV=ST(Ry()),cV=ST(ia());function ST(e){return e&&e.__esModule?e:{default:e}}var vT,Dy,Py=0,Ny=0;function lV(e,t,r){let n=t&&r||0,i=t||new Array(16);e=e||{};let s=e.node||vT,o=e.clockseq!==void 0?e.clockseq:Dy;if(s==null||o==null){let m=e.random||(e.rng||aV.default)();s==null&&(s=vT=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),o==null&&(o=Dy=(m[6]<<8|m[7])&16383)}let a=e.msecs!==void 0?e.msecs:Date.now(),c=e.nsecs!==void 0?e.nsecs:Ny+1,u=a-Py+(c-Ny)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||a>Py)&&e.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Py=a,Ny=c,Dy=o,a+=122192928e5;let d=((a&268435455)*1e4+c)%4294967296;i[n++]=d>>>24&255,i[n++]=d>>>16&255,i[n++]=d>>>8&255,i[n++]=d&255;let p=a/4294967296*1e4&268435455;i[n++]=p>>>8&255,i[n++]=p&255,i[n++]=p>>>24&15|16,i[n++]=p>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(let m=0;m<6;++m)i[n+m]=s[m];return t||(0,cV.default)(i)}var uV=lV;Sl.default=uV});var Oy=f(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.default=void 0;var dV=fV(na());function fV(e){return e&&e.__esModule?e:{default:e}}function mV(e){if(!(0,dV.default)(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var pV=mV;wl.default=pV});var Ly=f(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.default=gV;mi.URL=mi.DNS=void 0;var hV=bT(ia()),_V=bT(Oy());function bT(e){return e&&e.__esModule?e:{default:e}}function yV(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var ET="6ba7b810-9dad-11d1-80b4-00c04fd430c8";mi.DNS=ET;var AT="6ba7b811-9dad-11d1-80b4-00c04fd430c8";mi.URL=AT;function gV(e,t,r){function n(i,s,o,a){if(typeof i=="string"&&(i=yV(i)),typeof s=="string"&&(s=(0,_V.default)(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+i.length);if(c.set(s),c.set(i,s.length),c=r(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,o){a=a||0;for(let u=0;u<16;++u)o[a+u]=c[u];return o}return(0,hV.default)(c)}try{n.name=e}catch{}return n.DNS=ET,n.URL=AT,n}});var TT=f(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.default=void 0;var vV=SV(require("crypto"));function SV(e){return e&&e.__esModule?e:{default:e}}function wV(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),vV.default.createHash("md5").update(e).digest()}var bV=wV;bl.default=bV});var xT=f(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.default=void 0;var EV=CT(Ly()),AV=CT(TT());function CT(e){return e&&e.__esModule?e:{default:e}}var TV=(0,EV.default)("v3",48,AV.default),CV=TV;El.default=CV});var RT=f(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.default=void 0;var xV=IT(Ry()),IV=IT(ia());function IT(e){return e&&e.__esModule?e:{default:e}}function RV(e,t,r){e=e||{};let n=e.random||(e.rng||xV.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return(0,IV.default)(n)}var DV=RV;Al.default=DV});var DT=f(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=void 0;var PV=NV(require("crypto"));function NV(e){return e&&e.__esModule?e:{default:e}}function OV(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),PV.default.createHash("sha1").update(e).digest()}var LV=OV;Tl.default=LV});var NT=f(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=void 0;var qV=PT(Ly()),MV=PT(DT());function PT(e){return e&&e.__esModule?e:{default:e}}var zV=(0,qV.default)("v5",80,MV.default),jV=zV;Cl.default=jV});var OT=f(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.default=void 0;var kV="00000000-0000-0000-0000-000000000000";xl.default=kV});var LT=f(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.default=void 0;var UV=FV(na());function FV(e){return e&&e.__esModule?e:{default:e}}function BV(e){if(!(0,UV.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var GV=BV;Il.default=GV});var qy=f(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});Object.defineProperty(sr,"v1",{enumerable:!0,get:function(){return $V.default}});Object.defineProperty(sr,"v3",{enumerable:!0,get:function(){return VV.default}});Object.defineProperty(sr,"v4",{enumerable:!0,get:function(){return KV.default}});Object.defineProperty(sr,"v5",{enumerable:!0,get:function(){return HV.default}});Object.defineProperty(sr,"NIL",{enumerable:!0,get:function(){return WV.default}});Object.defineProperty(sr,"version",{enumerable:!0,get:function(){return YV.default}});Object.defineProperty(sr,"validate",{enumerable:!0,get:function(){return JV.default}});Object.defineProperty(sr,"stringify",{enumerable:!0,get:function(){return QV.default}});Object.defineProperty(sr,"parse",{enumerable:!0,get:function(){return XV.default}});var $V=Zr(wT()),VV=Zr(xT()),KV=Zr(RT()),HV=Zr(NT()),WV=Zr(OT()),YV=Zr(LT()),JV=Zr(na()),QV=Zr(ia()),XV=Zr(Oy());function Zr(e){return e&&e.__esModule?e:{default:e}}});var X=f(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.serializeAws_json1_0UpdateTimeToLiveCommand=v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=v.serializeAws_json1_0UpdateTableCommand=v.serializeAws_json1_0UpdateItemCommand=v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=v.serializeAws_json1_0UpdateGlobalTableCommand=v.serializeAws_json1_0UpdateContributorInsightsCommand=v.serializeAws_json1_0UpdateContinuousBackupsCommand=v.serializeAws_json1_0UntagResourceCommand=v.serializeAws_json1_0TransactWriteItemsCommand=v.serializeAws_json1_0TransactGetItemsCommand=v.serializeAws_json1_0TagResourceCommand=v.serializeAws_json1_0ScanCommand=v.serializeAws_json1_0RestoreTableToPointInTimeCommand=v.serializeAws_json1_0RestoreTableFromBackupCommand=v.serializeAws_json1_0QueryCommand=v.serializeAws_json1_0PutItemCommand=v.serializeAws_json1_0ListTagsOfResourceCommand=v.serializeAws_json1_0ListTablesCommand=v.serializeAws_json1_0ListGlobalTablesCommand=v.serializeAws_json1_0ListExportsCommand=v.serializeAws_json1_0ListContributorInsightsCommand=v.serializeAws_json1_0ListBackupsCommand=v.serializeAws_json1_0GetItemCommand=v.serializeAws_json1_0ExportTableToPointInTimeCommand=v.serializeAws_json1_0ExecuteTransactionCommand=v.serializeAws_json1_0ExecuteStatementCommand=v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=v.serializeAws_json1_0DescribeTimeToLiveCommand=v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=v.serializeAws_json1_0DescribeTableCommand=v.serializeAws_json1_0DescribeLimitsCommand=v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=v.serializeAws_json1_0DescribeGlobalTableCommand=v.serializeAws_json1_0DescribeExportCommand=v.serializeAws_json1_0DescribeEndpointsCommand=v.serializeAws_json1_0DescribeContributorInsightsCommand=v.serializeAws_json1_0DescribeContinuousBackupsCommand=v.serializeAws_json1_0DescribeBackupCommand=v.serializeAws_json1_0DeleteTableCommand=v.serializeAws_json1_0DeleteItemCommand=v.serializeAws_json1_0DeleteBackupCommand=v.serializeAws_json1_0CreateTableCommand=v.serializeAws_json1_0CreateGlobalTableCommand=v.serializeAws_json1_0CreateBackupCommand=v.serializeAws_json1_0BatchWriteItemCommand=v.serializeAws_json1_0BatchGetItemCommand=v.serializeAws_json1_0BatchExecuteStatementCommand=void 0;v.deserializeAws_json1_0UpdateTimeToLiveCommand=v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=v.deserializeAws_json1_0UpdateTableCommand=v.deserializeAws_json1_0UpdateItemCommand=v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=v.deserializeAws_json1_0UpdateGlobalTableCommand=v.deserializeAws_json1_0UpdateContributorInsightsCommand=v.deserializeAws_json1_0UpdateContinuousBackupsCommand=v.deserializeAws_json1_0UntagResourceCommand=v.deserializeAws_json1_0TransactWriteItemsCommand=v.deserializeAws_json1_0TransactGetItemsCommand=v.deserializeAws_json1_0TagResourceCommand=v.deserializeAws_json1_0ScanCommand=v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=v.deserializeAws_json1_0RestoreTableFromBackupCommand=v.deserializeAws_json1_0QueryCommand=v.deserializeAws_json1_0PutItemCommand=v.deserializeAws_json1_0ListTagsOfResourceCommand=v.deserializeAws_json1_0ListTablesCommand=v.deserializeAws_json1_0ListGlobalTablesCommand=v.deserializeAws_json1_0ListExportsCommand=v.deserializeAws_json1_0ListContributorInsightsCommand=v.deserializeAws_json1_0ListBackupsCommand=v.deserializeAws_json1_0GetItemCommand=v.deserializeAws_json1_0ExportTableToPointInTimeCommand=v.deserializeAws_json1_0ExecuteTransactionCommand=v.deserializeAws_json1_0ExecuteStatementCommand=v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DescribeTimeToLiveCommand=v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=v.deserializeAws_json1_0DescribeTableCommand=v.deserializeAws_json1_0DescribeLimitsCommand=v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=v.deserializeAws_json1_0DescribeGlobalTableCommand=v.deserializeAws_json1_0DescribeExportCommand=v.deserializeAws_json1_0DescribeEndpointsCommand=v.deserializeAws_json1_0DescribeContributorInsightsCommand=v.deserializeAws_json1_0DescribeContinuousBackupsCommand=v.deserializeAws_json1_0DescribeBackupCommand=v.deserializeAws_json1_0DeleteTableCommand=v.deserializeAws_json1_0DeleteItemCommand=v.deserializeAws_json1_0DeleteBackupCommand=v.deserializeAws_json1_0CreateTableCommand=v.deserializeAws_json1_0CreateGlobalTableCommand=v.deserializeAws_json1_0CreateBackupCommand=v.deserializeAws_json1_0BatchWriteItemCommand=v.deserializeAws_json1_0BatchGetItemCommand=v.deserializeAws_json1_0BatchExecuteStatementCommand=void 0;var ZV=Et(),h=O(),My=qy(),ee=cl(),ve=W(),eK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},n;return n=JSON.stringify(tW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0BatchExecuteStatementCommand=eK;var tK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},n;return n=JSON.stringify(rW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0BatchGetItemCommand=tK;var rK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},n;return n=JSON.stringify(sW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0BatchWriteItemCommand=rK;var nK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},n;return n=JSON.stringify(lW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0CreateBackupCommand=nK;var iK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},n;return n=JSON.stringify(dW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0CreateGlobalTableCommand=iK;var sK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},n;return n=JSON.stringify(pW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0CreateTableCommand=sK;var oK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},n;return n=JSON.stringify(_W(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DeleteBackupCommand=oK;var aK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},n;return n=JSON.stringify(gW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DeleteItemCommand=aK;var cK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},n;return n=JSON.stringify(bW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DeleteTableCommand=cK;var lK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},n;return n=JSON.stringify(EW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeBackupCommand=lK;var uK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},n;return n=JSON.stringify(AW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeContinuousBackupsCommand=uK;var dK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},n;return n=JSON.stringify(TW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeContributorInsightsCommand=dK;var fK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},n;return n=JSON.stringify(CW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeEndpointsCommand=fK;var mK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},n;return n=JSON.stringify(xW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeExportCommand=mK;var pK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},n;return n=JSON.stringify(IW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeGlobalTableCommand=pK;var hK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},n;return n=JSON.stringify(RW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=hK;var _K=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},n;return n=JSON.stringify(DW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=_K;var yK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},n;return n=JSON.stringify(PW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeLimitsCommand=yK;var gK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},n;return n=JSON.stringify(NW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeTableCommand=gK;var vK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},n;return n=JSON.stringify(OW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=vK;var SK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},n;return n=JSON.stringify(LW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeTimeToLiveCommand=SK;var wK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},n;return n=JSON.stringify(KT(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=wK;var bK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},n;return n=JSON.stringify(KT(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=bK;var EK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},n;return n=JSON.stringify(qW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0ExecuteStatementCommand=EK;var AK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},n;return n=JSON.stringify(MW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0ExecuteTransactionCommand=AK;var TK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},n;return n=JSON.stringify(jW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0ExportTableToPointInTimeCommand=TK;var CK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},n;return n=JSON.stringify(UW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0GetItemCommand=CK;var xK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},n;return n=JSON.stringify(ZW(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0ListBackupsCommand=xK;var IK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},n;return n=JSON.stringify(e8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0ListContributorInsightsCommand=IK;var RK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},n;return n=JSON.stringify(t8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0ListExportsCommand=RK;var DK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},n;return n=JSON.stringify(r8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0ListGlobalTablesCommand=DK;var PK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},n;return n=JSON.stringify(n8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0ListTablesCommand=PK;var NK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},n;return n=JSON.stringify(i8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0ListTagsOfResourceCommand=NK;var OK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},n;return n=JSON.stringify(p8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0PutItemCommand=OK;var LK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},n;return n=JSON.stringify(_8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0QueryCommand=LK;var qK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},n;return n=JSON.stringify(N8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0RestoreTableFromBackupCommand=qK;var MK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},n;return n=JSON.stringify(O8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0RestoreTableToPointInTimeCommand=MK;var zK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},n;return n=JSON.stringify(L8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0ScanCommand=zK;var jK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},n;return n=JSON.stringify(j8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0TagResourceCommand=jK;var kK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},n;return n=JSON.stringify(B8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0TransactGetItemsCommand=kK;var UK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},n;return n=JSON.stringify(V8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0TransactWriteItemsCommand=UK;var FK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},n;return n=JSON.stringify(K8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0UntagResourceCommand=FK;var BK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},n;return n=JSON.stringify(W8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateContinuousBackupsCommand=BK;var GK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},n;return n=JSON.stringify(Y8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateContributorInsightsCommand=GK;var $K=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},n;return n=JSON.stringify(Q8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateGlobalTableCommand=$K;var VK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},n;return n=JSON.stringify(X8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=VK;var KK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},n;return n=JSON.stringify(Z8(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateItemCommand=KK;var HK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},n;return n=JSON.stringify(t6(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateTableCommand=HK;var WK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},n;return n=JSON.stringify(r6(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=WK;var YK=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},n;return n=JSON.stringify(n6(e,t)),te(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateTimeToLiveCommand=YK;var JK=async(e,t)=>{if(e.statusCode>=300)return QK(e,t);let r=await D(e.body,t),n={};n=y6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0BatchExecuteStatementCommand=JK;var QK=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},XK=async(e,t)=>{if(e.statusCode>=300)return ZK(e,t);let r=await D(e.body,t),n={};n=g6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0BatchGetItemCommand=XK;var ZK=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},e3=async(e,t)=>{if(e.statusCode>=300)return t3(e,t);let r=await D(e.body,t),n={};n=E6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0BatchWriteItemCommand=e3;var t3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await sa(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},r3=async(e,t)=>{if(e.statusCode>=300)return n3(e,t);let r=await D(e.body,t),n={};n=O6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0CreateBackupCommand=r3;var n3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await zy(r,t);case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await MT(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await ky(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await pi(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},i3=async(e,t)=>{if(e.statusCode>=300)return s3(e,t);let r=await D(e.body,t),n={};n=L6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0CreateGlobalTableCommand=i3;var s3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":throw await VH(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await pi(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},o3=async(e,t)=>{if(e.statusCode>=300)return a3(e,t);let r=await D(e.body,t),n={};n=q6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0CreateTableCommand=o3;var a3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await wr(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},c3=async(e,t)=>{if(e.statusCode>=300)return l3(e,t);let r=await D(e.body,t),n={};n=M6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteBackupCommand=c3;var l3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await zy(r,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await jy(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},u3=async(e,t)=>{if(e.statusCode>=300)return d3(e,t);let r=await D(e.body,t),n={};n=z6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteItemCommand=u3;var d3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Rl(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await sa(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Pl(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},f3=async(e,t)=>{if(e.statusCode>=300)return m3(e,t);let r=await D(e.body,t),n={};n=k6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteTableCommand=f3;var m3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await wr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},p3=async(e,t)=>{if(e.statusCode>=300)return h3(e,t);let r=await D(e.body,t),n={};n=U6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeBackupCommand=p3;var h3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await jy(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},_3=async(e,t)=>{if(e.statusCode>=300)return y3(e,t);let r=await D(e.body,t),n={};n=F6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContinuousBackupsCommand=_3;var y3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await pi(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},g3=async(e,t)=>{if(e.statusCode>=300)return v3(e,t);let r=await D(e.body,t),n={};n=B6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContributorInsightsCommand=g3;var v3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},S3=async(e,t)=>{if(e.statusCode>=300)return w3(e,t);let r=await D(e.body,t),n={};n=G6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeEndpointsCommand=S3;var w3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},b3=async(e,t)=>{if(e.statusCode>=300)return E3(e,t);let r=await D(e.body,t),n={};n=$6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeExportCommand=b3;var E3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":throw await $H(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},A3=async(e,t)=>{if(e.statusCode>=300)return T3(e,t);let r=await D(e.body,t),n={};n=V6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableCommand=A3;var T3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Dl(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},C3=async(e,t)=>{if(e.statusCode>=300)return x3(e,t);let r=await D(e.body,t),n={};n=K6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=C3;var x3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Dl(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},I3=async(e,t)=>{if(e.statusCode>=300)return R3(e,t);let r=await D(e.body,t),n={};n=H6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=I3;var R3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},D3=async(e,t)=>{if(e.statusCode>=300)return P3(e,t);let r=await D(e.body,t),n={};n=W6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeLimitsCommand=D3;var P3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},N3=async(e,t)=>{if(e.statusCode>=300)return O3(e,t);let r=await D(e.body,t),n={};n=Y6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableCommand=N3;var O3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},L3=async(e,t)=>{if(e.statusCode>=300)return q3(e,t);let r=await D(e.body,t),n={};n=J6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=L3;var q3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},M3=async(e,t)=>{if(e.statusCode>=300)return z3(e,t);let r=await D(e.body,t),n={};n=Q6(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTimeToLiveCommand=M3;var z3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},j3=async(e,t)=>{if(e.statusCode>=300)return k3(e,t);let r=await D(e.body,t),n={};n=iC(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=j3;var k3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await wr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},U3=async(e,t)=>{if(e.statusCode>=300)return F3(e,t);let r=await D(e.body,t),n={};n=iC(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=U3;var F3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await wr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},B3=async(e,t)=>{if(e.statusCode>=300)return G3(e,t);let r=await D(e.body,t),n={};n=t4(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteStatementCommand=B3;var G3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Rl(r,t);case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":throw await BH(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await sa(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Pl(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},$3=async(e,t)=>{if(e.statusCode>=300)return V3(e,t);let r=await D(e.body,t),n={};n=r4(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteTransactionCommand=$3;var V3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await zT(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await Uy(r,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await FT(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},K3=async(e,t)=>{if(e.statusCode>=300)return H3(e,t);let r=await D(e.body,t),n={};n=a4(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ExportTableToPointInTimeCommand=K3;var H3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":throw await GH(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":throw await HH(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await jT(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await pi(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},W3=async(e,t)=>{if(e.statusCode>=300)return Y3(e,t);let r=await D(e.body,t),n={};n=u4(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0GetItemCommand=W3;var Y3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},J3=async(e,t)=>{if(e.statusCode>=300)return Q3(e,t);let r=await D(e.body,t),n={};n=z4(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListBackupsCommand=J3;var Q3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},X3=async(e,t)=>{if(e.statusCode>=300)return Z3(e,t);let r=await D(e.body,t),n={};n=j4(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListContributorInsightsCommand=X3;var Z3=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},eH=async(e,t)=>{if(e.statusCode>=300)return tH(e,t);let r=await D(e.body,t),n={};n=k4(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListExportsCommand=eH;var tH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},rH=async(e,t)=>{if(e.statusCode>=300)return nH(e,t);let r=await D(e.body,t),n={};n=U4(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListGlobalTablesCommand=rH;var nH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},iH=async(e,t)=>{if(e.statusCode>=300)return sH(e,t);let r=await D(e.body,t),n={};n=F4(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListTablesCommand=iH;var sH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},oH=async(e,t)=>{if(e.statusCode>=300)return aH(e,t);let r=await D(e.body,t),n={};n=B4(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListTagsOfResourceCommand=oH;var aH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},cH=async(e,t)=>{if(e.statusCode>=300)return lH(e,t);let r=await D(e.body,t),n={};n=t5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0PutItemCommand=cH;var lH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Rl(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await sa(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Pl(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},uH=async(e,t)=>{if(e.statusCode>=300)return dH(e,t);let r=await D(e.body,t),n={};n=n5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0QueryCommand=uH;var dH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},fH=async(e,t)=>{if(e.statusCode>=300)return mH(e,t);let r=await D(e.body,t),n={};n=b5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableFromBackupCommand=fH;var mH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await zy(r,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await jy(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await UT(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await ky(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},pH=async(e,t)=>{if(e.statusCode>=300)return hH(e,t);let r=await D(e.body,t),n={};n=E5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=pH;var hH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":throw await WH(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await jT(r,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await UT(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await ky(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await pi(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},_H=async(e,t)=>{if(e.statusCode>=300)return yH(e,t);let r=await D(e.body,t),n={};n=A5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ScanCommand=_H;var yH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},gH=async(e,t)=>{if(e.statusCode>=300)return vH(e,t);await Jy(e.body,t);let r={$metadata:C(e)};return Promise.resolve(r)};v.deserializeAws_json1_0TagResourceCommand=gH;var vH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await wr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},SH=async(e,t)=>{if(e.statusCode>=300)return wH(e,t);let r=await D(e.body,t),n={};n=q5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0TransactGetItemsCommand=SH;var wH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await Uy(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},bH=async(e,t)=>{if(e.statusCode>=300)return EH(e,t);let r=await D(e.body,t),n={};n=k5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0TransactWriteItemsCommand=bH;var EH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await zT(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await Uy(r,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await FT(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},AH=async(e,t)=>{if(e.statusCode>=300)return TH(e,t);await Jy(e.body,t);let r={$metadata:C(e)};return Promise.resolve(r)};v.deserializeAws_json1_0UntagResourceCommand=AH;var TH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await wr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},CH=async(e,t)=>{if(e.statusCode>=300)return xH(e,t);let r=await D(e.body,t),n={};n=U5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContinuousBackupsCommand=CH;var xH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await MT(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await pi(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},IH=async(e,t)=>{if(e.statusCode>=300)return RH(e,t);let r=await D(e.body,t),n={};n=F5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContributorInsightsCommand=IH;var RH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},DH=async(e,t)=>{if(e.statusCode>=300)return PH(e,t);let r=await D(e.body,t),n={};n=B5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableCommand=DH;var PH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Dl(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":throw await YH(r,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await kT(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await pi(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},NH=async(e,t)=>{if(e.statusCode>=300)return OH(e,t);let r=await D(e.body,t),n={};n=G5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=NH;var OH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Dl(r,t);case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":throw await KH(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await kT(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await wr(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},LH=async(e,t)=>{if(e.statusCode>=300)return qH(e,t);let r=await D(e.body,t),n={};n=$5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateItemCommand=LH;var qH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Rl(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await sa(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Ht(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await zt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Pl(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},MH=async(e,t)=>{if(e.statusCode>=300)return zH(e,t);let r=await D(e.body,t),n={};n=V5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableCommand=MH;var zH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await wr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},jH=async(e,t)=>{if(e.statusCode>=300)return kH(e,t);let r=await D(e.body,t),n={};n=K5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=jH;var kH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await wr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},UH=async(e,t)=>{if(e.statusCode>=300)return FH(e,t);let r=await D(e.body,t),n={};n=H5(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTimeToLiveCommand=UH;var FH=async(e,t)=>{let r={...e,body:await D(e.body,t)},n,i="UnknownError";switch(i=re(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ie(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await wr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(r,t);default:let s=r.body;throw n=new ee.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,h.decorateServiceException)(n,s)}},zy=async(e,t)=>{let r=e.body,n=m6(r,t),i=new ve.BackupInUseException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},jy=async(e,t)=>{let r=e.body,n=p6(r,t),i=new ve.BackupNotFoundException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},Rl=async(e,t)=>{let r=e.body,n=I6(r,t),i=new ve.ConditionalCheckFailedException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},MT=async(e,t)=>{let r=e.body,n=R6(r,t),i=new ve.ContinuousBackupsUnavailableException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},BH=async(e,t)=>{let r=e.body,n=X6(r,t),i=new ve.DuplicateItemException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},GH=async(e,t)=>{let r=e.body,n=n4(r,t),i=new ve.ExportConflictException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},$H=async(e,t)=>{let r=e.body,n=i4(r,t),i=new ve.ExportNotFoundException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},VH=async(e,t)=>{let r=e.body,n=_4(r,t),i=new ve.GlobalTableAlreadyExistsException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},Dl=async(e,t)=>{let r=e.body,n=g4(r,t),i=new ve.GlobalTableNotFoundException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},zT=async(e,t)=>{let r=e.body,n=v4(r,t),i=new ve.IdempotentParameterMismatchException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},KH=async(e,t)=>{let r=e.body,n=S4(r,t),i=new ve.IndexNotFoundException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},ie=async(e,t)=>{let r=e.body,n=w4(r,t),i=new ve.InternalServerError({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},de=async(e,t)=>{let r=e.body,n=b4(r,t),i=new ve.InvalidEndpointException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},HH=async(e,t)=>{let r=e.body,n=E4(r,t),i=new ve.InvalidExportTimeException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},WH=async(e,t)=>{let r=e.body,n=A4(r,t),i=new ve.InvalidRestoreTimeException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},sa=async(e,t)=>{let r=e.body,n=I4(r,t),i=new ve.ItemCollectionSizeLimitExceededException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},Xe=async(e,t)=>{let r=e.body,n=q4(r,t),i=new ve.LimitExceededException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},jT=async(e,t)=>{let r=e.body,n=X4(r,t),i=new ve.PointInTimeRecoveryUnavailableException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},Ht=async(e,t)=>{let r=e.body,n=Z4(r,t),i=new ve.ProvisionedThroughputExceededException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},YH=async(e,t)=>{let r=e.body,n=s5(r,t),i=new ve.ReplicaAlreadyExistsException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},kT=async(e,t)=>{let r=e.body,n=_5(r,t),i=new ve.ReplicaNotFoundException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},zt=async(e,t)=>{let r=e.body,n=g5(r,t),i=new ve.RequestLimitExceeded({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},wr=async(e,t)=>{let r=e.body,n=v5(r,t),i=new ve.ResourceInUseException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},Ce=async(e,t)=>{let r=e.body,n=S5(r,t),i=new ve.ResourceNotFoundException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},UT=async(e,t)=>{let r=e.body,n=I5(r,t),i=new ve.TableAlreadyExistsException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},ky=async(e,t)=>{let r=e.body,n=R5(r,t),i=new ve.TableInUseException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},pi=async(e,t)=>{let r=e.body,n=P5(r,t),i=new ve.TableNotFoundException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},Uy=async(e,t)=>{let r=e.body,n=M5(r,t),i=new ve.TransactionCanceledException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},Pl=async(e,t)=>{let r=e.body,n=z5(r,t),i=new ve.TransactionConflictException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},FT=async(e,t)=>{let r=e.body,n=j5(r,t),i=new ve.TransactionInProgressException({$metadata:C(e),...n});return(0,h.decorateServiceException)(i,r)},JH=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}}),BT=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:JH(r,t)),Nl=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),QH=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:XH(i,t)},{}),en=(e,t)=>ve.AttributeValue.visit(e,{B:r=>({B:t.base64Encoder(r)}),BOOL:r=>({BOOL:r}),BS:r=>({BS:aW(r,t)}),L:r=>({L:XW(r,t)}),M:r=>({M:o8(r,t)}),N:r=>({N:r}),NS:r=>({NS:c8(r,t)}),NULL:r=>({NULL:r}),S:r=>({S:r}),SS:r=>({SS:q8(r,t)}),_:(r,n)=>({name:n})}),GT=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:en(r,t)),XH=(e,t)=>({...e.Action!==void 0&&e.Action!==null&&{Action:e.Action},...e.Value!==void 0&&e.Value!==null&&{Value:en(e.Value,t)}}),ZH=(e,t)=>({...e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName},...e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:eW(e.TargetTrackingScalingPolicyConfiguration,t)}}),Dn=(e,t)=>({...e.AutoScalingDisabled!==void 0&&e.AutoScalingDisabled!==null&&{AutoScalingDisabled:e.AutoScalingDisabled},...e.AutoScalingRoleArn!==void 0&&e.AutoScalingRoleArn!==null&&{AutoScalingRoleArn:e.AutoScalingRoleArn},...e.MaximumUnits!==void 0&&e.MaximumUnits!==null&&{MaximumUnits:e.MaximumUnits},...e.MinimumUnits!==void 0&&e.MinimumUnits!==null&&{MinimumUnits:e.MinimumUnits},...e.ScalingPolicyUpdate!==void 0&&e.ScalingPolicyUpdate!==null&&{ScalingPolicyUpdate:ZH(e.ScalingPolicyUpdate,t)}}),eW=(e,t)=>({...e.DisableScaleIn!==void 0&&e.DisableScaleIn!==null&&{DisableScaleIn:e.DisableScaleIn},...e.ScaleInCooldown!==void 0&&e.ScaleInCooldown!==null&&{ScaleInCooldown:e.ScaleInCooldown},...e.ScaleOutCooldown!==void 0&&e.ScaleOutCooldown!==null&&{ScaleOutCooldown:e.ScaleOutCooldown},...e.TargetValue!==void 0&&e.TargetValue!==null&&{TargetValue:(0,h.serializeFloat)(e.TargetValue)}}),tW=(e,t)=>({...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.Statements!==void 0&&e.Statements!==null&&{Statements:d8(e.Statements,t)}}),rW=(e,t)=>({...e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:nW(e.RequestItems,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}}),nW=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:JW(i,t)},{}),iW=(e,t)=>({...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:$y(e.Parameters,t)},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),sW=(e,t)=>({...e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:oW(e.RequestItems,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}}),oW=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:s6(i,t)},{}),aW=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:t.base64Encoder(r)),$T=(e,t)=>({...e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:GT(e.AttributeValueList,t)},...e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}}),cW=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:tn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:or(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),lW=(e,t)=>({...e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),uW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ol(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:Vy(e.Projection,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:hi(e.ProvisionedThroughput,t)}}),dW=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:T8(e.ReplicationGroup,t)}}),fW=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),mW=(e,t)=>({...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:HT(e.GlobalSecondaryIndexes,t)},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Ky(e.ProvisionedThroughputOverride,t)},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}}),pW=(e,t)=>({...e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:BT(e.AttributeDefinitions,t)},...e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode},...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:By(e.GlobalSecondaryIndexes,t)},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ol(e.KeySchema,t)},...e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:Gy(e.LocalSecondaryIndexes,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:hi(e.ProvisionedThroughput,t)},...e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:Ll(e.SSESpecification,t)},...e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:WT(e.StreamSpecification,t)},...e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.Tags!==void 0&&e.Tags!==null&&{Tags:YT(e.Tags,t)}}),hW=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:tn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:or(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),_W=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}}),yW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}}),gW=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator},...e.Expected!==void 0&&e.Expected!==null&&{Expected:Fy(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:tn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:or(e.Key,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics},...e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),vW=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),SW=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),wW=(e,t)=>({...e.Key!==void 0&&e.Key!==null&&{Key:or(e.Key,t)}}),bW=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),EW=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}}),AW=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),TW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),CW=(e,t)=>({}),xW=(e,t)=>({...e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}}),IW=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}}),RW=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}}),DW=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),PW=(e,t)=>({}),NW=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),OW=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),LW=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),qW=(e,t)=>({...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:$y(e.Parameters,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),MW=(e,t)=>{var r;return{ClientRequestToken:(r=e.ClientRequestToken)!==null&&r!==void 0?r:(0,My.v4)(),...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:u8(e.TransactStatements,t)}}},Fy=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:zW(i,t)},{}),zW=(e,t)=>({...e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:GT(e.AttributeValueList,t)},...e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator},...e.Exists!==void 0&&e.Exists!==null&&{Exists:e.Exists},...e.Value!==void 0&&e.Value!==null&&{Value:en(e.Value,t)}}),jW=(e,t)=>{var r;return{ClientToken:(r=e.ClientToken)!==null&&r!==void 0?r:(0,My.v4)(),...e.ExportFormat!==void 0&&e.ExportFormat!==null&&{ExportFormat:e.ExportFormat},...e.ExportTime!==void 0&&e.ExportTime!==null&&{ExportTime:Math.round(e.ExportTime.getTime()/1e3)},...e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket},...e.S3BucketOwner!==void 0&&e.S3BucketOwner!==null&&{S3BucketOwner:e.S3BucketOwner},...e.S3Prefix!==void 0&&e.S3Prefix!==null&&{S3Prefix:e.S3Prefix},...e.S3SseAlgorithm!==void 0&&e.S3SseAlgorithm!==null&&{S3SseAlgorithm:e.S3SseAlgorithm},...e.S3SseKmsKeyId!==void 0&&e.S3SseKmsKeyId!==null&&{S3SseKmsKeyId:e.S3SseKmsKeyId},...e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn}}},Wt=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:i},{}),tn=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:en(i,t)},{}),VT=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:$T(i,t)},{}),kW=(e,t)=>({...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.Key!==void 0&&e.Key!==null&&{Key:or(e.Key,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),UW=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:Nl(e.AttributesToGet,t)},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.Key!==void 0&&e.Key!==null&&{Key:or(e.Key,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),FW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ol(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:Vy(e.Projection,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:hi(e.ProvisionedThroughput,t)}}),BW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Dn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}}),GW=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:BW(r,t)),By=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:FW(r,t)),$W=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:uW(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:yW(e.Delete,t)},...e.Update!==void 0&&e.Update!==null&&{Update:J8(e.Update,t)}}),VW=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:$W(r,t)),KW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Dn(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)},...e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}}),HW=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:KW(r,t)),or=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:en(i,t)},{}),WW=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:$T(i,t)},{}),YW=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:or(r,t)),JW=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:Nl(e.AttributesToGet,t)},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.Keys!==void 0&&e.Keys!==null&&{Keys:YW(e.Keys,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}}),Ol=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:QW(r,t)),QW=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}}),KT=(e,t)=>({...e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),XW=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:en(r,t)),ZW=(e,t)=>({...e.BackupType!==void 0&&e.BackupType!==null&&{BackupType:e.BackupType},...e.ExclusiveStartBackupArn!==void 0&&e.ExclusiveStartBackupArn!==null&&{ExclusiveStartBackupArn:e.ExclusiveStartBackupArn},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.TimeRangeLowerBound!==void 0&&e.TimeRangeLowerBound!==null&&{TimeRangeLowerBound:Math.round(e.TimeRangeLowerBound.getTime()/1e3)},...e.TimeRangeUpperBound!==void 0&&e.TimeRangeUpperBound!==null&&{TimeRangeUpperBound:Math.round(e.TimeRangeUpperBound.getTime()/1e3)}}),e8=(e,t)=>({...e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults},...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),t8=(e,t)=>({...e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults},...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn}}),r8=(e,t)=>({...e.ExclusiveStartGlobalTableName!==void 0&&e.ExclusiveStartGlobalTableName!==null&&{ExclusiveStartGlobalTableName:e.ExclusiveStartGlobalTableName},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),n8=(e,t)=>({...e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}}),i8=(e,t)=>({...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}}),s8=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ol(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:Vy(e.Projection,t)}}),Gy=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:s8(r,t)),o8=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:en(i,t)},{}),a8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),c8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),l8=(e,t)=>({...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:$y(e.Parameters,t)},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),u8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:l8(r,t)),d8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:iW(r,t)),f8=(e,t)=>({...e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}}),$y=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:en(r,t)),Vy=(e,t)=>({...e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:a8(e.NonKeyAttributes,t)},...e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}}),hi=(e,t)=>({...e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits},...e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}}),Ky=(e,t)=>({...e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}}),m8=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:tn(e.ExpressionAttributeValues,t)},...e.Item!==void 0&&e.Item!==null&&{Item:Hy(e.Item,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),p8=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator},...e.Expected!==void 0&&e.Expected!==null&&{Expected:Fy(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:tn(e.ExpressionAttributeValues,t)},...e.Item!==void 0&&e.Item!==null&&{Item:Hy(e.Item,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics},...e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),Hy=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:en(i,t)},{}),h8=(e,t)=>({...e.Item!==void 0&&e.Item!==null&&{Item:Hy(e.Item,t)}}),_8=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:Nl(e.AttributesToGet,t)},...e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:or(e.ExclusiveStartKey,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:tn(e.ExpressionAttributeValues,t)},...e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression},...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeyConditionExpression!==void 0&&e.KeyConditionExpression!==null&&{KeyConditionExpression:e.KeyConditionExpression},...e.KeyConditions!==void 0&&e.KeyConditions!==null&&{KeyConditions:WW(e.KeyConditions,t)},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.QueryFilter!==void 0&&e.QueryFilter!==null&&{QueryFilter:VT(e.QueryFilter,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ScanIndexForward!==void 0&&e.ScanIndexForward!==null&&{ScanIndexForward:e.ScanIndexForward},...e.Select!==void 0&&e.Select!==null&&{Select:e.Select},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),y8=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),g8=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:b8(e.ReplicaGlobalSecondaryIndexUpdates,t)},...e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Dn(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}}),v8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:g8(r,t)),S8=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Ky(e.ProvisionedThroughputOverride,t)}}),w8=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Dn(e.ProvisionedReadCapacityAutoScalingUpdate,t)}}),b8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:w8(r,t)),HT=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:S8(r,t)),E8=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Dn(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)},...e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}}),A8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:E8(r,t)),T8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:y8(r,t)),C8=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:A8(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)},...e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Dn(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)},...e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits},...e.ReplicaTableClass!==void 0&&e.ReplicaTableClass!==null&&{ReplicaTableClass:e.ReplicaTableClass}}),x8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:C8(r,t)),I8=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:mW(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:SW(e.Delete,t)},...e.Update!==void 0&&e.Update!==null&&{Update:e6(e.Update,t)}}),R8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:I8(r,t)),D8=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:fW(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:vW(e.Delete,t)}}),P8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:D8(r,t)),N8=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn},...e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride},...e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:By(e.GlobalSecondaryIndexOverride,t)},...e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:Gy(e.LocalSecondaryIndexOverride,t)},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:hi(e.ProvisionedThroughputOverride,t)},...e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:Ll(e.SSESpecificationOverride,t)},...e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}}),O8=(e,t)=>({...e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride},...e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:By(e.GlobalSecondaryIndexOverride,t)},...e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:Gy(e.LocalSecondaryIndexOverride,t)},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:hi(e.ProvisionedThroughputOverride,t)},...e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null&&{RestoreDateTime:Math.round(e.RestoreDateTime.getTime()/1e3)},...e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:Ll(e.SSESpecificationOverride,t)},...e.SourceTableArn!==void 0&&e.SourceTableArn!==null&&{SourceTableArn:e.SourceTableArn},...e.SourceTableName!==void 0&&e.SourceTableName!==null&&{SourceTableName:e.SourceTableName},...e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName},...e.UseLatestRestorableTime!==void 0&&e.UseLatestRestorableTime!==null&&{UseLatestRestorableTime:e.UseLatestRestorableTime}}),L8=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:Nl(e.AttributesToGet,t)},...e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:or(e.ExclusiveStartKey,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:tn(e.ExpressionAttributeValues,t)},...e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression},...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ScanFilter!==void 0&&e.ScanFilter!==null&&{ScanFilter:VT(e.ScanFilter,t)},...e.Segment!==void 0&&e.Segment!==null&&{Segment:e.Segment},...e.Select!==void 0&&e.Select!==null&&{Select:e.Select},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.TotalSegments!==void 0&&e.TotalSegments!==null&&{TotalSegments:e.TotalSegments}}),Ll=(e,t)=>({...e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.SSEType!==void 0&&e.SSEType!==null&&{SSEType:e.SSEType}}),WT=(e,t)=>({...e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled},...e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}}),q8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),M8=(e,t)=>({...e.Key!==void 0&&e.Key!==null&&{Key:e.Key},...e.Value!==void 0&&e.Value!==null&&{Value:e.Value}}),z8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),YT=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:M8(r,t)),j8=(e,t)=>({...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn},...e.Tags!==void 0&&e.Tags!==null&&{Tags:YT(e.Tags,t)}}),k8=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}}),U8=(e,t)=>({...e.Get!==void 0&&e.Get!==null&&{Get:kW(e.Get,t)}}),F8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:U8(r,t)),B8=(e,t)=>({...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:F8(e.TransactItems,t)}}),G8=(e,t)=>({...e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:cW(e.ConditionCheck,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:hW(e.Delete,t)},...e.Put!==void 0&&e.Put!==null&&{Put:m8(e.Put,t)},...e.Update!==void 0&&e.Update!==null&&{Update:H8(e.Update,t)}}),$8=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:G8(r,t)),V8=(e,t)=>{var r;return{ClientRequestToken:(r=e.ClientRequestToken)!==null&&r!==void 0?r:(0,My.v4)(),...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics},...e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:$8(e.TransactItems,t)}}},K8=(e,t)=>({...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn},...e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:z8(e.TagKeys,t)}}),H8=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:tn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:or(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}}),W8=(e,t)=>({...e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:f8(e.PointInTimeRecoverySpecification,t)},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),Y8=(e,t)=>({...e.ContributorInsightsAction!==void 0&&e.ContributorInsightsAction!==null&&{ContributorInsightsAction:e.ContributorInsightsAction},...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),J8=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:hi(e.ProvisionedThroughput,t)}}),Q8=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:P8(e.ReplicaUpdates,t)}}),X8=(e,t)=>({...e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode},...e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:HW(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)},...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Dn(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)},...e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits},...e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:x8(e.ReplicaSettingsUpdate,t)}}),Z8=(e,t)=>({...e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:QH(e.AttributeUpdates,t)},...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator},...e.Expected!==void 0&&e.Expected!==null&&{Expected:Fy(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Wt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:tn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:or(e.Key,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics},...e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}}),e6=(e,t)=>({...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:HT(e.GlobalSecondaryIndexes,t)},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Ky(e.ProvisionedThroughputOverride,t)},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}}),t6=(e,t)=>({...e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:BT(e.AttributeDefinitions,t)},...e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode},...e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:VW(e.GlobalSecondaryIndexUpdates,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:hi(e.ProvisionedThroughput,t)},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:R8(e.ReplicaUpdates,t)},...e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:Ll(e.SSESpecification,t)},...e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:WT(e.StreamSpecification,t)},...e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),r6=(e,t)=>({...e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:GW(e.GlobalSecondaryIndexUpdates,t)},...e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Dn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:v8(e.ReplicaUpdates,t)},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),n6=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:k8(e.TimeToLiveSpecification,t)}}),i6=(e,t)=>({...e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:wW(e.DeleteRequest,t)},...e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:h8(e.PutRequest,t)}}),s6=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:i6(r,t)),o6=(e,t)=>({ArchivalBackupArn:(0,h.expectString)(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.ArchivalDateTime))):void 0,ArchivalReason:(0,h.expectString)(e.ArchivalReason)}),a6=(e,t)=>({AttributeName:(0,h.expectString)(e.AttributeName),AttributeType:(0,h.expectString)(e.AttributeType)}),c6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:a6(n,t)),Pn=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:ss((0,h.expectUnion)(i),t)},{}),l6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,h.expectString)(n)),ss=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:(0,h.expectBoolean)(e.BOOL)!==void 0?{BOOL:(0,h.expectBoolean)(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:T6(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:M4(e.L,t)}:e.M!==void 0&&e.M!==null?{M:H4(e.M,t)}:(0,h.expectString)(e.N)!==void 0?{N:(0,h.expectString)(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:Y4(e.NS,t)}:(0,h.expectBoolean)(e.NULL)!==void 0?{NULL:(0,h.expectBoolean)(e.NULL)}:(0,h.expectString)(e.S)!==void 0?{S:(0,h.expectString)(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:x5(e.SS,t)}:{$unknown:Object.entries(e)[0]},u6=(e,t)=>({PolicyName:(0,h.expectString)(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?f6(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),d6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:u6(n,t)),Rn=(e,t)=>({AutoScalingDisabled:(0,h.expectBoolean)(e.AutoScalingDisabled),AutoScalingRoleArn:(0,h.expectString)(e.AutoScalingRoleArn),MaximumUnits:(0,h.expectLong)(e.MaximumUnits),MinimumUnits:(0,h.expectLong)(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?d6(e.ScalingPolicies,t):void 0}),f6=(e,t)=>({DisableScaleIn:(0,h.expectBoolean)(e.DisableScaleIn),ScaleInCooldown:(0,h.expectInt32)(e.ScaleInCooldown),ScaleOutCooldown:(0,h.expectInt32)(e.ScaleOutCooldown),TargetValue:(0,h.limitedParseDouble)(e.TargetValue)}),JT=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?QT(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?T5(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?C5(e.SourceTableFeatureDetails,t):void 0}),QT=(e,t)=>({BackupArn:(0,h.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,h.expectString)(e.BackupName),BackupSizeBytes:(0,h.expectLong)(e.BackupSizeBytes),BackupStatus:(0,h.expectString)(e.BackupStatus),BackupType:(0,h.expectString)(e.BackupType)}),m6=(e,t)=>({message:(0,h.expectString)(e.message)}),p6=(e,t)=>({message:(0,h.expectString)(e.message)}),h6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:_6(n,t)),_6=(e,t)=>({BackupArn:(0,h.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,h.expectString)(e.BackupName),BackupSizeBytes:(0,h.expectLong)(e.BackupSizeBytes),BackupStatus:(0,h.expectString)(e.BackupStatus),BackupType:(0,h.expectString)(e.BackupType),TableArn:(0,h.expectString)(e.TableArn),TableId:(0,h.expectString)(e.TableId),TableName:(0,h.expectString)(e.TableName)}),y6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?os(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?J4(e.Responses,t):void 0}),g6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?os(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?S6(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?v6(e.UnprocessedKeys,t):void 0}),v6=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:P4(i,t)},{}),S6=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Ml(i,t)},{}),w6=(e,t)=>({Code:(0,h.expectString)(e.Code),Message:(0,h.expectString)(e.Message)}),b6=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?w6(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Pn(e.Item,t):void 0,TableName:(0,h.expectString)(e.TableName)}),E6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?os(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?rC(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?A6(e.UnprocessedItems,t):void 0}),A6=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Y5(i,t)},{}),XT=(e,t)=>({BillingMode:(0,h.expectString)(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.LastUpdateToPayPerRequestDateTime))):void 0}),T6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),C6=(e,t)=>({Code:(0,h.expectString)(e.Code),Item:e.Item!==void 0&&e.Item!==null?Pn(e.Item,t):void 0,Message:(0,h.expectString)(e.Message)}),x6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:C6(n,t)),ZT=(e,t)=>({CapacityUnits:(0,h.limitedParseDouble)(e.CapacityUnits),ReadCapacityUnits:(0,h.limitedParseDouble)(e.ReadCapacityUnits),WriteCapacityUnits:(0,h.limitedParseDouble)(e.WriteCapacityUnits)}),I6=(e,t)=>({message:(0,h.expectString)(e.message)}),Nn=(e,t)=>({CapacityUnits:(0,h.limitedParseDouble)(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?qT(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?qT(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:(0,h.limitedParseDouble)(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?ZT(e.Table,t):void 0,TableName:(0,h.expectString)(e.TableName),WriteCapacityUnits:(0,h.limitedParseDouble)(e.WriteCapacityUnits)}),os=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Nn(n,t)),eC=(e,t)=>({ContinuousBackupsStatus:(0,h.expectString)(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?Q4(e.PointInTimeRecoveryDescription,t):void 0}),R6=(e,t)=>({message:(0,h.expectString)(e.message)}),D6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,h.expectString)(n)),P6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:N6(n,t)),N6=(e,t)=>({ContributorInsightsStatus:(0,h.expectString)(e.ContributorInsightsStatus),IndexName:(0,h.expectString)(e.IndexName),TableName:(0,h.expectString)(e.TableName)}),O6=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?QT(e.BackupDetails,t):void 0}),L6=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Wy(e.GlobalTableDescription,t):void 0}),q6=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?cs(e.TableDescription,t):void 0}),M6=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?JT(e.BackupDescription,t):void 0}),z6=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Pn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?ql(e.ItemCollectionMetrics,t):void 0}),j6=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?oa(e.Key,t):void 0}),k6=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?cs(e.TableDescription,t):void 0}),U6=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?JT(e.BackupDescription,t):void 0}),F6=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?eC(e.ContinuousBackupsDescription,t):void 0}),B6=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?D6(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:(0,h.expectString)(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?l4(e.FailureException,t):void 0,IndexName:(0,h.expectString)(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.LastUpdateDateTime))):void 0,TableName:(0,h.expectString)(e.TableName)}),G6=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?e4(e.Endpoints,t):void 0}),$6=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?tC(e.ExportDescription,t):void 0}),V6=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Wy(e.GlobalTableDescription,t):void 0}),K6=(e,t)=>({GlobalTableName:(0,h.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?lC(e.ReplicaSettings,t):void 0}),H6=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?L4(e.KinesisDataStreamDestinations,t):void 0,TableName:(0,h.expectString)(e.TableName)}),W6=(e,t)=>({AccountMaxReadCapacityUnits:(0,h.expectLong)(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:(0,h.expectLong)(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:(0,h.expectLong)(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:(0,h.expectLong)(e.TableMaxWriteCapacityUnits)}),Y6=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?cs(e.Table,t):void 0}),J6=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?fC(e.TableAutoScalingDescription,t):void 0}),Q6=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?mC(e.TimeToLiveDescription,t):void 0}),X6=(e,t)=>({message:(0,h.expectString)(e.message)}),Z6=(e,t)=>({Address:(0,h.expectString)(e.Address),CachePeriodInMinutes:(0,h.expectLong)(e.CachePeriodInMinutes)}),e4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Z6(n,t)),t4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nn(e.ConsumedCapacity,t):void 0,Items:e.Items!==void 0&&e.Items!==null?Ml(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?oa(e.LastEvaluatedKey,t):void 0,NextToken:(0,h.expectString)(e.NextToken)}),r4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?os(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?nC(e.Responses,t):void 0}),n4=(e,t)=>({message:(0,h.expectString)(e.message)}),tC=(e,t)=>({BilledSizeBytes:(0,h.expectLong)(e.BilledSizeBytes),ClientToken:(0,h.expectString)(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.EndTime))):void 0,ExportArn:(0,h.expectString)(e.ExportArn),ExportFormat:(0,h.expectString)(e.ExportFormat),ExportManifest:(0,h.expectString)(e.ExportManifest),ExportStatus:(0,h.expectString)(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.ExportTime))):void 0,FailureCode:(0,h.expectString)(e.FailureCode),FailureMessage:(0,h.expectString)(e.FailureMessage),ItemCount:(0,h.expectLong)(e.ItemCount),S3Bucket:(0,h.expectString)(e.S3Bucket),S3BucketOwner:(0,h.expectString)(e.S3BucketOwner),S3Prefix:(0,h.expectString)(e.S3Prefix),S3SseAlgorithm:(0,h.expectString)(e.S3SseAlgorithm),S3SseKmsKeyId:(0,h.expectString)(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.StartTime))):void 0,TableArn:(0,h.expectString)(e.TableArn),TableId:(0,h.expectString)(e.TableId)}),i4=(e,t)=>({message:(0,h.expectString)(e.message)}),s4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:o4(n,t)),o4=(e,t)=>({ExportArn:(0,h.expectString)(e.ExportArn),ExportStatus:(0,h.expectString)(e.ExportStatus)}),a4=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?tC(e.ExportDescription,t):void 0}),c4=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:(0,h.expectString)(i)},{}),l4=(e,t)=>({ExceptionDescription:(0,h.expectString)(e.ExceptionDescription),ExceptionName:(0,h.expectString)(e.ExceptionName)}),u4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nn(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Pn(e.Item,t):void 0}),d4=(e,t)=>({Backfilling:(0,h.expectBoolean)(e.Backfilling),IndexArn:(0,h.expectString)(e.IndexArn),IndexName:(0,h.expectString)(e.IndexName),IndexSizeBytes:(0,h.expectLong)(e.IndexSizeBytes),IndexStatus:(0,h.expectString)(e.IndexStatus),ItemCount:(0,h.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?as(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?zl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?oC(e.ProvisionedThroughput,t):void 0}),f4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:d4(n,t)),m4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:p4(n,t)),p4=(e,t)=>({IndexName:(0,h.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?as(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?zl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?sC(e.ProvisionedThroughput,t):void 0}),h4=(e,t)=>({GlobalTableName:(0,h.expectString)(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?h5(e.ReplicationGroup,t):void 0}),_4=(e,t)=>({message:(0,h.expectString)(e.message)}),Wy=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.CreationDateTime))):void 0,GlobalTableArn:(0,h.expectString)(e.GlobalTableArn),GlobalTableName:(0,h.expectString)(e.GlobalTableName),GlobalTableStatus:(0,h.expectString)(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?cC(e.ReplicationGroup,t):void 0}),y4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:h4(n,t)),g4=(e,t)=>({message:(0,h.expectString)(e.message)}),v4=(e,t)=>({Message:(0,h.expectString)(e.Message)}),S4=(e,t)=>({message:(0,h.expectString)(e.message)}),w4=(e,t)=>({message:(0,h.expectString)(e.message)}),b4=(e,t)=>({Message:(0,h.expectString)(e.Message)}),E4=(e,t)=>({message:(0,h.expectString)(e.message)}),A4=(e,t)=>({message:(0,h.expectString)(e.message)}),T4=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:ss((0,h.expectUnion)(i),t)},{}),ql=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?T4(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?x4(e.SizeEstimateRangeGB,t):void 0}),C4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ql(n,t)),rC=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:C4(i,t)},{}),x4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,h.limitedParseDouble)(n)),I4=(e,t)=>({message:(0,h.expectString)(e.message)}),Ml=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Pn(n,t)),R4=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?Pn(e.Item,t):void 0}),nC=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:R4(n,t)),oa=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:ss((0,h.expectUnion)(i),t)},{}),D4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:oa(n,t)),P4=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?l6(e.AttributesToGet,t):void 0,ConsistentRead:(0,h.expectBoolean)(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?c4(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?D4(e.Keys,t):void 0,ProjectionExpression:(0,h.expectString)(e.ProjectionExpression)}),as=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:N4(n,t)),N4=(e,t)=>({AttributeName:(0,h.expectString)(e.AttributeName),KeyType:(0,h.expectString)(e.KeyType)}),O4=(e,t)=>({DestinationStatus:(0,h.expectString)(e.DestinationStatus),DestinationStatusDescription:(0,h.expectString)(e.DestinationStatusDescription),StreamArn:(0,h.expectString)(e.StreamArn)}),L4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:O4(n,t)),iC=(e,t)=>({DestinationStatus:(0,h.expectString)(e.DestinationStatus),StreamArn:(0,h.expectString)(e.StreamArn),TableName:(0,h.expectString)(e.TableName)}),q4=(e,t)=>({message:(0,h.expectString)(e.message)}),M4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ss((0,h.expectUnion)(n),t)),z4=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?h6(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:(0,h.expectString)(e.LastEvaluatedBackupArn)}),j4=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?P6(e.ContributorInsightsSummaries,t):void 0,NextToken:(0,h.expectString)(e.NextToken)}),k4=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?s4(e.ExportSummaries,t):void 0,NextToken:(0,h.expectString)(e.NextToken)}),U4=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?y4(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:(0,h.expectString)(e.LastEvaluatedGlobalTableName)}),F4=(e,t)=>({LastEvaluatedTableName:(0,h.expectString)(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?D5(e.TableNames,t):void 0}),B4=(e,t)=>({NextToken:(0,h.expectString)(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?O5(e.Tags,t):void 0}),G4=(e,t)=>({IndexArn:(0,h.expectString)(e.IndexArn),IndexName:(0,h.expectString)(e.IndexName),IndexSizeBytes:(0,h.expectLong)(e.IndexSizeBytes),ItemCount:(0,h.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?as(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?zl(e.Projection,t):void 0}),$4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:G4(n,t)),V4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:K4(n,t)),K4=(e,t)=>({IndexName:(0,h.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?as(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?zl(e.Projection,t):void 0}),H4=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:ss((0,h.expectUnion)(i),t)},{}),W4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,h.expectString)(n)),Y4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,h.expectString)(n)),J4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:b6(n,t)),Q4=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.EarliestRestorableDateTime))):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.LatestRestorableDateTime))):void 0,PointInTimeRecoveryStatus:(0,h.expectString)(e.PointInTimeRecoveryStatus)}),X4=(e,t)=>({message:(0,h.expectString)(e.message)}),zl=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?W4(e.NonKeyAttributes,t):void 0,ProjectionType:(0,h.expectString)(e.ProjectionType)}),sC=(e,t)=>({ReadCapacityUnits:(0,h.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,h.expectLong)(e.WriteCapacityUnits)}),oC=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.LastDecreaseDateTime))):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.LastIncreaseDateTime))):void 0,NumberOfDecreasesToday:(0,h.expectLong)(e.NumberOfDecreasesToday),ReadCapacityUnits:(0,h.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,h.expectLong)(e.WriteCapacityUnits)}),Z4=(e,t)=>({message:(0,h.expectString)(e.message)}),aC=(e,t)=>({ReadCapacityUnits:(0,h.expectLong)(e.ReadCapacityUnits)}),e5=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:ss((0,h.expectUnion)(i),t)},{}),t5=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Pn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?ql(e.ItemCollectionMetrics,t):void 0}),r5=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?e5(e.Item,t):void 0}),n5=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nn(e.ConsumedCapacity,t):void 0,Count:(0,h.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Ml(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?oa(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,h.expectInt32)(e.ScannedCount)}),i5=(e,t)=>({RegionName:(0,h.expectString)(e.RegionName)}),s5=(e,t)=>({message:(0,h.expectString)(e.message)}),o5=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?u5(e.GlobalSecondaryIndexes,t):void 0,RegionName:(0,h.expectString)(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Rn(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Rn(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:(0,h.expectString)(e.ReplicaStatus)}),a5=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:o5(n,t)),c5=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?f5(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:(0,h.expectString)(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?aC(e.ProvisionedThroughputOverride,t):void 0,RegionName:(0,h.expectString)(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.ReplicaInaccessibleDateTime))):void 0,ReplicaStatus:(0,h.expectString)(e.ReplicaStatus),ReplicaStatusDescription:(0,h.expectString)(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:(0,h.expectString)(e.ReplicaStatusPercentProgress),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?Yy(e.ReplicaTableClassSummary,t):void 0}),cC=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:c5(n,t)),l5=(e,t)=>({IndexName:(0,h.expectString)(e.IndexName),IndexStatus:(0,h.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Rn(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Rn(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),u5=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:l5(n,t)),d5=(e,t)=>({IndexName:(0,h.expectString)(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?aC(e.ProvisionedThroughputOverride,t):void 0}),f5=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:d5(n,t)),m5=(e,t)=>({IndexName:(0,h.expectString)(e.IndexName),IndexStatus:(0,h.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Rn(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:(0,h.expectLong)(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Rn(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:(0,h.expectLong)(e.ProvisionedWriteCapacityUnits)}),p5=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:m5(n,t)),h5=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:i5(n,t)),_5=(e,t)=>({message:(0,h.expectString)(e.message)}),y5=(e,t)=>({RegionName:(0,h.expectString)(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?XT(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?p5(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Rn(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:(0,h.expectLong)(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Rn(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:(0,h.expectLong)(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:(0,h.expectString)(e.ReplicaStatus),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?Yy(e.ReplicaTableClassSummary,t):void 0}),lC=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y5(n,t)),g5=(e,t)=>({message:(0,h.expectString)(e.message)}),v5=(e,t)=>({message:(0,h.expectString)(e.message)}),S5=(e,t)=>({message:(0,h.expectString)(e.message)}),w5=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.RestoreDateTime))):void 0,RestoreInProgress:(0,h.expectBoolean)(e.RestoreInProgress),SourceBackupArn:(0,h.expectString)(e.SourceBackupArn),SourceTableArn:(0,h.expectString)(e.SourceTableArn)}),b5=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?cs(e.TableDescription,t):void 0}),E5=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?cs(e.TableDescription,t):void 0}),A5=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nn(e.ConsumedCapacity,t):void 0,Count:(0,h.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Ml(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?oa(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,h.expectInt32)(e.ScannedCount)}),qT=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:ZT(i,t)},{}),T5=(e,t)=>({BillingMode:(0,h.expectString)(e.BillingMode),ItemCount:(0,h.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?as(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?sC(e.ProvisionedThroughput,t):void 0,TableArn:(0,h.expectString)(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.TableCreationDateTime))):void 0,TableId:(0,h.expectString)(e.TableId),TableName:(0,h.expectString)(e.TableName),TableSizeBytes:(0,h.expectLong)(e.TableSizeBytes)}),C5=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?m4(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?V4(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?uC(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?dC(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?mC(e.TimeToLiveDescription,t):void 0}),uC=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.InaccessibleEncryptionDateTime))):void 0,KMSMasterKeyArn:(0,h.expectString)(e.KMSMasterKeyArn),SSEType:(0,h.expectString)(e.SSEType),Status:(0,h.expectString)(e.Status)}),dC=(e,t)=>({StreamEnabled:(0,h.expectBoolean)(e.StreamEnabled),StreamViewType:(0,h.expectString)(e.StreamViewType)}),x5=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,h.expectString)(n)),I5=(e,t)=>({message:(0,h.expectString)(e.message)}),fC=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?a5(e.Replicas,t):void 0,TableName:(0,h.expectString)(e.TableName),TableStatus:(0,h.expectString)(e.TableStatus)}),Yy=(e,t)=>({LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.LastUpdateDateTime))):void 0,TableClass:(0,h.expectString)(e.TableClass)}),cs=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?o6(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?c6(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?XT(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,h.expectNonNull)((0,h.parseEpochTimestamp)((0,h.expectNumber)(e.CreationDateTime))):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?f4(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:(0,h.expectString)(e.GlobalTableVersion),ItemCount:(0,h.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?as(e.KeySchema,t):void 0,LatestStreamArn:(0,h.expectString)(e.LatestStreamArn),LatestStreamLabel:(0,h.expectString)(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?$4(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?oC(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?cC(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?w5(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?uC(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?dC(e.StreamSpecification,t):void 0,TableArn:(0,h.expectString)(e.TableArn),TableClassSummary:e.TableClassSummary!==void 0&&e.TableClassSummary!==null?Yy(e.TableClassSummary,t):void 0,TableId:(0,h.expectString)(e.TableId),TableName:(0,h.expectString)(e.TableName),TableSizeBytes:(0,h.expectLong)(e.TableSizeBytes),TableStatus:(0,h.expectString)(e.TableStatus)}),R5=(e,t)=>({message:(0,h.expectString)(e.message)}),D5=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,h.expectString)(n)),P5=(e,t)=>({message:(0,h.expectString)(e.message)}),N5=(e,t)=>({Key:(0,h.expectString)(e.Key),Value:(0,h.expectString)(e.Value)}),O5=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:N5(n,t)),mC=(e,t)=>({AttributeName:(0,h.expectString)(e.AttributeName),TimeToLiveStatus:(0,h.expectString)(e.TimeToLiveStatus)}),L5=(e,t)=>({AttributeName:(0,h.expectString)(e.AttributeName),Enabled:(0,h.expectBoolean)(e.Enabled)}),q5=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?os(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?nC(e.Responses,t):void 0}),M5=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?x6(e.CancellationReasons,t):void 0,Message:(0,h.expectString)(e.Message)}),z5=(e,t)=>({message:(0,h.expectString)(e.message)}),j5=(e,t)=>({Message:(0,h.expectString)(e.Message)}),k5=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?os(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?rC(e.ItemCollectionMetrics,t):void 0}),U5=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?eC(e.ContinuousBackupsDescription,t):void 0}),F5=(e,t)=>({ContributorInsightsStatus:(0,h.expectString)(e.ContributorInsightsStatus),IndexName:(0,h.expectString)(e.IndexName),TableName:(0,h.expectString)(e.TableName)}),B5=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Wy(e.GlobalTableDescription,t):void 0}),G5=(e,t)=>({GlobalTableName:(0,h.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?lC(e.ReplicaSettings,t):void 0}),$5=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Pn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?ql(e.ItemCollectionMetrics,t):void 0}),V5=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?cs(e.TableDescription,t):void 0}),K5=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?fC(e.TableAutoScalingDescription,t):void 0}),H5=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?L5(e.TimeToLiveSpecification,t):void 0}),W5=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?j6(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?r5(e.PutRequest,t):void 0}),Y5=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:W5(n,t)),C=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},Jy=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),J5=(e,t)=>Jy(e,t).then(r=>t.utf8Encoder(r)),te=async(e,t,r,n,i)=>{let{hostname:s,protocol:o="https",port:a,path:c}=await e.endpoint(),u={protocol:o,hostname:s,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+r:c+r,headers:t};return n!==void 0&&(u.hostname=n),i!==void 0&&(u.body=i),new ZV.HttpRequest(u)},D=(e,t)=>J5(e,t).then(r=>r.length?JSON.parse(r):{}),re=(e,t)=>{let r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var Xy=f(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.BatchExecuteStatementCommand=void 0;var Q5=B(),X5=O(),pC=W(),hC=X(),Qy=class extends X5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Q5.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:pC.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:pC.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,hC.serializeAws_json1_0BatchExecuteStatementCommand)(t,r)}deserialize(t,r){return(0,hC.deserializeAws_json1_0BatchExecuteStatementCommand)(t,r)}};jl.BatchExecuteStatementCommand=Qy});var eg=f(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.BatchGetItemCommand=void 0;var Z5=B(),eY=O(),_C=W(),yC=X(),Zy=class extends eY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Z5.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:_C.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:_C.BatchGetItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,yC.serializeAws_json1_0BatchGetItemCommand)(t,r)}deserialize(t,r){return(0,yC.deserializeAws_json1_0BatchGetItemCommand)(t,r)}};kl.BatchGetItemCommand=Zy});var rg=f(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.BatchWriteItemCommand=void 0;var tY=B(),rY=O(),gC=W(),vC=X(),tg=class extends rY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,tY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:gC.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:gC.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,vC.serializeAws_json1_0BatchWriteItemCommand)(t,r)}deserialize(t,r){return(0,vC.deserializeAws_json1_0BatchWriteItemCommand)(t,r)}};Ul.BatchWriteItemCommand=tg});var ig=f(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.CreateBackupCommand=void 0;var nY=B(),iY=O(),SC=W(),wC=X(),ng=class extends iY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,nY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:SC.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:SC.CreateBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,wC.serializeAws_json1_0CreateBackupCommand)(t,r)}deserialize(t,r){return(0,wC.deserializeAws_json1_0CreateBackupCommand)(t,r)}};Fl.CreateBackupCommand=ng});var og=f(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.CreateGlobalTableCommand=void 0;var sY=B(),oY=O(),bC=W(),EC=X(),sg=class extends oY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,sY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:bC.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:bC.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,EC.serializeAws_json1_0CreateGlobalTableCommand)(t,r)}deserialize(t,r){return(0,EC.deserializeAws_json1_0CreateGlobalTableCommand)(t,r)}};Bl.CreateGlobalTableCommand=sg});var cg=f(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.CreateTableCommand=void 0;var aY=B(),cY=O(),AC=W(),TC=X(),ag=class extends cY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,aY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:AC.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:AC.CreateTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,TC.serializeAws_json1_0CreateTableCommand)(t,r)}deserialize(t,r){return(0,TC.deserializeAws_json1_0CreateTableCommand)(t,r)}};Gl.CreateTableCommand=ag});var ug=f($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.DeleteBackupCommand=void 0;var lY=B(),uY=O(),CC=W(),xC=X(),lg=class extends uY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,lY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:CC.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:CC.DeleteBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,xC.serializeAws_json1_0DeleteBackupCommand)(t,r)}deserialize(t,r){return(0,xC.deserializeAws_json1_0DeleteBackupCommand)(t,r)}};$l.DeleteBackupCommand=lg});var fg=f(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.DeleteItemCommand=void 0;var dY=B(),fY=O(),IC=W(),RC=X(),dg=class extends fY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,dY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:IC.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:IC.DeleteItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,RC.serializeAws_json1_0DeleteItemCommand)(t,r)}deserialize(t,r){return(0,RC.deserializeAws_json1_0DeleteItemCommand)(t,r)}};Vl.DeleteItemCommand=dg});var pg=f(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.DeleteTableCommand=void 0;var mY=B(),pY=O(),DC=W(),PC=X(),mg=class extends pY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,mY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:DC.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:DC.DeleteTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,PC.serializeAws_json1_0DeleteTableCommand)(t,r)}deserialize(t,r){return(0,PC.deserializeAws_json1_0DeleteTableCommand)(t,r)}};Kl.DeleteTableCommand=mg});var _g=f(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.DescribeBackupCommand=void 0;var hY=B(),_Y=O(),NC=W(),OC=X(),hg=class extends _Y.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,hY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:NC.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:NC.DescribeBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,OC.serializeAws_json1_0DescribeBackupCommand)(t,r)}deserialize(t,r){return(0,OC.deserializeAws_json1_0DescribeBackupCommand)(t,r)}};Hl.DescribeBackupCommand=hg});var gg=f(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.DescribeContinuousBackupsCommand=void 0;var yY=B(),gY=O(),LC=W(),qC=X(),yg=class extends gY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,yY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:LC.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:LC.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,qC.serializeAws_json1_0DescribeContinuousBackupsCommand)(t,r)}deserialize(t,r){return(0,qC.deserializeAws_json1_0DescribeContinuousBackupsCommand)(t,r)}};Wl.DescribeContinuousBackupsCommand=yg});var Sg=f(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.DescribeContributorInsightsCommand=void 0;var vY=B(),SY=O(),MC=W(),zC=X(),vg=class extends SY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,vY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:MC.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:MC.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,zC.serializeAws_json1_0DescribeContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,zC.deserializeAws_json1_0DescribeContributorInsightsCommand)(t,r)}};Yl.DescribeContributorInsightsCommand=vg});var Ql=f(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.DescribeEndpointsCommand=void 0;var wY=B(),bY=O(),jC=W(),kC=X(),wg=class extends bY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,wY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:jC.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:jC.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,kC.serializeAws_json1_0DescribeEndpointsCommand)(t,r)}deserialize(t,r){return(0,kC.deserializeAws_json1_0DescribeEndpointsCommand)(t,r)}};Jl.DescribeEndpointsCommand=wg});var Eg=f(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.DescribeExportCommand=void 0;var EY=B(),AY=O(),UC=W(),FC=X(),bg=class extends AY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,EY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:UC.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:UC.DescribeExportOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,FC.serializeAws_json1_0DescribeExportCommand)(t,r)}deserialize(t,r){return(0,FC.deserializeAws_json1_0DescribeExportCommand)(t,r)}};Xl.DescribeExportCommand=bg});var Tg=f(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.DescribeGlobalTableCommand=void 0;var TY=B(),CY=O(),BC=W(),GC=X(),Ag=class extends CY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,TY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:BC.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:BC.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,GC.serializeAws_json1_0DescribeGlobalTableCommand)(t,r)}deserialize(t,r){return(0,GC.deserializeAws_json1_0DescribeGlobalTableCommand)(t,r)}};Zl.DescribeGlobalTableCommand=Ag});var xg=f(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.DescribeGlobalTableSettingsCommand=void 0;var xY=B(),IY=O(),$C=W(),VC=X(),Cg=class extends IY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,xY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:$C.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:$C.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,VC.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,r)}deserialize(t,r){return(0,VC.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,r)}};eu.DescribeGlobalTableSettingsCommand=Cg});var Rg=f(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.DescribeKinesisStreamingDestinationCommand=void 0;var RY=B(),DY=O(),KC=W(),HC=X(),Ig=class extends DY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,RY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:KC.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:KC.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,HC.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,HC.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,r)}};tu.DescribeKinesisStreamingDestinationCommand=Ig});var Pg=f(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.DescribeLimitsCommand=void 0;var PY=B(),NY=O(),WC=W(),YC=X(),Dg=class extends NY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,PY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:WC.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:WC.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,YC.serializeAws_json1_0DescribeLimitsCommand)(t,r)}deserialize(t,r){return(0,YC.deserializeAws_json1_0DescribeLimitsCommand)(t,r)}};ru.DescribeLimitsCommand=Dg});var aa=f(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.DescribeTableCommand=void 0;var OY=B(),LY=O(),JC=W(),QC=X(),Ng=class extends LY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,OY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:JC.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:JC.DescribeTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,QC.serializeAws_json1_0DescribeTableCommand)(t,r)}deserialize(t,r){return(0,QC.deserializeAws_json1_0DescribeTableCommand)(t,r)}};nu.DescribeTableCommand=Ng});var Lg=f(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.DescribeTableReplicaAutoScalingCommand=void 0;var qY=B(),MY=O(),XC=W(),ZC=X(),Og=class extends MY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,qY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:XC.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:XC.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,ZC.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,r)}deserialize(t,r){return(0,ZC.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,r)}};iu.DescribeTableReplicaAutoScalingCommand=Og});var Mg=f(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.DescribeTimeToLiveCommand=void 0;var zY=B(),jY=O(),ex=W(),tx=X(),qg=class extends jY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,zY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:ex.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:ex.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,tx.serializeAws_json1_0DescribeTimeToLiveCommand)(t,r)}deserialize(t,r){return(0,tx.deserializeAws_json1_0DescribeTimeToLiveCommand)(t,r)}};su.DescribeTimeToLiveCommand=qg});var jg=f(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.DisableKinesisStreamingDestinationCommand=void 0;var kY=B(),UY=O(),rx=W(),nx=X(),zg=class extends UY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,kY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:rx.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:rx.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,nx.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,nx.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,r)}};ou.DisableKinesisStreamingDestinationCommand=zg});var Ug=f(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.EnableKinesisStreamingDestinationCommand=void 0;var FY=B(),BY=O(),ix=W(),sx=X(),kg=class extends BY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,FY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:ix.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:ix.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,sx.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,sx.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,r)}};au.EnableKinesisStreamingDestinationCommand=kg});var Bg=f(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.ExecuteStatementCommand=void 0;var GY=B(),$Y=O(),ox=W(),ax=X(),Fg=class extends $Y.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,GY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:ox.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:ox.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,ax.serializeAws_json1_0ExecuteStatementCommand)(t,r)}deserialize(t,r){return(0,ax.deserializeAws_json1_0ExecuteStatementCommand)(t,r)}};cu.ExecuteStatementCommand=Fg});var $g=f(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.ExecuteTransactionCommand=void 0;var VY=B(),KY=O(),cx=W(),lx=X(),Gg=class extends KY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,VY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:cx.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:cx.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,lx.serializeAws_json1_0ExecuteTransactionCommand)(t,r)}deserialize(t,r){return(0,lx.deserializeAws_json1_0ExecuteTransactionCommand)(t,r)}};lu.ExecuteTransactionCommand=Gg});var Kg=f(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.ExportTableToPointInTimeCommand=void 0;var HY=B(),WY=O(),ux=W(),dx=X(),Vg=class extends WY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,HY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:ux.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:ux.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,dx.serializeAws_json1_0ExportTableToPointInTimeCommand)(t,r)}deserialize(t,r){return(0,dx.deserializeAws_json1_0ExportTableToPointInTimeCommand)(t,r)}};uu.ExportTableToPointInTimeCommand=Vg});var Wg=f(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.GetItemCommand=void 0;var YY=B(),JY=O(),fx=W(),mx=X(),Hg=class extends JY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,YY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:fx.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:fx.GetItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,mx.serializeAws_json1_0GetItemCommand)(t,r)}deserialize(t,r){return(0,mx.deserializeAws_json1_0GetItemCommand)(t,r)}};du.GetItemCommand=Hg});var Jg=f(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.ListBackupsCommand=void 0;var QY=B(),XY=O(),px=W(),hx=X(),Yg=class extends XY.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,QY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:px.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:px.ListBackupsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,hx.serializeAws_json1_0ListBackupsCommand)(t,r)}deserialize(t,r){return(0,hx.deserializeAws_json1_0ListBackupsCommand)(t,r)}};fu.ListBackupsCommand=Yg});var pu=f(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.ListContributorInsightsCommand=void 0;var ZY=B(),e7=O(),_x=W(),yx=X(),Qg=class extends e7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ZY.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:_x.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:_x.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,yx.serializeAws_json1_0ListContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,yx.deserializeAws_json1_0ListContributorInsightsCommand)(t,r)}};mu.ListContributorInsightsCommand=Qg});var _u=f(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.ListExportsCommand=void 0;var t7=B(),r7=O(),gx=W(),vx=X(),Xg=class extends r7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,t7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:gx.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:gx.ListExportsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,vx.serializeAws_json1_0ListExportsCommand)(t,r)}deserialize(t,r){return(0,vx.deserializeAws_json1_0ListExportsCommand)(t,r)}};hu.ListExportsCommand=Xg});var ev=f(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.ListGlobalTablesCommand=void 0;var n7=B(),i7=O(),Sx=W(),wx=X(),Zg=class extends i7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,n7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:Sx.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:Sx.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,wx.serializeAws_json1_0ListGlobalTablesCommand)(t,r)}deserialize(t,r){return(0,wx.deserializeAws_json1_0ListGlobalTablesCommand)(t,r)}};yu.ListGlobalTablesCommand=Zg});var vu=f(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.ListTablesCommand=void 0;var s7=B(),o7=O(),bx=W(),Ex=X(),tv=class extends o7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,s7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:bx.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:bx.ListTablesOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Ex.serializeAws_json1_0ListTablesCommand)(t,r)}deserialize(t,r){return(0,Ex.deserializeAws_json1_0ListTablesCommand)(t,r)}};gu.ListTablesCommand=tv});var nv=f(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.ListTagsOfResourceCommand=void 0;var a7=B(),c7=O(),Ax=W(),Tx=X(),rv=class extends c7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,a7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:Ax.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:Ax.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Tx.serializeAws_json1_0ListTagsOfResourceCommand)(t,r)}deserialize(t,r){return(0,Tx.deserializeAws_json1_0ListTagsOfResourceCommand)(t,r)}};Su.ListTagsOfResourceCommand=rv});var sv=f(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.PutItemCommand=void 0;var l7=B(),u7=O(),Cx=W(),xx=X(),iv=class extends u7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,l7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:Cx.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:Cx.PutItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,xx.serializeAws_json1_0PutItemCommand)(t,r)}deserialize(t,r){return(0,xx.deserializeAws_json1_0PutItemCommand)(t,r)}};wu.PutItemCommand=iv});var Eu=f(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.QueryCommand=void 0;var d7=B(),f7=O(),Ix=W(),Rx=X(),ov=class extends f7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,d7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:Ix.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:Ix.QueryOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Rx.serializeAws_json1_0QueryCommand)(t,r)}deserialize(t,r){return(0,Rx.deserializeAws_json1_0QueryCommand)(t,r)}};bu.QueryCommand=ov});var cv=f(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.RestoreTableFromBackupCommand=void 0;var m7=B(),p7=O(),Dx=W(),Px=X(),av=class extends p7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,m7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:Dx.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:Dx.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Px.serializeAws_json1_0RestoreTableFromBackupCommand)(t,r)}deserialize(t,r){return(0,Px.deserializeAws_json1_0RestoreTableFromBackupCommand)(t,r)}};Au.RestoreTableFromBackupCommand=av});var uv=f(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.RestoreTableToPointInTimeCommand=void 0;var h7=B(),_7=O(),Nx=W(),Ox=X(),lv=class extends _7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,h7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:Nx.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:Nx.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Ox.serializeAws_json1_0RestoreTableToPointInTimeCommand)(t,r)}deserialize(t,r){return(0,Ox.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(t,r)}};Tu.RestoreTableToPointInTimeCommand=lv});var xu=f(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.ScanCommand=void 0;var y7=B(),g7=O(),Lx=W(),qx=X(),dv=class extends g7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,y7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:Lx.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:Lx.ScanOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,qx.serializeAws_json1_0ScanCommand)(t,r)}deserialize(t,r){return(0,qx.deserializeAws_json1_0ScanCommand)(t,r)}};Cu.ScanCommand=dv});var mv=f(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.TagResourceCommand=void 0;var v7=B(),S7=O(),w7=W(),Mx=X(),fv=class extends S7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,v7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:w7.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:d=>d},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Mx.serializeAws_json1_0TagResourceCommand)(t,r)}deserialize(t,r){return(0,Mx.deserializeAws_json1_0TagResourceCommand)(t,r)}};Iu.TagResourceCommand=fv});var hv=f(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.TransactGetItemsCommand=void 0;var b7=B(),E7=O(),zx=W(),jx=X(),pv=class extends E7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,b7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:zx.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:zx.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,jx.serializeAws_json1_0TransactGetItemsCommand)(t,r)}deserialize(t,r){return(0,jx.deserializeAws_json1_0TransactGetItemsCommand)(t,r)}};Ru.TransactGetItemsCommand=pv});var yv=f(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.TransactWriteItemsCommand=void 0;var A7=B(),T7=O(),kx=W(),Ux=X(),_v=class extends T7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,A7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:kx.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:kx.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Ux.serializeAws_json1_0TransactWriteItemsCommand)(t,r)}deserialize(t,r){return(0,Ux.deserializeAws_json1_0TransactWriteItemsCommand)(t,r)}};Du.TransactWriteItemsCommand=_v});var vv=f(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.UntagResourceCommand=void 0;var C7=B(),x7=O(),I7=W(),Fx=X(),gv=class extends x7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,C7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:I7.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:d=>d},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Fx.serializeAws_json1_0UntagResourceCommand)(t,r)}deserialize(t,r){return(0,Fx.deserializeAws_json1_0UntagResourceCommand)(t,r)}};Pu.UntagResourceCommand=gv});var wv=f(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.UpdateContinuousBackupsCommand=void 0;var R7=B(),D7=O(),Bx=W(),Gx=X(),Sv=class extends D7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,R7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:Bx.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:Bx.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Gx.serializeAws_json1_0UpdateContinuousBackupsCommand)(t,r)}deserialize(t,r){return(0,Gx.deserializeAws_json1_0UpdateContinuousBackupsCommand)(t,r)}};Nu.UpdateContinuousBackupsCommand=Sv});var Ev=f(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.UpdateContributorInsightsCommand=void 0;var P7=B(),N7=O(),$x=W(),Vx=X(),bv=class extends N7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,P7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:$x.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:$x.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Vx.serializeAws_json1_0UpdateContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,Vx.deserializeAws_json1_0UpdateContributorInsightsCommand)(t,r)}};Ou.UpdateContributorInsightsCommand=bv});var Tv=f(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.UpdateGlobalTableCommand=void 0;var O7=B(),L7=O(),Kx=W(),Hx=X(),Av=class extends L7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,O7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:Kx.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:Kx.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Hx.serializeAws_json1_0UpdateGlobalTableCommand)(t,r)}deserialize(t,r){return(0,Hx.deserializeAws_json1_0UpdateGlobalTableCommand)(t,r)}};Lu.UpdateGlobalTableCommand=Av});var xv=f(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.UpdateGlobalTableSettingsCommand=void 0;var q7=B(),M7=O(),Wx=W(),Yx=X(),Cv=class extends M7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,q7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:Wx.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:Wx.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Yx.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,r)}deserialize(t,r){return(0,Yx.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,r)}};qu.UpdateGlobalTableSettingsCommand=Cv});var Rv=f(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.UpdateItemCommand=void 0;var z7=B(),j7=O(),Jx=W(),Qx=X(),Iv=class extends j7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,z7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:Jx.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:Jx.UpdateItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Qx.serializeAws_json1_0UpdateItemCommand)(t,r)}deserialize(t,r){return(0,Qx.deserializeAws_json1_0UpdateItemCommand)(t,r)}};Mu.UpdateItemCommand=Iv});var Pv=f(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.UpdateTableCommand=void 0;var k7=B(),U7=O(),Xx=W(),Zx=X(),Dv=class extends U7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,k7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:Xx.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:Xx.UpdateTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,Zx.serializeAws_json1_0UpdateTableCommand)(t,r)}deserialize(t,r){return(0,Zx.deserializeAws_json1_0UpdateTableCommand)(t,r)}};zu.UpdateTableCommand=Dv});var Ov=f(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.UpdateTableReplicaAutoScalingCommand=void 0;var F7=B(),B7=O(),eI=W(),tI=X(),Nv=class extends B7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,F7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:eI.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:eI.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,tI.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,r)}deserialize(t,r){return(0,tI.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,r)}};ju.UpdateTableReplicaAutoScalingCommand=Nv});var qv=f(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.UpdateTimeToLiveCommand=void 0;var G7=B(),$7=O(),rI=W(),nI=X(),Lv=class extends $7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,G7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:rI.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:rI.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,nI.serializeAws_json1_0UpdateTimeToLiveCommand)(t,r)}deserialize(t,r){return(0,nI.deserializeAws_json1_0UpdateTimeToLiveCommand)(t,r)}};ku.UpdateTimeToLiveCommand=Lv});var iI=f(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.booleanSelector=_i.SelectorType=void 0;var V7;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(V7=_i.SelectorType||(_i.SelectorType={}));var K7=(e,t,r)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}};_i.booleanSelector=K7});var zv=f(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});var H7=K();H7.__exportStar(iI(),Mv)});var sI=f(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Yt.DEFAULT_USE_DUALSTACK_ENDPOINT=Yt.CONFIG_USE_DUALSTACK_ENDPOINT=Yt.ENV_USE_DUALSTACK_ENDPOINT=void 0;var Uu=zv();Yt.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";Yt.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";Yt.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;Yt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Uu.booleanSelector)(e,Yt.ENV_USE_DUALSTACK_ENDPOINT,Uu.SelectorType.ENV),configFileSelector:e=>(0,Uu.booleanSelector)(e,Yt.CONFIG_USE_DUALSTACK_ENDPOINT,Uu.SelectorType.CONFIG),default:!1}});var oI=f(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Jt.DEFAULT_USE_FIPS_ENDPOINT=Jt.CONFIG_USE_FIPS_ENDPOINT=Jt.ENV_USE_FIPS_ENDPOINT=void 0;var Fu=zv();Jt.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";Jt.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";Jt.DEFAULT_USE_FIPS_ENDPOINT=!1;Jt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Fu.booleanSelector)(e,Jt.ENV_USE_FIPS_ENDPOINT,Fu.SelectorType.ENV),configFileSelector:e=>(0,Fu.booleanSelector)(e,Jt.CONFIG_USE_FIPS_ENDPOINT,Fu.SelectorType.CONFIG),default:!1}});var aI=f(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.normalizeProvider=void 0;var W7=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};Bu.normalizeProvider=W7});var ca=f(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});var Y7=K();Y7.__exportStar(aI(),jv)});var lI=f(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.resolveCustomEndpointsConfig=void 0;var cI=ca(),J7=e=>{var t;let{endpoint:r,urlParser:n}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:(0,cI.normalizeProvider)(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:(0,cI.normalizeProvider)(e.useDualstackEndpoint)}};Gu.resolveCustomEndpointsConfig=J7});var uI=f($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.getEndpointFromRegion=void 0;var Q7=async e=>{var t;let{tls:r=!0}=e,n=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw new Error("Invalid region in client config");let s=await e.useDualstackEndpoint(),o=await e.useFipsEndpoint(),{hostname:a}=(t=await e.regionInfoProvider(n,{useDualstackEndpoint:s,useFipsEndpoint:o}))!==null&&t!==void 0?t:{};if(!a)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${r?"https:":"http:"}//${a}`)};$u.getEndpointFromRegion=Q7});var fI=f(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.resolveEndpointsConfig=void 0;var dI=ca(),X7=uI(),Z7=e=>{var t;let r=(0,dI.normalizeProvider)(e.useDualstackEndpoint),{endpoint:n,useFipsEndpoint:i,urlParser:s}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:n?(0,dI.normalizeProvider)(typeof n=="string"?s(n):n):()=>(0,X7.getEndpointFromRegion)({...e,useDualstackEndpoint:r,useFipsEndpoint:i}),isCustomEndpoint:!!n,useDualstackEndpoint:r}};Vu.resolveEndpointsConfig=Z7});var mI=f(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var Ku=K();Ku.__exportStar(sI(),ls);Ku.__exportStar(oI(),ls);Ku.__exportStar(lI(),ls);Ku.__exportStar(fI(),ls)});var pI=f(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.NODE_REGION_CONFIG_FILE_OPTIONS=Qt.NODE_REGION_CONFIG_OPTIONS=Qt.REGION_INI_NAME=Qt.REGION_ENV_NAME=void 0;Qt.REGION_ENV_NAME="AWS_REGION";Qt.REGION_INI_NAME="region";Qt.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Qt.REGION_ENV_NAME],configFileSelector:e=>e[Qt.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};Qt.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var kv=f(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.isFipsRegion=void 0;var eJ=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Hu.isFipsRegion=eJ});var hI=f(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.getRealRegion=void 0;var tJ=kv(),rJ=e=>(0,tJ.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;Wu.getRealRegion=rJ});var yI=f(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.resolveRegionConfig=void 0;var _I=hI(),nJ=kv(),iJ=e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof t=="string")return(0,_I.getRealRegion)(t);let n=await t();return(0,_I.getRealRegion)(n)},useFipsEndpoint:async()=>{let n=typeof t=="string"?t:await t();return(0,nJ.isFipsRegion)(n)?!0:typeof r=="boolean"?Promise.resolve(r):r()}}};Yu.resolveRegionConfig=iJ});var vI=f(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});var gI=K();gI.__exportStar(pI(),Ju);gI.__exportStar(yI(),Ju)});var wI=f(SI=>{"use strict";Object.defineProperty(SI,"__esModule",{value:!0})});var EI=f(bI=>{"use strict";Object.defineProperty(bI,"__esModule",{value:!0})});var AI=f(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.getHostnameFromVariants=void 0;var sJ=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:r})=>{var n;return(n=e.find(({tags:i})=>t===i.includes("fips")&&r===i.includes("dualstack")))===null||n===void 0?void 0:n.hostname};Qu.getHostnameFromVariants=sJ});var TI=f(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.getResolvedHostname=void 0;var oJ=(e,{regionHostname:t,partitionHostname:r})=>t||(r?r.replace("{region}",e):void 0);Xu.getResolvedHostname=oJ});var CI=f(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.getResolvedPartition=void 0;var aJ=(e,{partitionHash:t})=>{var r;return(r=Object.keys(t||{}).find(n=>t[n].regions.includes(e)))!==null&&r!==void 0?r:"aws"};Zu.getResolvedPartition=aJ});var xI=f(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.getResolvedSigningRegion=void 0;var cJ=(e,{signingRegion:t,regionRegex:r,useFipsEndpoint:n})=>{if(t)return t;if(n){let i=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(i);if(s)return s[0].slice(1,-1)}};ed.getResolvedSigningRegion=cJ});var RI=f(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.getRegionInfo=void 0;var II=AI(),lJ=TI(),uJ=CI(),dJ=xI(),fJ=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:i,partitionHash:s})=>{var o,a,c,u,d,p;let m=(0,uJ.getResolvedPartition)(e,{partitionHash:s}),_=e in i?e:(a=(o=s[m])===null||o===void 0?void 0:o.endpoint)!==null&&a!==void 0?a:e,g={useFipsEndpoint:t,useDualstackEndpoint:r},y=(0,II.getHostnameFromVariants)((c=i[_])===null||c===void 0?void 0:c.variants,g),A=(0,II.getHostnameFromVariants)((u=s[m])===null||u===void 0?void 0:u.variants,g),I=(0,lJ.getResolvedHostname)(_,{regionHostname:y,partitionHostname:A});if(I===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:_,useFipsEndpoint:t,useDualstackEndpoint:r}}`);let T=(0,dJ.getResolvedSigningRegion)(I,{signingRegion:(d=i[_])===null||d===void 0?void 0:d.signingRegion,regionRegex:s[m].regionRegex,useFipsEndpoint:t});return{partition:m,signingService:n,hostname:I,...T&&{signingRegion:T},...((p=i[_])===null||p===void 0?void 0:p.signingService)&&{signingService:i[_].signingService}}};td.getRegionInfo=fJ});var DI=f(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});var Uv=K();Uv.__exportStar(wI(),la);Uv.__exportStar(EI(),la);Uv.__exportStar(RI(),la)});var ar=f(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var Fv=K();Fv.__exportStar(mI(),ua);Fv.__exportStar(vI(),ua);Fv.__exportStar(DI(),ua)});var rd=f(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getContentLengthPlugin=rn.contentLengthMiddlewareOptions=rn.contentLengthMiddleware=void 0;var mJ=Et(),PI="content-length";function NI(e){return t=>async r=>{let n=r.request;if(mJ.HttpRequest.isInstance(n)){let{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(PI)===-1)try{let o=e(i);n.headers={...n.headers,[PI]:String(o)}}catch{}}return t({...r,request:n})}}rn.contentLengthMiddleware=NI;rn.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var pJ=e=>({applyToStack:t=>{t.add(NI(e.bodyLengthChecker),rn.contentLengthMiddlewareOptions)}});rn.getContentLengthPlugin=pJ});var qI=f(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var OI=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],Bv="endpoint_discovery_enabled",LI=e=>["false","0"].indexOf(e)>=0;nd.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<OI.length;t++){let r=OI[t];if(r in e){let n=e[r];if(n==="")throw Error(`Environment variable ${r} can't be empty of undefined, got "${n}"`);return!LI(n)}}},configFileSelector:e=>{if(Bv in e){let t=e[Bv];if(t===void 0)throw Error(`Shared config entry ${Bv} can't be undefined, got "${t}"`);return!LI(t)}},default:void 0}});var MI=f(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.getCacheKey=void 0;var hJ=async(e,t,r)=>{let{accessKeyId:n}=await t.credentials(),{identifiers:i}=r;return JSON.stringify({...n&&{accessKeyId:n},...i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[o,a])=>({...s,[o]:a}),{})}})};id.getCacheKey=hJ});var zI=f(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.updateDiscoveredEndpointInCache=void 0;var nn={},_J=async(e,t)=>new Promise((r,n)=>{let{endpointCache:i}=e,{cacheKey:s,commandName:o,identifiers:a}=t,c=i.get(s);if(c&&c.length===1&&c[0].Address==="")t.isDiscoveredEndpointRequired?(nn[s]||(nn[s]=[]),nn[s].push({resolve:r,reject:n})):r();else if(c&&c.length>0)r();else{let u=[{Address:"",CachePeriodInMinutes:1}];i.set(s,u);let d=new t.endpointDiscoveryCommandCtor({Operation:o.slice(0,-7),Identifiers:a});d.resolveMiddleware(t.clientStack,e,t.options)(d).then(m=>{i.set(s,m.output.Endpoints),nn[s]&&(nn[s].forEach(({resolve:_})=>{_()}),delete nn[s]),r()}).catch(m=>{var _;(m.name==="InvalidEndpointException"||((_=m.$metadata)===null||_===void 0?void 0:_.httpStatusCode)===421)&&i.delete(s);let g=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:m});nn[s]&&(nn[s].forEach(({reject:y})=>{y(g)}),delete nn[s]),t.isDiscoveredEndpointRequired?n(g):(i.set(s,u),r())})}});sd.updateDiscoveredEndpointInCache=_J});var kI=f(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.endpointDiscoveryMiddleware=void 0;var yJ=Et(),gJ=MI(),jI=zI(),vJ=(e,t)=>(r,n)=>async i=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled)throw new Error("Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.");return r(i)}let{endpointDiscoveryCommandCtor:s}=e,{isDiscoveredEndpointRequired:o,identifiers:a}=t,{clientName:c,commandName:u}=n,d=await e.endpointDiscoveryEnabled(),p=await(0,gJ.getCacheKey)(u,e,{identifiers:a});if(o){if(d===!1)throw new Error(`Endpoint Discovery is disabled but ${u} on ${c} requires it. Please check your configurations.`);await(0,jI.updateDiscoveredEndpointInCache)(e,{...t,commandName:u,cacheKey:p,endpointDiscoveryCommandCtor:s})}else d&&(0,jI.updateDiscoveredEndpointInCache)(e,{...t,commandName:u,cacheKey:p,endpointDiscoveryCommandCtor:s});let{request:m}=i;if(p&&yJ.HttpRequest.isInstance(m)){let _=e.endpointCache.getEndpoint(p);_&&(m.hostname=_)}return r(i)};od.endpointDiscoveryMiddleware=vJ});var UI=f(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.getEndpointDiscoveryOptionalPlugin=jt.getEndpointDiscoveryRequiredPlugin=jt.getEndpointDiscoveryPlugin=jt.endpointDiscoveryMiddlewareOptions=void 0;var Gv=kI();jt.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var SJ=(e,t)=>({applyToStack:r=>{r.add((0,Gv.endpointDiscoveryMiddleware)(e,t),jt.endpointDiscoveryMiddlewareOptions)}});jt.getEndpointDiscoveryPlugin=SJ;var wJ=(e,t)=>({applyToStack:r=>{r.add((0,Gv.endpointDiscoveryMiddleware)(e,{...t,isDiscoveredEndpointRequired:!0}),jt.endpointDiscoveryMiddlewareOptions)}});jt.getEndpointDiscoveryRequiredPlugin=wJ;var bJ=(e,t)=>({applyToStack:r=>{r.add((0,Gv.endpointDiscoveryMiddleware)(e,{...t,isDiscoveredEndpointRequired:!1}),jt.endpointDiscoveryMiddlewareOptions)}});jt.getEndpointDiscoveryOptionalPlugin=bJ});var BI=f(FI=>{"use strict";Object.defineProperty(FI,"__esModule",{value:!0})});var $I=f((Lwe,GI)=>{function sn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}sn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(sn.prototype[Symbol.iterator]=function(){return this});sn.of=function(){var e=arguments,t=e.length,r=0;return new sn(function(){return r>=t?{done:!0}:{done:!1,value:e[r++]}})};sn.empty=function(){var e=new sn(null);return e.done=!0,e};sn.is=function(e){return e instanceof sn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};GI.exports=sn});var $v=f((qwe,WI)=>{var VI=typeof ArrayBuffer<"u",KI=typeof Symbol<"u";function HI(e,t){var r,n,i,s,o;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||VI&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],i);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(KI&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;o=r.next(),o.done!==!0;)t(o.value,i),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)}HI.forEachWithNullKeys=function(e,t){var r,n,i,s,o;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||VI&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],null);return}if(e instanceof Set){e.forEach(function(a){t(a,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(KI&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;o=r.next(),o.done!==!0;)t(o.value,null),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)};WI.exports=HI});var Vv=f(br=>{var EJ=Math.pow(2,8)-1,AJ=Math.pow(2,16)-1,TJ=Math.pow(2,32)-1,CJ=Math.pow(2,7)-1,xJ=Math.pow(2,15)-1,IJ=Math.pow(2,31)-1;br.getPointerArray=function(e){var t=e-1;return t<=EJ?Uint8Array:t<=AJ?Uint16Array:t<=TJ?Uint32Array:Float64Array};br.getSignedPointerArray=function(e){var t=e-1;return t<=CJ?Int8Array:t<=xJ?Int16Array:t<=IJ?Int32Array:Float64Array};br.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var RJ={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};br.getMinimalRepresentation=function(e,t){var r=null,n=0,i,s,o,a,c;for(a=0,c=e.length;a<c;a++)o=t?t(e[a]):e[a],s=br.getNumberType(o),i=RJ[s.name],i>n&&(n=i,r=s);return r};br.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};br.concat=function(){var e=0,t,r,n;for(t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,r=0;t<n;t++)i.set(arguments[t],r),r+=arguments[t].length;return i};br.indices=function(e){for(var t=br.getPointerArray(e),r=new t(e),n=0;n<e;n++)r[n]=n;return r}});var QI=f(da=>{var YI=$v(),JI=Vv();function DJ(e){return Array.isArray(e)||JI.isTypedArray(e)}function Kv(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function PJ(e){var t=Kv(e),r=typeof t=="number"?new Array(t):[],n=0;return YI(e,function(i){r[n++]=i}),r}function NJ(e){var t=Kv(e),r=typeof t=="number"?JI.getPointerArray(t):Array,n=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new r(t):[],s=0;return YI(e,function(o){n[s]=o,i[s]=s++}),[n,i]}da.isArrayLike=DJ;da.guessLength=Kv;da.toArray=PJ;da.toArrayWithIndices=NJ});var ZI=f((jwe,XI)=>{var Hv=$I(),OJ=$v(),LJ=Vv(),qJ=QI();function $e(e,t,r){if(arguments.length<2&&(r=e,e=null,t=null),this.capacity=r,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var n=LJ.getPointerArray(r);this.forward=new n(r),this.backward=new n(r),this.K=typeof e=="function"?new e(r):new Array(r),this.V=typeof t=="function"?new t(r):new Array(r),this.size=0,this.head=0,this.tail=0,this.items={}}$e.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};$e.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var r=this.backward[e],n=this.forward[e];return this.tail===e?this.tail=r:this.backward[n]=r,this.forward[r]=n,this.backward[t]=e,this.head=e,this.forward[e]=t,this};$e.prototype.set=function(e,t){var r=this.items[e];if(typeof r<"u"){this.splayOnTop(r),this.V[r]=t;return}this.size<this.capacity?r=this.size++:(r=this.tail,this.tail=this.backward[r],delete this.items[this.K[r]]),this.items[e]=r,this.K[r]=e,this.V[r]=t,this.forward[r]=this.head,this.backward[this.head]=r,this.head=r};$e.prototype.setpop=function(e,t){var r=null,n=null,i=this.items[e];return typeof i<"u"?(this.splayOnTop(i),r=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:r}):(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],r=this.V[i],n=this.K[i],delete this.items[this.K[i]]),this.items[e]=i,this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,n?{evicted:!0,key:n,value:r}:null)};$e.prototype.has=function(e){return e in this.items};$e.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};$e.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};$e.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var r=0,n=this.size,i=this.head,s=this.K,o=this.V,a=this.forward;r<n;)e.call(t,o[i],s[i],this),i=a[i],r++};$e.prototype.keys=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.forward;return new Hv(function(){if(e>=t)return{done:!0};var s=n[r];return e++,e<t&&(r=i[r]),{done:!1,value:s}})};$e.prototype.values=function(){var e=0,t=this.size,r=this.head,n=this.V,i=this.forward;return new Hv(function(){if(e>=t)return{done:!0};var s=n[r];return e++,e<t&&(r=i[r]),{done:!1,value:s}})};$e.prototype.entries=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.V,s=this.forward;return new Hv(function(){if(e>=t)return{done:!0};var o=n[r],a=i[r];return e++,e<t&&(r=s[r]),{done:!1,value:[o,a]}})};typeof Symbol<"u"&&($e.prototype[Symbol.iterator]=$e.prototype.entries);$e.prototype.inspect=function(){for(var e=new Map,t=this.entries(),r;r=t.next(),!r.done;)e.set(r.value[0],r.value[1]);return Object.defineProperty(e,"constructor",{value:$e,enumerable:!1}),e};typeof Symbol<"u"&&($e.prototype[Symbol.for("nodejs.util.inspect.custom")]=$e.prototype.inspect);$e.from=function(e,t,r,n){if(arguments.length<2){if(n=qJ.guessLength(e),typeof n!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(n=t,t=null,r=null);var i=new $e(t,r,n);return OJ(e,function(s,o){i.set(o,s)}),i};XI.exports=$e});var e1=f(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.EndpointCache=void 0;var MJ=K(),zJ=MJ.__importDefault(ZI()),Wv=class{constructor(t){this.cache=new zJ.default(t)}getEndpoint(t){let r=this.get(t);if(!r||r.length===0)return;let n=r.map(i=>i.Address);return n[Math.floor(Math.random()*n.length)]}get(t){if(!this.has(t))return;let r=this.cache.get(t);if(!r)return;let n=Date.now(),i=r.filter(s=>n<s.Expires);if(i.length===0){this.delete(t);return}return i}set(t,r){let n=Date.now();this.cache.set(t,r.map(({Address:i,CachePeriodInMinutes:s})=>({Address:i,Expires:n+s*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let r=this.cache.peek(t);return r?r.length>0:!1}clear(){this.cache.clear()}};ad.EndpointCache=Wv});var r1=f(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});var t1=K();t1.__exportStar(BI(),cd);t1.__exportStar(e1(),cd)});var n1=f(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.resolveEndpointDiscoveryConfig=void 0;var jJ=r1(),kJ=(e,{endpointDiscoveryCommandCtor:t})=>{var r;return{...e,endpointDiscoveryCommandCtor:t,endpointCache:new jJ.EndpointCache((r=e.endpointCacheSize)!==null&&r!==void 0?r:1e3),endpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0?()=>Promise.resolve(e.endpointDiscoveryEnabled):e.endpointDiscoveryEnabledProvider,isClientEndpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0}};ld.resolveEndpointDiscoveryConfig=kJ});var Jv=f(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});var Yv=K();Yv.__exportStar(qI(),fa);Yv.__exportStar(UI(),fa);Yv.__exportStar(n1(),fa)});var ud=f(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.getHostHeaderPlugin=Xt.hostHeaderMiddlewareOptions=Xt.hostHeaderMiddleware=Xt.resolveHostHeaderConfig=void 0;var UJ=Et();function FJ(e){return e}Xt.resolveHostHeaderConfig=FJ;var BJ=e=>t=>async r=>{if(!UJ.HttpRequest.isInstance(r.request))return t(r);let{request:n}=r,{handlerProtocol:i=""}=e.requestHandler.metadata||{};return i.indexOf("h2")>=0&&!n.headers[":authority"]?(delete n.headers.host,n.headers[":authority"]=""):n.headers.host||(n.headers.host=n.hostname),t(r)};Xt.hostHeaderMiddleware=BJ;Xt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var GJ=e=>({applyToStack:t=>{t.add((0,Xt.hostHeaderMiddleware)(e),Xt.hostHeaderMiddlewareOptions)}});Xt.getHostHeaderPlugin=GJ});var i1=f(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.getLoggerPlugin=Er.loggerMiddlewareOptions=Er.loggerMiddleware=void 0;var $J=()=>(e,t)=>async r=>{let{clientName:n,commandName:i,inputFilterSensitiveLog:s,logger:o,outputFilterSensitiveLog:a}=t,c=await e(r);if(!o)return c;if(typeof o.info=="function"){let{$metadata:u,...d}=c.output;o.info({clientName:n,commandName:i,input:s(r.input),output:a(d),metadata:u})}return c};Er.loggerMiddleware=$J;Er.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var VJ=e=>({applyToStack:t=>{t.add((0,Er.loggerMiddleware)(),Er.loggerMiddlewareOptions)}});Er.getLoggerPlugin=VJ});var dd=f(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});var KJ=K();KJ.__exportStar(i1(),Qv)});var ma=f(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.DEFAULT_RETRY_MODE=on.DEFAULT_MAX_ATTEMPTS=on.RETRY_MODES=void 0;var s1;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(s1=on.RETRY_MODES||(on.RETRY_MODES={}));on.DEFAULT_MAX_ATTEMPTS=3;on.DEFAULT_RETRY_MODE=s1.STANDARD});var o1=f(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.TRANSIENT_ERROR_STATUS_CODES=Ar.TRANSIENT_ERROR_CODES=Ar.THROTTLING_ERROR_CODES=Ar.CLOCK_SKEW_ERROR_CODES=void 0;Ar.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];Ar.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];Ar.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];Ar.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var md=f(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.isTransientError=Tr.isThrottlingError=Tr.isClockSkewError=Tr.isRetryableByTrait=void 0;var fd=o1(),HJ=e=>e.$retryable!==void 0;Tr.isRetryableByTrait=HJ;var WJ=e=>fd.CLOCK_SKEW_ERROR_CODES.includes(e.name);Tr.isClockSkewError=WJ;var YJ=e=>{var t,r;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||fd.THROTTLING_ERROR_CODES.includes(e.name)||((r=e.$retryable)===null||r===void 0?void 0:r.throttling)==!0};Tr.isThrottlingError=YJ;var JJ=e=>{var t;return fd.TRANSIENT_ERROR_CODES.includes(e.name)||fd.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};Tr.isTransientError=JJ});var Zv=f(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.DefaultRateLimiter=void 0;var QJ=md(),Xv=class{constructor(t){var r,n,i,s,o;this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(r=t==null?void 0:t.beta)!==null&&r!==void 0?r:.7,this.minCapacity=(n=t==null?void 0:t.minCapacity)!==null&&n!==void 0?n:1,this.minFillRate=(i=t==null?void 0:t.minFillRate)!==null&&i!==void 0?i:.5,this.scaleConstant=(s=t==null?void 0:t.scaleConstant)!==null&&s!==void 0?s:.4,this.smooth=(o=t==null?void 0:t.smooth)!==null&&o!==void 0?o:.8;let a=this.getCurrentTimeInSeconds();this.lastThrottleTime=a,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(!!this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){let r=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>setTimeout(n,r))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let r=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=t}updateClientSendingRate(t){let r;if(this.updateMeasuredRate(),(0,QJ.isThrottlingError)(t)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),r=Math.floor(t*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(t){return parseFloat(t.toFixed(8))}};pd.DefaultRateLimiter=Xv});var pa=f(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.REQUEST_HEADER=Ve.INVOCATION_ID_HEADER=Ve.NO_RETRY_INCREMENT=Ve.TIMEOUT_RETRY_COST=Ve.RETRY_COST=Ve.INITIAL_RETRY_TOKENS=Ve.THROTTLING_RETRY_DELAY_BASE=Ve.MAXIMUM_RETRY_DELAY=Ve.DEFAULT_RETRY_DELAY_BASE=void 0;Ve.DEFAULT_RETRY_DELAY_BASE=100;Ve.MAXIMUM_RETRY_DELAY=20*1e3;Ve.THROTTLING_RETRY_DELAY_BASE=500;Ve.INITIAL_RETRY_TOKENS=500;Ve.RETRY_COST=5;Ve.TIMEOUT_RETRY_COST=10;Ve.NO_RETRY_INCREMENT=1;Ve.INVOCATION_ID_HEADER="amz-sdk-invocation-id";Ve.REQUEST_HEADER="amz-sdk-request"});var a1=f(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.getDefaultRetryQuota=void 0;var eS=pa(),XJ=(e,t)=>{var r,n,i;let s=e,o=(r=t==null?void 0:t.noRetryIncrement)!==null&&r!==void 0?r:eS.NO_RETRY_INCREMENT,a=(n=t==null?void 0:t.retryCost)!==null&&n!==void 0?n:eS.RETRY_COST,c=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:eS.TIMEOUT_RETRY_COST,u=e,d=g=>g.name==="TimeoutError"?c:a,p=g=>d(g)<=u;return Object.freeze({hasRetryTokens:p,retrieveRetryTokens:g=>{if(!p(g))throw new Error("No retry token available");let y=d(g);return u-=y,y},releaseRetryTokens:g=>{u+=g??o,u=Math.min(u,s)}})};hd.getDefaultRetryQuota=XJ});var tS=f(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.defaultDelayDecider=void 0;var ZJ=pa(),e9=(e,t)=>Math.floor(Math.min(ZJ.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));_d.defaultDelayDecider=e9});var rS=f(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.defaultRetryDecider=void 0;var yd=md(),t9=e=>e?(0,yd.isRetryableByTrait)(e)||(0,yd.isClockSkewError)(e)||(0,yd.isThrottlingError)(e)||(0,yd.isTransientError)(e):!1;gd.defaultRetryDecider=t9});var Sd=f(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.StandardRetryStrategy=void 0;var c1=Et(),r9=md(),n9=qy(),l1=ma(),ha=pa(),i9=a1(),s9=tS(),o9=rS(),nS=class{constructor(t,r){var n,i,s;this.maxAttemptsProvider=t,this.mode=l1.RETRY_MODES.STANDARD,this.retryDecider=(n=r==null?void 0:r.retryDecider)!==null&&n!==void 0?n:o9.defaultRetryDecider,this.delayDecider=(i=r==null?void 0:r.delayDecider)!==null&&i!==void 0?i:s9.defaultDelayDecider,this.retryQuota=(s=r==null?void 0:r.retryQuota)!==null&&s!==void 0?s:(0,i9.getDefaultRetryQuota)(ha.INITIAL_RETRY_TOKENS)}shouldRetry(t,r,n){return r<n&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch{t=l1.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,r,n){let i,s=0,o=0,a=await this.getMaxAttempts(),{request:c}=r;for(c1.HttpRequest.isInstance(c)&&(c.headers[ha.INVOCATION_ID_HEADER]=(0,n9.v4)());;)try{c1.HttpRequest.isInstance(c)&&(c.headers[ha.REQUEST_HEADER]=`attempt=${s+1}; max=${a}`),n!=null&&n.beforeRequest&&await n.beforeRequest();let{response:u,output:d}=await t(r);return n!=null&&n.afterRequest&&n.afterRequest(u),this.retryQuota.releaseRetryTokens(i),d.$metadata.attempts=s+1,d.$metadata.totalRetryDelay=o,{response:u,output:d}}catch(u){let d=a9(u);if(s++,this.shouldRetry(d,s,a)){i=this.retryQuota.retrieveRetryTokens(d);let p=this.delayDecider((0,r9.isThrottlingError)(d)?ha.THROTTLING_RETRY_DELAY_BASE:ha.DEFAULT_RETRY_DELAY_BASE,s);o+=p,await new Promise(m=>setTimeout(m,p));continue}throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=s,d.$metadata.totalRetryDelay=o,d}}};vd.StandardRetryStrategy=nS;var a9=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`)});var sS=f(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.AdaptiveRetryStrategy=void 0;var c9=ma(),l9=Zv(),u9=Sd(),iS=class extends u9.StandardRetryStrategy{constructor(t,r){let{rateLimiter:n,...i}=r??{};super(t,i),this.rateLimiter=n??new l9.DefaultRateLimiter,this.mode=c9.RETRY_MODES.ADAPTIVE}async retry(t,r){return super.retry(t,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}};wd.AdaptiveRetryStrategy=iS});var d1=f(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.NODE_RETRY_MODE_CONFIG_OPTIONS=je.CONFIG_RETRY_MODE=je.ENV_RETRY_MODE=je.resolveRetryConfig=je.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=je.CONFIG_MAX_ATTEMPTS=je.ENV_MAX_ATTEMPTS=void 0;var u1=ca(),d9=sS(),bd=ma(),f9=Sd();je.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";je.CONFIG_MAX_ATTEMPTS="max_attempts";je.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[je.ENV_MAX_ATTEMPTS];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${je.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return r},configFileSelector:e=>{let t=e[je.CONFIG_MAX_ATTEMPTS];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${je.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return r},default:bd.DEFAULT_MAX_ATTEMPTS};var m9=e=>{var t;let r=(0,u1.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:bd.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:r,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:await(0,u1.normalizeProvider)(e.retryMode)()===bd.RETRY_MODES.ADAPTIVE?new d9.AdaptiveRetryStrategy(r):new f9.StandardRetryStrategy(r)}};je.resolveRetryConfig=m9;je.ENV_RETRY_MODE="AWS_RETRY_MODE";je.CONFIG_RETRY_MODE="retry_mode";je.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[je.ENV_RETRY_MODE],configFileSelector:e=>e[je.CONFIG_RETRY_MODE],default:bd.DEFAULT_RETRY_MODE}});var m1=f(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.getOmitRetryHeadersPlugin=Cr.omitRetryHeadersMiddlewareOptions=Cr.omitRetryHeadersMiddleware=void 0;var p9=Et(),f1=pa(),h9=()=>e=>async t=>{let{request:r}=t;return p9.HttpRequest.isInstance(r)&&(delete r.headers[f1.INVOCATION_ID_HEADER],delete r.headers[f1.REQUEST_HEADER]),e(t)};Cr.omitRetryHeadersMiddleware=h9;Cr.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var _9=e=>({applyToStack:t=>{t.addRelativeTo((0,Cr.omitRetryHeadersMiddleware)(),Cr.omitRetryHeadersMiddlewareOptions)}});Cr.getOmitRetryHeadersPlugin=_9});var p1=f(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.getRetryPlugin=xr.retryMiddlewareOptions=xr.retryMiddleware=void 0;var y9=e=>(t,r)=>async n=>{let i=await e.retryStrategy();return i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,n)};xr.retryMiddleware=y9;xr.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var g9=e=>({applyToStack:t=>{t.add((0,xr.retryMiddleware)(e),xr.retryMiddlewareOptions)}});xr.getRetryPlugin=g9});var _1=f(h1=>{"use strict";Object.defineProperty(h1,"__esModule",{value:!0})});var yi=f(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});var Ir=K();Ir.__exportStar(sS(),Zt);Ir.__exportStar(Zv(),Zt);Ir.__exportStar(Sd(),Zt);Ir.__exportStar(ma(),Zt);Ir.__exportStar(d1(),Zt);Ir.__exportStar(tS(),Zt);Ir.__exportStar(m1(),Zt);Ir.__exportStar(rS(),Zt);Ir.__exportStar(p1(),Zt);Ir.__exportStar(_1(),Zt)});var Ad=f(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.ProviderError=void 0;var _a=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,_a.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};Ed.ProviderError=_a});var y1=f(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.CredentialsProviderError=void 0;var v9=Ad(),ya=class extends v9.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,ya.prototype)}};Td.CredentialsProviderError=ya});var g1=f(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.chain=void 0;var S9=Ad();function w9(...e){return()=>{let t=Promise.reject(new S9.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}Cd.chain=w9});var v1=f(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.fromStatic=void 0;var b9=e=>()=>Promise.resolve(e);xd.fromStatic=b9});var S1=f(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.memoize=void 0;var E9=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};Id.memoize=E9});var ke=f(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});var ga=K();ga.__exportStar(y1(),gi);ga.__exportStar(Ad(),gi);ga.__exportStar(g1(),gi);ga.__exportStar(v1(),gi);ga.__exportStar(S1(),gi)});var Rd=f(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.toHex=us.fromHex=void 0;var w1={},oS={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),w1[e]=t,oS[t]=e}function A9(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let n=e.slice(r,r+2).toLowerCase();if(n in oS)t[r/2]=oS[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}us.fromHex=A9;function T9(e){let t="";for(let r=0;r<e.byteLength;r++)t+=w1[e[r]];return t}us.toHex=T9});var vi=f(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.MAX_PRESIGNED_TTL=G.KEY_TYPE_IDENTIFIER=G.MAX_CACHE_SIZE=G.UNSIGNED_PAYLOAD=G.EVENT_ALGORITHM_IDENTIFIER=G.ALGORITHM_IDENTIFIER_V4A=G.ALGORITHM_IDENTIFIER=G.UNSIGNABLE_PATTERNS=G.SEC_HEADER_PATTERN=G.PROXY_HEADER_PATTERN=G.ALWAYS_UNSIGNABLE_HEADERS=G.HOST_HEADER=G.TOKEN_HEADER=G.SHA256_HEADER=G.SIGNATURE_HEADER=G.GENERATED_HEADERS=G.DATE_HEADER=G.AMZ_DATE_HEADER=G.AUTH_HEADER=G.REGION_SET_PARAM=G.TOKEN_QUERY_PARAM=G.SIGNATURE_QUERY_PARAM=G.EXPIRES_QUERY_PARAM=G.SIGNED_HEADERS_QUERY_PARAM=G.AMZ_DATE_QUERY_PARAM=G.CREDENTIAL_QUERY_PARAM=G.ALGORITHM_QUERY_PARAM=void 0;G.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";G.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";G.AMZ_DATE_QUERY_PARAM="X-Amz-Date";G.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";G.EXPIRES_QUERY_PARAM="X-Amz-Expires";G.SIGNATURE_QUERY_PARAM="X-Amz-Signature";G.TOKEN_QUERY_PARAM="X-Amz-Security-Token";G.REGION_SET_PARAM="X-Amz-Region-Set";G.AUTH_HEADER="authorization";G.AMZ_DATE_HEADER=G.AMZ_DATE_QUERY_PARAM.toLowerCase();G.DATE_HEADER="date";G.GENERATED_HEADERS=[G.AUTH_HEADER,G.AMZ_DATE_HEADER,G.DATE_HEADER];G.SIGNATURE_HEADER=G.SIGNATURE_QUERY_PARAM.toLowerCase();G.SHA256_HEADER="x-amz-content-sha256";G.TOKEN_HEADER=G.TOKEN_QUERY_PARAM.toLowerCase();G.HOST_HEADER="host";G.ALWAYS_UNSIGNABLE_HEADERS={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0};G.PROXY_HEADER_PATTERN=/^proxy-/;G.SEC_HEADER_PATTERN=/^sec-/;G.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];G.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";G.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";G.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";G.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";G.MAX_CACHE_SIZE=50;G.KEY_TYPE_IDENTIFIER="aws4_request";G.MAX_PRESIGNED_TTL=60*60*24*7});var cS=f(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.clearCredentialCache=On.getSigningKey=On.createScope=void 0;var C9=Rd(),aS=vi(),ds={},Dd=[],x9=(e,t,r)=>`${e}/${t}/${r}/${aS.KEY_TYPE_IDENTIFIER}`;On.createScope=x9;var I9=async(e,t,r,n,i)=>{let s=await b1(e,t.secretAccessKey,t.accessKeyId),o=`${r}:${n}:${i}:${(0,C9.toHex)(s)}:${t.sessionToken}`;if(o in ds)return ds[o];for(Dd.push(o);Dd.length>aS.MAX_CACHE_SIZE;)delete ds[Dd.shift()];let a=`AWS4${t.secretAccessKey}`;for(let c of[r,n,i,aS.KEY_TYPE_IDENTIFIER])a=await b1(e,a,c);return ds[o]=a};On.getSigningKey=I9;var R9=()=>{Dd.length=0,Object.keys(ds).forEach(e=>{delete ds[e]})};On.clearCredentialCache=R9;var b1=(e,t,r)=>{let n=new e(t);return n.update(r),n.digest()}});var uS=f(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.getCanonicalHeaders=void 0;var lS=vi(),D9=({headers:e},t,r)=>{let n={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in lS.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||lS.PROXY_HEADER_PATTERN.test(s)||lS.SEC_HEADER_PATTERN.test(s))&&(!r||r&&!r.has(s))||(n[s]=e[i].trim().replace(/\s+/g," "))}return n};Pd.getCanonicalHeaders=D9});var dS=f(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.escapeUri=void 0;var P9=e=>encodeURIComponent(e).replace(/[!'()*]/g,N9);Nd.escapeUri=P9;var N9=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var E1=f(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.escapeUriPath=void 0;var O9=dS(),L9=e=>e.split("/").map(O9.escapeUri).join("/");Od.escapeUriPath=L9});var fS=f(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var A1=K();A1.__exportStar(dS(),Ld);A1.__exportStar(E1(),Ld)});var mS=f(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getCanonicalQuery=void 0;var qd=fS(),q9=vi(),M9=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e).sort()){if(n.toLowerCase()===q9.SIGNATURE_HEADER)continue;t.push(n);let i=e[n];typeof i=="string"?r[n]=`${(0,qd.escapeUri)(n)}=${(0,qd.escapeUri)(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).sort().reduce((s,o)=>s.concat([`${(0,qd.escapeUri)(n)}=${(0,qd.escapeUri)(o)}`]),[]).join("&"))}return t.map(n=>r[n]).filter(n=>n).join("&")};Md.getCanonicalQuery=M9});var pS=f(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.isArrayBuffer=void 0;var z9=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";zd.isArrayBuffer=z9});var hS=f(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.getPayloadHash=void 0;var j9=pS(),k9=Rd(),T1=vi(),U9=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===T1.SHA256_HEADER)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,j9.isArrayBuffer)(t)){let n=new r;return n.update(t),(0,k9.toHex)(await n.digest())}return T1.UNSIGNED_PAYLOAD};jd.getPayloadHash=U9});var C1=f(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.deleteHeader=Ln.getHeaderValue=Ln.hasHeader=void 0;var F9=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1};Ln.hasHeader=F9;var B9=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return t[r]};Ln.getHeaderValue=B9;var G9=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))e===r.toLowerCase()&&delete t[r]};Ln.deleteHeader=G9});var _S=f(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.cloneQuery=Si.cloneRequest=void 0;var $9=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?(0,Si.cloneQuery)(t):void 0});Si.cloneRequest=$9;var V9=e=>Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{});Si.cloneQuery=V9});var yS=f(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.moveHeadersToQuery=void 0;var K9=_S(),H9=(e,t={})=>{var r;let{headers:n,query:i={}}=typeof e.clone=="function"?e.clone():(0,K9.cloneRequest)(e);for(let s of Object.keys(n)){let o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!(!((r=t.unhoistableHeaders)===null||r===void 0)&&r.has(o))&&(i[s]=n[s],delete n[s])}return{...e,headers:n,query:i}};kd.moveHeadersToQuery=H9});var gS=f(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.prepareRequest=void 0;var W9=_S(),Y9=vi(),J9=e=>{e=typeof e.clone=="function"?e.clone():(0,W9.cloneRequest)(e);for(let t of Object.keys(e.headers))Y9.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};Ud.prepareRequest=J9});var x1=f(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.toDate=wi.iso8601=void 0;var Q9=e=>(0,wi.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");wi.iso8601=Q9;var X9=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;wi.toDate=X9});var N1=f($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.SignatureV4=void 0;var Fd=Rd(),I1=ca(),st=vi(),Bd=cS(),R1=uS(),Z9=mS(),vS=hS(),eQ=C1(),tQ=yS(),D1=gS(),rQ=x1(),SS=class{constructor({applyChecksum:t,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=(0,I1.normalizeProvider)(n),this.credentialProvider=(0,I1.normalizeProvider)(r)}async presign(t,r={}){let{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:c,signingService:u}=r,d=await this.credentialProvider(),p=c??await this.regionProvider(),{longDate:m,shortDate:_}=Gd(n);if(i>st.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let g=(0,Bd.createScope)(_,p,u??this.service),y=(0,tQ.moveHeadersToQuery)((0,D1.prepareRequest)(t),{unhoistableHeaders:o});d.sessionToken&&(y.query[st.TOKEN_QUERY_PARAM]=d.sessionToken),y.query[st.ALGORITHM_QUERY_PARAM]=st.ALGORITHM_IDENTIFIER,y.query[st.CREDENTIAL_QUERY_PARAM]=`${d.accessKeyId}/${g}`,y.query[st.AMZ_DATE_QUERY_PARAM]=m,y.query[st.EXPIRES_QUERY_PARAM]=i.toString(10);let A=(0,R1.getCanonicalHeaders)(y,s,a);return y.query[st.SIGNED_HEADERS_QUERY_PARAM]=P1(A),y.query[st.SIGNATURE_QUERY_PARAM]=await this.getSignature(m,g,this.getSigningKey(d,p,_,u),this.createCanonicalRequest(y,A,await(0,vS.getPayloadHash)(t,this.sha256))),y}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){let a=s??await this.regionProvider(),{shortDate:c,longDate:u}=Gd(n),d=(0,Bd.createScope)(c,a,o??this.service),p=await(0,vS.getPayloadHash)({headers:{},body:r},this.sha256),m=new this.sha256;m.update(t);let _=(0,Fd.toHex)(await m.digest()),g=[st.EVENT_ALGORITHM_IDENTIFIER,u,d,i,_,p].join(`
10
- `);return this.signString(g,{signingDate:n,signingRegion:a,signingService:o})}async signString(t,{signingDate:r=new Date,signingRegion:n,signingService:i}={}){let s=await this.credentialProvider(),o=n??await this.regionProvider(),{shortDate:a}=Gd(r),c=new this.sha256(await this.getSigningKey(s,o,a,i));return c.update(t),(0,Fd.toHex)(await c.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider(),c=s??await this.regionProvider(),u=(0,D1.prepareRequest)(t),{longDate:d,shortDate:p}=Gd(r),m=(0,Bd.createScope)(p,c,o??this.service);u.headers[st.AMZ_DATE_HEADER]=d,a.sessionToken&&(u.headers[st.TOKEN_HEADER]=a.sessionToken);let _=await(0,vS.getPayloadHash)(u,this.sha256);!(0,eQ.hasHeader)(st.SHA256_HEADER,u.headers)&&this.applyChecksum&&(u.headers[st.SHA256_HEADER]=_);let g=(0,R1.getCanonicalHeaders)(u,i,n),y=await this.getSignature(d,m,this.getSigningKey(a,c,p,o),this.createCanonicalRequest(u,g,_));return u.headers[st.AUTH_HEADER]=`${st.ALGORITHM_IDENTIFIER} Credential=${a.accessKeyId}/${m}, SignedHeaders=${P1(g)}, Signature=${y}`,u}createCanonicalRequest(t,r,n){let i=Object.keys(r).sort();return`${t.method}
9
+ More information can be found at: https://a.co/1l6FLnu`,"NodeDeprecationWarning"))};zu.emitWarningIfUnsupportedVersion=E8});var k1=d(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.decorateServiceException=Us.ServiceException=void 0;var Sa=class extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,Sa.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}};Us.ServiceException=Sa;var b8=(e,t={})=>{Object.entries(t).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(e[n]==null||e[n]==="")&&(e[n]=i)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e};Us.decorateServiceException=b8});var F1=d(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.extendedEncodeURIComponent=void 0;function A8(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}ku.extendedEncodeURIComponent=A8});var U1=d(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.getArrayIfSingleItem=void 0;var T8=e=>Array.isArray(e)?e:[e];Fu.getArrayIfSingleItem=T8});var B1=d(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.getValueFromTextNode=void 0;var C8=e=>{let t="#text";for(let r in e)e.hasOwnProperty(r)&&e[r][t]!==void 0?e[r]=e[r][t]:typeof e[r]=="object"&&e[r]!==null&&(e[r]=(0,wa.getValueFromTextNode)(e[r]));return e};wa.getValueFromTextNode=C8});var G1=d(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.LazyJsonString=Or.StringWrapper=void 0;var x8=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),r=new t;return Object.setPrototypeOf(r,e.prototype),r};Or.StringWrapper=x8;Or.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:Or.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Or.StringWrapper,String);var Bi=class extends Or.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof Bi?t:t instanceof String||typeof t=="string"?new Bi(t):new Bi(JSON.stringify(t))}};Or.LazyJsonString=Bi});var $1=d(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.serializeFloat=void 0;var I8=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};Uu.serializeFloat=I8});var V1=d(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.splitEvery=void 0;function R8(e,t,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=e.split(t);if(r===1)return n;let i=[],s="";for(let o=0;o<n.length;o++)s===""?s=n[o]:s+=t+n[o],(o+1)%r===0&&(i.push(s),s="");return s!==""&&i.push(s),i}Bu.splitEvery=R8});var P=d(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var Pt=M();Pt.__exportStar(O1(),yt);Pt.__exportStar(N1(),yt);Pt.__exportStar(D1(),yt);Pt.__exportStar(L1(),yt);Pt.__exportStar(M1(),yt);Pt.__exportStar(z1(),yt);Pt.__exportStar(k1(),yt);Pt.__exportStar(F1(),yt);Pt.__exportStar(U1(),yt);Pt.__exportStar(B1(),yt);Pt.__exportStar(G1(),yt);Pt.__exportStar(fw(),yt);Pt.__exportStar($1(),yt);Pt.__exportStar(V1(),yt)});var $u=d(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.DynamoDBServiceException=void 0;var P8=P(),Ea=class extends P8.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Ea.prototype)}};Gu.DynamoDBServiceException=Ea});var J=d(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.ProvisionedThroughputOverride=f.CreateGlobalTableInput=f.Replica=f.CreateGlobalSecondaryIndexAction=f.TableNotFoundException=f.TableInUseException=f.LimitExceededException=f.CreateBackupOutput=f.CreateBackupInput=f.ContributorInsightsSummary=f.ContinuousBackupsUnavailableException=f.ContinuousBackupsDescription=f.PointInTimeRecoveryDescription=f.ConditionalCheckFailedException=f.BillingModeSummary=f.ItemCollectionSizeLimitExceededException=f.ResourceNotFoundException=f.ProvisionedThroughputExceededException=f.InvalidEndpointException=f.RequestLimitExceeded=f.InternalServerError=f.BatchStatementError=f.BatchStatementErrorCodeEnum=f.ConsumedCapacity=f.Capacity=f.BackupTypeFilter=f.BackupSummary=f.BackupNotFoundException=f.BackupInUseException=f.BackupDescription=f.SourceTableFeatureDetails=f.TimeToLiveDescription=f.StreamSpecification=f.SSEDescription=f.LocalSecondaryIndexInfo=f.GlobalSecondaryIndexInfo=f.Projection=f.SourceTableDetails=f.ProvisionedThroughput=f.KeySchemaElement=f.BackupDetails=f.BackupType=f.AutoScalingSettingsUpdate=f.AutoScalingSettingsDescription=f.AutoScalingPolicyUpdate=f.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=f.AutoScalingPolicyDescription=f.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=f.AttributeDefinition=f.ArchivalSummary=void 0;f.DescribeGlobalTableSettingsInput=f.GlobalTableNotFoundException=f.DescribeGlobalTableOutput=f.DescribeGlobalTableInput=f.ExportNotFoundException=f.DescribeExportOutput=f.ExportDescription=f.ExportStatus=f.ExportFormat=f.DescribeExportInput=f.DescribeEndpointsResponse=f.Endpoint=f.DescribeEndpointsRequest=f.DescribeContributorInsightsOutput=f.FailureException=f.DescribeContributorInsightsInput=f.DescribeContinuousBackupsOutput=f.DescribeContinuousBackupsInput=f.DescribeBackupOutput=f.DescribeBackupInput=f.DeleteTableOutput=f.DeleteTableInput=f.DeleteReplicationGroupMemberAction=f.DeleteReplicaAction=f.TransactionConflictException=f.DeleteGlobalSecondaryIndexAction=f.DeleteBackupOutput=f.DeleteBackupInput=f.ResourceInUseException=f.CreateTableOutput=f.TableDescription=f.RestoreSummary=f.LocalSecondaryIndexDescription=f.GlobalSecondaryIndexDescription=f.ProvisionedThroughputDescription=f.CreateTableInput=f.Tag=f.SSESpecification=f.LocalSecondaryIndex=f.GlobalSecondaryIndex=f.CreateReplicationGroupMemberAction=f.ReplicaGlobalSecondaryIndex=f.CreateReplicaAction=f.GlobalTableAlreadyExistsException=f.CreateGlobalTableOutput=f.GlobalTableDescription=f.ReplicaDescription=f.TableClassSummary=f.TableClass=f.ReplicaGlobalSecondaryIndexDescription=void 0;f.PointInTimeRecoverySpecification=f.UntagResourceInput=f.TagResourceInput=f.RestoreTableToPointInTimeOutput=f.RestoreTableToPointInTimeInput=f.InvalidRestoreTimeException=f.TableAlreadyExistsException=f.RestoreTableFromBackupOutput=f.RestoreTableFromBackupInput=f.ListTagsOfResourceOutput=f.ListTagsOfResourceInput=f.ListTablesOutput=f.ListTablesInput=f.ListGlobalTablesOutput=f.GlobalTable=f.ListGlobalTablesInput=f.ListExportsOutput=f.ExportSummary=f.ListExportsInput=f.ListContributorInsightsOutput=f.ListContributorInsightsInput=f.ListBackupsOutput=f.ListBackupsInput=f.PointInTimeRecoveryUnavailableException=f.InvalidExportTimeException=f.ExportTableToPointInTimeOutput=f.ExportTableToPointInTimeInput=f.ExportConflictException=f.TransactionInProgressException=f.IdempotentParameterMismatchException=f.DuplicateItemException=f.KinesisStreamingDestinationOutput=f.KinesisStreamingDestinationInput=f.DescribeTimeToLiveOutput=f.DescribeTimeToLiveInput=f.DescribeTableReplicaAutoScalingOutput=f.TableAutoScalingDescription=f.ReplicaAutoScalingDescription=f.ReplicaGlobalSecondaryIndexAutoScalingDescription=f.DescribeTableReplicaAutoScalingInput=f.DescribeTableOutput=f.DescribeTableInput=f.DescribeLimitsOutput=f.DescribeLimitsInput=f.DescribeKinesisStreamingDestinationOutput=f.KinesisDataStreamDestination=f.DescribeKinesisStreamingDestinationInput=f.DescribeGlobalTableSettingsOutput=f.ReplicaSettingsDescription=f.ReplicaGlobalSecondaryIndexSettingsDescription=void 0;f.ExecuteTransactionOutput=f.ExecuteTransactionInput=f.BatchExecuteStatementOutput=f.BatchExecuteStatementInput=f.TransactGetItem=f.KeysAndAttributes=f.PutRequest=f.ParameterizedStatement=f.ItemResponse=f.ItemCollectionMetrics=f.GetItemOutput=f.GetItemInput=f.Get=f.ExecuteStatementInput=f.DeleteRequest=f.Condition=f.CancellationReason=f.BatchStatementResponse=f.BatchStatementRequest=f.AttributeValueUpdate=f.AttributeValue=f.UpdateTimeToLiveOutput=f.UpdateTimeToLiveInput=f.TimeToLiveSpecification=f.UpdateTableReplicaAutoScalingOutput=f.UpdateTableReplicaAutoScalingInput=f.ReplicaAutoScalingUpdate=f.ReplicaGlobalSecondaryIndexAutoScalingUpdate=f.GlobalSecondaryIndexAutoScalingUpdate=f.UpdateTableOutput=f.UpdateTableInput=f.ReplicationGroupUpdate=f.UpdateReplicationGroupMemberAction=f.GlobalSecondaryIndexUpdate=f.UpdateGlobalSecondaryIndexAction=f.UpdateGlobalTableSettingsOutput=f.UpdateGlobalTableSettingsInput=f.ReplicaSettingsUpdate=f.ReplicaGlobalSecondaryIndexSettingsUpdate=f.GlobalTableGlobalSecondaryIndexSettingsUpdate=f.IndexNotFoundException=f.UpdateGlobalTableOutput=f.UpdateGlobalTableInput=f.ReplicaUpdate=f.ReplicaNotFoundException=f.ReplicaAlreadyExistsException=f.UpdateContributorInsightsOutput=f.UpdateContributorInsightsInput=f.UpdateContinuousBackupsOutput=f.UpdateContinuousBackupsInput=void 0;f.TransactWriteItemsInput=f.TransactWriteItem=f.UpdateItemInput=f.BatchWriteItemOutput=f.QueryInput=f.PutItemInput=f.DeleteItemInput=f.BatchWriteItemInput=f.ScanInput=f.BatchGetItemOutput=f.WriteRequest=f.UpdateItemOutput=f.ScanOutput=f.QueryOutput=f.PutItemOutput=f.ExecuteStatementOutput=f.DeleteItemOutput=f.Update=f.Put=f.Delete=f.ConditionCheck=f.TransactWriteItemsOutput=f.TransactGetItemsInput=f.ExpectedAttributeValue=f.BatchGetItemInput=f.TransactionCanceledException=f.TransactGetItemsOutput=void 0;var be=$u(),O8;(function(e){e.filterSensitiveLog=t=>({...t})})(O8=f.ArchivalSummary||(f.ArchivalSummary={}));var N8;(function(e){e.filterSensitiveLog=t=>({...t})})(N8=f.AttributeDefinition||(f.AttributeDefinition={}));var D8;(function(e){e.filterSensitiveLog=t=>({...t})})(D8=f.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(f.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var q8;(function(e){e.filterSensitiveLog=t=>({...t})})(q8=f.AutoScalingPolicyDescription||(f.AutoScalingPolicyDescription={}));var L8;(function(e){e.filterSensitiveLog=t=>({...t})})(L8=f.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(f.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var M8;(function(e){e.filterSensitiveLog=t=>({...t})})(M8=f.AutoScalingPolicyUpdate||(f.AutoScalingPolicyUpdate={}));var j8;(function(e){e.filterSensitiveLog=t=>({...t})})(j8=f.AutoScalingSettingsDescription||(f.AutoScalingSettingsDescription={}));var z8;(function(e){e.filterSensitiveLog=t=>({...t})})(z8=f.AutoScalingSettingsUpdate||(f.AutoScalingSettingsUpdate={}));var k8;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(k8=f.BackupType||(f.BackupType={}));var F8;(function(e){e.filterSensitiveLog=t=>({...t})})(F8=f.BackupDetails||(f.BackupDetails={}));var U8;(function(e){e.filterSensitiveLog=t=>({...t})})(U8=f.KeySchemaElement||(f.KeySchemaElement={}));var B8;(function(e){e.filterSensitiveLog=t=>({...t})})(B8=f.ProvisionedThroughput||(f.ProvisionedThroughput={}));var G8;(function(e){e.filterSensitiveLog=t=>({...t})})(G8=f.SourceTableDetails||(f.SourceTableDetails={}));var $8;(function(e){e.filterSensitiveLog=t=>({...t})})($8=f.Projection||(f.Projection={}));var V8;(function(e){e.filterSensitiveLog=t=>({...t})})(V8=f.GlobalSecondaryIndexInfo||(f.GlobalSecondaryIndexInfo={}));var H8;(function(e){e.filterSensitiveLog=t=>({...t})})(H8=f.LocalSecondaryIndexInfo||(f.LocalSecondaryIndexInfo={}));var K8;(function(e){e.filterSensitiveLog=t=>({...t})})(K8=f.SSEDescription||(f.SSEDescription={}));var W8;(function(e){e.filterSensitiveLog=t=>({...t})})(W8=f.StreamSpecification||(f.StreamSpecification={}));var Y8;(function(e){e.filterSensitiveLog=t=>({...t})})(Y8=f.TimeToLiveDescription||(f.TimeToLiveDescription={}));var J8;(function(e){e.filterSensitiveLog=t=>({...t})})(J8=f.SourceTableFeatureDetails||(f.SourceTableFeatureDetails={}));var Q8;(function(e){e.filterSensitiveLog=t=>({...t})})(Q8=f.BackupDescription||(f.BackupDescription={}));var ba=class extends be.DynamoDBServiceException{constructor(t){super({name:"BackupInUseException",$fault:"client",...t}),this.name="BackupInUseException",this.$fault="client",Object.setPrototypeOf(this,ba.prototype)}};f.BackupInUseException=ba;var Aa=class extends be.DynamoDBServiceException{constructor(t){super({name:"BackupNotFoundException",$fault:"client",...t}),this.name="BackupNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Aa.prototype)}};f.BackupNotFoundException=Aa;var X8;(function(e){e.filterSensitiveLog=t=>({...t})})(X8=f.BackupSummary||(f.BackupSummary={}));var Z8;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(Z8=f.BackupTypeFilter||(f.BackupTypeFilter={}));var e6;(function(e){e.filterSensitiveLog=t=>({...t})})(e6=f.Capacity||(f.Capacity={}));var t6;(function(e){e.filterSensitiveLog=t=>({...t})})(t6=f.ConsumedCapacity||(f.ConsumedCapacity={}));var r6;(function(e){e.AccessDenied="AccessDenied",e.ConditionalCheckFailed="ConditionalCheckFailed",e.DuplicateItem="DuplicateItem",e.InternalServerError="InternalServerError",e.ItemCollectionSizeLimitExceeded="ItemCollectionSizeLimitExceeded",e.ProvisionedThroughputExceeded="ProvisionedThroughputExceeded",e.RequestLimitExceeded="RequestLimitExceeded",e.ResourceNotFound="ResourceNotFound",e.ThrottlingError="ThrottlingError",e.TransactionConflict="TransactionConflict",e.ValidationError="ValidationError"})(r6=f.BatchStatementErrorCodeEnum||(f.BatchStatementErrorCodeEnum={}));var n6;(function(e){e.filterSensitiveLog=t=>({...t})})(n6=f.BatchStatementError||(f.BatchStatementError={}));var Ta=class extends be.DynamoDBServiceException{constructor(t){super({name:"InternalServerError",$fault:"server",...t}),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,Ta.prototype)}};f.InternalServerError=Ta;var Ca=class extends be.DynamoDBServiceException{constructor(t){super({name:"RequestLimitExceeded",$fault:"client",...t}),this.name="RequestLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,Ca.prototype)}};f.RequestLimitExceeded=Ca;var xa=class extends be.DynamoDBServiceException{constructor(t){super({name:"InvalidEndpointException",$fault:"client",...t}),this.name="InvalidEndpointException",this.$fault="client",Object.setPrototypeOf(this,xa.prototype),this.Message=t.Message}};f.InvalidEndpointException=xa;var Ia=class extends be.DynamoDBServiceException{constructor(t){super({name:"ProvisionedThroughputExceededException",$fault:"client",...t}),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,Ia.prototype)}};f.ProvisionedThroughputExceededException=Ia;var Ra=class extends be.DynamoDBServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ra.prototype)}};f.ResourceNotFoundException=Ra;var Pa=class extends be.DynamoDBServiceException{constructor(t){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...t}),this.name="ItemCollectionSizeLimitExceededException",this.$fault="client",Object.setPrototypeOf(this,Pa.prototype)}};f.ItemCollectionSizeLimitExceededException=Pa;var i6;(function(e){e.filterSensitiveLog=t=>({...t})})(i6=f.BillingModeSummary||(f.BillingModeSummary={}));var Oa=class extends be.DynamoDBServiceException{constructor(t){super({name:"ConditionalCheckFailedException",$fault:"client",...t}),this.name="ConditionalCheckFailedException",this.$fault="client",Object.setPrototypeOf(this,Oa.prototype)}};f.ConditionalCheckFailedException=Oa;var s6;(function(e){e.filterSensitiveLog=t=>({...t})})(s6=f.PointInTimeRecoveryDescription||(f.PointInTimeRecoveryDescription={}));var o6;(function(e){e.filterSensitiveLog=t=>({...t})})(o6=f.ContinuousBackupsDescription||(f.ContinuousBackupsDescription={}));var Na=class extends be.DynamoDBServiceException{constructor(t){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...t}),this.name="ContinuousBackupsUnavailableException",this.$fault="client",Object.setPrototypeOf(this,Na.prototype)}};f.ContinuousBackupsUnavailableException=Na;var a6;(function(e){e.filterSensitiveLog=t=>({...t})})(a6=f.ContributorInsightsSummary||(f.ContributorInsightsSummary={}));var c6;(function(e){e.filterSensitiveLog=t=>({...t})})(c6=f.CreateBackupInput||(f.CreateBackupInput={}));var l6;(function(e){e.filterSensitiveLog=t=>({...t})})(l6=f.CreateBackupOutput||(f.CreateBackupOutput={}));var Da=class extends be.DynamoDBServiceException{constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,Da.prototype)}};f.LimitExceededException=Da;var qa=class extends be.DynamoDBServiceException{constructor(t){super({name:"TableInUseException",$fault:"client",...t}),this.name="TableInUseException",this.$fault="client",Object.setPrototypeOf(this,qa.prototype)}};f.TableInUseException=qa;var La=class extends be.DynamoDBServiceException{constructor(t){super({name:"TableNotFoundException",$fault:"client",...t}),this.name="TableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,La.prototype)}};f.TableNotFoundException=La;var u6;(function(e){e.filterSensitiveLog=t=>({...t})})(u6=f.CreateGlobalSecondaryIndexAction||(f.CreateGlobalSecondaryIndexAction={}));var d6;(function(e){e.filterSensitiveLog=t=>({...t})})(d6=f.Replica||(f.Replica={}));var f6;(function(e){e.filterSensitiveLog=t=>({...t})})(f6=f.CreateGlobalTableInput||(f.CreateGlobalTableInput={}));var m6;(function(e){e.filterSensitiveLog=t=>({...t})})(m6=f.ProvisionedThroughputOverride||(f.ProvisionedThroughputOverride={}));var p6;(function(e){e.filterSensitiveLog=t=>({...t})})(p6=f.ReplicaGlobalSecondaryIndexDescription||(f.ReplicaGlobalSecondaryIndexDescription={}));var _6;(function(e){e.STANDARD="STANDARD",e.STANDARD_INFREQUENT_ACCESS="STANDARD_INFREQUENT_ACCESS"})(_6=f.TableClass||(f.TableClass={}));var h6;(function(e){e.filterSensitiveLog=t=>({...t})})(h6=f.TableClassSummary||(f.TableClassSummary={}));var y6;(function(e){e.filterSensitiveLog=t=>({...t})})(y6=f.ReplicaDescription||(f.ReplicaDescription={}));var g6;(function(e){e.filterSensitiveLog=t=>({...t})})(g6=f.GlobalTableDescription||(f.GlobalTableDescription={}));var v6;(function(e){e.filterSensitiveLog=t=>({...t})})(v6=f.CreateGlobalTableOutput||(f.CreateGlobalTableOutput={}));var Ma=class extends be.DynamoDBServiceException{constructor(t){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...t}),this.name="GlobalTableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Ma.prototype)}};f.GlobalTableAlreadyExistsException=Ma;var S6;(function(e){e.filterSensitiveLog=t=>({...t})})(S6=f.CreateReplicaAction||(f.CreateReplicaAction={}));var w6;(function(e){e.filterSensitiveLog=t=>({...t})})(w6=f.ReplicaGlobalSecondaryIndex||(f.ReplicaGlobalSecondaryIndex={}));var E6;(function(e){e.filterSensitiveLog=t=>({...t})})(E6=f.CreateReplicationGroupMemberAction||(f.CreateReplicationGroupMemberAction={}));var b6;(function(e){e.filterSensitiveLog=t=>({...t})})(b6=f.GlobalSecondaryIndex||(f.GlobalSecondaryIndex={}));var A6;(function(e){e.filterSensitiveLog=t=>({...t})})(A6=f.LocalSecondaryIndex||(f.LocalSecondaryIndex={}));var T6;(function(e){e.filterSensitiveLog=t=>({...t})})(T6=f.SSESpecification||(f.SSESpecification={}));var C6;(function(e){e.filterSensitiveLog=t=>({...t})})(C6=f.Tag||(f.Tag={}));var x6;(function(e){e.filterSensitiveLog=t=>({...t})})(x6=f.CreateTableInput||(f.CreateTableInput={}));var I6;(function(e){e.filterSensitiveLog=t=>({...t})})(I6=f.ProvisionedThroughputDescription||(f.ProvisionedThroughputDescription={}));var R6;(function(e){e.filterSensitiveLog=t=>({...t})})(R6=f.GlobalSecondaryIndexDescription||(f.GlobalSecondaryIndexDescription={}));var P6;(function(e){e.filterSensitiveLog=t=>({...t})})(P6=f.LocalSecondaryIndexDescription||(f.LocalSecondaryIndexDescription={}));var O6;(function(e){e.filterSensitiveLog=t=>({...t})})(O6=f.RestoreSummary||(f.RestoreSummary={}));var N6;(function(e){e.filterSensitiveLog=t=>({...t})})(N6=f.TableDescription||(f.TableDescription={}));var D6;(function(e){e.filterSensitiveLog=t=>({...t})})(D6=f.CreateTableOutput||(f.CreateTableOutput={}));var ja=class extends be.DynamoDBServiceException{constructor(t){super({name:"ResourceInUseException",$fault:"client",...t}),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,ja.prototype)}};f.ResourceInUseException=ja;var q6;(function(e){e.filterSensitiveLog=t=>({...t})})(q6=f.DeleteBackupInput||(f.DeleteBackupInput={}));var L6;(function(e){e.filterSensitiveLog=t=>({...t})})(L6=f.DeleteBackupOutput||(f.DeleteBackupOutput={}));var M6;(function(e){e.filterSensitiveLog=t=>({...t})})(M6=f.DeleteGlobalSecondaryIndexAction||(f.DeleteGlobalSecondaryIndexAction={}));var za=class extends be.DynamoDBServiceException{constructor(t){super({name:"TransactionConflictException",$fault:"client",...t}),this.name="TransactionConflictException",this.$fault="client",Object.setPrototypeOf(this,za.prototype)}};f.TransactionConflictException=za;var j6;(function(e){e.filterSensitiveLog=t=>({...t})})(j6=f.DeleteReplicaAction||(f.DeleteReplicaAction={}));var z6;(function(e){e.filterSensitiveLog=t=>({...t})})(z6=f.DeleteReplicationGroupMemberAction||(f.DeleteReplicationGroupMemberAction={}));var k6;(function(e){e.filterSensitiveLog=t=>({...t})})(k6=f.DeleteTableInput||(f.DeleteTableInput={}));var F6;(function(e){e.filterSensitiveLog=t=>({...t})})(F6=f.DeleteTableOutput||(f.DeleteTableOutput={}));var U6;(function(e){e.filterSensitiveLog=t=>({...t})})(U6=f.DescribeBackupInput||(f.DescribeBackupInput={}));var B6;(function(e){e.filterSensitiveLog=t=>({...t})})(B6=f.DescribeBackupOutput||(f.DescribeBackupOutput={}));var G6;(function(e){e.filterSensitiveLog=t=>({...t})})(G6=f.DescribeContinuousBackupsInput||(f.DescribeContinuousBackupsInput={}));var $6;(function(e){e.filterSensitiveLog=t=>({...t})})($6=f.DescribeContinuousBackupsOutput||(f.DescribeContinuousBackupsOutput={}));var V6;(function(e){e.filterSensitiveLog=t=>({...t})})(V6=f.DescribeContributorInsightsInput||(f.DescribeContributorInsightsInput={}));var H6;(function(e){e.filterSensitiveLog=t=>({...t})})(H6=f.FailureException||(f.FailureException={}));var K6;(function(e){e.filterSensitiveLog=t=>({...t})})(K6=f.DescribeContributorInsightsOutput||(f.DescribeContributorInsightsOutput={}));var W6;(function(e){e.filterSensitiveLog=t=>({...t})})(W6=f.DescribeEndpointsRequest||(f.DescribeEndpointsRequest={}));var Y6;(function(e){e.filterSensitiveLog=t=>({...t})})(Y6=f.Endpoint||(f.Endpoint={}));var J6;(function(e){e.filterSensitiveLog=t=>({...t})})(J6=f.DescribeEndpointsResponse||(f.DescribeEndpointsResponse={}));var Q6;(function(e){e.filterSensitiveLog=t=>({...t})})(Q6=f.DescribeExportInput||(f.DescribeExportInput={}));var X6;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(X6=f.ExportFormat||(f.ExportFormat={}));var Z6;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(Z6=f.ExportStatus||(f.ExportStatus={}));var e4;(function(e){e.filterSensitiveLog=t=>({...t})})(e4=f.ExportDescription||(f.ExportDescription={}));var t4;(function(e){e.filterSensitiveLog=t=>({...t})})(t4=f.DescribeExportOutput||(f.DescribeExportOutput={}));var ka=class extends be.DynamoDBServiceException{constructor(t){super({name:"ExportNotFoundException",$fault:"client",...t}),this.name="ExportNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ka.prototype)}};f.ExportNotFoundException=ka;var r4;(function(e){e.filterSensitiveLog=t=>({...t})})(r4=f.DescribeGlobalTableInput||(f.DescribeGlobalTableInput={}));var n4;(function(e){e.filterSensitiveLog=t=>({...t})})(n4=f.DescribeGlobalTableOutput||(f.DescribeGlobalTableOutput={}));var Fa=class extends be.DynamoDBServiceException{constructor(t){super({name:"GlobalTableNotFoundException",$fault:"client",...t}),this.name="GlobalTableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Fa.prototype)}};f.GlobalTableNotFoundException=Fa;var i4;(function(e){e.filterSensitiveLog=t=>({...t})})(i4=f.DescribeGlobalTableSettingsInput||(f.DescribeGlobalTableSettingsInput={}));var s4;(function(e){e.filterSensitiveLog=t=>({...t})})(s4=f.ReplicaGlobalSecondaryIndexSettingsDescription||(f.ReplicaGlobalSecondaryIndexSettingsDescription={}));var o4;(function(e){e.filterSensitiveLog=t=>({...t})})(o4=f.ReplicaSettingsDescription||(f.ReplicaSettingsDescription={}));var a4;(function(e){e.filterSensitiveLog=t=>({...t})})(a4=f.DescribeGlobalTableSettingsOutput||(f.DescribeGlobalTableSettingsOutput={}));var c4;(function(e){e.filterSensitiveLog=t=>({...t})})(c4=f.DescribeKinesisStreamingDestinationInput||(f.DescribeKinesisStreamingDestinationInput={}));var l4;(function(e){e.filterSensitiveLog=t=>({...t})})(l4=f.KinesisDataStreamDestination||(f.KinesisDataStreamDestination={}));var u4;(function(e){e.filterSensitiveLog=t=>({...t})})(u4=f.DescribeKinesisStreamingDestinationOutput||(f.DescribeKinesisStreamingDestinationOutput={}));var d4;(function(e){e.filterSensitiveLog=t=>({...t})})(d4=f.DescribeLimitsInput||(f.DescribeLimitsInput={}));var f4;(function(e){e.filterSensitiveLog=t=>({...t})})(f4=f.DescribeLimitsOutput||(f.DescribeLimitsOutput={}));var m4;(function(e){e.filterSensitiveLog=t=>({...t})})(m4=f.DescribeTableInput||(f.DescribeTableInput={}));var p4;(function(e){e.filterSensitiveLog=t=>({...t})})(p4=f.DescribeTableOutput||(f.DescribeTableOutput={}));var _4;(function(e){e.filterSensitiveLog=t=>({...t})})(_4=f.DescribeTableReplicaAutoScalingInput||(f.DescribeTableReplicaAutoScalingInput={}));var h4;(function(e){e.filterSensitiveLog=t=>({...t})})(h4=f.ReplicaGlobalSecondaryIndexAutoScalingDescription||(f.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var y4;(function(e){e.filterSensitiveLog=t=>({...t})})(y4=f.ReplicaAutoScalingDescription||(f.ReplicaAutoScalingDescription={}));var g4;(function(e){e.filterSensitiveLog=t=>({...t})})(g4=f.TableAutoScalingDescription||(f.TableAutoScalingDescription={}));var v4;(function(e){e.filterSensitiveLog=t=>({...t})})(v4=f.DescribeTableReplicaAutoScalingOutput||(f.DescribeTableReplicaAutoScalingOutput={}));var S4;(function(e){e.filterSensitiveLog=t=>({...t})})(S4=f.DescribeTimeToLiveInput||(f.DescribeTimeToLiveInput={}));var w4;(function(e){e.filterSensitiveLog=t=>({...t})})(w4=f.DescribeTimeToLiveOutput||(f.DescribeTimeToLiveOutput={}));var E4;(function(e){e.filterSensitiveLog=t=>({...t})})(E4=f.KinesisStreamingDestinationInput||(f.KinesisStreamingDestinationInput={}));var b4;(function(e){e.filterSensitiveLog=t=>({...t})})(b4=f.KinesisStreamingDestinationOutput||(f.KinesisStreamingDestinationOutput={}));var Ua=class extends be.DynamoDBServiceException{constructor(t){super({name:"DuplicateItemException",$fault:"client",...t}),this.name="DuplicateItemException",this.$fault="client",Object.setPrototypeOf(this,Ua.prototype)}};f.DuplicateItemException=Ua;var Ba=class extends be.DynamoDBServiceException{constructor(t){super({name:"IdempotentParameterMismatchException",$fault:"client",...t}),this.name="IdempotentParameterMismatchException",this.$fault="client",Object.setPrototypeOf(this,Ba.prototype),this.Message=t.Message}};f.IdempotentParameterMismatchException=Ba;var Ga=class extends be.DynamoDBServiceException{constructor(t){super({name:"TransactionInProgressException",$fault:"client",...t}),this.name="TransactionInProgressException",this.$fault="client",Object.setPrototypeOf(this,Ga.prototype),this.Message=t.Message}};f.TransactionInProgressException=Ga;var $a=class extends be.DynamoDBServiceException{constructor(t){super({name:"ExportConflictException",$fault:"client",...t}),this.name="ExportConflictException",this.$fault="client",Object.setPrototypeOf(this,$a.prototype)}};f.ExportConflictException=$a;var A4;(function(e){e.filterSensitiveLog=t=>({...t})})(A4=f.ExportTableToPointInTimeInput||(f.ExportTableToPointInTimeInput={}));var T4;(function(e){e.filterSensitiveLog=t=>({...t})})(T4=f.ExportTableToPointInTimeOutput||(f.ExportTableToPointInTimeOutput={}));var Va=class extends be.DynamoDBServiceException{constructor(t){super({name:"InvalidExportTimeException",$fault:"client",...t}),this.name="InvalidExportTimeException",this.$fault="client",Object.setPrototypeOf(this,Va.prototype)}};f.InvalidExportTimeException=Va;var Ha=class extends be.DynamoDBServiceException{constructor(t){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...t}),this.name="PointInTimeRecoveryUnavailableException",this.$fault="client",Object.setPrototypeOf(this,Ha.prototype)}};f.PointInTimeRecoveryUnavailableException=Ha;var C4;(function(e){e.filterSensitiveLog=t=>({...t})})(C4=f.ListBackupsInput||(f.ListBackupsInput={}));var x4;(function(e){e.filterSensitiveLog=t=>({...t})})(x4=f.ListBackupsOutput||(f.ListBackupsOutput={}));var I4;(function(e){e.filterSensitiveLog=t=>({...t})})(I4=f.ListContributorInsightsInput||(f.ListContributorInsightsInput={}));var R4;(function(e){e.filterSensitiveLog=t=>({...t})})(R4=f.ListContributorInsightsOutput||(f.ListContributorInsightsOutput={}));var P4;(function(e){e.filterSensitiveLog=t=>({...t})})(P4=f.ListExportsInput||(f.ListExportsInput={}));var O4;(function(e){e.filterSensitiveLog=t=>({...t})})(O4=f.ExportSummary||(f.ExportSummary={}));var N4;(function(e){e.filterSensitiveLog=t=>({...t})})(N4=f.ListExportsOutput||(f.ListExportsOutput={}));var D4;(function(e){e.filterSensitiveLog=t=>({...t})})(D4=f.ListGlobalTablesInput||(f.ListGlobalTablesInput={}));var q4;(function(e){e.filterSensitiveLog=t=>({...t})})(q4=f.GlobalTable||(f.GlobalTable={}));var L4;(function(e){e.filterSensitiveLog=t=>({...t})})(L4=f.ListGlobalTablesOutput||(f.ListGlobalTablesOutput={}));var M4;(function(e){e.filterSensitiveLog=t=>({...t})})(M4=f.ListTablesInput||(f.ListTablesInput={}));var j4;(function(e){e.filterSensitiveLog=t=>({...t})})(j4=f.ListTablesOutput||(f.ListTablesOutput={}));var z4;(function(e){e.filterSensitiveLog=t=>({...t})})(z4=f.ListTagsOfResourceInput||(f.ListTagsOfResourceInput={}));var k4;(function(e){e.filterSensitiveLog=t=>({...t})})(k4=f.ListTagsOfResourceOutput||(f.ListTagsOfResourceOutput={}));var F4;(function(e){e.filterSensitiveLog=t=>({...t})})(F4=f.RestoreTableFromBackupInput||(f.RestoreTableFromBackupInput={}));var U4;(function(e){e.filterSensitiveLog=t=>({...t})})(U4=f.RestoreTableFromBackupOutput||(f.RestoreTableFromBackupOutput={}));var Ka=class extends be.DynamoDBServiceException{constructor(t){super({name:"TableAlreadyExistsException",$fault:"client",...t}),this.name="TableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Ka.prototype)}};f.TableAlreadyExistsException=Ka;var Wa=class extends be.DynamoDBServiceException{constructor(t){super({name:"InvalidRestoreTimeException",$fault:"client",...t}),this.name="InvalidRestoreTimeException",this.$fault="client",Object.setPrototypeOf(this,Wa.prototype)}};f.InvalidRestoreTimeException=Wa;var B4;(function(e){e.filterSensitiveLog=t=>({...t})})(B4=f.RestoreTableToPointInTimeInput||(f.RestoreTableToPointInTimeInput={}));var G4;(function(e){e.filterSensitiveLog=t=>({...t})})(G4=f.RestoreTableToPointInTimeOutput||(f.RestoreTableToPointInTimeOutput={}));var $4;(function(e){e.filterSensitiveLog=t=>({...t})})($4=f.TagResourceInput||(f.TagResourceInput={}));var V4;(function(e){e.filterSensitiveLog=t=>({...t})})(V4=f.UntagResourceInput||(f.UntagResourceInput={}));var H4;(function(e){e.filterSensitiveLog=t=>({...t})})(H4=f.PointInTimeRecoverySpecification||(f.PointInTimeRecoverySpecification={}));var K4;(function(e){e.filterSensitiveLog=t=>({...t})})(K4=f.UpdateContinuousBackupsInput||(f.UpdateContinuousBackupsInput={}));var W4;(function(e){e.filterSensitiveLog=t=>({...t})})(W4=f.UpdateContinuousBackupsOutput||(f.UpdateContinuousBackupsOutput={}));var Y4;(function(e){e.filterSensitiveLog=t=>({...t})})(Y4=f.UpdateContributorInsightsInput||(f.UpdateContributorInsightsInput={}));var J4;(function(e){e.filterSensitiveLog=t=>({...t})})(J4=f.UpdateContributorInsightsOutput||(f.UpdateContributorInsightsOutput={}));var Ya=class extends be.DynamoDBServiceException{constructor(t){super({name:"ReplicaAlreadyExistsException",$fault:"client",...t}),this.name="ReplicaAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Ya.prototype)}};f.ReplicaAlreadyExistsException=Ya;var Ja=class extends be.DynamoDBServiceException{constructor(t){super({name:"ReplicaNotFoundException",$fault:"client",...t}),this.name="ReplicaNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ja.prototype)}};f.ReplicaNotFoundException=Ja;var Q4;(function(e){e.filterSensitiveLog=t=>({...t})})(Q4=f.ReplicaUpdate||(f.ReplicaUpdate={}));var X4;(function(e){e.filterSensitiveLog=t=>({...t})})(X4=f.UpdateGlobalTableInput||(f.UpdateGlobalTableInput={}));var Z4;(function(e){e.filterSensitiveLog=t=>({...t})})(Z4=f.UpdateGlobalTableOutput||(f.UpdateGlobalTableOutput={}));var Qa=class extends be.DynamoDBServiceException{constructor(t){super({name:"IndexNotFoundException",$fault:"client",...t}),this.name="IndexNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Qa.prototype)}};f.IndexNotFoundException=Qa;var e5;(function(e){e.filterSensitiveLog=t=>({...t})})(e5=f.GlobalTableGlobalSecondaryIndexSettingsUpdate||(f.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var t5;(function(e){e.filterSensitiveLog=t=>({...t})})(t5=f.ReplicaGlobalSecondaryIndexSettingsUpdate||(f.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var r5;(function(e){e.filterSensitiveLog=t=>({...t})})(r5=f.ReplicaSettingsUpdate||(f.ReplicaSettingsUpdate={}));var n5;(function(e){e.filterSensitiveLog=t=>({...t})})(n5=f.UpdateGlobalTableSettingsInput||(f.UpdateGlobalTableSettingsInput={}));var i5;(function(e){e.filterSensitiveLog=t=>({...t})})(i5=f.UpdateGlobalTableSettingsOutput||(f.UpdateGlobalTableSettingsOutput={}));var s5;(function(e){e.filterSensitiveLog=t=>({...t})})(s5=f.UpdateGlobalSecondaryIndexAction||(f.UpdateGlobalSecondaryIndexAction={}));var o5;(function(e){e.filterSensitiveLog=t=>({...t})})(o5=f.GlobalSecondaryIndexUpdate||(f.GlobalSecondaryIndexUpdate={}));var a5;(function(e){e.filterSensitiveLog=t=>({...t})})(a5=f.UpdateReplicationGroupMemberAction||(f.UpdateReplicationGroupMemberAction={}));var c5;(function(e){e.filterSensitiveLog=t=>({...t})})(c5=f.ReplicationGroupUpdate||(f.ReplicationGroupUpdate={}));var l5;(function(e){e.filterSensitiveLog=t=>({...t})})(l5=f.UpdateTableInput||(f.UpdateTableInput={}));var u5;(function(e){e.filterSensitiveLog=t=>({...t})})(u5=f.UpdateTableOutput||(f.UpdateTableOutput={}));var d5;(function(e){e.filterSensitiveLog=t=>({...t})})(d5=f.GlobalSecondaryIndexAutoScalingUpdate||(f.GlobalSecondaryIndexAutoScalingUpdate={}));var f5;(function(e){e.filterSensitiveLog=t=>({...t})})(f5=f.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(f.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var m5;(function(e){e.filterSensitiveLog=t=>({...t})})(m5=f.ReplicaAutoScalingUpdate||(f.ReplicaAutoScalingUpdate={}));var p5;(function(e){e.filterSensitiveLog=t=>({...t})})(p5=f.UpdateTableReplicaAutoScalingInput||(f.UpdateTableReplicaAutoScalingInput={}));var _5;(function(e){e.filterSensitiveLog=t=>({...t})})(_5=f.UpdateTableReplicaAutoScalingOutput||(f.UpdateTableReplicaAutoScalingOutput={}));var h5;(function(e){e.filterSensitiveLog=t=>({...t})})(h5=f.TimeToLiveSpecification||(f.TimeToLiveSpecification={}));var y5;(function(e){e.filterSensitiveLog=t=>({...t})})(y5=f.UpdateTimeToLiveInput||(f.UpdateTimeToLiveInput={}));var g5;(function(e){e.filterSensitiveLog=t=>({...t})})(g5=f.UpdateTimeToLiveOutput||(f.UpdateTimeToLiveOutput={}));var ae;(function(e){e.visit=(t,r)=>t.S!==void 0?r.S(t.S):t.N!==void 0?r.N(t.N):t.B!==void 0?r.B(t.B):t.SS!==void 0?r.SS(t.SS):t.NS!==void 0?r.NS(t.NS):t.BS!==void 0?r.BS(t.BS):t.M!==void 0?r.M(t.M):t.L!==void 0?r.L(t.L):t.NULL!==void 0?r.NULL(t.NULL):t.BOOL!==void 0?r.BOOL(t.BOOL):r._(t.$unknown[0],t.$unknown[1]),e.filterSensitiveLog=t=>{if(t.S!==void 0)return{S:t.S};if(t.N!==void 0)return{N:t.N};if(t.B!==void 0)return{B:t.B};if(t.SS!==void 0)return{SS:t.SS};if(t.NS!==void 0)return{NS:t.NS};if(t.BS!==void 0)return{BS:t.BS};if(t.M!==void 0)return{M:Object.entries(t.M).reduce((r,[n,i])=>({...r,[n]:e.filterSensitiveLog(i)}),{})};if(t.L!==void 0)return{L:t.L.map(r=>e.filterSensitiveLog(r))};if(t.NULL!==void 0)return{NULL:t.NULL};if(t.BOOL!==void 0)return{BOOL:t.BOOL};if(t.$unknown!==void 0)return{[t.$unknown[0]]:"UNKNOWN"}}})(ae=f.AttributeValue||(f.AttributeValue={}));var H1;(function(e){e.filterSensitiveLog=t=>({...t,...t.Value&&{Value:ae.filterSensitiveLog(t.Value)}})})(H1=f.AttributeValueUpdate||(f.AttributeValueUpdate={}));var K1;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(r=>ae.filterSensitiveLog(r))}})})(K1=f.BatchStatementRequest||(f.BatchStatementRequest={}));var W1;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(W1=f.BatchStatementResponse||(f.BatchStatementResponse={}));var v5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(v5=f.CancellationReason||(f.CancellationReason={}));var Vu;(function(e){e.filterSensitiveLog=t=>({...t,...t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(r=>ae.filterSensitiveLog(r))}})})(Vu=f.Condition||(f.Condition={}));var Y1;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(Y1=f.DeleteRequest||(f.DeleteRequest={}));var S5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(r=>ae.filterSensitiveLog(r))}})})(S5=f.ExecuteStatementInput||(f.ExecuteStatementInput={}));var J1;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(J1=f.Get||(f.Get={}));var w5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(w5=f.GetItemInput||(f.GetItemInput={}));var E5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(E5=f.GetItemOutput||(f.GetItemOutput={}));var Bs;(function(e){e.filterSensitiveLog=t=>({...t,...t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(Bs=f.ItemCollectionMetrics||(f.ItemCollectionMetrics={}));var _w;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(_w=f.ItemResponse||(f.ItemResponse={}));var Q1;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(r=>ae.filterSensitiveLog(r))}})})(Q1=f.ParameterizedStatement||(f.ParameterizedStatement={}));var X1;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(X1=f.PutRequest||(f.PutRequest={}));var hw;(function(e){e.filterSensitiveLog=t=>({...t,...t.Keys&&{Keys:t.Keys.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:ae.filterSensitiveLog(s)}),{}))}})})(hw=f.KeysAndAttributes||(f.KeysAndAttributes={}));var Z1;(function(e){e.filterSensitiveLog=t=>({...t,...t.Get&&{Get:J1.filterSensitiveLog(t.Get)}})})(Z1=f.TransactGetItem||(f.TransactGetItem={}));var b5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Statements&&{Statements:t.Statements.map(r=>K1.filterSensitiveLog(r))}})})(b5=f.BatchExecuteStatementInput||(f.BatchExecuteStatementInput={}));var A5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(r=>W1.filterSensitiveLog(r))}})})(A5=f.BatchExecuteStatementOutput||(f.BatchExecuteStatementOutput={}));var T5;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactStatements&&{TransactStatements:t.TransactStatements.map(r=>Q1.filterSensitiveLog(r))}})})(T5=f.ExecuteTransactionInput||(f.ExecuteTransactionInput={}));var C5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(r=>_w.filterSensitiveLog(r))}})})(C5=f.ExecuteTransactionOutput||(f.ExecuteTransactionOutput={}));var x5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(r=>_w.filterSensitiveLog(r))}})})(x5=f.TransactGetItemsOutput||(f.TransactGetItemsOutput={}));var Xa=class extends be.DynamoDBServiceException{constructor(t){super({name:"TransactionCanceledException",$fault:"client",...t}),this.name="TransactionCanceledException",this.$fault="client",Object.setPrototypeOf(this,Xa.prototype),this.Message=t.Message,this.CancellationReasons=t.CancellationReasons}};f.TransactionCanceledException=Xa;var I5;(function(e){e.filterSensitiveLog=t=>({...t,...t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((r,[n,i])=>({...r,[n]:hw.filterSensitiveLog(i)}),{})}})})(I5=f.BatchGetItemInput||(f.BatchGetItemInput={}));var Hu;(function(e){e.filterSensitiveLog=t=>({...t,...t.Value&&{Value:ae.filterSensitiveLog(t.Value)},...t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(r=>ae.filterSensitiveLog(r))}})})(Hu=f.ExpectedAttributeValue||(f.ExpectedAttributeValue={}));var R5;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactItems&&{TransactItems:t.TransactItems.map(r=>Z1.filterSensitiveLog(r))}})})(R5=f.TransactGetItemsInput||(f.TransactGetItemsInput={}));var P5;(function(e){e.filterSensitiveLog=t=>({...t,...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((r,[n,i])=>({...r,[n]:i.map(s=>Bs.filterSensitiveLog(s))}),{})}})})(P5=f.TransactWriteItemsOutput||(f.TransactWriteItemsOutput={}));var eR;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(eR=f.ConditionCheck||(f.ConditionCheck={}));var tR;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(tR=f.Delete||(f.Delete={}));var rR;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(rR=f.Put||(f.Put={}));var nR;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(nR=f.Update||(f.Update={}));var O5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Bs.filterSensitiveLog(t.ItemCollectionMetrics)}})})(O5=f.DeleteItemOutput||(f.DeleteItemOutput={}));var N5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:ae.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(N5=f.ExecuteStatementOutput||(f.ExecuteStatementOutput={}));var D5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Bs.filterSensitiveLog(t.ItemCollectionMetrics)}})})(D5=f.PutItemOutput||(f.PutItemOutput={}));var q5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:ae.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(q5=f.QueryOutput||(f.QueryOutput={}));var L5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:ae.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(L5=f.ScanOutput||(f.ScanOutput={}));var M5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Bs.filterSensitiveLog(t.ItemCollectionMetrics)}})})(M5=f.UpdateItemOutput||(f.UpdateItemOutput={}));var yw;(function(e){e.filterSensitiveLog=t=>({...t,...t.PutRequest&&{PutRequest:X1.filterSensitiveLog(t.PutRequest)},...t.DeleteRequest&&{DeleteRequest:Y1.filterSensitiveLog(t.DeleteRequest)}})})(yw=f.WriteRequest||(f.WriteRequest={}));var j5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:Object.entries(t.Responses).reduce((r,[n,i])=>({...r,[n]:i.map(s=>Object.entries(s).reduce((o,[a,c])=>({...o,[a]:ae.filterSensitiveLog(c)}),{}))}),{})},...t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((r,[n,i])=>({...r,[n]:hw.filterSensitiveLog(i)}),{})}})})(j5=f.BatchGetItemOutput||(f.BatchGetItemOutput={}));var z5;(function(e){e.filterSensitiveLog=t=>({...t,...t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((r,[n,i])=>({...r,[n]:Vu.filterSensitiveLog(i)}),{})},...t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(z5=f.ScanInput||(f.ScanInput={}));var k5;(function(e){e.filterSensitiveLog=t=>({...t,...t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((r,[n,i])=>({...r,[n]:i.map(s=>yw.filterSensitiveLog(s))}),{})}})})(k5=f.BatchWriteItemInput||(f.BatchWriteItemInput={}));var F5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>({...r,[n]:Hu.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(F5=f.DeleteItemInput||(f.DeleteItemInput={}));var U5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>({...r,[n]:Hu.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(U5=f.PutItemInput||(f.PutItemInput={}));var B5;(function(e){e.filterSensitiveLog=t=>({...t,...t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((r,[n,i])=>({...r,[n]:Vu.filterSensitiveLog(i)}),{})},...t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((r,[n,i])=>({...r,[n]:Vu.filterSensitiveLog(i)}),{})},...t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})(B5=f.QueryInput||(f.QueryInput={}));var G5;(function(e){e.filterSensitiveLog=t=>({...t,...t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((r,[n,i])=>({...r,[n]:i.map(s=>yw.filterSensitiveLog(s))}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((r,[n,i])=>({...r,[n]:i.map(s=>Bs.filterSensitiveLog(s))}),{})}})})(G5=f.BatchWriteItemOutput||(f.BatchWriteItemOutput={}));var $5;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})},...t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((r,[n,i])=>({...r,[n]:H1.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>({...r,[n]:Hu.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:ae.filterSensitiveLog(i)}),{})}})})($5=f.UpdateItemInput||(f.UpdateItemInput={}));var iR;(function(e){e.filterSensitiveLog=t=>({...t,...t.ConditionCheck&&{ConditionCheck:eR.filterSensitiveLog(t.ConditionCheck)},...t.Put&&{Put:rR.filterSensitiveLog(t.Put)},...t.Delete&&{Delete:tR.filterSensitiveLog(t.Delete)},...t.Update&&{Update:nR.filterSensitiveLog(t.Update)}})})(iR=f.TransactWriteItem||(f.TransactWriteItem={}));var V5;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactItems&&{TransactItems:t.TransactItems.map(r=>iR.filterSensitiveLog(r))}})})(V5=f.TransactWriteItemsInput||(f.TransactWriteItemsInput={}))});var oR=d(sR=>{"use strict";Object.defineProperty(sR,"__esModule",{value:!0})});var aR=d(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.HttpRequest=void 0;var Za=class{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/"}static isInstance(t){if(!t)return!1;let r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){let t=new Za({...this,headers:{...this.headers}});return t.query&&(t.query=H5(t.query)),t}};Ku.HttpRequest=Za;function H5(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}});var cR=d(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.HttpResponse=void 0;var gw=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}};Wu.HttpResponse=gw});var lR=d(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.isValidHostname=void 0;function K5(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}Yu.isValidHostname=K5});var Tt=d(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var Ju=M();Ju.__exportStar(oR(),Gs);Ju.__exportStar(aR(),Gs);Ju.__exportStar(cR(),Gs);Ju.__exportStar(lR(),Gs)});var Sw=d(vw=>{"use strict";Object.defineProperty(vw,"__esModule",{value:!0});vw.default=J5;var W5=Y5(require("crypto"));function Y5(e){return e&&e.__esModule?e:{default:e}}var Xu=new Uint8Array(256),Qu=Xu.length;function J5(){return Qu>Xu.length-16&&(W5.default.randomFillSync(Xu),Qu=0),Xu.slice(Qu,Qu+=16)}});var uR=d(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.default=void 0;var Q5=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Zu.default=Q5});var ec=d(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.default=void 0;var X5=Z5(uR());function Z5(e){return e&&e.__esModule?e:{default:e}}function eY(e){return typeof e=="string"&&X5.default.test(e)}var tY=eY;ed.default=tY});var tc=d(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.default=void 0;var rY=nY(ec());function nY(e){return e&&e.__esModule?e:{default:e}}var lt=[];for(let e=0;e<256;++e)lt.push((e+256).toString(16).substr(1));function iY(e,t=0){let r=(lt[e[t+0]]+lt[e[t+1]]+lt[e[t+2]]+lt[e[t+3]]+"-"+lt[e[t+4]]+lt[e[t+5]]+"-"+lt[e[t+6]]+lt[e[t+7]]+"-"+lt[e[t+8]]+lt[e[t+9]]+"-"+lt[e[t+10]]+lt[e[t+11]]+lt[e[t+12]]+lt[e[t+13]]+lt[e[t+14]]+lt[e[t+15]]).toLowerCase();if(!(0,rY.default)(r))throw TypeError("Stringified UUID is invalid");return r}var sY=iY;td.default=sY});var mR=d(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.default=void 0;var oY=fR(Sw()),aY=fR(tc());function fR(e){return e&&e.__esModule?e:{default:e}}var dR,ww,Ew=0,bw=0;function cY(e,t,r){let n=t&&r||0,i=t||new Array(16);e=e||{};let s=e.node||dR,o=e.clockseq!==void 0?e.clockseq:ww;if(s==null||o==null){let m=e.random||(e.rng||oY.default)();s==null&&(s=dR=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),o==null&&(o=ww=(m[6]<<8|m[7])&16383)}let a=e.msecs!==void 0?e.msecs:Date.now(),c=e.nsecs!==void 0?e.nsecs:bw+1,l=a-Ew+(c-bw)/1e4;if(l<0&&e.clockseq===void 0&&(o=o+1&16383),(l<0||a>Ew)&&e.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Ew=a,bw=c,ww=o,a+=122192928e5;let u=((a&268435455)*1e4+c)%4294967296;i[n++]=u>>>24&255,i[n++]=u>>>16&255,i[n++]=u>>>8&255,i[n++]=u&255;let p=a/4294967296*1e4&268435455;i[n++]=p>>>8&255,i[n++]=p&255,i[n++]=p>>>24&15|16,i[n++]=p>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(let m=0;m<6;++m)i[n+m]=s[m];return t||(0,aY.default)(i)}var lY=cY;rd.default=lY});var Aw=d(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.default=void 0;var uY=dY(ec());function dY(e){return e&&e.__esModule?e:{default:e}}function fY(e){if(!(0,uY.default)(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var mY=fY;nd.default=mY});var Tw=d(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.default=yY;Gi.URL=Gi.DNS=void 0;var pY=pR(tc()),_Y=pR(Aw());function pR(e){return e&&e.__esModule?e:{default:e}}function hY(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var _R="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Gi.DNS=_R;var hR="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Gi.URL=hR;function yY(e,t,r){function n(i,s,o,a){if(typeof i=="string"&&(i=hY(i)),typeof s=="string"&&(s=(0,_Y.default)(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+i.length);if(c.set(s),c.set(i,s.length),c=r(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,o){a=a||0;for(let l=0;l<16;++l)o[a+l]=c[l];return o}return(0,pY.default)(c)}try{n.name=e}catch{}return n.DNS=_R,n.URL=hR,n}});var yR=d(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.default=void 0;var gY=vY(require("crypto"));function vY(e){return e&&e.__esModule?e:{default:e}}function SY(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),gY.default.createHash("md5").update(e).digest()}var wY=SY;id.default=wY});var vR=d(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.default=void 0;var EY=gR(Tw()),bY=gR(yR());function gR(e){return e&&e.__esModule?e:{default:e}}var AY=(0,EY.default)("v3",48,bY.default),TY=AY;sd.default=TY});var wR=d(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.default=void 0;var CY=SR(Sw()),xY=SR(tc());function SR(e){return e&&e.__esModule?e:{default:e}}function IY(e,t,r){e=e||{};let n=e.random||(e.rng||CY.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return(0,xY.default)(n)}var RY=IY;od.default=RY});var ER=d(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.default=void 0;var PY=OY(require("crypto"));function OY(e){return e&&e.__esModule?e:{default:e}}function NY(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),PY.default.createHash("sha1").update(e).digest()}var DY=NY;ad.default=DY});var AR=d(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.default=void 0;var qY=bR(Tw()),LY=bR(ER());function bR(e){return e&&e.__esModule?e:{default:e}}var MY=(0,qY.default)("v5",80,LY.default),jY=MY;cd.default=jY});var TR=d(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.default=void 0;var zY="00000000-0000-0000-0000-000000000000";ld.default=zY});var CR=d(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.default=void 0;var kY=FY(ec());function FY(e){return e&&e.__esModule?e:{default:e}}function UY(e){if(!(0,kY.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var BY=UY;ud.default=BY});var Cw=d(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});Object.defineProperty(yr,"v1",{enumerable:!0,get:function(){return GY.default}});Object.defineProperty(yr,"v3",{enumerable:!0,get:function(){return $Y.default}});Object.defineProperty(yr,"v4",{enumerable:!0,get:function(){return VY.default}});Object.defineProperty(yr,"v5",{enumerable:!0,get:function(){return HY.default}});Object.defineProperty(yr,"NIL",{enumerable:!0,get:function(){return KY.default}});Object.defineProperty(yr,"version",{enumerable:!0,get:function(){return WY.default}});Object.defineProperty(yr,"validate",{enumerable:!0,get:function(){return YY.default}});Object.defineProperty(yr,"stringify",{enumerable:!0,get:function(){return JY.default}});Object.defineProperty(yr,"parse",{enumerable:!0,get:function(){return QY.default}});var GY=An(mR()),$Y=An(vR()),VY=An(wR()),HY=An(AR()),KY=An(TR()),WY=An(CR()),YY=An(ec()),JY=An(tc()),QY=An(Aw());function An(e){return e&&e.__esModule?e:{default:e}}});var Z=d(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.serializeAws_json1_0UpdateTimeToLiveCommand=v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=v.serializeAws_json1_0UpdateTableCommand=v.serializeAws_json1_0UpdateItemCommand=v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=v.serializeAws_json1_0UpdateGlobalTableCommand=v.serializeAws_json1_0UpdateContributorInsightsCommand=v.serializeAws_json1_0UpdateContinuousBackupsCommand=v.serializeAws_json1_0UntagResourceCommand=v.serializeAws_json1_0TransactWriteItemsCommand=v.serializeAws_json1_0TransactGetItemsCommand=v.serializeAws_json1_0TagResourceCommand=v.serializeAws_json1_0ScanCommand=v.serializeAws_json1_0RestoreTableToPointInTimeCommand=v.serializeAws_json1_0RestoreTableFromBackupCommand=v.serializeAws_json1_0QueryCommand=v.serializeAws_json1_0PutItemCommand=v.serializeAws_json1_0ListTagsOfResourceCommand=v.serializeAws_json1_0ListTablesCommand=v.serializeAws_json1_0ListGlobalTablesCommand=v.serializeAws_json1_0ListExportsCommand=v.serializeAws_json1_0ListContributorInsightsCommand=v.serializeAws_json1_0ListBackupsCommand=v.serializeAws_json1_0GetItemCommand=v.serializeAws_json1_0ExportTableToPointInTimeCommand=v.serializeAws_json1_0ExecuteTransactionCommand=v.serializeAws_json1_0ExecuteStatementCommand=v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=v.serializeAws_json1_0DescribeTimeToLiveCommand=v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=v.serializeAws_json1_0DescribeTableCommand=v.serializeAws_json1_0DescribeLimitsCommand=v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=v.serializeAws_json1_0DescribeGlobalTableCommand=v.serializeAws_json1_0DescribeExportCommand=v.serializeAws_json1_0DescribeEndpointsCommand=v.serializeAws_json1_0DescribeContributorInsightsCommand=v.serializeAws_json1_0DescribeContinuousBackupsCommand=v.serializeAws_json1_0DescribeBackupCommand=v.serializeAws_json1_0DeleteTableCommand=v.serializeAws_json1_0DeleteItemCommand=v.serializeAws_json1_0DeleteBackupCommand=v.serializeAws_json1_0CreateTableCommand=v.serializeAws_json1_0CreateGlobalTableCommand=v.serializeAws_json1_0CreateBackupCommand=v.serializeAws_json1_0BatchWriteItemCommand=v.serializeAws_json1_0BatchGetItemCommand=v.serializeAws_json1_0BatchExecuteStatementCommand=void 0;v.deserializeAws_json1_0UpdateTimeToLiveCommand=v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=v.deserializeAws_json1_0UpdateTableCommand=v.deserializeAws_json1_0UpdateItemCommand=v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=v.deserializeAws_json1_0UpdateGlobalTableCommand=v.deserializeAws_json1_0UpdateContributorInsightsCommand=v.deserializeAws_json1_0UpdateContinuousBackupsCommand=v.deserializeAws_json1_0UntagResourceCommand=v.deserializeAws_json1_0TransactWriteItemsCommand=v.deserializeAws_json1_0TransactGetItemsCommand=v.deserializeAws_json1_0TagResourceCommand=v.deserializeAws_json1_0ScanCommand=v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=v.deserializeAws_json1_0RestoreTableFromBackupCommand=v.deserializeAws_json1_0QueryCommand=v.deserializeAws_json1_0PutItemCommand=v.deserializeAws_json1_0ListTagsOfResourceCommand=v.deserializeAws_json1_0ListTablesCommand=v.deserializeAws_json1_0ListGlobalTablesCommand=v.deserializeAws_json1_0ListExportsCommand=v.deserializeAws_json1_0ListContributorInsightsCommand=v.deserializeAws_json1_0ListBackupsCommand=v.deserializeAws_json1_0GetItemCommand=v.deserializeAws_json1_0ExportTableToPointInTimeCommand=v.deserializeAws_json1_0ExecuteTransactionCommand=v.deserializeAws_json1_0ExecuteStatementCommand=v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DescribeTimeToLiveCommand=v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=v.deserializeAws_json1_0DescribeTableCommand=v.deserializeAws_json1_0DescribeLimitsCommand=v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=v.deserializeAws_json1_0DescribeGlobalTableCommand=v.deserializeAws_json1_0DescribeExportCommand=v.deserializeAws_json1_0DescribeEndpointsCommand=v.deserializeAws_json1_0DescribeContributorInsightsCommand=v.deserializeAws_json1_0DescribeContinuousBackupsCommand=v.deserializeAws_json1_0DescribeBackupCommand=v.deserializeAws_json1_0DeleteTableCommand=v.deserializeAws_json1_0DeleteItemCommand=v.deserializeAws_json1_0DeleteBackupCommand=v.deserializeAws_json1_0CreateTableCommand=v.deserializeAws_json1_0CreateGlobalTableCommand=v.deserializeAws_json1_0CreateBackupCommand=v.deserializeAws_json1_0BatchWriteItemCommand=v.deserializeAws_json1_0BatchGetItemCommand=v.deserializeAws_json1_0BatchExecuteStatementCommand=void 0;var XY=Tt(),_=P(),xw=Cw(),te=$u(),we=J(),ZY=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},n;return n=JSON.stringify(eQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0BatchExecuteStatementCommand=ZY;var eJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},n;return n=JSON.stringify(tQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0BatchGetItemCommand=eJ;var tJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},n;return n=JSON.stringify(iQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0BatchWriteItemCommand=tJ;var rJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},n;return n=JSON.stringify(cQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0CreateBackupCommand=rJ;var nJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},n;return n=JSON.stringify(uQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0CreateGlobalTableCommand=nJ;var iJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},n;return n=JSON.stringify(mQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0CreateTableCommand=iJ;var sJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},n;return n=JSON.stringify(_Q(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DeleteBackupCommand=sJ;var oJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},n;return n=JSON.stringify(yQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DeleteItemCommand=oJ;var aJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},n;return n=JSON.stringify(wQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DeleteTableCommand=aJ;var cJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},n;return n=JSON.stringify(EQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeBackupCommand=cJ;var lJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},n;return n=JSON.stringify(bQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeContinuousBackupsCommand=lJ;var uJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},n;return n=JSON.stringify(AQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeContributorInsightsCommand=uJ;var dJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},n;return n=JSON.stringify(TQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeEndpointsCommand=dJ;var fJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},n;return n=JSON.stringify(CQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeExportCommand=fJ;var mJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},n;return n=JSON.stringify(xQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeGlobalTableCommand=mJ;var pJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},n;return n=JSON.stringify(IQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=pJ;var _J=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},n;return n=JSON.stringify(RQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=_J;var hJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},n;return n=JSON.stringify(PQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeLimitsCommand=hJ;var yJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},n;return n=JSON.stringify(OQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeTableCommand=yJ;var gJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},n;return n=JSON.stringify(NQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=gJ;var vJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},n;return n=JSON.stringify(DQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeTimeToLiveCommand=vJ;var SJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},n;return n=JSON.stringify(zR(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=SJ;var wJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},n;return n=JSON.stringify(zR(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=wJ;var EJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},n;return n=JSON.stringify(qQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0ExecuteStatementCommand=EJ;var bJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},n;return n=JSON.stringify(LQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0ExecuteTransactionCommand=bJ;var AJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},n;return n=JSON.stringify(jQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0ExportTableToPointInTimeCommand=AJ;var TJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},n;return n=JSON.stringify(kQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0GetItemCommand=TJ;var CJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},n;return n=JSON.stringify(XQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0ListBackupsCommand=CJ;var xJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},n;return n=JSON.stringify(ZQ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0ListContributorInsightsCommand=xJ;var IJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},n;return n=JSON.stringify(eX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0ListExportsCommand=IJ;var RJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},n;return n=JSON.stringify(tX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0ListGlobalTablesCommand=RJ;var PJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},n;return n=JSON.stringify(rX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0ListTablesCommand=PJ;var OJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},n;return n=JSON.stringify(nX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0ListTagsOfResourceCommand=OJ;var NJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},n;return n=JSON.stringify(mX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0PutItemCommand=NJ;var DJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},n;return n=JSON.stringify(_X(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0QueryCommand=DJ;var qJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},n;return n=JSON.stringify(OX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0RestoreTableFromBackupCommand=qJ;var LJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},n;return n=JSON.stringify(NX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0RestoreTableToPointInTimeCommand=LJ;var MJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},n;return n=JSON.stringify(DX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0ScanCommand=MJ;var jJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},n;return n=JSON.stringify(jX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0TagResourceCommand=jJ;var zJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},n;return n=JSON.stringify(UX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0TransactGetItemsCommand=zJ;var kJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},n;return n=JSON.stringify($X(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0TransactWriteItemsCommand=kJ;var FJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},n;return n=JSON.stringify(VX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0UntagResourceCommand=FJ;var UJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},n;return n=JSON.stringify(KX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateContinuousBackupsCommand=UJ;var BJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},n;return n=JSON.stringify(WX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateContributorInsightsCommand=BJ;var GJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},n;return n=JSON.stringify(JX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateGlobalTableCommand=GJ;var $J=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},n;return n=JSON.stringify(QX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=$J;var VJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},n;return n=JSON.stringify(XX(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateItemCommand=VJ;var HJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},n;return n=JSON.stringify(eZ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateTableCommand=HJ;var KJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},n;return n=JSON.stringify(tZ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=KJ;var WJ=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},n;return n=JSON.stringify(rZ(e,t)),re(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateTimeToLiveCommand=WJ;var YJ=async(e,t)=>{if(e.statusCode>=300)return JJ(e,t);let r=await O(e.body,t),n={};n=hZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0BatchExecuteStatementCommand=YJ;var JJ=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},QJ=async(e,t)=>{if(e.statusCode>=300)return XJ(e,t);let r=await O(e.body,t),n={};n=yZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0BatchGetItemCommand=QJ;var XJ=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},ZJ=async(e,t)=>{if(e.statusCode>=300)return e7(e,t);let r=await O(e.body,t),n={};n=EZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0BatchWriteItemCommand=ZJ;var e7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await rc(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},t7=async(e,t)=>{if(e.statusCode>=300)return r7(e,t);let r=await O(e.body,t),n={};n=NZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0CreateBackupCommand=t7;var r7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await Iw(r,t);case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await IR(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await Pw(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await $i(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},n7=async(e,t)=>{if(e.statusCode>=300)return i7(e,t);let r=await O(e.body,t),n={};n=DZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0CreateGlobalTableCommand=n7;var i7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":throw await $9(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await $i(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},s7=async(e,t)=>{if(e.statusCode>=300)return o7(e,t);let r=await O(e.body,t),n={};n=qZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0CreateTableCommand=s7;var o7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Nr(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},a7=async(e,t)=>{if(e.statusCode>=300)return c7(e,t);let r=await O(e.body,t),n={};n=LZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteBackupCommand=a7;var c7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await Iw(r,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await Rw(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},l7=async(e,t)=>{if(e.statusCode>=300)return u7(e,t);let r=await O(e.body,t),n={};n=MZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteItemCommand=l7;var u7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await dd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await rc(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await md(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},d7=async(e,t)=>{if(e.statusCode>=300)return f7(e,t);let r=await O(e.body,t),n={};n=zZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteTableCommand=d7;var f7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Nr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},m7=async(e,t)=>{if(e.statusCode>=300)return p7(e,t);let r=await O(e.body,t),n={};n=kZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeBackupCommand=m7;var p7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await Rw(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},_7=async(e,t)=>{if(e.statusCode>=300)return h7(e,t);let r=await O(e.body,t),n={};n=FZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContinuousBackupsCommand=_7;var h7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await $i(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},y7=async(e,t)=>{if(e.statusCode>=300)return g7(e,t);let r=await O(e.body,t),n={};n=UZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContributorInsightsCommand=y7;var g7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},v7=async(e,t)=>{if(e.statusCode>=300)return S7(e,t);let r=await O(e.body,t),n={};n=BZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeEndpointsCommand=v7;var S7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},w7=async(e,t)=>{if(e.statusCode>=300)return E7(e,t);let r=await O(e.body,t),n={};n=GZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeExportCommand=w7;var E7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":throw await G9(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},b7=async(e,t)=>{if(e.statusCode>=300)return A7(e,t);let r=await O(e.body,t),n={};n=$Z(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableCommand=b7;var A7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await fd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},T7=async(e,t)=>{if(e.statusCode>=300)return C7(e,t);let r=await O(e.body,t),n={};n=VZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=T7;var C7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await fd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},x7=async(e,t)=>{if(e.statusCode>=300)return I7(e,t);let r=await O(e.body,t),n={};n=HZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=x7;var I7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},R7=async(e,t)=>{if(e.statusCode>=300)return P7(e,t);let r=await O(e.body,t),n={};n=KZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeLimitsCommand=R7;var P7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},O7=async(e,t)=>{if(e.statusCode>=300)return N7(e,t);let r=await O(e.body,t),n={};n=WZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableCommand=O7;var N7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},D7=async(e,t)=>{if(e.statusCode>=300)return q7(e,t);let r=await O(e.body,t),n={};n=YZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=D7;var q7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},L7=async(e,t)=>{if(e.statusCode>=300)return M7(e,t);let r=await O(e.body,t),n={};n=JZ(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTimeToLiveCommand=L7;var M7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},j7=async(e,t)=>{if(e.statusCode>=300)return z7(e,t);let r=await O(e.body,t),n={};n=JR(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=j7;var z7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Nr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},k7=async(e,t)=>{if(e.statusCode>=300)return F7(e,t);let r=await O(e.body,t),n={};n=JR(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=k7;var F7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Nr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},U7=async(e,t)=>{if(e.statusCode>=300)return B7(e,t);let r=await O(e.body,t),n={};n=eee(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteStatementCommand=U7;var B7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await dd(r,t);case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":throw await U9(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await rc(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await md(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},G7=async(e,t)=>{if(e.statusCode>=300)return $7(e,t);let r=await O(e.body,t),n={};n=tee(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteTransactionCommand=G7;var $7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await RR(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await Ow(r,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await DR(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},V7=async(e,t)=>{if(e.statusCode>=300)return H7(e,t);let r=await O(e.body,t),n={};n=oee(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ExportTableToPointInTimeCommand=V7;var H7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":throw await B9(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":throw await H9(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await PR(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await $i(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},K7=async(e,t)=>{if(e.statusCode>=300)return W7(e,t);let r=await O(e.body,t),n={};n=lee(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0GetItemCommand=K7;var W7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},Y7=async(e,t)=>{if(e.statusCode>=300)return J7(e,t);let r=await O(e.body,t),n={};n=Mee(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListBackupsCommand=Y7;var J7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},Q7=async(e,t)=>{if(e.statusCode>=300)return X7(e,t);let r=await O(e.body,t),n={};n=jee(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListContributorInsightsCommand=Q7;var X7=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},Z7=async(e,t)=>{if(e.statusCode>=300)return e9(e,t);let r=await O(e.body,t),n={};n=zee(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListExportsCommand=Z7;var e9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},t9=async(e,t)=>{if(e.statusCode>=300)return r9(e,t);let r=await O(e.body,t),n={};n=kee(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListGlobalTablesCommand=t9;var r9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},n9=async(e,t)=>{if(e.statusCode>=300)return i9(e,t);let r=await O(e.body,t),n={};n=Fee(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListTablesCommand=n9;var i9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},s9=async(e,t)=>{if(e.statusCode>=300)return o9(e,t);let r=await O(e.body,t),n={};n=Uee(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListTagsOfResourceCommand=s9;var o9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},a9=async(e,t)=>{if(e.statusCode>=300)return c9(e,t);let r=await O(e.body,t),n={};n=ete(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0PutItemCommand=a9;var c9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await dd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await rc(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await md(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},l9=async(e,t)=>{if(e.statusCode>=300)return u9(e,t);let r=await O(e.body,t),n={};n=rte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0QueryCommand=l9;var u9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},d9=async(e,t)=>{if(e.statusCode>=300)return f9(e,t);let r=await O(e.body,t),n={};n=wte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableFromBackupCommand=d9;var f9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await Iw(r,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await Rw(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await NR(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await Pw(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},m9=async(e,t)=>{if(e.statusCode>=300)return p9(e,t);let r=await O(e.body,t),n={};n=Ete(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=m9;var p9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":throw await K9(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await PR(r,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await NR(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await Pw(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await $i(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},_9=async(e,t)=>{if(e.statusCode>=300)return h9(e,t);let r=await O(e.body,t),n={};n=bte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ScanCommand=_9;var h9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},y9=async(e,t)=>{if(e.statusCode>=300)return g9(e,t);await Uw(e.body,t);let r={$metadata:x(e)};return Promise.resolve(r)};v.deserializeAws_json1_0TagResourceCommand=y9;var g9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Nr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},v9=async(e,t)=>{if(e.statusCode>=300)return S9(e,t);let r=await O(e.body,t),n={};n=qte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0TransactGetItemsCommand=v9;var S9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await Ow(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},w9=async(e,t)=>{if(e.statusCode>=300)return E9(e,t);let r=await O(e.body,t),n={};n=zte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0TransactWriteItemsCommand=w9;var E9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await RR(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await Ow(r,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await DR(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},b9=async(e,t)=>{if(e.statusCode>=300)return A9(e,t);await Uw(e.body,t);let r={$metadata:x(e)};return Promise.resolve(r)};v.deserializeAws_json1_0UntagResourceCommand=b9;var A9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Nr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},T9=async(e,t)=>{if(e.statusCode>=300)return C9(e,t);let r=await O(e.body,t),n={};n=kte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContinuousBackupsCommand=T9;var C9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await IR(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await $i(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},x9=async(e,t)=>{if(e.statusCode>=300)return I9(e,t);let r=await O(e.body,t),n={};n=Fte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContributorInsightsCommand=x9;var I9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},R9=async(e,t)=>{if(e.statusCode>=300)return P9(e,t);let r=await O(e.body,t),n={};n=Ute(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableCommand=R9;var P9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await fd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":throw await W9(r,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await OR(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await $i(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},O9=async(e,t)=>{if(e.statusCode>=300)return N9(e,t);let r=await O(e.body,t),n={};n=Bte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=O9;var N9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await fd(r,t);case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":throw await V9(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await OR(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Nr(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},D9=async(e,t)=>{if(e.statusCode>=300)return q9(e,t);let r=await O(e.body,t),n={};n=Gte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateItemCommand=D9;var q9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await dd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await rc(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await ir(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ht(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await md(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},L9=async(e,t)=>{if(e.statusCode>=300)return M9(e,t);let r=await O(e.body,t),n={};n=$te(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableCommand=L9;var M9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Nr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},j9=async(e,t)=>{if(e.statusCode>=300)return z9(e,t);let r=await O(e.body,t),n={};n=Vte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=j9;var z9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Nr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},k9=async(e,t)=>{if(e.statusCode>=300)return F9(e,t);let r=await O(e.body,t),n={};n=Hte(r,t);let i={$metadata:x(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTimeToLiveCommand=k9;var F9=async(e,t)=>{let r={...e,body:await O(e.body,t)},n,i="UnknownError";switch(i=ne(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await me(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await et(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Nr(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Re(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:x(e)}),(0,_.decorateServiceException)(n,s)}},Iw=async(e,t)=>{let r=e.body,n=fZ(r,t),i=new we.BackupInUseException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},Rw=async(e,t)=>{let r=e.body,n=mZ(r,t),i=new we.BackupNotFoundException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},dd=async(e,t)=>{let r=e.body,n=xZ(r,t),i=new we.ConditionalCheckFailedException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},IR=async(e,t)=>{let r=e.body,n=IZ(r,t),i=new we.ContinuousBackupsUnavailableException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},U9=async(e,t)=>{let r=e.body,n=QZ(r,t),i=new we.DuplicateItemException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},B9=async(e,t)=>{let r=e.body,n=ree(r,t),i=new we.ExportConflictException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},G9=async(e,t)=>{let r=e.body,n=nee(r,t),i=new we.ExportNotFoundException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},$9=async(e,t)=>{let r=e.body,n=_ee(r,t),i=new we.GlobalTableAlreadyExistsException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},fd=async(e,t)=>{let r=e.body,n=yee(r,t),i=new we.GlobalTableNotFoundException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},RR=async(e,t)=>{let r=e.body,n=gee(r,t),i=new we.IdempotentParameterMismatchException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},V9=async(e,t)=>{let r=e.body,n=vee(r,t),i=new we.IndexNotFoundException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},se=async(e,t)=>{let r=e.body,n=See(r,t),i=new we.InternalServerError({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},me=async(e,t)=>{let r=e.body,n=wee(r,t),i=new we.InvalidEndpointException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},H9=async(e,t)=>{let r=e.body,n=Eee(r,t),i=new we.InvalidExportTimeException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},K9=async(e,t)=>{let r=e.body,n=bee(r,t),i=new we.InvalidRestoreTimeException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},rc=async(e,t)=>{let r=e.body,n=xee(r,t),i=new we.ItemCollectionSizeLimitExceededException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},et=async(e,t)=>{let r=e.body,n=qee(r,t),i=new we.LimitExceededException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},PR=async(e,t)=>{let r=e.body,n=Qee(r,t),i=new we.PointInTimeRecoveryUnavailableException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},ir=async(e,t)=>{let r=e.body,n=Xee(r,t),i=new we.ProvisionedThroughputExceededException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},W9=async(e,t)=>{let r=e.body,n=ite(r,t),i=new we.ReplicaAlreadyExistsException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},OR=async(e,t)=>{let r=e.body,n=_te(r,t),i=new we.ReplicaNotFoundException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},Ht=async(e,t)=>{let r=e.body,n=yte(r,t),i=new we.RequestLimitExceeded({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},Nr=async(e,t)=>{let r=e.body,n=gte(r,t),i=new we.ResourceInUseException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},Re=async(e,t)=>{let r=e.body,n=vte(r,t),i=new we.ResourceNotFoundException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},NR=async(e,t)=>{let r=e.body,n=xte(r,t),i=new we.TableAlreadyExistsException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},Pw=async(e,t)=>{let r=e.body,n=Ite(r,t),i=new we.TableInUseException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},$i=async(e,t)=>{let r=e.body,n=Pte(r,t),i=new we.TableNotFoundException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},Ow=async(e,t)=>{let r=e.body,n=Lte(r,t),i=new we.TransactionCanceledException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},md=async(e,t)=>{let r=e.body,n=Mte(r,t),i=new we.TransactionConflictException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},DR=async(e,t)=>{let r=e.body,n=jte(r,t),i=new we.TransactionInProgressException({$metadata:x(e),...n});return(0,_.decorateServiceException)(i,r)},Y9=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}}),qR=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:Y9(r,t)),pd=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),J9=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Q9(i,t)},{}),Tn=(e,t)=>we.AttributeValue.visit(e,{B:r=>({B:t.base64Encoder(r)}),BOOL:r=>({BOOL:r}),BS:r=>({BS:oQ(r,t)}),L:r=>({L:QQ(r,t)}),M:r=>({M:sX(r,t)}),N:r=>({N:r}),NS:r=>({NS:aX(r,t)}),NULL:r=>({NULL:r}),S:r=>({S:r}),SS:r=>({SS:qX(r,t)}),_:(r,n)=>({name:n})}),LR=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:Tn(r,t)),Q9=(e,t)=>({...e.Action!==void 0&&e.Action!==null&&{Action:e.Action},...e.Value!==void 0&&e.Value!==null&&{Value:Tn(e.Value,t)}}),X9=(e,t)=>({...e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName},...e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:Z9(e.TargetTrackingScalingPolicyConfiguration,t)}}),ii=(e,t)=>({...e.AutoScalingDisabled!==void 0&&e.AutoScalingDisabled!==null&&{AutoScalingDisabled:e.AutoScalingDisabled},...e.AutoScalingRoleArn!==void 0&&e.AutoScalingRoleArn!==null&&{AutoScalingRoleArn:e.AutoScalingRoleArn},...e.MaximumUnits!==void 0&&e.MaximumUnits!==null&&{MaximumUnits:e.MaximumUnits},...e.MinimumUnits!==void 0&&e.MinimumUnits!==null&&{MinimumUnits:e.MinimumUnits},...e.ScalingPolicyUpdate!==void 0&&e.ScalingPolicyUpdate!==null&&{ScalingPolicyUpdate:X9(e.ScalingPolicyUpdate,t)}}),Z9=(e,t)=>({...e.DisableScaleIn!==void 0&&e.DisableScaleIn!==null&&{DisableScaleIn:e.DisableScaleIn},...e.ScaleInCooldown!==void 0&&e.ScaleInCooldown!==null&&{ScaleInCooldown:e.ScaleInCooldown},...e.ScaleOutCooldown!==void 0&&e.ScaleOutCooldown!==null&&{ScaleOutCooldown:e.ScaleOutCooldown},...e.TargetValue!==void 0&&e.TargetValue!==null&&{TargetValue:(0,_.serializeFloat)(e.TargetValue)}}),eQ=(e,t)=>({...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.Statements!==void 0&&e.Statements!==null&&{Statements:uX(e.Statements,t)}}),tQ=(e,t)=>({...e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:rQ(e.RequestItems,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}}),rQ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:YQ(i,t)},{}),nQ=(e,t)=>({...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Lw(e.Parameters,t)},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),iQ=(e,t)=>({...e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:sQ(e.RequestItems,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}}),sQ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:iZ(i,t)},{}),oQ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:t.base64Encoder(r)),MR=(e,t)=>({...e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:LR(e.AttributeValueList,t)},...e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}}),aQ=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Cn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:gr(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),cQ=(e,t)=>({...e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),lQ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:_d(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:Mw(e.Projection,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Vi(e.ProvisionedThroughput,t)}}),uQ=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:AX(e.ReplicationGroup,t)}}),dQ=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),fQ=(e,t)=>({...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:kR(e.GlobalSecondaryIndexes,t)},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:jw(e.ProvisionedThroughputOverride,t)},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}}),mQ=(e,t)=>({...e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:qR(e.AttributeDefinitions,t)},...e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode},...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Dw(e.GlobalSecondaryIndexes,t)},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:_d(e.KeySchema,t)},...e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:qw(e.LocalSecondaryIndexes,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Vi(e.ProvisionedThroughput,t)},...e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:hd(e.SSESpecification,t)},...e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:FR(e.StreamSpecification,t)},...e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.Tags!==void 0&&e.Tags!==null&&{Tags:UR(e.Tags,t)}}),pQ=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Cn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:gr(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),_Q=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}}),hQ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}}),yQ=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator},...e.Expected!==void 0&&e.Expected!==null&&{Expected:Nw(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Cn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:gr(e.Key,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics},...e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),gQ=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),vQ=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),SQ=(e,t)=>({...e.Key!==void 0&&e.Key!==null&&{Key:gr(e.Key,t)}}),wQ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),EQ=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}}),bQ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),AQ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),TQ=(e,t)=>({}),CQ=(e,t)=>({...e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}}),xQ=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}}),IQ=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}}),RQ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),PQ=(e,t)=>({}),OQ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),NQ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),DQ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),qQ=(e,t)=>({...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Lw(e.Parameters,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),LQ=(e,t)=>{var r;return{ClientRequestToken:(r=e.ClientRequestToken)!==null&&r!==void 0?r:(0,xw.v4)(),...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:lX(e.TransactStatements,t)}}},Nw=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:MQ(i,t)},{}),MQ=(e,t)=>({...e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:LR(e.AttributeValueList,t)},...e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator},...e.Exists!==void 0&&e.Exists!==null&&{Exists:e.Exists},...e.Value!==void 0&&e.Value!==null&&{Value:Tn(e.Value,t)}}),jQ=(e,t)=>{var r;return{ClientToken:(r=e.ClientToken)!==null&&r!==void 0?r:(0,xw.v4)(),...e.ExportFormat!==void 0&&e.ExportFormat!==null&&{ExportFormat:e.ExportFormat},...e.ExportTime!==void 0&&e.ExportTime!==null&&{ExportTime:Math.round(e.ExportTime.getTime()/1e3)},...e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket},...e.S3BucketOwner!==void 0&&e.S3BucketOwner!==null&&{S3BucketOwner:e.S3BucketOwner},...e.S3Prefix!==void 0&&e.S3Prefix!==null&&{S3Prefix:e.S3Prefix},...e.S3SseAlgorithm!==void 0&&e.S3SseAlgorithm!==null&&{S3SseAlgorithm:e.S3SseAlgorithm},...e.S3SseKmsKeyId!==void 0&&e.S3SseKmsKeyId!==null&&{S3SseKmsKeyId:e.S3SseKmsKeyId},...e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn}}},sr=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:i},{}),Cn=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Tn(i,t)},{}),jR=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:MR(i,t)},{}),zQ=(e,t)=>({...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.Key!==void 0&&e.Key!==null&&{Key:gr(e.Key,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),kQ=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:pd(e.AttributesToGet,t)},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.Key!==void 0&&e.Key!==null&&{Key:gr(e.Key,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),FQ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:_d(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:Mw(e.Projection,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Vi(e.ProvisionedThroughput,t)}}),UQ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:ii(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}}),BQ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:UQ(r,t)),Dw=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:FQ(r,t)),GQ=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:lQ(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:hQ(e.Delete,t)},...e.Update!==void 0&&e.Update!==null&&{Update:YX(e.Update,t)}}),$Q=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:GQ(r,t)),VQ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:ii(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)},...e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}}),HQ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:VQ(r,t)),gr=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Tn(i,t)},{}),KQ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:MR(i,t)},{}),WQ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:gr(r,t)),YQ=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:pd(e.AttributesToGet,t)},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.Keys!==void 0&&e.Keys!==null&&{Keys:WQ(e.Keys,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}}),_d=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:JQ(r,t)),JQ=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}}),zR=(e,t)=>({...e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),QQ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:Tn(r,t)),XQ=(e,t)=>({...e.BackupType!==void 0&&e.BackupType!==null&&{BackupType:e.BackupType},...e.ExclusiveStartBackupArn!==void 0&&e.ExclusiveStartBackupArn!==null&&{ExclusiveStartBackupArn:e.ExclusiveStartBackupArn},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.TimeRangeLowerBound!==void 0&&e.TimeRangeLowerBound!==null&&{TimeRangeLowerBound:Math.round(e.TimeRangeLowerBound.getTime()/1e3)},...e.TimeRangeUpperBound!==void 0&&e.TimeRangeUpperBound!==null&&{TimeRangeUpperBound:Math.round(e.TimeRangeUpperBound.getTime()/1e3)}}),ZQ=(e,t)=>({...e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults},...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),eX=(e,t)=>({...e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults},...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn}}),tX=(e,t)=>({...e.ExclusiveStartGlobalTableName!==void 0&&e.ExclusiveStartGlobalTableName!==null&&{ExclusiveStartGlobalTableName:e.ExclusiveStartGlobalTableName},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),rX=(e,t)=>({...e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}}),nX=(e,t)=>({...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}}),iX=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:_d(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:Mw(e.Projection,t)}}),qw=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:iX(r,t)),sX=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Tn(i,t)},{}),oX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),aX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),cX=(e,t)=>({...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Lw(e.Parameters,t)},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),lX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:cX(r,t)),uX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:nQ(r,t)),dX=(e,t)=>({...e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}}),Lw=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:Tn(r,t)),Mw=(e,t)=>({...e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:oX(e.NonKeyAttributes,t)},...e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}}),Vi=(e,t)=>({...e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits},...e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}}),jw=(e,t)=>({...e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}}),fX=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Cn(e.ExpressionAttributeValues,t)},...e.Item!==void 0&&e.Item!==null&&{Item:zw(e.Item,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),mX=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator},...e.Expected!==void 0&&e.Expected!==null&&{Expected:Nw(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Cn(e.ExpressionAttributeValues,t)},...e.Item!==void 0&&e.Item!==null&&{Item:zw(e.Item,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics},...e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),zw=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Tn(i,t)},{}),pX=(e,t)=>({...e.Item!==void 0&&e.Item!==null&&{Item:zw(e.Item,t)}}),_X=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:pd(e.AttributesToGet,t)},...e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:gr(e.ExclusiveStartKey,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Cn(e.ExpressionAttributeValues,t)},...e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression},...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeyConditionExpression!==void 0&&e.KeyConditionExpression!==null&&{KeyConditionExpression:e.KeyConditionExpression},...e.KeyConditions!==void 0&&e.KeyConditions!==null&&{KeyConditions:KQ(e.KeyConditions,t)},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.QueryFilter!==void 0&&e.QueryFilter!==null&&{QueryFilter:jR(e.QueryFilter,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ScanIndexForward!==void 0&&e.ScanIndexForward!==null&&{ScanIndexForward:e.ScanIndexForward},...e.Select!==void 0&&e.Select!==null&&{Select:e.Select},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),hX=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),yX=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:wX(e.ReplicaGlobalSecondaryIndexUpdates,t)},...e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:ii(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}}),gX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:yX(r,t)),vX=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:jw(e.ProvisionedThroughputOverride,t)}}),SX=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:ii(e.ProvisionedReadCapacityAutoScalingUpdate,t)}}),wX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:SX(r,t)),kR=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:vX(r,t)),EX=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:ii(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)},...e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}}),bX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:EX(r,t)),AX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:hX(r,t)),TX=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:bX(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)},...e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:ii(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)},...e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits},...e.ReplicaTableClass!==void 0&&e.ReplicaTableClass!==null&&{ReplicaTableClass:e.ReplicaTableClass}}),CX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:TX(r,t)),xX=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:fQ(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:vQ(e.Delete,t)},...e.Update!==void 0&&e.Update!==null&&{Update:ZX(e.Update,t)}}),IX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:xX(r,t)),RX=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:dQ(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:gQ(e.Delete,t)}}),PX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:RX(r,t)),OX=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn},...e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride},...e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:Dw(e.GlobalSecondaryIndexOverride,t)},...e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:qw(e.LocalSecondaryIndexOverride,t)},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Vi(e.ProvisionedThroughputOverride,t)},...e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:hd(e.SSESpecificationOverride,t)},...e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}}),NX=(e,t)=>({...e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride},...e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:Dw(e.GlobalSecondaryIndexOverride,t)},...e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:qw(e.LocalSecondaryIndexOverride,t)},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Vi(e.ProvisionedThroughputOverride,t)},...e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null&&{RestoreDateTime:Math.round(e.RestoreDateTime.getTime()/1e3)},...e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:hd(e.SSESpecificationOverride,t)},...e.SourceTableArn!==void 0&&e.SourceTableArn!==null&&{SourceTableArn:e.SourceTableArn},...e.SourceTableName!==void 0&&e.SourceTableName!==null&&{SourceTableName:e.SourceTableName},...e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName},...e.UseLatestRestorableTime!==void 0&&e.UseLatestRestorableTime!==null&&{UseLatestRestorableTime:e.UseLatestRestorableTime}}),DX=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:pd(e.AttributesToGet,t)},...e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:gr(e.ExclusiveStartKey,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Cn(e.ExpressionAttributeValues,t)},...e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression},...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ScanFilter!==void 0&&e.ScanFilter!==null&&{ScanFilter:jR(e.ScanFilter,t)},...e.Segment!==void 0&&e.Segment!==null&&{Segment:e.Segment},...e.Select!==void 0&&e.Select!==null&&{Select:e.Select},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.TotalSegments!==void 0&&e.TotalSegments!==null&&{TotalSegments:e.TotalSegments}}),hd=(e,t)=>({...e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.SSEType!==void 0&&e.SSEType!==null&&{SSEType:e.SSEType}}),FR=(e,t)=>({...e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled},...e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}}),qX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),LX=(e,t)=>({...e.Key!==void 0&&e.Key!==null&&{Key:e.Key},...e.Value!==void 0&&e.Value!==null&&{Value:e.Value}}),MX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),UR=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:LX(r,t)),jX=(e,t)=>({...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn},...e.Tags!==void 0&&e.Tags!==null&&{Tags:UR(e.Tags,t)}}),zX=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}}),kX=(e,t)=>({...e.Get!==void 0&&e.Get!==null&&{Get:zQ(e.Get,t)}}),FX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:kX(r,t)),UX=(e,t)=>({...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:FX(e.TransactItems,t)}}),BX=(e,t)=>({...e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:aQ(e.ConditionCheck,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:pQ(e.Delete,t)},...e.Put!==void 0&&e.Put!==null&&{Put:fX(e.Put,t)},...e.Update!==void 0&&e.Update!==null&&{Update:HX(e.Update,t)}}),GX=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:BX(r,t)),$X=(e,t)=>{var r;return{ClientRequestToken:(r=e.ClientRequestToken)!==null&&r!==void 0?r:(0,xw.v4)(),...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics},...e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:GX(e.TransactItems,t)}}},VX=(e,t)=>({...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn},...e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:MX(e.TagKeys,t)}}),HX=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Cn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:gr(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}}),KX=(e,t)=>({...e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:dX(e.PointInTimeRecoverySpecification,t)},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),WX=(e,t)=>({...e.ContributorInsightsAction!==void 0&&e.ContributorInsightsAction!==null&&{ContributorInsightsAction:e.ContributorInsightsAction},...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),YX=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Vi(e.ProvisionedThroughput,t)}}),JX=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:PX(e.ReplicaUpdates,t)}}),QX=(e,t)=>({...e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode},...e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:HQ(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)},...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:ii(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)},...e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits},...e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:CX(e.ReplicaSettingsUpdate,t)}}),XX=(e,t)=>({...e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:J9(e.AttributeUpdates,t)},...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator},...e.Expected!==void 0&&e.Expected!==null&&{Expected:Nw(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:sr(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Cn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:gr(e.Key,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics},...e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}}),ZX=(e,t)=>({...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:kR(e.GlobalSecondaryIndexes,t)},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:jw(e.ProvisionedThroughputOverride,t)},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}}),eZ=(e,t)=>({...e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:qR(e.AttributeDefinitions,t)},...e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode},...e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:$Q(e.GlobalSecondaryIndexUpdates,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Vi(e.ProvisionedThroughput,t)},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:IX(e.ReplicaUpdates,t)},...e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:hd(e.SSESpecification,t)},...e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:FR(e.StreamSpecification,t)},...e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),tZ=(e,t)=>({...e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:BQ(e.GlobalSecondaryIndexUpdates,t)},...e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:ii(e.ProvisionedWriteCapacityAutoScalingUpdate,t)},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:gX(e.ReplicaUpdates,t)},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),rZ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:zX(e.TimeToLiveSpecification,t)}}),nZ=(e,t)=>({...e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:SQ(e.DeleteRequest,t)},...e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:pX(e.PutRequest,t)}}),iZ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:nZ(r,t)),sZ=(e,t)=>({ArchivalBackupArn:(0,_.expectString)(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.ArchivalDateTime))):void 0,ArchivalReason:(0,_.expectString)(e.ArchivalReason)}),oZ=(e,t)=>({AttributeName:(0,_.expectString)(e.AttributeName),AttributeType:(0,_.expectString)(e.AttributeType)}),aZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:oZ(n,t)),si=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:$s((0,_.expectUnion)(i),t)},{}),cZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),$s=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:(0,_.expectBoolean)(e.BOOL)!==void 0?{BOOL:(0,_.expectBoolean)(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:AZ(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:Lee(e.L,t)}:e.M!==void 0&&e.M!==null?{M:Hee(e.M,t)}:(0,_.expectString)(e.N)!==void 0?{N:(0,_.expectString)(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:Wee(e.NS,t)}:(0,_.expectBoolean)(e.NULL)!==void 0?{NULL:(0,_.expectBoolean)(e.NULL)}:(0,_.expectString)(e.S)!==void 0?{S:(0,_.expectString)(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:Cte(e.SS,t)}:{$unknown:Object.entries(e)[0]},lZ=(e,t)=>({PolicyName:(0,_.expectString)(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?dZ(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),uZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:lZ(n,t)),ni=(e,t)=>({AutoScalingDisabled:(0,_.expectBoolean)(e.AutoScalingDisabled),AutoScalingRoleArn:(0,_.expectString)(e.AutoScalingRoleArn),MaximumUnits:(0,_.expectLong)(e.MaximumUnits),MinimumUnits:(0,_.expectLong)(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?uZ(e.ScalingPolicies,t):void 0}),dZ=(e,t)=>({DisableScaleIn:(0,_.expectBoolean)(e.DisableScaleIn),ScaleInCooldown:(0,_.expectInt32)(e.ScaleInCooldown),ScaleOutCooldown:(0,_.expectInt32)(e.ScaleOutCooldown),TargetValue:(0,_.limitedParseDouble)(e.TargetValue)}),BR=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?GR(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?Ate(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?Tte(e.SourceTableFeatureDetails,t):void 0}),GR=(e,t)=>({BackupArn:(0,_.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,_.expectString)(e.BackupName),BackupSizeBytes:(0,_.expectLong)(e.BackupSizeBytes),BackupStatus:(0,_.expectString)(e.BackupStatus),BackupType:(0,_.expectString)(e.BackupType)}),fZ=(e,t)=>({message:(0,_.expectString)(e.message)}),mZ=(e,t)=>({message:(0,_.expectString)(e.message)}),pZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:_Z(n,t)),_Z=(e,t)=>({BackupArn:(0,_.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,_.expectString)(e.BackupName),BackupSizeBytes:(0,_.expectLong)(e.BackupSizeBytes),BackupStatus:(0,_.expectString)(e.BackupStatus),BackupType:(0,_.expectString)(e.BackupType),TableArn:(0,_.expectString)(e.TableArn),TableId:(0,_.expectString)(e.TableId),TableName:(0,_.expectString)(e.TableName)}),hZ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Vs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?Yee(e.Responses,t):void 0}),yZ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Vs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?vZ(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?gZ(e.UnprocessedKeys,t):void 0}),gZ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Pee(i,t)},{}),vZ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:gd(i,t)},{}),SZ=(e,t)=>({Code:(0,_.expectString)(e.Code),Message:(0,_.expectString)(e.Message)}),wZ=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?SZ(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?si(e.Item,t):void 0,TableName:(0,_.expectString)(e.TableName)}),EZ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Vs(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?WR(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?bZ(e.UnprocessedItems,t):void 0}),bZ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Wte(i,t)},{}),$R=(e,t)=>({BillingMode:(0,_.expectString)(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.LastUpdateToPayPerRequestDateTime))):void 0}),AZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),TZ=(e,t)=>({Code:(0,_.expectString)(e.Code),Item:e.Item!==void 0&&e.Item!==null?si(e.Item,t):void 0,Message:(0,_.expectString)(e.Message)}),CZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:TZ(n,t)),VR=(e,t)=>({CapacityUnits:(0,_.limitedParseDouble)(e.CapacityUnits),ReadCapacityUnits:(0,_.limitedParseDouble)(e.ReadCapacityUnits),WriteCapacityUnits:(0,_.limitedParseDouble)(e.WriteCapacityUnits)}),xZ=(e,t)=>({message:(0,_.expectString)(e.message)}),oi=(e,t)=>({CapacityUnits:(0,_.limitedParseDouble)(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?xR(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?xR(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:(0,_.limitedParseDouble)(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?VR(e.Table,t):void 0,TableName:(0,_.expectString)(e.TableName),WriteCapacityUnits:(0,_.limitedParseDouble)(e.WriteCapacityUnits)}),Vs=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:oi(n,t)),HR=(e,t)=>({ContinuousBackupsStatus:(0,_.expectString)(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?Jee(e.PointInTimeRecoveryDescription,t):void 0}),IZ=(e,t)=>({message:(0,_.expectString)(e.message)}),RZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),PZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:OZ(n,t)),OZ=(e,t)=>({ContributorInsightsStatus:(0,_.expectString)(e.ContributorInsightsStatus),IndexName:(0,_.expectString)(e.IndexName),TableName:(0,_.expectString)(e.TableName)}),NZ=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?GR(e.BackupDetails,t):void 0}),DZ=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?kw(e.GlobalTableDescription,t):void 0}),qZ=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?Ks(e.TableDescription,t):void 0}),LZ=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?BR(e.BackupDescription,t):void 0}),MZ=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?si(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?oi(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?yd(e.ItemCollectionMetrics,t):void 0}),jZ=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?nc(e.Key,t):void 0}),zZ=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?Ks(e.TableDescription,t):void 0}),kZ=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?BR(e.BackupDescription,t):void 0}),FZ=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?HR(e.ContinuousBackupsDescription,t):void 0}),UZ=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?RZ(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:(0,_.expectString)(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?cee(e.FailureException,t):void 0,IndexName:(0,_.expectString)(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.LastUpdateDateTime))):void 0,TableName:(0,_.expectString)(e.TableName)}),BZ=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?ZZ(e.Endpoints,t):void 0}),GZ=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?KR(e.ExportDescription,t):void 0}),$Z=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?kw(e.GlobalTableDescription,t):void 0}),VZ=(e,t)=>({GlobalTableName:(0,_.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?tP(e.ReplicaSettings,t):void 0}),HZ=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?Dee(e.KinesisDataStreamDestinations,t):void 0,TableName:(0,_.expectString)(e.TableName)}),KZ=(e,t)=>({AccountMaxReadCapacityUnits:(0,_.expectLong)(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:(0,_.expectLong)(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:(0,_.expectLong)(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:(0,_.expectLong)(e.TableMaxWriteCapacityUnits)}),WZ=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?Ks(e.Table,t):void 0}),YZ=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?iP(e.TableAutoScalingDescription,t):void 0}),JZ=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?sP(e.TimeToLiveDescription,t):void 0}),QZ=(e,t)=>({message:(0,_.expectString)(e.message)}),XZ=(e,t)=>({Address:(0,_.expectString)(e.Address),CachePeriodInMinutes:(0,_.expectLong)(e.CachePeriodInMinutes)}),ZZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:XZ(n,t)),eee=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?oi(e.ConsumedCapacity,t):void 0,Items:e.Items!==void 0&&e.Items!==null?gd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?nc(e.LastEvaluatedKey,t):void 0,NextToken:(0,_.expectString)(e.NextToken)}),tee=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Vs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?YR(e.Responses,t):void 0}),ree=(e,t)=>({message:(0,_.expectString)(e.message)}),KR=(e,t)=>({BilledSizeBytes:(0,_.expectLong)(e.BilledSizeBytes),ClientToken:(0,_.expectString)(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.EndTime))):void 0,ExportArn:(0,_.expectString)(e.ExportArn),ExportFormat:(0,_.expectString)(e.ExportFormat),ExportManifest:(0,_.expectString)(e.ExportManifest),ExportStatus:(0,_.expectString)(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.ExportTime))):void 0,FailureCode:(0,_.expectString)(e.FailureCode),FailureMessage:(0,_.expectString)(e.FailureMessage),ItemCount:(0,_.expectLong)(e.ItemCount),S3Bucket:(0,_.expectString)(e.S3Bucket),S3BucketOwner:(0,_.expectString)(e.S3BucketOwner),S3Prefix:(0,_.expectString)(e.S3Prefix),S3SseAlgorithm:(0,_.expectString)(e.S3SseAlgorithm),S3SseKmsKeyId:(0,_.expectString)(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.StartTime))):void 0,TableArn:(0,_.expectString)(e.TableArn),TableId:(0,_.expectString)(e.TableId)}),nee=(e,t)=>({message:(0,_.expectString)(e.message)}),iee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:see(n,t)),see=(e,t)=>({ExportArn:(0,_.expectString)(e.ExportArn),ExportStatus:(0,_.expectString)(e.ExportStatus)}),oee=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?KR(e.ExportDescription,t):void 0}),aee=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:(0,_.expectString)(i)},{}),cee=(e,t)=>({ExceptionDescription:(0,_.expectString)(e.ExceptionDescription),ExceptionName:(0,_.expectString)(e.ExceptionName)}),lee=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?oi(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?si(e.Item,t):void 0}),uee=(e,t)=>({Backfilling:(0,_.expectBoolean)(e.Backfilling),IndexArn:(0,_.expectString)(e.IndexArn),IndexName:(0,_.expectString)(e.IndexName),IndexSizeBytes:(0,_.expectLong)(e.IndexSizeBytes),IndexStatus:(0,_.expectString)(e.IndexStatus),ItemCount:(0,_.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Hs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?vd(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?XR(e.ProvisionedThroughput,t):void 0}),dee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:uee(n,t)),fee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:mee(n,t)),mee=(e,t)=>({IndexName:(0,_.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Hs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?vd(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?QR(e.ProvisionedThroughput,t):void 0}),pee=(e,t)=>({GlobalTableName:(0,_.expectString)(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?pte(e.ReplicationGroup,t):void 0}),_ee=(e,t)=>({message:(0,_.expectString)(e.message)}),kw=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.CreationDateTime))):void 0,GlobalTableArn:(0,_.expectString)(e.GlobalTableArn),GlobalTableName:(0,_.expectString)(e.GlobalTableName),GlobalTableStatus:(0,_.expectString)(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?eP(e.ReplicationGroup,t):void 0}),hee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:pee(n,t)),yee=(e,t)=>({message:(0,_.expectString)(e.message)}),gee=(e,t)=>({Message:(0,_.expectString)(e.Message)}),vee=(e,t)=>({message:(0,_.expectString)(e.message)}),See=(e,t)=>({message:(0,_.expectString)(e.message)}),wee=(e,t)=>({Message:(0,_.expectString)(e.Message)}),Eee=(e,t)=>({message:(0,_.expectString)(e.message)}),bee=(e,t)=>({message:(0,_.expectString)(e.message)}),Aee=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:$s((0,_.expectUnion)(i),t)},{}),yd=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?Aee(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?Cee(e.SizeEstimateRangeGB,t):void 0}),Tee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:yd(n,t)),WR=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Tee(i,t)},{}),Cee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.limitedParseDouble)(n)),xee=(e,t)=>({message:(0,_.expectString)(e.message)}),gd=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:si(n,t)),Iee=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?si(e.Item,t):void 0}),YR=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Iee(n,t)),nc=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:$s((0,_.expectUnion)(i),t)},{}),Ree=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:nc(n,t)),Pee=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?cZ(e.AttributesToGet,t):void 0,ConsistentRead:(0,_.expectBoolean)(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?aee(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?Ree(e.Keys,t):void 0,ProjectionExpression:(0,_.expectString)(e.ProjectionExpression)}),Hs=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Oee(n,t)),Oee=(e,t)=>({AttributeName:(0,_.expectString)(e.AttributeName),KeyType:(0,_.expectString)(e.KeyType)}),Nee=(e,t)=>({DestinationStatus:(0,_.expectString)(e.DestinationStatus),DestinationStatusDescription:(0,_.expectString)(e.DestinationStatusDescription),StreamArn:(0,_.expectString)(e.StreamArn)}),Dee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Nee(n,t)),JR=(e,t)=>({DestinationStatus:(0,_.expectString)(e.DestinationStatus),StreamArn:(0,_.expectString)(e.StreamArn),TableName:(0,_.expectString)(e.TableName)}),qee=(e,t)=>({message:(0,_.expectString)(e.message)}),Lee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:$s((0,_.expectUnion)(n),t)),Mee=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?pZ(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:(0,_.expectString)(e.LastEvaluatedBackupArn)}),jee=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?PZ(e.ContributorInsightsSummaries,t):void 0,NextToken:(0,_.expectString)(e.NextToken)}),zee=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?iee(e.ExportSummaries,t):void 0,NextToken:(0,_.expectString)(e.NextToken)}),kee=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?hee(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:(0,_.expectString)(e.LastEvaluatedGlobalTableName)}),Fee=(e,t)=>({LastEvaluatedTableName:(0,_.expectString)(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?Rte(e.TableNames,t):void 0}),Uee=(e,t)=>({NextToken:(0,_.expectString)(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?Nte(e.Tags,t):void 0}),Bee=(e,t)=>({IndexArn:(0,_.expectString)(e.IndexArn),IndexName:(0,_.expectString)(e.IndexName),IndexSizeBytes:(0,_.expectLong)(e.IndexSizeBytes),ItemCount:(0,_.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Hs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?vd(e.Projection,t):void 0}),Gee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Bee(n,t)),$ee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Vee(n,t)),Vee=(e,t)=>({IndexName:(0,_.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Hs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?vd(e.Projection,t):void 0}),Hee=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:$s((0,_.expectUnion)(i),t)},{}),Kee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),Wee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),Yee=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:wZ(n,t)),Jee=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.EarliestRestorableDateTime))):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.LatestRestorableDateTime))):void 0,PointInTimeRecoveryStatus:(0,_.expectString)(e.PointInTimeRecoveryStatus)}),Qee=(e,t)=>({message:(0,_.expectString)(e.message)}),vd=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?Kee(e.NonKeyAttributes,t):void 0,ProjectionType:(0,_.expectString)(e.ProjectionType)}),QR=(e,t)=>({ReadCapacityUnits:(0,_.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,_.expectLong)(e.WriteCapacityUnits)}),XR=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.LastDecreaseDateTime))):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.LastIncreaseDateTime))):void 0,NumberOfDecreasesToday:(0,_.expectLong)(e.NumberOfDecreasesToday),ReadCapacityUnits:(0,_.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,_.expectLong)(e.WriteCapacityUnits)}),Xee=(e,t)=>({message:(0,_.expectString)(e.message)}),ZR=(e,t)=>({ReadCapacityUnits:(0,_.expectLong)(e.ReadCapacityUnits)}),Zee=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:$s((0,_.expectUnion)(i),t)},{}),ete=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?si(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?oi(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?yd(e.ItemCollectionMetrics,t):void 0}),tte=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?Zee(e.Item,t):void 0}),rte=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?oi(e.ConsumedCapacity,t):void 0,Count:(0,_.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?gd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?nc(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,_.expectInt32)(e.ScannedCount)}),nte=(e,t)=>({RegionName:(0,_.expectString)(e.RegionName)}),ite=(e,t)=>({message:(0,_.expectString)(e.message)}),ste=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?lte(e.GlobalSecondaryIndexes,t):void 0,RegionName:(0,_.expectString)(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?ni(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?ni(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:(0,_.expectString)(e.ReplicaStatus)}),ote=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ste(n,t)),ate=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?dte(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:(0,_.expectString)(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?ZR(e.ProvisionedThroughputOverride,t):void 0,RegionName:(0,_.expectString)(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.ReplicaInaccessibleDateTime))):void 0,ReplicaStatus:(0,_.expectString)(e.ReplicaStatus),ReplicaStatusDescription:(0,_.expectString)(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:(0,_.expectString)(e.ReplicaStatusPercentProgress),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?Fw(e.ReplicaTableClassSummary,t):void 0}),eP=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ate(n,t)),cte=(e,t)=>({IndexName:(0,_.expectString)(e.IndexName),IndexStatus:(0,_.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?ni(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?ni(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),lte=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:cte(n,t)),ute=(e,t)=>({IndexName:(0,_.expectString)(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?ZR(e.ProvisionedThroughputOverride,t):void 0}),dte=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ute(n,t)),fte=(e,t)=>({IndexName:(0,_.expectString)(e.IndexName),IndexStatus:(0,_.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?ni(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:(0,_.expectLong)(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?ni(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:(0,_.expectLong)(e.ProvisionedWriteCapacityUnits)}),mte=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:fte(n,t)),pte=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:nte(n,t)),_te=(e,t)=>({message:(0,_.expectString)(e.message)}),hte=(e,t)=>({RegionName:(0,_.expectString)(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?$R(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?mte(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?ni(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:(0,_.expectLong)(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?ni(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:(0,_.expectLong)(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:(0,_.expectString)(e.ReplicaStatus),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?Fw(e.ReplicaTableClassSummary,t):void 0}),tP=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:hte(n,t)),yte=(e,t)=>({message:(0,_.expectString)(e.message)}),gte=(e,t)=>({message:(0,_.expectString)(e.message)}),vte=(e,t)=>({message:(0,_.expectString)(e.message)}),Ste=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.RestoreDateTime))):void 0,RestoreInProgress:(0,_.expectBoolean)(e.RestoreInProgress),SourceBackupArn:(0,_.expectString)(e.SourceBackupArn),SourceTableArn:(0,_.expectString)(e.SourceTableArn)}),wte=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?Ks(e.TableDescription,t):void 0}),Ete=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?Ks(e.TableDescription,t):void 0}),bte=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?oi(e.ConsumedCapacity,t):void 0,Count:(0,_.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?gd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?nc(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,_.expectInt32)(e.ScannedCount)}),xR=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:VR(i,t)},{}),Ate=(e,t)=>({BillingMode:(0,_.expectString)(e.BillingMode),ItemCount:(0,_.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Hs(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?QR(e.ProvisionedThroughput,t):void 0,TableArn:(0,_.expectString)(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.TableCreationDateTime))):void 0,TableId:(0,_.expectString)(e.TableId),TableName:(0,_.expectString)(e.TableName),TableSizeBytes:(0,_.expectLong)(e.TableSizeBytes)}),Tte=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?fee(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?$ee(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?rP(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?nP(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?sP(e.TimeToLiveDescription,t):void 0}),rP=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.InaccessibleEncryptionDateTime))):void 0,KMSMasterKeyArn:(0,_.expectString)(e.KMSMasterKeyArn),SSEType:(0,_.expectString)(e.SSEType),Status:(0,_.expectString)(e.Status)}),nP=(e,t)=>({StreamEnabled:(0,_.expectBoolean)(e.StreamEnabled),StreamViewType:(0,_.expectString)(e.StreamViewType)}),Cte=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),xte=(e,t)=>({message:(0,_.expectString)(e.message)}),iP=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?ote(e.Replicas,t):void 0,TableName:(0,_.expectString)(e.TableName),TableStatus:(0,_.expectString)(e.TableStatus)}),Fw=(e,t)=>({LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.LastUpdateDateTime))):void 0,TableClass:(0,_.expectString)(e.TableClass)}),Ks=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?sZ(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?aZ(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?$R(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,_.expectNonNull)((0,_.parseEpochTimestamp)((0,_.expectNumber)(e.CreationDateTime))):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?dee(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:(0,_.expectString)(e.GlobalTableVersion),ItemCount:(0,_.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Hs(e.KeySchema,t):void 0,LatestStreamArn:(0,_.expectString)(e.LatestStreamArn),LatestStreamLabel:(0,_.expectString)(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?Gee(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?XR(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?eP(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?Ste(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?rP(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?nP(e.StreamSpecification,t):void 0,TableArn:(0,_.expectString)(e.TableArn),TableClassSummary:e.TableClassSummary!==void 0&&e.TableClassSummary!==null?Fw(e.TableClassSummary,t):void 0,TableId:(0,_.expectString)(e.TableId),TableName:(0,_.expectString)(e.TableName),TableSizeBytes:(0,_.expectLong)(e.TableSizeBytes),TableStatus:(0,_.expectString)(e.TableStatus)}),Ite=(e,t)=>({message:(0,_.expectString)(e.message)}),Rte=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),Pte=(e,t)=>({message:(0,_.expectString)(e.message)}),Ote=(e,t)=>({Key:(0,_.expectString)(e.Key),Value:(0,_.expectString)(e.Value)}),Nte=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Ote(n,t)),sP=(e,t)=>({AttributeName:(0,_.expectString)(e.AttributeName),TimeToLiveStatus:(0,_.expectString)(e.TimeToLiveStatus)}),Dte=(e,t)=>({AttributeName:(0,_.expectString)(e.AttributeName),Enabled:(0,_.expectBoolean)(e.Enabled)}),qte=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Vs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?YR(e.Responses,t):void 0}),Lte=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?CZ(e.CancellationReasons,t):void 0,Message:(0,_.expectString)(e.Message)}),Mte=(e,t)=>({message:(0,_.expectString)(e.message)}),jte=(e,t)=>({Message:(0,_.expectString)(e.Message)}),zte=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Vs(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?WR(e.ItemCollectionMetrics,t):void 0}),kte=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?HR(e.ContinuousBackupsDescription,t):void 0}),Fte=(e,t)=>({ContributorInsightsStatus:(0,_.expectString)(e.ContributorInsightsStatus),IndexName:(0,_.expectString)(e.IndexName),TableName:(0,_.expectString)(e.TableName)}),Ute=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?kw(e.GlobalTableDescription,t):void 0}),Bte=(e,t)=>({GlobalTableName:(0,_.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?tP(e.ReplicaSettings,t):void 0}),Gte=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?si(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?oi(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?yd(e.ItemCollectionMetrics,t):void 0}),$te=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?Ks(e.TableDescription,t):void 0}),Vte=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?iP(e.TableAutoScalingDescription,t):void 0}),Hte=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?Dte(e.TimeToLiveSpecification,t):void 0}),Kte=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?jZ(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?tte(e.PutRequest,t):void 0}),Wte=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Kte(n,t)),x=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},Uw=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Yte=(e,t)=>Uw(e,t).then(r=>t.utf8Encoder(r)),re=async(e,t,r,n,i)=>{let{hostname:s,protocol:o="https",port:a,path:c}=await e.endpoint(),l={protocol:o,hostname:s,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+r:c+r,headers:t};return n!==void 0&&(l.hostname=n),i!==void 0&&(l.body=i),new XY.HttpRequest(l)},O=(e,t)=>Yte(e,t).then(r=>r.length?JSON.parse(r):{}),ne=(e,t)=>{let r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var Gw=d(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.BatchExecuteStatementCommand=void 0;var Jte=U(),Qte=P(),oP=J(),aP=Z(),Bw=class extends Qte.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Jte.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:oP.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:oP.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,aP.serializeAws_json1_0BatchExecuteStatementCommand)(t,r)}deserialize(t,r){return(0,aP.deserializeAws_json1_0BatchExecuteStatementCommand)(t,r)}};Sd.BatchExecuteStatementCommand=Bw});var Vw=d(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.BatchGetItemCommand=void 0;var Xte=U(),Zte=P(),cP=J(),lP=Z(),$w=class extends Zte.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Xte.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:cP.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:cP.BatchGetItemOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,lP.serializeAws_json1_0BatchGetItemCommand)(t,r)}deserialize(t,r){return(0,lP.deserializeAws_json1_0BatchGetItemCommand)(t,r)}};wd.BatchGetItemCommand=$w});var Kw=d(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.BatchWriteItemCommand=void 0;var ere=U(),tre=P(),uP=J(),dP=Z(),Hw=class extends tre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ere.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:uP.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:uP.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,dP.serializeAws_json1_0BatchWriteItemCommand)(t,r)}deserialize(t,r){return(0,dP.deserializeAws_json1_0BatchWriteItemCommand)(t,r)}};Ed.BatchWriteItemCommand=Hw});var Yw=d(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.CreateBackupCommand=void 0;var rre=U(),nre=P(),fP=J(),mP=Z(),Ww=class extends nre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,rre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:fP.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:fP.CreateBackupOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,mP.serializeAws_json1_0CreateBackupCommand)(t,r)}deserialize(t,r){return(0,mP.deserializeAws_json1_0CreateBackupCommand)(t,r)}};bd.CreateBackupCommand=Ww});var Qw=d(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.CreateGlobalTableCommand=void 0;var ire=U(),sre=P(),pP=J(),_P=Z(),Jw=class extends sre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ire.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:pP.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:pP.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,_P.serializeAws_json1_0CreateGlobalTableCommand)(t,r)}deserialize(t,r){return(0,_P.deserializeAws_json1_0CreateGlobalTableCommand)(t,r)}};Ad.CreateGlobalTableCommand=Jw});var Zw=d(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.CreateTableCommand=void 0;var ore=U(),are=P(),hP=J(),yP=Z(),Xw=class extends are.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ore.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:hP.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:hP.CreateTableOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,yP.serializeAws_json1_0CreateTableCommand)(t,r)}deserialize(t,r){return(0,yP.deserializeAws_json1_0CreateTableCommand)(t,r)}};Td.CreateTableCommand=Xw});var t0=d(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.DeleteBackupCommand=void 0;var cre=U(),lre=P(),gP=J(),vP=Z(),e0=class extends lre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,cre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:gP.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:gP.DeleteBackupOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,vP.serializeAws_json1_0DeleteBackupCommand)(t,r)}deserialize(t,r){return(0,vP.deserializeAws_json1_0DeleteBackupCommand)(t,r)}};Cd.DeleteBackupCommand=e0});var n0=d(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.DeleteItemCommand=void 0;var ure=U(),dre=P(),SP=J(),wP=Z(),r0=class extends dre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ure.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:SP.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:SP.DeleteItemOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,wP.serializeAws_json1_0DeleteItemCommand)(t,r)}deserialize(t,r){return(0,wP.deserializeAws_json1_0DeleteItemCommand)(t,r)}};xd.DeleteItemCommand=r0});var s0=d(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.DeleteTableCommand=void 0;var fre=U(),mre=P(),EP=J(),bP=Z(),i0=class extends mre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,fre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:EP.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:EP.DeleteTableOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,bP.serializeAws_json1_0DeleteTableCommand)(t,r)}deserialize(t,r){return(0,bP.deserializeAws_json1_0DeleteTableCommand)(t,r)}};Id.DeleteTableCommand=i0});var a0=d(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.DescribeBackupCommand=void 0;var pre=U(),_re=P(),AP=J(),TP=Z(),o0=class extends _re.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,pre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:AP.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:AP.DescribeBackupOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,TP.serializeAws_json1_0DescribeBackupCommand)(t,r)}deserialize(t,r){return(0,TP.deserializeAws_json1_0DescribeBackupCommand)(t,r)}};Rd.DescribeBackupCommand=o0});var l0=d(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.DescribeContinuousBackupsCommand=void 0;var hre=U(),yre=P(),CP=J(),xP=Z(),c0=class extends yre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,hre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:CP.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:CP.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,xP.serializeAws_json1_0DescribeContinuousBackupsCommand)(t,r)}deserialize(t,r){return(0,xP.deserializeAws_json1_0DescribeContinuousBackupsCommand)(t,r)}};Pd.DescribeContinuousBackupsCommand=c0});var d0=d(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.DescribeContributorInsightsCommand=void 0;var gre=U(),vre=P(),IP=J(),RP=Z(),u0=class extends vre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,gre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:IP.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:IP.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,RP.serializeAws_json1_0DescribeContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,RP.deserializeAws_json1_0DescribeContributorInsightsCommand)(t,r)}};Od.DescribeContributorInsightsCommand=u0});var Dd=d(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.DescribeEndpointsCommand=void 0;var Sre=U(),wre=P(),PP=J(),OP=Z(),f0=class extends wre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Sre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:PP.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:PP.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,OP.serializeAws_json1_0DescribeEndpointsCommand)(t,r)}deserialize(t,r){return(0,OP.deserializeAws_json1_0DescribeEndpointsCommand)(t,r)}};Nd.DescribeEndpointsCommand=f0});var p0=d(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.DescribeExportCommand=void 0;var Ere=U(),bre=P(),NP=J(),DP=Z(),m0=class extends bre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Ere.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:NP.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:NP.DescribeExportOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,DP.serializeAws_json1_0DescribeExportCommand)(t,r)}deserialize(t,r){return(0,DP.deserializeAws_json1_0DescribeExportCommand)(t,r)}};qd.DescribeExportCommand=m0});var h0=d(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.DescribeGlobalTableCommand=void 0;var Are=U(),Tre=P(),qP=J(),LP=Z(),_0=class extends Tre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Are.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:qP.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:qP.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,LP.serializeAws_json1_0DescribeGlobalTableCommand)(t,r)}deserialize(t,r){return(0,LP.deserializeAws_json1_0DescribeGlobalTableCommand)(t,r)}};Ld.DescribeGlobalTableCommand=_0});var g0=d(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.DescribeGlobalTableSettingsCommand=void 0;var Cre=U(),xre=P(),MP=J(),jP=Z(),y0=class extends xre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Cre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:MP.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:MP.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,jP.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,r)}deserialize(t,r){return(0,jP.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,r)}};Md.DescribeGlobalTableSettingsCommand=y0});var S0=d(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.DescribeKinesisStreamingDestinationCommand=void 0;var Ire=U(),Rre=P(),zP=J(),kP=Z(),v0=class extends Rre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Ire.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:zP.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:zP.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,kP.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,kP.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,r)}};jd.DescribeKinesisStreamingDestinationCommand=v0});var E0=d(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.DescribeLimitsCommand=void 0;var Pre=U(),Ore=P(),FP=J(),UP=Z(),w0=class extends Ore.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Pre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:FP.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:FP.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,UP.serializeAws_json1_0DescribeLimitsCommand)(t,r)}deserialize(t,r){return(0,UP.deserializeAws_json1_0DescribeLimitsCommand)(t,r)}};zd.DescribeLimitsCommand=w0});var ic=d(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.DescribeTableCommand=void 0;var Nre=U(),Dre=P(),BP=J(),GP=Z(),b0=class extends Dre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Nre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:BP.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:BP.DescribeTableOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,GP.serializeAws_json1_0DescribeTableCommand)(t,r)}deserialize(t,r){return(0,GP.deserializeAws_json1_0DescribeTableCommand)(t,r)}};kd.DescribeTableCommand=b0});var T0=d(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.DescribeTableReplicaAutoScalingCommand=void 0;var qre=U(),Lre=P(),$P=J(),VP=Z(),A0=class extends Lre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,qre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:$P.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:$P.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,VP.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,r)}deserialize(t,r){return(0,VP.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,r)}};Fd.DescribeTableReplicaAutoScalingCommand=A0});var x0=d(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.DescribeTimeToLiveCommand=void 0;var Mre=U(),jre=P(),HP=J(),KP=Z(),C0=class extends jre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Mre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:HP.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:HP.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,KP.serializeAws_json1_0DescribeTimeToLiveCommand)(t,r)}deserialize(t,r){return(0,KP.deserializeAws_json1_0DescribeTimeToLiveCommand)(t,r)}};Ud.DescribeTimeToLiveCommand=C0});var R0=d(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.DisableKinesisStreamingDestinationCommand=void 0;var zre=U(),kre=P(),WP=J(),YP=Z(),I0=class extends kre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,zre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:WP.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:WP.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,YP.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,YP.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,r)}};Bd.DisableKinesisStreamingDestinationCommand=I0});var O0=d(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.EnableKinesisStreamingDestinationCommand=void 0;var Fre=U(),Ure=P(),JP=J(),QP=Z(),P0=class extends Ure.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Fre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:JP.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:JP.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,QP.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,QP.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,r)}};Gd.EnableKinesisStreamingDestinationCommand=P0});var D0=d($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.ExecuteStatementCommand=void 0;var Bre=U(),Gre=P(),XP=J(),ZP=Z(),N0=class extends Gre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Bre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:XP.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:XP.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,ZP.serializeAws_json1_0ExecuteStatementCommand)(t,r)}deserialize(t,r){return(0,ZP.deserializeAws_json1_0ExecuteStatementCommand)(t,r)}};$d.ExecuteStatementCommand=N0});var L0=d(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.ExecuteTransactionCommand=void 0;var $re=U(),Vre=P(),eO=J(),tO=Z(),q0=class extends Vre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,$re.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:eO.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:eO.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,tO.serializeAws_json1_0ExecuteTransactionCommand)(t,r)}deserialize(t,r){return(0,tO.deserializeAws_json1_0ExecuteTransactionCommand)(t,r)}};Vd.ExecuteTransactionCommand=q0});var j0=d(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.ExportTableToPointInTimeCommand=void 0;var Hre=U(),Kre=P(),rO=J(),nO=Z(),M0=class extends Kre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Hre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:rO.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:rO.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,nO.serializeAws_json1_0ExportTableToPointInTimeCommand)(t,r)}deserialize(t,r){return(0,nO.deserializeAws_json1_0ExportTableToPointInTimeCommand)(t,r)}};Hd.ExportTableToPointInTimeCommand=M0});var k0=d(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.GetItemCommand=void 0;var Wre=U(),Yre=P(),iO=J(),sO=Z(),z0=class extends Yre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Wre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:iO.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:iO.GetItemOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,sO.serializeAws_json1_0GetItemCommand)(t,r)}deserialize(t,r){return(0,sO.deserializeAws_json1_0GetItemCommand)(t,r)}};Kd.GetItemCommand=z0});var U0=d(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.ListBackupsCommand=void 0;var Jre=U(),Qre=P(),oO=J(),aO=Z(),F0=class extends Qre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Jre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:oO.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:oO.ListBackupsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,aO.serializeAws_json1_0ListBackupsCommand)(t,r)}deserialize(t,r){return(0,aO.deserializeAws_json1_0ListBackupsCommand)(t,r)}};Wd.ListBackupsCommand=F0});var Jd=d(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.ListContributorInsightsCommand=void 0;var Xre=U(),Zre=P(),cO=J(),lO=Z(),B0=class extends Zre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Xre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:cO.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:cO.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,lO.serializeAws_json1_0ListContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,lO.deserializeAws_json1_0ListContributorInsightsCommand)(t,r)}};Yd.ListContributorInsightsCommand=B0});var Xd=d(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.ListExportsCommand=void 0;var ene=U(),tne=P(),uO=J(),dO=Z(),G0=class extends tne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ene.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:uO.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:uO.ListExportsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,dO.serializeAws_json1_0ListExportsCommand)(t,r)}deserialize(t,r){return(0,dO.deserializeAws_json1_0ListExportsCommand)(t,r)}};Qd.ListExportsCommand=G0});var V0=d(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.ListGlobalTablesCommand=void 0;var rne=U(),nne=P(),fO=J(),mO=Z(),$0=class extends nne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,rne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:fO.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:fO.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,mO.serializeAws_json1_0ListGlobalTablesCommand)(t,r)}deserialize(t,r){return(0,mO.deserializeAws_json1_0ListGlobalTablesCommand)(t,r)}};Zd.ListGlobalTablesCommand=$0});var tf=d(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.ListTablesCommand=void 0;var ine=U(),sne=P(),pO=J(),_O=Z(),H0=class extends sne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ine.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:pO.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:pO.ListTablesOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,_O.serializeAws_json1_0ListTablesCommand)(t,r)}deserialize(t,r){return(0,_O.deserializeAws_json1_0ListTablesCommand)(t,r)}};ef.ListTablesCommand=H0});var W0=d(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.ListTagsOfResourceCommand=void 0;var one=U(),ane=P(),hO=J(),yO=Z(),K0=class extends ane.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,one.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:hO.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:hO.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,yO.serializeAws_json1_0ListTagsOfResourceCommand)(t,r)}deserialize(t,r){return(0,yO.deserializeAws_json1_0ListTagsOfResourceCommand)(t,r)}};rf.ListTagsOfResourceCommand=K0});var J0=d(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.PutItemCommand=void 0;var cne=U(),lne=P(),gO=J(),vO=Z(),Y0=class extends lne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,cne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:gO.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:gO.PutItemOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,vO.serializeAws_json1_0PutItemCommand)(t,r)}deserialize(t,r){return(0,vO.deserializeAws_json1_0PutItemCommand)(t,r)}};nf.PutItemCommand=Y0});var of=d(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.QueryCommand=void 0;var une=U(),dne=P(),SO=J(),wO=Z(),Q0=class extends dne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,une.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:SO.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:SO.QueryOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,wO.serializeAws_json1_0QueryCommand)(t,r)}deserialize(t,r){return(0,wO.deserializeAws_json1_0QueryCommand)(t,r)}};sf.QueryCommand=Q0});var Z0=d(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.RestoreTableFromBackupCommand=void 0;var fne=U(),mne=P(),EO=J(),bO=Z(),X0=class extends mne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,fne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:EO.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:EO.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,bO.serializeAws_json1_0RestoreTableFromBackupCommand)(t,r)}deserialize(t,r){return(0,bO.deserializeAws_json1_0RestoreTableFromBackupCommand)(t,r)}};af.RestoreTableFromBackupCommand=X0});var tE=d(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.RestoreTableToPointInTimeCommand=void 0;var pne=U(),_ne=P(),AO=J(),TO=Z(),eE=class extends _ne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,pne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:AO.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:AO.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,TO.serializeAws_json1_0RestoreTableToPointInTimeCommand)(t,r)}deserialize(t,r){return(0,TO.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(t,r)}};cf.RestoreTableToPointInTimeCommand=eE});var uf=d(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.ScanCommand=void 0;var hne=U(),yne=P(),CO=J(),xO=Z(),rE=class extends yne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,hne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:CO.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:CO.ScanOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,xO.serializeAws_json1_0ScanCommand)(t,r)}deserialize(t,r){return(0,xO.deserializeAws_json1_0ScanCommand)(t,r)}};lf.ScanCommand=rE});var iE=d(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.TagResourceCommand=void 0;var gne=U(),vne=P(),Sne=J(),IO=Z(),nE=class extends vne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,gne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:Sne.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,IO.serializeAws_json1_0TagResourceCommand)(t,r)}deserialize(t,r){return(0,IO.deserializeAws_json1_0TagResourceCommand)(t,r)}};df.TagResourceCommand=nE});var oE=d(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.TransactGetItemsCommand=void 0;var wne=U(),Ene=P(),RO=J(),PO=Z(),sE=class extends Ene.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,wne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:RO.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:RO.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,PO.serializeAws_json1_0TransactGetItemsCommand)(t,r)}deserialize(t,r){return(0,PO.deserializeAws_json1_0TransactGetItemsCommand)(t,r)}};ff.TransactGetItemsCommand=sE});var cE=d(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.TransactWriteItemsCommand=void 0;var bne=U(),Ane=P(),OO=J(),NO=Z(),aE=class extends Ane.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,bne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:OO.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:OO.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,NO.serializeAws_json1_0TransactWriteItemsCommand)(t,r)}deserialize(t,r){return(0,NO.deserializeAws_json1_0TransactWriteItemsCommand)(t,r)}};mf.TransactWriteItemsCommand=aE});var uE=d(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.UntagResourceCommand=void 0;var Tne=U(),Cne=P(),xne=J(),DO=Z(),lE=class extends Cne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Tne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:xne.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,DO.serializeAws_json1_0UntagResourceCommand)(t,r)}deserialize(t,r){return(0,DO.deserializeAws_json1_0UntagResourceCommand)(t,r)}};pf.UntagResourceCommand=lE});var fE=d(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.UpdateContinuousBackupsCommand=void 0;var Ine=U(),Rne=P(),qO=J(),LO=Z(),dE=class extends Rne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Ine.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:qO.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:qO.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,LO.serializeAws_json1_0UpdateContinuousBackupsCommand)(t,r)}deserialize(t,r){return(0,LO.deserializeAws_json1_0UpdateContinuousBackupsCommand)(t,r)}};_f.UpdateContinuousBackupsCommand=dE});var pE=d(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.UpdateContributorInsightsCommand=void 0;var Pne=U(),One=P(),MO=J(),jO=Z(),mE=class extends One.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Pne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:MO.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:MO.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,jO.serializeAws_json1_0UpdateContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,jO.deserializeAws_json1_0UpdateContributorInsightsCommand)(t,r)}};hf.UpdateContributorInsightsCommand=mE});var hE=d(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.UpdateGlobalTableCommand=void 0;var Nne=U(),Dne=P(),zO=J(),kO=Z(),_E=class extends Dne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Nne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:zO.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:zO.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,kO.serializeAws_json1_0UpdateGlobalTableCommand)(t,r)}deserialize(t,r){return(0,kO.deserializeAws_json1_0UpdateGlobalTableCommand)(t,r)}};yf.UpdateGlobalTableCommand=_E});var gE=d(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.UpdateGlobalTableSettingsCommand=void 0;var qne=U(),Lne=P(),FO=J(),UO=Z(),yE=class extends Lne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,qne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:FO.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:FO.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,UO.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,r)}deserialize(t,r){return(0,UO.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,r)}};gf.UpdateGlobalTableSettingsCommand=yE});var SE=d(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.UpdateItemCommand=void 0;var Mne=U(),jne=P(),BO=J(),GO=Z(),vE=class extends jne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Mne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:BO.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:BO.UpdateItemOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,GO.serializeAws_json1_0UpdateItemCommand)(t,r)}deserialize(t,r){return(0,GO.deserializeAws_json1_0UpdateItemCommand)(t,r)}};vf.UpdateItemCommand=vE});var EE=d(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.UpdateTableCommand=void 0;var zne=U(),kne=P(),$O=J(),VO=Z(),wE=class extends kne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,zne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:$O.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:$O.UpdateTableOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,VO.serializeAws_json1_0UpdateTableCommand)(t,r)}deserialize(t,r){return(0,VO.deserializeAws_json1_0UpdateTableCommand)(t,r)}};Sf.UpdateTableCommand=wE});var AE=d(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.UpdateTableReplicaAutoScalingCommand=void 0;var Fne=U(),Une=P(),HO=J(),KO=Z(),bE=class extends Une.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Fne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:HO.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:HO.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,KO.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,r)}deserialize(t,r){return(0,KO.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,r)}};wf.UpdateTableReplicaAutoScalingCommand=bE});var CE=d(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.UpdateTimeToLiveCommand=void 0;var Bne=U(),Gne=P(),WO=J(),YO=Z(),TE=class extends Gne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Bne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:WO.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:WO.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,YO.serializeAws_json1_0UpdateTimeToLiveCommand)(t,r)}deserialize(t,r){return(0,YO.deserializeAws_json1_0UpdateTimeToLiveCommand)(t,r)}};Ef.UpdateTimeToLiveCommand=TE});var JO=d(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.booleanSelector=Hi.SelectorType=void 0;var $ne;(function(e){e.ENV="env",e.CONFIG="shared config entry"})($ne=Hi.SelectorType||(Hi.SelectorType={}));var Vne=(e,t,r)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}};Hi.booleanSelector=Vne});var IE=d(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});var Hne=M();Hne.__exportStar(JO(),xE)});var QO=d(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=or.DEFAULT_USE_DUALSTACK_ENDPOINT=or.CONFIG_USE_DUALSTACK_ENDPOINT=or.ENV_USE_DUALSTACK_ENDPOINT=void 0;var bf=IE();or.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";or.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";or.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;or.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,bf.booleanSelector)(e,or.ENV_USE_DUALSTACK_ENDPOINT,bf.SelectorType.ENV),configFileSelector:e=>(0,bf.booleanSelector)(e,or.CONFIG_USE_DUALSTACK_ENDPOINT,bf.SelectorType.CONFIG),default:!1}});var XO=d(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=ar.DEFAULT_USE_FIPS_ENDPOINT=ar.CONFIG_USE_FIPS_ENDPOINT=ar.ENV_USE_FIPS_ENDPOINT=void 0;var Af=IE();ar.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";ar.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";ar.DEFAULT_USE_FIPS_ENDPOINT=!1;ar.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Af.booleanSelector)(e,ar.ENV_USE_FIPS_ENDPOINT,Af.SelectorType.ENV),configFileSelector:e=>(0,Af.booleanSelector)(e,ar.CONFIG_USE_FIPS_ENDPOINT,Af.SelectorType.CONFIG),default:!1}});var ZO=d(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.normalizeProvider=void 0;var Kne=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};Tf.normalizeProvider=Kne});var PE=d(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});var Wne=M();Wne.__exportStar(ZO(),RE)});var tN=d(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.resolveCustomEndpointsConfig=void 0;var eN=PE(),Yne=e=>{var t;let{endpoint:r,urlParser:n}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:(0,eN.normalizeProvider)(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:(0,eN.normalizeProvider)(e.useDualstackEndpoint)}};Cf.resolveCustomEndpointsConfig=Yne});var rN=d(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.getEndpointFromRegion=void 0;var Jne=async e=>{var t;let{tls:r=!0}=e,n=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw new Error("Invalid region in client config");let s=await e.useDualstackEndpoint(),o=await e.useFipsEndpoint(),{hostname:a}=(t=await e.regionInfoProvider(n,{useDualstackEndpoint:s,useFipsEndpoint:o}))!==null&&t!==void 0?t:{};if(!a)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${r?"https:":"http:"}//${a}`)};xf.getEndpointFromRegion=Jne});var iN=d(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.resolveEndpointsConfig=void 0;var nN=PE(),Qne=rN(),Xne=e=>{var t;let r=(0,nN.normalizeProvider)(e.useDualstackEndpoint),{endpoint:n,useFipsEndpoint:i,urlParser:s}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:n?(0,nN.normalizeProvider)(typeof n=="string"?s(n):n):()=>(0,Qne.getEndpointFromRegion)({...e,useDualstackEndpoint:r,useFipsEndpoint:i}),isCustomEndpoint:!!n,useDualstackEndpoint:r}};If.resolveEndpointsConfig=Xne});var sN=d(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var Rf=M();Rf.__exportStar(QO(),Ws);Rf.__exportStar(XO(),Ws);Rf.__exportStar(tN(),Ws);Rf.__exportStar(iN(),Ws)});var oN=d(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.NODE_REGION_CONFIG_FILE_OPTIONS=cr.NODE_REGION_CONFIG_OPTIONS=cr.REGION_INI_NAME=cr.REGION_ENV_NAME=void 0;cr.REGION_ENV_NAME="AWS_REGION";cr.REGION_INI_NAME="region";cr.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[cr.REGION_ENV_NAME],configFileSelector:e=>e[cr.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};cr.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var OE=d(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.isFipsRegion=void 0;var Zne=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Pf.isFipsRegion=Zne});var aN=d(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.getRealRegion=void 0;var eie=OE(),tie=e=>(0,eie.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;Of.getRealRegion=tie});var lN=d(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.resolveRegionConfig=void 0;var cN=aN(),rie=OE(),nie=e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof t=="string")return(0,cN.getRealRegion)(t);let n=await t();return(0,cN.getRealRegion)(n)},useFipsEndpoint:async()=>{let n=typeof t=="string"?t:await t();return(0,rie.isFipsRegion)(n)?!0:typeof r=="boolean"?Promise.resolve(r):r()}}};Nf.resolveRegionConfig=nie});var dN=d(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var uN=M();uN.__exportStar(oN(),Df);uN.__exportStar(lN(),Df)});var mN=d(fN=>{"use strict";Object.defineProperty(fN,"__esModule",{value:!0})});var _N=d(pN=>{"use strict";Object.defineProperty(pN,"__esModule",{value:!0})});var hN=d(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.getHostnameFromVariants=void 0;var iie=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:r})=>{var n;return(n=e.find(({tags:i})=>t===i.includes("fips")&&r===i.includes("dualstack")))===null||n===void 0?void 0:n.hostname};qf.getHostnameFromVariants=iie});var yN=d(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.getResolvedHostname=void 0;var sie=(e,{regionHostname:t,partitionHostname:r})=>t||(r?r.replace("{region}",e):void 0);Lf.getResolvedHostname=sie});var gN=d(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.getResolvedPartition=void 0;var oie=(e,{partitionHash:t})=>{var r;return(r=Object.keys(t||{}).find(n=>t[n].regions.includes(e)))!==null&&r!==void 0?r:"aws"};Mf.getResolvedPartition=oie});var vN=d(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.getResolvedSigningRegion=void 0;var aie=(e,{signingRegion:t,regionRegex:r,useFipsEndpoint:n})=>{if(t)return t;if(n){let i=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(i);if(s)return s[0].slice(1,-1)}};jf.getResolvedSigningRegion=aie});var wN=d(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.getRegionInfo=void 0;var SN=hN(),cie=yN(),lie=gN(),uie=vN(),die=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:i,partitionHash:s})=>{var o,a,c,l,u,p;let m=(0,lie.getResolvedPartition)(e,{partitionHash:s}),h=e in i?e:(a=(o=s[m])===null||o===void 0?void 0:o.endpoint)!==null&&a!==void 0?a:e,g={useFipsEndpoint:t,useDualstackEndpoint:r},y=(0,SN.getHostnameFromVariants)((c=i[h])===null||c===void 0?void 0:c.variants,g),w=(0,SN.getHostnameFromVariants)((l=s[m])===null||l===void 0?void 0:l.variants,g),C=(0,cie.getResolvedHostname)(h,{regionHostname:y,partitionHostname:w});if(C===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:r}}`);let T=(0,uie.getResolvedSigningRegion)(C,{signingRegion:(u=i[h])===null||u===void 0?void 0:u.signingRegion,regionRegex:s[m].regionRegex,useFipsEndpoint:t});return{partition:m,signingService:n,hostname:C,...T&&{signingRegion:T},...((p=i[h])===null||p===void 0?void 0:p.signingService)&&{signingService:i[h].signingService}}};zf.getRegionInfo=die});var EN=d(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var NE=M();NE.__exportStar(mN(),sc);NE.__exportStar(_N(),sc);NE.__exportStar(wN(),sc)});var Ot=d(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var DE=M();DE.__exportStar(sN(),oc);DE.__exportStar(dN(),oc);DE.__exportStar(EN(),oc)});var ac=d(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.getContentLengthPlugin=xn.contentLengthMiddlewareOptions=xn.contentLengthMiddleware=void 0;var fie=Tt(),bN="content-length";function AN(e){return t=>async r=>{let n=r.request;if(fie.HttpRequest.isInstance(n)){let{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(bN)===-1)try{let o=e(i);n.headers={...n.headers,[bN]:String(o)}}catch{}}return t({...r,request:n})}}xn.contentLengthMiddleware=AN;xn.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var mie=e=>({applyToStack:t=>{t.add(AN(e.bodyLengthChecker),xn.contentLengthMiddlewareOptions)}});xn.getContentLengthPlugin=mie});var xN=d(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var TN=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],qE="endpoint_discovery_enabled",CN=e=>["false","0"].indexOf(e)>=0;kf.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<TN.length;t++){let r=TN[t];if(r in e){let n=e[r];if(n==="")throw Error(`Environment variable ${r} can't be empty of undefined, got "${n}"`);return!CN(n)}}},configFileSelector:e=>{if(qE in e){let t=e[qE];if(t===void 0)throw Error(`Shared config entry ${qE} can't be undefined, got "${t}"`);return!CN(t)}},default:void 0}});var IN=d(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.getCacheKey=void 0;var pie=async(e,t,r)=>{let{accessKeyId:n}=await t.credentials(),{identifiers:i}=r;return JSON.stringify({...n&&{accessKeyId:n},...i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[o,a])=>({...s,[o]:a}),{})}})};Ff.getCacheKey=pie});var RN=d(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.updateDiscoveredEndpointInCache=void 0;var In={},_ie=async(e,t)=>new Promise((r,n)=>{let{endpointCache:i}=e,{cacheKey:s,commandName:o,identifiers:a}=t,c=i.get(s);if(c&&c.length===1&&c[0].Address==="")t.isDiscoveredEndpointRequired?(In[s]||(In[s]=[]),In[s].push({resolve:r,reject:n})):r();else if(c&&c.length>0)r();else{let l=[{Address:"",CachePeriodInMinutes:1}];i.set(s,l);let u=new t.endpointDiscoveryCommandCtor({Operation:o.slice(0,-7),Identifiers:a});u.resolveMiddleware(t.clientStack,e,t.options)(u).then(m=>{i.set(s,m.output.Endpoints),In[s]&&(In[s].forEach(({resolve:h})=>{h()}),delete In[s]),r()}).catch(m=>{var h;(m.name==="InvalidEndpointException"||((h=m.$metadata)===null||h===void 0?void 0:h.httpStatusCode)===421)&&i.delete(s);let g=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:m});In[s]&&(In[s].forEach(({reject:y})=>{y(g)}),delete In[s]),t.isDiscoveredEndpointRequired?n(g):(i.set(s,l),r())})}});Uf.updateDiscoveredEndpointInCache=_ie});var ON=d(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.endpointDiscoveryMiddleware=void 0;var hie=Tt(),yie=IN(),PN=RN(),gie=(e,t)=>(r,n)=>async i=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled)throw new Error("Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.");return r(i)}let{endpointDiscoveryCommandCtor:s}=e,{isDiscoveredEndpointRequired:o,identifiers:a}=t,{clientName:c,commandName:l}=n,u=await e.endpointDiscoveryEnabled(),p=await(0,yie.getCacheKey)(l,e,{identifiers:a});if(o){if(u===!1)throw new Error(`Endpoint Discovery is disabled but ${l} on ${c} requires it. Please check your configurations.`);await(0,PN.updateDiscoveredEndpointInCache)(e,{...t,commandName:l,cacheKey:p,endpointDiscoveryCommandCtor:s})}else u&&(0,PN.updateDiscoveredEndpointInCache)(e,{...t,commandName:l,cacheKey:p,endpointDiscoveryCommandCtor:s});let{request:m}=i;if(p&&hie.HttpRequest.isInstance(m)){let h=e.endpointCache.getEndpoint(p);h&&(m.hostname=h)}return r(i)};Bf.endpointDiscoveryMiddleware=gie});var NN=d(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.getEndpointDiscoveryOptionalPlugin=Kt.getEndpointDiscoveryRequiredPlugin=Kt.getEndpointDiscoveryPlugin=Kt.endpointDiscoveryMiddlewareOptions=void 0;var LE=ON();Kt.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var vie=(e,t)=>({applyToStack:r=>{r.add((0,LE.endpointDiscoveryMiddleware)(e,t),Kt.endpointDiscoveryMiddlewareOptions)}});Kt.getEndpointDiscoveryPlugin=vie;var Sie=(e,t)=>({applyToStack:r=>{r.add((0,LE.endpointDiscoveryMiddleware)(e,{...t,isDiscoveredEndpointRequired:!0}),Kt.endpointDiscoveryMiddlewareOptions)}});Kt.getEndpointDiscoveryRequiredPlugin=Sie;var wie=(e,t)=>({applyToStack:r=>{r.add((0,LE.endpointDiscoveryMiddleware)(e,{...t,isDiscoveredEndpointRequired:!1}),Kt.endpointDiscoveryMiddlewareOptions)}});Kt.getEndpointDiscoveryOptionalPlugin=wie});var qN=d(DN=>{"use strict";Object.defineProperty(DN,"__esModule",{value:!0})});var MN=d((yqe,LN)=>{function Rn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}Rn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(Rn.prototype[Symbol.iterator]=function(){return this});Rn.of=function(){var e=arguments,t=e.length,r=0;return new Rn(function(){return r>=t?{done:!0}:{done:!1,value:e[r++]}})};Rn.empty=function(){var e=new Rn(null);return e.done=!0,e};Rn.is=function(e){return e instanceof Rn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};LN.exports=Rn});var ME=d((gqe,FN)=>{var jN=typeof ArrayBuffer<"u",zN=typeof Symbol<"u";function kN(e,t){var r,n,i,s,o;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||jN&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],i);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(zN&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;o=r.next(),o.done!==!0;)t(o.value,i),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)}kN.forEachWithNullKeys=function(e,t){var r,n,i,s,o;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||jN&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],null);return}if(e instanceof Set){e.forEach(function(a){t(a,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(zN&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;o=r.next(),o.done!==!0;)t(o.value,null),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)};FN.exports=kN});var jE=d(Dr=>{var Eie=Math.pow(2,8)-1,bie=Math.pow(2,16)-1,Aie=Math.pow(2,32)-1,Tie=Math.pow(2,7)-1,Cie=Math.pow(2,15)-1,xie=Math.pow(2,31)-1;Dr.getPointerArray=function(e){var t=e-1;return t<=Eie?Uint8Array:t<=bie?Uint16Array:t<=Aie?Uint32Array:Float64Array};Dr.getSignedPointerArray=function(e){var t=e-1;return t<=Tie?Int8Array:t<=Cie?Int16Array:t<=xie?Int32Array:Float64Array};Dr.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var Iie={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};Dr.getMinimalRepresentation=function(e,t){var r=null,n=0,i,s,o,a,c;for(a=0,c=e.length;a<c;a++)o=t?t(e[a]):e[a],s=Dr.getNumberType(o),i=Iie[s.name],i>n&&(n=i,r=s);return r};Dr.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};Dr.concat=function(){var e=0,t,r,n;for(t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,r=0;t<n;t++)i.set(arguments[t],r),r+=arguments[t].length;return i};Dr.indices=function(e){for(var t=Dr.getPointerArray(e),r=new t(e),n=0;n<e;n++)r[n]=n;return r}});var GN=d(cc=>{var UN=ME(),BN=jE();function Rie(e){return Array.isArray(e)||BN.isTypedArray(e)}function zE(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function Pie(e){var t=zE(e),r=typeof t=="number"?new Array(t):[],n=0;return UN(e,function(i){r[n++]=i}),r}function Oie(e){var t=zE(e),r=typeof t=="number"?BN.getPointerArray(t):Array,n=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new r(t):[],s=0;return UN(e,function(o){n[s]=o,i[s]=s++}),[n,i]}cc.isArrayLike=Rie;cc.guessLength=zE;cc.toArray=Pie;cc.toArrayWithIndices=Oie});var VN=d((wqe,$N)=>{var kE=MN(),Nie=ME(),Die=jE(),qie=GN();function He(e,t,r){if(arguments.length<2&&(r=e,e=null,t=null),this.capacity=r,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var n=Die.getPointerArray(r);this.forward=new n(r),this.backward=new n(r),this.K=typeof e=="function"?new e(r):new Array(r),this.V=typeof t=="function"?new t(r):new Array(r),this.size=0,this.head=0,this.tail=0,this.items={}}He.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};He.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var r=this.backward[e],n=this.forward[e];return this.tail===e?this.tail=r:this.backward[n]=r,this.forward[r]=n,this.backward[t]=e,this.head=e,this.forward[e]=t,this};He.prototype.set=function(e,t){var r=this.items[e];if(typeof r<"u"){this.splayOnTop(r),this.V[r]=t;return}this.size<this.capacity?r=this.size++:(r=this.tail,this.tail=this.backward[r],delete this.items[this.K[r]]),this.items[e]=r,this.K[r]=e,this.V[r]=t,this.forward[r]=this.head,this.backward[this.head]=r,this.head=r};He.prototype.setpop=function(e,t){var r=null,n=null,i=this.items[e];return typeof i<"u"?(this.splayOnTop(i),r=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:r}):(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],r=this.V[i],n=this.K[i],delete this.items[this.K[i]]),this.items[e]=i,this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,n?{evicted:!0,key:n,value:r}:null)};He.prototype.has=function(e){return e in this.items};He.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};He.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};He.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var r=0,n=this.size,i=this.head,s=this.K,o=this.V,a=this.forward;r<n;)e.call(t,o[i],s[i],this),i=a[i],r++};He.prototype.keys=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.forward;return new kE(function(){if(e>=t)return{done:!0};var s=n[r];return e++,e<t&&(r=i[r]),{done:!1,value:s}})};He.prototype.values=function(){var e=0,t=this.size,r=this.head,n=this.V,i=this.forward;return new kE(function(){if(e>=t)return{done:!0};var s=n[r];return e++,e<t&&(r=i[r]),{done:!1,value:s}})};He.prototype.entries=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.V,s=this.forward;return new kE(function(){if(e>=t)return{done:!0};var o=n[r],a=i[r];return e++,e<t&&(r=s[r]),{done:!1,value:[o,a]}})};typeof Symbol<"u"&&(He.prototype[Symbol.iterator]=He.prototype.entries);He.prototype.inspect=function(){for(var e=new Map,t=this.entries(),r;r=t.next(),!r.done;)e.set(r.value[0],r.value[1]);return Object.defineProperty(e,"constructor",{value:He,enumerable:!1}),e};typeof Symbol<"u"&&(He.prototype[Symbol.for("nodejs.util.inspect.custom")]=He.prototype.inspect);He.from=function(e,t,r,n){if(arguments.length<2){if(n=qie.guessLength(e),typeof n!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(n=t,t=null,r=null);var i=new He(t,r,n);return Nie(e,function(s,o){i.set(o,s)}),i};$N.exports=He});var HN=d(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.EndpointCache=void 0;var Lie=M(),Mie=Lie.__importDefault(VN()),FE=class{constructor(t){this.cache=new Mie.default(t)}getEndpoint(t){let r=this.get(t);if(!r||r.length===0)return;let n=r.map(i=>i.Address);return n[Math.floor(Math.random()*n.length)]}get(t){if(!this.has(t))return;let r=this.cache.get(t);if(!r)return;let n=Date.now(),i=r.filter(s=>n<s.Expires);if(i.length===0){this.delete(t);return}return i}set(t,r){let n=Date.now();this.cache.set(t,r.map(({Address:i,CachePeriodInMinutes:s})=>({Address:i,Expires:n+s*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let r=this.cache.peek(t);return r?r.length>0:!1}clear(){this.cache.clear()}};Gf.EndpointCache=FE});var WN=d($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var KN=M();KN.__exportStar(qN(),$f);KN.__exportStar(HN(),$f)});var YN=d(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.resolveEndpointDiscoveryConfig=void 0;var jie=WN(),zie=(e,{endpointDiscoveryCommandCtor:t})=>{var r;return{...e,endpointDiscoveryCommandCtor:t,endpointCache:new jie.EndpointCache((r=e.endpointCacheSize)!==null&&r!==void 0?r:1e3),endpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0?()=>Promise.resolve(e.endpointDiscoveryEnabled):e.endpointDiscoveryEnabledProvider,isClientEndpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0}};Vf.resolveEndpointDiscoveryConfig=zie});var BE=d(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var UE=M();UE.__exportStar(xN(),lc);UE.__exportStar(NN(),lc);UE.__exportStar(YN(),lc)});var uc=d(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.getHostHeaderPlugin=lr.hostHeaderMiddlewareOptions=lr.hostHeaderMiddleware=lr.resolveHostHeaderConfig=void 0;var kie=Tt();function Fie(e){return e}lr.resolveHostHeaderConfig=Fie;var Uie=e=>t=>async r=>{if(!kie.HttpRequest.isInstance(r.request))return t(r);let{request:n}=r,{handlerProtocol:i=""}=e.requestHandler.metadata||{};return i.indexOf("h2")>=0&&!n.headers[":authority"]?(delete n.headers.host,n.headers[":authority"]=""):n.headers.host||(n.headers.host=n.hostname),t(r)};lr.hostHeaderMiddleware=Uie;lr.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var Bie=e=>({applyToStack:t=>{t.add((0,lr.hostHeaderMiddleware)(e),lr.hostHeaderMiddlewareOptions)}});lr.getHostHeaderPlugin=Bie});var JN=d(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.getLoggerPlugin=qr.loggerMiddlewareOptions=qr.loggerMiddleware=void 0;var Gie=()=>(e,t)=>async r=>{let{clientName:n,commandName:i,inputFilterSensitiveLog:s,logger:o,outputFilterSensitiveLog:a}=t,c=await e(r);if(!o)return c;if(typeof o.info=="function"){let{$metadata:l,...u}=c.output;o.info({clientName:n,commandName:i,input:s(r.input),output:a(u),metadata:l})}return c};qr.loggerMiddleware=Gie;qr.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var $ie=e=>({applyToStack:t=>{t.add((0,qr.loggerMiddleware)(),qr.loggerMiddlewareOptions)}});qr.getLoggerPlugin=$ie});var dc=d(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});var Vie=M();Vie.__exportStar(JN(),GE)});var fc=d(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.DEFAULT_RETRY_MODE=Pn.DEFAULT_MAX_ATTEMPTS=Pn.RETRY_MODES=void 0;var QN;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(QN=Pn.RETRY_MODES||(Pn.RETRY_MODES={}));Pn.DEFAULT_MAX_ATTEMPTS=3;Pn.DEFAULT_RETRY_MODE=QN.STANDARD});var XN=d(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.TRANSIENT_ERROR_STATUS_CODES=Lr.TRANSIENT_ERROR_CODES=Lr.THROTTLING_ERROR_CODES=Lr.CLOCK_SKEW_ERROR_CODES=void 0;Lr.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];Lr.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];Lr.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];Lr.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var Kf=d(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.isTransientError=Mr.isThrottlingError=Mr.isClockSkewError=Mr.isRetryableByTrait=void 0;var Hf=XN(),Hie=e=>e.$retryable!==void 0;Mr.isRetryableByTrait=Hie;var Kie=e=>Hf.CLOCK_SKEW_ERROR_CODES.includes(e.name);Mr.isClockSkewError=Kie;var Wie=e=>{var t,r;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||Hf.THROTTLING_ERROR_CODES.includes(e.name)||((r=e.$retryable)===null||r===void 0?void 0:r.throttling)==!0};Mr.isThrottlingError=Wie;var Yie=e=>{var t;return Hf.TRANSIENT_ERROR_CODES.includes(e.name)||Hf.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};Mr.isTransientError=Yie});var VE=d(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.DefaultRateLimiter=void 0;var Jie=Kf(),$E=class{constructor(t){var r,n,i,s,o;this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(r=t==null?void 0:t.beta)!==null&&r!==void 0?r:.7,this.minCapacity=(n=t==null?void 0:t.minCapacity)!==null&&n!==void 0?n:1,this.minFillRate=(i=t==null?void 0:t.minFillRate)!==null&&i!==void 0?i:.5,this.scaleConstant=(s=t==null?void 0:t.scaleConstant)!==null&&s!==void 0?s:.4,this.smooth=(o=t==null?void 0:t.smooth)!==null&&o!==void 0?o:.8;let a=this.getCurrentTimeInSeconds();this.lastThrottleTime=a,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(!!this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){let r=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>setTimeout(n,r))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let r=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=t}updateClientSendingRate(t){let r;if(this.updateMeasuredRate(),(0,Jie.isThrottlingError)(t)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),r=Math.floor(t*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(t){return parseFloat(t.toFixed(8))}};Wf.DefaultRateLimiter=$E});var mc=d(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.REQUEST_HEADER=Ke.INVOCATION_ID_HEADER=Ke.NO_RETRY_INCREMENT=Ke.TIMEOUT_RETRY_COST=Ke.RETRY_COST=Ke.INITIAL_RETRY_TOKENS=Ke.THROTTLING_RETRY_DELAY_BASE=Ke.MAXIMUM_RETRY_DELAY=Ke.DEFAULT_RETRY_DELAY_BASE=void 0;Ke.DEFAULT_RETRY_DELAY_BASE=100;Ke.MAXIMUM_RETRY_DELAY=20*1e3;Ke.THROTTLING_RETRY_DELAY_BASE=500;Ke.INITIAL_RETRY_TOKENS=500;Ke.RETRY_COST=5;Ke.TIMEOUT_RETRY_COST=10;Ke.NO_RETRY_INCREMENT=1;Ke.INVOCATION_ID_HEADER="amz-sdk-invocation-id";Ke.REQUEST_HEADER="amz-sdk-request"});var ZN=d(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.getDefaultRetryQuota=void 0;var HE=mc(),Qie=(e,t)=>{var r,n,i;let s=e,o=(r=t==null?void 0:t.noRetryIncrement)!==null&&r!==void 0?r:HE.NO_RETRY_INCREMENT,a=(n=t==null?void 0:t.retryCost)!==null&&n!==void 0?n:HE.RETRY_COST,c=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:HE.TIMEOUT_RETRY_COST,l=e,u=g=>g.name==="TimeoutError"?c:a,p=g=>u(g)<=l;return Object.freeze({hasRetryTokens:p,retrieveRetryTokens:g=>{if(!p(g))throw new Error("No retry token available");let y=u(g);return l-=y,y},releaseRetryTokens:g=>{l+=g??o,l=Math.min(l,s)}})};Yf.getDefaultRetryQuota=Qie});var KE=d(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.defaultDelayDecider=void 0;var Xie=mc(),Zie=(e,t)=>Math.floor(Math.min(Xie.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));Jf.defaultDelayDecider=Zie});var WE=d(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.defaultRetryDecider=void 0;var Qf=Kf(),ese=e=>e?(0,Qf.isRetryableByTrait)(e)||(0,Qf.isClockSkewError)(e)||(0,Qf.isThrottlingError)(e)||(0,Qf.isTransientError)(e):!1;Xf.defaultRetryDecider=ese});var em=d(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.StandardRetryStrategy=void 0;var eD=Tt(),tse=Kf(),rse=Cw(),tD=fc(),pc=mc(),nse=ZN(),ise=KE(),sse=WE(),YE=class{constructor(t,r){var n,i,s;this.maxAttemptsProvider=t,this.mode=tD.RETRY_MODES.STANDARD,this.retryDecider=(n=r==null?void 0:r.retryDecider)!==null&&n!==void 0?n:sse.defaultRetryDecider,this.delayDecider=(i=r==null?void 0:r.delayDecider)!==null&&i!==void 0?i:ise.defaultDelayDecider,this.retryQuota=(s=r==null?void 0:r.retryQuota)!==null&&s!==void 0?s:(0,nse.getDefaultRetryQuota)(pc.INITIAL_RETRY_TOKENS)}shouldRetry(t,r,n){return r<n&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch{t=tD.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,r,n){let i,s=0,o=0,a=await this.getMaxAttempts(),{request:c}=r;for(eD.HttpRequest.isInstance(c)&&(c.headers[pc.INVOCATION_ID_HEADER]=(0,rse.v4)());;)try{eD.HttpRequest.isInstance(c)&&(c.headers[pc.REQUEST_HEADER]=`attempt=${s+1}; max=${a}`),n!=null&&n.beforeRequest&&await n.beforeRequest();let{response:l,output:u}=await t(r);return n!=null&&n.afterRequest&&n.afterRequest(l),this.retryQuota.releaseRetryTokens(i),u.$metadata.attempts=s+1,u.$metadata.totalRetryDelay=o,{response:l,output:u}}catch(l){let u=ose(l);if(s++,this.shouldRetry(u,s,a)){i=this.retryQuota.retrieveRetryTokens(u);let p=this.delayDecider((0,tse.isThrottlingError)(u)?pc.THROTTLING_RETRY_DELAY_BASE:pc.DEFAULT_RETRY_DELAY_BASE,s);o+=p,await new Promise(m=>setTimeout(m,p));continue}throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=s,u.$metadata.totalRetryDelay=o,u}}};Zf.StandardRetryStrategy=YE;var ose=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`)});var QE=d(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.AdaptiveRetryStrategy=void 0;var ase=fc(),cse=VE(),lse=em(),JE=class extends lse.StandardRetryStrategy{constructor(t,r){let{rateLimiter:n,...i}=r??{};super(t,i),this.rateLimiter=n??new cse.DefaultRateLimiter,this.mode=ase.RETRY_MODES.ADAPTIVE}async retry(t,r){return super.retry(t,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}};tm.AdaptiveRetryStrategy=JE});var rD=d(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.normalizeProvider=void 0;var use=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};rm.normalizeProvider=use});var nD=d(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});var dse=M();dse.__exportStar(rD(),XE)});var sD=d(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.NODE_RETRY_MODE_CONFIG_OPTIONS=Ue.CONFIG_RETRY_MODE=Ue.ENV_RETRY_MODE=Ue.resolveRetryConfig=Ue.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Ue.CONFIG_MAX_ATTEMPTS=Ue.ENV_MAX_ATTEMPTS=void 0;var iD=nD(),fse=QE(),nm=fc(),mse=em();Ue.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";Ue.CONFIG_MAX_ATTEMPTS="max_attempts";Ue.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[Ue.ENV_MAX_ATTEMPTS];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${Ue.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return r},configFileSelector:e=>{let t=e[Ue.CONFIG_MAX_ATTEMPTS];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${Ue.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return r},default:nm.DEFAULT_MAX_ATTEMPTS};var pse=e=>{var t;let r=(0,iD.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:nm.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:r,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:await(0,iD.normalizeProvider)(e.retryMode)()===nm.RETRY_MODES.ADAPTIVE?new fse.AdaptiveRetryStrategy(r):new mse.StandardRetryStrategy(r)}};Ue.resolveRetryConfig=pse;Ue.ENV_RETRY_MODE="AWS_RETRY_MODE";Ue.CONFIG_RETRY_MODE="retry_mode";Ue.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Ue.ENV_RETRY_MODE],configFileSelector:e=>e[Ue.CONFIG_RETRY_MODE],default:nm.DEFAULT_RETRY_MODE}});var aD=d(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.getOmitRetryHeadersPlugin=jr.omitRetryHeadersMiddlewareOptions=jr.omitRetryHeadersMiddleware=void 0;var _se=Tt(),oD=mc(),hse=()=>e=>async t=>{let{request:r}=t;return _se.HttpRequest.isInstance(r)&&(delete r.headers[oD.INVOCATION_ID_HEADER],delete r.headers[oD.REQUEST_HEADER]),e(t)};jr.omitRetryHeadersMiddleware=hse;jr.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var yse=e=>({applyToStack:t=>{t.addRelativeTo((0,jr.omitRetryHeadersMiddleware)(),jr.omitRetryHeadersMiddlewareOptions)}});jr.getOmitRetryHeadersPlugin=yse});var cD=d(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.getRetryPlugin=zr.retryMiddlewareOptions=zr.retryMiddleware=void 0;var gse=e=>(t,r)=>async n=>{let i=await e.retryStrategy();return i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,n)};zr.retryMiddleware=gse;zr.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var vse=e=>({applyToStack:t=>{t.add((0,zr.retryMiddleware)(e),zr.retryMiddlewareOptions)}});zr.getRetryPlugin=vse});var uD=d(lD=>{"use strict";Object.defineProperty(lD,"__esModule",{value:!0})});var On=d(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var kr=M();kr.__exportStar(QE(),ur);kr.__exportStar(VE(),ur);kr.__exportStar(em(),ur);kr.__exportStar(fc(),ur);kr.__exportStar(sD(),ur);kr.__exportStar(KE(),ur);kr.__exportStar(aD(),ur);kr.__exportStar(WE(),ur);kr.__exportStar(cD(),ur);kr.__exportStar(uD(),ur)});var sm=d(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.ProviderError=void 0;var _c=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,_c.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};im.ProviderError=_c});var dD=d(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.CredentialsProviderError=void 0;var Sse=sm(),hc=class extends Sse.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,hc.prototype)}};om.CredentialsProviderError=hc});var fD=d(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.chain=void 0;var wse=sm();function Ese(...e){return()=>{let t=Promise.reject(new wse.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}am.chain=Ese});var mD=d(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.fromStatic=void 0;var bse=e=>()=>Promise.resolve(e);cm.fromStatic=bse});var pD=d(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.memoize=void 0;var Ase=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};lm.memoize=Ase});var _D=d(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});var yc=M();yc.__exportStar(dD(),Ki);yc.__exportStar(sm(),Ki);yc.__exportStar(fD(),Ki);yc.__exportStar(mD(),Ki);yc.__exportStar(pD(),Ki)});var um=d(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.toHex=Ys.fromHex=void 0;var hD={},ZE={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),hD[e]=t,ZE[t]=e}function Tse(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let n=e.slice(r,r+2).toLowerCase();if(n in ZE)t[r/2]=ZE[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}Ys.fromHex=Tse;function Cse(e){let t="";for(let r=0;r<e.byteLength;r++)t+=hD[e[r]];return t}Ys.toHex=Cse});var yD=d(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.normalizeProvider=void 0;var xse=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};dm.normalizeProvider=xse});var gD=d(eb=>{"use strict";Object.defineProperty(eb,"__esModule",{value:!0});var Ise=M();Ise.__exportStar(yD(),eb)});var Wi=d($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.MAX_PRESIGNED_TTL=$.KEY_TYPE_IDENTIFIER=$.MAX_CACHE_SIZE=$.UNSIGNED_PAYLOAD=$.EVENT_ALGORITHM_IDENTIFIER=$.ALGORITHM_IDENTIFIER_V4A=$.ALGORITHM_IDENTIFIER=$.UNSIGNABLE_PATTERNS=$.SEC_HEADER_PATTERN=$.PROXY_HEADER_PATTERN=$.ALWAYS_UNSIGNABLE_HEADERS=$.HOST_HEADER=$.TOKEN_HEADER=$.SHA256_HEADER=$.SIGNATURE_HEADER=$.GENERATED_HEADERS=$.DATE_HEADER=$.AMZ_DATE_HEADER=$.AUTH_HEADER=$.REGION_SET_PARAM=$.TOKEN_QUERY_PARAM=$.SIGNATURE_QUERY_PARAM=$.EXPIRES_QUERY_PARAM=$.SIGNED_HEADERS_QUERY_PARAM=$.AMZ_DATE_QUERY_PARAM=$.CREDENTIAL_QUERY_PARAM=$.ALGORITHM_QUERY_PARAM=void 0;$.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";$.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";$.AMZ_DATE_QUERY_PARAM="X-Amz-Date";$.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";$.EXPIRES_QUERY_PARAM="X-Amz-Expires";$.SIGNATURE_QUERY_PARAM="X-Amz-Signature";$.TOKEN_QUERY_PARAM="X-Amz-Security-Token";$.REGION_SET_PARAM="X-Amz-Region-Set";$.AUTH_HEADER="authorization";$.AMZ_DATE_HEADER=$.AMZ_DATE_QUERY_PARAM.toLowerCase();$.DATE_HEADER="date";$.GENERATED_HEADERS=[$.AUTH_HEADER,$.AMZ_DATE_HEADER,$.DATE_HEADER];$.SIGNATURE_HEADER=$.SIGNATURE_QUERY_PARAM.toLowerCase();$.SHA256_HEADER="x-amz-content-sha256";$.TOKEN_HEADER=$.TOKEN_QUERY_PARAM.toLowerCase();$.HOST_HEADER="host";$.ALWAYS_UNSIGNABLE_HEADERS={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0};$.PROXY_HEADER_PATTERN=/^proxy-/;$.SEC_HEADER_PATTERN=/^sec-/;$.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];$.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";$.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";$.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";$.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";$.MAX_CACHE_SIZE=50;$.KEY_TYPE_IDENTIFIER="aws4_request";$.MAX_PRESIGNED_TTL=60*60*24*7});var rb=d(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.clearCredentialCache=ai.getSigningKey=ai.createScope=void 0;var Rse=um(),tb=Wi(),Js={},fm=[],Pse=(e,t,r)=>`${e}/${t}/${r}/${tb.KEY_TYPE_IDENTIFIER}`;ai.createScope=Pse;var Ose=async(e,t,r,n,i)=>{let s=await vD(e,t.secretAccessKey,t.accessKeyId),o=`${r}:${n}:${i}:${(0,Rse.toHex)(s)}:${t.sessionToken}`;if(o in Js)return Js[o];for(fm.push(o);fm.length>tb.MAX_CACHE_SIZE;)delete Js[fm.shift()];let a=`AWS4${t.secretAccessKey}`;for(let c of[r,n,i,tb.KEY_TYPE_IDENTIFIER])a=await vD(e,a,c);return Js[o]=a};ai.getSigningKey=Ose;var Nse=()=>{fm.length=0,Object.keys(Js).forEach(e=>{delete Js[e]})};ai.clearCredentialCache=Nse;var vD=(e,t,r)=>{let n=new e(t);return n.update(r),n.digest()}});var ib=d(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.getCanonicalHeaders=void 0;var nb=Wi(),Dse=({headers:e},t,r)=>{let n={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in nb.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||nb.PROXY_HEADER_PATTERN.test(s)||nb.SEC_HEADER_PATTERN.test(s))&&(!r||r&&!r.has(s))||(n[s]=e[i].trim().replace(/\s+/g," "))}return n};mm.getCanonicalHeaders=Dse});var sb=d(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.escapeUri=void 0;var qse=e=>encodeURIComponent(e).replace(/[!'()*]/g,Lse);pm.escapeUri=qse;var Lse=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var SD=d(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.escapeUriPath=void 0;var Mse=sb(),jse=e=>e.split("/").map(Mse.escapeUri).join("/");_m.escapeUriPath=jse});var ED=d(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});var wD=M();wD.__exportStar(sb(),hm);wD.__exportStar(SD(),hm)});var ob=d(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.getCanonicalQuery=void 0;var ym=ED(),zse=Wi(),kse=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e).sort()){if(n.toLowerCase()===zse.SIGNATURE_HEADER)continue;t.push(n);let i=e[n];typeof i=="string"?r[n]=`${(0,ym.escapeUri)(n)}=${(0,ym.escapeUri)(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).sort().reduce((s,o)=>s.concat([`${(0,ym.escapeUri)(n)}=${(0,ym.escapeUri)(o)}`]),[]).join("&"))}return t.map(n=>r[n]).filter(n=>n).join("&")};gm.getCanonicalQuery=kse});var bD=d(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.isArrayBuffer=void 0;var Fse=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";vm.isArrayBuffer=Fse});var ab=d(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.getPayloadHash=void 0;var Use=bD(),Bse=um(),AD=Wi(),Gse=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===AD.SHA256_HEADER)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,Use.isArrayBuffer)(t)){let n=new r;return n.update(t),(0,Bse.toHex)(await n.digest())}return AD.UNSIGNED_PAYLOAD};Sm.getPayloadHash=Gse});var TD=d(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.deleteHeader=ci.getHeaderValue=ci.hasHeader=void 0;var $se=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1};ci.hasHeader=$se;var Vse=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return t[r]};ci.getHeaderValue=Vse;var Hse=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))e===r.toLowerCase()&&delete t[r]};ci.deleteHeader=Hse});var cb=d(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.cloneQuery=Yi.cloneRequest=void 0;var Kse=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?(0,Yi.cloneQuery)(t):void 0});Yi.cloneRequest=Kse;var Wse=e=>Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{});Yi.cloneQuery=Wse});var lb=d(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.moveHeadersToQuery=void 0;var Yse=cb(),Jse=(e,t={})=>{var r;let{headers:n,query:i={}}=typeof e.clone=="function"?e.clone():(0,Yse.cloneRequest)(e);for(let s of Object.keys(n)){let o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!(!((r=t.unhoistableHeaders)===null||r===void 0)&&r.has(o))&&(i[s]=n[s],delete n[s])}return{...e,headers:n,query:i}};wm.moveHeadersToQuery=Jse});var ub=d(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.prepareRequest=void 0;var Qse=cb(),Xse=Wi(),Zse=e=>{e=typeof e.clone=="function"?e.clone():(0,Qse.cloneRequest)(e);for(let t of Object.keys(e.headers))Xse.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};Em.prepareRequest=Zse});var CD=d(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.toDate=Ji.iso8601=void 0;var eoe=e=>(0,Ji.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");Ji.iso8601=eoe;var toe=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;Ji.toDate=toe});var OD=d(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.SignatureV4=void 0;var bm=um(),xD=gD(),ut=Wi(),Am=rb(),ID=ib(),roe=ob(),db=ab(),noe=TD(),ioe=lb(),RD=ub(),soe=CD(),fb=class{constructor({applyChecksum:t,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=(0,xD.normalizeProvider)(n),this.credentialProvider=(0,xD.normalizeProvider)(r)}async presign(t,r={}){let{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:c,signingService:l}=r,u=await this.credentialProvider(),p=c??await this.regionProvider(),{longDate:m,shortDate:h}=Tm(n);if(i>ut.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let g=(0,Am.createScope)(h,p,l??this.service),y=(0,ioe.moveHeadersToQuery)((0,RD.prepareRequest)(t),{unhoistableHeaders:o});u.sessionToken&&(y.query[ut.TOKEN_QUERY_PARAM]=u.sessionToken),y.query[ut.ALGORITHM_QUERY_PARAM]=ut.ALGORITHM_IDENTIFIER,y.query[ut.CREDENTIAL_QUERY_PARAM]=`${u.accessKeyId}/${g}`,y.query[ut.AMZ_DATE_QUERY_PARAM]=m,y.query[ut.EXPIRES_QUERY_PARAM]=i.toString(10);let w=(0,ID.getCanonicalHeaders)(y,s,a);return y.query[ut.SIGNED_HEADERS_QUERY_PARAM]=PD(w),y.query[ut.SIGNATURE_QUERY_PARAM]=await this.getSignature(m,g,this.getSigningKey(u,p,h,l),this.createCanonicalRequest(y,w,await(0,db.getPayloadHash)(t,this.sha256))),y}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){let a=s??await this.regionProvider(),{shortDate:c,longDate:l}=Tm(n),u=(0,Am.createScope)(c,a,o??this.service),p=await(0,db.getPayloadHash)({headers:{},body:r},this.sha256),m=new this.sha256;m.update(t);let h=(0,bm.toHex)(await m.digest()),g=[ut.EVENT_ALGORITHM_IDENTIFIER,l,u,i,h,p].join(`
10
+ `);return this.signString(g,{signingDate:n,signingRegion:a,signingService:o})}async signString(t,{signingDate:r=new Date,signingRegion:n,signingService:i}={}){let s=await this.credentialProvider(),o=n??await this.regionProvider(),{shortDate:a}=Tm(r),c=new this.sha256(await this.getSigningKey(s,o,a,i));return c.update(t),(0,bm.toHex)(await c.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider(),c=s??await this.regionProvider(),l=(0,RD.prepareRequest)(t),{longDate:u,shortDate:p}=Tm(r),m=(0,Am.createScope)(p,c,o??this.service);l.headers[ut.AMZ_DATE_HEADER]=u,a.sessionToken&&(l.headers[ut.TOKEN_HEADER]=a.sessionToken);let h=await(0,db.getPayloadHash)(l,this.sha256);!(0,noe.hasHeader)(ut.SHA256_HEADER,l.headers)&&this.applyChecksum&&(l.headers[ut.SHA256_HEADER]=h);let g=(0,ID.getCanonicalHeaders)(l,i,n),y=await this.getSignature(u,m,this.getSigningKey(a,c,p,o),this.createCanonicalRequest(l,g,h));return l.headers[ut.AUTH_HEADER]=`${ut.ALGORITHM_IDENTIFIER} Credential=${a.accessKeyId}/${m}, SignedHeaders=${PD(g)}, Signature=${y}`,l}createCanonicalRequest(t,r,n){let i=Object.keys(r).sort();return`${t.method}
11
11
  ${this.getCanonicalPath(t)}
12
- ${(0,Z9.getCanonicalQuery)(t)}
12
+ ${(0,roe.getCanonicalQuery)(t)}
13
13
  ${i.map(s=>`${s}:${r[s]}`).join(`
14
14
  `)}
15
15
 
16
16
  ${i.join(";")}
17
- ${n}`}async createStringToSign(t,r,n){let i=new this.sha256;i.update(n);let s=await i.digest();return`${st.ALGORITHM_IDENTIFIER}
17
+ ${n}`}async createStringToSign(t,r,n){let i=new this.sha256;i.update(n);let s=await i.digest();return`${ut.ALGORITHM_IDENTIFIER}
18
18
  ${t}
19
19
  ${r}
20
- ${(0,Fd.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let r=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let n=`${t!=null&&t.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(t==null?void 0:t.endsWith("/"))?"/":""}`;return encodeURIComponent(n).replace(/%2F/g,"/")}return t}async getSignature(t,r,n,i){let s=await this.createStringToSign(t,r,i),o=new this.sha256(await n);return o.update(s),(0,Fd.toHex)(await o.digest())}getSigningKey(t,r,n,i){return(0,Bd.getSigningKey)(this.sha256,t,n,r,i||this.service)}};$d.SignatureV4=SS;var Gd=e=>{let t=(0,rQ.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},P1=e=>Object.keys(e).sort().join(";")});var wS=f(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.prepareRequest=At.moveHeadersToQuery=At.getPayloadHash=At.getCanonicalQuery=At.getCanonicalHeaders=void 0;var O1=K();O1.__exportStar(N1(),At);var nQ=uS();Object.defineProperty(At,"getCanonicalHeaders",{enumerable:!0,get:function(){return nQ.getCanonicalHeaders}});var iQ=mS();Object.defineProperty(At,"getCanonicalQuery",{enumerable:!0,get:function(){return iQ.getCanonicalQuery}});var sQ=hS();Object.defineProperty(At,"getPayloadHash",{enumerable:!0,get:function(){return sQ.getPayloadHash}});var oQ=yS();Object.defineProperty(At,"moveHeadersToQuery",{enumerable:!0,get:function(){return oQ.moveHeadersToQuery}});var aQ=gS();Object.defineProperty(At,"prepareRequest",{enumerable:!0,get:function(){return aQ.prepareRequest}});O1.__exportStar(cS(),At)});var M1=f(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.resolveSigV4AuthConfig=fs.resolveAwsAuthConfig=void 0;var cQ=ke(),L1=wS(),lQ=3e5,uQ=e=>{let t=e.credentials?q1(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=va(e.signer):s=()=>va(e.region)().then(async o=>[await e.regionInfoProvider(o,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},o]).then(([o,a])=>{let{signingRegion:c,signingService:u}=o;e.signingRegion=e.signingRegion||c||a,e.signingName=e.signingName||u||e.serviceId;let d={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r},p=e.signerConstructor||L1.SignatureV4;return new p(d)}),{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s}};fs.resolveAwsAuthConfig=uQ;var dQ=e=>{let t=e.credentials?q1(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=va(e.signer):s=va(new L1.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:r})),{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s}};fs.resolveSigV4AuthConfig=dQ;var va=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},q1=e=>typeof e=="function"?(0,cQ.memoize)(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<lQ,t=>t.expiration!==void 0):va(e)});var bS=f(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.getSkewCorrectedDate=void 0;var fQ=e=>new Date(Date.now()+e);Vd.getSkewCorrectedDate=fQ});var z1=f(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.isClockSkewed=void 0;var mQ=bS(),pQ=(e,t)=>Math.abs((0,mQ.getSkewCorrectedDate)(t).getTime()-e)>=3e5;Kd.isClockSkewed=pQ});var j1=f(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.getUpdatedSystemClockOffset=void 0;var hQ=z1(),_Q=(e,t)=>{let r=Date.parse(e);return(0,hQ.isClockSkewed)(r,t)?r-Date.now():t};Hd.getUpdatedSystemClockOffset=_Q});var B1=f(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.getSigV4AuthPlugin=kt.getAwsAuthPlugin=kt.awsAuthMiddlewareOptions=kt.awsAuthMiddleware=void 0;var F1=Et(),yQ=bS(),k1=j1(),gQ=e=>(t,r)=>async function(n){if(!F1.HttpRequest.isInstance(n.request))return t(n);let i=await e.signer(),s=await t({...n,request:await i.sign(n.request,{signingDate:(0,yQ.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:r.signing_region,signingService:r.signing_service})}).catch(a=>{var c;let u=(c=a.ServerTime)!==null&&c!==void 0?c:U1(a.$response);throw u&&(e.systemClockOffset=(0,k1.getUpdatedSystemClockOffset)(u,e.systemClockOffset)),a}),o=U1(s.response);return o&&(e.systemClockOffset=(0,k1.getUpdatedSystemClockOffset)(o,e.systemClockOffset)),s};kt.awsAuthMiddleware=gQ;var U1=e=>{var t,r,n;return F1.HttpResponse.isInstance(e)?(r=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&r!==void 0?r:(n=e.headers)===null||n===void 0?void 0:n.Date:void 0};kt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var vQ=e=>({applyToStack:t=>{t.addRelativeTo((0,kt.awsAuthMiddleware)(e),kt.awsAuthMiddlewareOptions)}});kt.getAwsAuthPlugin=vQ;kt.getSigV4AuthPlugin=kt.getAwsAuthPlugin});var an=f(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var G1=K();G1.__exportStar(M1(),Wd);G1.__exportStar(B1(),Wd)});var $1=f(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.resolveUserAgentConfig=void 0;function SQ(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}Yd.resolveUserAgentConfig=SQ});var V1=f(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.UA_ESCAPE_REGEX=Rr.SPACE=Rr.X_AMZ_USER_AGENT=Rr.USER_AGENT=void 0;Rr.USER_AGENT="user-agent";Rr.X_AMZ_USER_AGENT="x-amz-user-agent";Rr.SPACE=" ";Rr.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var K1=f(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.getUserAgentPlugin=Dr.getUserAgentMiddlewareOptions=Dr.userAgentMiddleware=void 0;var wQ=Et(),qn=V1(),bQ=e=>(t,r)=>async n=>{var i,s;let{request:o}=n;if(!wQ.HttpRequest.isInstance(o))return t(n);let{headers:a}=o,c=((i=r==null?void 0:r.userAgent)===null||i===void 0?void 0:i.map(ES))||[],u=(await e.defaultUserAgentProvider()).map(ES),d=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(ES))||[],p=[...u,...c,...d].join(qn.SPACE),m=[...u.filter(_=>_.startsWith("aws-sdk-")),...d].join(qn.SPACE);return e.runtime!=="browser"?(m&&(a[qn.X_AMZ_USER_AGENT]=a[qn.X_AMZ_USER_AGENT]?`${a[qn.USER_AGENT]} ${m}`:m),a[qn.USER_AGENT]=p):a[qn.X_AMZ_USER_AGENT]=p,t({...n,request:o})};Dr.userAgentMiddleware=bQ;var ES=([e,t])=>{let r=e.indexOf("/"),n=e.substring(0,r),i=e.substring(r+1);return n==="api"&&(i=i.toLowerCase()),[n,i,t].filter(s=>s&&s.length>0).map(s=>s==null?void 0:s.replace(qn.UA_ESCAPE_REGEX,"_")).join("/")};Dr.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var EQ=e=>({applyToStack:t=>{t.add((0,Dr.userAgentMiddleware)(e),Dr.getUserAgentMiddlewareOptions)}});Dr.getUserAgentPlugin=EQ});var Qd=f(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});var H1=K();H1.__exportStar($1(),Jd);H1.__exportStar(K1(),Jd)});var W1=f((U0e,AQ)=>{AQ.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.78.0","@aws-sdk/config-resolver":"3.78.0","@aws-sdk/credential-provider-node":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-endpoint-discovery":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0","@aws-sdk/util-waiter":"3.78.0",tslib:"^2.3.1",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","@types/uuid":"^8.3.0",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-dynamodb"}}});var Zd=f(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.STSServiceException=void 0;var TQ=O(),Sa=class extends TQ.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Sa.prototype)}};Xd.STSServiceException=Sa});var cr=f(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.GetSessionTokenResponse=L.GetSessionTokenRequest=L.GetFederationTokenResponse=L.FederatedUser=L.GetFederationTokenRequest=L.GetCallerIdentityResponse=L.GetCallerIdentityRequest=L.GetAccessKeyInfoResponse=L.GetAccessKeyInfoRequest=L.InvalidAuthorizationMessageException=L.DecodeAuthorizationMessageResponse=L.DecodeAuthorizationMessageRequest=L.IDPCommunicationErrorException=L.AssumeRoleWithWebIdentityResponse=L.AssumeRoleWithWebIdentityRequest=L.InvalidIdentityTokenException=L.IDPRejectedClaimException=L.AssumeRoleWithSAMLResponse=L.AssumeRoleWithSAMLRequest=L.RegionDisabledException=L.PackedPolicyTooLargeException=L.MalformedPolicyDocumentException=L.ExpiredTokenException=L.AssumeRoleResponse=L.Credentials=L.AssumeRoleRequest=L.Tag=L.PolicyDescriptorType=L.AssumedRoleUser=void 0;var Mn=Zd(),CQ;(function(e){e.filterSensitiveLog=t=>({...t})})(CQ=L.AssumedRoleUser||(L.AssumedRoleUser={}));var xQ;(function(e){e.filterSensitiveLog=t=>({...t})})(xQ=L.PolicyDescriptorType||(L.PolicyDescriptorType={}));var IQ;(function(e){e.filterSensitiveLog=t=>({...t})})(IQ=L.Tag||(L.Tag={}));var RQ;(function(e){e.filterSensitiveLog=t=>({...t})})(RQ=L.AssumeRoleRequest||(L.AssumeRoleRequest={}));var DQ;(function(e){e.filterSensitiveLog=t=>({...t})})(DQ=L.Credentials||(L.Credentials={}));var PQ;(function(e){e.filterSensitiveLog=t=>({...t})})(PQ=L.AssumeRoleResponse||(L.AssumeRoleResponse={}));var wa=class extends Mn.STSServiceException{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,wa.prototype)}};L.ExpiredTokenException=wa;var ba=class extends Mn.STSServiceException{constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,ba.prototype)}};L.MalformedPolicyDocumentException=ba;var Ea=class extends Mn.STSServiceException{constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,Ea.prototype)}};L.PackedPolicyTooLargeException=Ea;var Aa=class extends Mn.STSServiceException{constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,Aa.prototype)}};L.RegionDisabledException=Aa;var NQ;(function(e){e.filterSensitiveLog=t=>({...t})})(NQ=L.AssumeRoleWithSAMLRequest||(L.AssumeRoleWithSAMLRequest={}));var OQ;(function(e){e.filterSensitiveLog=t=>({...t})})(OQ=L.AssumeRoleWithSAMLResponse||(L.AssumeRoleWithSAMLResponse={}));var Ta=class extends Mn.STSServiceException{constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,Ta.prototype)}};L.IDPRejectedClaimException=Ta;var Ca=class extends Mn.STSServiceException{constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,Ca.prototype)}};L.InvalidIdentityTokenException=Ca;var LQ;(function(e){e.filterSensitiveLog=t=>({...t})})(LQ=L.AssumeRoleWithWebIdentityRequest||(L.AssumeRoleWithWebIdentityRequest={}));var qQ;(function(e){e.filterSensitiveLog=t=>({...t})})(qQ=L.AssumeRoleWithWebIdentityResponse||(L.AssumeRoleWithWebIdentityResponse={}));var xa=class extends Mn.STSServiceException{constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,xa.prototype)}};L.IDPCommunicationErrorException=xa;var MQ;(function(e){e.filterSensitiveLog=t=>({...t})})(MQ=L.DecodeAuthorizationMessageRequest||(L.DecodeAuthorizationMessageRequest={}));var zQ;(function(e){e.filterSensitiveLog=t=>({...t})})(zQ=L.DecodeAuthorizationMessageResponse||(L.DecodeAuthorizationMessageResponse={}));var Ia=class extends Mn.STSServiceException{constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,Ia.prototype)}};L.InvalidAuthorizationMessageException=Ia;var jQ;(function(e){e.filterSensitiveLog=t=>({...t})})(jQ=L.GetAccessKeyInfoRequest||(L.GetAccessKeyInfoRequest={}));var kQ;(function(e){e.filterSensitiveLog=t=>({...t})})(kQ=L.GetAccessKeyInfoResponse||(L.GetAccessKeyInfoResponse={}));var UQ;(function(e){e.filterSensitiveLog=t=>({...t})})(UQ=L.GetCallerIdentityRequest||(L.GetCallerIdentityRequest={}));var FQ;(function(e){e.filterSensitiveLog=t=>({...t})})(FQ=L.GetCallerIdentityResponse||(L.GetCallerIdentityResponse={}));var BQ;(function(e){e.filterSensitiveLog=t=>({...t})})(BQ=L.GetFederationTokenRequest||(L.GetFederationTokenRequest={}));var GQ;(function(e){e.filterSensitiveLog=t=>({...t})})(GQ=L.FederatedUser||(L.FederatedUser={}));var $Q;(function(e){e.filterSensitiveLog=t=>({...t})})($Q=L.GetFederationTokenResponse||(L.GetFederationTokenResponse={}));var VQ;(function(e){e.filterSensitiveLog=t=>({...t})})(VQ=L.GetSessionTokenRequest||(L.GetSessionTokenRequest={}));var KQ;(function(e){e.filterSensitiveLog=t=>({...t})})(KQ=L.GetSessionTokenResponse||(L.GetSessionTokenResponse={}))});var AS=f((G0e,HQ)=>{HQ.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
21
- `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var Y1=f(($0e,WQ)=>{WQ.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var TS=f((V0e,YQ)=>{YQ.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var J1=f((K0e,JQ)=>{JQ.exports={"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}});var X1=f(Ra=>{"use strict";var QQ=Ra&&Ra.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ra,"__esModule",{value:!0});var Q1=QQ(J1()),XQ=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function ZQ(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in Q1.default&&(e=Q1.default[e]),XQ(e))}Ra.default=ZQ});var xS=f(Pr=>{"use strict";var ef=Pr&&Pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.decodeHTML=Pr.decodeHTMLStrict=Pr.decodeXML=void 0;var CS=ef(AS()),eX=ef(Y1()),tX=ef(TS()),Z1=ef(X1()),rX=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Pr.decodeXML=tR(tX.default);Pr.decodeHTMLStrict=tR(CS.default);function tR(e){var t=rR(e);return function(r){return String(r).replace(rX,t)}}var eR=function(e,t){return e<t?1:-1};Pr.decodeHTML=function(){for(var e=Object.keys(eX.default).sort(eR),t=Object.keys(CS.default).sort(eR),r=0,n=0;r<t.length;r++)e[n]===t[r]?(t[r]+=";?",n++):t[r]+=";";var i=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=rR(CS.default);function o(a){return a.substr(-1)!==";"&&(a+=";"),s(a)}return function(a){return String(a).replace(i,o)}}();function rR(e){return function(r){if(r.charAt(1)==="#"){var n=r.charAt(2);return n==="X"||n==="x"?Z1.default(parseInt(r.substr(3),16)):Z1.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}});var RS=f(Tt=>{"use strict";var nR=Tt&&Tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.escapeUTF8=Tt.escape=Tt.encodeNonAsciiHTML=Tt.encodeHTML=Tt.encodeXML=void 0;var nX=nR(TS()),iR=oR(nX.default),sR=aR(iR);Tt.encodeXML=uR(iR);var iX=nR(AS()),IS=oR(iX.default),sX=aR(IS);Tt.encodeHTML=aX(IS,sX);Tt.encodeNonAsciiHTML=uR(IS);function oR(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function aR(e){for(var t=[],r=[],n=0,i=Object.keys(e);n<i.length;n++){var s=i[n];s.length===1?t.push("\\"+s):r.push(s)}t.sort();for(var o=0;o<t.length-1;o++){for(var a=o;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var c=1+a-o;c<3||t.splice(o,c,t[o]+"-"+t[a])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var cR=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,oX=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function tf(e){return"&#x"+(e.length>1?oX(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function aX(e,t){return function(r){return r.replace(t,function(n){return e[n]}).replace(cR,tf)}}var lR=new RegExp(sR.source+"|"+cR.source,"g");function cX(e){return e.replace(lR,tf)}Tt.escape=cX;function lX(e){return e.replace(sR,tf)}Tt.escapeUTF8=lX;function uR(e){return function(t){return t.replace(lR,function(r){return e[r]||tf(r)})}}});var fR=f(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.decodeXMLStrict=fe.decodeHTML5Strict=fe.decodeHTML4Strict=fe.decodeHTML5=fe.decodeHTML4=fe.decodeHTMLStrict=fe.decodeHTML=fe.decodeXML=fe.encodeHTML5=fe.encodeHTML4=fe.escapeUTF8=fe.escape=fe.encodeNonAsciiHTML=fe.encodeHTML=fe.encodeXML=fe.encode=fe.decodeStrict=fe.decode=void 0;var rf=xS(),dR=RS();function uX(e,t){return(!t||t<=0?rf.decodeXML:rf.decodeHTML)(e)}fe.decode=uX;function dX(e,t){return(!t||t<=0?rf.decodeXML:rf.decodeHTMLStrict)(e)}fe.decodeStrict=dX;function fX(e,t){return(!t||t<=0?dR.encodeXML:dR.encodeHTML)(e)}fe.encode=fX;var bi=RS();Object.defineProperty(fe,"encodeXML",{enumerable:!0,get:function(){return bi.encodeXML}});Object.defineProperty(fe,"encodeHTML",{enumerable:!0,get:function(){return bi.encodeHTML}});Object.defineProperty(fe,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return bi.encodeNonAsciiHTML}});Object.defineProperty(fe,"escape",{enumerable:!0,get:function(){return bi.escape}});Object.defineProperty(fe,"escapeUTF8",{enumerable:!0,get:function(){return bi.escapeUTF8}});Object.defineProperty(fe,"encodeHTML4",{enumerable:!0,get:function(){return bi.encodeHTML}});Object.defineProperty(fe,"encodeHTML5",{enumerable:!0,get:function(){return bi.encodeHTML}});var zn=xS();Object.defineProperty(fe,"decodeXML",{enumerable:!0,get:function(){return zn.decodeXML}});Object.defineProperty(fe,"decodeHTML",{enumerable:!0,get:function(){return zn.decodeHTML}});Object.defineProperty(fe,"decodeHTMLStrict",{enumerable:!0,get:function(){return zn.decodeHTMLStrict}});Object.defineProperty(fe,"decodeHTML4",{enumerable:!0,get:function(){return zn.decodeHTML}});Object.defineProperty(fe,"decodeHTML5",{enumerable:!0,get:function(){return zn.decodeHTML}});Object.defineProperty(fe,"decodeHTML4Strict",{enumerable:!0,get:function(){return zn.decodeHTMLStrict}});Object.defineProperty(fe,"decodeHTML5Strict",{enumerable:!0,get:function(){return zn.decodeHTMLStrict}});Object.defineProperty(fe,"decodeXMLStrict",{enumerable:!0,get:function(){return zn.decodeXML}})});var Nr=f(lr=>{"use strict";var mR=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",mX=mR+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",pR="["+mR+"]["+mX+"]*",pX=new RegExp("^"+pR+"$"),hX=function(e,t){let r=[],n=t.exec(e);for(;n;){let i=[],s=n.length;for(let o=0;o<s;o++)i.push(n[o]);r.push(i),n=t.exec(e)}return r},_X=function(e){let t=pX.exec(e);return!(t===null||typeof t>"u")};lr.isExist=function(e){return typeof e<"u"};lr.isEmptyObject=function(e){return Object.keys(e).length===0};lr.merge=function(e,t,r){if(t){let n=Object.keys(t),i=n.length;for(let s=0;s<i;s++)r==="strict"?e[n[s]]=[t[n[s]]]:e[n[s]]=t[n[s]]}};lr.getValue=function(e){return lr.isExist(e)?e:""};lr.buildOptions=function(e,t,r){var n={};if(!e)return t;for(let i=0;i<r.length;i++)e[r[i]]!==void 0?n[r[i]]=e[r[i]]:n[r[i]]=t[r[i]];return n};lr.isTagNameInArrayMode=function(e,t,r){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,r):t==="strict"};lr.isName=_X;lr.getAllMatches=hX;lr.nameRegexp=pR});var _R=f(hR=>{"use strict";var Ei=Nr(),DS=function(e,t,r){let n={};if((!e.child||Ei.isEmptyObject(e.child))&&(!e.attrsMap||Ei.isEmptyObject(e.attrsMap)))return Ei.isExist(e.val)?e.val:"";if(Ei.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=Ei.isTagNameInArrayMode(e.tagname,t.arrayMode,r);n[t.textNodeName]=s?[e.val]:e.val}Ei.merge(n,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let s=0;s<i.length;s++){let o=i[s];if(e.child[o]&&e.child[o].length>1){n[o]=[];for(let a in e.child[o])e.child[o].hasOwnProperty(a)&&n[o].push(DS(e.child[o][a],t,o))}else{let a=DS(e.child[o][0],t,o),c=t.arrayMode===!0&&typeof a=="object"||Ei.isTagNameInArrayMode(o,t.arrayMode,r);n[o]=c?[a]:a}}return n};hR.convertToJson=DS});var gR=f((Z0e,yR)=>{"use strict";yR.exports=function(e,t,r){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=r,this.addChild=function(n){Array.isArray(this.child[n.tagname])?this.child[n.tagname].push(n):this.child[n.tagname]=[n]}}});var Pa=f(of=>{"use strict";var Ai=Nr(),yX=Nr().buildOptions,nf=gR(),ebe="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,Ai.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var SR={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};of.defaultOptions=SR;var wR=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];of.props=wR;function sf(e,t,r){return t&&(r.trimValues&&(t=t.trim()),t=r.tagValueProcessor(t,e),t=bR(t,r.parseNodeValue,r.parseTrueNumberOnly)),t}function gX(e,t){if(t.ignoreNameSpace){let r=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(r[0]==="xmlns")return"";r.length===2&&(e=n+r[1])}return e}function bR(e,t,r){if(t&&typeof e=="string"){let n;return e.trim()===""||isNaN(e)?n=e==="true"?!0:e==="false"?!1:e:(e.indexOf("0x")!==-1?n=Number.parseInt(e,16):e.indexOf(".")!==-1?(n=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):n=Number.parseInt(e,10),r&&(n=String(n)===e?n:e)),n}else return Ai.isExist(e)?e:""}var vX=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function vR(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let r=Ai.getAllMatches(e,vX),n=r.length,i={};for(let s=0;s<n;s++){let o=gX(r[s][1],t);o.length&&(r[s][4]!==void 0?(t.trimValues&&(r[s][4]=r[s][4].trim()),r[s][4]=t.attrValueProcessor(r[s][4],o),i[t.attributeNamePrefix+o]=bR(r[s][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+o]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let s={};return s[t.attrNodeName]=i,s}return i}}var SX=function(e,t){e=e.replace(/\r\n?/g,`
22
- `),t=yX(t,SR,wR);let r=new nf("!xml"),n=r,i="";for(let s=0;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="/"){let a=Da(e,">",s,"Closing Tag is not closed."),c=e.substring(s+2,a).trim();if(t.ignoreNameSpace){let u=c.indexOf(":");u!==-1&&(c=c.substr(u+1))}n&&(n.val?n.val=Ai.getValue(n.val)+""+sf(c,i,t):n.val=sf(c,i,t)),t.stopNodes.length&&t.stopNodes.includes(n.tagname)&&(n.child=[],n.attrsMap==null&&(n.attrsMap={}),n.val=e.substr(n.startIndex+1,s-n.startIndex-1)),n=n.parent,i="",s=a}else if(e[s+1]==="?")s=Da(e,"?>",s,"Pi Tag is not closed.");else if(e.substr(s+1,3)==="!--")s=Da(e,"-->",s,"Comment is not closed.");else if(e.substr(s+1,2)==="!D"){let a=Da(e,">",s,"DOCTYPE is not closed.");e.substring(s,a).indexOf("[")>=0?s=e.indexOf("]>",s)+1:s=a}else if(e.substr(s+1,2)==="!["){let a=Da(e,"]]>",s,"CDATA is not closed.")-2,c=e.substring(s+9,a);if(i&&(n.val=Ai.getValue(n.val)+""+sf(n.tagname,i,t),i=""),t.cdataTagName){let u=new nf(t.cdataTagName,n,c);n.addChild(u),n.val=Ai.getValue(n.val)+t.cdataPositionChar,c&&(u.val=c)}else n.val=(n.val||"")+(c||"");s=a+2}else{let a=wX(e,s+1),c=a.data,u=a.index,d=c.indexOf(" "),p=c,m=!0;if(d!==-1&&(p=c.substr(0,d).replace(/\s\s*$/,""),c=c.substr(d+1)),t.ignoreNameSpace){let _=p.indexOf(":");_!==-1&&(p=p.substr(_+1),m=p!==a.data.substr(_+1))}if(n&&i&&n.tagname!=="!xml"&&(n.val=Ai.getValue(n.val)+""+sf(n.tagname,i,t)),c.length>0&&c.lastIndexOf("/")===c.length-1){p[p.length-1]==="/"?(p=p.substr(0,p.length-1),c=p):c=c.substr(0,c.length-1);let _=new nf(p,n,"");p!==c&&(_.attrsMap=vR(c,t)),n.addChild(_)}else{let _=new nf(p,n);t.stopNodes.length&&t.stopNodes.includes(_.tagname)&&(_.startIndex=u),p!==c&&m&&(_.attrsMap=vR(c,t)),n.addChild(_),n=_}i="",s=u}else i+=e[s];return r};function wX(e,t){let r,n="";for(let i=t;i<e.length;i++){let s=e[i];if(r)s===r&&(r="");else if(s==='"'||s==="'")r=s;else{if(s===">")return{data:n,index:i};s===" "&&(s=" ")}n+=s}}function Da(e,t,r,n){let i=e.indexOf(t,r);if(i===-1)throw new Error(n);return i+t.length-1}of.getTraversalObj=SX});var xR=f(CR=>{"use strict";var cf=Nr(),bX={allowBooleanAttributes:!1},EX=["allowBooleanAttributes"];CR.validate=function(e,t){t=cf.buildOptions(t,bX,EX);let r=[],n=!1,i=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s<e.length;s++)if(e[s]==="<"&&e[s+1]==="?"){if(s+=2,s=ER(e,s),s.err)return s}else if(e[s]==="<")if(s++,e[s]==="!"){s=AR(e,s);continue}else{let o=!1;e[s]==="/"&&(o=!0,s++);let a="";for(;s<e.length&&e[s]!==">"&&e[s]!==" "&&e[s]!==" "&&e[s]!==`
23
- `&&e[s]!=="\r";s++)a+=e[s];if(a=a.trim(),a[a.length-1]==="/"&&(a=a.substring(0,a.length-1),s--),!PX(a)){let d;return a.trim().length===0?d="There is an unnecessary space between tag name and backward slash '</ ..'.":d="Tag '"+a+"' is an invalid name.",ot("InvalidTag",d,ur(e,s))}let c=CX(e,s);if(c===!1)return ot("InvalidAttr","Attributes for '"+a+"' have open quote.",ur(e,s));let u=c.value;if(s=c.index,u[u.length-1]==="/"){u=u.substring(0,u.length-1);let d=TR(u,t);if(d===!0)n=!0;else return ot(d.err.code,d.err.msg,ur(e,s-u.length+d.err.line))}else if(o)if(c.tagClosed){if(u.trim().length>0)return ot("InvalidTag","Closing tag '"+a+"' can't have attributes or invalid starting.",ur(e,s));{let d=r.pop();if(a!==d)return ot("InvalidTag","Closing tag '"+d+"' is expected inplace of '"+a+"'.",ur(e,s));r.length==0&&(i=!0)}}else return ot("InvalidTag","Closing tag '"+a+"' doesn't have proper closing.",ur(e,s));else{let d=TR(u,t);if(d!==!0)return ot(d.err.code,d.err.msg,ur(e,s-u.length+d.err.line));if(i===!0)return ot("InvalidXml","Multiple possible root nodes found.",ur(e,s));r.push(a),n=!0}for(s++;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="!"){s++,s=AR(e,s);continue}else if(e[s+1]==="?"){if(s=ER(e,++s),s.err)return s}else break;else if(e[s]==="&"){let d=RX(e,s);if(d==-1)return ot("InvalidChar","char '&' is not expected.",ur(e,s));s=d}e[s]==="<"&&s--}else{if(e[s]===" "||e[s]===" "||e[s]===`
24
- `||e[s]==="\r")continue;return ot("InvalidChar","char '"+e[s]+"' is not expected.",ur(e,s))}if(n){if(r.length>0)return ot("InvalidXml","Invalid '"+JSON.stringify(r,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return ot("InvalidXml","Start tag expected.",1);return!0};function ER(e,t){for(var r=t;t<e.length;t++)if(e[t]=="?"||e[t]==" "){var n=e.substr(r,t-r);if(t>5&&n==="xml")return ot("InvalidXml","XML declaration allowed only at the start of the document.",ur(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function AR(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t<e.length;t++)if(e[t]==="<")r++;else if(e[t]===">"&&(r--,r===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}var AX='"',TX="'";function CX(e,t){let r="",n="",i=!1;for(;t<e.length;t++){if(e[t]===AX||e[t]===TX)if(n==="")n=e[t];else{if(n!==e[t])continue;n=""}else if(e[t]===">"&&n===""){i=!0;break}r+=e[t]}return n!==""?!1:{value:r,index:t,tagClosed:i}}var xX=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function TR(e,t){let r=cf.getAllMatches(e,xX),n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return ot("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",af(e,r[i][0]));if(r[i][3]===void 0&&!t.allowBooleanAttributes)return ot("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",af(e,r[i][0]));let s=r[i][2];if(!DX(s))return ot("InvalidAttr","Attribute '"+s+"' is an invalid name.",af(e,r[i][0]));if(!n.hasOwnProperty(s))n[s]=1;else return ot("InvalidAttr","Attribute '"+s+"' is repeated.",af(e,r[i][0]))}return!0}function IX(e,t){let r=/\d/;for(e[t]==="x"&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(r))break}return-1}function RX(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,IX(e,t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(e[t]===";")break;return-1}return t}function ot(e,t,r){return{err:{code:e,msg:t,line:r}}}function DX(e){return cf.isName(e)}function PX(e){return cf.isName(e)}function ur(e,t){var r=e.substring(0,t).split(/\r?\n/);return r.length}function af(e,t){return e.indexOf(t)+t.length}});var PR=f(DR=>{"use strict";var Or=function(e){return String.fromCharCode(e)},Ke={nilChar:Or(176),missingChar:Or(201),nilPremitive:Or(175),missingPremitive:Or(200),emptyChar:Or(178),emptyValue:Or(177),boundryChar:Or(179),objStart:Or(198),arrStart:Or(204),arrayEnd:Or(185)},NX=[Ke.nilChar,Ke.nilPremitive,Ke.missingChar,Ke.missingPremitive,Ke.boundryChar,Ke.emptyChar,Ke.emptyValue,Ke.arrayEnd,Ke.objStart,Ke.arrStart],Na=function(e,t,r){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?PS(e[0].val,t):PS(e,t);{let n=OX(e);if(n===!0){let i="";if(Array.isArray(t)){i+=Ke.arrStart;let s=t[0],o=e.length;if(typeof s=="string")for(let a=0;a<o;a++){let c=PS(e[a].val,s);i=NS(i,c)}else for(let a=0;a<o;a++){let c=Na(e[a],s,r);i=NS(i,c)}i+=Ke.arrayEnd}else{i+=Ke.objStart;let s=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let o in s){let a=s[o],c;!r.ignoreAttributes&&e.attrsMap&&e.attrsMap[a]?c=Na(e.attrsMap[a],t[a],r):a===r.textNodeName?c=Na(e.val,t[a],r):c=Na(e.child[a],t[a],r),i=NS(i,c)}}return i}else return n}},PS=function(e){switch(e){case void 0:return Ke.missingPremitive;case null:return Ke.nilPremitive;case"":return Ke.emptyValue;default:return e}},NS=function(e,t){return!IR(t[0])&&!IR(e[e.length-1])&&(e+=Ke.boundryChar),e+t},IR=function(e){return NX.indexOf(e)!==-1};function OX(e){return e===void 0?Ke.missingChar:e===null?Ke.nilChar:e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)?Ke.emptyChar:!0}var RR=Pa(),LX=Nr().buildOptions,qX=function(e,t,r){return r=LX(r,RR.defaultOptions,RR.props),Na(e,t,r)};DR.convert2nimn=qX});var LR=f(OR=>{"use strict";var lf=Nr(),MX=Nr().buildOptions,NR=Pa(),zX=function(e,t){return t=MX(t,NR.defaultOptions,NR.props),t.indentBy=t.indentBy||"",OS(e,t,0)},OS=function(e,t,r){let n="{",i=Object.keys(e.child);for(let a=0;a<i.length;a++){var s=i[a];if(e.child[s]&&e.child[s].length>1){n+='"'+s+'" : [ ';for(var o in e.child[s])n+=OS(e.child[s][o],t)+" , ";n=n.substr(0,n.length-1)+" ] "}else n+='"'+s+'" : '+OS(e.child[s][0],t)+" ,"}return lf.merge(n,e.attrsMap),lf.isEmptyObject(n)?lf.isExist(e.val)?e.val:"":(lf.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(n+='"'+t.textNodeName+'" : '+jX(e.val))),n[n.length-1]===","&&(n=n.substr(0,n.length-2)),n+"}")};function jX(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}OR.convertToJsonString=zX});var jR=f((sbe,zR)=>{"use strict";var kX=Nr().buildOptions,UX={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}},FX=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function LS(e){this.options=kX(e,UX,FX),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=HX),this.options.cdataTagName?this.isCDATA=WX:this.isCDATA=function(){return!1},this.replaceCDATAstr=BX,this.replaceCDATAarr=GX,this.options.format?(this.indentate=KX,this.tagEndChar=`>
20
+ ${(0,bm.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let r=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let n=`${t!=null&&t.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(t==null?void 0:t.endsWith("/"))?"/":""}`;return encodeURIComponent(n).replace(/%2F/g,"/")}return t}async getSignature(t,r,n,i){let s=await this.createStringToSign(t,r,i),o=new this.sha256(await n);return o.update(s),(0,bm.toHex)(await o.digest())}getSigningKey(t,r,n,i){return(0,Am.getSigningKey)(this.sha256,t,n,r,i||this.service)}};Cm.SignatureV4=fb;var Tm=e=>{let t=(0,soe.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},PD=e=>Object.keys(e).sort().join(";")});var DD=d(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.prepareRequest=Nt.moveHeadersToQuery=Nt.getPayloadHash=Nt.getCanonicalQuery=Nt.getCanonicalHeaders=void 0;var ND=M();ND.__exportStar(OD(),Nt);var ooe=ib();Object.defineProperty(Nt,"getCanonicalHeaders",{enumerable:!0,get:function(){return ooe.getCanonicalHeaders}});var aoe=ob();Object.defineProperty(Nt,"getCanonicalQuery",{enumerable:!0,get:function(){return aoe.getCanonicalQuery}});var coe=ab();Object.defineProperty(Nt,"getPayloadHash",{enumerable:!0,get:function(){return coe.getPayloadHash}});var loe=lb();Object.defineProperty(Nt,"moveHeadersToQuery",{enumerable:!0,get:function(){return loe.moveHeadersToQuery}});var uoe=ub();Object.defineProperty(Nt,"prepareRequest",{enumerable:!0,get:function(){return uoe.prepareRequest}});ND.__exportStar(rb(),Nt)});var MD=d(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.resolveSigV4AuthConfig=Qs.resolveAwsAuthConfig=void 0;var doe=_D(),qD=DD(),foe=3e5,moe=e=>{let t=e.credentials?LD(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=gc(e.signer):s=()=>gc(e.region)().then(async o=>[await e.regionInfoProvider(o,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},o]).then(([o,a])=>{let{signingRegion:c,signingService:l}=o;e.signingRegion=e.signingRegion||c||a,e.signingName=e.signingName||l||e.serviceId;let u={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r},p=e.signerConstructor||qD.SignatureV4;return new p(u)}),{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s}};Qs.resolveAwsAuthConfig=moe;var poe=e=>{let t=e.credentials?LD(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=gc(e.signer):s=gc(new qD.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:r})),{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s}};Qs.resolveSigV4AuthConfig=poe;var gc=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},LD=e=>typeof e=="function"?(0,doe.memoize)(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<foe,t=>t.expiration!==void 0):gc(e)});var mb=d(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.getSkewCorrectedDate=void 0;var _oe=e=>new Date(Date.now()+e);xm.getSkewCorrectedDate=_oe});var jD=d(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.isClockSkewed=void 0;var hoe=mb(),yoe=(e,t)=>Math.abs((0,hoe.getSkewCorrectedDate)(t).getTime()-e)>=3e5;Im.isClockSkewed=yoe});var zD=d(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.getUpdatedSystemClockOffset=void 0;var goe=jD(),voe=(e,t)=>{let r=Date.parse(e);return(0,goe.isClockSkewed)(r,t)?r-Date.now():t};Rm.getUpdatedSystemClockOffset=voe});var BD=d(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getSigV4AuthPlugin=Wt.getAwsAuthPlugin=Wt.awsAuthMiddlewareOptions=Wt.awsAuthMiddleware=void 0;var UD=Tt(),Soe=mb(),kD=zD(),woe=e=>(t,r)=>async function(n){if(!UD.HttpRequest.isInstance(n.request))return t(n);let i=await e.signer(),s=await t({...n,request:await i.sign(n.request,{signingDate:(0,Soe.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:r.signing_region,signingService:r.signing_service})}).catch(a=>{var c;let l=(c=a.ServerTime)!==null&&c!==void 0?c:FD(a.$response);throw l&&(e.systemClockOffset=(0,kD.getUpdatedSystemClockOffset)(l,e.systemClockOffset)),a}),o=FD(s.response);return o&&(e.systemClockOffset=(0,kD.getUpdatedSystemClockOffset)(o,e.systemClockOffset)),s};Wt.awsAuthMiddleware=woe;var FD=e=>{var t,r,n;return UD.HttpResponse.isInstance(e)?(r=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&r!==void 0?r:(n=e.headers)===null||n===void 0?void 0:n.Date:void 0};Wt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var Eoe=e=>({applyToStack:t=>{t.addRelativeTo((0,Wt.awsAuthMiddleware)(e),Wt.awsAuthMiddlewareOptions)}});Wt.getAwsAuthPlugin=Eoe;Wt.getSigV4AuthPlugin=Wt.getAwsAuthPlugin});var Nn=d(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var GD=M();GD.__exportStar(MD(),Pm);GD.__exportStar(BD(),Pm)});var $D=d(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.resolveUserAgentConfig=void 0;function boe(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}Om.resolveUserAgentConfig=boe});var VD=d(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.UA_ESCAPE_REGEX=Fr.SPACE=Fr.X_AMZ_USER_AGENT=Fr.USER_AGENT=void 0;Fr.USER_AGENT="user-agent";Fr.X_AMZ_USER_AGENT="x-amz-user-agent";Fr.SPACE=" ";Fr.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var HD=d(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.getUserAgentPlugin=Ur.getUserAgentMiddlewareOptions=Ur.userAgentMiddleware=void 0;var Aoe=Tt(),li=VD(),Toe=e=>(t,r)=>async n=>{var i,s;let{request:o}=n;if(!Aoe.HttpRequest.isInstance(o))return t(n);let{headers:a}=o,c=((i=r==null?void 0:r.userAgent)===null||i===void 0?void 0:i.map(pb))||[],l=(await e.defaultUserAgentProvider()).map(pb),u=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(pb))||[],p=[...l,...c,...u].join(li.SPACE),m=[...l.filter(h=>h.startsWith("aws-sdk-")),...u].join(li.SPACE);return e.runtime!=="browser"?(m&&(a[li.X_AMZ_USER_AGENT]=a[li.X_AMZ_USER_AGENT]?`${a[li.USER_AGENT]} ${m}`:m),a[li.USER_AGENT]=p):a[li.X_AMZ_USER_AGENT]=p,t({...n,request:o})};Ur.userAgentMiddleware=Toe;var pb=([e,t])=>{let r=e.indexOf("/"),n=e.substring(0,r),i=e.substring(r+1);return n==="api"&&(i=i.toLowerCase()),[n,i,t].filter(s=>s&&s.length>0).map(s=>s==null?void 0:s.replace(li.UA_ESCAPE_REGEX,"_")).join("/")};Ur.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var Coe=e=>({applyToStack:t=>{t.add((0,Ur.userAgentMiddleware)(e),Ur.getUserAgentMiddlewareOptions)}});Ur.getUserAgentPlugin=Coe});var vc=d(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var KD=M();KD.__exportStar($D(),Nm);KD.__exportStar(HD(),Nm)});var WD=d((xLe,xoe)=>{xoe.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.78.0","@aws-sdk/config-resolver":"3.78.0","@aws-sdk/credential-provider-node":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-endpoint-discovery":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0","@aws-sdk/util-waiter":"3.78.0",tslib:"^2.3.1",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","@types/uuid":"^8.3.0",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-dynamodb"}}});var qm=d(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.STSServiceException=void 0;var Ioe=P(),Sc=class extends Ioe.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Sc.prototype)}};Dm.STSServiceException=Sc});var vr=d(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.GetSessionTokenResponse=q.GetSessionTokenRequest=q.GetFederationTokenResponse=q.FederatedUser=q.GetFederationTokenRequest=q.GetCallerIdentityResponse=q.GetCallerIdentityRequest=q.GetAccessKeyInfoResponse=q.GetAccessKeyInfoRequest=q.InvalidAuthorizationMessageException=q.DecodeAuthorizationMessageResponse=q.DecodeAuthorizationMessageRequest=q.IDPCommunicationErrorException=q.AssumeRoleWithWebIdentityResponse=q.AssumeRoleWithWebIdentityRequest=q.InvalidIdentityTokenException=q.IDPRejectedClaimException=q.AssumeRoleWithSAMLResponse=q.AssumeRoleWithSAMLRequest=q.RegionDisabledException=q.PackedPolicyTooLargeException=q.MalformedPolicyDocumentException=q.ExpiredTokenException=q.AssumeRoleResponse=q.Credentials=q.AssumeRoleRequest=q.Tag=q.PolicyDescriptorType=q.AssumedRoleUser=void 0;var ui=qm(),Roe;(function(e){e.filterSensitiveLog=t=>({...t})})(Roe=q.AssumedRoleUser||(q.AssumedRoleUser={}));var Poe;(function(e){e.filterSensitiveLog=t=>({...t})})(Poe=q.PolicyDescriptorType||(q.PolicyDescriptorType={}));var Ooe;(function(e){e.filterSensitiveLog=t=>({...t})})(Ooe=q.Tag||(q.Tag={}));var Noe;(function(e){e.filterSensitiveLog=t=>({...t})})(Noe=q.AssumeRoleRequest||(q.AssumeRoleRequest={}));var Doe;(function(e){e.filterSensitiveLog=t=>({...t})})(Doe=q.Credentials||(q.Credentials={}));var qoe;(function(e){e.filterSensitiveLog=t=>({...t})})(qoe=q.AssumeRoleResponse||(q.AssumeRoleResponse={}));var wc=class extends ui.STSServiceException{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,wc.prototype)}};q.ExpiredTokenException=wc;var Ec=class extends ui.STSServiceException{constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,Ec.prototype)}};q.MalformedPolicyDocumentException=Ec;var bc=class extends ui.STSServiceException{constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,bc.prototype)}};q.PackedPolicyTooLargeException=bc;var Ac=class extends ui.STSServiceException{constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,Ac.prototype)}};q.RegionDisabledException=Ac;var Loe;(function(e){e.filterSensitiveLog=t=>({...t})})(Loe=q.AssumeRoleWithSAMLRequest||(q.AssumeRoleWithSAMLRequest={}));var Moe;(function(e){e.filterSensitiveLog=t=>({...t})})(Moe=q.AssumeRoleWithSAMLResponse||(q.AssumeRoleWithSAMLResponse={}));var Tc=class extends ui.STSServiceException{constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,Tc.prototype)}};q.IDPRejectedClaimException=Tc;var Cc=class extends ui.STSServiceException{constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,Cc.prototype)}};q.InvalidIdentityTokenException=Cc;var joe;(function(e){e.filterSensitiveLog=t=>({...t})})(joe=q.AssumeRoleWithWebIdentityRequest||(q.AssumeRoleWithWebIdentityRequest={}));var zoe;(function(e){e.filterSensitiveLog=t=>({...t})})(zoe=q.AssumeRoleWithWebIdentityResponse||(q.AssumeRoleWithWebIdentityResponse={}));var xc=class extends ui.STSServiceException{constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,xc.prototype)}};q.IDPCommunicationErrorException=xc;var koe;(function(e){e.filterSensitiveLog=t=>({...t})})(koe=q.DecodeAuthorizationMessageRequest||(q.DecodeAuthorizationMessageRequest={}));var Foe;(function(e){e.filterSensitiveLog=t=>({...t})})(Foe=q.DecodeAuthorizationMessageResponse||(q.DecodeAuthorizationMessageResponse={}));var Ic=class extends ui.STSServiceException{constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,Ic.prototype)}};q.InvalidAuthorizationMessageException=Ic;var Uoe;(function(e){e.filterSensitiveLog=t=>({...t})})(Uoe=q.GetAccessKeyInfoRequest||(q.GetAccessKeyInfoRequest={}));var Boe;(function(e){e.filterSensitiveLog=t=>({...t})})(Boe=q.GetAccessKeyInfoResponse||(q.GetAccessKeyInfoResponse={}));var Goe;(function(e){e.filterSensitiveLog=t=>({...t})})(Goe=q.GetCallerIdentityRequest||(q.GetCallerIdentityRequest={}));var $oe;(function(e){e.filterSensitiveLog=t=>({...t})})($oe=q.GetCallerIdentityResponse||(q.GetCallerIdentityResponse={}));var Voe;(function(e){e.filterSensitiveLog=t=>({...t})})(Voe=q.GetFederationTokenRequest||(q.GetFederationTokenRequest={}));var Hoe;(function(e){e.filterSensitiveLog=t=>({...t})})(Hoe=q.FederatedUser||(q.FederatedUser={}));var Koe;(function(e){e.filterSensitiveLog=t=>({...t})})(Koe=q.GetFederationTokenResponse||(q.GetFederationTokenResponse={}));var Woe;(function(e){e.filterSensitiveLog=t=>({...t})})(Woe=q.GetSessionTokenRequest||(q.GetSessionTokenRequest={}));var Yoe;(function(e){e.filterSensitiveLog=t=>({...t})})(Yoe=q.GetSessionTokenResponse||(q.GetSessionTokenResponse={}))});var _b=d((PLe,Joe)=>{Joe.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
21
+ `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var YD=d((OLe,Qoe)=>{Qoe.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var hb=d((NLe,Xoe)=>{Xoe.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var JD=d((DLe,Zoe)=>{Zoe.exports={"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}});var XD=d(Rc=>{"use strict";var eae=Rc&&Rc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rc,"__esModule",{value:!0});var QD=eae(JD()),tae=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function rae(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in QD.default&&(e=QD.default[e]),tae(e))}Rc.default=rae});var gb=d(Br=>{"use strict";var Lm=Br&&Br.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Br,"__esModule",{value:!0});Br.decodeHTML=Br.decodeHTMLStrict=Br.decodeXML=void 0;var yb=Lm(_b()),nae=Lm(YD()),iae=Lm(hb()),ZD=Lm(XD()),sae=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Br.decodeXML=tq(iae.default);Br.decodeHTMLStrict=tq(yb.default);function tq(e){var t=rq(e);return function(r){return String(r).replace(sae,t)}}var eq=function(e,t){return e<t?1:-1};Br.decodeHTML=function(){for(var e=Object.keys(nae.default).sort(eq),t=Object.keys(yb.default).sort(eq),r=0,n=0;r<t.length;r++)e[n]===t[r]?(t[r]+=";?",n++):t[r]+=";";var i=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=rq(yb.default);function o(a){return a.substr(-1)!==";"&&(a+=";"),s(a)}return function(a){return String(a).replace(i,o)}}();function rq(e){return function(r){if(r.charAt(1)==="#"){var n=r.charAt(2);return n==="X"||n==="x"?ZD.default(parseInt(r.substr(3),16)):ZD.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}});var Sb=d(Dt=>{"use strict";var nq=Dt&&Dt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.escapeUTF8=Dt.escape=Dt.encodeNonAsciiHTML=Dt.encodeHTML=Dt.encodeXML=void 0;var oae=nq(hb()),iq=oq(oae.default),sq=aq(iq);Dt.encodeXML=uq(iq);var aae=nq(_b()),vb=oq(aae.default),cae=aq(vb);Dt.encodeHTML=uae(vb,cae);Dt.encodeNonAsciiHTML=uq(vb);function oq(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function aq(e){for(var t=[],r=[],n=0,i=Object.keys(e);n<i.length;n++){var s=i[n];s.length===1?t.push("\\"+s):r.push(s)}t.sort();for(var o=0;o<t.length-1;o++){for(var a=o;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var c=1+a-o;c<3||t.splice(o,c,t[o]+"-"+t[a])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var cq=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,lae=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Mm(e){return"&#x"+(e.length>1?lae(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function uae(e,t){return function(r){return r.replace(t,function(n){return e[n]}).replace(cq,Mm)}}var lq=new RegExp(sq.source+"|"+cq.source,"g");function dae(e){return e.replace(lq,Mm)}Dt.escape=dae;function fae(e){return e.replace(sq,Mm)}Dt.escapeUTF8=fae;function uq(e){return function(t){return t.replace(lq,function(r){return e[r]||Mm(r)})}}});var fq=d(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.decodeXMLStrict=pe.decodeHTML5Strict=pe.decodeHTML4Strict=pe.decodeHTML5=pe.decodeHTML4=pe.decodeHTMLStrict=pe.decodeHTML=pe.decodeXML=pe.encodeHTML5=pe.encodeHTML4=pe.escapeUTF8=pe.escape=pe.encodeNonAsciiHTML=pe.encodeHTML=pe.encodeXML=pe.encode=pe.decodeStrict=pe.decode=void 0;var jm=gb(),dq=Sb();function mae(e,t){return(!t||t<=0?jm.decodeXML:jm.decodeHTML)(e)}pe.decode=mae;function pae(e,t){return(!t||t<=0?jm.decodeXML:jm.decodeHTMLStrict)(e)}pe.decodeStrict=pae;function _ae(e,t){return(!t||t<=0?dq.encodeXML:dq.encodeHTML)(e)}pe.encode=_ae;var Qi=Sb();Object.defineProperty(pe,"encodeXML",{enumerable:!0,get:function(){return Qi.encodeXML}});Object.defineProperty(pe,"encodeHTML",{enumerable:!0,get:function(){return Qi.encodeHTML}});Object.defineProperty(pe,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return Qi.encodeNonAsciiHTML}});Object.defineProperty(pe,"escape",{enumerable:!0,get:function(){return Qi.escape}});Object.defineProperty(pe,"escapeUTF8",{enumerable:!0,get:function(){return Qi.escapeUTF8}});Object.defineProperty(pe,"encodeHTML4",{enumerable:!0,get:function(){return Qi.encodeHTML}});Object.defineProperty(pe,"encodeHTML5",{enumerable:!0,get:function(){return Qi.encodeHTML}});var di=gb();Object.defineProperty(pe,"decodeXML",{enumerable:!0,get:function(){return di.decodeXML}});Object.defineProperty(pe,"decodeHTML",{enumerable:!0,get:function(){return di.decodeHTML}});Object.defineProperty(pe,"decodeHTMLStrict",{enumerable:!0,get:function(){return di.decodeHTMLStrict}});Object.defineProperty(pe,"decodeHTML4",{enumerable:!0,get:function(){return di.decodeHTML}});Object.defineProperty(pe,"decodeHTML5",{enumerable:!0,get:function(){return di.decodeHTML}});Object.defineProperty(pe,"decodeHTML4Strict",{enumerable:!0,get:function(){return di.decodeHTMLStrict}});Object.defineProperty(pe,"decodeHTML5Strict",{enumerable:!0,get:function(){return di.decodeHTMLStrict}});Object.defineProperty(pe,"decodeXMLStrict",{enumerable:!0,get:function(){return di.decodeXML}})});var Gr=d(Sr=>{"use strict";var mq=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",hae=mq+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",pq="["+mq+"]["+hae+"]*",yae=new RegExp("^"+pq+"$"),gae=function(e,t){let r=[],n=t.exec(e);for(;n;){let i=[],s=n.length;for(let o=0;o<s;o++)i.push(n[o]);r.push(i),n=t.exec(e)}return r},vae=function(e){let t=yae.exec(e);return!(t===null||typeof t>"u")};Sr.isExist=function(e){return typeof e<"u"};Sr.isEmptyObject=function(e){return Object.keys(e).length===0};Sr.merge=function(e,t,r){if(t){let n=Object.keys(t),i=n.length;for(let s=0;s<i;s++)r==="strict"?e[n[s]]=[t[n[s]]]:e[n[s]]=t[n[s]]}};Sr.getValue=function(e){return Sr.isExist(e)?e:""};Sr.buildOptions=function(e,t,r){var n={};if(!e)return t;for(let i=0;i<r.length;i++)e[r[i]]!==void 0?n[r[i]]=e[r[i]]:n[r[i]]=t[r[i]];return n};Sr.isTagNameInArrayMode=function(e,t,r){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,r):t==="strict"};Sr.isName=vae;Sr.getAllMatches=gae;Sr.nameRegexp=pq});var hq=d(_q=>{"use strict";var Xi=Gr(),wb=function(e,t,r){let n={};if((!e.child||Xi.isEmptyObject(e.child))&&(!e.attrsMap||Xi.isEmptyObject(e.attrsMap)))return Xi.isExist(e.val)?e.val:"";if(Xi.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=Xi.isTagNameInArrayMode(e.tagname,t.arrayMode,r);n[t.textNodeName]=s?[e.val]:e.val}Xi.merge(n,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let s=0;s<i.length;s++){let o=i[s];if(e.child[o]&&e.child[o].length>1){n[o]=[];for(let a in e.child[o])e.child[o].hasOwnProperty(a)&&n[o].push(wb(e.child[o][a],t,o))}else{let a=wb(e.child[o][0],t,o),c=t.arrayMode===!0&&typeof a=="object"||Xi.isTagNameInArrayMode(o,t.arrayMode,r);n[o]=c?[a]:a}}return n};_q.convertToJson=wb});var gq=d((FLe,yq)=>{"use strict";yq.exports=function(e,t,r){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=r,this.addChild=function(n){Array.isArray(this.child[n.tagname])?this.child[n.tagname].push(n):this.child[n.tagname]=[n]}}});var Oc=d(Fm=>{"use strict";var Zi=Gr(),Sae=Gr().buildOptions,zm=gq(),ULe="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,Zi.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var Sq={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};Fm.defaultOptions=Sq;var wq=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];Fm.props=wq;function km(e,t,r){return t&&(r.trimValues&&(t=t.trim()),t=r.tagValueProcessor(t,e),t=Eq(t,r.parseNodeValue,r.parseTrueNumberOnly)),t}function wae(e,t){if(t.ignoreNameSpace){let r=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(r[0]==="xmlns")return"";r.length===2&&(e=n+r[1])}return e}function Eq(e,t,r){if(t&&typeof e=="string"){let n;return e.trim()===""||isNaN(e)?n=e==="true"?!0:e==="false"?!1:e:(e.indexOf("0x")!==-1?n=Number.parseInt(e,16):e.indexOf(".")!==-1?(n=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):n=Number.parseInt(e,10),r&&(n=String(n)===e?n:e)),n}else return Zi.isExist(e)?e:""}var Eae=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function vq(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let r=Zi.getAllMatches(e,Eae),n=r.length,i={};for(let s=0;s<n;s++){let o=wae(r[s][1],t);o.length&&(r[s][4]!==void 0?(t.trimValues&&(r[s][4]=r[s][4].trim()),r[s][4]=t.attrValueProcessor(r[s][4],o),i[t.attributeNamePrefix+o]=Eq(r[s][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+o]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let s={};return s[t.attrNodeName]=i,s}return i}}var bae=function(e,t){e=e.replace(/\r\n?/g,`
22
+ `),t=Sae(t,Sq,wq);let r=new zm("!xml"),n=r,i="";for(let s=0;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="/"){let a=Pc(e,">",s,"Closing Tag is not closed."),c=e.substring(s+2,a).trim();if(t.ignoreNameSpace){let l=c.indexOf(":");l!==-1&&(c=c.substr(l+1))}n&&(n.val?n.val=Zi.getValue(n.val)+""+km(c,i,t):n.val=km(c,i,t)),t.stopNodes.length&&t.stopNodes.includes(n.tagname)&&(n.child=[],n.attrsMap==null&&(n.attrsMap={}),n.val=e.substr(n.startIndex+1,s-n.startIndex-1)),n=n.parent,i="",s=a}else if(e[s+1]==="?")s=Pc(e,"?>",s,"Pi Tag is not closed.");else if(e.substr(s+1,3)==="!--")s=Pc(e,"-->",s,"Comment is not closed.");else if(e.substr(s+1,2)==="!D"){let a=Pc(e,">",s,"DOCTYPE is not closed.");e.substring(s,a).indexOf("[")>=0?s=e.indexOf("]>",s)+1:s=a}else if(e.substr(s+1,2)==="!["){let a=Pc(e,"]]>",s,"CDATA is not closed.")-2,c=e.substring(s+9,a);if(i&&(n.val=Zi.getValue(n.val)+""+km(n.tagname,i,t),i=""),t.cdataTagName){let l=new zm(t.cdataTagName,n,c);n.addChild(l),n.val=Zi.getValue(n.val)+t.cdataPositionChar,c&&(l.val=c)}else n.val=(n.val||"")+(c||"");s=a+2}else{let a=Aae(e,s+1),c=a.data,l=a.index,u=c.indexOf(" "),p=c,m=!0;if(u!==-1&&(p=c.substr(0,u).replace(/\s\s*$/,""),c=c.substr(u+1)),t.ignoreNameSpace){let h=p.indexOf(":");h!==-1&&(p=p.substr(h+1),m=p!==a.data.substr(h+1))}if(n&&i&&n.tagname!=="!xml"&&(n.val=Zi.getValue(n.val)+""+km(n.tagname,i,t)),c.length>0&&c.lastIndexOf("/")===c.length-1){p[p.length-1]==="/"?(p=p.substr(0,p.length-1),c=p):c=c.substr(0,c.length-1);let h=new zm(p,n,"");p!==c&&(h.attrsMap=vq(c,t)),n.addChild(h)}else{let h=new zm(p,n);t.stopNodes.length&&t.stopNodes.includes(h.tagname)&&(h.startIndex=l),p!==c&&m&&(h.attrsMap=vq(c,t)),n.addChild(h),n=h}i="",s=l}else i+=e[s];return r};function Aae(e,t){let r,n="";for(let i=t;i<e.length;i++){let s=e[i];if(r)s===r&&(r="");else if(s==='"'||s==="'")r=s;else{if(s===">")return{data:n,index:i};s===" "&&(s=" ")}n+=s}}function Pc(e,t,r,n){let i=e.indexOf(t,r);if(i===-1)throw new Error(n);return i+t.length-1}Fm.getTraversalObj=bae});var xq=d(Cq=>{"use strict";var Bm=Gr(),Tae={allowBooleanAttributes:!1},Cae=["allowBooleanAttributes"];Cq.validate=function(e,t){t=Bm.buildOptions(t,Tae,Cae);let r=[],n=!1,i=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s<e.length;s++)if(e[s]==="<"&&e[s+1]==="?"){if(s+=2,s=bq(e,s),s.err)return s}else if(e[s]==="<")if(s++,e[s]==="!"){s=Aq(e,s);continue}else{let o=!1;e[s]==="/"&&(o=!0,s++);let a="";for(;s<e.length&&e[s]!==">"&&e[s]!==" "&&e[s]!==" "&&e[s]!==`
23
+ `&&e[s]!=="\r";s++)a+=e[s];if(a=a.trim(),a[a.length-1]==="/"&&(a=a.substring(0,a.length-1),s--),!qae(a)){let u;return a.trim().length===0?u="There is an unnecessary space between tag name and backward slash '</ ..'.":u="Tag '"+a+"' is an invalid name.",dt("InvalidTag",u,wr(e,s))}let c=Rae(e,s);if(c===!1)return dt("InvalidAttr","Attributes for '"+a+"' have open quote.",wr(e,s));let l=c.value;if(s=c.index,l[l.length-1]==="/"){l=l.substring(0,l.length-1);let u=Tq(l,t);if(u===!0)n=!0;else return dt(u.err.code,u.err.msg,wr(e,s-l.length+u.err.line))}else if(o)if(c.tagClosed){if(l.trim().length>0)return dt("InvalidTag","Closing tag '"+a+"' can't have attributes or invalid starting.",wr(e,s));{let u=r.pop();if(a!==u)return dt("InvalidTag","Closing tag '"+u+"' is expected inplace of '"+a+"'.",wr(e,s));r.length==0&&(i=!0)}}else return dt("InvalidTag","Closing tag '"+a+"' doesn't have proper closing.",wr(e,s));else{let u=Tq(l,t);if(u!==!0)return dt(u.err.code,u.err.msg,wr(e,s-l.length+u.err.line));if(i===!0)return dt("InvalidXml","Multiple possible root nodes found.",wr(e,s));r.push(a),n=!0}for(s++;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="!"){s++,s=Aq(e,s);continue}else if(e[s+1]==="?"){if(s=bq(e,++s),s.err)return s}else break;else if(e[s]==="&"){let u=Nae(e,s);if(u==-1)return dt("InvalidChar","char '&' is not expected.",wr(e,s));s=u}e[s]==="<"&&s--}else{if(e[s]===" "||e[s]===" "||e[s]===`
24
+ `||e[s]==="\r")continue;return dt("InvalidChar","char '"+e[s]+"' is not expected.",wr(e,s))}if(n){if(r.length>0)return dt("InvalidXml","Invalid '"+JSON.stringify(r,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return dt("InvalidXml","Start tag expected.",1);return!0};function bq(e,t){for(var r=t;t<e.length;t++)if(e[t]=="?"||e[t]==" "){var n=e.substr(r,t-r);if(t>5&&n==="xml")return dt("InvalidXml","XML declaration allowed only at the start of the document.",wr(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function Aq(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t<e.length;t++)if(e[t]==="<")r++;else if(e[t]===">"&&(r--,r===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}var xae='"',Iae="'";function Rae(e,t){let r="",n="",i=!1;for(;t<e.length;t++){if(e[t]===xae||e[t]===Iae)if(n==="")n=e[t];else{if(n!==e[t])continue;n=""}else if(e[t]===">"&&n===""){i=!0;break}r+=e[t]}return n!==""?!1:{value:r,index:t,tagClosed:i}}var Pae=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Tq(e,t){let r=Bm.getAllMatches(e,Pae),n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return dt("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",Um(e,r[i][0]));if(r[i][3]===void 0&&!t.allowBooleanAttributes)return dt("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",Um(e,r[i][0]));let s=r[i][2];if(!Dae(s))return dt("InvalidAttr","Attribute '"+s+"' is an invalid name.",Um(e,r[i][0]));if(!n.hasOwnProperty(s))n[s]=1;else return dt("InvalidAttr","Attribute '"+s+"' is repeated.",Um(e,r[i][0]))}return!0}function Oae(e,t){let r=/\d/;for(e[t]==="x"&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(r))break}return-1}function Nae(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,Oae(e,t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(e[t]===";")break;return-1}return t}function dt(e,t,r){return{err:{code:e,msg:t,line:r}}}function Dae(e){return Bm.isName(e)}function qae(e){return Bm.isName(e)}function wr(e,t){var r=e.substring(0,t).split(/\r?\n/);return r.length}function Um(e,t){return e.indexOf(t)+t.length}});var Oq=d(Pq=>{"use strict";var $r=function(e){return String.fromCharCode(e)},We={nilChar:$r(176),missingChar:$r(201),nilPremitive:$r(175),missingPremitive:$r(200),emptyChar:$r(178),emptyValue:$r(177),boundryChar:$r(179),objStart:$r(198),arrStart:$r(204),arrayEnd:$r(185)},Lae=[We.nilChar,We.nilPremitive,We.missingChar,We.missingPremitive,We.boundryChar,We.emptyChar,We.emptyValue,We.arrayEnd,We.objStart,We.arrStart],Nc=function(e,t,r){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?Eb(e[0].val,t):Eb(e,t);{let n=Mae(e);if(n===!0){let i="";if(Array.isArray(t)){i+=We.arrStart;let s=t[0],o=e.length;if(typeof s=="string")for(let a=0;a<o;a++){let c=Eb(e[a].val,s);i=bb(i,c)}else for(let a=0;a<o;a++){let c=Nc(e[a],s,r);i=bb(i,c)}i+=We.arrayEnd}else{i+=We.objStart;let s=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let o in s){let a=s[o],c;!r.ignoreAttributes&&e.attrsMap&&e.attrsMap[a]?c=Nc(e.attrsMap[a],t[a],r):a===r.textNodeName?c=Nc(e.val,t[a],r):c=Nc(e.child[a],t[a],r),i=bb(i,c)}}return i}else return n}},Eb=function(e){switch(e){case void 0:return We.missingPremitive;case null:return We.nilPremitive;case"":return We.emptyValue;default:return e}},bb=function(e,t){return!Iq(t[0])&&!Iq(e[e.length-1])&&(e+=We.boundryChar),e+t},Iq=function(e){return Lae.indexOf(e)!==-1};function Mae(e){return e===void 0?We.missingChar:e===null?We.nilChar:e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)?We.emptyChar:!0}var Rq=Oc(),jae=Gr().buildOptions,zae=function(e,t,r){return r=jae(r,Rq.defaultOptions,Rq.props),Nc(e,t,r)};Pq.convert2nimn=zae});var qq=d(Dq=>{"use strict";var Gm=Gr(),kae=Gr().buildOptions,Nq=Oc(),Fae=function(e,t){return t=kae(t,Nq.defaultOptions,Nq.props),t.indentBy=t.indentBy||"",Ab(e,t,0)},Ab=function(e,t,r){let n="{",i=Object.keys(e.child);for(let a=0;a<i.length;a++){var s=i[a];if(e.child[s]&&e.child[s].length>1){n+='"'+s+'" : [ ';for(var o in e.child[s])n+=Ab(e.child[s][o],t)+" , ";n=n.substr(0,n.length-1)+" ] "}else n+='"'+s+'" : '+Ab(e.child[s][0],t)+" ,"}return Gm.merge(n,e.attrsMap),Gm.isEmptyObject(n)?Gm.isExist(e.val)?e.val:"":(Gm.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(n+='"'+t.textNodeName+'" : '+Uae(e.val))),n[n.length-1]===","&&(n=n.substr(0,n.length-2)),n+"}")};function Uae(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}Dq.convertToJsonString=Fae});var zq=d((HLe,jq)=>{"use strict";var Bae=Gr().buildOptions,Gae={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}},$ae=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function Tb(e){this.options=Bae(e,Gae,$ae),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Jae),this.options.cdataTagName?this.isCDATA=Qae:this.isCDATA=function(){return!1},this.replaceCDATAstr=Vae,this.replaceCDATAarr=Hae,this.options.format?(this.indentate=Yae,this.tagEndChar=`>
25
25
  `,this.newLine=`
26
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=VX,this.buildObjNode=$X):(this.buildTextNode=MR,this.buildObjNode=qR),this.buildTextValNode=MR,this.buildObjectNode=qR}LS.prototype.parse=function(e){return this.j2x(e,0).val};LS.prototype.j2x=function(e,t){let r="",n="",i=Object.keys(e),s=i.length;for(let o=0;o<s;o++){let a=i[o];if(!(typeof e[a]>"u"))if(e[a]===null)n+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)n+=this.buildTextNode(e[a],a,"",t);else if(typeof e[a]!="object"){let c=this.isAttribute(a);c?r+=" "+c+'="'+this.options.attrValueProcessor(""+e[a])+'"':this.isCDATA(a)?e[this.options.textNodeName]?n+=this.replaceCDATAstr(e[this.options.textNodeName],e[a]):n+=this.replaceCDATAstr("",e[a]):a===this.options.textNodeName?e[this.options.cdataTagName]||(n+=this.options.tagValueProcessor(""+e[a])):n+=this.buildTextNode(e[a],a,"",t)}else if(Array.isArray(e[a]))if(this.isCDATA(a))n+=this.indentate(t),e[this.options.textNodeName]?n+=this.replaceCDATAarr(e[this.options.textNodeName],e[a]):n+=this.replaceCDATAarr("",e[a]);else{let c=e[a].length;for(let u=0;u<c;u++){let d=e[a][u];if(!(typeof d>"u"))if(d===null)n+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object"){let p=this.j2x(d,t+1);n+=this.buildObjNode(p.val,a,p.attrStr,t)}else n+=this.buildTextNode(d,a,"",t)}}else if(this.options.attrNodeName&&a===this.options.attrNodeName){let c=Object.keys(e[a]),u=c.length;for(let d=0;d<u;d++)r+=" "+c[d]+'="'+this.options.attrValueProcessor(""+e[a][c[d]])+'"'}else{let c=this.j2x(e[a],t+1);n+=this.buildObjNode(c.val,a,c.attrStr,t)}}return{attrStr:r,val:n}};function BX(e,t){return e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e===""?e+"<![CDATA["+t+"]]"+this.tagEndChar:e.replace(this.options.cdataPositionChar,"<![CDATA["+t+"]]"+this.tagEndChar)}function GX(e,t){if(e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e==="")return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let r in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[r]+"]]>");return e+this.newLine}function qR(e,t,r,n){return r&&!e.includes("<")?this.indentate(n)+"<"+t+r+">"+e+"</"+t+this.tagEndChar:this.indentate(n)+"<"+t+r+this.tagEndChar+e+this.indentate(n)+"</"+t+this.tagEndChar}function $X(e,t,r,n){return e!==""?this.buildObjectNode(e,t,r,n):this.indentate(n)+"<"+t+r+"/"+this.tagEndChar}function MR(e,t,r,n){return this.indentate(n)+"<"+t+r+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function VX(e,t,r,n){return e!==""?this.buildTextValNode(e,t,r,n):this.indentate(n)+"<"+t+r+"/"+this.tagEndChar}function KX(e){return this.options.indentBy.repeat(e)}function HX(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function WX(e){return e===this.options.cdataTagName}zR.exports=LS});var GR=f(dr=>{"use strict";var UR=_R(),FR=Pa(),kR=Pa(),YX=Nr().buildOptions,BR=xR();dr.parse=function(e,t,r){if(r){r===!0&&(r={});let i=BR.validate(e,r);if(i!==!0)throw Error(i.err.msg)}t=YX(t,kR.defaultOptions,kR.props);let n=FR.getTraversalObj(e,t);return UR.convertToJson(n,t)};dr.convertTonimn=PR().convert2nimn;dr.getTraversalObj=FR.getTraversalObj;dr.convertToJson=UR.convertToJson;dr.convertToJsonString=LR().convertToJsonString;dr.validate=BR.validate;dr.j2xParser=jR();dr.parseToNimn=function(e,t,r){return dr.convertTonimn(dr.getTraversalObj(e,r),t,r)}});var cn=f(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.deserializeAws_queryGetSessionTokenCommand=pe.deserializeAws_queryGetFederationTokenCommand=pe.deserializeAws_queryGetCallerIdentityCommand=pe.deserializeAws_queryGetAccessKeyInfoCommand=pe.deserializeAws_queryDecodeAuthorizationMessageCommand=pe.deserializeAws_queryAssumeRoleWithWebIdentityCommand=pe.deserializeAws_queryAssumeRoleWithSAMLCommand=pe.deserializeAws_queryAssumeRoleCommand=pe.serializeAws_queryGetSessionTokenCommand=pe.serializeAws_queryGetFederationTokenCommand=pe.serializeAws_queryGetCallerIdentityCommand=pe.serializeAws_queryGetAccessKeyInfoCommand=pe.serializeAws_queryDecodeAuthorizationMessageCommand=pe.serializeAws_queryAssumeRoleWithWebIdentityCommand=pe.serializeAws_queryAssumeRoleWithSAMLCommand=pe.serializeAws_queryAssumeRoleCommand=void 0;var JX=Et(),$=O(),QX=fR(),XX=GR(),jn=cr(),kn=Zd(),ZX=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=Fn({...TZ(e,t),Action:"AssumeRole",Version:"2011-06-15"}),Un(t,r,"/",void 0,n)};pe.serializeAws_queryAssumeRoleCommand=ZX;var eZ=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=Fn({...CZ(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),Un(t,r,"/",void 0,n)};pe.serializeAws_queryAssumeRoleWithSAMLCommand=eZ;var tZ=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=Fn({...xZ(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),Un(t,r,"/",void 0,n)};pe.serializeAws_queryAssumeRoleWithWebIdentityCommand=tZ;var rZ=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=Fn({...IZ(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),Un(t,r,"/",void 0,n)};pe.serializeAws_queryDecodeAuthorizationMessageCommand=rZ;var nZ=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=Fn({...RZ(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),Un(t,r,"/",void 0,n)};pe.serializeAws_queryGetAccessKeyInfoCommand=nZ;var iZ=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=Fn({...DZ(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"}),Un(t,r,"/",void 0,n)};pe.serializeAws_queryGetCallerIdentityCommand=iZ;var sZ=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=Fn({...PZ(e,t),Action:"GetFederationToken",Version:"2011-06-15"}),Un(t,r,"/",void 0,n)};pe.serializeAws_queryGetFederationTokenCommand=sZ;var oZ=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=Fn({...NZ(e,t),Action:"GetSessionToken",Version:"2011-06-15"}),Un(t,r,"/",void 0,n)};pe.serializeAws_queryGetSessionTokenCommand=oZ;var aZ=async(e,t)=>{if(e.statusCode>=300)return cZ(e,t);let r=await ft(e.body,t),n={};n=MZ(r.AssumeRoleResult,t);let i={$metadata:Oe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleCommand=aZ;var cZ=async(e,t)=>{let r={...e,body:await ft(e.body,t)},n,i="UnknownError";switch(i=Bn(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await qS(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await uf(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await df(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Oa(r,t);default:let s=r.body;throw n=new kn.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(n,s.Error)}},lZ=async(e,t)=>{if(e.statusCode>=300)return uZ(e,t);let r=await ft(e.body,t),n={};n=zZ(r.AssumeRoleWithSAMLResult,t);let i={$metadata:Oe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleWithSAMLCommand=lZ;var uZ=async(e,t)=>{let r={...e,body:await ft(e.body,t)},n,i="UnknownError";switch(i=Bn(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await qS(r,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await $R(r,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await VR(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await uf(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await df(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Oa(r,t);default:let s=r.body;throw n=new kn.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(n,s.Error)}},dZ=async(e,t)=>{if(e.statusCode>=300)return fZ(e,t);let r=await ft(e.body,t),n={};n=jZ(r.AssumeRoleWithWebIdentityResult,t);let i={$metadata:Oe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleWithWebIdentityCommand=dZ;var fZ=async(e,t)=>{let r={...e,body:await ft(e.body,t)},n,i="UnknownError";switch(i=Bn(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await qS(r,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await EZ(r,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await $R(r,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await VR(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await uf(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await df(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Oa(r,t);default:let s=r.body;throw n=new kn.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(n,s.Error)}},mZ=async(e,t)=>{if(e.statusCode>=300)return pZ(e,t);let r=await ft(e.body,t),n={};n=kZ(r.DecodeAuthorizationMessageResult,t);let i={$metadata:Oe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryDecodeAuthorizationMessageCommand=mZ;var pZ=async(e,t)=>{let r={...e,body:await ft(e.body,t)},n,i="UnknownError";switch(i=Bn(e,r.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await AZ(r,t);default:let s=r.body;throw n=new kn.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(n,s.Error)}},hZ=async(e,t)=>{if(e.statusCode>=300)return _Z(e,t);let r=await ft(e.body,t),n={};n=BZ(r.GetAccessKeyInfoResult,t);let i={$metadata:Oe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryGetAccessKeyInfoCommand=hZ;var _Z=async(e,t)=>{let r={...e,body:await ft(e.body,t)},n,i="UnknownError";switch(i=Bn(e,r.body),i){default:let s=r.body;throw n=new kn.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(n,s.Error)}},yZ=async(e,t)=>{if(e.statusCode>=300)return gZ(e,t);let r=await ft(e.body,t),n={};n=GZ(r.GetCallerIdentityResult,t);let i={$metadata:Oe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryGetCallerIdentityCommand=yZ;var gZ=async(e,t)=>{let r={...e,body:await ft(e.body,t)},n,i="UnknownError";switch(i=Bn(e,r.body),i){default:let s=r.body;throw n=new kn.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(n,s.Error)}},vZ=async(e,t)=>{if(e.statusCode>=300)return SZ(e,t);let r=await ft(e.body,t),n={};n=$Z(r.GetFederationTokenResult,t);let i={$metadata:Oe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryGetFederationTokenCommand=vZ;var SZ=async(e,t)=>{let r={...e,body:await ft(e.body,t)},n,i="UnknownError";switch(i=Bn(e,r.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await uf(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await df(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Oa(r,t);default:let s=r.body;throw n=new kn.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(n,s.Error)}},wZ=async(e,t)=>{if(e.statusCode>=300)return bZ(e,t);let r=await ft(e.body,t),n={};n=VZ(r.GetSessionTokenResult,t);let i={$metadata:Oe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryGetSessionTokenCommand=wZ;var bZ=async(e,t)=>{let r={...e,body:await ft(e.body,t)},n,i="UnknownError";switch(i=Bn(e,r.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Oa(r,t);default:let s=r.body;throw n=new kn.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(n,s.Error)}},qS=async(e,t)=>{let r=e.body,n=UZ(r.Error,t),i=new jn.ExpiredTokenException({$metadata:Oe(e),...n});return(0,$.decorateServiceException)(i,r)},EZ=async(e,t)=>{let r=e.body,n=KZ(r.Error,t),i=new jn.IDPCommunicationErrorException({$metadata:Oe(e),...n});return(0,$.decorateServiceException)(i,r)},$R=async(e,t)=>{let r=e.body,n=HZ(r.Error,t),i=new jn.IDPRejectedClaimException({$metadata:Oe(e),...n});return(0,$.decorateServiceException)(i,r)},AZ=async(e,t)=>{let r=e.body,n=WZ(r.Error,t),i=new jn.InvalidAuthorizationMessageException({$metadata:Oe(e),...n});return(0,$.decorateServiceException)(i,r)},VR=async(e,t)=>{let r=e.body,n=YZ(r.Error,t),i=new jn.InvalidIdentityTokenException({$metadata:Oe(e),...n});return(0,$.decorateServiceException)(i,r)},uf=async(e,t)=>{let r=e.body,n=JZ(r.Error,t),i=new jn.MalformedPolicyDocumentException({$metadata:Oe(e),...n});return(0,$.decorateServiceException)(i,r)},df=async(e,t)=>{let r=e.body,n=QZ(r.Error,t),i=new jn.PackedPolicyTooLargeException({$metadata:Oe(e),...n});return(0,$.decorateServiceException)(i,r)},Oa=async(e,t)=>{let r=e.body,n=XZ(r.Error,t),i=new jn.RegionDisabledException({$metadata:Oe(e),...n});return(0,$.decorateServiceException)(i,r)},TZ=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(r.RoleSessionName=e.RoleSessionName),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=ff(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}if(e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let n=KR(e.Tags,t);Object.entries(n).forEach(([i,s])=>{let o=`Tags.${i}`;r[o]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let n=qZ(e.TransitiveTagKeys,t);Object.entries(n).forEach(([i,s])=>{let o=`TransitiveTagKeys.${i}`;r[o]=s})}return e.ExternalId!==void 0&&e.ExternalId!==null&&(r.ExternalId=e.ExternalId),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(r.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(r.TokenCode=e.TokenCode),e.SourceIdentity!==void 0&&e.SourceIdentity!==null&&(r.SourceIdentity=e.SourceIdentity),r},CZ=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.PrincipalArn!==void 0&&e.PrincipalArn!==null&&(r.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!==void 0&&e.SAMLAssertion!==null&&(r.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=ff(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}return e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),r},xZ=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(r.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!==void 0&&e.WebIdentityToken!==null&&(r.WebIdentityToken=e.WebIdentityToken),e.ProviderId!==void 0&&e.ProviderId!==null&&(r.ProviderId=e.ProviderId),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=ff(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}return e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),r},IZ=(e,t)=>{let r={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(r.EncodedMessage=e.EncodedMessage),r},RZ=(e,t)=>{let r={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(r.AccessKeyId=e.AccessKeyId),r},DZ=(e,t)=>({}),PZ=(e,t)=>{let r={};if(e.Name!==void 0&&e.Name!==null&&(r.Name=e.Name),e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=ff(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let n=KR(e.Tags,t);Object.entries(n).forEach(([i,s])=>{let o=`Tags.${i}`;r[o]=s})}return r},NZ=(e,t)=>{let r={};return e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(r.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(r.TokenCode=e.TokenCode),r},ff=(e,t)=>{let r={},n=1;for(let i of e){if(i===null)continue;let s=OZ(i,t);Object.entries(s).forEach(([o,a])=>{r[`member.${n}.${o}`]=a}),n++}return r},OZ=(e,t)=>{let r={};return e.arn!==void 0&&e.arn!==null&&(r.arn=e.arn),r},LZ=(e,t)=>{let r={};return e.Key!==void 0&&e.Key!==null&&(r.Key=e.Key),e.Value!==void 0&&e.Value!==null&&(r.Value=e.Value),r},qZ=(e,t)=>{let r={},n=1;for(let i of e)i!==null&&(r[`member.${n}`]=i,n++);return r},KR=(e,t)=>{let r={},n=1;for(let i of e){if(i===null)continue;let s=LZ(i,t);Object.entries(s).forEach(([o,a])=>{r[`member.${n}.${o}`]=a}),n++}return r},MS=(e,t)=>{let r={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(r.AssumedRoleId=(0,$.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(r.Arn=(0,$.expectString)(e.Arn)),r},MZ=(e,t)=>{let r={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(r.Credentials=La(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=MS(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,$.expectString)(e.SourceIdentity)),r},zZ=(e,t)=>{let r={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,Subject:void 0,SubjectType:void 0,Issuer:void 0,Audience:void 0,NameQualifier:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(r.Credentials=La(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=MS(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(r.Subject=(0,$.expectString)(e.Subject)),e.SubjectType!==void 0&&(r.SubjectType=(0,$.expectString)(e.SubjectType)),e.Issuer!==void 0&&(r.Issuer=(0,$.expectString)(e.Issuer)),e.Audience!==void 0&&(r.Audience=(0,$.expectString)(e.Audience)),e.NameQualifier!==void 0&&(r.NameQualifier=(0,$.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,$.expectString)(e.SourceIdentity)),r},jZ=(e,t)=>{let r={Credentials:void 0,SubjectFromWebIdentityToken:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,Provider:void 0,Audience:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(r.Credentials=La(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(r.SubjectFromWebIdentityToken=(0,$.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=MS(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(r.Provider=(0,$.expectString)(e.Provider)),e.Audience!==void 0&&(r.Audience=(0,$.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,$.expectString)(e.SourceIdentity)),r},La=(e,t)=>{let r={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(r.AccessKeyId=(0,$.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(r.SecretAccessKey=(0,$.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(r.SessionToken=(0,$.expectString)(e.SessionToken)),e.Expiration!==void 0&&(r.Expiration=(0,$.expectNonNull)((0,$.parseRfc3339DateTime)(e.Expiration))),r},kZ=(e,t)=>{let r={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(r.DecodedMessage=(0,$.expectString)(e.DecodedMessage)),r},UZ=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,$.expectString)(e.message)),r},FZ=(e,t)=>{let r={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(r.FederatedUserId=(0,$.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(r.Arn=(0,$.expectString)(e.Arn)),r},BZ=(e,t)=>{let r={Account:void 0};return e.Account!==void 0&&(r.Account=(0,$.expectString)(e.Account)),r},GZ=(e,t)=>{let r={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(r.UserId=(0,$.expectString)(e.UserId)),e.Account!==void 0&&(r.Account=(0,$.expectString)(e.Account)),e.Arn!==void 0&&(r.Arn=(0,$.expectString)(e.Arn)),r},$Z=(e,t)=>{let r={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(r.Credentials=La(e.Credentials,t)),e.FederatedUser!==void 0&&(r.FederatedUser=FZ(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),r},VZ=(e,t)=>{let r={Credentials:void 0};return e.Credentials!==void 0&&(r.Credentials=La(e.Credentials,t)),r},KZ=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,$.expectString)(e.message)),r},HZ=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,$.expectString)(e.message)),r},WZ=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,$.expectString)(e.message)),r},YZ=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,$.expectString)(e.message)),r},JZ=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,$.expectString)(e.message)),r},QZ=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,$.expectString)(e.message)),r},XZ=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,$.expectString)(e.message)),r},Oe=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},ZZ=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),eee=(e,t)=>ZZ(e,t).then(r=>t.utf8Encoder(r)),Un=async(e,t,r,n,i)=>{let{hostname:s,protocol:o="https",port:a,path:c}=await e.endpoint(),u={protocol:o,hostname:s,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+r:c+r,headers:t};return n!==void 0&&(u.hostname=n),i!==void 0&&(u.body=i),new JX.HttpRequest(u)},ft=(e,t)=>eee(e,t).then(r=>{if(r.length){let n=(0,XX.parse)(r,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:a=>a.trim()===""&&a.includes(`
27
- `)?"":(0,QX.decodeHTML)(a)}),i="#text",s=Object.keys(n)[0],o=n[s];return o[i]&&(o[s]=o[i],delete o[i]),(0,$.getValueFromTextNode)(o)}return{}}),Fn=e=>Object.entries(e).map(([t,r])=>(0,$.extendedEncodeURIComponent)(t)+"="+(0,$.extendedEncodeURIComponent)(r)).join("&"),Bn=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var pf=f(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.AssumeRoleCommand=void 0;var tee=B(),ree=an(),nee=O(),HR=cr(),WR=cn(),zS=class extends nee.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,tee.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,ree.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:HR.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:HR.AssumeRoleResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,WR.serializeAws_queryAssumeRoleCommand)(t,r)}deserialize(t,r){return(0,WR.deserializeAws_queryAssumeRoleCommand)(t,r)}};mf.AssumeRoleCommand=zS});var kS=f(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.AssumeRoleWithSAMLCommand=void 0;var iee=B(),see=O(),YR=cr(),JR=cn(),jS=class extends see.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,iee.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:YR.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:YR.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,JR.serializeAws_queryAssumeRoleWithSAMLCommand)(t,r)}deserialize(t,r){return(0,JR.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,r)}};hf.AssumeRoleWithSAMLCommand=jS});var yf=f(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.AssumeRoleWithWebIdentityCommand=void 0;var oee=B(),aee=O(),QR=cr(),XR=cn(),US=class extends aee.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,oee.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:QR.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:QR.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,XR.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,r)}deserialize(t,r){return(0,XR.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,r)}};_f.AssumeRoleWithWebIdentityCommand=US});var BS=f(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.DecodeAuthorizationMessageCommand=void 0;var cee=B(),lee=an(),uee=O(),ZR=cr(),eD=cn(),FS=class extends uee.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,cee.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,lee.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:ZR.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:ZR.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,eD.serializeAws_queryDecodeAuthorizationMessageCommand)(t,r)}deserialize(t,r){return(0,eD.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,r)}};gf.DecodeAuthorizationMessageCommand=FS});var $S=f(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.GetAccessKeyInfoCommand=void 0;var dee=B(),fee=an(),mee=O(),tD=cr(),rD=cn(),GS=class extends mee.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,dee.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,fee.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:tD.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:tD.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,rD.serializeAws_queryGetAccessKeyInfoCommand)(t,r)}deserialize(t,r){return(0,rD.deserializeAws_queryGetAccessKeyInfoCommand)(t,r)}};vf.GetAccessKeyInfoCommand=GS});var KS=f(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.GetCallerIdentityCommand=void 0;var pee=B(),hee=an(),_ee=O(),nD=cr(),iD=cn(),VS=class extends _ee.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,pee.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,hee.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:nD.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:nD.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,iD.serializeAws_queryGetCallerIdentityCommand)(t,r)}deserialize(t,r){return(0,iD.deserializeAws_queryGetCallerIdentityCommand)(t,r)}};Sf.GetCallerIdentityCommand=VS});var WS=f(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.GetFederationTokenCommand=void 0;var yee=B(),gee=an(),vee=O(),sD=cr(),oD=cn(),HS=class extends vee.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,yee.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,gee.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:sD.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:sD.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,oD.serializeAws_queryGetFederationTokenCommand)(t,r)}deserialize(t,r){return(0,oD.deserializeAws_queryGetFederationTokenCommand)(t,r)}};wf.GetFederationTokenCommand=HS});var JS=f(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.GetSessionTokenCommand=void 0;var See=B(),wee=an(),bee=O(),aD=cr(),cD=cn(),YS=class extends bee.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,See.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,wee.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:aD.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:aD.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,cD.serializeAws_queryGetSessionTokenCommand)(t,r)}deserialize(t,r){return(0,cD.deserializeAws_queryGetSessionTokenCommand)(t,r)}};bf.GetSessionTokenCommand=YS});var lD=f(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.resolveStsAuthConfig=void 0;var Eee=an(),Aee=(e,{stsClientCtor:t})=>(0,Eee.resolveAwsAuthConfig)({...e,stsClientCtor:t});Ef.resolveStsAuthConfig=Aee});var uD=f((ybe,Tee)=>{Tee.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.78.0","@aws-sdk/credential-provider-node":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-sdk-sts":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var QS=f(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.decorateDefaultCredentialProvider=Lr.getDefaultRoleAssumerWithWebIdentity=Lr.getDefaultRoleAssumer=void 0;var Cee=pf(),xee=yf(),dD="us-east-1",fD=e=>typeof e!="function"?e===void 0?dD:e:async()=>{try{return await e()}catch{return dD}},Iee=(e,t)=>{let r,n;return async(i,s)=>{if(n=i,!r){let{logger:a,region:c,requestHandler:u}=e;r=new t({logger:a,credentialDefaultProvider:()=>async()=>n,region:fD(c||e.region),...u?{requestHandler:u}:{}})}let{Credentials:o}=await r.send(new Cee.AssumeRoleCommand(s));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};Lr.getDefaultRoleAssumer=Iee;var Ree=(e,t)=>{let r;return async n=>{if(!r){let{logger:s,region:o,requestHandler:a}=e;r=new t({logger:s,region:fD(o||e.region),...a?{requestHandler:a}:{}})}let{Credentials:i}=await r.send(new xee.AssumeRoleWithWebIdentityCommand(n));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration}}};Lr.getDefaultRoleAssumerWithWebIdentity=Ree;var Dee=e=>t=>e({roleAssumer:(0,Lr.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,Lr.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor),...t});Lr.decorateDefaultCredentialProvider=Dee});var mD=f(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.fromEnv=mt.ENV_EXPIRATION=mt.ENV_SESSION=mt.ENV_SECRET=mt.ENV_KEY=void 0;var Pee=ke();mt.ENV_KEY="AWS_ACCESS_KEY_ID";mt.ENV_SECRET="AWS_SECRET_ACCESS_KEY";mt.ENV_SESSION="AWS_SESSION_TOKEN";mt.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var Nee=()=>async()=>{let e=process.env[mt.ENV_KEY],t=process.env[mt.ENV_SECRET],r=process.env[mt.ENV_SESSION],n=process.env[mt.ENV_EXPIRATION];if(e&&t)return{accessKeyId:e,secretAccessKey:t,...r&&{sessionToken:r},...n&&{expiration:new Date(n)}};throw new Pee.CredentialsProviderError("Unable to find environment variable credentials.")};mt.fromEnv=Nee});var ZS=f(XS=>{"use strict";Object.defineProperty(XS,"__esModule",{value:!0});var Oee=K();Oee.__exportStar(mD(),XS)});var Tf=f(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.getHomeDir=void 0;var Lee=require("os"),qee=require("path"),Mee=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${qee.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,Lee.homedir)())};Af.getHomeDir=Mee});var pD=f(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.getProfileName=qr.DEFAULT_PROFILE=qr.ENV_PROFILE=void 0;qr.ENV_PROFILE="AWS_PROFILE";qr.DEFAULT_PROFILE="default";var zee=e=>e.profile||process.env[qr.ENV_PROFILE]||qr.DEFAULT_PROFILE;qr.getProfileName=zee});var ew=f(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.getSSOTokenFilepath=void 0;var jee=require("crypto"),kee=require("path"),Uee=Tf(),Fee=e=>{let r=(0,jee.createHash)("sha1").update(e).digest("hex");return(0,kee.join)((0,Uee.getHomeDir)(),".aws","sso","cache",`${r}.json`)};Cf.getSSOTokenFilepath=Fee});var hD=f(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.getSSOTokenFromFile=void 0;var Bee=require("fs"),Gee=ew(),{readFile:$ee}=Bee.promises,Vee=async e=>{let t=(0,Gee.getSSOTokenFilepath)(e),r=await $ee(t,"utf8");return JSON.parse(r)};xf.getSSOTokenFromFile=Vee});var _D=f(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.normalizeConfigFile=void 0;var Kee=/^profile\s(["'])?([^\1]+)\1$/,Hee=e=>{let t={};for(let r of Object.keys(e)){let n;if(r==="default")t.default=e.default;else if(n=Kee.exec(r)){let[i,s,o]=n;o&&(t[o]=e[r])}}return t};If.normalizeConfigFile=Hee});var yD=f(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.parseIni=void 0;var Wee=["__proto__","profile __proto__"],Yee=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],Wee.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};Rf.parseIni=Yee});var gD=f(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.slurpFile=void 0;var Jee=require("fs"),{readFile:Qee}=Jee.promises,tw={},Xee=e=>(tw[e]||(tw[e]=Qee(e,"utf8")),tw[e]);Df.slurpFile=Xee});var rw=f(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.loadSharedConfigFiles=Mr.ENV_CONFIG_PATH=Mr.ENV_CREDENTIALS_PATH=void 0;var vD=require("path"),SD=Tf(),Zee=_D(),wD=yD(),bD=gD();Mr.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";Mr.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var ED=()=>({}),ete=async(e={})=>{let{filepath:t=process.env[Mr.ENV_CREDENTIALS_PATH]||(0,vD.join)((0,SD.getHomeDir)(),".aws","credentials"),configFilepath:r=process.env[Mr.ENV_CONFIG_PATH]||(0,vD.join)((0,SD.getHomeDir)(),".aws","config")}=e,n=await Promise.all([(0,bD.slurpFile)(r).then(wD.parseIni).then(Zee.normalizeConfigFile).catch(ED),(0,bD.slurpFile)(t).then(wD.parseIni).catch(ED)]);return{configFile:n[0],credentialsFile:n[1]}};Mr.loadSharedConfigFiles=ete});var AD=f(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.parseKnownFiles=void 0;var tte=rw(),rte=async e=>{let t=await(0,tte.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};Pf.parseKnownFiles=rte});var CD=f(TD=>{"use strict";Object.defineProperty(TD,"__esModule",{value:!0})});var Gn=f(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});var Ti=K();Ti.__exportStar(Tf(),ln);Ti.__exportStar(pD(),ln);Ti.__exportStar(ew(),ln);Ti.__exportStar(hD(),ln);Ti.__exportStar(rw(),ln);Ti.__exportStar(AD(),ln);Ti.__exportStar(CD(),ln)});var Of=f(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.httpRequest=void 0;var nw=ke(),nte=require("buffer"),ite=require("http");function ste(e){return new Promise((t,r)=>{var n;let i=(0,ite.request)({method:"GET",...e,hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")});i.on("error",s=>{r(Object.assign(new nw.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new nw.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new nw.ProviderError("Error response received from instance metadata service"),{statusCode:o})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(nte.Buffer.concat(a)),i.destroy()})}),i.end()})}Nf.httpRequest=ste});var iw=f(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.fromImdsCredentials=ms.isImdsCredentials=void 0;var ote=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";ms.isImdsCredentials=ote;var ate=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});ms.fromImdsCredentials=ate});var Lf=f(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.providerConfigFromInit=zr.DEFAULT_MAX_RETRIES=zr.DEFAULT_TIMEOUT=void 0;zr.DEFAULT_TIMEOUT=1e3;zr.DEFAULT_MAX_RETRIES=0;var cte=({maxRetries:e=zr.DEFAULT_MAX_RETRIES,timeout:t=zr.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});zr.providerConfigFromInit=cte});var sw=f(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.retry=void 0;var lte=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};qf.retry=lte});var ID=f(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.fromContainerMetadata=Ze.ENV_CMDS_AUTH_TOKEN=Ze.ENV_CMDS_RELATIVE_URI=Ze.ENV_CMDS_FULL_URI=void 0;var Mf=ke(),ute=require("url"),dte=Of(),xD=iw(),fte=Lf(),mte=sw();Ze.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";Ze.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";Ze.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var pte=(e={})=>{let{timeout:t,maxRetries:r}=(0,fte.providerConfigFromInit)(e);return()=>(0,mte.retry)(async()=>{let n=await vte(),i=JSON.parse(await hte(t,n));if(!(0,xD.isImdsCredentials)(i))throw new Mf.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,xD.fromImdsCredentials)(i)},r)};Ze.fromContainerMetadata=pte;var hte=async(e,t)=>(process.env[Ze.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[Ze.ENV_CMDS_AUTH_TOKEN]}),(await(0,dte.httpRequest)({...t,timeout:e})).toString()),_te="169.254.170.2",yte={localhost:!0,"127.0.0.1":!0},gte={"http:":!0,"https:":!0},vte=async()=>{if(process.env[Ze.ENV_CMDS_RELATIVE_URI])return{hostname:_te,path:process.env[Ze.ENV_CMDS_RELATIVE_URI]};if(process.env[Ze.ENV_CMDS_FULL_URI]){let e=(0,ute.parse)(process.env[Ze.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in yte))throw new Mf.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in gte))throw new Mf.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Mf.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${Ze.ENV_CMDS_RELATIVE_URI} or ${Ze.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var RD=f(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.fromEnv=void 0;var Ste=ke(),wte=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new Ste.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};zf.fromEnv=wte});var PD=f(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.fromSharedConfigFiles=void 0;var bte=ke(),DD=Gn(),Ete=(e,{preferredFile:t="config",...r}={})=>async()=>{let n=(0,DD.getProfileName)(r),{configFile:i,credentialsFile:s}=await(0,DD.loadSharedConfigFiles)(r),o=s[n]||{},a=i[n]||{},c=t==="config"?{...o,...a}:{...a,...o};try{let u=e(c);if(u===void 0)throw new Error;return u}catch(u){throw new bte.CredentialsProviderError(u.message||`Cannot load config for profile ${n} in SDK configuration files with getter: ${e}`)}};jf.fromSharedConfigFiles=Ete});var ND=f(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.fromStatic=void 0;var Ate=ke(),Tte=e=>typeof e=="function",Cte=e=>Tte(e)?async()=>await e():(0,Ate.fromStatic)(e);kf.fromStatic=Cte});var LD=f(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.loadConfig=void 0;var OD=ke(),xte=RD(),Ite=PD(),Rte=ND(),Dte=({environmentVariableSelector:e,configFileSelector:t,default:r},n={})=>(0,OD.memoize)((0,OD.chain)((0,xte.fromEnv)(e),(0,Ite.fromSharedConfigFiles)(t,n),(0,Rte.fromStatic)(r)));Uf.loadConfig=Dte});var Ci=f(ow=>{"use strict";Object.defineProperty(ow,"__esModule",{value:!0});var Pte=K();Pte.__exportStar(LD(),ow)});var qD=f(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.parseQueryString=void 0;function Nte(e){let t={};if(e=e.replace(/^\?/,""),e)for(let r of e.split("&")){let[n,i=null]=r.split("=");n=decodeURIComponent(n),i&&(i=decodeURIComponent(i)),n in t?Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i}return t}Ff.parseQueryString=Nte});var qa=f(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.parseUrl=void 0;var Ote=qD(),Lte=e=>{let{hostname:t,pathname:r,port:n,protocol:i,search:s}=new URL(e),o;return s&&(o=(0,Ote.parseQueryString)(s)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:o}};Bf.parseUrl=Lte});var MD=f(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.Endpoint=void 0;var qte;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(qte=Ma.Endpoint||(Ma.Endpoint={}))});var zD=f(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.ENDPOINT_CONFIG_OPTIONS=jr.CONFIG_ENDPOINT_NAME=jr.ENV_ENDPOINT_NAME=void 0;jr.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";jr.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";jr.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[jr.ENV_ENDPOINT_NAME],configFileSelector:e=>e[jr.CONFIG_ENDPOINT_NAME],default:void 0}});var aw=f(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.EndpointMode=void 0;var Mte;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(Mte=za.EndpointMode||(za.EndpointMode={}))});var jD=f(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.ENDPOINT_MODE_CONFIG_OPTIONS=kr.CONFIG_ENDPOINT_MODE_NAME=kr.ENV_ENDPOINT_MODE_NAME=void 0;var zte=aw();kr.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";kr.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";kr.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[kr.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[kr.CONFIG_ENDPOINT_MODE_NAME],default:zte.EndpointMode.IPv4}});var lw=f(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.getInstanceMetadataEndpoint=void 0;var UD=Ci(),jte=qa(),kD=MD(),kte=zD(),cw=aw(),Ute=jD(),Fte=async()=>(0,jte.parseUrl)(await Bte()||await Gte());Gf.getInstanceMetadataEndpoint=Fte;var Bte=async()=>(0,UD.loadConfig)(kte.ENDPOINT_CONFIG_OPTIONS)(),Gte=async()=>{let e=await(0,UD.loadConfig)(Ute.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case cw.EndpointMode.IPv4:return kD.Endpoint.IPv4;case cw.EndpointMode.IPv6:return kD.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(cw.EndpointMode)}`)}}});var FD=f($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.getExtendedInstanceMetadataCredentials=void 0;var $te=15*60,Vte=5*60,Kte="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Hte=(e,t)=>{var r;let n=$te+Math.floor(Math.random()*Vte),i=new Date(Date.now()+n*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+Kte);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:i}};$f.getExtendedInstanceMetadataCredentials=Hte});var GD=f(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.staticStabilityProvider=void 0;var BD=FD(),Wte=(e,t={})=>{let r=(t==null?void 0:t.logger)||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,BD.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,BD.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};Vf.staticStabilityProvider=Wte});var HD=f(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.fromInstanceMetadata=void 0;var Yte=ke(),uw=Of(),$D=iw(),Jte=Lf(),VD=sw(),Qte=lw(),Xte=GD(),KD="/latest/meta-data/iam/security-credentials/",Zte="/latest/api/token",ere=(e={})=>(0,Xte.staticStabilityProvider)(tre(e),{logger:e.logger});Kf.fromInstanceMetadata=ere;var tre=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,Jte.providerConfigFromInit)(e),i=async(s,o)=>{let a=(await(0,VD.retry)(async()=>{let c;try{c=await nre(o)}catch(u){throw u.statusCode===401&&(t=!1),u}return c},s)).trim();return(0,VD.retry)(async()=>{let c;try{c=await ire(a,o)}catch(u){throw u.statusCode===401&&(t=!1),u}return c},s)};return async()=>{let s=await(0,Qte.getInstanceMetadataEndpoint)();if(t)return i(n,{...s,timeout:r});{let o;try{o=(await rre({...s,timeout:r})).toString()}catch(a){if((a==null?void 0:a.statusCode)===400)throw Object.assign(a,{message:"EC2 Metadata token request returned error"});return(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode))&&(t=!0),i(n,{...s,timeout:r})}return i(n,{...s,headers:{"x-aws-ec2-metadata-token":o},timeout:r})}}},rre=async e=>(0,uw.httpRequest)({...e,path:Zte,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),nre=async e=>(await(0,uw.httpRequest)({...e,path:KD})).toString(),ire=async(e,t)=>{let r=JSON.parse((await(0,uw.httpRequest)({...t,path:KD+e})).toString());if(!(0,$D.isImdsCredentials)(r))throw new Yte.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,$D.fromImdsCredentials)(r)}});var YD=f(WD=>{"use strict";Object.defineProperty(WD,"__esModule",{value:!0})});var Wf=f(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.getInstanceMetadataEndpoint=Ur.httpRequest=void 0;var Hf=K();Hf.__exportStar(ID(),Ur);Hf.__exportStar(HD(),Ur);Hf.__exportStar(Lf(),Ur);Hf.__exportStar(YD(),Ur);var sre=Of();Object.defineProperty(Ur,"httpRequest",{enumerable:!0,get:function(){return sre.httpRequest}});var ore=lw();Object.defineProperty(Ur,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return ore.getInstanceMetadataEndpoint}})});var QD=f(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.resolveCredentialSource=void 0;var are=ZS(),JD=Wf(),cre=ke(),lre=(e,t)=>{let r={EcsContainer:JD.fromContainerMetadata,Ec2InstanceMetadata:JD.fromInstanceMetadata,Environment:are.fromEnv};if(e in r)return r[e]();throw new cre.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};Yf.resolveCredentialSource=lre});var XD=f(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.resolveAssumeRoleCredentials=ps.isAssumeRoleProfile=void 0;var dw=ke(),ure=Gn(),dre=QD(),fre=fw(),mre=e=>Boolean(e)&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(pre(e)||hre(e));ps.isAssumeRoleProfile=mre;var pre=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",hre=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",_re=async(e,t,r,n={})=>{let i=t[e];if(!r.roleAssumer)throw new dw.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=i;if(s&&s in n)throw new dw.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,ure.getProfileName)(r)}. Profiles visited: `+Object.keys(n).join(", "),!1);let o=s?(0,fre.resolveProfileData)(s,t,r,{...n,[s]:!0}):(0,dre.resolveCredentialSource)(i.credential_source,e)(),a={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id},{mfa_serial:c}=i;if(c){if(!r.mfaCodeProvider)throw new dw.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);a.SerialNumber=c,a.TokenCode=await r.mfaCodeProvider(c)}let u=await o;return r.roleAssumer(u,a)};ps.resolveAssumeRoleCredentials=_re});var mw=f(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.isSsoProfile=void 0;var yre=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");Jf.isSsoProfile=yre});var Xf=f(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.SSOServiceException=void 0;var gre=O(),ja=class extends gre.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,ja.prototype)}};Qf.SSOServiceException=ja});var xi=f(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.LogoutRequest=le.ListAccountsResponse=le.ListAccountsRequest=le.ListAccountRolesResponse=le.RoleInfo=le.ListAccountRolesRequest=le.UnauthorizedException=le.TooManyRequestsException=le.ResourceNotFoundException=le.InvalidRequestException=le.GetRoleCredentialsResponse=le.RoleCredentials=le.GetRoleCredentialsRequest=le.AccountInfo=void 0;var hs=O(),Zf=Xf(),vre;(function(e){e.filterSensitiveLog=t=>({...t})})(vre=le.AccountInfo||(le.AccountInfo={}));var Sre;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:hs.SENSITIVE_STRING}})})(Sre=le.GetRoleCredentialsRequest||(le.GetRoleCredentialsRequest={}));var ZD;(function(e){e.filterSensitiveLog=t=>({...t,...t.secretAccessKey&&{secretAccessKey:hs.SENSITIVE_STRING},...t.sessionToken&&{sessionToken:hs.SENSITIVE_STRING}})})(ZD=le.RoleCredentials||(le.RoleCredentials={}));var wre;(function(e){e.filterSensitiveLog=t=>({...t,...t.roleCredentials&&{roleCredentials:ZD.filterSensitiveLog(t.roleCredentials)}})})(wre=le.GetRoleCredentialsResponse||(le.GetRoleCredentialsResponse={}));var ka=class extends Zf.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,ka.prototype)}};le.InvalidRequestException=ka;var Ua=class extends Zf.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ua.prototype)}};le.ResourceNotFoundException=Ua;var Fa=class extends Zf.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Fa.prototype)}};le.TooManyRequestsException=Fa;var Ba=class extends Zf.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Ba.prototype)}};le.UnauthorizedException=Ba;var bre;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:hs.SENSITIVE_STRING}})})(bre=le.ListAccountRolesRequest||(le.ListAccountRolesRequest={}));var Ere;(function(e){e.filterSensitiveLog=t=>({...t})})(Ere=le.RoleInfo||(le.RoleInfo={}));var Are;(function(e){e.filterSensitiveLog=t=>({...t})})(Are=le.ListAccountRolesResponse||(le.ListAccountRolesResponse={}));var Tre;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:hs.SENSITIVE_STRING}})})(Tre=le.ListAccountsRequest||(le.ListAccountsRequest={}));var Cre;(function(e){e.filterSensitiveLog=t=>({...t})})(Cre=le.ListAccountsResponse||(le.ListAccountsResponse={}));var xre;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:hs.SENSITIVE_STRING}})})(xre=le.LogoutRequest||(le.LogoutRequest={}))});var Ga=f(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.deserializeAws_restJson1LogoutCommand=et.deserializeAws_restJson1ListAccountsCommand=et.deserializeAws_restJson1ListAccountRolesCommand=et.deserializeAws_restJson1GetRoleCredentialsCommand=et.serializeAws_restJson1LogoutCommand=et.serializeAws_restJson1ListAccountsCommand=et.serializeAws_restJson1ListAccountRolesCommand=et.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var em=Et(),be=O(),tm=xi(),rm=Xf(),Ire=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...om(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,c={...e.roleName!==void 0&&{role_name:e.roleName},...e.accountId!==void 0&&{account_id:e.accountId}},u;return new em.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:u})};et.serializeAws_restJson1GetRoleCredentialsCommand=Ire;var Rre=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...om(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,c={...e.nextToken!==void 0&&{next_token:e.nextToken},...e.maxResults!==void 0&&{max_result:e.maxResults.toString()},...e.accountId!==void 0&&{account_id:e.accountId}},u;return new em.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:u})};et.serializeAws_restJson1ListAccountRolesCommand=Rre;var Dre=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...om(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,c={...e.nextToken!==void 0&&{next_token:e.nextToken},...e.maxResults!==void 0&&{max_result:e.maxResults.toString()}},u;return new em.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:u})};et.serializeAws_restJson1ListAccountsCommand=Dre;var Pre=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...om(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,c;return new em.HttpRequest({protocol:n,hostname:r,port:i,method:"POST",headers:o,path:a,body:c})};et.serializeAws_restJson1LogoutCommand=Pre;var Nre=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ore(e,t);let r={$metadata:er(e),roleCredentials:void 0},n=(0,be.expectNonNull)((0,be.expectObject)(await Ii(e.body,t)),"body");return n.roleCredentials!==void 0&&n.roleCredentials!==null&&(r.roleCredentials=Bre(n.roleCredentials,t)),Promise.resolve(r)};et.deserializeAws_restJson1GetRoleCredentialsCommand=Nre;var Ore=async(e,t)=>{let r={...e,body:await Ii(e.body,t)},n,i="UnknownError";switch(i=am(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await nm(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await pw(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await im(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await sm(r,t);default:let s=r.body;throw n=new rm.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:er(e)}),(0,be.decorateServiceException)(n,s)}},Lre=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return qre(e,t);let r={$metadata:er(e),nextToken:void 0,roleList:void 0},n=(0,be.expectNonNull)((0,be.expectObject)(await Ii(e.body,t)),"body");return n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,be.expectString)(n.nextToken)),n.roleList!==void 0&&n.roleList!==null&&(r.roleList=$re(n.roleList,t)),Promise.resolve(r)};et.deserializeAws_restJson1ListAccountRolesCommand=Lre;var qre=async(e,t)=>{let r={...e,body:await Ii(e.body,t)},n,i="UnknownError";switch(i=am(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await nm(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await pw(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await im(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await sm(r,t);default:let s=r.body;throw n=new rm.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:er(e)}),(0,be.decorateServiceException)(n,s)}},Mre=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return zre(e,t);let r={$metadata:er(e),accountList:void 0,nextToken:void 0},n=(0,be.expectNonNull)((0,be.expectObject)(await Ii(e.body,t)),"body");return n.accountList!==void 0&&n.accountList!==null&&(r.accountList=Fre(n.accountList,t)),n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,be.expectString)(n.nextToken)),Promise.resolve(r)};et.deserializeAws_restJson1ListAccountsCommand=Mre;var zre=async(e,t)=>{let r={...e,body:await Ii(e.body,t)},n,i="UnknownError";switch(i=am(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await nm(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await pw(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await im(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await sm(r,t);default:let s=r.body;throw n=new rm.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:er(e)}),(0,be.decorateServiceException)(n,s)}},jre=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return kre(e,t);let r={$metadata:er(e)};return await eP(e.body,t),Promise.resolve(r)};et.deserializeAws_restJson1LogoutCommand=jre;var kre=async(e,t)=>{let r={...e,body:await Ii(e.body,t)},n,i="UnknownError";switch(i=am(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await nm(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await im(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await sm(r,t);default:let s=r.body;throw n=new rm.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:er(e)}),(0,be.decorateServiceException)(n,s)}},nm=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,be.expectString)(n.message));let i=new tm.InvalidRequestException({$metadata:er(e),...r});return(0,be.decorateServiceException)(i,e.body)},pw=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,be.expectString)(n.message));let i=new tm.ResourceNotFoundException({$metadata:er(e),...r});return(0,be.decorateServiceException)(i,e.body)},im=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,be.expectString)(n.message));let i=new tm.TooManyRequestsException({$metadata:er(e),...r});return(0,be.decorateServiceException)(i,e.body)},sm=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,be.expectString)(n.message));let i=new tm.UnauthorizedException({$metadata:er(e),...r});return(0,be.decorateServiceException)(i,e.body)},Ure=(e,t)=>({accountId:(0,be.expectString)(e.accountId),accountName:(0,be.expectString)(e.accountName),emailAddress:(0,be.expectString)(e.emailAddress)}),Fre=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Ure(n,t)),Bre=(e,t)=>({accessKeyId:(0,be.expectString)(e.accessKeyId),expiration:(0,be.expectLong)(e.expiration),secretAccessKey:(0,be.expectString)(e.secretAccessKey),sessionToken:(0,be.expectString)(e.sessionToken)}),Gre=(e,t)=>({accountId:(0,be.expectString)(e.accountId),roleName:(0,be.expectString)(e.roleName)}),$re=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Gre(n,t)),er=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},eP=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Vre=(e,t)=>eP(e,t).then(r=>t.utf8Encoder(r)),om=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Ii=(e,t)=>Vre(e,t).then(r=>r.length?JSON.parse(r):{}),am=(e,t)=>{let r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var _w=f(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.GetRoleCredentialsCommand=void 0;var Kre=B(),Hre=O(),tP=xi(),rP=Ga(),hw=class extends Hre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Kre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:tP.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:tP.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,rP.serializeAws_restJson1GetRoleCredentialsCommand)(t,r)}deserialize(t,r){return(0,rP.deserializeAws_restJson1GetRoleCredentialsCommand)(t,r)}};cm.GetRoleCredentialsCommand=hw});var um=f(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.ListAccountRolesCommand=void 0;var Wre=B(),Yre=O(),nP=xi(),iP=Ga(),yw=class extends Yre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Wre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:nP.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:nP.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,iP.serializeAws_restJson1ListAccountRolesCommand)(t,r)}deserialize(t,r){return(0,iP.deserializeAws_restJson1ListAccountRolesCommand)(t,r)}};lm.ListAccountRolesCommand=yw});var fm=f(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.ListAccountsCommand=void 0;var Jre=B(),Qre=O(),sP=xi(),oP=Ga(),gw=class extends Qre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Jre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:sP.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:sP.ListAccountsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,oP.serializeAws_restJson1ListAccountsCommand)(t,r)}deserialize(t,r){return(0,oP.deserializeAws_restJson1ListAccountsCommand)(t,r)}};dm.ListAccountsCommand=gw});var Sw=f(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.LogoutCommand=void 0;var Xre=B(),Zre=O(),ene=xi(),aP=Ga(),vw=class extends Zre.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Xre.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:ene.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:d=>d},{requestHandler:u}=r;return i.resolve(d=>u.handle(d.request,n||{}),c)}serialize(t,r){return(0,aP.serializeAws_restJson1LogoutCommand)(t,r)}deserialize(t,r){return(0,aP.deserializeAws_restJson1LogoutCommand)(t,r)}};mm.LogoutCommand=vw});var cP=f((uEe,tne)=>{tne.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var pm=f(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.fromString=_s.fromArrayBuffer=void 0;var rne=pS(),ww=require("buffer"),nne=(e,t=0,r=e.byteLength-t)=>{if(!(0,rne.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return ww.Buffer.from(e,t,r)};_s.fromArrayBuffer=nne;var ine=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?ww.Buffer.from(e,t):ww.Buffer.from(e)};_s.fromString=ine});var _m=f(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.Hash=void 0;var bw=pm(),sne=require("buffer"),lP=require("crypto"),Ew=class{constructor(t,r){this.hash=r?(0,lP.createHmac)(t,uP(r)):(0,lP.createHash)(t)}update(t,r){this.hash.update(uP(t,r))}digest(){return Promise.resolve(this.hash.digest())}};hm.Hash=Ew;function uP(e,t){return sne.Buffer.isBuffer(e)?e:typeof e=="string"?(0,bw.fromString)(e,t):ArrayBuffer.isView(e)?(0,bw.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,bw.fromArrayBuffer)(e)}});var Tw=f(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.buildQueryString=void 0;var Aw=fS();function one(e){let t=[];for(let r of Object.keys(e).sort()){let n=e[r];if(r=(0,Aw.escapeUri)(r),Array.isArray(n))for(let i=0,s=n.length;i<s;i++)t.push(`${r}=${(0,Aw.escapeUri)(n[i])}`);else{let i=r;(n||typeof n=="string")&&(i+=`=${(0,Aw.escapeUri)(n)}`),t.push(i)}}return t.join("&")}ym.buildQueryString=one});var dP=f(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.NODEJS_TIMEOUT_ERROR_CODES=void 0;gm.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var Cw=f(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.getTransformedHeaders=void 0;var ane=e=>{let t={};for(let r of Object.keys(e)){let n=e[r];t[r]=Array.isArray(n)?n.join(","):n}return t};vm.getTransformedHeaders=ane});var fP=f(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.setConnectionTimeout=void 0;var cne=(e,t,r=0)=>{!r||e.on("socket",n=>{if(n.connecting){let i=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r);n.on("connect",()=>{clearTimeout(i)})}})};Sm.setConnectionTimeout=cne});var mP=f(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.setSocketTimeout=void 0;var lne=(e,t,r=0)=>{e.setTimeout(r,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))})};wm.setSocketTimeout=lne});var xw=f(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.writeRequestBody=void 0;var une=require("stream");function dne(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{pP(e,t.body)}):pP(e,t.body)}bm.writeRequestBody=dne;function pP(e,t){t instanceof une.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var yP=f(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.NodeHttpHandler=void 0;var fne=Et(),mne=Tw(),hP=require("http"),_P=require("https"),pne=dP(),hne=Cw(),_ne=fP(),yne=mP(),gne=xw(),Iw=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((r,n)=>{typeof t=="function"?t().then(i=>{r(this.resolveDefaultConfig(i))}).catch(n):r(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){let{connectionTimeout:r,socketTimeout:n,httpAgent:i,httpsAgent:s}=t||{},o=!0,a=50;return{connectionTimeout:r,socketTimeout:n,httpAgent:i||new hP.Agent({keepAlive:o,maxSockets:a}),httpsAgent:s||new _P.Agent({keepAlive:o,maxSockets:a})}}destroy(){var t,r,n,i;(r=(t=this.config)===null||t===void 0?void 0:t.httpAgent)===null||r===void 0||r.destroy(),(i=(n=this.config)===null||n===void 0?void 0:n.httpsAgent)===null||i===void 0||i.destroy()}async handle(t,{abortSignal:r}={}){return this.config||(this.config=await this.configProvider),new Promise((n,i)=>{if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(r!=null&&r.aborted){let d=new Error("Request aborted");d.name="AbortError",i(d);return}let s=t.protocol==="https:",o=(0,mne.buildQueryString)(t.query||{}),a={headers:t.headers,host:t.hostname,method:t.method,path:o?`${t.path}?${o}`:t.path,port:t.port,agent:s?this.config.httpsAgent:this.config.httpAgent},u=(s?_P.request:hP.request)(a,d=>{let p=new fne.HttpResponse({statusCode:d.statusCode||-1,headers:(0,hne.getTransformedHeaders)(d.headers),body:d});n({response:p})});u.on("error",d=>{pne.NODEJS_TIMEOUT_ERROR_CODES.includes(d.code)?i(Object.assign(d,{name:"TimeoutError"})):i(d)}),(0,_ne.setConnectionTimeout)(u,i,this.config.connectionTimeout),(0,yne.setSocketTimeout)(u,i,this.config.socketTimeout),r&&(r.onabort=()=>{u.abort();let d=new Error("Request aborted");d.name="AbortError",i(d)}),(0,gne.writeRequestBody)(u,t)})}};Em.NodeHttpHandler=Iw});var gP=f(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.NodeHttp2Handler=void 0;var vne=Et(),Sne=Tw(),Rw=require("http2"),wne=Cw(),bne=xw(),Dw=class{constructor({requestTimeout:t,sessionTimeout:r,disableConcurrentStreams:n}={}){this.metadata={handlerProtocol:"h2"},this.requestTimeout=t,this.sessionTimeout=r,this.disableConcurrentStreams=n,this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(r=>this.destroySession(r));this.sessionCache.clear()}handle(t,{abortSignal:r}={}){return new Promise((n,i)=>{let s=!1;if(r!=null&&r.aborted){s=!0;let T=new Error("Request aborted");T.name="AbortError",i(T);return}let{hostname:o,method:a,port:c,protocol:u,path:d,query:p}=t,m=`${u}//${o}${c?`:${c}`:""}`,_=this.getSession(m,this.disableConcurrentStreams||!1),g=T=>{this.disableConcurrentStreams&&this.destroySession(_),s=!0,i(T)},y=(0,Sne.buildQueryString)(p||{}),A=_.request({...t.headers,[Rw.constants.HTTP2_HEADER_PATH]:y?`${d}?${y}`:d,[Rw.constants.HTTP2_HEADER_METHOD]:a});_.ref(),A.on("response",T=>{let U=new vne.HttpResponse({statusCode:T[":status"]||-1,headers:(0,wne.getTransformedHeaders)(T),body:A});s=!0,n({response:U}),this.disableConcurrentStreams&&(_.close(),this.deleteSessionFromCache(m,_))});let I=this.requestTimeout;I&&A.setTimeout(I,()=>{A.close();let T=new Error(`Stream timed out because of no activity for ${I} ms`);T.name="TimeoutError",g(T)}),r&&(r.onabort=()=>{A.close();let T=new Error("Request aborted");T.name="AbortError",g(T)}),A.on("frameError",(T,U,me)=>{g(new Error(`Frame type id ${T} in stream id ${me} has failed with code ${U}.`))}),A.on("error",g),A.on("aborted",()=>{g(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${A.rstCode}.`))}),A.on("close",()=>{_.unref(),this.disableConcurrentStreams&&_.destroy(),s||g(new Error("Unexpected error: http2 request did not get a response"))}),(0,bne.writeRequestBody)(A,t)})}getSession(t,r){let n=this.sessionCache,i=n.get(t)||[];if(i.length>0&&!r)return i[0];let s=(0,Rw.connect)(t);s.unref();let o=()=>{this.destroySession(s),this.deleteSessionFromCache(t,s)};s.on("goaway",o),s.on("error",o),s.on("frameError",o);let a=this.sessionTimeout;return a&&s.setTimeout(a,o),i.push(s),n.set(t,i),s}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,r){let n=this.sessionCache.get(t)||[];!n.includes(r)||this.sessionCache.set(t,n.filter(i=>i!==r))}};Am.NodeHttp2Handler=Dw});var vP=f(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.Collector=void 0;var Ene=require("stream"),Pw=class extends Ene.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,r,n){this.bufferedBytes.push(t),n()}};Tm.Collector=Pw});var SP=f(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.streamCollector=void 0;var Ane=vP(),Tne=e=>new Promise((t,r)=>{let n=new Ane.Collector;e.pipe(n),e.on("error",i=>{n.end(),r(i)}),n.on("error",r),n.on("finish",function(){let i=new Uint8Array(Buffer.concat(this.bufferedBytes));t(i)})});Cm.streamCollector=Tne});var xm=f($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var Nw=K();Nw.__exportStar(yP(),$a);Nw.__exportStar(gP(),$a);Nw.__exportStar(SP(),$a)});var Im=f(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.toBase64=ys.fromBase64=void 0;var wP=pm(),Cne=/^[A-Za-z0-9+/]*={0,2}$/;function xne(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Cne.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,wP.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}ys.fromBase64=xne;function Ine(e){return(0,wP.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")}ys.toBase64=Ine});var EP=f(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.calculateBodyLength=void 0;var bP=require("fs"),Rne=e=>{if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,bP.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,bP.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};Rm.calculateBodyLength=Rne});var Dm=f(Ow=>{"use strict";Object.defineProperty(Ow,"__esModule",{value:!0});var Dne=K();Dne.__exportStar(EP(),Ow)});var AP=f((Pm,Lw)=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.isCrtAvailable=void 0;var Pne=()=>{try{return typeof require=="function"&&typeof Lw<"u"&&Lw.require&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};Pm.isCrtAvailable=Pne});var Nm=f(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.defaultUserAgent=Fr.UA_APP_ID_INI_NAME=Fr.UA_APP_ID_ENV_NAME=void 0;var Nne=Ci(),TP=require("os"),qw=require("process"),One=AP();Fr.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";Fr.UA_APP_ID_INI_NAME="sdk-ua-app-id";var Lne=({serviceId:e,clientVersion:t})=>{let r=[["aws-sdk-js",t],[`os/${(0,TP.platform)()}`,(0,TP.release)()],["lang/js"],["md/nodejs",`${qw.versions.node}`]],n=(0,One.isCrtAvailable)();n&&r.push(n),e&&r.push([`api/${e}`,t]),qw.env.AWS_EXECUTION_ENV&&r.push([`exec-env/${qw.env.AWS_EXECUTION_ENV}`]);let i=(0,Nne.loadConfig)({environmentVariableSelector:o=>o[Fr.UA_APP_ID_ENV_NAME],configFileSelector:o=>o[Fr.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let o=await i;s=o?[...r,[`app/${o}`]]:[...r]}return s}};Fr.defaultUserAgent=Lne});var Om=f(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.toUtf8=gs.fromUtf8=void 0;var CP=pm(),qne=e=>{let t=(0,CP.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};gs.fromUtf8=qne;var Mne=e=>(0,CP.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");gs.toUtf8=Mne});var xP=f(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});Lm.defaultRegionInfoProvider=void 0;var zne=ar(),jne={"ap-northeast-1":{variants:[{hostname:"portal.sso.ap-northeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-1"},"ap-northeast-2":{variants:[{hostname:"portal.sso.ap-northeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-2"},"ap-south-1":{variants:[{hostname:"portal.sso.ap-south-1.amazonaws.com",tags:[]}],signingRegion:"ap-south-1"},"ap-southeast-1":{variants:[{hostname:"portal.sso.ap-southeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-1"},"ap-southeast-2":{variants:[{hostname:"portal.sso.ap-southeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-2"},"ca-central-1":{variants:[{hostname:"portal.sso.ca-central-1.amazonaws.com",tags:[]}],signingRegion:"ca-central-1"},"eu-central-1":{variants:[{hostname:"portal.sso.eu-central-1.amazonaws.com",tags:[]}],signingRegion:"eu-central-1"},"eu-north-1":{variants:[{hostname:"portal.sso.eu-north-1.amazonaws.com",tags:[]}],signingRegion:"eu-north-1"},"eu-west-1":{variants:[{hostname:"portal.sso.eu-west-1.amazonaws.com",tags:[]}],signingRegion:"eu-west-1"},"eu-west-2":{variants:[{hostname:"portal.sso.eu-west-2.amazonaws.com",tags:[]}],signingRegion:"eu-west-2"},"eu-west-3":{variants:[{hostname:"portal.sso.eu-west-3.amazonaws.com",tags:[]}],signingRegion:"eu-west-3"},"sa-east-1":{variants:[{hostname:"portal.sso.sa-east-1.amazonaws.com",tags:[]}],signingRegion:"sa-east-1"},"us-east-1":{variants:[{hostname:"portal.sso.us-east-1.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-2":{variants:[{hostname:"portal.sso.us-east-2.amazonaws.com",tags:[]}],signingRegion:"us-east-2"},"us-gov-east-1":{variants:[{hostname:"portal.sso.us-gov-east-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-east-1"},"us-gov-west-1":{variants:[{hostname:"portal.sso.us-gov-west-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-west-1"},"us-west-2":{variants:[{hostname:"portal.sso.us-west-2.amazonaws.com",tags:[]}],signingRegion:"us-west-2"}},kne={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com.cn",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.c2s.ic.gov",tags:[]},{hostname:"portal.sso-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.sc2s.sgov.gov",tags:[]},{hostname:"portal.sso-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]}},Une=async(e,t)=>(0,zne.getRegionInfo)(e,{...t,signingService:"awsssoportal",regionHash:jne,partitionHash:kne});Lm.defaultRegionInfoProvider=Une});var IP=f(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.getRuntimeConfig=void 0;var Fne=qa(),Bne=xP(),Gne=e=>{var t,r,n,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:Bne.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"SSO",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:Fne.parseUrl}};qm.getRuntimeConfig=Gne});var RP=f(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.IMDS_REGION_PATH=Ct.DEFAULTS_MODE_OPTIONS=Ct.ENV_IMDS_DISABLED=Ct.AWS_DEFAULT_REGION_ENV=Ct.AWS_REGION_ENV=Ct.AWS_EXECUTION_ENV=void 0;Ct.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";Ct.AWS_REGION_ENV="AWS_REGION";Ct.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";Ct.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";Ct.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];Ct.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var DP=f(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});Mm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var $ne="AWS_DEFAULTS_MODE",Vne="defaults_mode";Mm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[$ne],configFileSelector:e=>e[Vne],default:"legacy"}});var OP=f(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.resolveDefaultsModeConfig=void 0;var Kne=ar(),PP=Wf(),NP=Ci(),Hne=ke(),$n=RP(),Wne=DP(),Yne=({region:e=(0,NP.loadConfig)(Kne.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,NP.loadConfig)(Wne.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,Hne.memoize)(async()=>{let r=typeof t=="function"?await t():t;switch(r==null?void 0:r.toLowerCase()){case"auto":return Jne(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r==null?void 0:r.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${$n.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${r}`)}});zm.resolveDefaultsModeConfig=Yne;var Jne=async e=>{if(e){let t=typeof e=="function"?await e():e,r=await Qne();return r?t===r?"in-region":"cross-region":"standard"}return"standard"},Qne=async()=>{var e;if(process.env[$n.AWS_EXECUTION_ENV]&&(process.env[$n.AWS_REGION_ENV]||process.env[$n.AWS_DEFAULT_REGION_ENV]))return(e=process.env[$n.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[$n.AWS_DEFAULT_REGION_ENV];if(!process.env[$n.ENV_IMDS_DISABLED])try{let t=await(0,PP.getInstanceMetadataEndpoint)();return(await(0,PP.httpRequest)({...t,path:$n.IMDS_REGION_PATH})).toString()}catch{}}});var jm=f(Mw=>{"use strict";Object.defineProperty(Mw,"__esModule",{value:!0});var Xne=K();Xne.__exportStar(OP(),Mw)});var zP=f(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.getRuntimeConfig=void 0;var Zne=K(),eie=Zne.__importDefault(cP()),km=ar(),tie=_m(),zw=yi(),Va=Ci(),LP=xm(),qP=Im(),rie=Dm(),nie=Nm(),MP=Om(),iie=IP(),sie=O(),oie=jm(),aie=e=>{var t,r,n,i,s,o,a,c,u,d,p,m,_,g;let y=(0,oie.resolveDefaultsModeConfig)(e),A=()=>y().then(sie.loadConfigsForDefaultMode),I=(0,iie.getRuntimeConfig)(e);return{...I,...e,runtime:"node",defaultsMode:y,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:qP.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:qP.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:rie.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,nie.defaultUserAgent)({serviceId:I.serviceId,clientVersion:eie.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Va.loadConfig)(zw.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,Va.loadConfig)(km.NODE_REGION_CONFIG_OPTIONS,km.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(a=e==null?void 0:e.requestHandler)!==null&&a!==void 0?a:new LP.NodeHttpHandler(A),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,Va.loadConfig)({...zw.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await A()).retryMode||zw.DEFAULT_RETRY_MODE}),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:tie.Hash.bind(null,"sha256"),streamCollector:(d=e==null?void 0:e.streamCollector)!==null&&d!==void 0?d:LP.streamCollector,useDualstackEndpoint:(p=e==null?void 0:e.useDualstackEndpoint)!==null&&p!==void 0?p:(0,Va.loadConfig)(km.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(m=e==null?void 0:e.useFipsEndpoint)!==null&&m!==void 0?m:(0,Va.loadConfig)(km.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(_=e==null?void 0:e.utf8Decoder)!==null&&_!==void 0?_:MP.fromUtf8,utf8Encoder:(g=e==null?void 0:e.utf8Encoder)!==null&&g!==void 0?g:MP.toUtf8}};Um.getRuntimeConfig=aie});var Ka=f(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.SSOClient=void 0;var jP=ar(),cie=rd(),kP=ud(),lie=dd(),UP=yi(),FP=Qd(),uie=O(),die=zP(),jw=class extends uie.Client{constructor(t){let r=(0,die.getRuntimeConfig)(t),n=(0,jP.resolveRegionConfig)(r),i=(0,jP.resolveEndpointsConfig)(n),s=(0,UP.resolveRetryConfig)(i),o=(0,kP.resolveHostHeaderConfig)(s),a=(0,FP.resolveUserAgentConfig)(o);super(a),this.config=a,this.middlewareStack.use((0,UP.getRetryPlugin)(this.config)),this.middlewareStack.use((0,cie.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,kP.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,lie.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,FP.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Fm.SSOClient=jw});var Gm=f(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.SSO=void 0;var fie=_w(),mie=um(),pie=fm(),hie=Sw(),_ie=Ka(),kw=class extends _ie.SSOClient{getRoleCredentials(t,r,n){let i=new fie.GetRoleCredentialsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccountRoles(t,r,n){let i=new mie.ListAccountRolesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccounts(t,r,n){let i=new pie.ListAccountsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}logout(t,r,n){let i=new hie.LogoutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};Bm.SSO=kw});var BP=f(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var $m=K();$m.__exportStar(_w(),vs);$m.__exportStar(um(),vs);$m.__exportStar(fm(),vs);$m.__exportStar(Sw(),vs)});var GP=f(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0});var yie=K();yie.__exportStar(xi(),Uw)});var VP=f($P=>{"use strict";Object.defineProperty($P,"__esModule",{value:!0})});var KP=f(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});Vm.paginateListAccountRoles=void 0;var gie=um(),vie=Gm(),Sie=Ka(),wie=async(e,t,...r)=>await e.send(new gie.ListAccountRolesCommand(t),...r),bie=async(e,t,...r)=>await e.listAccountRoles(t,...r);async function*Eie(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof vie.SSO)s=await bie(e.client,t,...r);else if(e.client instanceof Sie.SSOClient)s=await wie(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Vm.paginateListAccountRoles=Eie});var HP=f(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.paginateListAccounts=void 0;var Aie=fm(),Tie=Gm(),Cie=Ka(),xie=async(e,t,...r)=>await e.send(new Aie.ListAccountsCommand(t),...r),Iie=async(e,t,...r)=>await e.listAccounts(t,...r);async function*Rie(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof Tie.SSO)s=await Iie(e.client,t,...r);else if(e.client instanceof Cie.SSOClient)s=await xie(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Km.paginateListAccounts=Rie});var WP=f(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Fw=K();Fw.__exportStar(VP(),Ha);Fw.__exportStar(KP(),Ha);Fw.__exportStar(HP(),Ha)});var YP=f(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.SSOServiceException=void 0;var Wa=K();Wa.__exportStar(Gm(),un);Wa.__exportStar(Ka(),un);Wa.__exportStar(BP(),un);Wa.__exportStar(GP(),un);Wa.__exportStar(WP(),un);var Die=Xf();Object.defineProperty(un,"SSOServiceException",{enumerable:!0,get:function(){return Die.SSOServiceException}})});var QP=f(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.resolveSSOCredentials=void 0;var JP=YP(),Hm=ke(),Pie=Gn(),Nie=15*60*1e3,Wm=!1,Oie=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:r,ssoRoleName:n,ssoClient:i})=>{let s,o="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,Pie.getSSOTokenFromFile)(e)}catch{throw new Hm.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${o}`,Wm)}if(new Date(s.expiresAt).getTime()-Date.now()<=Nie)throw new Hm.CredentialsProviderError(`The SSO session associated with this profile has expired. ${o}`,Wm);let{accessToken:a}=s,c=i||new JP.SSOClient({region:r}),u;try{u=await c.send(new JP.GetRoleCredentialsCommand({accountId:t,roleName:n,accessToken:a}))}catch(g){throw Hm.CredentialsProviderError.from(g,Wm)}let{roleCredentials:{accessKeyId:d,secretAccessKey:p,sessionToken:m,expiration:_}={}}=u;if(!d||!p||!m||!_)throw new Hm.CredentialsProviderError("SSO returns an invalid temporary credential.",Wm);return{accessKeyId:d,secretAccessKey:p,sessionToken:m,expiration:new Date(_)}};Ym.resolveSSOCredentials=Oie});var Bw=f(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.validateSsoProfile=void 0;var Lie=ke(),qie=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=e;if(!t||!r||!n||!i)throw new Lie.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
28
- Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};Jm.validateSsoProfile=qie});var tN=f(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.fromSSO=void 0;var XP=ke(),ZP=Gn(),Mie=mw(),eN=QP(),zie=Bw(),jie=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s}=e;if(!t&&!r&&!n&&!i){let o=await(0,ZP.parseKnownFiles)(e),a=(0,ZP.getProfileName)(e),c=o[a];if(!(0,Mie.isSsoProfile)(c))throw new XP.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`);let{sso_start_url:u,sso_account_id:d,sso_region:p,sso_role_name:m}=(0,zie.validateSsoProfile)(c);return(0,eN.resolveSSOCredentials)({ssoStartUrl:u,ssoAccountId:d,ssoRegion:p,ssoRoleName:m,ssoClient:s})}else{if(!t||!r||!n||!i)throw new XP.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,eN.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s})}};Qm.fromSSO=jie});var nN=f(rN=>{"use strict";Object.defineProperty(rN,"__esModule",{value:!0})});var Zm=f(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});var Xm=K();Xm.__exportStar(tN(),Ss);Xm.__exportStar(mw(),Ss);Xm.__exportStar(nN(),Ss);Xm.__exportStar(Bw(),Ss)});var sN=f(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.resolveSsoCredentials=ws.isSsoProfile=void 0;var iN=Zm(),kie=Zm();Object.defineProperty(ws,"isSsoProfile",{enumerable:!0,get:function(){return kie.isSsoProfile}});var Uie=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=(0,iN.validateSsoProfile)(e);return(0,iN.fromSSO)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i})()};ws.resolveSsoCredentials=Uie});var oN=f(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.resolveStaticCredentials=bs.isStaticCredsProfile=void 0;var Fie=e=>Boolean(e)&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;bs.isStaticCredsProfile=Fie;var Bie=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});bs.resolveStaticCredentials=Bie});var Gw=f(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.fromWebToken=void 0;var Gie=ke(),$ie=e=>()=>{let{roleArn:t,roleSessionName:r,webIdentityToken:n,providerId:i,policyArns:s,policy:o,durationSeconds:a,roleAssumerWithWebIdentity:c}=e;if(!c)throw new Gie.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return c({RoleArn:t,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:i,PolicyArns:s,Policy:o,DurationSeconds:a})};ep.fromWebToken=$ie});var aN=f(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.fromTokenFile=void 0;var Vie=ke(),Kie=require("fs"),Hie=Gw(),Wie="AWS_WEB_IDENTITY_TOKEN_FILE",Yie="AWS_ROLE_ARN",Jie="AWS_ROLE_SESSION_NAME",Qie=(e={})=>async()=>Xie(e);tp.fromTokenFile=Qie;var Xie=e=>{var t,r,n;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[Wie],s=(r=e==null?void 0:e.roleArn)!==null&&r!==void 0?r:process.env[Yie],o=(n=e==null?void 0:e.roleSessionName)!==null&&n!==void 0?n:process.env[Jie];if(!i||!s)throw new Vie.CredentialsProviderError("Web identity configuration not specified");return(0,Hie.fromWebToken)({...e,webIdentityToken:(0,Kie.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:o})()}});var $w=f(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var cN=K();cN.__exportStar(aN(),rp);cN.__exportStar(Gw(),rp)});var lN=f(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveWebIdentityCredentials=Es.isWebIdentityProfile=void 0;var Zie=$w(),ese=e=>Boolean(e)&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;Es.isWebIdentityProfile=ese;var tse=async(e,t)=>(0,Zie.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();Es.resolveWebIdentityCredentials=tse});var fw=f(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.resolveProfileData=void 0;var rse=ke(),uN=XD(),dN=sN(),np=oN(),fN=lN(),nse=async(e,t,r,n={})=>{let i=t[e];if(Object.keys(n).length>0&&(0,np.isStaticCredsProfile)(i))return(0,np.resolveStaticCredentials)(i);if((0,uN.isAssumeRoleProfile)(i))return(0,uN.resolveAssumeRoleCredentials)(e,t,r,n);if((0,np.isStaticCredsProfile)(i))return(0,np.resolveStaticCredentials)(i);if((0,fN.isWebIdentityProfile)(i))return(0,fN.resolveWebIdentityCredentials)(i,r);if((0,dN.isSsoProfile)(i))return(0,dN.resolveSsoCredentials)(i);throw new rse.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};ip.resolveProfileData=nse});var pN=f(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.fromIni=void 0;var mN=Gn(),ise=fw(),sse=(e={})=>async()=>{let t=await(0,mN.parseKnownFiles)(e);return(0,ise.resolveProfileData)((0,mN.getProfileName)(e),t,e)};sp.fromIni=sse});var hN=f(Vw=>{"use strict";Object.defineProperty(Vw,"__esModule",{value:!0});var ose=K();ose.__exportStar(pN(),Vw)});var _N=f(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.getValidatedProcessCredentials=void 0;var ase=(e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let r=new Date;if(new Date(t.Expiration)<r)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}};op.getValidatedProcessCredentials=ase});var yN=f(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.resolveProcessCredentials=void 0;var Kw=ke(),cse=require("child_process"),lse=require("util"),use=_N(),dse=async(e,t)=>{let r=t[e];if(t[e]){let n=r.credential_process;if(n!==void 0){let i=(0,lse.promisify)(cse.exec);try{let{stdout:s}=await i(n),o;try{o=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,use.getValidatedProcessCredentials)(e,o)}catch(s){throw new Kw.CredentialsProviderError(s.message)}}else throw new Kw.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Kw.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};ap.resolveProcessCredentials=dse});var vN=f(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.fromProcess=void 0;var gN=Gn(),fse=yN(),mse=(e={})=>async()=>{let t=await(0,gN.parseKnownFiles)(e);return(0,fse.resolveProcessCredentials)((0,gN.getProfileName)(e),t)};cp.fromProcess=mse});var SN=f(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0});var pse=K();pse.__exportStar(vN(),Hw)});var wN=f(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.remoteProvider=Ri.ENV_IMDS_DISABLED=void 0;var lp=Wf(),hse=ke();Ri.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var _se=e=>process.env[lp.ENV_CMDS_RELATIVE_URI]||process.env[lp.ENV_CMDS_FULL_URI]?(0,lp.fromContainerMetadata)(e):process.env[Ri.ENV_IMDS_DISABLED]?async()=>{throw new hse.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,lp.fromInstanceMetadata)(e);Ri.remoteProvider=_se});var bN=f(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.defaultProvider=void 0;var yse=ZS(),gse=hN(),vse=SN(),Sse=Zm(),wse=$w(),Ww=ke(),bse=Gn(),Ese=wN(),Ase=(e={})=>(0,Ww.memoize)((0,Ww.chain)(...e.profile||process.env[bse.ENV_PROFILE]?[]:[(0,yse.fromEnv)()],(0,Sse.fromSSO)(e),(0,gse.fromIni)(e),(0,vse.fromProcess)(e),(0,wse.fromTokenFile)(e),(0,Ese.remoteProvider)(e),async()=>{throw new Ww.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0);up.defaultProvider=Ase});var dp=f(Yw=>{"use strict";Object.defineProperty(Yw,"__esModule",{value:!0});var Tse=K();Tse.__exportStar(bN(),Yw)});var EN=f(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.defaultRegionInfoProvider=void 0;var Cse=ar(),xse={"aws-global":{variants:[{hostname:"sts.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"sts-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"sts-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"sts.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"sts.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"sts-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"sts-fips.us-west-2.amazonaws.com",tags:["fips"]}]}},Ise={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com.cn",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"sts-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.c2s.ic.gov",tags:[]},{hostname:"sts-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.sc2s.sgov.gov",tags:[]},{hostname:"sts-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]}},Rse=async(e,t)=>(0,Cse.getRegionInfo)(e,{...t,signingService:"sts",regionHash:xse,partitionHash:Ise});fp.defaultRegionInfoProvider=Rse});var AN=f(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.getRuntimeConfig=void 0;var Dse=qa(),Pse=EN(),Nse=e=>{var t,r,n,i,s;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:Pse.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"STS",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:Dse.parseUrl}};mp.getRuntimeConfig=Nse});var IN=f(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.getRuntimeConfig=void 0;var Ose=K(),Lse=Ose.__importDefault(uD()),qse=QS(),pp=ar(),Mse=dp(),zse=_m(),Jw=yi(),Ya=Ci(),TN=xm(),CN=Im(),jse=Dm(),kse=Nm(),xN=Om(),Use=AN(),Fse=O(),Bse=jm(),Gse=e=>{var t,r,n,i,s,o,a,c,u,d,p,m,_,g,y;let A=(0,Bse.resolveDefaultsModeConfig)(e),I=()=>A().then(Fse.loadConfigsForDefaultMode),T=(0,Use.getRuntimeConfig)(e);return{...T,...e,runtime:"node",defaultsMode:A,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:CN.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:CN.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:jse.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,qse.decorateDefaultCredentialProvider)(Mse.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,kse.defaultUserAgent)({serviceId:T.serviceId,clientVersion:Lse.default.version}),maxAttempts:(o=e==null?void 0:e.maxAttempts)!==null&&o!==void 0?o:(0,Ya.loadConfig)(Jw.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,Ya.loadConfig)(pp.NODE_REGION_CONFIG_OPTIONS,pp.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new TN.NodeHttpHandler(I),retryMode:(u=e==null?void 0:e.retryMode)!==null&&u!==void 0?u:(0,Ya.loadConfig)({...Jw.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await I()).retryMode||Jw.DEFAULT_RETRY_MODE}),sha256:(d=e==null?void 0:e.sha256)!==null&&d!==void 0?d:zse.Hash.bind(null,"sha256"),streamCollector:(p=e==null?void 0:e.streamCollector)!==null&&p!==void 0?p:TN.streamCollector,useDualstackEndpoint:(m=e==null?void 0:e.useDualstackEndpoint)!==null&&m!==void 0?m:(0,Ya.loadConfig)(pp.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(_=e==null?void 0:e.useFipsEndpoint)!==null&&_!==void 0?_:(0,Ya.loadConfig)(pp.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(g=e==null?void 0:e.utf8Decoder)!==null&&g!==void 0?g:xN.fromUtf8,utf8Encoder:(y=e==null?void 0:e.utf8Encoder)!==null&&y!==void 0?y:xN.toUtf8}};hp.getRuntimeConfig=Gse});var yp=f(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.STSClient=void 0;var RN=ar(),$se=rd(),DN=ud(),Vse=dd(),PN=yi(),Kse=lD(),NN=Qd(),Hse=O(),Wse=IN(),Ja=class extends Hse.Client{constructor(t){let r=(0,Wse.getRuntimeConfig)(t),n=(0,RN.resolveRegionConfig)(r),i=(0,RN.resolveEndpointsConfig)(n),s=(0,PN.resolveRetryConfig)(i),o=(0,DN.resolveHostHeaderConfig)(s),a=(0,Kse.resolveStsAuthConfig)(o,{stsClientCtor:Ja}),c=(0,NN.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,PN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,$se.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,DN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Vse.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,NN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};_p.STSClient=Ja});var ON=f(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.STS=void 0;var Yse=pf(),Jse=kS(),Qse=yf(),Xse=BS(),Zse=$S(),eoe=KS(),toe=WS(),roe=JS(),noe=yp(),Qw=class extends noe.STSClient{assumeRole(t,r,n){let i=new Yse.AssumeRoleCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}assumeRoleWithSAML(t,r,n){let i=new Jse.AssumeRoleWithSAMLCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}assumeRoleWithWebIdentity(t,r,n){let i=new Qse.AssumeRoleWithWebIdentityCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}decodeAuthorizationMessage(t,r,n){let i=new Xse.DecodeAuthorizationMessageCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getAccessKeyInfo(t,r,n){let i=new Zse.GetAccessKeyInfoCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getCallerIdentity(t,r,n){let i=new eoe.GetCallerIdentityCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getFederationToken(t,r,n){let i=new toe.GetFederationTokenCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getSessionToken(t,r,n){let i=new roe.GetSessionTokenCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};gp.STS=Qw});var LN=f(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});var Vn=K();Vn.__exportStar(pf(),Br);Vn.__exportStar(kS(),Br);Vn.__exportStar(yf(),Br);Vn.__exportStar(BS(),Br);Vn.__exportStar($S(),Br);Vn.__exportStar(KS(),Br);Vn.__exportStar(WS(),Br);Vn.__exportStar(JS(),Br)});var zN=f(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.decorateDefaultCredentialProvider=Gr.getDefaultRoleAssumerWithWebIdentity=Gr.getDefaultRoleAssumer=void 0;var qN=QS(),MN=yp(),ioe=(e={})=>(0,qN.getDefaultRoleAssumer)(e,MN.STSClient);Gr.getDefaultRoleAssumer=ioe;var soe=(e={})=>(0,qN.getDefaultRoleAssumerWithWebIdentity)(e,MN.STSClient);Gr.getDefaultRoleAssumerWithWebIdentity=soe;var ooe=e=>t=>e({roleAssumer:(0,Gr.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,Gr.getDefaultRoleAssumerWithWebIdentity)(t),...t});Gr.decorateDefaultCredentialProvider=ooe});var jN=f(Xw=>{"use strict";Object.defineProperty(Xw,"__esModule",{value:!0});var aoe=K();aoe.__exportStar(cr(),Xw)});var kN=f(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.STSServiceException=void 0;var Qa=K();Qa.__exportStar(ON(),dn);Qa.__exportStar(yp(),dn);Qa.__exportStar(LN(),dn);Qa.__exportStar(zN(),dn);Qa.__exportStar(jN(),dn);var coe=Zd();Object.defineProperty(dn,"STSServiceException",{enumerable:!0,get:function(){return coe.STSServiceException}})});var UN=f(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.defaultRegionInfoProvider=void 0;var loe=ar(),uoe={"ca-central-1":{variants:[{hostname:"dynamodb-fips.ca-central-1.amazonaws.com",tags:["fips"]}]},local:{variants:[{hostname:"localhost:8000",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"dynamodb-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"dynamodb-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"dynamodb.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"dynamodb.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"dynamodb-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"dynamodb-fips.us-west-2.amazonaws.com",tags:["fips"]}]}},doe={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","ca-central-1-fips","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","local","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com",tags:[]},{hostname:"dynamodb-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com.cn",tags:[]},{hostname:"dynamodb-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.c2s.ic.gov",tags:[]},{hostname:"dynamodb-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.sc2s.sgov.gov",tags:[]},{hostname:"dynamodb-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com",tags:[]},{hostname:"dynamodb.{region}.amazonaws.com",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.aws",tags:["dualstack"]}]}},foe=async(e,t)=>(0,loe.getRegionInfo)(e,{...t,signingService:"dynamodb",regionHash:uoe,partitionHash:doe});vp.defaultRegionInfoProvider=foe});var FN=f(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.getRuntimeConfig=void 0;var moe=qa(),poe=UN(),hoe=e=>{var t,r,n,i,s;return{apiVersion:"2012-08-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:poe.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"DynamoDB",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:moe.parseUrl}};Sp.getRuntimeConfig=hoe});var VN=f(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.getRuntimeConfig=void 0;var _oe=K(),yoe=_oe.__importDefault(W1()),goe=kN(),wp=ar(),voe=dp(),Soe=_m(),woe=Jv(),Zw=yi(),As=Ci(),BN=xm(),GN=Im(),boe=Dm(),Eoe=Nm(),$N=Om(),Aoe=FN(),Toe=O(),Coe=jm(),xoe=e=>{var t,r,n,i,s,o,a,c,u,d,p,m,_,g,y,A;let I=(0,Coe.resolveDefaultsModeConfig)(e),T=()=>I().then(Toe.loadConfigsForDefaultMode),U=(0,Aoe.getRuntimeConfig)(e);return{...U,...e,runtime:"node",defaultsMode:I,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:GN.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:GN.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:boe.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,goe.decorateDefaultCredentialProvider)(voe.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,Eoe.defaultUserAgent)({serviceId:U.serviceId,clientVersion:yoe.default.version}),endpointDiscoveryEnabledProvider:(o=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&o!==void 0?o:(0,As.loadConfig)(woe.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:(0,As.loadConfig)(Zw.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:(0,As.loadConfig)(wp.NODE_REGION_CONFIG_OPTIONS,wp.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(u=e==null?void 0:e.requestHandler)!==null&&u!==void 0?u:new BN.NodeHttpHandler(T),retryMode:(d=e==null?void 0:e.retryMode)!==null&&d!==void 0?d:(0,As.loadConfig)({...Zw.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await T()).retryMode||Zw.DEFAULT_RETRY_MODE}),sha256:(p=e==null?void 0:e.sha256)!==null&&p!==void 0?p:Soe.Hash.bind(null,"sha256"),streamCollector:(m=e==null?void 0:e.streamCollector)!==null&&m!==void 0?m:BN.streamCollector,useDualstackEndpoint:(_=e==null?void 0:e.useDualstackEndpoint)!==null&&_!==void 0?_:(0,As.loadConfig)(wp.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(g=e==null?void 0:e.useFipsEndpoint)!==null&&g!==void 0?g:(0,As.loadConfig)(wp.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(y=e==null?void 0:e.utf8Decoder)!==null&&y!==void 0?y:$N.fromUtf8,utf8Encoder:(A=e==null?void 0:e.utf8Encoder)!==null&&A!==void 0?A:$N.toUtf8}};bp.getRuntimeConfig=xoe});var Kn=f(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.DynamoDBClient=void 0;var KN=ar(),Ioe=rd(),Roe=Jv(),HN=ud(),Doe=dd(),WN=yi(),YN=an(),JN=Qd(),Poe=O(),Noe=Ql(),Ooe=VN(),e0=class extends Poe.Client{constructor(t){let r=(0,Ooe.getRuntimeConfig)(t),n=(0,KN.resolveRegionConfig)(r),i=(0,KN.resolveEndpointsConfig)(n),s=(0,WN.resolveRetryConfig)(i),o=(0,HN.resolveHostHeaderConfig)(s),a=(0,YN.resolveAwsAuthConfig)(o),c=(0,JN.resolveUserAgentConfig)(a),u=(0,Roe.resolveEndpointDiscoveryConfig)(c,{endpointDiscoveryCommandCtor:Noe.DescribeEndpointsCommand});super(u),this.config=u,this.middlewareStack.use((0,WN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Ioe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,HN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Doe.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,YN.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,JN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Ep.DynamoDBClient=e0});var Di=f(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.DynamoDB=void 0;var Loe=Xy(),qoe=eg(),Moe=rg(),zoe=ig(),joe=og(),koe=cg(),Uoe=ug(),Foe=fg(),Boe=pg(),Goe=_g(),$oe=gg(),Voe=Sg(),Koe=Ql(),Hoe=Eg(),Woe=Tg(),Yoe=xg(),Joe=Rg(),Qoe=Pg(),Xoe=aa(),Zoe=Lg(),eae=Mg(),tae=jg(),rae=Ug(),nae=Bg(),iae=$g(),sae=Kg(),oae=Wg(),aae=Jg(),cae=pu(),lae=_u(),uae=ev(),dae=vu(),fae=nv(),mae=sv(),pae=Eu(),hae=cv(),_ae=uv(),yae=xu(),gae=mv(),vae=hv(),Sae=yv(),wae=vv(),bae=wv(),Eae=Ev(),Aae=Tv(),Tae=xv(),Cae=Rv(),xae=Pv(),Iae=Ov(),Rae=qv(),Dae=Kn(),t0=class extends Dae.DynamoDBClient{batchExecuteStatement(t,r,n){let i=new Loe.BatchExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchGetItem(t,r,n){let i=new qoe.BatchGetItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchWriteItem(t,r,n){let i=new Moe.BatchWriteItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createBackup(t,r,n){let i=new zoe.CreateBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createGlobalTable(t,r,n){let i=new joe.CreateGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createTable(t,r,n){let i=new koe.CreateTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteBackup(t,r,n){let i=new Uoe.DeleteBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteItem(t,r,n){let i=new Foe.DeleteItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteTable(t,r,n){let i=new Boe.DeleteTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeBackup(t,r,n){let i=new Goe.DescribeBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeContinuousBackups(t,r,n){let i=new $oe.DescribeContinuousBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeContributorInsights(t,r,n){let i=new Voe.DescribeContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeEndpoints(t,r,n){let i=new Koe.DescribeEndpointsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeExport(t,r,n){let i=new Hoe.DescribeExportCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeGlobalTable(t,r,n){let i=new Woe.DescribeGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeGlobalTableSettings(t,r,n){let i=new Yoe.DescribeGlobalTableSettingsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeKinesisStreamingDestination(t,r,n){let i=new Joe.DescribeKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeLimits(t,r,n){let i=new Qoe.DescribeLimitsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTable(t,r,n){let i=new Xoe.DescribeTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTableReplicaAutoScaling(t,r,n){let i=new Zoe.DescribeTableReplicaAutoScalingCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTimeToLive(t,r,n){let i=new eae.DescribeTimeToLiveCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}disableKinesisStreamingDestination(t,r,n){let i=new tae.DisableKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}enableKinesisStreamingDestination(t,r,n){let i=new rae.EnableKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeStatement(t,r,n){let i=new nae.ExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeTransaction(t,r,n){let i=new iae.ExecuteTransactionCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}exportTableToPointInTime(t,r,n){let i=new sae.ExportTableToPointInTimeCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getItem(t,r,n){let i=new oae.GetItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listBackups(t,r,n){let i=new aae.ListBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listContributorInsights(t,r,n){let i=new cae.ListContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listExports(t,r,n){let i=new lae.ListExportsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listGlobalTables(t,r,n){let i=new uae.ListGlobalTablesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listTables(t,r,n){let i=new dae.ListTablesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listTagsOfResource(t,r,n){let i=new fae.ListTagsOfResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}putItem(t,r,n){let i=new mae.PutItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}query(t,r,n){let i=new pae.QueryCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}restoreTableFromBackup(t,r,n){let i=new hae.RestoreTableFromBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}restoreTableToPointInTime(t,r,n){let i=new _ae.RestoreTableToPointInTimeCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}scan(t,r,n){let i=new yae.ScanCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}tagResource(t,r,n){let i=new gae.TagResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactGetItems(t,r,n){let i=new vae.TransactGetItemsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactWriteItems(t,r,n){let i=new Sae.TransactWriteItemsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}untagResource(t,r,n){let i=new wae.UntagResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateContinuousBackups(t,r,n){let i=new bae.UpdateContinuousBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateContributorInsights(t,r,n){let i=new Eae.UpdateContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateGlobalTable(t,r,n){let i=new Aae.UpdateGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateGlobalTableSettings(t,r,n){let i=new Tae.UpdateGlobalTableSettingsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateItem(t,r,n){let i=new Cae.UpdateItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTable(t,r,n){let i=new xae.UpdateTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTableReplicaAutoScaling(t,r,n){let i=new Iae.UpdateTableReplicaAutoScalingCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTimeToLive(t,r,n){let i=new Rae.UpdateTimeToLiveCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};Ap.DynamoDB=t0});var QN=f(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});var ne=K();ne.__exportStar(Xy(),J);ne.__exportStar(eg(),J);ne.__exportStar(rg(),J);ne.__exportStar(ig(),J);ne.__exportStar(og(),J);ne.__exportStar(cg(),J);ne.__exportStar(ug(),J);ne.__exportStar(fg(),J);ne.__exportStar(pg(),J);ne.__exportStar(_g(),J);ne.__exportStar(gg(),J);ne.__exportStar(Sg(),J);ne.__exportStar(Ql(),J);ne.__exportStar(Eg(),J);ne.__exportStar(Tg(),J);ne.__exportStar(xg(),J);ne.__exportStar(Rg(),J);ne.__exportStar(Pg(),J);ne.__exportStar(aa(),J);ne.__exportStar(Lg(),J);ne.__exportStar(Mg(),J);ne.__exportStar(jg(),J);ne.__exportStar(Ug(),J);ne.__exportStar(Bg(),J);ne.__exportStar($g(),J);ne.__exportStar(Kg(),J);ne.__exportStar(Wg(),J);ne.__exportStar(Jg(),J);ne.__exportStar(pu(),J);ne.__exportStar(_u(),J);ne.__exportStar(ev(),J);ne.__exportStar(vu(),J);ne.__exportStar(nv(),J);ne.__exportStar(sv(),J);ne.__exportStar(Eu(),J);ne.__exportStar(cv(),J);ne.__exportStar(uv(),J);ne.__exportStar(xu(),J);ne.__exportStar(mv(),J);ne.__exportStar(hv(),J);ne.__exportStar(yv(),J);ne.__exportStar(vv(),J);ne.__exportStar(wv(),J);ne.__exportStar(Ev(),J);ne.__exportStar(Tv(),J);ne.__exportStar(xv(),J);ne.__exportStar(Rv(),J);ne.__exportStar(Pv(),J);ne.__exportStar(Ov(),J);ne.__exportStar(qv(),J)});var XN=f(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});var Pae=K();Pae.__exportStar(W(),r0)});var eO=f(ZN=>{"use strict";Object.defineProperty(ZN,"__esModule",{value:!0})});var tO=f(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.paginateListContributorInsights=void 0;var Nae=pu(),Oae=Di(),Lae=Kn(),qae=async(e,t,...r)=>await e.send(new Nae.ListContributorInsightsCommand(t),...r),Mae=async(e,t,...r)=>await e.listContributorInsights(t,...r);async function*zae(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=n,t.MaxResults=e.pageSize,e.client instanceof Oae.DynamoDB)s=await Mae(e.client,t,...r);else if(e.client instanceof Lae.DynamoDBClient)s=await qae(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.NextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Tp.paginateListContributorInsights=zae});var rO=f(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.paginateListExports=void 0;var jae=_u(),kae=Di(),Uae=Kn(),Fae=async(e,t,...r)=>await e.send(new jae.ListExportsCommand(t),...r),Bae=async(e,t,...r)=>await e.listExports(t,...r);async function*Gae(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=n,t.MaxResults=e.pageSize,e.client instanceof kae.DynamoDB)s=await Bae(e.client,t,...r);else if(e.client instanceof Uae.DynamoDBClient)s=await Fae(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.NextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Cp.paginateListExports=Gae});var nO=f(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.paginateListTables=void 0;var $ae=vu(),Vae=Di(),Kae=Kn(),Hae=async(e,t,...r)=>await e.send(new $ae.ListTablesCommand(t),...r),Wae=async(e,t,...r)=>await e.listTables(t,...r);async function*Yae(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartTableName=n,t.Limit=e.pageSize,e.client instanceof Vae.DynamoDB)s=await Wae(e.client,t,...r);else if(e.client instanceof Kae.DynamoDBClient)s=await Hae(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.LastEvaluatedTableName,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}xp.paginateListTables=Yae});var iO=f(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.paginateQuery=void 0;var Jae=Eu(),Qae=Di(),Xae=Kn(),Zae=async(e,t,...r)=>await e.send(new Jae.QueryCommand(t),...r),ece=async(e,t,...r)=>await e.query(t,...r);async function*tce(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof Qae.DynamoDB)s=await ece(e.client,t,...r);else if(e.client instanceof Xae.DynamoDBClient)s=await Zae(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.LastEvaluatedKey,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Ip.paginateQuery=tce});var sO=f(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.paginateScan=void 0;var rce=xu(),nce=Di(),ice=Kn(),sce=async(e,t,...r)=>await e.send(new rce.ScanCommand(t),...r),oce=async(e,t,...r)=>await e.scan(t,...r);async function*ace(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof nce.DynamoDB)s=await oce(e.client,t,...r);else if(e.client instanceof ice.DynamoDBClient)s=await sce(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.LastEvaluatedKey,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Rp.paginateScan=ace});var oO=f(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});var Ts=K();Ts.__exportStar(eO(),Hn);Ts.__exportStar(tO(),Hn);Ts.__exportStar(rO(),Hn);Ts.__exportStar(nO(),Hn);Ts.__exportStar(iO(),Hn);Ts.__exportStar(sO(),Hn)});var n0=f(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.sleep=void 0;var cce=e=>new Promise(t=>setTimeout(t,e*1e3));Dp.sleep=cce});var Np=f(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.checkExceptions=fn.WaiterState=fn.waiterServiceDefaults=void 0;fn.waiterServiceDefaults={minDelay:2,maxDelay:120};var Pp;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(Pp=fn.WaiterState||(fn.WaiterState={}));var lce=e=>{if(e.state===Pp.ABORTED){let t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw t.name="AbortError",t}else if(e.state===Pp.TIMEOUT){let t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw t.name="TimeoutError",t}else if(e.state!==Pp.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};fn.checkExceptions=lce});var aO=f(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.runPolling=void 0;var uce=n0(),Op=Np(),dce=(e,t,r,n)=>{if(n>r)return t;let i=e*2**(n-1);return fce(e,i)},fce=(e,t)=>e+Math.random()*(t-e),mce=async({minDelay:e,maxDelay:t,maxWaitTime:r,abortController:n,client:i,abortSignal:s},o,a)=>{var c;let{state:u}=await a(i,o);if(u!==Op.WaiterState.RETRY)return{state:u};let d=1,p=Date.now()+r*1e3,m=Math.log(t/e)/Math.log(2)+1;for(;;){if(((c=n==null?void 0:n.signal)===null||c===void 0?void 0:c.aborted)||(s==null?void 0:s.aborted))return{state:Op.WaiterState.ABORTED};let _=dce(e,t,m,d);if(Date.now()+_*1e3>p)return{state:Op.WaiterState.TIMEOUT};await(0,uce.sleep)(_);let{state:g}=await a(i,o);if(g!==Op.WaiterState.RETRY)return{state:g};d+=1}};Lp.runPolling=mce});var cO=f(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.validateWaiterOptions=void 0;var pce=e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)};qp.validateWaiterOptions=pce});var uO=f(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});var lO=K();lO.__exportStar(n0(),Mp);lO.__exportStar(cO(),Mp)});var mO=f(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.createWaiter=void 0;var hce=aO(),_ce=uO(),fO=Np(),dO=async e=>new Promise(t=>{e.onabort=()=>t({state:fO.WaiterState.ABORTED})}),yce=async(e,t,r)=>{let n={...fO.waiterServiceDefaults,...e};(0,_ce.validateWaiterOptions)(n);let i=[(0,hce.runPolling)(n,t,r)];return e.abortController&&i.push(dO(e.abortController.signal)),e.abortSignal&&i.push(dO(e.abortSignal)),Promise.race(i)};zp.createWaiter=yce});var i0=f(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});var pO=K();pO.__exportStar(mO(),jp);pO.__exportStar(Np(),jp)});var _O=f(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.waitUntilTableExists=xs.waitForTableExists=void 0;var Cs=i0(),gce=aa(),hO=async(e,t)=>{let r;try{let n=await e.send(new gce.DescribeTableCommand(t));r=n;try{if((()=>n.Table.TableStatus)()==="ACTIVE")return{state:Cs.WaiterState.SUCCESS,reason:r}}catch{}}catch(n){if(r=n,n.name&&n.name=="ResourceNotFoundException")return{state:Cs.WaiterState.RETRY,reason:r}}return{state:Cs.WaiterState.RETRY,reason:r}},vce=async(e,t)=>{let r={minDelay:20,maxDelay:120};return(0,Cs.createWaiter)({...r,...e},t,hO)};xs.waitForTableExists=vce;var Sce=async(e,t)=>{let r={minDelay:20,maxDelay:120},n=await(0,Cs.createWaiter)({...r,...e},t,hO);return(0,Cs.checkExceptions)(n)};xs.waitUntilTableExists=Sce});var gO=f(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.waitUntilTableNotExists=Is.waitForTableNotExists=void 0;var Xa=i0(),wce=aa(),yO=async(e,t)=>{let r;try{r=await e.send(new wce.DescribeTableCommand(t))}catch(n){if(r=n,n.name&&n.name=="ResourceNotFoundException")return{state:Xa.WaiterState.SUCCESS,reason:r}}return{state:Xa.WaiterState.RETRY,reason:r}},bce=async(e,t)=>{let r={minDelay:20,maxDelay:120};return(0,Xa.createWaiter)({...r,...e},t,yO)};Is.waitForTableNotExists=bce;var Ece=async(e,t)=>{let r={minDelay:20,maxDelay:120},n=await(0,Xa.createWaiter)({...r,...e},t,yO);return(0,Xa.checkExceptions)(n)};Is.waitUntilTableNotExists=Ece});var SO=f(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});var vO=K();vO.__exportStar(_O(),kp);vO.__exportStar(gO(),kp)});var gt=f($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.DynamoDBServiceException=void 0;var Rs=K();Rs.__exportStar(Di(),$r);Rs.__exportStar(Kn(),$r);Rs.__exportStar(QN(),$r);Rs.__exportStar(XN(),$r);Rs.__exportStar(oO(),$r);Rs.__exportStar(SO(),$r);var Ace=cl();Object.defineProperty($r,"DynamoDBServiceException",{enumerable:!0,get:function(){return Ace.DynamoDBServiceException}})});var Pi=f((KAe,Fp)=>{var wO,bO,EO,AO,TO,CO,xO,IO,RO,Up,s0,DO,PO,Ds,NO,OO,LO,qO,MO,zO,jO,kO,UO;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Fp=="object"&&typeof Fp.exports=="object"?e(r(t,r(Fp.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(s,o){return n[s]=i?i(s,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};wO=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},bO=Object.assign||function(r){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},EO=function(r,n){var i={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&n.indexOf(s)<0&&(i[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o<s.length;o++)n.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(r,s[o])&&(i[s[o]]=r[s[o]]);return i},AO=function(r,n,i,s){var o=arguments.length,a=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,i):s,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,s);else for(var u=r.length-1;u>=0;u--)(c=r[u])&&(a=(o<3?c(a):o>3?c(n,i,a):c(n,i))||a);return o>3&&a&&Object.defineProperty(n,i,a),a},TO=function(r,n){return function(i,s){n(i,s,r)}},CO=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},xO=function(r,n,i,s){function o(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function u(m){try{p(s.next(m))}catch(_){c(_)}}function d(m){try{p(s.throw(m))}catch(_){c(_)}}function p(m){m.done?a(m.value):o(m.value).then(u,d)}p((s=s.apply(r,n||[])).next())})},IO=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(p){return function(m){return d([p,m])}}function d(p){if(s)throw new TypeError("Generator is already executing.");for(;i;)try{if(s=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,o=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){i.label=p[1];break}if(p[0]===6&&i.label<a[1]){i.label=a[1],a=p;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(p);break}a[2]&&i.ops.pop(),i.trys.pop();continue}p=n.call(r,i)}catch(m){p=[6,m],o=0}finally{s=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},UO=function(r,n,i,s){s===void 0&&(s=i),r[s]=n[i]},RO=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Up=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],s=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&s>=r.length&&(r=void 0),{value:r&&r[s++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},s0=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var s=i.call(r),o,a=[],c;try{for(;(n===void 0||n-- >0)&&!(o=s.next()).done;)a.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(c)throw c.error}}return a},DO=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(s0(arguments[n]));return r},PO=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var s=Array(r),o=0,n=0;n<i;n++)for(var a=arguments[n],c=0,u=a.length;c<u;c++,o++)s[o]=a[c];return s},Ds=function(r){return this instanceof Ds?(this.v=r,this):new Ds(r)},NO=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=i.apply(r,n||[]),o,a=[];return o={},c("next"),c("throw"),c("return"),o[Symbol.asyncIterator]=function(){return this},o;function c(g){s[g]&&(o[g]=function(y){return new Promise(function(A,I){a.push([g,y,A,I])>1||u(g,y)})})}function u(g,y){try{d(s[g](y))}catch(A){_(a[0][3],A)}}function d(g){g.value instanceof Ds?Promise.resolve(g.value.v).then(p,m):_(a[0][2],g)}function p(g){u("next",g)}function m(g){u("throw",g)}function _(g,y){g(y),a.shift(),a.length&&u(a[0][0],a[0][1])}},OO=function(r){var n,i;return n={},s("next"),s("throw",function(o){throw o}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(o,a){n[o]=r[o]?function(c){return(i=!i)?{value:Ds(r[o](c)),done:o==="return"}:a?a(c):c}:a}},LO=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Up=="function"?Up(r):r[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(a){i[a]=r[a]&&function(c){return new Promise(function(u,d){c=r[a](c),o(u,d,c.done,c.value)})}}function o(a,c,u,d){Promise.resolve(d).then(function(p){a({value:p,done:u})},c)}},qO=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},MO=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},zO=function(r){return r&&r.__esModule?r:{default:r}},jO=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},kO=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",wO),e("__assign",bO),e("__rest",EO),e("__decorate",AO),e("__param",TO),e("__metadata",CO),e("__awaiter",xO),e("__generator",IO),e("__exportStar",RO),e("__createBinding",UO),e("__values",Up),e("__read",s0),e("__spread",DO),e("__spreadArrays",PO),e("__await",Ds),e("__asyncGenerator",NO),e("__asyncDelegator",OO),e("__asyncValues",LO),e("__makeTemplateObject",qO),e("__importStar",MO),e("__importDefault",zO),e("__classPrivateFieldGet",jO),e("__classPrivateFieldSet",kO)})});var FO=f(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.isEmptyData=void 0;function Tce(e){return typeof e=="string"?e.length===0:e.byteLength===0}Bp.isEmptyData=Tce});var o0=f(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.EMPTY_DATA_SHA_256=mn.SHA_256_HMAC_ALGO=mn.SHA_256_HASH=void 0;mn.SHA_256_HASH={name:"SHA-256"};mn.SHA_256_HMAC_ALGO={name:"HMAC",hash:mn.SHA_256_HASH};mn.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])});var BO=f(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.toUtf8=Ps.fromUtf8=void 0;var Cce=e=>{let t=[];for(let r=0,n=e.length;r<n;r++){let i=e.charCodeAt(r);if(i<128)t.push(i);else if(i<2048)t.push(i>>6|192,i&63|128);else if(r+1<e.length&&(i&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320){let s=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023);t.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else t.push(i>>12|224,i>>6&63|128,i&63|128)}return Uint8Array.from(t)};Ps.fromUtf8=Cce;var xce=e=>{let t="";for(let r=0,n=e.length;r<n;r++){let i=e[r];if(i<128)t+=String.fromCharCode(i);else if(192<=i&&i<224){let s=e[++r];t+=String.fromCharCode((i&31)<<6|s&63)}else if(240<=i&&i<365){let s=[i,e[++r],e[++r],e[++r]],o="%"+s.map(a=>a.toString(16)).join("%");t+=decodeURIComponent(o)}else t+=String.fromCharCode((i&15)<<12|(e[++r]&63)<<6|e[++r]&63)}return t};Ps.toUtf8=xce});var GO=f(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.toUtf8=Ns.fromUtf8=void 0;function Ice(e){return new TextEncoder().encode(e)}Ns.fromUtf8=Ice;function Rce(e){return new TextDecoder("utf-8").decode(e)}Ns.toUtf8=Rce});var a0=f(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.toUtf8=Os.fromUtf8=void 0;var $O=BO(),VO=GO(),Dce=e=>typeof TextEncoder=="function"?(0,VO.fromUtf8)(e):(0,$O.fromUtf8)(e);Os.fromUtf8=Dce;var Pce=e=>typeof TextDecoder=="function"?(0,VO.toUtf8)(e):(0,$O.toUtf8)(e);Os.toUtf8=Pce});var $p=f(Gp=>{Object.defineProperty(Gp,"__esModule",{value:!0});Gp.locateWindow=void 0;var Nce={};function Oce(){return typeof window<"u"?window:typeof self<"u"?self:Nce}Gp.locateWindow=Oce});var l0=f(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.Sha256=void 0;var Lce=FO(),KO=o0(),qce=a0(),c0=$p(),Mce=function(){function e(t){this.secret=t,this.reset()}return e.prototype.update=function(t){var r=this;(0,Lce.isEmptyData)(t)||(this.operation=this.operation.then(function(n){return n.onerror=function(){r.operation=Promise.reject(new Error("Error encountered updating hash"))},n.process(HO(t)),n}),this.operation.catch(function(){}))},e.prototype.digest=function(){return this.operation.then(function(t){return new Promise(function(r,n){t.onerror=function(){n(new Error("Error encountered finalizing hash"))},t.oncomplete=function(){t.result&&r(new Uint8Array(t.result)),n(new Error("Error encountered finalizing hash"))},t.finish()})})},e.prototype.reset=function(){this.secret?(this.operation=zce(this.secret).then(function(t){return(0,c0.locateWindow)().msCrypto.subtle.sign(KO.SHA_256_HMAC_ALGO,t)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,c0.locateWindow)().msCrypto.subtle.digest("SHA-256"))},e}();Vp.Sha256=Mce;function zce(e){return new Promise(function(t,r){var n=(0,c0.locateWindow)().msCrypto.subtle.importKey("raw",HO(e),KO.SHA_256_HMAC_ALGO,!1,["sign"]);n.oncomplete=function(){n.result&&t(n.result),r(new Error("ImportKey completed without importing key."))},n.onerror=function(){r(new Error("ImportKey failed to import key."))}})}function HO(e){return typeof e=="string"?(0,qce.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}});var WO=f(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.convertToBuffer=void 0;var jce=a0(),kce=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:jce.fromUtf8;function Uce(e){return e instanceof Uint8Array?e:typeof e=="string"?kce(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}Kp.convertToBuffer=Uce});var YO=f(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.isEmptyData=void 0;function Fce(e){return typeof e=="string"?e.length===0:e.byteLength===0}Hp.isEmptyData=Fce});var JO=f(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.numToUint8=void 0;function Bce(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}Wp.numToUint8=Bce});var QO=f(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.uint32ArrayFrom=void 0;function Gce(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}Yp.uint32ArrayFrom=Gce});var Jp=f(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.uint32ArrayFrom=Vr.numToUint8=Vr.isEmptyData=Vr.convertToBuffer=void 0;var $ce=WO();Object.defineProperty(Vr,"convertToBuffer",{enumerable:!0,get:function(){return $ce.convertToBuffer}});var Vce=YO();Object.defineProperty(Vr,"isEmptyData",{enumerable:!0,get:function(){return Vce.isEmptyData}});var Kce=JO();Object.defineProperty(Vr,"numToUint8",{enumerable:!0,get:function(){return Kce.numToUint8}});var Hce=QO();Object.defineProperty(Vr,"uint32ArrayFrom",{enumerable:!0,get:function(){return Hce.uint32ArrayFrom}})});var d0=f(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.Sha256=void 0;var Qp=Jp(),Xp=o0(),u0=$p(),Wce=function(){function e(t){this.toHash=new Uint8Array(0),this.secret=t,this.reset()}return e.prototype.update=function(t){if(!(0,Qp.isEmptyData)(t)){var r=(0,Qp.convertToBuffer)(t),n=new Uint8Array(this.toHash.byteLength+r.byteLength);n.set(this.toHash,0),n.set(r,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(r){return(0,u0.locateWindow)().crypto.subtle.sign(Xp.SHA_256_HMAC_ALGO,r,t.toHash).then(function(n){return new Uint8Array(n)})}):(0,Qp.isEmptyData)(this.toHash)?Promise.resolve(Xp.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,u0.locateWindow)().crypto.subtle.digest(Xp.SHA_256_HASH,t.toHash)}).then(function(r){return Promise.resolve(new Uint8Array(r))})},e.prototype.reset=function(){var t=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(r,n){(0,u0.locateWindow)().crypto.subtle.importKey("raw",(0,Qp.convertToBuffer)(t.secret),Xp.SHA_256_HMAC_ALGO,!1,["sign"]).then(r,n)}),this.key.catch(function(){}))},e}();Zp.Sha256=Wce});var f0=f(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.MAX_HASHABLE_LENGTH=tr.INIT=tr.KEY=tr.DIGEST_LENGTH=tr.BLOCK_SIZE=void 0;tr.BLOCK_SIZE=64;tr.DIGEST_LENGTH=32;tr.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);tr.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];tr.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1});var XO=f(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.RawSha256=void 0;var rr=f0(),Yce=function(){function e(){this.state=Int32Array.from(rr.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,n=t.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>rr.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=t[r++],n--,this.bufferLength===rr.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(r.setUint8(this.bufferLength++,128),n%rr.BLOCK_SIZE>=rr.BLOCK_SIZE-8){for(var i=this.bufferLength;i<rr.BLOCK_SIZE;i++)r.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<rr.BLOCK_SIZE-8;i++)r.setUint8(i,0);r.setUint32(rr.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),r.setUint32(rr.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(rr.DIGEST_LENGTH),i=0;i<8;i++)s[i*4]=this.state[i]>>>24&255,s[i*4+1]=this.state[i]>>>16&255,s[i*4+2]=this.state[i]>>>8&255,s[i*4+3]=this.state[i]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,r=t.buffer,n=t.state,i=n[0],s=n[1],o=n[2],a=n[3],c=n[4],u=n[5],d=n[6],p=n[7],m=0;m<rr.BLOCK_SIZE;m++){if(m<16)this.temp[m]=(r[m*4]&255)<<24|(r[m*4+1]&255)<<16|(r[m*4+2]&255)<<8|r[m*4+3]&255;else{var _=this.temp[m-2],g=(_>>>17|_<<15)^(_>>>19|_<<13)^_>>>10;_=this.temp[m-15];var y=(_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3;this.temp[m]=(g+this.temp[m-7]|0)+(y+this.temp[m-16]|0)}var A=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&d)|0)+(p+(rr.KEY[m]+this.temp[m]|0)|0)|0,I=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&s^i&o^s&o)|0;p=d,d=u,u=c,c=a+A|0,a=o,o=s,s=i,i=A+I|0}n[0]+=i,n[1]+=s,n[2]+=o,n[3]+=a,n[4]+=c,n[5]+=u,n[6]+=d,n[7]+=p},e}();eh.RawSha256=Yce});var eL=f(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.Sha256=void 0;var ZO=Pi(),rh=f0(),th=XO(),m0=Jp(),Jce=function(){function e(t){this.secret=t,this.hash=new th.RawSha256,this.reset()}return e.prototype.update=function(t){if(!((0,m0.isEmptyData)(t)||this.error))try{this.hash.update((0,m0.convertToBuffer)(t))}catch(r){this.error=r}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return ZO.__awaiter(this,void 0,void 0,function(){return ZO.__generator(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new th.RawSha256,this.secret){this.outer=new th.RawSha256;var t=Qce(this.secret),r=new Uint8Array(rh.BLOCK_SIZE);r.set(t);for(var n=0;n<rh.BLOCK_SIZE;n++)t[n]^=54,r[n]^=92;this.hash.update(t),this.outer.update(r);for(var n=0;n<t.byteLength;n++)t[n]=0}},e}();nh.Sha256=Jce;function Qce(e){var t=(0,m0.convertToBuffer)(e);if(t.byteLength>rh.BLOCK_SIZE){var r=new th.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(rh.BLOCK_SIZE);return n.set(t),n}});var tL=f(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});var Xce=Pi();Xce.__exportStar(eL(),p0)});var iL=f(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.supportsZeroByteGCM=Kr.supportsSubtleCrypto=Kr.supportsSecureRandom=Kr.supportsWebCrypto=void 0;var rL=Pi(),Zce=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function ele(e){if(nL(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return h0(t)}return!1}Kr.supportsWebCrypto=ele;function nL(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}Kr.supportsSecureRandom=nL;function h0(e){return e&&Zce.every(function(t){return typeof e[t]=="function"})}Kr.supportsSubtleCrypto=h0;function tle(e){return rL.__awaiter(this,void 0,void 0,function(){var t,r,n;return rL.__generator(this,function(i){switch(i.label){case 0:if(!h0(e))return[2,!1];i.label=1;case 1:return i.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=i.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return r=i.sent(),[2,r.byteLength===16];case 4:return n=i.sent(),[2,!1];case 5:return[2]}})})}Kr.supportsZeroByteGCM=tle});var sL=f(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});var rle=Pi();rle.__exportStar(iL(),_0)});var aL=f(oL=>{"use strict";Object.defineProperty(oL,"__esModule",{value:!0})});var lL=f(cL=>{"use strict";Object.defineProperty(cL,"__esModule",{value:!0})});var dL=f(uL=>{"use strict";Object.defineProperty(uL,"__esModule",{value:!0})});var mL=f(fL=>{"use strict";Object.defineProperty(fL,"__esModule",{value:!0})});var pL=f(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.isMsWindow=void 0;var nle=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function ile(e){return"MSInputMethodContext"in e&&"msCrypto"in e}function sle(e){if(ile(e)&&e.msCrypto.subtle!==void 0){var t=e.msCrypto,r=t.getRandomValues,n=t.subtle;return nle.map(function(i){return n[i]}).concat(r).every(function(i){return typeof i=="function"})}return!1}ih.isMsWindow=sle});var hL=f(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var Za=Pi();Za.__exportStar(aL(),Ni);Za.__exportStar(lL(),Ni);Za.__exportStar(dL(),Ni);Za.__exportStar(mL(),Ni);Za.__exportStar(pL(),Ni)});var yL=f(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.Sha256=void 0;var ole=l0(),ale=d0(),cle=tL(),lle=sL(),ule=hL(),_L=$p(),dle=Jp(),fle=function(){function e(t){(0,lle.supportsWebCrypto)((0,_L.locateWindow)())?this.hash=new ale.Sha256(t):(0,ule.isMsWindow)((0,_L.locateWindow)())?this.hash=new ole.Sha256(t):this.hash=new cle.Sha256(t)}return e.prototype.update=function(t,r){this.hash.update((0,dle.convertToBuffer)(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();sh.Sha256=fle});var gL=f(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.WebCryptoSha256=Oi.Ie11Sha256=void 0;var mle=Pi();mle.__exportStar(yL(),Oi);var ple=l0();Object.defineProperty(Oi,"Ie11Sha256",{enumerable:!0,get:function(){return ple.Sha256}});var hle=d0();Object.defineProperty(Oi,"WebCryptoSha256",{enumerable:!0,get:function(){return hle.Sha256}})});var y0=f(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.convertToAttr=void 0;var _le=(e,t)=>{var r,n,i,s,o,a;if(e===void 0)throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(e===null&&typeof e=="object")return oh();if(Array.isArray(e))return yle(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Set")return gle(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Map")return vle(e,t);if(((i=e==null?void 0:e.constructor)===null||i===void 0?void 0:i.name)==="Object"||!e.constructor&&typeof e=="object")return vL(e,t);if(TL(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?oh():wL(e);if(typeof e=="boolean"||((s=e==null?void 0:e.constructor)===null||s===void 0?void 0:s.name)==="Boolean")return{BOOL:e.valueOf()};if(typeof e=="number"||((o=e==null?void 0:e.constructor)===null||o===void 0?void 0:o.name)==="Number")return AL(e);if(typeof e=="bigint")return EL(e);if(typeof e=="string"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?oh():bL(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return vL(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};Li.convertToAttr=_le;var yle=(e,t)=>({L:e.filter(r=>!(t!=null&&t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&r!==void 0).map(r=>(0,Li.convertToAttr)(r,t))}),gle=(e,t)=>{let r=t!=null&&t.removeUndefinedValues?new Set([...e].filter(i=>i!==void 0)):e;if(!(t!=null&&t.removeUndefinedValues)&&r.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(r.size===0){if(t!=null&&t.convertEmptyValues)return oh();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let n=r.values().next().value;if(typeof n=="number")return{NS:Array.from(r).map(AL).map(i=>i.N)};if(typeof n=="bigint")return{NS:Array.from(r).map(EL).map(i=>i.N)};if(typeof n=="string")return{SS:Array.from(r).map(bL).map(i=>i.S)};if(TL(n))return{BS:Array.from(r).map(wL).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},vle=(e,t)=>({M:(r=>{let n={};for(let[i,s]of r)typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(n[i]=(0,Li.convertToAttr)(s,t));return n})(e)}),vL=(e,t)=>({M:(r=>{let n={};for(let i in r){let s=r[i];typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(n[i]=(0,Li.convertToAttr)(s,t))}return n})(e)}),oh=()=>({NULL:!0}),wL=e=>({B:e}),bL=e=>({S:e.toString()}),EL=e=>({N:e.toString()}),SL=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},AL=e=>{if([Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY].map(t=>t.toString()).includes(e.toString()))throw new Error(`Special numeric value ${e.toString()} is not allowed`);return e>Number.MAX_SAFE_INTEGER?SL(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&SL(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},TL=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return e!=null&&e.constructor?t.includes(e.constructor.name):!1}});var g0=f(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.convertToNative=void 0;var Sle=(e,t)=>{for(let[r,n]of Object.entries(e))if(n!==void 0)switch(r){case"NULL":return null;case"BOOL":return Boolean(n);case"N":return CL(n,t);case"B":return IL(n);case"S":return xL(n);case"L":return wle(n,t);case"M":return ble(n,t);case"NS":return new Set(n.map(i=>CL(i,t)));case"BS":return new Set(n.map(IL));case"SS":return new Set(n.map(xL));default:throw new Error(`Unsupported type passed: ${r}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};Ls.convertToNative=Sle;var CL=(e,t)=>{if(t!=null&&t.wrapNumbers)return{value:e};let r=Number(e),n=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)&&!n.includes(r))if(typeof BigInt=="function")try{return BigInt(e)}catch{throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}else throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);return r},xL=e=>e,IL=e=>e,wle=(e,t)=>e.map(r=>(0,Ls.convertToNative)(r,t)),ble=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[n]:(0,Ls.convertToNative)(i,t)}),{})});var RL=f(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.marshall=void 0;var Ele=y0();function Ale(e,t){let r=(0,Ele.convertToAttr)(e,t),[n,i]=Object.entries(r)[0];switch(n){case"M":case"L":return i;case"SS":case"NS":case"BS":case"S":case"N":case"B":case"NULL":case"BOOL":case"$unknown":default:return r}}ah.marshall=Ale});var PL=f(DL=>{"use strict";Object.defineProperty(DL,"__esModule",{value:!0})});var NL=f(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.unmarshall=void 0;var Tle=g0(),Cle=(e,t)=>(0,Tle.convertToNative)({M:e},t);ch.unmarshall=Cle});var OL=f(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var ec=K();ec.__exportStar(y0(),qi);ec.__exportStar(g0(),qi);ec.__exportStar(RL(),qi);ec.__exportStar(PL(),qi);ec.__exportStar(NL(),qi)});var xt=f(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.unmarshallOutput=qs.marshallInput=void 0;var qL=OL(),LL=(e,t,r)=>{if(e!==void 0)return!r||Array.isArray(r)&&r.length===0?t(e):Array.isArray(r)?v0(e,t,r):xle(e,t,r.children)},ML=(e,t,r)=>Array.isArray(e)?e.map(n=>LL(n,t,r)):LL(e,t,r),v0=(e,t,r)=>r.reduce((n,{key:i,children:s})=>({...n,[i]:ML(n[i],t,s)}),e),xle=(e,t,r)=>Object.entries(e).reduce((n,[i,s])=>({...n,[i]:ML(s,t,r)}),{}),Ile=(e,t,r)=>v0(e,i=>(0,qL.marshall)(i,r),t);qs.marshallInput=Ile;var Rle=(e,t,r)=>v0(e,i=>(0,qL.unmarshall)(i,r),t);qs.unmarshallOutput=Rle});var w0=f(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.BatchExecuteStatementCommand=void 0;var Dle=gt(),Ple=O(),zL=xt(),S0=class extends Ple.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Statements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Dle.BatchExecuteStatementCommand((0,zL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,zL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};lh.BatchExecuteStatementCommand=S0});var E0=f(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.BatchGetCommand=void 0;var Nle=gt(),Ole=O(),jL=xt(),b0=class extends Ole.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"Keys"}]}}],this.outputKeyNodes=[{key:"Responses",children:{}},{key:"UnprocessedKeys",children:{children:[{key:"Keys"}]}}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Nle.BatchGetItemCommand((0,jL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,jL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};uh.BatchGetCommand=b0});var T0=f(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.BatchWriteCommand=void 0;var Lle=gt(),qle=O(),kL=xt(),A0=class extends qle.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}}],this.outputKeyNodes=[{key:"UnprocessedItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}},{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Lle.BatchWriteItemCommand((0,kL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,kL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};dh.BatchWriteCommand=A0});var x0=f(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.DeleteCommand=void 0;var Mle=gt(),zle=O(),UL=xt(),C0=class extends zle.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Mle.DeleteItemCommand((0,UL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,UL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};fh.DeleteCommand=C0});var R0=f(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.ExecuteStatementCommand=void 0;var jle=gt(),kle=O(),FL=xt(),I0=class extends kle.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new jle.ExecuteStatementCommand((0,FL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,FL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};mh.ExecuteStatementCommand=I0});var P0=f(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.ExecuteTransactionCommand=void 0;var Ule=gt(),Fle=O(),BL=xt(),D0=class extends Fle.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactStatements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Ule.ExecuteTransactionCommand((0,BL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,BL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};ph.ExecuteTransactionCommand=D0});var O0=f(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.GetCommand=void 0;var Ble=gt(),Gle=O(),GL=xt(),N0=class extends Gle.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Ble.GetItemCommand((0,GL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,GL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};hh.GetCommand=N0});var q0=f(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.PutCommand=void 0;var $le=gt(),Vle=O(),$L=xt(),L0=class extends Vle.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Item"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new $le.PutItemCommand((0,$L.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,$L.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};_h.PutCommand=L0});var gh=f(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.QueryCommand=void 0;var Kle=gt(),Hle=O(),VL=xt(),M0=class extends Hle.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"KeyConditions",children:{children:[{key:"AttributeValueList"}]}},{key:"QueryFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Kle.QueryCommand((0,VL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,VL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};yh.QueryCommand=M0});var Sh=f(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.ScanCommand=void 0;var Wle=gt(),Yle=O(),KL=xt(),z0=class extends Yle.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"ScanFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Wle.ScanCommand((0,KL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,KL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};vh.ScanCommand=z0});var k0=f(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh.TransactGetCommand=void 0;var Jle=gt(),Qle=O(),HL=xt(),j0=class extends Qle.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"Get",children:[{key:"Key"}]}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Jle.TransactGetItemsCommand((0,HL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,HL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};wh.TransactGetCommand=j0});var F0=f(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.TransactWriteCommand=void 0;var Xle=gt(),Zle=O(),WL=xt(),U0=class extends Zle.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"ConditionCheck",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Put",children:[{key:"Item"},{key:"ExpressionAttributeValues"}]},{key:"Delete",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Update",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]}]}],this.outputKeyNodes=[{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Xle.TransactWriteItemsCommand((0,WL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,WL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};bh.TransactWriteCommand=U0});var G0=f(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.UpdateCommand=void 0;var eue=gt(),tue=O(),YL=xt(),B0=class extends tue.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"AttributeUpdates",children:{children:[{key:"Value"}]}},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new eue.UpdateItemCommand((0,YL.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,YL.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Eh.UpdateCommand=B0});var rc=f(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.DynamoDBDocumentClient=void 0;var rue=O(),tc=class extends rue.Client{constructor(t,r){super(t.config),this.config=t.config,this.config.translateConfig=r,this.middlewareStack=t.middlewareStack}static from(t,r){return new tc(t,r)}destroy(){}};Ah.DynamoDBDocumentClient=tc});var Ch=f(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.DynamoDBDocument=void 0;var nue=w0(),iue=E0(),sue=T0(),oue=x0(),aue=R0(),cue=P0(),lue=O0(),uue=q0(),due=gh(),fue=Sh(),mue=k0(),pue=F0(),hue=G0(),_ue=rc(),nc=class extends _ue.DynamoDBDocumentClient{static from(t,r){return new nc(t,r)}batchExecuteStatement(t,r,n){let i=new nue.BatchExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchGet(t,r,n){let i=new iue.BatchGetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchWrite(t,r,n){let i=new sue.BatchWriteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}delete(t,r,n){let i=new oue.DeleteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeStatement(t,r,n){let i=new aue.ExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeTransaction(t,r,n){let i=new cue.ExecuteTransactionCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}get(t,r,n){let i=new lue.GetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}put(t,r,n){let i=new uue.PutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}query(t,r,n){let i=new due.QueryCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}scan(t,r,n){let i=new fue.ScanCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactGet(t,r,n){let i=new mue.TransactGetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactWrite(t,r,n){let i=new pue.TransactWriteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}update(t,r,n){let i=new hue.UpdateCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};Th.DynamoDBDocument=nc});var JL=f(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});var Ut=K();Ut.__exportStar(w0(),vt);Ut.__exportStar(E0(),vt);Ut.__exportStar(T0(),vt);Ut.__exportStar(x0(),vt);Ut.__exportStar(R0(),vt);Ut.__exportStar(P0(),vt);Ut.__exportStar(O0(),vt);Ut.__exportStar(q0(),vt);Ut.__exportStar(gh(),vt);Ut.__exportStar(Sh(),vt);Ut.__exportStar(k0(),vt);Ut.__exportStar(F0(),vt);Ut.__exportStar(G0(),vt)});var XL=f(QL=>{"use strict";Object.defineProperty(QL,"__esModule",{value:!0})});var ZL=f(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.paginateQuery=void 0;var yue=gh(),gue=Ch(),vue=rc(),Sue=async(e,t,...r)=>await e.send(new yue.QueryCommand(t),...r),wue=async(e,t,...r)=>await e.query(t,...r);async function*bue(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof gue.DynamoDBDocument)s=await wue(e.client,t,...r);else if(e.client instanceof vue.DynamoDBDocumentClient)s=await Sue(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,n=s.LastEvaluatedKey,i=!!n}return void 0}xh.paginateQuery=bue});var eq=f(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.paginateScan=void 0;var Eue=Sh(),Aue=Ch(),Tue=rc(),Cue=async(e,t,...r)=>await e.send(new Eue.ScanCommand(t),...r),xue=async(e,t,...r)=>await e.scan(t,...r);async function*Iue(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof Aue.DynamoDBDocument)s=await xue(e.client,t,...r);else if(e.client instanceof Tue.DynamoDBDocumentClient)s=await Cue(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,n=s.LastEvaluatedKey,i=!!n}return void 0}Ih.paginateScan=Iue});var tq=f(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var $0=K();$0.__exportStar(XL(),ic);$0.__exportStar(ZL(),ic);$0.__exportStar(eq(),ic)});var rq=f(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});var Rh=K();Rh.__exportStar(Ch(),Ms);Rh.__exportStar(rc(),Ms);Rh.__exportStar(JL(),Ms);Rh.__exportStar(tq(),Ms)});var nq=f(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.DBManager=void 0;var Rue=rq(),V0=class{get client(){return this._client}get ddbDocClient(){return this._ddbDocClient}constructor(t){let{dynamoClient:r,tableName:n}=t;this._tableName=n,this._client=r,this._ddbDocClient=Rue.DynamoDBDocument.from(this._client)}get tableName(){return this._tableName}set tableName(t){this._tableName=t}};Dh.DBManager=V0});var iq=f(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.TransformationType=void 0;var Due;(function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(Due=sc.TransformationType||(sc.TransformationType={}))});var oc=f(Mi=>{"use strict";var Pue=Mi&&Mi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Nue=Mi&&Mi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Pue(t,e,r)};Object.defineProperty(Mi,"__esModule",{value:!0});Nue(iq(),Mi)});var sq=f(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.MetadataStorage=void 0;var pn=oc(),K0=class{constructor(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}addTypeMetadata(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)}addTransformMetadata(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)}addExposeMetadata(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)}addExcludeMetadata(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)}findTransformMetadatas(t,r,n){return this.findMetadatas(this._transformMetadatas,t,r).filter(i=>!i.options||i.options.toClassOnly===!0&&i.options.toPlainOnly===!0?!0:i.options.toClassOnly===!0?n===pn.TransformationType.CLASS_TO_CLASS||n===pn.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?n===pn.TransformationType.CLASS_TO_PLAIN:!0)}findExcludeMetadata(t,r){return this.findMetadata(this._excludeMetadatas,t,r)}findExposeMetadata(t,r){return this.findMetadata(this._exposeMetadatas,t,r)}findExposeMetadataByCustomName(t,r){return this.getExposedMetadatas(t).find(n=>n.options&&n.options.name===r)}findTypeMetadata(t,r){return this.findMetadata(this._typeMetadatas,t,r)}getStrategy(t){let r=this._excludeMetadatas.get(t),n=r&&r.get(void 0),i=this._exposeMetadatas.get(t),s=i&&i.get(void 0);return n&&s||!n&&!s?"none":n?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,r){return this.getExposedMetadatas(t).filter(n=>!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===pn.TransformationType.CLASS_TO_CLASS||r===pn.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===pn.TransformationType.CLASS_TO_PLAIN:!0).map(n=>n.propertyName)}getExcludedProperties(t,r){return this.getExcludedMetadatas(t).filter(n=>!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===pn.TransformationType.CLASS_TO_CLASS||r===pn.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===pn.TransformationType.CLASS_TO_PLAIN:!0).map(n=>n.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,r){let n=t.get(r),i;n&&(i=Array.from(n.values()).filter(o=>o.propertyName!==void 0));let s=[];for(let o of this.getAncestors(r)){let a=t.get(o);if(a){let c=Array.from(a.values()).filter(u=>u.propertyName!==void 0);s.push(...c)}}return s.concat(i||[])}findMetadata(t,r,n){let i=t.get(r);if(i){let s=i.get(n);if(s)return s}for(let s of this.getAncestors(r)){let o=t.get(s);if(o){let a=o.get(n);if(a)return a}}}findMetadatas(t,r,n){let i=t.get(r),s;i&&(s=i.get(n));let o=[];for(let a of this.getAncestors(r)){let c=t.get(a);c&&c.has(n)&&o.push(...c.get(n))}return o.slice().reverse().concat((s||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let r=[];for(let n=Object.getPrototypeOf(t.prototype.constructor);typeof n.prototype<"u";n=Object.getPrototypeOf(n.prototype.constructor))r.push(n);this._ancestorsMap.set(t,r)}return this._ancestorsMap.get(t)}};Ph.MetadataStorage=K0});var zs=f(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.defaultMetadataStorage=void 0;var Oue=sq();Nh.defaultMetadataStorage=new Oue.MetadataStorage});var oq=f(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.getGlobal=void 0;function Lue(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}Oh.getGlobal=Lue});var aq=f(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.isPromise=void 0;function que(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}Lh.isPromise=que});var lq=f(Wn=>{"use strict";var Mue=Wn&&Wn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),cq=Wn&&Wn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Mue(t,e,r)};Object.defineProperty(Wn,"__esModule",{value:!0});cq(oq(),Wn);cq(aq(),Wn)});var dq=f(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.TransformOperationExecutor=void 0;var It=zs(),Fe=oc(),uq=lq();function zue(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var H0=class{constructor(t,r){this.transformationType=t,this.options=r,this.recursionStack=new Set}transform(t,r,n,i,s,o=0){if(Array.isArray(r)||r instanceof Set){let a=i&&this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS?zue(i):[];return r.forEach((c,u)=>{let d=t?t[u]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(c)){let p;if(typeof n!="function"&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS){p=n.options.discriminator.subTypes.find(y=>y.name===c[n.options.discriminator.property]);let _={newObject:a,object:c,property:void 0},g=n.typeFunction(_);p===void 0?p=g:p=p.value,n.options.keepDiscriminatorProperty||delete c[n.options.discriminator.property]}this.transformationType===Fe.TransformationType.CLASS_TO_CLASS&&(p=c.constructor),this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN&&(c[n.options.discriminator.property]=n.options.discriminator.subTypes.find(_=>_.value===c.constructor).name)}else p=n;let m=this.transform(d,c,p,void 0,c instanceof Map,o+1);a instanceof Set?a.add(m):a.push(m)}else this.transformationType===Fe.TransformationType.CLASS_TO_CLASS&&(a instanceof Set?a.add(c):a.push(c))}),a}else{if(n===String&&!s)return r==null?r:String(r);if(n===Number&&!s)return r==null?r:Number(r);if(n===Boolean&&!s)return r==null?r:Boolean(r);if((n===Date||r instanceof Date)&&!s)return r instanceof Date?new Date(r.valueOf()):r==null?r:new Date(r);if(!!(0,uq.getGlobal)().Buffer&&(n===Buffer||r instanceof Buffer)&&!s)return r==null?r:Buffer.from(r);if((0,uq.isPromise)(r)&&!s)return new Promise((a,c)=>{r.then(u=>a(this.transform(void 0,u,n,void 0,void 0,o+1)),c)});if(!s&&r!==null&&typeof r=="object"&&typeof r.then=="function")return r;if(typeof r=="object"&&r!==null){!n&&r.constructor!==Object&&(!Array.isArray(r)&&r.constructor===Array||(n=r.constructor)),!n&&t&&(n=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(r);let a=this.getKeys(n,r,s),c=t||{};!t&&(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS||this.transformationType===Fe.TransformationType.CLASS_TO_CLASS)&&(s?c=new Map:n?c=new n:c={});for(let u of a){if(u==="__proto__"||u==="constructor")continue;let d=u,p=u,m=u;if(!this.options.ignoreDecorators&&n){if(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS){let T=It.defaultMetadataStorage.findExposeMetadataByCustomName(n,u);T&&(m=T.propertyName,p=T.propertyName)}else if(this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN||this.transformationType===Fe.TransformationType.CLASS_TO_CLASS){let T=It.defaultMetadataStorage.findExposeMetadata(n,u);T&&T.options&&T.options.name&&(p=T.options.name)}}let _;this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS?_=r[d]:r instanceof Map?_=r.get(d):r[d]instanceof Function?_=r[d]():_=r[d];let g,y=_ instanceof Map;if(n&&s)g=n;else if(n){let T=It.defaultMetadataStorage.findTypeMetadata(n,m);if(T){let U={newObject:c,object:r,property:m},me=T.typeFunction?T.typeFunction(U):T.reflectedType;T.options&&T.options.discriminator&&T.options.discriminator.property&&T.options.discriminator.subTypes?r[d]instanceof Array?g=T:(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS&&(g=T.options.discriminator.subTypes.find(tt=>{if(_&&_ instanceof Object&&T.options.discriminator.property in _)return tt.name===_[T.options.discriminator.property]}),g===void 0?g=me:g=g.value,T.options.keepDiscriminatorProperty||_&&_ instanceof Object&&T.options.discriminator.property in _&&delete _[T.options.discriminator.property]),this.transformationType===Fe.TransformationType.CLASS_TO_CLASS&&(g=_.constructor),this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN&&_&&(_[T.options.discriminator.property]=T.options.discriminator.subTypes.find(tt=>tt.value===_.constructor).name)):g=me,y=y||T.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(U=>U.target===n&&!!U.properties[m]).forEach(U=>g=U.properties[m]);else if(this.options.enableImplicitConversion&&this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS){let U=Reflect.getMetadata("design:type",n.prototype,m);U&&(g=U)}}let A=Array.isArray(r[d])?this.getReflectedType(n,m):void 0,I=t?t[d]:void 0;if(c.constructor.prototype){let T=Object.getOwnPropertyDescriptor(c.constructor.prototype,p);if((this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS||this.transformationType===Fe.TransformationType.CLASS_TO_CLASS)&&(T&&!T.set||c[p]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(_)){let T=this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS?p:u,U;this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN?(U=r[T],U=this.applyCustomTransformations(U,n,T,r,this.transformationType),U=r[T]===U?_:U,U=this.transform(I,U,g,A,y,o+1)):_===void 0&&this.options.exposeDefaultValues?U=c[p]:(U=this.transform(I,_,g,A,y,o+1),U=this.applyCustomTransformations(U,n,T,r,this.transformationType)),(U!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(p,U):c[p]=U)}else if(this.transformationType===Fe.TransformationType.CLASS_TO_CLASS){let T=_;T=this.applyCustomTransformations(T,n,u,r,this.transformationType),(T!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(p,T):c[p]=T)}}return this.options.enableCircularCheck&&this.recursionStack.delete(r),c}else return r}}applyCustomTransformations(t,r,n,i,s){let o=It.defaultMetadataStorage.findTransformMetadatas(r,n,this.transformationType);return this.options.version!==void 0&&(o=o.filter(a=>a.options?this.checkVersion(a.options.since,a.options.until):!0)),this.options.groups&&this.options.groups.length?o=o.filter(a=>a.options?this.checkGroups(a.options.groups):!0):o=o.filter(a=>!a.options||!a.options.groups||!a.options.groups.length),o.forEach(a=>{t=a.transformFn({value:t,key:n,obj:i,type:s,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,r){if(!t)return;let n=It.defaultMetadataStorage.findTypeMetadata(t,r);return n?n.reflectedType:void 0}getKeys(t,r,n){let i=It.defaultMetadataStorage.getStrategy(t);i==="none"&&(i=this.options.strategy||"exposeAll");let s=[];if((i==="exposeAll"||n)&&(r instanceof Map?s=Array.from(r.keys()):s=Object.keys(r)),n)return s;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){let o=It.defaultMetadataStorage.getExposedProperties(t,this.transformationType),a=It.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);s=[...o,...a]}if(!this.options.ignoreDecorators&&t){let o=It.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS&&(o=o.map(c=>{let u=It.defaultMetadataStorage.findExposeMetadata(t,c);return u&&u.options&&u.options.name?u.options.name:c})),this.options.excludeExtraneousValues?s=o:s=s.concat(o);let a=It.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);a.length>0&&(s=s.filter(c=>!a.includes(c))),this.options.version!==void 0&&(s=s.filter(c=>{let u=It.defaultMetadataStorage.findExposeMetadata(t,c);return!u||!u.options?!0:this.checkVersion(u.options.since,u.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(c=>{let u=It.defaultMetadataStorage.findExposeMetadata(t,c);return!u||!u.options?!0:this.checkGroups(u.options.groups)}):s=s.filter(c=>{let u=It.defaultMetadataStorage.findExposeMetadata(t,c);return!u||!u.options||!u.options.groups||!u.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(o=>this.options.excludePrefixes.every(a=>o.substr(0,a.length)!==a))),s=s.filter((o,a,c)=>c.indexOf(o)===a),s}checkVersion(t,r){let n=!0;return n&&t&&(n=this.options.version>=t),n&&r&&(n=this.options.version<r),n}checkGroups(t){return t?this.options.groups.some(r=>t.includes(r)):!0}};qh.TransformOperationExecutor=H0});var fq=f(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.defaultOptions=void 0;Mh.defaultOptions={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0}});var Fs=f(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.ClassTransformer=void 0;var js=dq(),ks=oc(),Us=fq(),W0=class{instanceToPlain(t,r){return new js.TransformOperationExecutor(ks.TransformationType.CLASS_TO_PLAIN,{...Us.defaultOptions,...r}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,r,n){return new js.TransformOperationExecutor(ks.TransformationType.CLASS_TO_PLAIN,{...Us.defaultOptions,...n}).transform(r,t,void 0,void 0,void 0,void 0)}plainToInstance(t,r,n){return new js.TransformOperationExecutor(ks.TransformationType.PLAIN_TO_CLASS,{...Us.defaultOptions,...n}).transform(void 0,r,t,void 0,void 0,void 0)}plainToClassFromExist(t,r,n){return new js.TransformOperationExecutor(ks.TransformationType.PLAIN_TO_CLASS,{...Us.defaultOptions,...n}).transform(t,r,void 0,void 0,void 0,void 0)}instanceToInstance(t,r){return new js.TransformOperationExecutor(ks.TransformationType.CLASS_TO_CLASS,{...Us.defaultOptions,...r}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,r,n){return new js.TransformOperationExecutor(ks.TransformationType.CLASS_TO_CLASS,{...Us.defaultOptions,...n}).transform(r,t,void 0,void 0,void 0,void 0)}serialize(t,r){return JSON.stringify(this.instanceToPlain(t,r))}deserialize(t,r,n){let i=JSON.parse(r);return this.plainToInstance(t,i,n)}deserializeArray(t,r,n){let i=JSON.parse(r);return this.plainToInstance(t,i,n)}};zh.ClassTransformer=W0});var mq=f(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.Exclude=void 0;var jue=zs();function kue(e={}){return function(t,r){jue.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}jh.Exclude=kue});var pq=f(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.Expose=void 0;var Uue=zs();function Fue(e={}){return function(t,r){Uue.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}kh.Expose=Fue});var hq=f(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.TransformInstanceToInstance=void 0;var Bue=Fs();function Gue(e){return function(t,r,n){let i=new Bue.ClassTransformer,s=n.value;n.value=function(...o){let a=s.apply(this,o);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(u=>i.instanceToInstance(u,e)):i.instanceToInstance(a,e)}}}Uh.TransformInstanceToInstance=Gue});var _q=f(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});Fh.TransformInstanceToPlain=void 0;var $ue=Fs();function Vue(e){return function(t,r,n){let i=new $ue.ClassTransformer,s=n.value;n.value=function(...o){let a=s.apply(this,o);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(u=>i.instanceToPlain(u,e)):i.instanceToPlain(a,e)}}}Fh.TransformInstanceToPlain=Vue});var yq=f(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});Bh.TransformPlainToInstance=void 0;var Kue=Fs();function Hue(e,t){return function(r,n,i){let s=new Kue.ClassTransformer,o=i.value;i.value=function(...a){let c=o.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(d=>s.plainToInstance(e,d,t)):s.plainToInstance(e,c,t)}}}Bh.TransformPlainToInstance=Hue});var gq=f(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});Gh.Transform=void 0;var Wue=zs();function Yue(e,t={}){return function(r,n){Wue.defaultMetadataStorage.addTransformMetadata({target:r.constructor,propertyName:n,transformFn:e,options:t})}}Gh.Transform=Yue});var vq=f($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.Type=void 0;var Jue=zs();function Que(e,t={}){return function(r,n){let i=Reflect.getMetadata("design:type",r,n);Jue.defaultMetadataStorage.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:i,typeFunction:e,options:t})}}$h.Type=Que});var Sq=f(Ft=>{"use strict";var Xue=Ft&&Ft.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),zi=Ft&&Ft.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Xue(t,e,r)};Object.defineProperty(Ft,"__esModule",{value:!0});zi(mq(),Ft);zi(pq(),Ft);zi(hq(),Ft);zi(_q(),Ft);zi(yq(),Ft);zi(gq(),Ft);zi(vq(),Ft)});var bq=f(wq=>{"use strict";Object.defineProperty(wq,"__esModule",{value:!0})});var Aq=f(Eq=>{"use strict";Object.defineProperty(Eq,"__esModule",{value:!0})});var Cq=f(Tq=>{"use strict";Object.defineProperty(Tq,"__esModule",{value:!0})});var Iq=f(xq=>{"use strict";Object.defineProperty(xq,"__esModule",{value:!0})});var Dq=f(Rq=>{"use strict";Object.defineProperty(Rq,"__esModule",{value:!0})});var Nq=f(Pq=>{"use strict";Object.defineProperty(Pq,"__esModule",{value:!0})});var Lq=f(Oq=>{"use strict";Object.defineProperty(Oq,"__esModule",{value:!0})});var Mq=f(qq=>{"use strict";Object.defineProperty(qq,"__esModule",{value:!0})});var jq=f(zq=>{"use strict";Object.defineProperty(zq,"__esModule",{value:!0})});var Uq=f(kq=>{"use strict";Object.defineProperty(kq,"__esModule",{value:!0})});var Bq=f(Fq=>{"use strict";Object.defineProperty(Fq,"__esModule",{value:!0})});var $q=f(Gq=>{"use strict";Object.defineProperty(Gq,"__esModule",{value:!0})});var Kq=f(Vq=>{"use strict";Object.defineProperty(Vq,"__esModule",{value:!0})});var Wq=f(Hq=>{"use strict";Object.defineProperty(Hq,"__esModule",{value:!0})});var Yq=f(He=>{"use strict";var Zue=He&&He.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Rt=He&&He.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Zue(t,e,r)};Object.defineProperty(He,"__esModule",{value:!0});Rt(bq(),He);Rt(Aq(),He);Rt(Cq(),He);Rt(Iq(),He);Rt(Dq(),He);Rt(Nq(),He);Rt(Lq(),He);Rt(Mq(),He);Rt(jq(),He);Rt(Uq(),He);Rt(Bq(),He);Rt($q(),He);Rt(Kq(),He);Rt(Wq(),He)});var Vh=f(he=>{"use strict";var ede=he&&he.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Y0=he&&he.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ede(t,e,r)};Object.defineProperty(he,"__esModule",{value:!0});he.deserializeArray=he.deserialize=he.serialize=he.classToClassFromExist=he.instanceToInstance=he.plainToClassFromExist=he.plainToInstance=he.plainToClass=he.classToPlainFromExist=he.instanceToPlain=he.classToPlain=he.ClassTransformer=void 0;var tde=Fs(),rde=Fs();Object.defineProperty(he,"ClassTransformer",{enumerable:!0,get:function(){return rde.ClassTransformer}});Y0(Sq(),he);Y0(Yq(),he);Y0(oc(),he);var fr=new tde.ClassTransformer;function nde(e,t){return fr.instanceToPlain(e,t)}he.classToPlain=nde;function ide(e,t){return fr.instanceToPlain(e,t)}he.instanceToPlain=ide;function sde(e,t,r){return fr.classToPlainFromExist(e,t,r)}he.classToPlainFromExist=sde;function ode(e,t,r){return fr.plainToInstance(e,t,r)}he.plainToClass=ode;function ade(e,t,r){return fr.plainToInstance(e,t,r)}he.plainToInstance=ade;function cde(e,t,r){return fr.plainToClassFromExist(e,t,r)}he.plainToClassFromExist=cde;function lde(e,t){return fr.instanceToInstance(e,t)}he.instanceToInstance=lde;function ude(e,t,r){return fr.classToClassFromExist(e,t,r)}he.classToClassFromExist=ude;function dde(e,t){return fr.serialize(e,t)}he.serialize=dde;function fde(e,t,r){return fr.deserialize(e,t,r)}he.deserialize=fde;function mde(e,t,r){return fr.deserializeArray(e,t,r)}he.deserializeArray=mde});var J0=f(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.Rules=void 0;var pde=Vh(),ac=class{static async Load(t){let{dbManager:r,key:n}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:"rules"}});return(0,pde.plainToInstance)(ac,i)}constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,RuleSet:this.RuleSet,Version:this.Version}}async Save(t){let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct}),n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([r,n]),await r,await n}get PK(){return`appName#${this.AppName}`.toLowerCase()}get SK(){return"rules"}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get RuleSet(){return this._ruleSet}set RuleSet(t){this._ruleSet=t}get Version(){return this._version}set Version(t){this._version=t}};Kh.Rules=ac});var Q0=f(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});Hh.Version=void 0;var Jq=Vh(),Bs;(function(e){e[e.AppName=0]="AppName"})(Bs||(Bs={}));var Gs=class{static async LoadVersions(t){let{dbManager:r,key:n}=t,{Items:i}=await r.ddbDocClient.query({TableName:r.tableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${n.AppName}`.toLowerCase(),":skval":"version"}}),s=[];if(i!==void 0)for(let o of i){let a=(0,Jq.plainToInstance)(Gs,o);s.push(a)}return s}static async LoadVersion(t){let{dbManager:r,key:n}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:`version#${n.SemVer}`.toLowerCase()}});return(0,Jq.plainToInstance)(Gs,i)}static async DeleteVersion(t){let{dbManager:r,key:n}=t;await r.ddbDocClient.delete({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:`version#${n.SemVer}`.toLowerCase()}})}get PK(){switch(this._keyBy){case Bs.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}constructor(t){this._keyBy=Bs.AppName,this._status="pending",this._startupType="iframe",this._defaultFile="",this._integrationID="",this._routeIDAppVersion="",this._routeIDAppVersionSplat="",this._url="",this._lambdaARN="",Object.assign(this,t)}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,SemVer:this.SemVer,Type:this.Type,StartupType:this.StartupType,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID,RouteIDAppVersion:this.RouteIDAppVersion,RouteIDAppVersionSplat:this.RouteIDAppVersionSplat,URL:this.URL,LambdaARN:this.LambdaARN}}async Save(t){this._keyBy=Bs.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case Bs.AppName:return`version#${this.SemVer}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get SemVer(){return this._semVer}set SemVer(t){this._semVer=t}get Type(){return this._type}set Type(t){this._type=t}get StartupType(){return this._startupType}set StartupType(t){this._startupType=t}get Status(){return this._status}set Status(t){this._status=t}get DefaultFile(){return this._defaultFile}set DefaultFile(t){this._defaultFile=t}get IntegrationID(){return this._integrationID}set IntegrationID(t){this._integrationID=t}get RouteIDAppVersion(){return this._routeIDAppVersion}set RouteIDAppVersion(t){this._routeIDAppVersion=t}get RouteIDAppVersionSplat(){return this._routeIDAppVersionSplat}set RouteIDAppVersionSplat(t){this._routeIDAppVersionSplat=t}get URL(){return this._url}set URL(t){this._url=t}get LambdaARN(){return this._lambdaARN}set LambdaARN(t){this._lambdaARN=t}};Hh.Version=Gs});var Zq=f(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.Application=void 0;var Qq=Vh(),Xq=J0(),hde=Q0(),hn;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(hn||(hn={}));var $s=class{static async UpdateDefaultRule(t){let{dbManager:r,key:n}=t,i=await Xq.Rules.Load({dbManager:r,key:n}),s=i.RuleSet.default;s.SemVer=n.SemVer,await i.Save(r)}static async GetVersionsAndRules(t){let{key:r,dbManager:n}=t,i=hde.Version.LoadVersions({dbManager:n,key:r}),s=Xq.Rules.Load({dbManager:n,key:r});return await Promise.all([i,s]),{Versions:await i,Rules:await s}}static async Load(t){let{key:r,dbManager:n}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:"application"}});return(0,Qq.plainToInstance)($s,i)}static async LoadAllApps(t){let{Items:r}=await t.ddbDocClient.query({TableName:t.tableName,KeyConditionExpression:"PK = :pkval",ExpressionAttributeValues:{":pkval":"applications"}}),n=[];if(r!==void 0)for(let i of r){let s=(0,Qq.plainToInstance)($s,i);n.push(s)}return n}constructor(t){Object.assign(this,t),this._keyBy=hn.AppName}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=hn.AppName;let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=hn.Applications;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([r,n]),await r,await n}get PK(){switch(this._keyBy){case hn.Applications:return"applications";case hn.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case hn.Applications:return`appName#${this.AppName}`.toLowerCase();case hn.AppName:return"application";default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get DisplayName(){return this._displayName}set DisplayName(t){this._displayName=t}};Wh.Application=$s});var X0=f(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Version=Hr.Rules=Hr.Application=Hr.DBManager=void 0;var _de=nq();Object.defineProperty(Hr,"DBManager",{enumerable:!0,get:function(){return _de.DBManager}});var yde=Zq();Object.defineProperty(Hr,"Application",{enumerable:!0,get:function(){return yde.Application}});var gde=J0();Object.defineProperty(Hr,"Rules",{enumerable:!0,get:function(){return gde.Rules}});var vde=Q0();Object.defineProperty(Hr,"Version",{enumerable:!0,get:function(){return vde.Version}})});var Dt=f(Z0=>{"use strict";Z0.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};Z0.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var tM=f((LCe,eM)=>{var Yn=require("constants"),Sde=process.cwd,Yh=null,wde=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Yh||(Yh=Sde.call(process)),Yh};try{process.cwd()}catch{}typeof process.chdir=="function"&&(eb=process.chdir,process.chdir=function(e){Yh=null,eb.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,eb));var eb;eM.exports=bde;function bde(e){Yn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(d,p,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(d,p,m,_){_&&process.nextTick(_)},e.lchownSync=function(){}),wde==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(d){function p(m,_,g){var y=Date.now(),A=0;d(m,_,function I(T){if(T&&(T.code==="EACCES"||T.code==="EPERM")&&Date.now()-y<6e4){setTimeout(function(){e.stat(_,function(U,me){U&&U.code==="ENOENT"?d(m,_,I):g(T)})},A),A<100&&(A+=10);return}g&&g(T)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,d),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(d){function p(m,_,g,y,A,I){var T;if(I&&typeof I=="function"){var U=0;T=function(me,tt,ct){if(me&&me.code==="EAGAIN"&&U<10)return U++,d.call(e,m,_,g,y,A,T);I.apply(this,arguments)}}return d.call(e,m,_,g,y,A,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,d),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(d){return function(p,m,_,g,y){for(var A=0;;)try{return d.call(e,p,m,_,g,y)}catch(I){if(I.code==="EAGAIN"&&A<10){A++;continue}throw I}}}(e.readSync);function t(d){d.lchmod=function(p,m,_){d.open(p,Yn.O_WRONLY|Yn.O_SYMLINK,m,function(g,y){if(g){_&&_(g);return}d.fchmod(y,m,function(A){d.close(y,function(I){_&&_(A||I)})})})},d.lchmodSync=function(p,m){var _=d.openSync(p,Yn.O_WRONLY|Yn.O_SYMLINK,m),g=!0,y;try{y=d.fchmodSync(_,m),g=!1}finally{if(g)try{d.closeSync(_)}catch{}else d.closeSync(_)}return y}}function r(d){Yn.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(p,m,_,g){d.open(p,Yn.O_SYMLINK,function(y,A){if(y){g&&g(y);return}d.futimes(A,m,_,function(I){d.close(A,function(T){g&&g(I||T)})})})},d.lutimesSync=function(p,m,_){var g=d.openSync(p,Yn.O_SYMLINK),y,A=!0;try{y=d.futimesSync(g,m,_),A=!1}finally{if(A)try{d.closeSync(g)}catch{}else d.closeSync(g)}return y}):d.futimes&&(d.lutimes=function(p,m,_,g){g&&process.nextTick(g)},d.lutimesSync=function(){})}function n(d){return d&&function(p,m,_){return d.call(e,p,m,function(g){u(g)&&(g=null),_&&_.apply(this,arguments)})}}function i(d){return d&&function(p,m){try{return d.call(e,p,m)}catch(_){if(!u(_))throw _}}}function s(d){return d&&function(p,m,_,g){return d.call(e,p,m,_,function(y){u(y)&&(y=null),g&&g.apply(this,arguments)})}}function o(d){return d&&function(p,m,_){try{return d.call(e,p,m,_)}catch(g){if(!u(g))throw g}}}function a(d){return d&&function(p,m,_){typeof m=="function"&&(_=m,m=null);function g(y,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),_&&_.apply(this,arguments)}return m?d.call(e,p,m,g):d.call(e,p,g)}}function c(d){return d&&function(p,m){var _=m?d.call(e,p,m):d.call(e,p);return _&&(_.uid<0&&(_.uid+=4294967296),_.gid<0&&(_.gid+=4294967296)),_}}function u(d){if(!d||d.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(d.code==="EINVAL"||d.code==="EPERM"))}}});var iM=f((qCe,nM)=>{var rM=require("stream").Stream;nM.exports=Ede;function Ede(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);rM.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var u=o[a];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(d,p){if(d){s.emit("error",d),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);rM.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var c=s[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var oM=f((MCe,sM)=>{"use strict";sM.exports=Tde;var Ade=Object.getPrototypeOf||function(e){return e.__proto__};function Tde(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Ade(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var pt=f((zCe,nb)=>{var qe=require("fs"),Cde=tM(),xde=iM(),Ide=oM(),Jh=require("util"),at,Xh;typeof Symbol=="function"&&typeof Symbol.for=="function"?(at=Symbol.for("graceful-fs.queue"),Xh=Symbol.for("graceful-fs.previous")):(at="___graceful-fs.queue",Xh="___graceful-fs.previous");function Rde(){}function lM(e,t){Object.defineProperty(e,at,{get:function(){return t}})}var ji=Rde;Jh.debuglog?ji=Jh.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ji=function(){var e=Jh.format.apply(Jh,arguments);e="GFS4: "+e.split(/\n/).join(`
29
- GFS4: `),console.error(e)});qe[at]||(aM=global[at]||[],lM(qe,aM),qe.close=function(e){function t(r,n){return e.call(qe,r,function(i){i||cM(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Xh,{value:e}),t}(qe.close),qe.closeSync=function(e){function t(r){e.apply(qe,arguments),cM()}return Object.defineProperty(t,Xh,{value:e}),t}(qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ji(qe[at]),require("assert").equal(qe[at].length,0)}));var aM;global[at]||lM(global,qe[at]);nb.exports=tb(Ide(qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!qe.__patched&&(nb.exports=tb(qe),qe.__patched=!0);function tb(e){Cde(e),e.gracefulify=tb,e.createReadStream=tt,e.createWriteStream=ct;var t=e.readFile;e.readFile=r;function r(q,Y,ae){return typeof Y=="function"&&(ae=Y,Y=null),Ee(q,Y,ae);function Ee(Me,Re,Ae,Te){return t(Me,Re,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vs([Ee,[Me,Re,Ae],ge,Te||Date.now(),Date.now()]):typeof Ae=="function"&&Ae.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(q,Y,ae,Ee){return typeof ae=="function"&&(Ee=ae,ae=null),Me(q,Y,ae,Ee);function Me(Re,Ae,Te,ge,ze){return n(Re,Ae,Te,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Vs([Me,[Re,Ae,Te,ge],Se,ze||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(q,Y,ae,Ee){return typeof ae=="function"&&(Ee=ae,ae=null),Me(q,Y,ae,Ee);function Me(Re,Ae,Te,ge,ze){return s(Re,Ae,Te,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Vs([Me,[Re,Ae,Te,ge],Se,ze||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(q,Y,ae,Ee){return typeof ae=="function"&&(Ee=ae,ae=0),Me(q,Y,ae,Ee);function Me(Re,Ae,Te,ge,ze){return a(Re,Ae,Te,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Vs([Me,[Re,Ae,Te,ge],Se,ze||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var u=e.readdir;e.readdir=p;var d=/^v[0-5]\./;function p(q,Y,ae){typeof Y=="function"&&(ae=Y,Y=null);var Ee=d.test(process.version)?function(Ae,Te,ge,ze){return u(Ae,Me(Ae,Te,ge,ze))}:function(Ae,Te,ge,ze){return u(Ae,Te,Me(Ae,Te,ge,ze))};return Ee(q,Y,ae);function Me(Re,Ae,Te,ge){return function(ze,Se){ze&&(ze.code==="EMFILE"||ze.code==="ENFILE")?Vs([Ee,[Re,Ae,Te],ze,ge||Date.now(),Date.now()]):(Se&&Se.sort&&Se.sort(),typeof Te=="function"&&Te.call(this,ze,Se))}}}if(process.version.substr(0,4)==="v0.8"){var m=xde(e);I=m.ReadStream,U=m.WriteStream}var _=e.ReadStream;_&&(I.prototype=Object.create(_.prototype),I.prototype.open=T);var g=e.WriteStream;g&&(U.prototype=Object.create(g.prototype),U.prototype.open=me),Object.defineProperty(e,"ReadStream",{get:function(){return I},set:function(q){I=q},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return U},set:function(q){U=q},enumerable:!0,configurable:!0});var y=I;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(q){y=q},enumerable:!0,configurable:!0});var A=U;Object.defineProperty(e,"FileWriteStream",{get:function(){return A},set:function(q){A=q},enumerable:!0,configurable:!0});function I(q,Y){return this instanceof I?(_.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function T(){var q=this;qt(q.path,q.flags,q.mode,function(Y,ae){Y?(q.autoClose&&q.destroy(),q.emit("error",Y)):(q.fd=ae,q.emit("open",ae),q.read())})}function U(q,Y){return this instanceof U?(g.apply(this,arguments),this):U.apply(Object.create(U.prototype),arguments)}function me(){var q=this;qt(q.path,q.flags,q.mode,function(Y,ae){Y?(q.destroy(),q.emit("error",Y)):(q.fd=ae,q.emit("open",ae))})}function tt(q,Y){return new e.ReadStream(q,Y)}function ct(q,Y){return new e.WriteStream(q,Y)}var Gt=e.open;e.open=qt;function qt(q,Y,ae,Ee){return typeof ae=="function"&&(Ee=ae,ae=null),Me(q,Y,ae,Ee);function Me(Re,Ae,Te,ge,ze){return Gt(Re,Ae,Te,function(Se,Qr){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Vs([Me,[Re,Ae,Te,ge],Se,ze||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}return e}function Vs(e){ji("ENQUEUE",e[0].name,e[1]),qe[at].push(e),rb()}var Qh;function cM(){for(var e=Date.now(),t=0;t<qe[at].length;++t)qe[at][t].length>2&&(qe[at][t][3]=e,qe[at][t][4]=e);rb()}function rb(){if(clearTimeout(Qh),Qh=void 0,qe[at].length!==0){var e=qe[at].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)ji("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){ji("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),u=Math.min(c*1.2,100);a>=u?(ji("RETRY",t.name,r),t.apply(null,r.concat([i]))):qe[at].push(e)}Qh===void 0&&(Qh=setTimeout(rb,0))}}});var cc=f(Jn=>{"use strict";var uM=Dt().fromCallback,St=pt(),Dde=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof St[e]=="function");Object.keys(St).forEach(e=>{e!=="promises"&&(Jn[e]=St[e])});Dde.forEach(e=>{Jn[e]=uM(St[e])});Jn.exists=function(e,t){return typeof t=="function"?St.exists(e,t):new Promise(r=>St.exists(e,r))};Jn.read=function(e,t,r,n,i,s){return typeof s=="function"?St.read(e,t,r,n,i,s):new Promise((o,a)=>{St.read(e,t,r,n,i,(c,u,d)=>{if(c)return a(c);o({bytesRead:u,buffer:d})})})};Jn.write=function(e,t,...r){return typeof r[r.length-1]=="function"?St.write(e,t,...r):new Promise((n,i)=>{St.write(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof St.writev=="function"&&(Jn.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?St.writev(e,t,...r):new Promise((n,i)=>{St.writev(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof St.realpath.native=="function"&&(Jn.realpath.native=uM(St.realpath.native))});var ib=f((kCe,dM)=>{dM.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var _M=f((UCe,sb)=>{"use strict";var Ks=cc(),_n=require("path"),Pde=ib(),fM=Pde("10.12.0"),mM=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(_n.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},pM=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},hM=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};sb.exports.makeDir=async(e,t)=>{if(mM(e),t=pM(t),fM){let n=_n.resolve(e);return Ks.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await Ks.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(_n.dirname(n)===n)throw hM(n);if(i.message.includes("null bytes"))throw i;return await r(_n.dirname(n)),r(n)}try{if(!(await Ks.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(_n.resolve(e))};sb.exports.makeDirSync=(e,t)=>{if(mM(e),t=pM(t),fM){let n=_n.resolve(e);return Ks.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{Ks.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(_n.dirname(n)===n)throw hM(n);if(i.message.includes("null bytes"))throw i;return r(_n.dirname(n)),r(n)}try{if(!Ks.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(_n.resolve(e))}});var mr=f((FCe,yM)=>{"use strict";var Nde=Dt().fromPromise,{makeDir:Ode,makeDirSync:ob}=_M(),ab=Nde(Ode);yM.exports={mkdirs:ab,mkdirsSync:ob,mkdirp:ab,mkdirpSync:ob,ensureDir:ab,ensureDirSync:ob}});var cb=f((BCe,gM)=>{"use strict";var Hs=pt();function Lde(e,t,r,n){Hs.open(e,"r+",(i,s)=>{if(i)return n(i);Hs.futimes(s,t,r,o=>{Hs.close(s,a=>{n&&n(o||a)})})})}function qde(e,t,r){let n=Hs.openSync(e,"r+");return Hs.futimesSync(n,t,r),Hs.closeSync(n)}gM.exports={utimesMillis:Lde,utimesMillisSync:qde}});var lc=f((GCe,bM)=>{"use strict";var Ws=cc(),Pt=require("path"),Mde=require("util"),zde=ib(),Zh=zde("10.5.0"),vM=e=>Zh?Ws.stat(e,{bigint:!0}):Ws.stat(e),lb=e=>Zh?Ws.statSync(e,{bigint:!0}):Ws.statSync(e);function jde(e,t){return Promise.all([vM(e),vM(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function kde(e,t){let r,n=lb(e);try{r=lb(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Ude(e,t,r,n){Mde.callbackify(jde)(e,t,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&e_(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&ub(e,t)?n(new Error(t_(e,t,r))):n(null,{srcStat:o,destStat:a})})}function Fde(e,t,r){let{srcStat:n,destStat:i}=kde(e,t);if(i&&e_(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&ub(e,t))throw new Error(t_(e,t,r));return{srcStat:n,destStat:i}}function SM(e,t,r,n,i){let s=Pt.resolve(Pt.dirname(e)),o=Pt.resolve(Pt.dirname(r));if(o===s||o===Pt.parse(o).root)return i();let a=(c,u)=>c?c.code==="ENOENT"?i():i(c):e_(t,u)?i(new Error(t_(e,r,n))):SM(e,t,o,n,i);Zh?Ws.stat(o,{bigint:!0},a):Ws.stat(o,a)}function wM(e,t,r,n){let i=Pt.resolve(Pt.dirname(e)),s=Pt.resolve(Pt.dirname(r));if(s===i||s===Pt.parse(s).root)return;let o;try{o=lb(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(e_(t,o))throw new Error(t_(e,r,n));return wM(e,t,s,n)}function e_(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(Zh||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function ub(e,t){let r=Pt.resolve(e).split(Pt.sep).filter(i=>i),n=Pt.resolve(t).split(Pt.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function t_(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}bM.exports={checkPaths:Ude,checkPathsSync:Fde,checkParentPaths:SM,checkParentPathsSync:wM,isSrcSubdir:ub}});var xM=f(($Ce,CM)=>{"use strict";var ht=pt(),uc=require("path"),Bde=mr().mkdirsSync,Gde=cb().utimesMillisSync,dc=lc();function $de(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
26
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=Wae,this.buildObjNode=Kae):(this.buildTextNode=Mq,this.buildObjNode=Lq),this.buildTextValNode=Mq,this.buildObjectNode=Lq}Tb.prototype.parse=function(e){return this.j2x(e,0).val};Tb.prototype.j2x=function(e,t){let r="",n="",i=Object.keys(e),s=i.length;for(let o=0;o<s;o++){let a=i[o];if(!(typeof e[a]>"u"))if(e[a]===null)n+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)n+=this.buildTextNode(e[a],a,"",t);else if(typeof e[a]!="object"){let c=this.isAttribute(a);c?r+=" "+c+'="'+this.options.attrValueProcessor(""+e[a])+'"':this.isCDATA(a)?e[this.options.textNodeName]?n+=this.replaceCDATAstr(e[this.options.textNodeName],e[a]):n+=this.replaceCDATAstr("",e[a]):a===this.options.textNodeName?e[this.options.cdataTagName]||(n+=this.options.tagValueProcessor(""+e[a])):n+=this.buildTextNode(e[a],a,"",t)}else if(Array.isArray(e[a]))if(this.isCDATA(a))n+=this.indentate(t),e[this.options.textNodeName]?n+=this.replaceCDATAarr(e[this.options.textNodeName],e[a]):n+=this.replaceCDATAarr("",e[a]);else{let c=e[a].length;for(let l=0;l<c;l++){let u=e[a][l];if(!(typeof u>"u"))if(u===null)n+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(typeof u=="object"){let p=this.j2x(u,t+1);n+=this.buildObjNode(p.val,a,p.attrStr,t)}else n+=this.buildTextNode(u,a,"",t)}}else if(this.options.attrNodeName&&a===this.options.attrNodeName){let c=Object.keys(e[a]),l=c.length;for(let u=0;u<l;u++)r+=" "+c[u]+'="'+this.options.attrValueProcessor(""+e[a][c[u]])+'"'}else{let c=this.j2x(e[a],t+1);n+=this.buildObjNode(c.val,a,c.attrStr,t)}}return{attrStr:r,val:n}};function Vae(e,t){return e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e===""?e+"<![CDATA["+t+"]]"+this.tagEndChar:e.replace(this.options.cdataPositionChar,"<![CDATA["+t+"]]"+this.tagEndChar)}function Hae(e,t){if(e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e==="")return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let r in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[r]+"]]>");return e+this.newLine}function Lq(e,t,r,n){return r&&!e.includes("<")?this.indentate(n)+"<"+t+r+">"+e+"</"+t+this.tagEndChar:this.indentate(n)+"<"+t+r+this.tagEndChar+e+this.indentate(n)+"</"+t+this.tagEndChar}function Kae(e,t,r,n){return e!==""?this.buildObjectNode(e,t,r,n):this.indentate(n)+"<"+t+r+"/"+this.tagEndChar}function Mq(e,t,r,n){return this.indentate(n)+"<"+t+r+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function Wae(e,t,r,n){return e!==""?this.buildTextValNode(e,t,r,n):this.indentate(n)+"<"+t+r+"/"+this.tagEndChar}function Yae(e){return this.options.indentBy.repeat(e)}function Jae(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function Qae(e){return e===this.options.cdataTagName}jq.exports=Tb});var Gq=d(Er=>{"use strict";var Fq=hq(),Uq=Oc(),kq=Oc(),Xae=Gr().buildOptions,Bq=xq();Er.parse=function(e,t,r){if(r){r===!0&&(r={});let i=Bq.validate(e,r);if(i!==!0)throw Error(i.err.msg)}t=Xae(t,kq.defaultOptions,kq.props);let n=Uq.getTraversalObj(e,t);return Fq.convertToJson(n,t)};Er.convertTonimn=Oq().convert2nimn;Er.getTraversalObj=Uq.getTraversalObj;Er.convertToJson=Fq.convertToJson;Er.convertToJsonString=qq().convertToJsonString;Er.validate=Bq.validate;Er.j2xParser=zq();Er.parseToNimn=function(e,t,r){return Er.convertTonimn(Er.getTraversalObj(e,r),t,r)}});var Dn=d(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.deserializeAws_queryGetSessionTokenCommand=he.deserializeAws_queryGetFederationTokenCommand=he.deserializeAws_queryGetCallerIdentityCommand=he.deserializeAws_queryGetAccessKeyInfoCommand=he.deserializeAws_queryDecodeAuthorizationMessageCommand=he.deserializeAws_queryAssumeRoleWithWebIdentityCommand=he.deserializeAws_queryAssumeRoleWithSAMLCommand=he.deserializeAws_queryAssumeRoleCommand=he.serializeAws_queryGetSessionTokenCommand=he.serializeAws_queryGetFederationTokenCommand=he.serializeAws_queryGetCallerIdentityCommand=he.serializeAws_queryGetAccessKeyInfoCommand=he.serializeAws_queryDecodeAuthorizationMessageCommand=he.serializeAws_queryAssumeRoleWithWebIdentityCommand=he.serializeAws_queryAssumeRoleWithSAMLCommand=he.serializeAws_queryAssumeRoleCommand=void 0;var Zae=Tt(),K=P(),ece=fq(),tce=Gq(),fi=vr(),mi=qm(),rce=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=_i({...Ice(e,t),Action:"AssumeRole",Version:"2011-06-15"}),pi(t,r,"/",void 0,n)};he.serializeAws_queryAssumeRoleCommand=rce;var nce=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=_i({...Rce(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),pi(t,r,"/",void 0,n)};he.serializeAws_queryAssumeRoleWithSAMLCommand=nce;var ice=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=_i({...Pce(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),pi(t,r,"/",void 0,n)};he.serializeAws_queryAssumeRoleWithWebIdentityCommand=ice;var sce=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=_i({...Oce(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),pi(t,r,"/",void 0,n)};he.serializeAws_queryDecodeAuthorizationMessageCommand=sce;var oce=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=_i({...Nce(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),pi(t,r,"/",void 0,n)};he.serializeAws_queryGetAccessKeyInfoCommand=oce;var ace=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=_i({...Dce(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"}),pi(t,r,"/",void 0,n)};he.serializeAws_queryGetCallerIdentityCommand=ace;var cce=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=_i({...qce(e,t),Action:"GetFederationToken",Version:"2011-06-15"}),pi(t,r,"/",void 0,n)};he.serializeAws_queryGetFederationTokenCommand=cce;var lce=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=_i({...Lce(e,t),Action:"GetSessionToken",Version:"2011-06-15"}),pi(t,r,"/",void 0,n)};he.serializeAws_queryGetSessionTokenCommand=lce;var uce=async(e,t)=>{if(e.statusCode>=300)return dce(e,t);let r=await gt(e.body,t),n={};n=kce(r.AssumeRoleResult,t);let i={$metadata:Me(e),...n};return Promise.resolve(i)};he.deserializeAws_queryAssumeRoleCommand=uce;var dce=async(e,t)=>{let r={...e,body:await gt(e.body,t)},n,i="UnknownError";switch(i=hi(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Cb(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await $m(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Vm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Dc(r,t);default:let s=r.body;throw n=new mi.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Me(e)}),(0,K.decorateServiceException)(n,s.Error)}},fce=async(e,t)=>{if(e.statusCode>=300)return mce(e,t);let r=await gt(e.body,t),n={};n=Fce(r.AssumeRoleWithSAMLResult,t);let i={$metadata:Me(e),...n};return Promise.resolve(i)};he.deserializeAws_queryAssumeRoleWithSAMLCommand=fce;var mce=async(e,t)=>{let r={...e,body:await gt(e.body,t)},n,i="UnknownError";switch(i=hi(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Cb(r,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await $q(r,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Vq(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await $m(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Vm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Dc(r,t);default:let s=r.body;throw n=new mi.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Me(e)}),(0,K.decorateServiceException)(n,s.Error)}},pce=async(e,t)=>{if(e.statusCode>=300)return _ce(e,t);let r=await gt(e.body,t),n={};n=Uce(r.AssumeRoleWithWebIdentityResult,t);let i={$metadata:Me(e),...n};return Promise.resolve(i)};he.deserializeAws_queryAssumeRoleWithWebIdentityCommand=pce;var _ce=async(e,t)=>{let r={...e,body:await gt(e.body,t)},n,i="UnknownError";switch(i=hi(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Cb(r,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Cce(r,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await $q(r,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Vq(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await $m(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Vm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Dc(r,t);default:let s=r.body;throw n=new mi.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Me(e)}),(0,K.decorateServiceException)(n,s.Error)}},hce=async(e,t)=>{if(e.statusCode>=300)return yce(e,t);let r=await gt(e.body,t),n={};n=Bce(r.DecodeAuthorizationMessageResult,t);let i={$metadata:Me(e),...n};return Promise.resolve(i)};he.deserializeAws_queryDecodeAuthorizationMessageCommand=hce;var yce=async(e,t)=>{let r={...e,body:await gt(e.body,t)},n,i="UnknownError";switch(i=hi(e,r.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await xce(r,t);default:let s=r.body;throw n=new mi.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Me(e)}),(0,K.decorateServiceException)(n,s.Error)}},gce=async(e,t)=>{if(e.statusCode>=300)return vce(e,t);let r=await gt(e.body,t),n={};n=Vce(r.GetAccessKeyInfoResult,t);let i={$metadata:Me(e),...n};return Promise.resolve(i)};he.deserializeAws_queryGetAccessKeyInfoCommand=gce;var vce=async(e,t)=>{let r={...e,body:await gt(e.body,t)},n,i="UnknownError";switch(i=hi(e,r.body),i){default:let s=r.body;throw n=new mi.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Me(e)}),(0,K.decorateServiceException)(n,s.Error)}},Sce=async(e,t)=>{if(e.statusCode>=300)return wce(e,t);let r=await gt(e.body,t),n={};n=Hce(r.GetCallerIdentityResult,t);let i={$metadata:Me(e),...n};return Promise.resolve(i)};he.deserializeAws_queryGetCallerIdentityCommand=Sce;var wce=async(e,t)=>{let r={...e,body:await gt(e.body,t)},n,i="UnknownError";switch(i=hi(e,r.body),i){default:let s=r.body;throw n=new mi.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Me(e)}),(0,K.decorateServiceException)(n,s.Error)}},Ece=async(e,t)=>{if(e.statusCode>=300)return bce(e,t);let r=await gt(e.body,t),n={};n=Kce(r.GetFederationTokenResult,t);let i={$metadata:Me(e),...n};return Promise.resolve(i)};he.deserializeAws_queryGetFederationTokenCommand=Ece;var bce=async(e,t)=>{let r={...e,body:await gt(e.body,t)},n,i="UnknownError";switch(i=hi(e,r.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await $m(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Vm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Dc(r,t);default:let s=r.body;throw n=new mi.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Me(e)}),(0,K.decorateServiceException)(n,s.Error)}},Ace=async(e,t)=>{if(e.statusCode>=300)return Tce(e,t);let r=await gt(e.body,t),n={};n=Wce(r.GetSessionTokenResult,t);let i={$metadata:Me(e),...n};return Promise.resolve(i)};he.deserializeAws_queryGetSessionTokenCommand=Ace;var Tce=async(e,t)=>{let r={...e,body:await gt(e.body,t)},n,i="UnknownError";switch(i=hi(e,r.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Dc(r,t);default:let s=r.body;throw n=new mi.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Me(e)}),(0,K.decorateServiceException)(n,s.Error)}},Cb=async(e,t)=>{let r=e.body,n=Gce(r.Error,t),i=new fi.ExpiredTokenException({$metadata:Me(e),...n});return(0,K.decorateServiceException)(i,r)},Cce=async(e,t)=>{let r=e.body,n=Yce(r.Error,t),i=new fi.IDPCommunicationErrorException({$metadata:Me(e),...n});return(0,K.decorateServiceException)(i,r)},$q=async(e,t)=>{let r=e.body,n=Jce(r.Error,t),i=new fi.IDPRejectedClaimException({$metadata:Me(e),...n});return(0,K.decorateServiceException)(i,r)},xce=async(e,t)=>{let r=e.body,n=Qce(r.Error,t),i=new fi.InvalidAuthorizationMessageException({$metadata:Me(e),...n});return(0,K.decorateServiceException)(i,r)},Vq=async(e,t)=>{let r=e.body,n=Xce(r.Error,t),i=new fi.InvalidIdentityTokenException({$metadata:Me(e),...n});return(0,K.decorateServiceException)(i,r)},$m=async(e,t)=>{let r=e.body,n=Zce(r.Error,t),i=new fi.MalformedPolicyDocumentException({$metadata:Me(e),...n});return(0,K.decorateServiceException)(i,r)},Vm=async(e,t)=>{let r=e.body,n=ele(r.Error,t),i=new fi.PackedPolicyTooLargeException({$metadata:Me(e),...n});return(0,K.decorateServiceException)(i,r)},Dc=async(e,t)=>{let r=e.body,n=tle(r.Error,t),i=new fi.RegionDisabledException({$metadata:Me(e),...n});return(0,K.decorateServiceException)(i,r)},Ice=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(r.RoleSessionName=e.RoleSessionName),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=Hm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}if(e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let n=Hq(e.Tags,t);Object.entries(n).forEach(([i,s])=>{let o=`Tags.${i}`;r[o]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let n=zce(e.TransitiveTagKeys,t);Object.entries(n).forEach(([i,s])=>{let o=`TransitiveTagKeys.${i}`;r[o]=s})}return e.ExternalId!==void 0&&e.ExternalId!==null&&(r.ExternalId=e.ExternalId),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(r.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(r.TokenCode=e.TokenCode),e.SourceIdentity!==void 0&&e.SourceIdentity!==null&&(r.SourceIdentity=e.SourceIdentity),r},Rce=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.PrincipalArn!==void 0&&e.PrincipalArn!==null&&(r.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!==void 0&&e.SAMLAssertion!==null&&(r.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=Hm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}return e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),r},Pce=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(r.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!==void 0&&e.WebIdentityToken!==null&&(r.WebIdentityToken=e.WebIdentityToken),e.ProviderId!==void 0&&e.ProviderId!==null&&(r.ProviderId=e.ProviderId),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=Hm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}return e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),r},Oce=(e,t)=>{let r={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(r.EncodedMessage=e.EncodedMessage),r},Nce=(e,t)=>{let r={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(r.AccessKeyId=e.AccessKeyId),r},Dce=(e,t)=>({}),qce=(e,t)=>{let r={};if(e.Name!==void 0&&e.Name!==null&&(r.Name=e.Name),e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=Hm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let n=Hq(e.Tags,t);Object.entries(n).forEach(([i,s])=>{let o=`Tags.${i}`;r[o]=s})}return r},Lce=(e,t)=>{let r={};return e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(r.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(r.TokenCode=e.TokenCode),r},Hm=(e,t)=>{let r={},n=1;for(let i of e){if(i===null)continue;let s=Mce(i,t);Object.entries(s).forEach(([o,a])=>{r[`member.${n}.${o}`]=a}),n++}return r},Mce=(e,t)=>{let r={};return e.arn!==void 0&&e.arn!==null&&(r.arn=e.arn),r},jce=(e,t)=>{let r={};return e.Key!==void 0&&e.Key!==null&&(r.Key=e.Key),e.Value!==void 0&&e.Value!==null&&(r.Value=e.Value),r},zce=(e,t)=>{let r={},n=1;for(let i of e)i!==null&&(r[`member.${n}`]=i,n++);return r},Hq=(e,t)=>{let r={},n=1;for(let i of e){if(i===null)continue;let s=jce(i,t);Object.entries(s).forEach(([o,a])=>{r[`member.${n}.${o}`]=a}),n++}return r},xb=(e,t)=>{let r={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(r.AssumedRoleId=(0,K.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(r.Arn=(0,K.expectString)(e.Arn)),r},kce=(e,t)=>{let r={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(r.Credentials=qc(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=xb(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,K.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,K.expectString)(e.SourceIdentity)),r},Fce=(e,t)=>{let r={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,Subject:void 0,SubjectType:void 0,Issuer:void 0,Audience:void 0,NameQualifier:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(r.Credentials=qc(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=xb(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,K.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(r.Subject=(0,K.expectString)(e.Subject)),e.SubjectType!==void 0&&(r.SubjectType=(0,K.expectString)(e.SubjectType)),e.Issuer!==void 0&&(r.Issuer=(0,K.expectString)(e.Issuer)),e.Audience!==void 0&&(r.Audience=(0,K.expectString)(e.Audience)),e.NameQualifier!==void 0&&(r.NameQualifier=(0,K.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,K.expectString)(e.SourceIdentity)),r},Uce=(e,t)=>{let r={Credentials:void 0,SubjectFromWebIdentityToken:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,Provider:void 0,Audience:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(r.Credentials=qc(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(r.SubjectFromWebIdentityToken=(0,K.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=xb(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,K.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(r.Provider=(0,K.expectString)(e.Provider)),e.Audience!==void 0&&(r.Audience=(0,K.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,K.expectString)(e.SourceIdentity)),r},qc=(e,t)=>{let r={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(r.AccessKeyId=(0,K.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(r.SecretAccessKey=(0,K.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(r.SessionToken=(0,K.expectString)(e.SessionToken)),e.Expiration!==void 0&&(r.Expiration=(0,K.expectNonNull)((0,K.parseRfc3339DateTime)(e.Expiration))),r},Bce=(e,t)=>{let r={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(r.DecodedMessage=(0,K.expectString)(e.DecodedMessage)),r},Gce=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,K.expectString)(e.message)),r},$ce=(e,t)=>{let r={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(r.FederatedUserId=(0,K.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(r.Arn=(0,K.expectString)(e.Arn)),r},Vce=(e,t)=>{let r={Account:void 0};return e.Account!==void 0&&(r.Account=(0,K.expectString)(e.Account)),r},Hce=(e,t)=>{let r={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(r.UserId=(0,K.expectString)(e.UserId)),e.Account!==void 0&&(r.Account=(0,K.expectString)(e.Account)),e.Arn!==void 0&&(r.Arn=(0,K.expectString)(e.Arn)),r},Kce=(e,t)=>{let r={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(r.Credentials=qc(e.Credentials,t)),e.FederatedUser!==void 0&&(r.FederatedUser=$ce(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,K.strictParseInt32)(e.PackedPolicySize)),r},Wce=(e,t)=>{let r={Credentials:void 0};return e.Credentials!==void 0&&(r.Credentials=qc(e.Credentials,t)),r},Yce=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,K.expectString)(e.message)),r},Jce=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,K.expectString)(e.message)),r},Qce=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,K.expectString)(e.message)),r},Xce=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,K.expectString)(e.message)),r},Zce=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,K.expectString)(e.message)),r},ele=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,K.expectString)(e.message)),r},tle=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,K.expectString)(e.message)),r},Me=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},rle=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),nle=(e,t)=>rle(e,t).then(r=>t.utf8Encoder(r)),pi=async(e,t,r,n,i)=>{let{hostname:s,protocol:o="https",port:a,path:c}=await e.endpoint(),l={protocol:o,hostname:s,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+r:c+r,headers:t};return n!==void 0&&(l.hostname=n),i!==void 0&&(l.body=i),new Zae.HttpRequest(l)},gt=(e,t)=>nle(e,t).then(r=>{if(r.length){let n=(0,tce.parse)(r,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:a=>a.trim()===""&&a.includes(`
27
+ `)?"":(0,ece.decodeHTML)(a)}),i="#text",s=Object.keys(n)[0],o=n[s];return o[i]&&(o[s]=o[i],delete o[i]),(0,K.getValueFromTextNode)(o)}return{}}),_i=e=>Object.entries(e).map(([t,r])=>(0,K.extendedEncodeURIComponent)(t)+"="+(0,K.extendedEncodeURIComponent)(r)).join("&"),hi=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var Wm=d(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.AssumeRoleCommand=void 0;var ile=U(),sle=Nn(),ole=P(),Kq=vr(),Wq=Dn(),Ib=class extends ole.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ile.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,sle.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:Kq.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:Kq.AssumeRoleResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,Wq.serializeAws_queryAssumeRoleCommand)(t,r)}deserialize(t,r){return(0,Wq.deserializeAws_queryAssumeRoleCommand)(t,r)}};Km.AssumeRoleCommand=Ib});var Pb=d(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.AssumeRoleWithSAMLCommand=void 0;var ale=U(),cle=P(),Yq=vr(),Jq=Dn(),Rb=class extends cle.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ale.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:Yq.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:Yq.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,Jq.serializeAws_queryAssumeRoleWithSAMLCommand)(t,r)}deserialize(t,r){return(0,Jq.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,r)}};Ym.AssumeRoleWithSAMLCommand=Rb});var Qm=d(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.AssumeRoleWithWebIdentityCommand=void 0;var lle=U(),ule=P(),Qq=vr(),Xq=Dn(),Ob=class extends ule.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,lle.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:Qq.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:Qq.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,Xq.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,r)}deserialize(t,r){return(0,Xq.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,r)}};Jm.AssumeRoleWithWebIdentityCommand=Ob});var Db=d(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.DecodeAuthorizationMessageCommand=void 0;var dle=U(),fle=Nn(),mle=P(),Zq=vr(),eL=Dn(),Nb=class extends mle.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,dle.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,fle.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:Zq.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:Zq.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,eL.serializeAws_queryDecodeAuthorizationMessageCommand)(t,r)}deserialize(t,r){return(0,eL.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,r)}};Xm.DecodeAuthorizationMessageCommand=Nb});var Lb=d(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.GetAccessKeyInfoCommand=void 0;var ple=U(),_le=Nn(),hle=P(),tL=vr(),rL=Dn(),qb=class extends hle.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ple.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,_le.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:tL.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:tL.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,rL.serializeAws_queryGetAccessKeyInfoCommand)(t,r)}deserialize(t,r){return(0,rL.deserializeAws_queryGetAccessKeyInfoCommand)(t,r)}};Zm.GetAccessKeyInfoCommand=qb});var jb=d(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.GetCallerIdentityCommand=void 0;var yle=U(),gle=Nn(),vle=P(),nL=vr(),iL=Dn(),Mb=class extends vle.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,yle.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,gle.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:nL.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:nL.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,iL.serializeAws_queryGetCallerIdentityCommand)(t,r)}deserialize(t,r){return(0,iL.deserializeAws_queryGetCallerIdentityCommand)(t,r)}};ep.GetCallerIdentityCommand=Mb});var kb=d(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.GetFederationTokenCommand=void 0;var Sle=U(),wle=Nn(),Ele=P(),sL=vr(),oL=Dn(),zb=class extends Ele.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Sle.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,wle.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:sL.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:sL.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,oL.serializeAws_queryGetFederationTokenCommand)(t,r)}deserialize(t,r){return(0,oL.deserializeAws_queryGetFederationTokenCommand)(t,r)}};tp.GetFederationTokenCommand=zb});var Ub=d(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.GetSessionTokenCommand=void 0;var ble=U(),Ale=Nn(),Tle=P(),aL=vr(),cL=Dn(),Fb=class extends Tle.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ble.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ale.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:aL.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:aL.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,cL.serializeAws_queryGetSessionTokenCommand)(t,r)}deserialize(t,r){return(0,cL.deserializeAws_queryGetSessionTokenCommand)(t,r)}};rp.GetSessionTokenCommand=Fb});var lL=d(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.resolveStsAuthConfig=void 0;var Cle=Nn(),xle=(e,{stsClientCtor:t})=>(0,Cle.resolveAwsAuthConfig)({...e,stsClientCtor:t});np.resolveStsAuthConfig=xle});var uL=d((iMe,Ile)=>{Ile.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.78.0","@aws-sdk/credential-provider-node":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-sdk-sts":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var Bb=d(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.decorateDefaultCredentialProvider=Vr.getDefaultRoleAssumerWithWebIdentity=Vr.getDefaultRoleAssumer=void 0;var Rle=Wm(),Ple=Qm(),dL="us-east-1",fL=e=>typeof e!="function"?e===void 0?dL:e:async()=>{try{return await e()}catch{return dL}},Ole=(e,t)=>{let r,n;return async(i,s)=>{if(n=i,!r){let{logger:a,region:c,requestHandler:l}=e;r=new t({logger:a,credentialDefaultProvider:()=>async()=>n,region:fL(c||e.region),...l?{requestHandler:l}:{}})}let{Credentials:o}=await r.send(new Rle.AssumeRoleCommand(s));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};Vr.getDefaultRoleAssumer=Ole;var Nle=(e,t)=>{let r;return async n=>{if(!r){let{logger:s,region:o,requestHandler:a}=e;r=new t({logger:s,region:fL(o||e.region),...a?{requestHandler:a}:{}})}let{Credentials:i}=await r.send(new Ple.AssumeRoleWithWebIdentityCommand(n));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration}}};Vr.getDefaultRoleAssumerWithWebIdentity=Nle;var Dle=e=>t=>e({roleAssumer:(0,Vr.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,Vr.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor),...t});Vr.decorateDefaultCredentialProvider=Dle});var sp=d(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.ProviderError=void 0;var Lc=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,Lc.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};ip.ProviderError=Lc});var mL=d(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.CredentialsProviderError=void 0;var qle=sp(),Mc=class extends qle.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Mc.prototype)}};op.CredentialsProviderError=Mc});var pL=d(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.chain=void 0;var Lle=sp();function Mle(...e){return()=>{let t=Promise.reject(new Lle.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}ap.chain=Mle});var _L=d(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.fromStatic=void 0;var jle=e=>()=>Promise.resolve(e);cp.fromStatic=jle});var hL=d(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.memoize=void 0;var zle=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};lp.memoize=zle});var Yt=d(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});var jc=M();jc.__exportStar(mL(),es);jc.__exportStar(sp(),es);jc.__exportStar(pL(),es);jc.__exportStar(_L(),es);jc.__exportStar(hL(),es)});var yL=d(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.fromEnv=vt.ENV_EXPIRATION=vt.ENV_SESSION=vt.ENV_SECRET=vt.ENV_KEY=void 0;var kle=Yt();vt.ENV_KEY="AWS_ACCESS_KEY_ID";vt.ENV_SECRET="AWS_SECRET_ACCESS_KEY";vt.ENV_SESSION="AWS_SESSION_TOKEN";vt.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var Fle=()=>async()=>{let e=process.env[vt.ENV_KEY],t=process.env[vt.ENV_SECRET],r=process.env[vt.ENV_SESSION],n=process.env[vt.ENV_EXPIRATION];if(e&&t)return{accessKeyId:e,secretAccessKey:t,...r&&{sessionToken:r},...n&&{expiration:new Date(n)}};throw new kle.CredentialsProviderError("Unable to find environment variable credentials.")};vt.fromEnv=Fle});var gL=d(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0});var Ule=M();Ule.__exportStar(yL(),Gb)});var dp=d(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.getHomeDir=void 0;var Ble=require("os"),Gle=require("path"),$le=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${Gle.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,Ble.homedir)())};up.getHomeDir=$le});var vL=d(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.getProfileName=Hr.DEFAULT_PROFILE=Hr.ENV_PROFILE=void 0;Hr.ENV_PROFILE="AWS_PROFILE";Hr.DEFAULT_PROFILE="default";var Vle=e=>e.profile||process.env[Hr.ENV_PROFILE]||Hr.DEFAULT_PROFILE;Hr.getProfileName=Vle});var $b=d(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.getSSOTokenFilepath=void 0;var Hle=require("crypto"),Kle=require("path"),Wle=dp(),Yle=e=>{let r=(0,Hle.createHash)("sha1").update(e).digest("hex");return(0,Kle.join)((0,Wle.getHomeDir)(),".aws","sso","cache",`${r}.json`)};fp.getSSOTokenFilepath=Yle});var SL=d(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.getSSOTokenFromFile=void 0;var Jle=require("fs"),Qle=$b(),{readFile:Xle}=Jle.promises,Zle=async e=>{let t=(0,Qle.getSSOTokenFilepath)(e),r=await Xle(t,"utf8");return JSON.parse(r)};mp.getSSOTokenFromFile=Zle});var wL=d(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.normalizeConfigFile=void 0;var eue=/^profile\s(["'])?([^\1]+)\1$/,tue=e=>{let t={};for(let r of Object.keys(e)){let n;if(r==="default")t.default=e.default;else if(n=eue.exec(r)){let[i,s,o]=n;o&&(t[o]=e[r])}}return t};pp.normalizeConfigFile=tue});var EL=d(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.parseIni=void 0;var rue=["__proto__","profile __proto__"],nue=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],rue.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};_p.parseIni=nue});var bL=d(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.slurpFile=void 0;var iue=require("fs"),{readFile:sue}=iue.promises,Vb={},oue=e=>(Vb[e]||(Vb[e]=sue(e,"utf8")),Vb[e]);hp.slurpFile=oue});var Hb=d(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.loadSharedConfigFiles=Kr.ENV_CONFIG_PATH=Kr.ENV_CREDENTIALS_PATH=void 0;var AL=require("path"),TL=dp(),aue=wL(),CL=EL(),xL=bL();Kr.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";Kr.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var IL=()=>({}),cue=async(e={})=>{let{filepath:t=process.env[Kr.ENV_CREDENTIALS_PATH]||(0,AL.join)((0,TL.getHomeDir)(),".aws","credentials"),configFilepath:r=process.env[Kr.ENV_CONFIG_PATH]||(0,AL.join)((0,TL.getHomeDir)(),".aws","config")}=e,n=await Promise.all([(0,xL.slurpFile)(r).then(CL.parseIni).then(aue.normalizeConfigFile).catch(IL),(0,xL.slurpFile)(t).then(CL.parseIni).catch(IL)]);return{configFile:n[0],credentialsFile:n[1]}};Kr.loadSharedConfigFiles=cue});var RL=d(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.parseKnownFiles=void 0;var lue=Hb(),uue=async e=>{let t=await(0,lue.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};yp.parseKnownFiles=uue});var OL=d(PL=>{"use strict";Object.defineProperty(PL,"__esModule",{value:!0})});var zc=d(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});var ts=M();ts.__exportStar(dp(),qn);ts.__exportStar(vL(),qn);ts.__exportStar($b(),qn);ts.__exportStar(SL(),qn);ts.__exportStar(Hb(),qn);ts.__exportStar(RL(),qn);ts.__exportStar(OL(),qn)});var vp=d(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.ProviderError=void 0;var kc=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,kc.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};gp.ProviderError=kc});var NL=d(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.CredentialsProviderError=void 0;var due=vp(),Fc=class extends due.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Fc.prototype)}};Sp.CredentialsProviderError=Fc});var DL=d(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.chain=void 0;var fue=vp();function mue(...e){return()=>{let t=Promise.reject(new fue.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}wp.chain=mue});var qL=d(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.fromStatic=void 0;var pue=e=>()=>Promise.resolve(e);Ep.fromStatic=pue});var LL=d(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.memoize=void 0;var _ue=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};bp.memoize=_ue});var Jt=d(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});var Uc=M();Uc.__exportStar(NL(),rs);Uc.__exportStar(vp(),rs);Uc.__exportStar(DL(),rs);Uc.__exportStar(qL(),rs);Uc.__exportStar(LL(),rs)});var ML=d(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.fromEnv=St.ENV_EXPIRATION=St.ENV_SESSION=St.ENV_SECRET=St.ENV_KEY=void 0;var hue=Jt();St.ENV_KEY="AWS_ACCESS_KEY_ID";St.ENV_SECRET="AWS_SECRET_ACCESS_KEY";St.ENV_SESSION="AWS_SESSION_TOKEN";St.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var yue=()=>async()=>{let e=process.env[St.ENV_KEY],t=process.env[St.ENV_SECRET],r=process.env[St.ENV_SESSION],n=process.env[St.ENV_EXPIRATION];if(e&&t)return{accessKeyId:e,secretAccessKey:t,...r&&{sessionToken:r},...n&&{expiration:new Date(n)}};throw new hue.CredentialsProviderError("Unable to find environment variable credentials.")};St.fromEnv=yue});var jL=d(Kb=>{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});var gue=M();gue.__exportStar(ML(),Kb)});var Tp=d(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.httpRequest=void 0;var Wb=Jt(),vue=require("buffer"),Sue=require("http");function wue(e){return new Promise((t,r)=>{var n;let i=(0,Sue.request)({method:"GET",...e,hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")});i.on("error",s=>{r(Object.assign(new Wb.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new Wb.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new Wb.ProviderError("Error response received from instance metadata service"),{statusCode:o})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(vue.Buffer.concat(a)),i.destroy()})}),i.end()})}Ap.httpRequest=wue});var Yb=d(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.fromImdsCredentials=Xs.isImdsCredentials=void 0;var Eue=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Xs.isImdsCredentials=Eue;var bue=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Xs.fromImdsCredentials=bue});var Cp=d(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.providerConfigFromInit=Wr.DEFAULT_MAX_RETRIES=Wr.DEFAULT_TIMEOUT=void 0;Wr.DEFAULT_TIMEOUT=1e3;Wr.DEFAULT_MAX_RETRIES=0;var Aue=({maxRetries:e=Wr.DEFAULT_MAX_RETRIES,timeout:t=Wr.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Wr.providerConfigFromInit=Aue});var Jb=d(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.retry=void 0;var Tue=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};xp.retry=Tue});var kL=d(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.fromContainerMetadata=tt.ENV_CMDS_AUTH_TOKEN=tt.ENV_CMDS_RELATIVE_URI=tt.ENV_CMDS_FULL_URI=void 0;var Ip=Jt(),Cue=require("url"),xue=Tp(),zL=Yb(),Iue=Cp(),Rue=Jb();tt.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";tt.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";tt.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var Pue=(e={})=>{let{timeout:t,maxRetries:r}=(0,Iue.providerConfigFromInit)(e);return()=>(0,Rue.retry)(async()=>{let n=await Lue(),i=JSON.parse(await Oue(t,n));if(!(0,zL.isImdsCredentials)(i))throw new Ip.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,zL.fromImdsCredentials)(i)},r)};tt.fromContainerMetadata=Pue;var Oue=async(e,t)=>(process.env[tt.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[tt.ENV_CMDS_AUTH_TOKEN]}),(await(0,xue.httpRequest)({...t,timeout:e})).toString()),Nue="169.254.170.2",Due={localhost:!0,"127.0.0.1":!0},que={"http:":!0,"https:":!0},Lue=async()=>{if(process.env[tt.ENV_CMDS_RELATIVE_URI])return{hostname:Nue,path:process.env[tt.ENV_CMDS_RELATIVE_URI]};if(process.env[tt.ENV_CMDS_FULL_URI]){let e=(0,Cue.parse)(process.env[tt.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in Due))throw new Ip.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in que))throw new Ip.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Ip.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${tt.ENV_CMDS_RELATIVE_URI} or ${tt.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var Pp=d(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.ProviderError=void 0;var Bc=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,Bc.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};Rp.ProviderError=Bc});var FL=d(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.CredentialsProviderError=void 0;var Mue=Pp(),Gc=class extends Mue.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Gc.prototype)}};Op.CredentialsProviderError=Gc});var UL=d(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.chain=void 0;var jue=Pp();function zue(...e){return()=>{let t=Promise.reject(new jue.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}Np.chain=zue});var BL=d(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.fromStatic=void 0;var kue=e=>()=>Promise.resolve(e);Dp.fromStatic=kue});var GL=d(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.memoize=void 0;var Fue=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};qp.memoize=Fue});var Vc=d(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});var $c=M();$c.__exportStar(FL(),ns);$c.__exportStar(Pp(),ns);$c.__exportStar(UL(),ns);$c.__exportStar(BL(),ns);$c.__exportStar(GL(),ns)});var $L=d(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.fromEnv=void 0;var Uue=Vc(),Bue=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new Uue.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};Lp.fromEnv=Bue});var jp=d(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.getHomeDir=void 0;var Gue=require("os"),$ue=require("path"),Vue=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${$ue.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,Gue.homedir)())};Mp.getHomeDir=Vue});var VL=d(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.getProfileName=Yr.DEFAULT_PROFILE=Yr.ENV_PROFILE=void 0;Yr.ENV_PROFILE="AWS_PROFILE";Yr.DEFAULT_PROFILE="default";var Hue=e=>e.profile||process.env[Yr.ENV_PROFILE]||Yr.DEFAULT_PROFILE;Yr.getProfileName=Hue});var Qb=d(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.getSSOTokenFilepath=void 0;var Kue=require("crypto"),Wue=require("path"),Yue=jp(),Jue=e=>{let r=(0,Kue.createHash)("sha1").update(e).digest("hex");return(0,Wue.join)((0,Yue.getHomeDir)(),".aws","sso","cache",`${r}.json`)};zp.getSSOTokenFilepath=Jue});var HL=d(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.getSSOTokenFromFile=void 0;var Que=require("fs"),Xue=Qb(),{readFile:Zue}=Que.promises,ede=async e=>{let t=(0,Xue.getSSOTokenFilepath)(e),r=await Zue(t,"utf8");return JSON.parse(r)};kp.getSSOTokenFromFile=ede});var KL=d(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.normalizeConfigFile=void 0;var tde=/^profile\s(["'])?([^\1]+)\1$/,rde=e=>{let t={};for(let r of Object.keys(e)){let n;if(r==="default")t.default=e.default;else if(n=tde.exec(r)){let[i,s,o]=n;o&&(t[o]=e[r])}}return t};Fp.normalizeConfigFile=rde});var WL=d(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.parseIni=void 0;var nde=["__proto__","profile __proto__"],ide=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],nde.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};Up.parseIni=ide});var YL=d(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.slurpFile=void 0;var sde=require("fs"),{readFile:ode}=sde.promises,Xb={},ade=e=>(Xb[e]||(Xb[e]=ode(e,"utf8")),Xb[e]);Bp.slurpFile=ade});var Zb=d(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.loadSharedConfigFiles=Jr.ENV_CONFIG_PATH=Jr.ENV_CREDENTIALS_PATH=void 0;var JL=require("path"),QL=jp(),cde=KL(),XL=WL(),ZL=YL();Jr.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";Jr.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var eM=()=>({}),lde=async(e={})=>{let{filepath:t=process.env[Jr.ENV_CREDENTIALS_PATH]||(0,JL.join)((0,QL.getHomeDir)(),".aws","credentials"),configFilepath:r=process.env[Jr.ENV_CONFIG_PATH]||(0,JL.join)((0,QL.getHomeDir)(),".aws","config")}=e,n=await Promise.all([(0,ZL.slurpFile)(r).then(XL.parseIni).then(cde.normalizeConfigFile).catch(eM),(0,ZL.slurpFile)(t).then(XL.parseIni).catch(eM)]);return{configFile:n[0],credentialsFile:n[1]}};Jr.loadSharedConfigFiles=lde});var tM=d(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.parseKnownFiles=void 0;var ude=Zb(),dde=async e=>{let t=await(0,ude.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};Gp.parseKnownFiles=dde});var nM=d(rM=>{"use strict";Object.defineProperty(rM,"__esModule",{value:!0})});var iM=d(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});var is=M();is.__exportStar(jp(),Ln);is.__exportStar(VL(),Ln);is.__exportStar(Qb(),Ln);is.__exportStar(HL(),Ln);is.__exportStar(Zb(),Ln);is.__exportStar(tM(),Ln);is.__exportStar(nM(),Ln)});var oM=d($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.fromSharedConfigFiles=void 0;var fde=Vc(),sM=iM(),mde=(e,{preferredFile:t="config",...r}={})=>async()=>{let n=(0,sM.getProfileName)(r),{configFile:i,credentialsFile:s}=await(0,sM.loadSharedConfigFiles)(r),o=s[n]||{},a=i[n]||{},c=t==="config"?{...o,...a}:{...a,...o};try{let l=e(c);if(l===void 0)throw new Error;return l}catch(l){throw new fde.CredentialsProviderError(l.message||`Cannot load config for profile ${n} in SDK configuration files with getter: ${e}`)}};$p.fromSharedConfigFiles=mde});var aM=d(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.fromStatic=void 0;var pde=Vc(),_de=e=>typeof e=="function",hde=e=>_de(e)?async()=>await e():(0,pde.fromStatic)(e);Vp.fromStatic=hde});var lM=d(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.loadConfig=void 0;var cM=Vc(),yde=$L(),gde=oM(),vde=aM(),Sde=({environmentVariableSelector:e,configFileSelector:t,default:r},n={})=>(0,cM.memoize)((0,cM.chain)((0,yde.fromEnv)(e),(0,gde.fromSharedConfigFiles)(t,n),(0,vde.fromStatic)(r)));Hp.loadConfig=Sde});var Qr=d(eA=>{"use strict";Object.defineProperty(eA,"__esModule",{value:!0});var wde=M();wde.__exportStar(lM(),eA)});var uM=d(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.parseQueryString=void 0;function Ede(e){let t={};if(e=e.replace(/^\?/,""),e)for(let r of e.split("&")){let[n,i=null]=r.split("=");n=decodeURIComponent(n),i&&(i=decodeURIComponent(i)),n in t?Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i}return t}Kp.parseQueryString=Ede});var yi=d(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.parseUrl=void 0;var bde=uM(),Ade=e=>{let{hostname:t,pathname:r,port:n,protocol:i,search:s}=new URL(e),o;return s&&(o=(0,bde.parseQueryString)(s)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:o}};Wp.parseUrl=Ade});var dM=d(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.Endpoint=void 0;var Tde;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(Tde=Hc.Endpoint||(Hc.Endpoint={}))});var fM=d(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.ENDPOINT_CONFIG_OPTIONS=Xr.CONFIG_ENDPOINT_NAME=Xr.ENV_ENDPOINT_NAME=void 0;Xr.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Xr.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Xr.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Xr.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Xr.CONFIG_ENDPOINT_NAME],default:void 0}});var tA=d(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.EndpointMode=void 0;var Cde;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(Cde=Kc.EndpointMode||(Kc.EndpointMode={}))});var mM=d(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.ENDPOINT_MODE_CONFIG_OPTIONS=Zr.CONFIG_ENDPOINT_MODE_NAME=Zr.ENV_ENDPOINT_MODE_NAME=void 0;var xde=tA();Zr.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Zr.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Zr.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Zr.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Zr.CONFIG_ENDPOINT_MODE_NAME],default:xde.EndpointMode.IPv4}});var nA=d(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.getInstanceMetadataEndpoint=void 0;var _M=Qr(),Ide=yi(),pM=dM(),Rde=fM(),rA=tA(),Pde=mM(),Ode=async()=>(0,Ide.parseUrl)(await Nde()||await Dde());Yp.getInstanceMetadataEndpoint=Ode;var Nde=async()=>(0,_M.loadConfig)(Rde.ENDPOINT_CONFIG_OPTIONS)(),Dde=async()=>{let e=await(0,_M.loadConfig)(Pde.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case rA.EndpointMode.IPv4:return pM.Endpoint.IPv4;case rA.EndpointMode.IPv6:return pM.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(rA.EndpointMode)}`)}}});var hM=d(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.getExtendedInstanceMetadataCredentials=void 0;var qde=15*60,Lde=5*60,Mde="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",jde=(e,t)=>{var r;let n=qde+Math.floor(Math.random()*Lde),i=new Date(Date.now()+n*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+Mde);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:i}};Jp.getExtendedInstanceMetadataCredentials=jde});var gM=d(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.staticStabilityProvider=void 0;var yM=hM(),zde=(e,t={})=>{let r=(t==null?void 0:t.logger)||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,yM.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,yM.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};Qp.staticStabilityProvider=zde});var EM=d(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.fromInstanceMetadata=void 0;var kde=Jt(),iA=Tp(),vM=Yb(),Fde=Cp(),SM=Jb(),Ude=nA(),Bde=gM(),wM="/latest/meta-data/iam/security-credentials/",Gde="/latest/api/token",$de=(e={})=>(0,Bde.staticStabilityProvider)(Vde(e),{logger:e.logger});Xp.fromInstanceMetadata=$de;var Vde=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,Fde.providerConfigFromInit)(e),i=async(s,o)=>{let a=(await(0,SM.retry)(async()=>{let c;try{c=await Kde(o)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)).trim();return(0,SM.retry)(async()=>{let c;try{c=await Wde(a,o)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)};return async()=>{let s=await(0,Ude.getInstanceMetadataEndpoint)();if(t)return i(n,{...s,timeout:r});{let o;try{o=(await Hde({...s,timeout:r})).toString()}catch(a){if((a==null?void 0:a.statusCode)===400)throw Object.assign(a,{message:"EC2 Metadata token request returned error"});return(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode))&&(t=!0),i(n,{...s,timeout:r})}return i(n,{...s,headers:{"x-aws-ec2-metadata-token":o},timeout:r})}}},Hde=async e=>(0,iA.httpRequest)({...e,path:Gde,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Kde=async e=>(await(0,iA.httpRequest)({...e,path:wM})).toString(),Wde=async(e,t)=>{let r=JSON.parse((await(0,iA.httpRequest)({...t,path:wM+e})).toString());if(!(0,vM.isImdsCredentials)(r))throw new kde.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,vM.fromImdsCredentials)(r)}});var AM=d(bM=>{"use strict";Object.defineProperty(bM,"__esModule",{value:!0})});var TM=d(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.getInstanceMetadataEndpoint=en.httpRequest=void 0;var Zp=M();Zp.__exportStar(kL(),en);Zp.__exportStar(EM(),en);Zp.__exportStar(Cp(),en);Zp.__exportStar(AM(),en);var Yde=Tp();Object.defineProperty(en,"httpRequest",{enumerable:!0,get:function(){return Yde.httpRequest}});var Jde=nA();Object.defineProperty(en,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return Jde.getInstanceMetadataEndpoint}})});var xM=d(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0});e_.resolveCredentialSource=void 0;var Qde=jL(),CM=TM(),Xde=Jt(),Zde=(e,t)=>{let r={EcsContainer:CM.fromContainerMetadata,Ec2InstanceMetadata:CM.fromInstanceMetadata,Environment:Qde.fromEnv};if(e in r)return r[e]();throw new Xde.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};e_.resolveCredentialSource=Zde});var IM=d(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.resolveAssumeRoleCredentials=Zs.isAssumeRoleProfile=void 0;var sA=Jt(),efe=zc(),tfe=xM(),rfe=oA(),nfe=e=>Boolean(e)&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(ife(e)||sfe(e));Zs.isAssumeRoleProfile=nfe;var ife=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",sfe=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",ofe=async(e,t,r,n={})=>{let i=t[e];if(!r.roleAssumer)throw new sA.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=i;if(s&&s in n)throw new sA.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,efe.getProfileName)(r)}. Profiles visited: `+Object.keys(n).join(", "),!1);let o=s?(0,rfe.resolveProfileData)(s,t,r,{...n,[s]:!0}):(0,tfe.resolveCredentialSource)(i.credential_source,e)(),a={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id},{mfa_serial:c}=i;if(c){if(!r.mfaCodeProvider)throw new sA.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);a.SerialNumber=c,a.TokenCode=await r.mfaCodeProvider(c)}let l=await o;return r.roleAssumer(l,a)};Zs.resolveAssumeRoleCredentials=ofe});var aA=d(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.isSsoProfile=void 0;var afe=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");t_.isSsoProfile=afe});var n_=d(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0});r_.SSOServiceException=void 0;var cfe=P(),Wc=class extends cfe.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Wc.prototype)}};r_.SSOServiceException=Wc});var ss=d(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.LogoutRequest=ue.ListAccountsResponse=ue.ListAccountsRequest=ue.ListAccountRolesResponse=ue.RoleInfo=ue.ListAccountRolesRequest=ue.UnauthorizedException=ue.TooManyRequestsException=ue.ResourceNotFoundException=ue.InvalidRequestException=ue.GetRoleCredentialsResponse=ue.RoleCredentials=ue.GetRoleCredentialsRequest=ue.AccountInfo=void 0;var eo=P(),i_=n_(),lfe;(function(e){e.filterSensitiveLog=t=>({...t})})(lfe=ue.AccountInfo||(ue.AccountInfo={}));var ufe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:eo.SENSITIVE_STRING}})})(ufe=ue.GetRoleCredentialsRequest||(ue.GetRoleCredentialsRequest={}));var RM;(function(e){e.filterSensitiveLog=t=>({...t,...t.secretAccessKey&&{secretAccessKey:eo.SENSITIVE_STRING},...t.sessionToken&&{sessionToken:eo.SENSITIVE_STRING}})})(RM=ue.RoleCredentials||(ue.RoleCredentials={}));var dfe;(function(e){e.filterSensitiveLog=t=>({...t,...t.roleCredentials&&{roleCredentials:RM.filterSensitiveLog(t.roleCredentials)}})})(dfe=ue.GetRoleCredentialsResponse||(ue.GetRoleCredentialsResponse={}));var Yc=class extends i_.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Yc.prototype)}};ue.InvalidRequestException=Yc;var Jc=class extends i_.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Jc.prototype)}};ue.ResourceNotFoundException=Jc;var Qc=class extends i_.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Qc.prototype)}};ue.TooManyRequestsException=Qc;var Xc=class extends i_.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Xc.prototype)}};ue.UnauthorizedException=Xc;var ffe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:eo.SENSITIVE_STRING}})})(ffe=ue.ListAccountRolesRequest||(ue.ListAccountRolesRequest={}));var mfe;(function(e){e.filterSensitiveLog=t=>({...t})})(mfe=ue.RoleInfo||(ue.RoleInfo={}));var pfe;(function(e){e.filterSensitiveLog=t=>({...t})})(pfe=ue.ListAccountRolesResponse||(ue.ListAccountRolesResponse={}));var _fe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:eo.SENSITIVE_STRING}})})(_fe=ue.ListAccountsRequest||(ue.ListAccountsRequest={}));var hfe;(function(e){e.filterSensitiveLog=t=>({...t})})(hfe=ue.ListAccountsResponse||(ue.ListAccountsResponse={}));var yfe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:eo.SENSITIVE_STRING}})})(yfe=ue.LogoutRequest||(ue.LogoutRequest={}))});var Zc=d(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.deserializeAws_restJson1LogoutCommand=rt.deserializeAws_restJson1ListAccountsCommand=rt.deserializeAws_restJson1ListAccountRolesCommand=rt.deserializeAws_restJson1GetRoleCredentialsCommand=rt.serializeAws_restJson1LogoutCommand=rt.serializeAws_restJson1ListAccountsCommand=rt.serializeAws_restJson1ListAccountRolesCommand=rt.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var s_=Tt(),Ae=P(),o_=ss(),a_=n_(),gfe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...d_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,c={...e.roleName!==void 0&&{role_name:e.roleName},...e.accountId!==void 0&&{account_id:e.accountId}},l;return new s_.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:l})};rt.serializeAws_restJson1GetRoleCredentialsCommand=gfe;var vfe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...d_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,c={...e.nextToken!==void 0&&{next_token:e.nextToken},...e.maxResults!==void 0&&{max_result:e.maxResults.toString()},...e.accountId!==void 0&&{account_id:e.accountId}},l;return new s_.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:l})};rt.serializeAws_restJson1ListAccountRolesCommand=vfe;var Sfe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...d_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,c={...e.nextToken!==void 0&&{next_token:e.nextToken},...e.maxResults!==void 0&&{max_result:e.maxResults.toString()}},l;return new s_.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:l})};rt.serializeAws_restJson1ListAccountsCommand=Sfe;var wfe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...d_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,c;return new s_.HttpRequest({protocol:n,hostname:r,port:i,method:"POST",headers:o,path:a,body:c})};rt.serializeAws_restJson1LogoutCommand=wfe;var Efe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return bfe(e,t);let r={$metadata:dr(e),roleCredentials:void 0},n=(0,Ae.expectNonNull)((0,Ae.expectObject)(await os(e.body,t)),"body");return n.roleCredentials!==void 0&&n.roleCredentials!==null&&(r.roleCredentials=Nfe(n.roleCredentials,t)),Promise.resolve(r)};rt.deserializeAws_restJson1GetRoleCredentialsCommand=Efe;var bfe=async(e,t)=>{let r={...e,body:await os(e.body,t)},n,i="UnknownError";switch(i=f_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await c_(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await cA(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await l_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await u_(r,t);default:let s=r.body;throw n=new a_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:dr(e)}),(0,Ae.decorateServiceException)(n,s)}},Afe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tfe(e,t);let r={$metadata:dr(e),nextToken:void 0,roleList:void 0},n=(0,Ae.expectNonNull)((0,Ae.expectObject)(await os(e.body,t)),"body");return n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Ae.expectString)(n.nextToken)),n.roleList!==void 0&&n.roleList!==null&&(r.roleList=qfe(n.roleList,t)),Promise.resolve(r)};rt.deserializeAws_restJson1ListAccountRolesCommand=Afe;var Tfe=async(e,t)=>{let r={...e,body:await os(e.body,t)},n,i="UnknownError";switch(i=f_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await c_(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await cA(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await l_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await u_(r,t);default:let s=r.body;throw n=new a_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:dr(e)}),(0,Ae.decorateServiceException)(n,s)}},Cfe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return xfe(e,t);let r={$metadata:dr(e),accountList:void 0,nextToken:void 0},n=(0,Ae.expectNonNull)((0,Ae.expectObject)(await os(e.body,t)),"body");return n.accountList!==void 0&&n.accountList!==null&&(r.accountList=Ofe(n.accountList,t)),n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Ae.expectString)(n.nextToken)),Promise.resolve(r)};rt.deserializeAws_restJson1ListAccountsCommand=Cfe;var xfe=async(e,t)=>{let r={...e,body:await os(e.body,t)},n,i="UnknownError";switch(i=f_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await c_(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await cA(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await l_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await u_(r,t);default:let s=r.body;throw n=new a_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:dr(e)}),(0,Ae.decorateServiceException)(n,s)}},Ife=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Rfe(e,t);let r={$metadata:dr(e)};return await PM(e.body,t),Promise.resolve(r)};rt.deserializeAws_restJson1LogoutCommand=Ife;var Rfe=async(e,t)=>{let r={...e,body:await os(e.body,t)},n,i="UnknownError";switch(i=f_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await c_(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await l_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await u_(r,t);default:let s=r.body;throw n=new a_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:dr(e)}),(0,Ae.decorateServiceException)(n,s)}},c_=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ae.expectString)(n.message));let i=new o_.InvalidRequestException({$metadata:dr(e),...r});return(0,Ae.decorateServiceException)(i,e.body)},cA=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ae.expectString)(n.message));let i=new o_.ResourceNotFoundException({$metadata:dr(e),...r});return(0,Ae.decorateServiceException)(i,e.body)},l_=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ae.expectString)(n.message));let i=new o_.TooManyRequestsException({$metadata:dr(e),...r});return(0,Ae.decorateServiceException)(i,e.body)},u_=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ae.expectString)(n.message));let i=new o_.UnauthorizedException({$metadata:dr(e),...r});return(0,Ae.decorateServiceException)(i,e.body)},Pfe=(e,t)=>({accountId:(0,Ae.expectString)(e.accountId),accountName:(0,Ae.expectString)(e.accountName),emailAddress:(0,Ae.expectString)(e.emailAddress)}),Ofe=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Pfe(n,t)),Nfe=(e,t)=>({accessKeyId:(0,Ae.expectString)(e.accessKeyId),expiration:(0,Ae.expectLong)(e.expiration),secretAccessKey:(0,Ae.expectString)(e.secretAccessKey),sessionToken:(0,Ae.expectString)(e.sessionToken)}),Dfe=(e,t)=>({accountId:(0,Ae.expectString)(e.accountId),roleName:(0,Ae.expectString)(e.roleName)}),qfe=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Dfe(n,t)),dr=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},PM=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Lfe=(e,t)=>PM(e,t).then(r=>t.utf8Encoder(r)),d_=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),os=(e,t)=>Lfe(e,t).then(r=>r.length?JSON.parse(r):{}),f_=(e,t)=>{let r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var uA=d(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.GetRoleCredentialsCommand=void 0;var Mfe=U(),jfe=P(),OM=ss(),NM=Zc(),lA=class extends jfe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Mfe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:OM.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:OM.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,NM.serializeAws_restJson1GetRoleCredentialsCommand)(t,r)}deserialize(t,r){return(0,NM.deserializeAws_restJson1GetRoleCredentialsCommand)(t,r)}};m_.GetRoleCredentialsCommand=lA});var __=d(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.ListAccountRolesCommand=void 0;var zfe=U(),kfe=P(),DM=ss(),qM=Zc(),dA=class extends kfe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,zfe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:DM.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:DM.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,qM.serializeAws_restJson1ListAccountRolesCommand)(t,r)}deserialize(t,r){return(0,qM.deserializeAws_restJson1ListAccountRolesCommand)(t,r)}};p_.ListAccountRolesCommand=dA});var y_=d(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.ListAccountsCommand=void 0;var Ffe=U(),Ufe=P(),LM=ss(),MM=Zc(),fA=class extends Ufe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Ffe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:LM.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:LM.ListAccountsResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,MM.serializeAws_restJson1ListAccountsCommand)(t,r)}deserialize(t,r){return(0,MM.deserializeAws_restJson1ListAccountsCommand)(t,r)}};h_.ListAccountsCommand=fA});var pA=d(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.LogoutCommand=void 0;var Bfe=U(),Gfe=P(),$fe=ss(),jM=Zc(),mA=class extends Gfe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Bfe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:$fe.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,jM.serializeAws_restJson1LogoutCommand)(t,r)}deserialize(t,r){return(0,jM.deserializeAws_restJson1LogoutCommand)(t,r)}};g_.LogoutCommand=mA});var zM=d((Ije,Vfe)=>{Vfe.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var kM=d(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.isArrayBuffer=void 0;var Hfe=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";v_.isArrayBuffer=Hfe});var FM=d(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.fromString=to.fromArrayBuffer=void 0;var Kfe=kM(),_A=require("buffer"),Wfe=(e,t=0,r=e.byteLength-t)=>{if(!(0,Kfe.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return _A.Buffer.from(e,t,r)};to.fromArrayBuffer=Wfe;var Yfe=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?_A.Buffer.from(e,t):_A.Buffer.from(e)};to.fromString=Yfe});var el=d(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.Hash=void 0;var hA=FM(),Jfe=require("buffer"),UM=require("crypto"),yA=class{constructor(t,r){this.hash=r?(0,UM.createHmac)(t,BM(r)):(0,UM.createHash)(t)}update(t,r){this.hash.update(BM(t,r))}digest(){return Promise.resolve(this.hash.digest())}};S_.Hash=yA;function BM(e,t){return Jfe.Buffer.isBuffer(e)?e:typeof e=="string"?(0,hA.fromString)(e,t):ArrayBuffer.isView(e)?(0,hA.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,hA.fromArrayBuffer)(e)}});var gA=d(w_=>{"use strict";Object.defineProperty(w_,"__esModule",{value:!0});w_.escapeUri=void 0;var Qfe=e=>encodeURIComponent(e).replace(/[!'()*]/g,Xfe);w_.escapeUri=Qfe;var Xfe=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var GM=d(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0});E_.escapeUriPath=void 0;var Zfe=gA(),eme=e=>e.split("/").map(Zfe.escapeUri).join("/");E_.escapeUriPath=eme});var VM=d(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0});var $M=M();$M.__exportStar(gA(),b_);$M.__exportStar(GM(),b_)});var SA=d(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0});A_.buildQueryString=void 0;var vA=VM();function tme(e){let t=[];for(let r of Object.keys(e).sort()){let n=e[r];if(r=(0,vA.escapeUri)(r),Array.isArray(n))for(let i=0,s=n.length;i<s;i++)t.push(`${r}=${(0,vA.escapeUri)(n[i])}`);else{let i=r;(n||typeof n=="string")&&(i+=`=${(0,vA.escapeUri)(n)}`),t.push(i)}}return t.join("&")}A_.buildQueryString=tme});var HM=d(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0});T_.NODEJS_TIMEOUT_ERROR_CODES=void 0;T_.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var wA=d(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.getTransformedHeaders=void 0;var rme=e=>{let t={};for(let r of Object.keys(e)){let n=e[r];t[r]=Array.isArray(n)?n.join(","):n}return t};C_.getTransformedHeaders=rme});var KM=d(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0});x_.setConnectionTimeout=void 0;var nme=(e,t,r=0)=>{!r||e.on("socket",n=>{if(n.connecting){let i=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r);n.on("connect",()=>{clearTimeout(i)})}})};x_.setConnectionTimeout=nme});var WM=d(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.setSocketTimeout=void 0;var ime=(e,t,r=0)=>{e.setTimeout(r,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))})};I_.setSocketTimeout=ime});var EA=d(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0});R_.writeRequestBody=void 0;var sme=require("stream");function ome(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{YM(e,t.body)}):YM(e,t.body)}R_.writeRequestBody=ome;function YM(e,t){t instanceof sme.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var XM=d(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.NodeHttpHandler=void 0;var ame=Tt(),cme=SA(),JM=require("http"),QM=require("https"),lme=HM(),ume=wA(),dme=KM(),fme=WM(),mme=EA(),bA=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((r,n)=>{typeof t=="function"?t().then(i=>{r(this.resolveDefaultConfig(i))}).catch(n):r(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){let{connectionTimeout:r,socketTimeout:n,httpAgent:i,httpsAgent:s}=t||{},o=!0,a=50;return{connectionTimeout:r,socketTimeout:n,httpAgent:i||new JM.Agent({keepAlive:o,maxSockets:a}),httpsAgent:s||new QM.Agent({keepAlive:o,maxSockets:a})}}destroy(){var t,r,n,i;(r=(t=this.config)===null||t===void 0?void 0:t.httpAgent)===null||r===void 0||r.destroy(),(i=(n=this.config)===null||n===void 0?void 0:n.httpsAgent)===null||i===void 0||i.destroy()}async handle(t,{abortSignal:r}={}){return this.config||(this.config=await this.configProvider),new Promise((n,i)=>{if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(r!=null&&r.aborted){let u=new Error("Request aborted");u.name="AbortError",i(u);return}let s=t.protocol==="https:",o=(0,cme.buildQueryString)(t.query||{}),a={headers:t.headers,host:t.hostname,method:t.method,path:o?`${t.path}?${o}`:t.path,port:t.port,agent:s?this.config.httpsAgent:this.config.httpAgent},l=(s?QM.request:JM.request)(a,u=>{let p=new ame.HttpResponse({statusCode:u.statusCode||-1,headers:(0,ume.getTransformedHeaders)(u.headers),body:u});n({response:p})});l.on("error",u=>{lme.NODEJS_TIMEOUT_ERROR_CODES.includes(u.code)?i(Object.assign(u,{name:"TimeoutError"})):i(u)}),(0,dme.setConnectionTimeout)(l,i,this.config.connectionTimeout),(0,fme.setSocketTimeout)(l,i,this.config.socketTimeout),r&&(r.onabort=()=>{l.abort();let u=new Error("Request aborted");u.name="AbortError",i(u)}),(0,mme.writeRequestBody)(l,t)})}};P_.NodeHttpHandler=bA});var ZM=d(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.NodeHttp2Handler=void 0;var pme=Tt(),_me=SA(),AA=require("http2"),hme=wA(),yme=EA(),TA=class{constructor({requestTimeout:t,sessionTimeout:r,disableConcurrentStreams:n}={}){this.metadata={handlerProtocol:"h2"},this.requestTimeout=t,this.sessionTimeout=r,this.disableConcurrentStreams=n,this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(r=>this.destroySession(r));this.sessionCache.clear()}handle(t,{abortSignal:r}={}){return new Promise((n,i)=>{let s=!1;if(r!=null&&r.aborted){s=!0;let T=new Error("Request aborted");T.name="AbortError",i(T);return}let{hostname:o,method:a,port:c,protocol:l,path:u,query:p}=t,m=`${l}//${o}${c?`:${c}`:""}`,h=this.getSession(m,this.disableConcurrentStreams||!1),g=T=>{this.disableConcurrentStreams&&this.destroySession(h),s=!0,i(T)},y=(0,_me.buildQueryString)(p||{}),w=h.request({...t.headers,[AA.constants.HTTP2_HEADER_PATH]:y?`${u}?${y}`:u,[AA.constants.HTTP2_HEADER_METHOD]:a});h.ref(),w.on("response",T=>{let B=new pme.HttpResponse({statusCode:T[":status"]||-1,headers:(0,hme.getTransformedHeaders)(T),body:w});s=!0,n({response:B}),this.disableConcurrentStreams&&(h.close(),this.deleteSessionFromCache(m,h))});let C=this.requestTimeout;C&&w.setTimeout(C,()=>{w.close();let T=new Error(`Stream timed out because of no activity for ${C} ms`);T.name="TimeoutError",g(T)}),r&&(r.onabort=()=>{w.close();let T=new Error("Request aborted");T.name="AbortError",g(T)}),w.on("frameError",(T,B,_e)=>{g(new Error(`Frame type id ${T} in stream id ${_e} has failed with code ${B}.`))}),w.on("error",g),w.on("aborted",()=>{g(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${w.rstCode}.`))}),w.on("close",()=>{h.unref(),this.disableConcurrentStreams&&h.destroy(),s||g(new Error("Unexpected error: http2 request did not get a response"))}),(0,yme.writeRequestBody)(w,t)})}getSession(t,r){let n=this.sessionCache,i=n.get(t)||[];if(i.length>0&&!r)return i[0];let s=(0,AA.connect)(t);s.unref();let o=()=>{this.destroySession(s),this.deleteSessionFromCache(t,s)};s.on("goaway",o),s.on("error",o),s.on("frameError",o);let a=this.sessionTimeout;return a&&s.setTimeout(a,o),i.push(s),n.set(t,i),s}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,r){let n=this.sessionCache.get(t)||[];!n.includes(r)||this.sessionCache.set(t,n.filter(i=>i!==r))}};O_.NodeHttp2Handler=TA});var ej=d(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.Collector=void 0;var gme=require("stream"),CA=class extends gme.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,r,n){this.bufferedBytes.push(t),n()}};N_.Collector=CA});var tj=d(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});D_.streamCollector=void 0;var vme=ej(),Sme=e=>new Promise((t,r)=>{let n=new vme.Collector;e.pipe(n),e.on("error",i=>{n.end(),r(i)}),n.on("error",r),n.on("finish",function(){let i=new Uint8Array(Buffer.concat(this.bufferedBytes));t(i)})});D_.streamCollector=Sme});var rl=d(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var xA=M();xA.__exportStar(XM(),tl);xA.__exportStar(ZM(),tl);xA.__exportStar(tj(),tl)});var rj=d(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});q_.isArrayBuffer=void 0;var wme=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";q_.isArrayBuffer=wme});var nj=d(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.fromString=ro.fromArrayBuffer=void 0;var Eme=rj(),IA=require("buffer"),bme=(e,t=0,r=e.byteLength-t)=>{if(!(0,Eme.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return IA.Buffer.from(e,t,r)};ro.fromArrayBuffer=bme;var Ame=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?IA.Buffer.from(e,t):IA.Buffer.from(e)};ro.fromString=Ame});var nl=d(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.toBase64=no.fromBase64=void 0;var ij=nj(),Tme=/^[A-Za-z0-9+/]*={0,2}$/;function Cme(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Tme.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,ij.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}no.fromBase64=Cme;function xme(e){return(0,ij.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")}no.toBase64=xme});var oj=d(L_=>{"use strict";Object.defineProperty(L_,"__esModule",{value:!0});L_.calculateBodyLength=void 0;var sj=require("fs"),Ime=e=>{if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,sj.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,sj.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};L_.calculateBodyLength=Ime});var il=d(RA=>{"use strict";Object.defineProperty(RA,"__esModule",{value:!0});var Rme=M();Rme.__exportStar(oj(),RA)});var aj=d((M_,PA)=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0});M_.isCrtAvailable=void 0;var Pme=()=>{try{return typeof require=="function"&&typeof PA<"u"&&PA.require&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};M_.isCrtAvailable=Pme});var sl=d(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.defaultUserAgent=tn.UA_APP_ID_INI_NAME=tn.UA_APP_ID_ENV_NAME=void 0;var Ome=Qr(),cj=require("os"),OA=require("process"),Nme=aj();tn.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";tn.UA_APP_ID_INI_NAME="sdk-ua-app-id";var Dme=({serviceId:e,clientVersion:t})=>{let r=[["aws-sdk-js",t],[`os/${(0,cj.platform)()}`,(0,cj.release)()],["lang/js"],["md/nodejs",`${OA.versions.node}`]],n=(0,Nme.isCrtAvailable)();n&&r.push(n),e&&r.push([`api/${e}`,t]),OA.env.AWS_EXECUTION_ENV&&r.push([`exec-env/${OA.env.AWS_EXECUTION_ENV}`]);let i=(0,Ome.loadConfig)({environmentVariableSelector:o=>o[tn.UA_APP_ID_ENV_NAME],configFileSelector:o=>o[tn.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let o=await i;s=o?[...r,[`app/${o}`]]:[...r]}return s}};tn.defaultUserAgent=Dme});var lj=d(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});j_.isArrayBuffer=void 0;var qme=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";j_.isArrayBuffer=qme});var uj=d(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.fromString=io.fromArrayBuffer=void 0;var Lme=lj(),NA=require("buffer"),Mme=(e,t=0,r=e.byteLength-t)=>{if(!(0,Lme.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return NA.Buffer.from(e,t,r)};io.fromArrayBuffer=Mme;var jme=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?NA.Buffer.from(e,t):NA.Buffer.from(e)};io.fromString=jme});var ol=d(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.toUtf8=so.fromUtf8=void 0;var dj=uj(),zme=e=>{let t=(0,dj.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};so.fromUtf8=zme;var kme=e=>(0,dj.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");so.toUtf8=kme});var fj=d(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.defaultRegionInfoProvider=void 0;var Fme=Ot(),Ume={"ap-northeast-1":{variants:[{hostname:"portal.sso.ap-northeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-1"},"ap-northeast-2":{variants:[{hostname:"portal.sso.ap-northeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-2"},"ap-south-1":{variants:[{hostname:"portal.sso.ap-south-1.amazonaws.com",tags:[]}],signingRegion:"ap-south-1"},"ap-southeast-1":{variants:[{hostname:"portal.sso.ap-southeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-1"},"ap-southeast-2":{variants:[{hostname:"portal.sso.ap-southeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-2"},"ca-central-1":{variants:[{hostname:"portal.sso.ca-central-1.amazonaws.com",tags:[]}],signingRegion:"ca-central-1"},"eu-central-1":{variants:[{hostname:"portal.sso.eu-central-1.amazonaws.com",tags:[]}],signingRegion:"eu-central-1"},"eu-north-1":{variants:[{hostname:"portal.sso.eu-north-1.amazonaws.com",tags:[]}],signingRegion:"eu-north-1"},"eu-west-1":{variants:[{hostname:"portal.sso.eu-west-1.amazonaws.com",tags:[]}],signingRegion:"eu-west-1"},"eu-west-2":{variants:[{hostname:"portal.sso.eu-west-2.amazonaws.com",tags:[]}],signingRegion:"eu-west-2"},"eu-west-3":{variants:[{hostname:"portal.sso.eu-west-3.amazonaws.com",tags:[]}],signingRegion:"eu-west-3"},"sa-east-1":{variants:[{hostname:"portal.sso.sa-east-1.amazonaws.com",tags:[]}],signingRegion:"sa-east-1"},"us-east-1":{variants:[{hostname:"portal.sso.us-east-1.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-2":{variants:[{hostname:"portal.sso.us-east-2.amazonaws.com",tags:[]}],signingRegion:"us-east-2"},"us-gov-east-1":{variants:[{hostname:"portal.sso.us-gov-east-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-east-1"},"us-gov-west-1":{variants:[{hostname:"portal.sso.us-gov-west-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-west-1"},"us-west-2":{variants:[{hostname:"portal.sso.us-west-2.amazonaws.com",tags:[]}],signingRegion:"us-west-2"}},Bme={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com.cn",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.c2s.ic.gov",tags:[]},{hostname:"portal.sso-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.sc2s.sgov.gov",tags:[]},{hostname:"portal.sso-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]}},Gme=async(e,t)=>(0,Fme.getRegionInfo)(e,{...t,signingService:"awsssoportal",regionHash:Ume,partitionHash:Bme});z_.defaultRegionInfoProvider=Gme});var mj=d(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_.getRuntimeConfig=void 0;var $me=yi(),Vme=fj(),Hme=e=>{var t,r,n,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:Vme.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"SSO",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:$me.parseUrl}};k_.getRuntimeConfig=Hme});var U_=d(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.ProviderError=void 0;var al=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,al.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};F_.ProviderError=al});var pj=d(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0});B_.CredentialsProviderError=void 0;var Kme=U_(),cl=class extends Kme.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,cl.prototype)}};B_.CredentialsProviderError=cl});var _j=d(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0});G_.chain=void 0;var Wme=U_();function Yme(...e){return()=>{let t=Promise.reject(new Wme.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}G_.chain=Yme});var hj=d($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0});$_.fromStatic=void 0;var Jme=e=>()=>Promise.resolve(e);$_.fromStatic=Jme});var yj=d(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0});V_.memoize=void 0;var Qme=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};V_.memoize=Qme});var ul=d(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});var ll=M();ll.__exportStar(pj(),as);ll.__exportStar(U_(),as);ll.__exportStar(_j(),as);ll.__exportStar(hj(),as);ll.__exportStar(yj(),as)});var K_=d(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.httpRequest=void 0;var DA=ul(),Xme=require("buffer"),Zme=require("http");function epe(e){return new Promise((t,r)=>{var n;let i=(0,Zme.request)({method:"GET",...e,hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")});i.on("error",s=>{r(Object.assign(new DA.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new DA.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new DA.ProviderError("Error response received from instance metadata service"),{statusCode:o})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(Xme.Buffer.concat(a)),i.destroy()})}),i.end()})}H_.httpRequest=epe});var qA=d(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.fromImdsCredentials=oo.isImdsCredentials=void 0;var tpe=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";oo.isImdsCredentials=tpe;var rpe=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});oo.fromImdsCredentials=rpe});var W_=d(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.providerConfigFromInit=rn.DEFAULT_MAX_RETRIES=rn.DEFAULT_TIMEOUT=void 0;rn.DEFAULT_TIMEOUT=1e3;rn.DEFAULT_MAX_RETRIES=0;var npe=({maxRetries:e=rn.DEFAULT_MAX_RETRIES,timeout:t=rn.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});rn.providerConfigFromInit=npe});var LA=d(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.retry=void 0;var ipe=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};Y_.retry=ipe});var vj=d(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.fromContainerMetadata=nt.ENV_CMDS_AUTH_TOKEN=nt.ENV_CMDS_RELATIVE_URI=nt.ENV_CMDS_FULL_URI=void 0;var J_=ul(),spe=require("url"),ope=K_(),gj=qA(),ape=W_(),cpe=LA();nt.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";nt.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";nt.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var lpe=(e={})=>{let{timeout:t,maxRetries:r}=(0,ape.providerConfigFromInit)(e);return()=>(0,cpe.retry)(async()=>{let n=await ppe(),i=JSON.parse(await upe(t,n));if(!(0,gj.isImdsCredentials)(i))throw new J_.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,gj.fromImdsCredentials)(i)},r)};nt.fromContainerMetadata=lpe;var upe=async(e,t)=>(process.env[nt.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[nt.ENV_CMDS_AUTH_TOKEN]}),(await(0,ope.httpRequest)({...t,timeout:e})).toString()),dpe="169.254.170.2",fpe={localhost:!0,"127.0.0.1":!0},mpe={"http:":!0,"https:":!0},ppe=async()=>{if(process.env[nt.ENV_CMDS_RELATIVE_URI])return{hostname:dpe,path:process.env[nt.ENV_CMDS_RELATIVE_URI]};if(process.env[nt.ENV_CMDS_FULL_URI]){let e=(0,spe.parse)(process.env[nt.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in fpe))throw new J_.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in mpe))throw new J_.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new J_.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${nt.ENV_CMDS_RELATIVE_URI} or ${nt.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var Sj=d(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.Endpoint=void 0;var _pe;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(_pe=dl.Endpoint||(dl.Endpoint={}))});var wj=d(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.ENDPOINT_CONFIG_OPTIONS=nn.CONFIG_ENDPOINT_NAME=nn.ENV_ENDPOINT_NAME=void 0;nn.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";nn.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";nn.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[nn.ENV_ENDPOINT_NAME],configFileSelector:e=>e[nn.CONFIG_ENDPOINT_NAME],default:void 0}});var MA=d(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.EndpointMode=void 0;var hpe;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(hpe=fl.EndpointMode||(fl.EndpointMode={}))});var Ej=d(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.ENDPOINT_MODE_CONFIG_OPTIONS=sn.CONFIG_ENDPOINT_MODE_NAME=sn.ENV_ENDPOINT_MODE_NAME=void 0;var ype=MA();sn.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";sn.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";sn.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[sn.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[sn.CONFIG_ENDPOINT_MODE_NAME],default:ype.EndpointMode.IPv4}});var zA=d(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});Q_.getInstanceMetadataEndpoint=void 0;var Aj=Qr(),gpe=yi(),bj=Sj(),vpe=wj(),jA=MA(),Spe=Ej(),wpe=async()=>(0,gpe.parseUrl)(await Epe()||await bpe());Q_.getInstanceMetadataEndpoint=wpe;var Epe=async()=>(0,Aj.loadConfig)(vpe.ENDPOINT_CONFIG_OPTIONS)(),bpe=async()=>{let e=await(0,Aj.loadConfig)(Spe.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case jA.EndpointMode.IPv4:return bj.Endpoint.IPv4;case jA.EndpointMode.IPv6:return bj.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(jA.EndpointMode)}`)}}});var Tj=d(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.getExtendedInstanceMetadataCredentials=void 0;var Ape=15*60,Tpe=5*60,Cpe="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",xpe=(e,t)=>{var r;let n=Ape+Math.floor(Math.random()*Tpe),i=new Date(Date.now()+n*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+Cpe);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:i}};X_.getExtendedInstanceMetadataCredentials=xpe});var xj=d(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.staticStabilityProvider=void 0;var Cj=Tj(),Ipe=(e,t={})=>{let r=(t==null?void 0:t.logger)||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,Cj.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,Cj.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};Z_.staticStabilityProvider=Ipe});var Oj=d(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.fromInstanceMetadata=void 0;var Rpe=ul(),kA=K_(),Ij=qA(),Ppe=W_(),Rj=LA(),Ope=zA(),Npe=xj(),Pj="/latest/meta-data/iam/security-credentials/",Dpe="/latest/api/token",qpe=(e={})=>(0,Npe.staticStabilityProvider)(Lpe(e),{logger:e.logger});eh.fromInstanceMetadata=qpe;var Lpe=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,Ppe.providerConfigFromInit)(e),i=async(s,o)=>{let a=(await(0,Rj.retry)(async()=>{let c;try{c=await jpe(o)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)).trim();return(0,Rj.retry)(async()=>{let c;try{c=await zpe(a,o)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)};return async()=>{let s=await(0,Ope.getInstanceMetadataEndpoint)();if(t)return i(n,{...s,timeout:r});{let o;try{o=(await Mpe({...s,timeout:r})).toString()}catch(a){if((a==null?void 0:a.statusCode)===400)throw Object.assign(a,{message:"EC2 Metadata token request returned error"});return(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode))&&(t=!0),i(n,{...s,timeout:r})}return i(n,{...s,headers:{"x-aws-ec2-metadata-token":o},timeout:r})}}},Mpe=async e=>(0,kA.httpRequest)({...e,path:Dpe,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),jpe=async e=>(await(0,kA.httpRequest)({...e,path:Pj})).toString(),zpe=async(e,t)=>{let r=JSON.parse((await(0,kA.httpRequest)({...t,path:Pj+e})).toString());if(!(0,Ij.isImdsCredentials)(r))throw new Rpe.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,Ij.fromImdsCredentials)(r)}});var Dj=d(Nj=>{"use strict";Object.defineProperty(Nj,"__esModule",{value:!0})});var qj=d(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.getInstanceMetadataEndpoint=on.httpRequest=void 0;var th=M();th.__exportStar(vj(),on);th.__exportStar(Oj(),on);th.__exportStar(W_(),on);th.__exportStar(Dj(),on);var kpe=K_();Object.defineProperty(on,"httpRequest",{enumerable:!0,get:function(){return kpe.httpRequest}});var Fpe=zA();Object.defineProperty(on,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return Fpe.getInstanceMetadataEndpoint}})});var Lj=d(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.IMDS_REGION_PATH=qt.DEFAULTS_MODE_OPTIONS=qt.ENV_IMDS_DISABLED=qt.AWS_DEFAULT_REGION_ENV=qt.AWS_REGION_ENV=qt.AWS_EXECUTION_ENV=void 0;qt.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";qt.AWS_REGION_ENV="AWS_REGION";qt.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";qt.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";qt.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];qt.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var Mj=d(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var Upe="AWS_DEFAULTS_MODE",Bpe="defaults_mode";rh.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Upe],configFileSelector:e=>e[Bpe],default:"legacy"}});var kj=d(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.resolveDefaultsModeConfig=void 0;var Gpe=Ot(),jj=qj(),zj=Qr(),$pe=ul(),gi=Lj(),Vpe=Mj(),Hpe=({region:e=(0,zj.loadConfig)(Gpe.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,zj.loadConfig)(Vpe.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,$pe.memoize)(async()=>{let r=typeof t=="function"?await t():t;switch(r==null?void 0:r.toLowerCase()){case"auto":return Kpe(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r==null?void 0:r.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${gi.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${r}`)}});nh.resolveDefaultsModeConfig=Hpe;var Kpe=async e=>{if(e){let t=typeof e=="function"?await e():e,r=await Wpe();return r?t===r?"in-region":"cross-region":"standard"}return"standard"},Wpe=async()=>{var e;if(process.env[gi.AWS_EXECUTION_ENV]&&(process.env[gi.AWS_REGION_ENV]||process.env[gi.AWS_DEFAULT_REGION_ENV]))return(e=process.env[gi.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[gi.AWS_DEFAULT_REGION_ENV];if(!process.env[gi.ENV_IMDS_DISABLED])try{let t=await(0,jj.getInstanceMetadataEndpoint)();return(await(0,jj.httpRequest)({...t,path:gi.IMDS_REGION_PATH})).toString()}catch{}}});var ml=d(FA=>{"use strict";Object.defineProperty(FA,"__esModule",{value:!0});var Ype=M();Ype.__exportStar(kj(),FA)});var Gj=d(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.getRuntimeConfig=void 0;var Jpe=M(),Qpe=Jpe.__importDefault(zM()),ih=Ot(),Xpe=el(),UA=On(),pl=Qr(),Fj=rl(),Uj=nl(),Zpe=il(),e_e=sl(),Bj=ol(),t_e=mj(),r_e=P(),n_e=ml(),i_e=e=>{var t,r,n,i,s,o,a,c,l,u,p,m,h,g;let y=(0,n_e.resolveDefaultsModeConfig)(e),w=()=>y().then(r_e.loadConfigsForDefaultMode),C=(0,t_e.getRuntimeConfig)(e);return{...C,...e,runtime:"node",defaultsMode:y,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:Uj.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:Uj.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:Zpe.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,e_e.defaultUserAgent)({serviceId:C.serviceId,clientVersion:Qpe.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,pl.loadConfig)(UA.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,pl.loadConfig)(ih.NODE_REGION_CONFIG_OPTIONS,ih.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(a=e==null?void 0:e.requestHandler)!==null&&a!==void 0?a:new Fj.NodeHttpHandler(w),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,pl.loadConfig)({...UA.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await w()).retryMode||UA.DEFAULT_RETRY_MODE}),sha256:(l=e==null?void 0:e.sha256)!==null&&l!==void 0?l:Xpe.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:Fj.streamCollector,useDualstackEndpoint:(p=e==null?void 0:e.useDualstackEndpoint)!==null&&p!==void 0?p:(0,pl.loadConfig)(ih.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(m=e==null?void 0:e.useFipsEndpoint)!==null&&m!==void 0?m:(0,pl.loadConfig)(ih.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(h=e==null?void 0:e.utf8Decoder)!==null&&h!==void 0?h:Bj.fromUtf8,utf8Encoder:(g=e==null?void 0:e.utf8Encoder)!==null&&g!==void 0?g:Bj.toUtf8}};sh.getRuntimeConfig=i_e});var _l=d(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.SSOClient=void 0;var $j=Ot(),s_e=ac(),Vj=uc(),o_e=dc(),Hj=On(),Kj=vc(),a_e=P(),c_e=Gj(),BA=class extends a_e.Client{constructor(t){let r=(0,c_e.getRuntimeConfig)(t),n=(0,$j.resolveRegionConfig)(r),i=(0,$j.resolveEndpointsConfig)(n),s=(0,Hj.resolveRetryConfig)(i),o=(0,Vj.resolveHostHeaderConfig)(s),a=(0,Kj.resolveUserAgentConfig)(o);super(a),this.config=a,this.middlewareStack.use((0,Hj.getRetryPlugin)(this.config)),this.middlewareStack.use((0,s_e.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Vj.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,o_e.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Kj.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};oh.SSOClient=BA});var ch=d(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.SSO=void 0;var l_e=uA(),u_e=__(),d_e=y_(),f_e=pA(),m_e=_l(),GA=class extends m_e.SSOClient{getRoleCredentials(t,r,n){let i=new l_e.GetRoleCredentialsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccountRoles(t,r,n){let i=new u_e.ListAccountRolesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccounts(t,r,n){let i=new d_e.ListAccountsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}logout(t,r,n){let i=new f_e.LogoutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};ah.SSO=GA});var Wj=d(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var lh=M();lh.__exportStar(uA(),ao);lh.__exportStar(__(),ao);lh.__exportStar(y_(),ao);lh.__exportStar(pA(),ao)});var Yj=d($A=>{"use strict";Object.defineProperty($A,"__esModule",{value:!0});var p_e=M();p_e.__exportStar(ss(),$A)});var Qj=d(Jj=>{"use strict";Object.defineProperty(Jj,"__esModule",{value:!0})});var Xj=d(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.paginateListAccountRoles=void 0;var __e=__(),h_e=ch(),y_e=_l(),g_e=async(e,t,...r)=>await e.send(new __e.ListAccountRolesCommand(t),...r),v_e=async(e,t,...r)=>await e.listAccountRoles(t,...r);async function*S_e(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof h_e.SSO)s=await v_e(e.client,t,...r);else if(e.client instanceof y_e.SSOClient)s=await g_e(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}uh.paginateListAccountRoles=S_e});var Zj=d(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.paginateListAccounts=void 0;var w_e=y_(),E_e=ch(),b_e=_l(),A_e=async(e,t,...r)=>await e.send(new w_e.ListAccountsCommand(t),...r),T_e=async(e,t,...r)=>await e.listAccounts(t,...r);async function*C_e(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof E_e.SSO)s=await T_e(e.client,t,...r);else if(e.client instanceof b_e.SSOClient)s=await A_e(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}dh.paginateListAccounts=C_e});var ez=d(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var VA=M();VA.__exportStar(Qj(),hl);VA.__exportStar(Xj(),hl);VA.__exportStar(Zj(),hl)});var tz=d(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.SSOServiceException=void 0;var yl=M();yl.__exportStar(ch(),Mn);yl.__exportStar(_l(),Mn);yl.__exportStar(Wj(),Mn);yl.__exportStar(Yj(),Mn);yl.__exportStar(ez(),Mn);var x_e=n_();Object.defineProperty(Mn,"SSOServiceException",{enumerable:!0,get:function(){return x_e.SSOServiceException}})});var nz=d(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.resolveSSOCredentials=void 0;var rz=tz(),fh=Jt(),I_e=zc(),R_e=15*60*1e3,mh=!1,P_e=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:r,ssoRoleName:n,ssoClient:i})=>{let s,o="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,I_e.getSSOTokenFromFile)(e)}catch{throw new fh.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${o}`,mh)}if(new Date(s.expiresAt).getTime()-Date.now()<=R_e)throw new fh.CredentialsProviderError(`The SSO session associated with this profile has expired. ${o}`,mh);let{accessToken:a}=s,c=i||new rz.SSOClient({region:r}),l;try{l=await c.send(new rz.GetRoleCredentialsCommand({accountId:t,roleName:n,accessToken:a}))}catch(g){throw fh.CredentialsProviderError.from(g,mh)}let{roleCredentials:{accessKeyId:u,secretAccessKey:p,sessionToken:m,expiration:h}={}}=l;if(!u||!p||!m||!h)throw new fh.CredentialsProviderError("SSO returns an invalid temporary credential.",mh);return{accessKeyId:u,secretAccessKey:p,sessionToken:m,expiration:new Date(h)}};ph.resolveSSOCredentials=P_e});var HA=d(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.validateSsoProfile=void 0;var O_e=Jt(),N_e=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=e;if(!t||!r||!n||!i)throw new O_e.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
28
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};_h.validateSsoProfile=N_e});var az=d(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.fromSSO=void 0;var iz=Jt(),sz=zc(),D_e=aA(),oz=nz(),q_e=HA(),L_e=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s}=e;if(!t&&!r&&!n&&!i){let o=await(0,sz.parseKnownFiles)(e),a=(0,sz.getProfileName)(e),c=o[a];if(!(0,D_e.isSsoProfile)(c))throw new iz.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`);let{sso_start_url:l,sso_account_id:u,sso_region:p,sso_role_name:m}=(0,q_e.validateSsoProfile)(c);return(0,oz.resolveSSOCredentials)({ssoStartUrl:l,ssoAccountId:u,ssoRegion:p,ssoRoleName:m,ssoClient:s})}else{if(!t||!r||!n||!i)throw new iz.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,oz.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s})}};hh.fromSSO=L_e});var lz=d(cz=>{"use strict";Object.defineProperty(cz,"__esModule",{value:!0})});var KA=d(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var yh=M();yh.__exportStar(az(),co);yh.__exportStar(aA(),co);yh.__exportStar(lz(),co);yh.__exportStar(HA(),co)});var dz=d(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.resolveSsoCredentials=lo.isSsoProfile=void 0;var uz=KA(),M_e=KA();Object.defineProperty(lo,"isSsoProfile",{enumerable:!0,get:function(){return M_e.isSsoProfile}});var j_e=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=(0,uz.validateSsoProfile)(e);return(0,uz.fromSSO)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i})()};lo.resolveSsoCredentials=j_e});var fz=d(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.resolveStaticCredentials=uo.isStaticCredsProfile=void 0;var z_e=e=>Boolean(e)&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;uo.isStaticCredsProfile=z_e;var k_e=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});uo.resolveStaticCredentials=k_e});var WA=d(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});gh.fromWebToken=void 0;var F_e=Jt(),U_e=e=>()=>{let{roleArn:t,roleSessionName:r,webIdentityToken:n,providerId:i,policyArns:s,policy:o,durationSeconds:a,roleAssumerWithWebIdentity:c}=e;if(!c)throw new F_e.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return c({RoleArn:t,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:i,PolicyArns:s,Policy:o,DurationSeconds:a})};gh.fromWebToken=U_e});var mz=d(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.fromTokenFile=void 0;var B_e=Jt(),G_e=require("fs"),$_e=WA(),V_e="AWS_WEB_IDENTITY_TOKEN_FILE",H_e="AWS_ROLE_ARN",K_e="AWS_ROLE_SESSION_NAME",W_e=(e={})=>async()=>Y_e(e);vh.fromTokenFile=W_e;var Y_e=e=>{var t,r,n;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[V_e],s=(r=e==null?void 0:e.roleArn)!==null&&r!==void 0?r:process.env[H_e],o=(n=e==null?void 0:e.roleSessionName)!==null&&n!==void 0?n:process.env[K_e];if(!i||!s)throw new B_e.CredentialsProviderError("Web identity configuration not specified");return(0,$_e.fromWebToken)({...e,webIdentityToken:(0,G_e.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:o})()}});var _z=d(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var pz=M();pz.__exportStar(mz(),Sh);pz.__exportStar(WA(),Sh)});var hz=d(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.resolveWebIdentityCredentials=fo.isWebIdentityProfile=void 0;var J_e=_z(),Q_e=e=>Boolean(e)&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;fo.isWebIdentityProfile=Q_e;var X_e=async(e,t)=>(0,J_e.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();fo.resolveWebIdentityCredentials=X_e});var oA=d(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.resolveProfileData=void 0;var Z_e=Jt(),yz=IM(),gz=dz(),wh=fz(),vz=hz(),ehe=async(e,t,r,n={})=>{let i=t[e];if(Object.keys(n).length>0&&(0,wh.isStaticCredsProfile)(i))return(0,wh.resolveStaticCredentials)(i);if((0,yz.isAssumeRoleProfile)(i))return(0,yz.resolveAssumeRoleCredentials)(e,t,r,n);if((0,wh.isStaticCredsProfile)(i))return(0,wh.resolveStaticCredentials)(i);if((0,vz.isWebIdentityProfile)(i))return(0,vz.resolveWebIdentityCredentials)(i,r);if((0,gz.isSsoProfile)(i))return(0,gz.resolveSsoCredentials)(i);throw new Z_e.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};Eh.resolveProfileData=ehe});var wz=d(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.fromIni=void 0;var Sz=zc(),the=oA(),rhe=(e={})=>async()=>{let t=await(0,Sz.parseKnownFiles)(e);return(0,the.resolveProfileData)((0,Sz.getProfileName)(e),t,e)};bh.fromIni=rhe});var Ez=d(YA=>{"use strict";Object.defineProperty(YA,"__esModule",{value:!0});var nhe=M();nhe.__exportStar(wz(),YA)});var Th=d(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.getHomeDir=void 0;var ihe=require("os"),she=require("path"),ohe=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${she.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,ihe.homedir)())};Ah.getHomeDir=ohe});var bz=d(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.getProfileName=an.DEFAULT_PROFILE=an.ENV_PROFILE=void 0;an.ENV_PROFILE="AWS_PROFILE";an.DEFAULT_PROFILE="default";var ahe=e=>e.profile||process.env[an.ENV_PROFILE]||an.DEFAULT_PROFILE;an.getProfileName=ahe});var JA=d(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.getSSOTokenFilepath=void 0;var che=require("crypto"),lhe=require("path"),uhe=Th(),dhe=e=>{let r=(0,che.createHash)("sha1").update(e).digest("hex");return(0,lhe.join)((0,uhe.getHomeDir)(),".aws","sso","cache",`${r}.json`)};Ch.getSSOTokenFilepath=dhe});var Az=d(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.getSSOTokenFromFile=void 0;var fhe=require("fs"),mhe=JA(),{readFile:phe}=fhe.promises,_he=async e=>{let t=(0,mhe.getSSOTokenFilepath)(e),r=await phe(t,"utf8");return JSON.parse(r)};xh.getSSOTokenFromFile=_he});var Tz=d(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.normalizeConfigFile=void 0;var hhe=/^profile\s(["'])?([^\1]+)\1$/,yhe=e=>{let t={};for(let r of Object.keys(e)){let n;if(r==="default")t.default=e.default;else if(n=hhe.exec(r)){let[i,s,o]=n;o&&(t[o]=e[r])}}return t};Ih.normalizeConfigFile=yhe});var Cz=d(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.parseIni=void 0;var ghe=["__proto__","profile __proto__"],vhe=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],ghe.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};Rh.parseIni=vhe});var xz=d(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.slurpFile=void 0;var She=require("fs"),{readFile:whe}=She.promises,QA={},Ehe=e=>(QA[e]||(QA[e]=whe(e,"utf8")),QA[e]);Ph.slurpFile=Ehe});var XA=d(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.loadSharedConfigFiles=cn.ENV_CONFIG_PATH=cn.ENV_CREDENTIALS_PATH=void 0;var Iz=require("path"),Rz=Th(),bhe=Tz(),Pz=Cz(),Oz=xz();cn.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";cn.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var Nz=()=>({}),Ahe=async(e={})=>{let{filepath:t=process.env[cn.ENV_CREDENTIALS_PATH]||(0,Iz.join)((0,Rz.getHomeDir)(),".aws","credentials"),configFilepath:r=process.env[cn.ENV_CONFIG_PATH]||(0,Iz.join)((0,Rz.getHomeDir)(),".aws","config")}=e,n=await Promise.all([(0,Oz.slurpFile)(r).then(Pz.parseIni).then(bhe.normalizeConfigFile).catch(Nz),(0,Oz.slurpFile)(t).then(Pz.parseIni).catch(Nz)]);return{configFile:n[0],credentialsFile:n[1]}};cn.loadSharedConfigFiles=Ahe});var Dz=d(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.parseKnownFiles=void 0;var The=XA(),Che=async e=>{let t=await(0,The.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};Oh.parseKnownFiles=Che});var Lz=d(qz=>{"use strict";Object.defineProperty(qz,"__esModule",{value:!0})});var gl=d(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});var cs=M();cs.__exportStar(Th(),jn);cs.__exportStar(bz(),jn);cs.__exportStar(JA(),jn);cs.__exportStar(Az(),jn);cs.__exportStar(XA(),jn);cs.__exportStar(Dz(),jn);cs.__exportStar(Lz(),jn)});var Mz=d(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.getValidatedProcessCredentials=void 0;var xhe=(e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let r=new Date;if(new Date(t.Expiration)<r)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}};Nh.getValidatedProcessCredentials=xhe});var jz=d(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.resolveProcessCredentials=void 0;var ZA=Yt(),Ihe=require("child_process"),Rhe=require("util"),Phe=Mz(),Ohe=async(e,t)=>{let r=t[e];if(t[e]){let n=r.credential_process;if(n!==void 0){let i=(0,Rhe.promisify)(Ihe.exec);try{let{stdout:s}=await i(n),o;try{o=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,Phe.getValidatedProcessCredentials)(e,o)}catch(s){throw new ZA.CredentialsProviderError(s.message)}}else throw new ZA.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new ZA.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};Dh.resolveProcessCredentials=Ohe});var kz=d(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.fromProcess=void 0;var zz=gl(),Nhe=jz(),Dhe=(e={})=>async()=>{let t=await(0,zz.parseKnownFiles)(e);return(0,Nhe.resolveProcessCredentials)((0,zz.getProfileName)(e),t)};qh.fromProcess=Dhe});var Fz=d(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});var qhe=M();qhe.__exportStar(kz(),eT)});var tT=d(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.isSsoProfile=void 0;var Lhe=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");Lh.isSsoProfile=Lhe});var jh=d(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.SSOServiceException=void 0;var Mhe=P(),vl=class extends Mhe.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,vl.prototype)}};Mh.SSOServiceException=vl});var ls=d(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.LogoutRequest=de.ListAccountsResponse=de.ListAccountsRequest=de.ListAccountRolesResponse=de.RoleInfo=de.ListAccountRolesRequest=de.UnauthorizedException=de.TooManyRequestsException=de.ResourceNotFoundException=de.InvalidRequestException=de.GetRoleCredentialsResponse=de.RoleCredentials=de.GetRoleCredentialsRequest=de.AccountInfo=void 0;var mo=P(),zh=jh(),jhe;(function(e){e.filterSensitiveLog=t=>({...t})})(jhe=de.AccountInfo||(de.AccountInfo={}));var zhe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:mo.SENSITIVE_STRING}})})(zhe=de.GetRoleCredentialsRequest||(de.GetRoleCredentialsRequest={}));var Uz;(function(e){e.filterSensitiveLog=t=>({...t,...t.secretAccessKey&&{secretAccessKey:mo.SENSITIVE_STRING},...t.sessionToken&&{sessionToken:mo.SENSITIVE_STRING}})})(Uz=de.RoleCredentials||(de.RoleCredentials={}));var khe;(function(e){e.filterSensitiveLog=t=>({...t,...t.roleCredentials&&{roleCredentials:Uz.filterSensitiveLog(t.roleCredentials)}})})(khe=de.GetRoleCredentialsResponse||(de.GetRoleCredentialsResponse={}));var Sl=class extends zh.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Sl.prototype)}};de.InvalidRequestException=Sl;var wl=class extends zh.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,wl.prototype)}};de.ResourceNotFoundException=wl;var El=class extends zh.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,El.prototype)}};de.TooManyRequestsException=El;var bl=class extends zh.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,bl.prototype)}};de.UnauthorizedException=bl;var Fhe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:mo.SENSITIVE_STRING}})})(Fhe=de.ListAccountRolesRequest||(de.ListAccountRolesRequest={}));var Uhe;(function(e){e.filterSensitiveLog=t=>({...t})})(Uhe=de.RoleInfo||(de.RoleInfo={}));var Bhe;(function(e){e.filterSensitiveLog=t=>({...t})})(Bhe=de.ListAccountRolesResponse||(de.ListAccountRolesResponse={}));var Ghe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:mo.SENSITIVE_STRING}})})(Ghe=de.ListAccountsRequest||(de.ListAccountsRequest={}));var $he;(function(e){e.filterSensitiveLog=t=>({...t})})($he=de.ListAccountsResponse||(de.ListAccountsResponse={}));var Vhe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:mo.SENSITIVE_STRING}})})(Vhe=de.LogoutRequest||(de.LogoutRequest={}))});var Al=d(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.deserializeAws_restJson1LogoutCommand=it.deserializeAws_restJson1ListAccountsCommand=it.deserializeAws_restJson1ListAccountRolesCommand=it.deserializeAws_restJson1GetRoleCredentialsCommand=it.serializeAws_restJson1LogoutCommand=it.serializeAws_restJson1ListAccountsCommand=it.serializeAws_restJson1ListAccountRolesCommand=it.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var kh=Tt(),Te=P(),Fh=ls(),Uh=jh(),Hhe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...Vh(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,c={...e.roleName!==void 0&&{role_name:e.roleName},...e.accountId!==void 0&&{account_id:e.accountId}},l;return new kh.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:l})};it.serializeAws_restJson1GetRoleCredentialsCommand=Hhe;var Khe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...Vh(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,c={...e.nextToken!==void 0&&{next_token:e.nextToken},...e.maxResults!==void 0&&{max_result:e.maxResults.toString()},...e.accountId!==void 0&&{account_id:e.accountId}},l;return new kh.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:l})};it.serializeAws_restJson1ListAccountRolesCommand=Khe;var Whe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...Vh(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,c={...e.nextToken!==void 0&&{next_token:e.nextToken},...e.maxResults!==void 0&&{max_result:e.maxResults.toString()}},l;return new kh.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:l})};it.serializeAws_restJson1ListAccountsCommand=Whe;var Yhe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...Vh(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,c;return new kh.HttpRequest({protocol:n,hostname:r,port:i,method:"POST",headers:o,path:a,body:c})};it.serializeAws_restJson1LogoutCommand=Yhe;var Jhe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Qhe(e,t);let r={$metadata:fr(e),roleCredentials:void 0},n=(0,Te.expectNonNull)((0,Te.expectObject)(await us(e.body,t)),"body");return n.roleCredentials!==void 0&&n.roleCredentials!==null&&(r.roleCredentials=oye(n.roleCredentials,t)),Promise.resolve(r)};it.deserializeAws_restJson1GetRoleCredentialsCommand=Jhe;var Qhe=async(e,t)=>{let r={...e,body:await us(e.body,t)},n,i="UnknownError";switch(i=Hh(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Bh(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await rT(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Gh(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await $h(r,t);default:let s=r.body;throw n=new Uh.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:fr(e)}),(0,Te.decorateServiceException)(n,s)}},Xhe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zhe(e,t);let r={$metadata:fr(e),nextToken:void 0,roleList:void 0},n=(0,Te.expectNonNull)((0,Te.expectObject)(await us(e.body,t)),"body");return n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Te.expectString)(n.nextToken)),n.roleList!==void 0&&n.roleList!==null&&(r.roleList=cye(n.roleList,t)),Promise.resolve(r)};it.deserializeAws_restJson1ListAccountRolesCommand=Xhe;var Zhe=async(e,t)=>{let r={...e,body:await us(e.body,t)},n,i="UnknownError";switch(i=Hh(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Bh(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await rT(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Gh(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await $h(r,t);default:let s=r.body;throw n=new Uh.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:fr(e)}),(0,Te.decorateServiceException)(n,s)}},eye=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return tye(e,t);let r={$metadata:fr(e),accountList:void 0,nextToken:void 0},n=(0,Te.expectNonNull)((0,Te.expectObject)(await us(e.body,t)),"body");return n.accountList!==void 0&&n.accountList!==null&&(r.accountList=sye(n.accountList,t)),n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Te.expectString)(n.nextToken)),Promise.resolve(r)};it.deserializeAws_restJson1ListAccountsCommand=eye;var tye=async(e,t)=>{let r={...e,body:await us(e.body,t)},n,i="UnknownError";switch(i=Hh(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Bh(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await rT(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Gh(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await $h(r,t);default:let s=r.body;throw n=new Uh.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:fr(e)}),(0,Te.decorateServiceException)(n,s)}},rye=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return nye(e,t);let r={$metadata:fr(e)};return await Bz(e.body,t),Promise.resolve(r)};it.deserializeAws_restJson1LogoutCommand=rye;var nye=async(e,t)=>{let r={...e,body:await us(e.body,t)},n,i="UnknownError";switch(i=Hh(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Bh(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Gh(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await $h(r,t);default:let s=r.body;throw n=new Uh.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:fr(e)}),(0,Te.decorateServiceException)(n,s)}},Bh=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Te.expectString)(n.message));let i=new Fh.InvalidRequestException({$metadata:fr(e),...r});return(0,Te.decorateServiceException)(i,e.body)},rT=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Te.expectString)(n.message));let i=new Fh.ResourceNotFoundException({$metadata:fr(e),...r});return(0,Te.decorateServiceException)(i,e.body)},Gh=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Te.expectString)(n.message));let i=new Fh.TooManyRequestsException({$metadata:fr(e),...r});return(0,Te.decorateServiceException)(i,e.body)},$h=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Te.expectString)(n.message));let i=new Fh.UnauthorizedException({$metadata:fr(e),...r});return(0,Te.decorateServiceException)(i,e.body)},iye=(e,t)=>({accountId:(0,Te.expectString)(e.accountId),accountName:(0,Te.expectString)(e.accountName),emailAddress:(0,Te.expectString)(e.emailAddress)}),sye=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:iye(n,t)),oye=(e,t)=>({accessKeyId:(0,Te.expectString)(e.accessKeyId),expiration:(0,Te.expectLong)(e.expiration),secretAccessKey:(0,Te.expectString)(e.secretAccessKey),sessionToken:(0,Te.expectString)(e.sessionToken)}),aye=(e,t)=>({accountId:(0,Te.expectString)(e.accountId),roleName:(0,Te.expectString)(e.roleName)}),cye=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:aye(n,t)),fr=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},Bz=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),lye=(e,t)=>Bz(e,t).then(r=>t.utf8Encoder(r)),Vh=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),us=(e,t)=>lye(e,t).then(r=>r.length?JSON.parse(r):{}),Hh=(e,t)=>{let r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var iT=d(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.GetRoleCredentialsCommand=void 0;var uye=U(),dye=P(),Gz=ls(),$z=Al(),nT=class extends dye.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,uye.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:Gz.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:Gz.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,$z.serializeAws_restJson1GetRoleCredentialsCommand)(t,r)}deserialize(t,r){return(0,$z.deserializeAws_restJson1GetRoleCredentialsCommand)(t,r)}};Kh.GetRoleCredentialsCommand=nT});var Yh=d(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.ListAccountRolesCommand=void 0;var fye=U(),mye=P(),Vz=ls(),Hz=Al(),sT=class extends mye.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,fye.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:Vz.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:Vz.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,Hz.serializeAws_restJson1ListAccountRolesCommand)(t,r)}deserialize(t,r){return(0,Hz.deserializeAws_restJson1ListAccountRolesCommand)(t,r)}};Wh.ListAccountRolesCommand=sT});var Qh=d(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});Jh.ListAccountsCommand=void 0;var pye=U(),_ye=P(),Kz=ls(),Wz=Al(),oT=class extends _ye.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,pye.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:Kz.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:Kz.ListAccountsResponse.filterSensitiveLog},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,Wz.serializeAws_restJson1ListAccountsCommand)(t,r)}deserialize(t,r){return(0,Wz.deserializeAws_restJson1ListAccountsCommand)(t,r)}};Jh.ListAccountsCommand=oT});var cT=d(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});Xh.LogoutCommand=void 0;var hye=U(),yye=P(),gye=ls(),Yz=Al(),aT=class extends yye.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,hye.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:gye.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:l}=r;return i.resolve(u=>l.handle(u.request,n||{}),c)}serialize(t,r){return(0,Yz.serializeAws_restJson1LogoutCommand)(t,r)}deserialize(t,r){return(0,Yz.deserializeAws_restJson1LogoutCommand)(t,r)}};Xh.LogoutCommand=aT});var Jz=d((wke,vye)=>{vye.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var Qz=d(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});Zh.defaultRegionInfoProvider=void 0;var Sye=Ot(),wye={"ap-northeast-1":{variants:[{hostname:"portal.sso.ap-northeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-1"},"ap-northeast-2":{variants:[{hostname:"portal.sso.ap-northeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-2"},"ap-south-1":{variants:[{hostname:"portal.sso.ap-south-1.amazonaws.com",tags:[]}],signingRegion:"ap-south-1"},"ap-southeast-1":{variants:[{hostname:"portal.sso.ap-southeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-1"},"ap-southeast-2":{variants:[{hostname:"portal.sso.ap-southeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-2"},"ca-central-1":{variants:[{hostname:"portal.sso.ca-central-1.amazonaws.com",tags:[]}],signingRegion:"ca-central-1"},"eu-central-1":{variants:[{hostname:"portal.sso.eu-central-1.amazonaws.com",tags:[]}],signingRegion:"eu-central-1"},"eu-north-1":{variants:[{hostname:"portal.sso.eu-north-1.amazonaws.com",tags:[]}],signingRegion:"eu-north-1"},"eu-west-1":{variants:[{hostname:"portal.sso.eu-west-1.amazonaws.com",tags:[]}],signingRegion:"eu-west-1"},"eu-west-2":{variants:[{hostname:"portal.sso.eu-west-2.amazonaws.com",tags:[]}],signingRegion:"eu-west-2"},"eu-west-3":{variants:[{hostname:"portal.sso.eu-west-3.amazonaws.com",tags:[]}],signingRegion:"eu-west-3"},"sa-east-1":{variants:[{hostname:"portal.sso.sa-east-1.amazonaws.com",tags:[]}],signingRegion:"sa-east-1"},"us-east-1":{variants:[{hostname:"portal.sso.us-east-1.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-2":{variants:[{hostname:"portal.sso.us-east-2.amazonaws.com",tags:[]}],signingRegion:"us-east-2"},"us-gov-east-1":{variants:[{hostname:"portal.sso.us-gov-east-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-east-1"},"us-gov-west-1":{variants:[{hostname:"portal.sso.us-gov-west-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-west-1"},"us-west-2":{variants:[{hostname:"portal.sso.us-west-2.amazonaws.com",tags:[]}],signingRegion:"us-west-2"}},Eye={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com.cn",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.c2s.ic.gov",tags:[]},{hostname:"portal.sso-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.sc2s.sgov.gov",tags:[]},{hostname:"portal.sso-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]}},bye=async(e,t)=>(0,Sye.getRegionInfo)(e,{...t,signingService:"awsssoportal",regionHash:wye,partitionHash:Eye});Zh.defaultRegionInfoProvider=bye});var Xz=d(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});ey.getRuntimeConfig=void 0;var Aye=yi(),Tye=Qz(),Cye=e=>{var t,r,n,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:Tye.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"SSO",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:Aye.parseUrl}};ey.getRuntimeConfig=Cye});var rk=d(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.getRuntimeConfig=void 0;var xye=M(),Iye=xye.__importDefault(Jz()),ty=Ot(),Rye=el(),lT=On(),Tl=Qr(),Zz=rl(),ek=nl(),Pye=il(),Oye=sl(),tk=ol(),Nye=Xz(),Dye=P(),qye=ml(),Lye=e=>{var t,r,n,i,s,o,a,c,l,u,p,m,h,g;let y=(0,qye.resolveDefaultsModeConfig)(e),w=()=>y().then(Dye.loadConfigsForDefaultMode),C=(0,Nye.getRuntimeConfig)(e);return{...C,...e,runtime:"node",defaultsMode:y,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:ek.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:ek.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:Pye.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,Oye.defaultUserAgent)({serviceId:C.serviceId,clientVersion:Iye.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Tl.loadConfig)(lT.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,Tl.loadConfig)(ty.NODE_REGION_CONFIG_OPTIONS,ty.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(a=e==null?void 0:e.requestHandler)!==null&&a!==void 0?a:new Zz.NodeHttpHandler(w),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,Tl.loadConfig)({...lT.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await w()).retryMode||lT.DEFAULT_RETRY_MODE}),sha256:(l=e==null?void 0:e.sha256)!==null&&l!==void 0?l:Rye.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:Zz.streamCollector,useDualstackEndpoint:(p=e==null?void 0:e.useDualstackEndpoint)!==null&&p!==void 0?p:(0,Tl.loadConfig)(ty.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(m=e==null?void 0:e.useFipsEndpoint)!==null&&m!==void 0?m:(0,Tl.loadConfig)(ty.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(h=e==null?void 0:e.utf8Decoder)!==null&&h!==void 0?h:tk.fromUtf8,utf8Encoder:(g=e==null?void 0:e.utf8Encoder)!==null&&g!==void 0?g:tk.toUtf8}};ry.getRuntimeConfig=Lye});var Cl=d(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.SSOClient=void 0;var nk=Ot(),Mye=ac(),ik=uc(),jye=dc(),sk=On(),ok=vc(),zye=P(),kye=rk(),uT=class extends zye.Client{constructor(t){let r=(0,kye.getRuntimeConfig)(t),n=(0,nk.resolveRegionConfig)(r),i=(0,nk.resolveEndpointsConfig)(n),s=(0,sk.resolveRetryConfig)(i),o=(0,ik.resolveHostHeaderConfig)(s),a=(0,ok.resolveUserAgentConfig)(o);super(a),this.config=a,this.middlewareStack.use((0,sk.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Mye.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,ik.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,jye.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,ok.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};ny.SSOClient=uT});var sy=d(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.SSO=void 0;var Fye=iT(),Uye=Yh(),Bye=Qh(),Gye=cT(),$ye=Cl(),dT=class extends $ye.SSOClient{getRoleCredentials(t,r,n){let i=new Fye.GetRoleCredentialsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccountRoles(t,r,n){let i=new Uye.ListAccountRolesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccounts(t,r,n){let i=new Bye.ListAccountsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}logout(t,r,n){let i=new Gye.LogoutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};iy.SSO=dT});var ak=d(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});var oy=M();oy.__exportStar(iT(),po);oy.__exportStar(Yh(),po);oy.__exportStar(Qh(),po);oy.__exportStar(cT(),po)});var ck=d(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});var Vye=M();Vye.__exportStar(ls(),fT)});var uk=d(lk=>{"use strict";Object.defineProperty(lk,"__esModule",{value:!0})});var dk=d(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.paginateListAccountRoles=void 0;var Hye=Yh(),Kye=sy(),Wye=Cl(),Yye=async(e,t,...r)=>await e.send(new Hye.ListAccountRolesCommand(t),...r),Jye=async(e,t,...r)=>await e.listAccountRoles(t,...r);async function*Qye(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof Kye.SSO)s=await Jye(e.client,t,...r);else if(e.client instanceof Wye.SSOClient)s=await Yye(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}ay.paginateListAccountRoles=Qye});var fk=d(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});cy.paginateListAccounts=void 0;var Xye=Qh(),Zye=sy(),ege=Cl(),tge=async(e,t,...r)=>await e.send(new Xye.ListAccountsCommand(t),...r),rge=async(e,t,...r)=>await e.listAccounts(t,...r);async function*nge(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof Zye.SSO)s=await rge(e.client,t,...r);else if(e.client instanceof ege.SSOClient)s=await tge(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}cy.paginateListAccounts=nge});var mk=d(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var mT=M();mT.__exportStar(uk(),xl);mT.__exportStar(dk(),xl);mT.__exportStar(fk(),xl)});var pk=d(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.SSOServiceException=void 0;var Il=M();Il.__exportStar(sy(),zn);Il.__exportStar(Cl(),zn);Il.__exportStar(ak(),zn);Il.__exportStar(ck(),zn);Il.__exportStar(mk(),zn);var ige=jh();Object.defineProperty(zn,"SSOServiceException",{enumerable:!0,get:function(){return ige.SSOServiceException}})});var hk=d(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.resolveSSOCredentials=void 0;var _k=pk(),ly=Yt(),sge=gl(),oge=15*60*1e3,uy=!1,age=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:r,ssoRoleName:n,ssoClient:i})=>{let s,o="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,sge.getSSOTokenFromFile)(e)}catch{throw new ly.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${o}`,uy)}if(new Date(s.expiresAt).getTime()-Date.now()<=oge)throw new ly.CredentialsProviderError(`The SSO session associated with this profile has expired. ${o}`,uy);let{accessToken:a}=s,c=i||new _k.SSOClient({region:r}),l;try{l=await c.send(new _k.GetRoleCredentialsCommand({accountId:t,roleName:n,accessToken:a}))}catch(g){throw ly.CredentialsProviderError.from(g,uy)}let{roleCredentials:{accessKeyId:u,secretAccessKey:p,sessionToken:m,expiration:h}={}}=l;if(!u||!p||!m||!h)throw new ly.CredentialsProviderError("SSO returns an invalid temporary credential.",uy);return{accessKeyId:u,secretAccessKey:p,sessionToken:m,expiration:new Date(h)}};dy.resolveSSOCredentials=age});var pT=d(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});fy.validateSsoProfile=void 0;var cge=Yt(),lge=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=e;if(!t||!r||!n||!i)throw new cge.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
29
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};fy.validateSsoProfile=lge});var Sk=d(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});my.fromSSO=void 0;var yk=Yt(),gk=gl(),uge=tT(),vk=hk(),dge=pT(),fge=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s}=e;if(!t&&!r&&!n&&!i){let o=await(0,gk.parseKnownFiles)(e),a=(0,gk.getProfileName)(e),c=o[a];if(!(0,uge.isSsoProfile)(c))throw new yk.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`);let{sso_start_url:l,sso_account_id:u,sso_region:p,sso_role_name:m}=(0,dge.validateSsoProfile)(c);return(0,vk.resolveSSOCredentials)({ssoStartUrl:l,ssoAccountId:u,ssoRegion:p,ssoRoleName:m,ssoClient:s})}else{if(!t||!r||!n||!i)throw new yk.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,vk.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s})}};my.fromSSO=fge});var Ek=d(wk=>{"use strict";Object.defineProperty(wk,"__esModule",{value:!0})});var bk=d(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});var py=M();py.__exportStar(Sk(),_o);py.__exportStar(tT(),_o);py.__exportStar(Ek(),_o);py.__exportStar(pT(),_o)});var _T=d(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});_y.fromWebToken=void 0;var mge=Yt(),pge=e=>()=>{let{roleArn:t,roleSessionName:r,webIdentityToken:n,providerId:i,policyArns:s,policy:o,durationSeconds:a,roleAssumerWithWebIdentity:c}=e;if(!c)throw new mge.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return c({RoleArn:t,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:i,PolicyArns:s,Policy:o,DurationSeconds:a})};_y.fromWebToken=pge});var Ak=d(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.fromTokenFile=void 0;var _ge=Yt(),hge=require("fs"),yge=_T(),gge="AWS_WEB_IDENTITY_TOKEN_FILE",vge="AWS_ROLE_ARN",Sge="AWS_ROLE_SESSION_NAME",wge=(e={})=>async()=>Ege(e);hy.fromTokenFile=wge;var Ege=e=>{var t,r,n;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[gge],s=(r=e==null?void 0:e.roleArn)!==null&&r!==void 0?r:process.env[vge],o=(n=e==null?void 0:e.roleSessionName)!==null&&n!==void 0?n:process.env[Sge];if(!i||!s)throw new _ge.CredentialsProviderError("Web identity configuration not specified");return(0,yge.fromWebToken)({...e,webIdentityToken:(0,hge.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:o})()}});var Ck=d(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var Tk=M();Tk.__exportStar(Ak(),yy);Tk.__exportStar(_T(),yy)});var vy=d(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});gy.httpRequest=void 0;var hT=Yt(),bge=require("buffer"),Age=require("http");function Tge(e){return new Promise((t,r)=>{var n;let i=(0,Age.request)({method:"GET",...e,hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")});i.on("error",s=>{r(Object.assign(new hT.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new hT.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new hT.ProviderError("Error response received from instance metadata service"),{statusCode:o})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(bge.Buffer.concat(a)),i.destroy()})}),i.end()})}gy.httpRequest=Tge});var yT=d(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.fromImdsCredentials=ho.isImdsCredentials=void 0;var Cge=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";ho.isImdsCredentials=Cge;var xge=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});ho.fromImdsCredentials=xge});var Sy=d(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.providerConfigFromInit=ln.DEFAULT_MAX_RETRIES=ln.DEFAULT_TIMEOUT=void 0;ln.DEFAULT_TIMEOUT=1e3;ln.DEFAULT_MAX_RETRIES=0;var Ige=({maxRetries:e=ln.DEFAULT_MAX_RETRIES,timeout:t=ln.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});ln.providerConfigFromInit=Ige});var gT=d(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.retry=void 0;var Rge=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};wy.retry=Rge});var Ik=d(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.fromContainerMetadata=st.ENV_CMDS_AUTH_TOKEN=st.ENV_CMDS_RELATIVE_URI=st.ENV_CMDS_FULL_URI=void 0;var Ey=Yt(),Pge=require("url"),Oge=vy(),xk=yT(),Nge=Sy(),Dge=gT();st.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";st.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";st.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var qge=(e={})=>{let{timeout:t,maxRetries:r}=(0,Nge.providerConfigFromInit)(e);return()=>(0,Dge.retry)(async()=>{let n=await kge(),i=JSON.parse(await Lge(t,n));if(!(0,xk.isImdsCredentials)(i))throw new Ey.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,xk.fromImdsCredentials)(i)},r)};st.fromContainerMetadata=qge;var Lge=async(e,t)=>(process.env[st.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[st.ENV_CMDS_AUTH_TOKEN]}),(await(0,Oge.httpRequest)({...t,timeout:e})).toString()),Mge="169.254.170.2",jge={localhost:!0,"127.0.0.1":!0},zge={"http:":!0,"https:":!0},kge=async()=>{if(process.env[st.ENV_CMDS_RELATIVE_URI])return{hostname:Mge,path:process.env[st.ENV_CMDS_RELATIVE_URI]};if(process.env[st.ENV_CMDS_FULL_URI]){let e=(0,Pge.parse)(process.env[st.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in jge))throw new Ey.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in zge))throw new Ey.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Ey.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${st.ENV_CMDS_RELATIVE_URI} or ${st.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var Rk=d(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.Endpoint=void 0;var Fge;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(Fge=Rl.Endpoint||(Rl.Endpoint={}))});var Pk=d(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.ENDPOINT_CONFIG_OPTIONS=un.CONFIG_ENDPOINT_NAME=un.ENV_ENDPOINT_NAME=void 0;un.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";un.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";un.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[un.ENV_ENDPOINT_NAME],configFileSelector:e=>e[un.CONFIG_ENDPOINT_NAME],default:void 0}});var vT=d(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.EndpointMode=void 0;var Uge;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(Uge=Pl.EndpointMode||(Pl.EndpointMode={}))});var Ok=d(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.ENDPOINT_MODE_CONFIG_OPTIONS=dn.CONFIG_ENDPOINT_MODE_NAME=dn.ENV_ENDPOINT_MODE_NAME=void 0;var Bge=vT();dn.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";dn.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";dn.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[dn.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[dn.CONFIG_ENDPOINT_MODE_NAME],default:Bge.EndpointMode.IPv4}});var wT=d(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});by.getInstanceMetadataEndpoint=void 0;var Dk=Qr(),Gge=yi(),Nk=Rk(),$ge=Pk(),ST=vT(),Vge=Ok(),Hge=async()=>(0,Gge.parseUrl)(await Kge()||await Wge());by.getInstanceMetadataEndpoint=Hge;var Kge=async()=>(0,Dk.loadConfig)($ge.ENDPOINT_CONFIG_OPTIONS)(),Wge=async()=>{let e=await(0,Dk.loadConfig)(Vge.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case ST.EndpointMode.IPv4:return Nk.Endpoint.IPv4;case ST.EndpointMode.IPv6:return Nk.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(ST.EndpointMode)}`)}}});var qk=d(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});Ay.getExtendedInstanceMetadataCredentials=void 0;var Yge=15*60,Jge=5*60,Qge="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Xge=(e,t)=>{var r;let n=Yge+Math.floor(Math.random()*Jge),i=new Date(Date.now()+n*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+Qge);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:i}};Ay.getExtendedInstanceMetadataCredentials=Xge});var Mk=d(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});Ty.staticStabilityProvider=void 0;var Lk=qk(),Zge=(e,t={})=>{let r=(t==null?void 0:t.logger)||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,Lk.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,Lk.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};Ty.staticStabilityProvider=Zge});var Fk=d(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});Cy.fromInstanceMetadata=void 0;var eve=Yt(),ET=vy(),jk=yT(),tve=Sy(),zk=gT(),rve=wT(),nve=Mk(),kk="/latest/meta-data/iam/security-credentials/",ive="/latest/api/token",sve=(e={})=>(0,nve.staticStabilityProvider)(ove(e),{logger:e.logger});Cy.fromInstanceMetadata=sve;var ove=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,tve.providerConfigFromInit)(e),i=async(s,o)=>{let a=(await(0,zk.retry)(async()=>{let c;try{c=await cve(o)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)).trim();return(0,zk.retry)(async()=>{let c;try{c=await lve(a,o)}catch(l){throw l.statusCode===401&&(t=!1),l}return c},s)};return async()=>{let s=await(0,rve.getInstanceMetadataEndpoint)();if(t)return i(n,{...s,timeout:r});{let o;try{o=(await ave({...s,timeout:r})).toString()}catch(a){if((a==null?void 0:a.statusCode)===400)throw Object.assign(a,{message:"EC2 Metadata token request returned error"});return(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode))&&(t=!0),i(n,{...s,timeout:r})}return i(n,{...s,headers:{"x-aws-ec2-metadata-token":o},timeout:r})}}},ave=async e=>(0,ET.httpRequest)({...e,path:ive,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),cve=async e=>(await(0,ET.httpRequest)({...e,path:kk})).toString(),lve=async(e,t)=>{let r=JSON.parse((await(0,ET.httpRequest)({...t,path:kk+e})).toString());if(!(0,jk.isImdsCredentials)(r))throw new eve.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,jk.fromImdsCredentials)(r)}});var Bk=d(Uk=>{"use strict";Object.defineProperty(Uk,"__esModule",{value:!0})});var Gk=d(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.getInstanceMetadataEndpoint=fn.httpRequest=void 0;var xy=M();xy.__exportStar(Ik(),fn);xy.__exportStar(Fk(),fn);xy.__exportStar(Sy(),fn);xy.__exportStar(Bk(),fn);var uve=vy();Object.defineProperty(fn,"httpRequest",{enumerable:!0,get:function(){return uve.httpRequest}});var dve=wT();Object.defineProperty(fn,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return dve.getInstanceMetadataEndpoint}})});var $k=d(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.remoteProvider=ds.ENV_IMDS_DISABLED=void 0;var Iy=Gk(),fve=Yt();ds.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var mve=e=>process.env[Iy.ENV_CMDS_RELATIVE_URI]||process.env[Iy.ENV_CMDS_FULL_URI]?(0,Iy.fromContainerMetadata)(e):process.env[ds.ENV_IMDS_DISABLED]?async()=>{throw new fve.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,Iy.fromInstanceMetadata)(e);ds.remoteProvider=mve});var Vk=d(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});Ry.defaultProvider=void 0;var pve=gL(),_ve=Ez(),hve=Fz(),yve=bk(),gve=Ck(),bT=Yt(),vve=gl(),Sve=$k(),wve=(e={})=>(0,bT.memoize)((0,bT.chain)(...e.profile||process.env[vve.ENV_PROFILE]?[]:[(0,pve.fromEnv)()],(0,yve.fromSSO)(e),(0,_ve.fromIni)(e),(0,hve.fromProcess)(e),(0,gve.fromTokenFile)(e),(0,Sve.remoteProvider)(e),async()=>{throw new bT.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0);Ry.defaultProvider=wve});var Py=d(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});var Eve=M();Eve.__exportStar(Vk(),AT)});var Hk=d(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});Oy.defaultRegionInfoProvider=void 0;var bve=Ot(),Ave={"aws-global":{variants:[{hostname:"sts.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"sts-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"sts-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"sts.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"sts.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"sts-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"sts-fips.us-west-2.amazonaws.com",tags:["fips"]}]}},Tve={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com.cn",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"sts-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.c2s.ic.gov",tags:[]},{hostname:"sts-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.sc2s.sgov.gov",tags:[]},{hostname:"sts-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]}},Cve=async(e,t)=>(0,bve.getRegionInfo)(e,{...t,signingService:"sts",regionHash:Ave,partitionHash:Tve});Oy.defaultRegionInfoProvider=Cve});var Kk=d(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});Ny.getRuntimeConfig=void 0;var xve=yi(),Ive=Hk(),Rve=e=>{var t,r,n,i,s;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:Ive.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"STS",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:xve.parseUrl}};Ny.getRuntimeConfig=Rve});var Qk=d(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});qy.getRuntimeConfig=void 0;var Pve=M(),Ove=Pve.__importDefault(uL()),Nve=Bb(),Dy=Ot(),Dve=Py(),qve=el(),TT=On(),Ol=Qr(),Wk=rl(),Yk=nl(),Lve=il(),Mve=sl(),Jk=ol(),jve=Kk(),zve=P(),kve=ml(),Fve=e=>{var t,r,n,i,s,o,a,c,l,u,p,m,h,g,y;let w=(0,kve.resolveDefaultsModeConfig)(e),C=()=>w().then(zve.loadConfigsForDefaultMode),T=(0,jve.getRuntimeConfig)(e);return{...T,...e,runtime:"node",defaultsMode:w,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:Yk.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:Yk.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:Lve.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,Nve.decorateDefaultCredentialProvider)(Dve.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,Mve.defaultUserAgent)({serviceId:T.serviceId,clientVersion:Ove.default.version}),maxAttempts:(o=e==null?void 0:e.maxAttempts)!==null&&o!==void 0?o:(0,Ol.loadConfig)(TT.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,Ol.loadConfig)(Dy.NODE_REGION_CONFIG_OPTIONS,Dy.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new Wk.NodeHttpHandler(C),retryMode:(l=e==null?void 0:e.retryMode)!==null&&l!==void 0?l:(0,Ol.loadConfig)({...TT.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await C()).retryMode||TT.DEFAULT_RETRY_MODE}),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:qve.Hash.bind(null,"sha256"),streamCollector:(p=e==null?void 0:e.streamCollector)!==null&&p!==void 0?p:Wk.streamCollector,useDualstackEndpoint:(m=e==null?void 0:e.useDualstackEndpoint)!==null&&m!==void 0?m:(0,Ol.loadConfig)(Dy.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(h=e==null?void 0:e.useFipsEndpoint)!==null&&h!==void 0?h:(0,Ol.loadConfig)(Dy.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(g=e==null?void 0:e.utf8Decoder)!==null&&g!==void 0?g:Jk.fromUtf8,utf8Encoder:(y=e==null?void 0:e.utf8Encoder)!==null&&y!==void 0?y:Jk.toUtf8}};qy.getRuntimeConfig=Fve});var My=d(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});Ly.STSClient=void 0;var Xk=Ot(),Uve=ac(),Zk=uc(),Bve=dc(),eF=On(),Gve=lL(),tF=vc(),$ve=P(),Vve=Qk(),Nl=class extends $ve.Client{constructor(t){let r=(0,Vve.getRuntimeConfig)(t),n=(0,Xk.resolveRegionConfig)(r),i=(0,Xk.resolveEndpointsConfig)(n),s=(0,eF.resolveRetryConfig)(i),o=(0,Zk.resolveHostHeaderConfig)(s),a=(0,Gve.resolveStsAuthConfig)(o,{stsClientCtor:Nl}),c=(0,tF.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,eF.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Uve.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Zk.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Bve.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,tF.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Ly.STSClient=Nl});var rF=d(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});jy.STS=void 0;var Hve=Wm(),Kve=Pb(),Wve=Qm(),Yve=Db(),Jve=Lb(),Qve=jb(),Xve=kb(),Zve=Ub(),eSe=My(),CT=class extends eSe.STSClient{assumeRole(t,r,n){let i=new Hve.AssumeRoleCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}assumeRoleWithSAML(t,r,n){let i=new Kve.AssumeRoleWithSAMLCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}assumeRoleWithWebIdentity(t,r,n){let i=new Wve.AssumeRoleWithWebIdentityCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}decodeAuthorizationMessage(t,r,n){let i=new Yve.DecodeAuthorizationMessageCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getAccessKeyInfo(t,r,n){let i=new Jve.GetAccessKeyInfoCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getCallerIdentity(t,r,n){let i=new Qve.GetCallerIdentityCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getFederationToken(t,r,n){let i=new Xve.GetFederationTokenCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getSessionToken(t,r,n){let i=new Zve.GetSessionTokenCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};jy.STS=CT});var nF=d(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});var vi=M();vi.__exportStar(Wm(),mn);vi.__exportStar(Pb(),mn);vi.__exportStar(Qm(),mn);vi.__exportStar(Db(),mn);vi.__exportStar(Lb(),mn);vi.__exportStar(jb(),mn);vi.__exportStar(kb(),mn);vi.__exportStar(Ub(),mn)});var oF=d(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.decorateDefaultCredentialProvider=pn.getDefaultRoleAssumerWithWebIdentity=pn.getDefaultRoleAssumer=void 0;var iF=Bb(),sF=My(),tSe=(e={})=>(0,iF.getDefaultRoleAssumer)(e,sF.STSClient);pn.getDefaultRoleAssumer=tSe;var rSe=(e={})=>(0,iF.getDefaultRoleAssumerWithWebIdentity)(e,sF.STSClient);pn.getDefaultRoleAssumerWithWebIdentity=rSe;var nSe=e=>t=>e({roleAssumer:(0,pn.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,pn.getDefaultRoleAssumerWithWebIdentity)(t),...t});pn.decorateDefaultCredentialProvider=nSe});var aF=d(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0});var iSe=M();iSe.__exportStar(vr(),xT)});var cF=d(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.STSServiceException=void 0;var Dl=M();Dl.__exportStar(rF(),kn);Dl.__exportStar(My(),kn);Dl.__exportStar(nF(),kn);Dl.__exportStar(oF(),kn);Dl.__exportStar(aF(),kn);var sSe=qm();Object.defineProperty(kn,"STSServiceException",{enumerable:!0,get:function(){return sSe.STSServiceException}})});var lF=d(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.defaultRegionInfoProvider=void 0;var oSe=Ot(),aSe={"ca-central-1":{variants:[{hostname:"dynamodb-fips.ca-central-1.amazonaws.com",tags:["fips"]}]},local:{variants:[{hostname:"localhost:8000",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"dynamodb-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"dynamodb-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"dynamodb.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"dynamodb.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"dynamodb-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"dynamodb-fips.us-west-2.amazonaws.com",tags:["fips"]}]}},cSe={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","ca-central-1-fips","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","local","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com",tags:[]},{hostname:"dynamodb-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com.cn",tags:[]},{hostname:"dynamodb-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.c2s.ic.gov",tags:[]},{hostname:"dynamodb-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.sc2s.sgov.gov",tags:[]},{hostname:"dynamodb-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com",tags:[]},{hostname:"dynamodb.{region}.amazonaws.com",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.aws",tags:["dualstack"]}]}},lSe=async(e,t)=>(0,oSe.getRegionInfo)(e,{...t,signingService:"dynamodb",regionHash:aSe,partitionHash:cSe});zy.defaultRegionInfoProvider=lSe});var uF=d(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.getRuntimeConfig=void 0;var uSe=yi(),dSe=lF(),fSe=e=>{var t,r,n,i,s;return{apiVersion:"2012-08-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:dSe.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"DynamoDB",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:uSe.parseUrl}};ky.getRuntimeConfig=fSe});var pF=d(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.getRuntimeConfig=void 0;var mSe=M(),pSe=mSe.__importDefault(WD()),_Se=cF(),Fy=Ot(),hSe=Py(),ySe=el(),gSe=BE(),IT=On(),yo=Qr(),dF=rl(),fF=nl(),vSe=il(),SSe=sl(),mF=ol(),wSe=uF(),ESe=P(),bSe=ml(),ASe=e=>{var t,r,n,i,s,o,a,c,l,u,p,m,h,g,y,w;let C=(0,bSe.resolveDefaultsModeConfig)(e),T=()=>C().then(ESe.loadConfigsForDefaultMode),B=(0,wSe.getRuntimeConfig)(e);return{...B,...e,runtime:"node",defaultsMode:C,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:fF.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:fF.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:vSe.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,_Se.decorateDefaultCredentialProvider)(hSe.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,SSe.defaultUserAgent)({serviceId:B.serviceId,clientVersion:pSe.default.version}),endpointDiscoveryEnabledProvider:(o=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&o!==void 0?o:(0,yo.loadConfig)(gSe.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:(0,yo.loadConfig)(IT.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:(0,yo.loadConfig)(Fy.NODE_REGION_CONFIG_OPTIONS,Fy.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(l=e==null?void 0:e.requestHandler)!==null&&l!==void 0?l:new dF.NodeHttpHandler(T),retryMode:(u=e==null?void 0:e.retryMode)!==null&&u!==void 0?u:(0,yo.loadConfig)({...IT.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await T()).retryMode||IT.DEFAULT_RETRY_MODE}),sha256:(p=e==null?void 0:e.sha256)!==null&&p!==void 0?p:ySe.Hash.bind(null,"sha256"),streamCollector:(m=e==null?void 0:e.streamCollector)!==null&&m!==void 0?m:dF.streamCollector,useDualstackEndpoint:(h=e==null?void 0:e.useDualstackEndpoint)!==null&&h!==void 0?h:(0,yo.loadConfig)(Fy.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(g=e==null?void 0:e.useFipsEndpoint)!==null&&g!==void 0?g:(0,yo.loadConfig)(Fy.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(y=e==null?void 0:e.utf8Decoder)!==null&&y!==void 0?y:mF.fromUtf8,utf8Encoder:(w=e==null?void 0:e.utf8Encoder)!==null&&w!==void 0?w:mF.toUtf8}};Uy.getRuntimeConfig=ASe});var Si=d(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});By.DynamoDBClient=void 0;var _F=Ot(),TSe=ac(),CSe=BE(),hF=uc(),xSe=dc(),yF=On(),gF=Nn(),vF=vc(),ISe=P(),RSe=Dd(),PSe=pF(),RT=class extends ISe.Client{constructor(t){let r=(0,PSe.getRuntimeConfig)(t),n=(0,_F.resolveRegionConfig)(r),i=(0,_F.resolveEndpointsConfig)(n),s=(0,yF.resolveRetryConfig)(i),o=(0,hF.resolveHostHeaderConfig)(s),a=(0,gF.resolveAwsAuthConfig)(o),c=(0,vF.resolveUserAgentConfig)(a),l=(0,CSe.resolveEndpointDiscoveryConfig)(c,{endpointDiscoveryCommandCtor:RSe.DescribeEndpointsCommand});super(l),this.config=l,this.middlewareStack.use((0,yF.getRetryPlugin)(this.config)),this.middlewareStack.use((0,TSe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,hF.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,xSe.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,gF.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,vF.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};By.DynamoDBClient=RT});var fs=d(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});Gy.DynamoDB=void 0;var OSe=Gw(),NSe=Vw(),DSe=Kw(),qSe=Yw(),LSe=Qw(),MSe=Zw(),jSe=t0(),zSe=n0(),kSe=s0(),FSe=a0(),USe=l0(),BSe=d0(),GSe=Dd(),$Se=p0(),VSe=h0(),HSe=g0(),KSe=S0(),WSe=E0(),YSe=ic(),JSe=T0(),QSe=x0(),XSe=R0(),ZSe=O0(),ewe=D0(),twe=L0(),rwe=j0(),nwe=k0(),iwe=U0(),swe=Jd(),owe=Xd(),awe=V0(),cwe=tf(),lwe=W0(),uwe=J0(),dwe=of(),fwe=Z0(),mwe=tE(),pwe=uf(),_we=iE(),hwe=oE(),ywe=cE(),gwe=uE(),vwe=fE(),Swe=pE(),wwe=hE(),Ewe=gE(),bwe=SE(),Awe=EE(),Twe=AE(),Cwe=CE(),xwe=Si(),PT=class extends xwe.DynamoDBClient{batchExecuteStatement(t,r,n){let i=new OSe.BatchExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchGetItem(t,r,n){let i=new NSe.BatchGetItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchWriteItem(t,r,n){let i=new DSe.BatchWriteItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createBackup(t,r,n){let i=new qSe.CreateBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createGlobalTable(t,r,n){let i=new LSe.CreateGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createTable(t,r,n){let i=new MSe.CreateTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteBackup(t,r,n){let i=new jSe.DeleteBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteItem(t,r,n){let i=new zSe.DeleteItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteTable(t,r,n){let i=new kSe.DeleteTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeBackup(t,r,n){let i=new FSe.DescribeBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeContinuousBackups(t,r,n){let i=new USe.DescribeContinuousBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeContributorInsights(t,r,n){let i=new BSe.DescribeContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeEndpoints(t,r,n){let i=new GSe.DescribeEndpointsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeExport(t,r,n){let i=new $Se.DescribeExportCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeGlobalTable(t,r,n){let i=new VSe.DescribeGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeGlobalTableSettings(t,r,n){let i=new HSe.DescribeGlobalTableSettingsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeKinesisStreamingDestination(t,r,n){let i=new KSe.DescribeKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeLimits(t,r,n){let i=new WSe.DescribeLimitsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTable(t,r,n){let i=new YSe.DescribeTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTableReplicaAutoScaling(t,r,n){let i=new JSe.DescribeTableReplicaAutoScalingCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTimeToLive(t,r,n){let i=new QSe.DescribeTimeToLiveCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}disableKinesisStreamingDestination(t,r,n){let i=new XSe.DisableKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}enableKinesisStreamingDestination(t,r,n){let i=new ZSe.EnableKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeStatement(t,r,n){let i=new ewe.ExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeTransaction(t,r,n){let i=new twe.ExecuteTransactionCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}exportTableToPointInTime(t,r,n){let i=new rwe.ExportTableToPointInTimeCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getItem(t,r,n){let i=new nwe.GetItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listBackups(t,r,n){let i=new iwe.ListBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listContributorInsights(t,r,n){let i=new swe.ListContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listExports(t,r,n){let i=new owe.ListExportsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listGlobalTables(t,r,n){let i=new awe.ListGlobalTablesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listTables(t,r,n){let i=new cwe.ListTablesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listTagsOfResource(t,r,n){let i=new lwe.ListTagsOfResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}putItem(t,r,n){let i=new uwe.PutItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}query(t,r,n){let i=new dwe.QueryCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}restoreTableFromBackup(t,r,n){let i=new fwe.RestoreTableFromBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}restoreTableToPointInTime(t,r,n){let i=new mwe.RestoreTableToPointInTimeCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}scan(t,r,n){let i=new pwe.ScanCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}tagResource(t,r,n){let i=new _we.TagResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactGetItems(t,r,n){let i=new hwe.TransactGetItemsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactWriteItems(t,r,n){let i=new ywe.TransactWriteItemsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}untagResource(t,r,n){let i=new gwe.UntagResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateContinuousBackups(t,r,n){let i=new vwe.UpdateContinuousBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateContributorInsights(t,r,n){let i=new Swe.UpdateContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateGlobalTable(t,r,n){let i=new wwe.UpdateGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateGlobalTableSettings(t,r,n){let i=new Ewe.UpdateGlobalTableSettingsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateItem(t,r,n){let i=new bwe.UpdateItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTable(t,r,n){let i=new Awe.UpdateTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTableReplicaAutoScaling(t,r,n){let i=new Twe.UpdateTableReplicaAutoScalingCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTimeToLive(t,r,n){let i=new Cwe.UpdateTimeToLiveCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};Gy.DynamoDB=PT});var SF=d(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var ie=M();ie.__exportStar(Gw(),Q);ie.__exportStar(Vw(),Q);ie.__exportStar(Kw(),Q);ie.__exportStar(Yw(),Q);ie.__exportStar(Qw(),Q);ie.__exportStar(Zw(),Q);ie.__exportStar(t0(),Q);ie.__exportStar(n0(),Q);ie.__exportStar(s0(),Q);ie.__exportStar(a0(),Q);ie.__exportStar(l0(),Q);ie.__exportStar(d0(),Q);ie.__exportStar(Dd(),Q);ie.__exportStar(p0(),Q);ie.__exportStar(h0(),Q);ie.__exportStar(g0(),Q);ie.__exportStar(S0(),Q);ie.__exportStar(E0(),Q);ie.__exportStar(ic(),Q);ie.__exportStar(T0(),Q);ie.__exportStar(x0(),Q);ie.__exportStar(R0(),Q);ie.__exportStar(O0(),Q);ie.__exportStar(D0(),Q);ie.__exportStar(L0(),Q);ie.__exportStar(j0(),Q);ie.__exportStar(k0(),Q);ie.__exportStar(U0(),Q);ie.__exportStar(Jd(),Q);ie.__exportStar(Xd(),Q);ie.__exportStar(V0(),Q);ie.__exportStar(tf(),Q);ie.__exportStar(W0(),Q);ie.__exportStar(J0(),Q);ie.__exportStar(of(),Q);ie.__exportStar(Z0(),Q);ie.__exportStar(tE(),Q);ie.__exportStar(uf(),Q);ie.__exportStar(iE(),Q);ie.__exportStar(oE(),Q);ie.__exportStar(cE(),Q);ie.__exportStar(uE(),Q);ie.__exportStar(fE(),Q);ie.__exportStar(pE(),Q);ie.__exportStar(hE(),Q);ie.__exportStar(gE(),Q);ie.__exportStar(SE(),Q);ie.__exportStar(EE(),Q);ie.__exportStar(AE(),Q);ie.__exportStar(CE(),Q)});var wF=d(OT=>{"use strict";Object.defineProperty(OT,"__esModule",{value:!0});var Iwe=M();Iwe.__exportStar(J(),OT)});var bF=d(EF=>{"use strict";Object.defineProperty(EF,"__esModule",{value:!0})});var AF=d($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.paginateListContributorInsights=void 0;var Rwe=Jd(),Pwe=fs(),Owe=Si(),Nwe=async(e,t,...r)=>await e.send(new Rwe.ListContributorInsightsCommand(t),...r),Dwe=async(e,t,...r)=>await e.listContributorInsights(t,...r);async function*qwe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=n,t.MaxResults=e.pageSize,e.client instanceof Pwe.DynamoDB)s=await Dwe(e.client,t,...r);else if(e.client instanceof Owe.DynamoDBClient)s=await Nwe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.NextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}$y.paginateListContributorInsights=qwe});var TF=d(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});Vy.paginateListExports=void 0;var Lwe=Xd(),Mwe=fs(),jwe=Si(),zwe=async(e,t,...r)=>await e.send(new Lwe.ListExportsCommand(t),...r),kwe=async(e,t,...r)=>await e.listExports(t,...r);async function*Fwe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=n,t.MaxResults=e.pageSize,e.client instanceof Mwe.DynamoDB)s=await kwe(e.client,t,...r);else if(e.client instanceof jwe.DynamoDBClient)s=await zwe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.NextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Vy.paginateListExports=Fwe});var CF=d(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});Hy.paginateListTables=void 0;var Uwe=tf(),Bwe=fs(),Gwe=Si(),$we=async(e,t,...r)=>await e.send(new Uwe.ListTablesCommand(t),...r),Vwe=async(e,t,...r)=>await e.listTables(t,...r);async function*Hwe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartTableName=n,t.Limit=e.pageSize,e.client instanceof Bwe.DynamoDB)s=await Vwe(e.client,t,...r);else if(e.client instanceof Gwe.DynamoDBClient)s=await $we(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.LastEvaluatedTableName,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Hy.paginateListTables=Hwe});var xF=d(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});Ky.paginateQuery=void 0;var Kwe=of(),Wwe=fs(),Ywe=Si(),Jwe=async(e,t,...r)=>await e.send(new Kwe.QueryCommand(t),...r),Qwe=async(e,t,...r)=>await e.query(t,...r);async function*Xwe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof Wwe.DynamoDB)s=await Qwe(e.client,t,...r);else if(e.client instanceof Ywe.DynamoDBClient)s=await Jwe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.LastEvaluatedKey,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Ky.paginateQuery=Xwe});var IF=d(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});Wy.paginateScan=void 0;var Zwe=uf(),e0e=fs(),t0e=Si(),r0e=async(e,t,...r)=>await e.send(new Zwe.ScanCommand(t),...r),n0e=async(e,t,...r)=>await e.scan(t,...r);async function*i0e(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof e0e.DynamoDB)s=await n0e(e.client,t,...r);else if(e.client instanceof t0e.DynamoDBClient)s=await r0e(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.LastEvaluatedKey,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Wy.paginateScan=i0e});var RF=d(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var go=M();go.__exportStar(bF(),wi);go.__exportStar(AF(),wi);go.__exportStar(TF(),wi);go.__exportStar(CF(),wi);go.__exportStar(xF(),wi);go.__exportStar(IF(),wi)});var NT=d(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.sleep=void 0;var s0e=e=>new Promise(t=>setTimeout(t,e*1e3));Yy.sleep=s0e});var Qy=d(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.checkExceptions=Fn.WaiterState=Fn.waiterServiceDefaults=void 0;Fn.waiterServiceDefaults={minDelay:2,maxDelay:120};var Jy;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(Jy=Fn.WaiterState||(Fn.WaiterState={}));var o0e=e=>{if(e.state===Jy.ABORTED){let t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw t.name="AbortError",t}else if(e.state===Jy.TIMEOUT){let t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw t.name="TimeoutError",t}else if(e.state!==Jy.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};Fn.checkExceptions=o0e});var PF=d(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});Zy.runPolling=void 0;var a0e=NT(),Xy=Qy(),c0e=(e,t,r,n)=>{if(n>r)return t;let i=e*2**(n-1);return l0e(e,i)},l0e=(e,t)=>e+Math.random()*(t-e),u0e=async({minDelay:e,maxDelay:t,maxWaitTime:r,abortController:n,client:i,abortSignal:s},o,a)=>{var c;let{state:l}=await a(i,o);if(l!==Xy.WaiterState.RETRY)return{state:l};let u=1,p=Date.now()+r*1e3,m=Math.log(t/e)/Math.log(2)+1;for(;;){if(((c=n==null?void 0:n.signal)===null||c===void 0?void 0:c.aborted)||(s==null?void 0:s.aborted))return{state:Xy.WaiterState.ABORTED};let h=c0e(e,t,m,u);if(Date.now()+h*1e3>p)return{state:Xy.WaiterState.TIMEOUT};await(0,a0e.sleep)(h);let{state:g}=await a(i,o);if(g!==Xy.WaiterState.RETRY)return{state:g};u+=1}};Zy.runPolling=u0e});var OF=d(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.validateWaiterOptions=void 0;var d0e=e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)};eg.validateWaiterOptions=d0e});var DF=d(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});var NF=M();NF.__exportStar(NT(),tg);NF.__exportStar(OF(),tg)});var MF=d(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});rg.createWaiter=void 0;var f0e=PF(),m0e=DF(),LF=Qy(),qF=async e=>new Promise(t=>{e.onabort=()=>t({state:LF.WaiterState.ABORTED})}),p0e=async(e,t,r)=>{let n={...LF.waiterServiceDefaults,...e};(0,m0e.validateWaiterOptions)(n);let i=[(0,f0e.runPolling)(n,t,r)];return e.abortController&&i.push(qF(e.abortController.signal)),e.abortSignal&&i.push(qF(e.abortSignal)),Promise.race(i)};rg.createWaiter=p0e});var DT=d(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});var jF=M();jF.__exportStar(MF(),ng);jF.__exportStar(Qy(),ng)});var kF=d(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.waitUntilTableExists=So.waitForTableExists=void 0;var vo=DT(),_0e=ic(),zF=async(e,t)=>{let r;try{let n=await e.send(new _0e.DescribeTableCommand(t));r=n;try{if((()=>n.Table.TableStatus)()==="ACTIVE")return{state:vo.WaiterState.SUCCESS,reason:r}}catch{}}catch(n){if(r=n,n.name&&n.name=="ResourceNotFoundException")return{state:vo.WaiterState.RETRY,reason:r}}return{state:vo.WaiterState.RETRY,reason:r}},h0e=async(e,t)=>{let r={minDelay:20,maxDelay:120};return(0,vo.createWaiter)({...r,...e},t,zF)};So.waitForTableExists=h0e;var y0e=async(e,t)=>{let r={minDelay:20,maxDelay:120},n=await(0,vo.createWaiter)({...r,...e},t,zF);return(0,vo.checkExceptions)(n)};So.waitUntilTableExists=y0e});var UF=d(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.waitUntilTableNotExists=wo.waitForTableNotExists=void 0;var ql=DT(),g0e=ic(),FF=async(e,t)=>{let r;try{r=await e.send(new g0e.DescribeTableCommand(t))}catch(n){if(r=n,n.name&&n.name=="ResourceNotFoundException")return{state:ql.WaiterState.SUCCESS,reason:r}}return{state:ql.WaiterState.RETRY,reason:r}},v0e=async(e,t)=>{let r={minDelay:20,maxDelay:120};return(0,ql.createWaiter)({...r,...e},t,FF)};wo.waitForTableNotExists=v0e;var S0e=async(e,t)=>{let r={minDelay:20,maxDelay:120},n=await(0,ql.createWaiter)({...r,...e},t,FF);return(0,ql.checkExceptions)(n)};wo.waitUntilTableNotExists=S0e});var GF=d(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var BF=M();BF.__exportStar(kF(),ig);BF.__exportStar(UF(),ig)});var Ct=d(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.DynamoDBServiceException=void 0;var Eo=M();Eo.__exportStar(fs(),_n);Eo.__exportStar(Si(),_n);Eo.__exportStar(SF(),_n);Eo.__exportStar(wF(),_n);Eo.__exportStar(RF(),_n);Eo.__exportStar(GF(),_n);var w0e=$u();Object.defineProperty(_n,"DynamoDBServiceException",{enumerable:!0,get:function(){return w0e.DynamoDBServiceException}})});var dU=d((FFe,ag)=>{var $F,VF,HF,KF,WF,YF,JF,QF,XF,sg,qT,ZF,eU,tU,bo,rU,nU,iU,sU,oU,aU,cU,lU,uU,og;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof ag=="object"&&typeof ag.exports=="object"?e(r(t,r(ag.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(s,o){return n[s]=i?i(s,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])};$F=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function s(){this.constructor=n}n.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)},VF=Object.assign||function(n){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},HF=function(n,i){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(n);a<o.length;a++)i.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(n,o[a])&&(s[o[a]]=n[o[a]]);return s},KF=function(n,i,s,o){var a=arguments.length,c=a<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,s):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,i,s,o);else for(var u=n.length-1;u>=0;u--)(l=n[u])&&(c=(a<3?l(c):a>3?l(i,s,c):l(i,s))||c);return a>3&&c&&Object.defineProperty(i,s,c),c},WF=function(n,i){return function(s,o){i(s,o,n)}},YF=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},JF=function(n,i,s,o){function a(c){return c instanceof s?c:new s(function(l){l(c)})}return new(s||(s=Promise))(function(c,l){function u(h){try{m(o.next(h))}catch(g){l(g)}}function p(h){try{m(o.throw(h))}catch(g){l(g)}}function m(h){h.done?c(h.value):a(h.value).then(u,p)}m((o=o.apply(n,i||[])).next())})},QF=function(n,i){var s={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,a,c,l;return l={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function u(m){return function(h){return p([m,h])}}function p(m){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,a&&(c=m[0]&2?a.return:m[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,m[1])).done)return c;switch(a=0,c&&(m=[m[0]&2,c.value]),m[0]){case 0:case 1:c=m;break;case 4:return s.label++,{value:m[1],done:!1};case 5:s.label++,a=m[1],m=[0];continue;case 7:m=s.ops.pop(),s.trys.pop();continue;default:if(c=s.trys,!(c=c.length>0&&c[c.length-1])&&(m[0]===6||m[0]===2)){s=0;continue}if(m[0]===3&&(!c||m[1]>c[0]&&m[1]<c[3])){s.label=m[1];break}if(m[0]===6&&s.label<c[1]){s.label=c[1],c=m;break}if(c&&s.label<c[2]){s.label=c[2],s.ops.push(m);break}c[2]&&s.ops.pop(),s.trys.pop();continue}m=i.call(n,s)}catch(h){m=[6,h],a=0}finally{o=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},XF=function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&og(i,n,s)},og=Object.create?function(n,i,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,o,a)}:function(n,i,s,o){o===void 0&&(o=s),n[o]=i[s]},sg=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&n[i],o=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},qT=function(n,i){var s=typeof Symbol=="function"&&n[Symbol.iterator];if(!s)return n;var o=s.call(n),a,c=[],l;try{for(;(i===void 0||i-- >0)&&!(a=o.next()).done;)c.push(a.value)}catch(u){l={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(l)throw l.error}}return c},ZF=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(qT(arguments[i]));return n},eU=function(){for(var n=0,i=0,s=arguments.length;i<s;i++)n+=arguments[i].length;for(var o=Array(n),a=0,i=0;i<s;i++)for(var c=arguments[i],l=0,u=c.length;l<u;l++,a++)o[a]=c[l];return o},tU=function(n,i,s){if(s||arguments.length===2)for(var o=0,a=i.length,c;o<a;o++)(c||!(o in i))&&(c||(c=Array.prototype.slice.call(i,0,o)),c[o]=i[o]);return n.concat(c||Array.prototype.slice.call(i))},bo=function(n){return this instanceof bo?(this.v=n,this):new bo(n)},rU=function(n,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s.apply(n,i||[]),a,c=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(y){o[y]&&(a[y]=function(w){return new Promise(function(C,T){c.push([y,w,C,T])>1||u(y,w)})})}function u(y,w){try{p(o[y](w))}catch(C){g(c[0][3],C)}}function p(y){y.value instanceof bo?Promise.resolve(y.value.v).then(m,h):g(c[0][2],y)}function m(y){u("next",y)}function h(y){u("throw",y)}function g(y,w){y(w),c.shift(),c.length&&u(c[0][0],c[0][1])}},nU=function(n){var i,s;return i={},o("next"),o("throw",function(a){throw a}),o("return"),i[Symbol.iterator]=function(){return this},i;function o(a,c){i[a]=n[a]?function(l){return(s=!s)?{value:bo(n[a](l)),done:a==="return"}:c?c(l):l}:c}},iU=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],s;return i?i.call(n):(n=typeof sg=="function"?sg(n):n[Symbol.iterator](),s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s);function o(c){s[c]=n[c]&&function(l){return new Promise(function(u,p){l=n[c](l),a(u,p,l.done,l.value)})}}function a(c,l,u,p){Promise.resolve(p).then(function(m){c({value:m,done:u})},l)}},sU=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};oU=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&og(i,n,s);return r(i,n),i},aU=function(n){return n&&n.__esModule?n:{default:n}},cU=function(n,i,s,o){if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!o:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?o:s==="a"?o.call(n):o?o.value:i.get(n)},lU=function(n,i,s,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(n,s):a?a.value=s:i.set(n,s),s},uU=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",$F),e("__assign",VF),e("__rest",HF),e("__decorate",KF),e("__param",WF),e("__metadata",YF),e("__awaiter",JF),e("__generator",QF),e("__exportStar",XF),e("__createBinding",og),e("__values",sg),e("__read",qT),e("__spread",ZF),e("__spreadArrays",eU),e("__spreadArray",tU),e("__await",bo),e("__asyncGenerator",rU),e("__asyncDelegator",nU),e("__asyncValues",iU),e("__makeTemplateObject",sU),e("__importStar",oU),e("__importDefault",aU),e("__classPrivateFieldGet",cU),e("__classPrivateFieldSet",lU),e("__classPrivateFieldIn",uU)})});var cg=d(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.toHex=Ao.fromHex=void 0;var fU={},LT={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),fU[e]=t,LT[t]=e}function E0e(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let n=e.slice(r,r+2).toLowerCase();if(n in LT)t[r/2]=LT[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}Ao.fromHex=E0e;function b0e(e){let t="";for(let r=0;r<e.byteLength;r++)t+=fU[e[r]];return t}Ao.toHex=b0e});var qU=d((BFe,dg)=>{var mU,pU,_U,hU,yU,gU,vU,SU,wU,lg,MT,EU,bU,AU,To,TU,CU,xU,IU,RU,PU,OU,NU,DU,ug;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof dg=="object"&&typeof dg.exports=="object"?e(r(t,r(dg.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(s,o){return n[s]=i?i(s,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])};mU=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function s(){this.constructor=n}n.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)},pU=Object.assign||function(n){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},_U=function(n,i){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(n);a<o.length;a++)i.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(n,o[a])&&(s[o[a]]=n[o[a]]);return s},hU=function(n,i,s,o){var a=arguments.length,c=a<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,s):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,i,s,o);else for(var u=n.length-1;u>=0;u--)(l=n[u])&&(c=(a<3?l(c):a>3?l(i,s,c):l(i,s))||c);return a>3&&c&&Object.defineProperty(i,s,c),c},yU=function(n,i){return function(s,o){i(s,o,n)}},gU=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},vU=function(n,i,s,o){function a(c){return c instanceof s?c:new s(function(l){l(c)})}return new(s||(s=Promise))(function(c,l){function u(h){try{m(o.next(h))}catch(g){l(g)}}function p(h){try{m(o.throw(h))}catch(g){l(g)}}function m(h){h.done?c(h.value):a(h.value).then(u,p)}m((o=o.apply(n,i||[])).next())})},SU=function(n,i){var s={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,a,c,l;return l={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function u(m){return function(h){return p([m,h])}}function p(m){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,a&&(c=m[0]&2?a.return:m[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,m[1])).done)return c;switch(a=0,c&&(m=[m[0]&2,c.value]),m[0]){case 0:case 1:c=m;break;case 4:return s.label++,{value:m[1],done:!1};case 5:s.label++,a=m[1],m=[0];continue;case 7:m=s.ops.pop(),s.trys.pop();continue;default:if(c=s.trys,!(c=c.length>0&&c[c.length-1])&&(m[0]===6||m[0]===2)){s=0;continue}if(m[0]===3&&(!c||m[1]>c[0]&&m[1]<c[3])){s.label=m[1];break}if(m[0]===6&&s.label<c[1]){s.label=c[1],c=m;break}if(c&&s.label<c[2]){s.label=c[2],s.ops.push(m);break}c[2]&&s.ops.pop(),s.trys.pop();continue}m=i.call(n,s)}catch(h){m=[6,h],a=0}finally{o=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},wU=function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&ug(i,n,s)},ug=Object.create?function(n,i,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,o,a)}:function(n,i,s,o){o===void 0&&(o=s),n[o]=i[s]},lg=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&n[i],o=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},MT=function(n,i){var s=typeof Symbol=="function"&&n[Symbol.iterator];if(!s)return n;var o=s.call(n),a,c=[],l;try{for(;(i===void 0||i-- >0)&&!(a=o.next()).done;)c.push(a.value)}catch(u){l={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(l)throw l.error}}return c},EU=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(MT(arguments[i]));return n},bU=function(){for(var n=0,i=0,s=arguments.length;i<s;i++)n+=arguments[i].length;for(var o=Array(n),a=0,i=0;i<s;i++)for(var c=arguments[i],l=0,u=c.length;l<u;l++,a++)o[a]=c[l];return o},AU=function(n,i,s){if(s||arguments.length===2)for(var o=0,a=i.length,c;o<a;o++)(c||!(o in i))&&(c||(c=Array.prototype.slice.call(i,0,o)),c[o]=i[o]);return n.concat(c||Array.prototype.slice.call(i))},To=function(n){return this instanceof To?(this.v=n,this):new To(n)},TU=function(n,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s.apply(n,i||[]),a,c=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(y){o[y]&&(a[y]=function(w){return new Promise(function(C,T){c.push([y,w,C,T])>1||u(y,w)})})}function u(y,w){try{p(o[y](w))}catch(C){g(c[0][3],C)}}function p(y){y.value instanceof To?Promise.resolve(y.value.v).then(m,h):g(c[0][2],y)}function m(y){u("next",y)}function h(y){u("throw",y)}function g(y,w){y(w),c.shift(),c.length&&u(c[0][0],c[0][1])}},CU=function(n){var i,s;return i={},o("next"),o("throw",function(a){throw a}),o("return"),i[Symbol.iterator]=function(){return this},i;function o(a,c){i[a]=n[a]?function(l){return(s=!s)?{value:To(n[a](l)),done:a==="return"}:c?c(l):l}:c}},xU=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],s;return i?i.call(n):(n=typeof lg=="function"?lg(n):n[Symbol.iterator](),s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s);function o(c){s[c]=n[c]&&function(l){return new Promise(function(u,p){l=n[c](l),a(u,p,l.done,l.value)})}}function a(c,l,u,p){Promise.resolve(p).then(function(m){c({value:m,done:u})},l)}},IU=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};RU=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&ug(i,n,s);return r(i,n),i},PU=function(n){return n&&n.__esModule?n:{default:n}},OU=function(n,i,s,o){if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!o:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?o:s==="a"?o.call(n):o?o.value:i.get(n)},NU=function(n,i,s,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(n,s):a?a.value=s:i.set(n,s),s},DU=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",mU),e("__assign",pU),e("__rest",_U),e("__decorate",hU),e("__param",yU),e("__metadata",gU),e("__awaiter",vU),e("__generator",SU),e("__exportStar",wU),e("__createBinding",ug),e("__values",lg),e("__read",MT),e("__spread",EU),e("__spreadArrays",bU),e("__spreadArray",AU),e("__await",To),e("__asyncGenerator",TU),e("__asyncDelegator",CU),e("__asyncValues",xU),e("__makeTemplateObject",IU),e("__importStar",RU),e("__importDefault",PU),e("__classPrivateFieldGet",OU),e("__classPrivateFieldSet",NU),e("__classPrivateFieldIn",DU)})});var LU=d(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.normalizeProvider=void 0;var A0e=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};fg.normalizeProvider=A0e});var MU=d(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});var T0e=qU();T0e.__exportStar(LU(),jT)});var ms=d(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.MAX_PRESIGNED_TTL=V.KEY_TYPE_IDENTIFIER=V.MAX_CACHE_SIZE=V.UNSIGNED_PAYLOAD=V.EVENT_ALGORITHM_IDENTIFIER=V.ALGORITHM_IDENTIFIER_V4A=V.ALGORITHM_IDENTIFIER=V.UNSIGNABLE_PATTERNS=V.SEC_HEADER_PATTERN=V.PROXY_HEADER_PATTERN=V.ALWAYS_UNSIGNABLE_HEADERS=V.HOST_HEADER=V.TOKEN_HEADER=V.SHA256_HEADER=V.SIGNATURE_HEADER=V.GENERATED_HEADERS=V.DATE_HEADER=V.AMZ_DATE_HEADER=V.AUTH_HEADER=V.REGION_SET_PARAM=V.TOKEN_QUERY_PARAM=V.SIGNATURE_QUERY_PARAM=V.EXPIRES_QUERY_PARAM=V.SIGNED_HEADERS_QUERY_PARAM=V.AMZ_DATE_QUERY_PARAM=V.CREDENTIAL_QUERY_PARAM=V.ALGORITHM_QUERY_PARAM=void 0;V.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";V.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";V.AMZ_DATE_QUERY_PARAM="X-Amz-Date";V.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";V.EXPIRES_QUERY_PARAM="X-Amz-Expires";V.SIGNATURE_QUERY_PARAM="X-Amz-Signature";V.TOKEN_QUERY_PARAM="X-Amz-Security-Token";V.REGION_SET_PARAM="X-Amz-Region-Set";V.AUTH_HEADER="authorization";V.AMZ_DATE_HEADER=V.AMZ_DATE_QUERY_PARAM.toLowerCase();V.DATE_HEADER="date";V.GENERATED_HEADERS=[V.AUTH_HEADER,V.AMZ_DATE_HEADER,V.DATE_HEADER];V.SIGNATURE_HEADER=V.SIGNATURE_QUERY_PARAM.toLowerCase();V.SHA256_HEADER="x-amz-content-sha256";V.TOKEN_HEADER=V.TOKEN_QUERY_PARAM.toLowerCase();V.HOST_HEADER="host";V.ALWAYS_UNSIGNABLE_HEADERS={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0};V.PROXY_HEADER_PATTERN=/^proxy-/;V.SEC_HEADER_PATTERN=/^sec-/;V.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];V.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";V.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";V.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";V.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";V.MAX_CACHE_SIZE=50;V.KEY_TYPE_IDENTIFIER="aws4_request";V.MAX_PRESIGNED_TTL=60*60*24*7});var kT=d(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.clearCredentialCache=Ei.getSigningKey=Ei.createScope=void 0;var C0e=cg(),zT=ms(),Co={},mg=[],x0e=(e,t,r)=>`${e}/${t}/${r}/${zT.KEY_TYPE_IDENTIFIER}`;Ei.createScope=x0e;var I0e=async(e,t,r,n,i)=>{let s=await jU(e,t.secretAccessKey,t.accessKeyId),o=`${r}:${n}:${i}:${(0,C0e.toHex)(s)}:${t.sessionToken}`;if(o in Co)return Co[o];for(mg.push(o);mg.length>zT.MAX_CACHE_SIZE;)delete Co[mg.shift()];let a=`AWS4${t.secretAccessKey}`;for(let c of[r,n,i,zT.KEY_TYPE_IDENTIFIER])a=await jU(e,a,c);return Co[o]=a};Ei.getSigningKey=I0e;var R0e=()=>{mg.length=0,Object.keys(Co).forEach(e=>{delete Co[e]})};Ei.clearCredentialCache=R0e;var jU=(e,t,r)=>{let n=new e(t);return n.update(r),n.digest()}});var UT=d(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.getCanonicalHeaders=void 0;var FT=ms(),P0e=({headers:e},t,r)=>{let n={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in FT.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||FT.PROXY_HEADER_PATTERN.test(s)||FT.SEC_HEADER_PATTERN.test(s))&&(!r||r&&!r.has(s))||(n[s]=e[i].trim().replace(/\s+/g," "))}return n};pg.getCanonicalHeaders=P0e});var sB=d((WFe,yg)=>{var zU,kU,FU,UU,BU,GU,$U,VU,HU,_g,BT,KU,WU,YU,xo,JU,QU,XU,ZU,eB,tB,rB,nB,iB,hg;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof yg=="object"&&typeof yg.exports=="object"?e(r(t,r(yg.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(s,o){return n[s]=i?i(s,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])};zU=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function s(){this.constructor=n}n.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)},kU=Object.assign||function(n){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},FU=function(n,i){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(n);a<o.length;a++)i.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(n,o[a])&&(s[o[a]]=n[o[a]]);return s},UU=function(n,i,s,o){var a=arguments.length,c=a<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,s):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,i,s,o);else for(var u=n.length-1;u>=0;u--)(l=n[u])&&(c=(a<3?l(c):a>3?l(i,s,c):l(i,s))||c);return a>3&&c&&Object.defineProperty(i,s,c),c},BU=function(n,i){return function(s,o){i(s,o,n)}},GU=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},$U=function(n,i,s,o){function a(c){return c instanceof s?c:new s(function(l){l(c)})}return new(s||(s=Promise))(function(c,l){function u(h){try{m(o.next(h))}catch(g){l(g)}}function p(h){try{m(o.throw(h))}catch(g){l(g)}}function m(h){h.done?c(h.value):a(h.value).then(u,p)}m((o=o.apply(n,i||[])).next())})},VU=function(n,i){var s={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,a,c,l;return l={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function u(m){return function(h){return p([m,h])}}function p(m){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,a&&(c=m[0]&2?a.return:m[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,m[1])).done)return c;switch(a=0,c&&(m=[m[0]&2,c.value]),m[0]){case 0:case 1:c=m;break;case 4:return s.label++,{value:m[1],done:!1};case 5:s.label++,a=m[1],m=[0];continue;case 7:m=s.ops.pop(),s.trys.pop();continue;default:if(c=s.trys,!(c=c.length>0&&c[c.length-1])&&(m[0]===6||m[0]===2)){s=0;continue}if(m[0]===3&&(!c||m[1]>c[0]&&m[1]<c[3])){s.label=m[1];break}if(m[0]===6&&s.label<c[1]){s.label=c[1],c=m;break}if(c&&s.label<c[2]){s.label=c[2],s.ops.push(m);break}c[2]&&s.ops.pop(),s.trys.pop();continue}m=i.call(n,s)}catch(h){m=[6,h],a=0}finally{o=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},HU=function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&hg(i,n,s)},hg=Object.create?function(n,i,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,o,a)}:function(n,i,s,o){o===void 0&&(o=s),n[o]=i[s]},_g=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&n[i],o=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},BT=function(n,i){var s=typeof Symbol=="function"&&n[Symbol.iterator];if(!s)return n;var o=s.call(n),a,c=[],l;try{for(;(i===void 0||i-- >0)&&!(a=o.next()).done;)c.push(a.value)}catch(u){l={error:u}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(l)throw l.error}}return c},KU=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(BT(arguments[i]));return n},WU=function(){for(var n=0,i=0,s=arguments.length;i<s;i++)n+=arguments[i].length;for(var o=Array(n),a=0,i=0;i<s;i++)for(var c=arguments[i],l=0,u=c.length;l<u;l++,a++)o[a]=c[l];return o},YU=function(n,i,s){if(s||arguments.length===2)for(var o=0,a=i.length,c;o<a;o++)(c||!(o in i))&&(c||(c=Array.prototype.slice.call(i,0,o)),c[o]=i[o]);return n.concat(c||Array.prototype.slice.call(i))},xo=function(n){return this instanceof xo?(this.v=n,this):new xo(n)},JU=function(n,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s.apply(n,i||[]),a,c=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(y){o[y]&&(a[y]=function(w){return new Promise(function(C,T){c.push([y,w,C,T])>1||u(y,w)})})}function u(y,w){try{p(o[y](w))}catch(C){g(c[0][3],C)}}function p(y){y.value instanceof xo?Promise.resolve(y.value.v).then(m,h):g(c[0][2],y)}function m(y){u("next",y)}function h(y){u("throw",y)}function g(y,w){y(w),c.shift(),c.length&&u(c[0][0],c[0][1])}},QU=function(n){var i,s;return i={},o("next"),o("throw",function(a){throw a}),o("return"),i[Symbol.iterator]=function(){return this},i;function o(a,c){i[a]=n[a]?function(l){return(s=!s)?{value:xo(n[a](l)),done:a==="return"}:c?c(l):l}:c}},XU=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],s;return i?i.call(n):(n=typeof _g=="function"?_g(n):n[Symbol.iterator](),s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s);function o(c){s[c]=n[c]&&function(l){return new Promise(function(u,p){l=n[c](l),a(u,p,l.done,l.value)})}}function a(c,l,u,p){Promise.resolve(p).then(function(m){c({value:m,done:u})},l)}},ZU=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};eB=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&hg(i,n,s);return r(i,n),i},tB=function(n){return n&&n.__esModule?n:{default:n}},rB=function(n,i,s,o){if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!o:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?o:s==="a"?o.call(n):o?o.value:i.get(n)},nB=function(n,i,s,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(n,s):a?a.value=s:i.set(n,s),s},iB=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",zU),e("__assign",kU),e("__rest",FU),e("__decorate",UU),e("__param",BU),e("__metadata",GU),e("__awaiter",$U),e("__generator",VU),e("__exportStar",HU),e("__createBinding",hg),e("__values",_g),e("__read",BT),e("__spread",KU),e("__spreadArrays",WU),e("__spreadArray",YU),e("__await",xo),e("__asyncGenerator",JU),e("__asyncDelegator",QU),e("__asyncValues",XU),e("__makeTemplateObject",ZU),e("__importStar",eB),e("__importDefault",tB),e("__classPrivateFieldGet",rB),e("__classPrivateFieldSet",nB),e("__classPrivateFieldIn",iB)})});var GT=d(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.escapeUri=void 0;var O0e=e=>encodeURIComponent(e).replace(/[!'()*]/g,N0e);gg.escapeUri=O0e;var N0e=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var oB=d(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.escapeUriPath=void 0;var D0e=GT(),q0e=e=>e.split("/").map(D0e.escapeUri).join("/");vg.escapeUriPath=q0e});var cB=d(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});var aB=sB();aB.__exportStar(GT(),Sg);aB.__exportStar(oB(),Sg)});var $T=d(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.getCanonicalQuery=void 0;var wg=cB(),L0e=ms(),M0e=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e).sort()){if(n.toLowerCase()===L0e.SIGNATURE_HEADER)continue;t.push(n);let i=e[n];typeof i=="string"?r[n]=`${(0,wg.escapeUri)(n)}=${(0,wg.escapeUri)(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).sort().reduce((s,o)=>s.concat([`${(0,wg.escapeUri)(n)}=${(0,wg.escapeUri)(o)}`]),[]).join("&"))}return t.map(n=>r[n]).filter(n=>n).join("&")};Eg.getCanonicalQuery=M0e});var lB=d(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.isArrayBuffer=void 0;var j0e=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";bg.isArrayBuffer=j0e});var VT=d(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.getPayloadHash=void 0;var z0e=lB(),k0e=cg(),uB=ms(),F0e=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===uB.SHA256_HEADER)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,z0e.isArrayBuffer)(t)){let n=new r;return n.update(t),(0,k0e.toHex)(await n.digest())}return uB.UNSIGNED_PAYLOAD};Ag.getPayloadHash=F0e});var dB=d(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.deleteHeader=bi.getHeaderValue=bi.hasHeader=void 0;var U0e=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1};bi.hasHeader=U0e;var B0e=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return t[r]};bi.getHeaderValue=B0e;var G0e=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))e===r.toLowerCase()&&delete t[r]};bi.deleteHeader=G0e});var HT=d(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.cloneQuery=ps.cloneRequest=void 0;var $0e=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?(0,ps.cloneQuery)(t):void 0});ps.cloneRequest=$0e;var V0e=e=>Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{});ps.cloneQuery=V0e});var KT=d(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});Tg.moveHeadersToQuery=void 0;var H0e=HT(),K0e=(e,t={})=>{var r;let{headers:n,query:i={}}=typeof e.clone=="function"?e.clone():(0,H0e.cloneRequest)(e);for(let s of Object.keys(n)){let o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!(!((r=t.unhoistableHeaders)===null||r===void 0)&&r.has(o))&&(i[s]=n[s],delete n[s])}return{...e,headers:n,query:i}};Tg.moveHeadersToQuery=K0e});var WT=d(Cg=>{"use strict";Object.defineProperty(Cg,"__esModule",{value:!0});Cg.prepareRequest=void 0;var W0e=HT(),Y0e=ms(),J0e=e=>{e=typeof e.clone=="function"?e.clone():(0,W0e.cloneRequest)(e);for(let t of Object.keys(e.headers))Y0e.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};Cg.prepareRequest=J0e});var fB=d(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.toDate=_s.iso8601=void 0;var Q0e=e=>(0,_s.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");_s.iso8601=Q0e;var X0e=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;_s.toDate=X0e});var yB=d(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.SignatureV4=void 0;var xg=cg(),mB=MU(),ft=ms(),Ig=kT(),pB=UT(),Z0e=$T(),YT=VT(),eEe=dB(),tEe=KT(),_B=WT(),rEe=fB(),JT=class{constructor({applyChecksum:t,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=(0,mB.normalizeProvider)(n),this.credentialProvider=(0,mB.normalizeProvider)(r)}async presign(t,r={}){let{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:c,signingService:l}=r,u=await this.credentialProvider(),p=c??await this.regionProvider(),{longDate:m,shortDate:h}=Rg(n);if(i>ft.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let g=(0,Ig.createScope)(h,p,l??this.service),y=(0,tEe.moveHeadersToQuery)((0,_B.prepareRequest)(t),{unhoistableHeaders:o});u.sessionToken&&(y.query[ft.TOKEN_QUERY_PARAM]=u.sessionToken),y.query[ft.ALGORITHM_QUERY_PARAM]=ft.ALGORITHM_IDENTIFIER,y.query[ft.CREDENTIAL_QUERY_PARAM]=`${u.accessKeyId}/${g}`,y.query[ft.AMZ_DATE_QUERY_PARAM]=m,y.query[ft.EXPIRES_QUERY_PARAM]=i.toString(10);let w=(0,pB.getCanonicalHeaders)(y,s,a);return y.query[ft.SIGNED_HEADERS_QUERY_PARAM]=hB(w),y.query[ft.SIGNATURE_QUERY_PARAM]=await this.getSignature(m,g,this.getSigningKey(u,p,h,l),this.createCanonicalRequest(y,w,await(0,YT.getPayloadHash)(t,this.sha256))),y}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){let a=s??await this.regionProvider(),{shortDate:c,longDate:l}=Rg(n),u=(0,Ig.createScope)(c,a,o??this.service),p=await(0,YT.getPayloadHash)({headers:{},body:r},this.sha256),m=new this.sha256;m.update(t);let h=(0,xg.toHex)(await m.digest()),g=[ft.EVENT_ALGORITHM_IDENTIFIER,l,u,i,h,p].join(`
30
+ `);return this.signString(g,{signingDate:n,signingRegion:a,signingService:o})}async signString(t,{signingDate:r=new Date,signingRegion:n,signingService:i}={}){let s=await this.credentialProvider(),o=n??await this.regionProvider(),{shortDate:a}=Rg(r),c=new this.sha256(await this.getSigningKey(s,o,a,i));return c.update(t),(0,xg.toHex)(await c.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider(),c=s??await this.regionProvider(),l=(0,_B.prepareRequest)(t),{longDate:u,shortDate:p}=Rg(r),m=(0,Ig.createScope)(p,c,o??this.service);l.headers[ft.AMZ_DATE_HEADER]=u,a.sessionToken&&(l.headers[ft.TOKEN_HEADER]=a.sessionToken);let h=await(0,YT.getPayloadHash)(l,this.sha256);!(0,eEe.hasHeader)(ft.SHA256_HEADER,l.headers)&&this.applyChecksum&&(l.headers[ft.SHA256_HEADER]=h);let g=(0,pB.getCanonicalHeaders)(l,i,n),y=await this.getSignature(u,m,this.getSigningKey(a,c,p,o),this.createCanonicalRequest(l,g,h));return l.headers[ft.AUTH_HEADER]=`${ft.ALGORITHM_IDENTIFIER} Credential=${a.accessKeyId}/${m}, SignedHeaders=${hB(g)}, Signature=${y}`,l}createCanonicalRequest(t,r,n){let i=Object.keys(r).sort();return`${t.method}
31
+ ${this.getCanonicalPath(t)}
32
+ ${(0,Z0e.getCanonicalQuery)(t)}
33
+ ${i.map(s=>`${s}:${r[s]}`).join(`
34
+ `)}
35
+
36
+ ${i.join(";")}
37
+ ${n}`}async createStringToSign(t,r,n){let i=new this.sha256;i.update(n);let s=await i.digest();return`${ft.ALGORITHM_IDENTIFIER}
38
+ ${t}
39
+ ${r}
40
+ ${(0,xg.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let r=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let n=`${t!=null&&t.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(t==null?void 0:t.endsWith("/"))?"/":""}`;return encodeURIComponent(n).replace(/%2F/g,"/")}return t}async getSignature(t,r,n,i){let s=await this.createStringToSign(t,r,i),o=new this.sha256(await n);return o.update(s),(0,xg.toHex)(await o.digest())}getSigningKey(t,r,n,i){return(0,Ig.getSigningKey)(this.sha256,t,n,r,i||this.service)}};Pg.SignatureV4=JT;var Rg=e=>{let t=(0,rEe.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},hB=e=>Object.keys(e).sort().join(";")});var vB=d(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.prepareRequest=Lt.moveHeadersToQuery=Lt.getPayloadHash=Lt.getCanonicalQuery=Lt.getCanonicalHeaders=void 0;var gB=dU();gB.__exportStar(yB(),Lt);var nEe=UT();Object.defineProperty(Lt,"getCanonicalHeaders",{enumerable:!0,get:function(){return nEe.getCanonicalHeaders}});var iEe=$T();Object.defineProperty(Lt,"getCanonicalQuery",{enumerable:!0,get:function(){return iEe.getCanonicalQuery}});var sEe=VT();Object.defineProperty(Lt,"getPayloadHash",{enumerable:!0,get:function(){return sEe.getPayloadHash}});var oEe=KT();Object.defineProperty(Lt,"moveHeadersToQuery",{enumerable:!0,get:function(){return oEe.moveHeadersToQuery}});var aEe=WT();Object.defineProperty(Lt,"prepareRequest",{enumerable:!0,get:function(){return aEe.prepareRequest}});gB.__exportStar(kT(),Lt)});var hs=d((cUe,Ng)=>{var SB,wB,EB,bB,AB,TB,CB,xB,IB,Og,QT,RB,PB,Io,OB,NB,DB,qB,LB,MB,jB,zB,kB;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Ng=="object"&&typeof Ng.exports=="object"?e(r(t,r(Ng.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(s,o){return n[s]=i?i(s,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};SB=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},wB=Object.assign||function(r){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},EB=function(r,n){var i={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&n.indexOf(s)<0&&(i[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(r);o<s.length;o++)n.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(r,s[o])&&(i[s[o]]=r[s[o]]);return i},bB=function(r,n,i,s){var o=arguments.length,a=o<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,i):s,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,s);else for(var l=r.length-1;l>=0;l--)(c=r[l])&&(a=(o<3?c(a):o>3?c(n,i,a):c(n,i))||a);return o>3&&a&&Object.defineProperty(n,i,a),a},AB=function(r,n){return function(i,s){n(i,s,r)}},TB=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},CB=function(r,n,i,s){function o(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function l(m){try{p(s.next(m))}catch(h){c(h)}}function u(m){try{p(s.throw(m))}catch(h){c(h)}}function p(m){m.done?a(m.value):o(m.value).then(l,u)}p((s=s.apply(r,n||[])).next())})},xB=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,o,a,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(m){return u([p,m])}}function u(p){if(s)throw new TypeError("Generator is already executing.");for(;i;)try{if(s=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,o=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){i.label=p[1];break}if(p[0]===6&&i.label<a[1]){i.label=a[1],a=p;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(p);break}a[2]&&i.ops.pop(),i.trys.pop();continue}p=n.call(r,i)}catch(m){p=[6,m],o=0}finally{s=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},kB=function(r,n,i,s){s===void 0&&(s=i),r[s]=n[i]},IB=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Og=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],s=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&s>=r.length&&(r=void 0),{value:r&&r[s++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},QT=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var s=i.call(r),o,a=[],c;try{for(;(n===void 0||n-- >0)&&!(o=s.next()).done;)a.push(o.value)}catch(l){c={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(c)throw c.error}}return a},RB=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(QT(arguments[n]));return r},PB=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var s=Array(r),o=0,n=0;n<i;n++)for(var a=arguments[n],c=0,l=a.length;c<l;c++,o++)s[o]=a[c];return s},Io=function(r){return this instanceof Io?(this.v=r,this):new Io(r)},OB=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=i.apply(r,n||[]),o,a=[];return o={},c("next"),c("throw"),c("return"),o[Symbol.asyncIterator]=function(){return this},o;function c(g){s[g]&&(o[g]=function(y){return new Promise(function(w,C){a.push([g,y,w,C])>1||l(g,y)})})}function l(g,y){try{u(s[g](y))}catch(w){h(a[0][3],w)}}function u(g){g.value instanceof Io?Promise.resolve(g.value.v).then(p,m):h(a[0][2],g)}function p(g){l("next",g)}function m(g){l("throw",g)}function h(g,y){g(y),a.shift(),a.length&&l(a[0][0],a[0][1])}},NB=function(r){var n,i;return n={},s("next"),s("throw",function(o){throw o}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(o,a){n[o]=r[o]?function(c){return(i=!i)?{value:Io(r[o](c)),done:o==="return"}:a?a(c):c}:a}},DB=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Og=="function"?Og(r):r[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(a){i[a]=r[a]&&function(c){return new Promise(function(l,u){c=r[a](c),o(l,u,c.done,c.value)})}}function o(a,c,l,u){Promise.resolve(u).then(function(p){a({value:p,done:l})},c)}},qB=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},LB=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},MB=function(r){return r&&r.__esModule?r:{default:r}},jB=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},zB=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",SB),e("__assign",wB),e("__rest",EB),e("__decorate",bB),e("__param",AB),e("__metadata",TB),e("__awaiter",CB),e("__generator",xB),e("__exportStar",IB),e("__createBinding",kB),e("__values",Og),e("__read",QT),e("__spread",RB),e("__spreadArrays",PB),e("__await",Io),e("__asyncGenerator",OB),e("__asyncDelegator",NB),e("__asyncValues",DB),e("__makeTemplateObject",qB),e("__importStar",LB),e("__importDefault",MB),e("__classPrivateFieldGet",jB),e("__classPrivateFieldSet",zB)})});var FB=d(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.isEmptyData=void 0;function cEe(e){return typeof e=="string"?e.length===0:e.byteLength===0}Dg.isEmptyData=cEe});var XT=d(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.EMPTY_DATA_SHA_256=Un.SHA_256_HMAC_ALGO=Un.SHA_256_HASH=void 0;Un.SHA_256_HASH={name:"SHA-256"};Un.SHA_256_HMAC_ALGO={name:"HMAC",hash:Un.SHA_256_HASH};Un.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])});var UB=d(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.toUtf8=Ro.fromUtf8=void 0;var lEe=e=>{let t=[];for(let r=0,n=e.length;r<n;r++){let i=e.charCodeAt(r);if(i<128)t.push(i);else if(i<2048)t.push(i>>6|192,i&63|128);else if(r+1<e.length&&(i&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320){let s=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023);t.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else t.push(i>>12|224,i>>6&63|128,i&63|128)}return Uint8Array.from(t)};Ro.fromUtf8=lEe;var uEe=e=>{let t="";for(let r=0,n=e.length;r<n;r++){let i=e[r];if(i<128)t+=String.fromCharCode(i);else if(192<=i&&i<224){let s=e[++r];t+=String.fromCharCode((i&31)<<6|s&63)}else if(240<=i&&i<365){let s=[i,e[++r],e[++r],e[++r]],o="%"+s.map(a=>a.toString(16)).join("%");t+=decodeURIComponent(o)}else t+=String.fromCharCode((i&15)<<12|(e[++r]&63)<<6|e[++r]&63)}return t};Ro.toUtf8=uEe});var BB=d(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.toUtf8=Po.fromUtf8=void 0;function dEe(e){return new TextEncoder().encode(e)}Po.fromUtf8=dEe;function fEe(e){return new TextDecoder("utf-8").decode(e)}Po.toUtf8=fEe});var ZT=d(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.toUtf8=Oo.fromUtf8=void 0;var GB=UB(),$B=BB(),mEe=e=>typeof TextEncoder=="function"?(0,$B.fromUtf8)(e):(0,GB.fromUtf8)(e);Oo.fromUtf8=mEe;var pEe=e=>typeof TextDecoder=="function"?(0,$B.toUtf8)(e):(0,GB.toUtf8)(e);Oo.toUtf8=pEe});var Lg=d(qg=>{Object.defineProperty(qg,"__esModule",{value:!0});qg.locateWindow=void 0;var _Ee={};function hEe(){return typeof window<"u"?window:typeof self<"u"?self:_Ee}qg.locateWindow=hEe});var tC=d(Mg=>{"use strict";Object.defineProperty(Mg,"__esModule",{value:!0});Mg.Sha256=void 0;var yEe=FB(),VB=XT(),gEe=ZT(),eC=Lg(),vEe=function(){function e(t){this.secret=t,this.reset()}return e.prototype.update=function(t){var r=this;(0,yEe.isEmptyData)(t)||(this.operation=this.operation.then(function(n){return n.onerror=function(){r.operation=Promise.reject(new Error("Error encountered updating hash"))},n.process(HB(t)),n}),this.operation.catch(function(){}))},e.prototype.digest=function(){return this.operation.then(function(t){return new Promise(function(r,n){t.onerror=function(){n(new Error("Error encountered finalizing hash"))},t.oncomplete=function(){t.result&&r(new Uint8Array(t.result)),n(new Error("Error encountered finalizing hash"))},t.finish()})})},e.prototype.reset=function(){this.secret?(this.operation=SEe(this.secret).then(function(t){return(0,eC.locateWindow)().msCrypto.subtle.sign(VB.SHA_256_HMAC_ALGO,t)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,eC.locateWindow)().msCrypto.subtle.digest("SHA-256"))},e}();Mg.Sha256=vEe;function SEe(e){return new Promise(function(t,r){var n=(0,eC.locateWindow)().msCrypto.subtle.importKey("raw",HB(e),VB.SHA_256_HMAC_ALGO,!1,["sign"]);n.oncomplete=function(){n.result&&t(n.result),r(new Error("ImportKey completed without importing key."))},n.onerror=function(){r(new Error("ImportKey failed to import key."))}})}function HB(e){return typeof e=="string"?(0,gEe.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}});var KB=d(jg=>{"use strict";Object.defineProperty(jg,"__esModule",{value:!0});jg.convertToBuffer=void 0;var wEe=ZT(),EEe=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:wEe.fromUtf8;function bEe(e){return e instanceof Uint8Array?e:typeof e=="string"?EEe(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}jg.convertToBuffer=bEe});var WB=d(zg=>{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});zg.isEmptyData=void 0;function AEe(e){return typeof e=="string"?e.length===0:e.byteLength===0}zg.isEmptyData=AEe});var YB=d(kg=>{"use strict";Object.defineProperty(kg,"__esModule",{value:!0});kg.numToUint8=void 0;function TEe(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}kg.numToUint8=TEe});var JB=d(Fg=>{"use strict";Object.defineProperty(Fg,"__esModule",{value:!0});Fg.uint32ArrayFrom=void 0;function CEe(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}Fg.uint32ArrayFrom=CEe});var Ug=d(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.uint32ArrayFrom=hn.numToUint8=hn.isEmptyData=hn.convertToBuffer=void 0;var xEe=KB();Object.defineProperty(hn,"convertToBuffer",{enumerable:!0,get:function(){return xEe.convertToBuffer}});var IEe=WB();Object.defineProperty(hn,"isEmptyData",{enumerable:!0,get:function(){return IEe.isEmptyData}});var REe=YB();Object.defineProperty(hn,"numToUint8",{enumerable:!0,get:function(){return REe.numToUint8}});var PEe=JB();Object.defineProperty(hn,"uint32ArrayFrom",{enumerable:!0,get:function(){return PEe.uint32ArrayFrom}})});var nC=d($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});$g.Sha256=void 0;var Bg=Ug(),Gg=XT(),rC=Lg(),OEe=function(){function e(t){this.toHash=new Uint8Array(0),this.secret=t,this.reset()}return e.prototype.update=function(t){if(!(0,Bg.isEmptyData)(t)){var r=(0,Bg.convertToBuffer)(t),n=new Uint8Array(this.toHash.byteLength+r.byteLength);n.set(this.toHash,0),n.set(r,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(r){return(0,rC.locateWindow)().crypto.subtle.sign(Gg.SHA_256_HMAC_ALGO,r,t.toHash).then(function(n){return new Uint8Array(n)})}):(0,Bg.isEmptyData)(this.toHash)?Promise.resolve(Gg.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,rC.locateWindow)().crypto.subtle.digest(Gg.SHA_256_HASH,t.toHash)}).then(function(r){return Promise.resolve(new Uint8Array(r))})},e.prototype.reset=function(){var t=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(r,n){(0,rC.locateWindow)().crypto.subtle.importKey("raw",(0,Bg.convertToBuffer)(t.secret),Gg.SHA_256_HMAC_ALGO,!1,["sign"]).then(r,n)}),this.key.catch(function(){}))},e}();$g.Sha256=OEe});var iC=d(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.MAX_HASHABLE_LENGTH=mr.INIT=mr.KEY=mr.DIGEST_LENGTH=mr.BLOCK_SIZE=void 0;mr.BLOCK_SIZE=64;mr.DIGEST_LENGTH=32;mr.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);mr.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];mr.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1});var QB=d(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});Vg.RawSha256=void 0;var pr=iC(),NEe=function(){function e(){this.state=Int32Array.from(pr.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,n=t.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>pr.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=t[r++],n--,this.bufferLength===pr.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(r.setUint8(this.bufferLength++,128),n%pr.BLOCK_SIZE>=pr.BLOCK_SIZE-8){for(var i=this.bufferLength;i<pr.BLOCK_SIZE;i++)r.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<pr.BLOCK_SIZE-8;i++)r.setUint8(i,0);r.setUint32(pr.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),r.setUint32(pr.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(pr.DIGEST_LENGTH),i=0;i<8;i++)s[i*4]=this.state[i]>>>24&255,s[i*4+1]=this.state[i]>>>16&255,s[i*4+2]=this.state[i]>>>8&255,s[i*4+3]=this.state[i]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,r=t.buffer,n=t.state,i=n[0],s=n[1],o=n[2],a=n[3],c=n[4],l=n[5],u=n[6],p=n[7],m=0;m<pr.BLOCK_SIZE;m++){if(m<16)this.temp[m]=(r[m*4]&255)<<24|(r[m*4+1]&255)<<16|(r[m*4+2]&255)<<8|r[m*4+3]&255;else{var h=this.temp[m-2],g=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10;h=this.temp[m-15];var y=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[m]=(g+this.temp[m-7]|0)+(y+this.temp[m-16]|0)}var w=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&l^~c&u)|0)+(p+(pr.KEY[m]+this.temp[m]|0)|0)|0,C=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&s^i&o^s&o)|0;p=u,u=l,l=c,c=a+w|0,a=o,o=s,s=i,i=w+C|0}n[0]+=i,n[1]+=s,n[2]+=o,n[3]+=a,n[4]+=c,n[5]+=l,n[6]+=u,n[7]+=p},e}();Vg.RawSha256=NEe});var ZB=d(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});Wg.Sha256=void 0;var XB=hs(),Kg=iC(),Hg=QB(),sC=Ug(),DEe=function(){function e(t){this.secret=t,this.hash=new Hg.RawSha256,this.reset()}return e.prototype.update=function(t){if(!((0,sC.isEmptyData)(t)||this.error))try{this.hash.update((0,sC.convertToBuffer)(t))}catch(r){this.error=r}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return XB.__awaiter(this,void 0,void 0,function(){return XB.__generator(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new Hg.RawSha256,this.secret){this.outer=new Hg.RawSha256;var t=qEe(this.secret),r=new Uint8Array(Kg.BLOCK_SIZE);r.set(t);for(var n=0;n<Kg.BLOCK_SIZE;n++)t[n]^=54,r[n]^=92;this.hash.update(t),this.outer.update(r);for(var n=0;n<t.byteLength;n++)t[n]=0}},e}();Wg.Sha256=DEe;function qEe(e){var t=(0,sC.convertToBuffer)(e);if(t.byteLength>Kg.BLOCK_SIZE){var r=new Hg.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(Kg.BLOCK_SIZE);return n.set(t),n}});var eG=d(oC=>{"use strict";Object.defineProperty(oC,"__esModule",{value:!0});var LEe=hs();LEe.__exportStar(ZB(),oC)});var nG=d(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.supportsZeroByteGCM=yn.supportsSubtleCrypto=yn.supportsSecureRandom=yn.supportsWebCrypto=void 0;var tG=hs(),MEe=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function jEe(e){if(rG(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return aC(t)}return!1}yn.supportsWebCrypto=jEe;function rG(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}yn.supportsSecureRandom=rG;function aC(e){return e&&MEe.every(function(t){return typeof e[t]=="function"})}yn.supportsSubtleCrypto=aC;function zEe(e){return tG.__awaiter(this,void 0,void 0,function(){var t,r,n;return tG.__generator(this,function(i){switch(i.label){case 0:if(!aC(e))return[2,!1];i.label=1;case 1:return i.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=i.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return r=i.sent(),[2,r.byteLength===16];case 4:return n=i.sent(),[2,!1];case 5:return[2]}})})}yn.supportsZeroByteGCM=zEe});var iG=d(cC=>{"use strict";Object.defineProperty(cC,"__esModule",{value:!0});var kEe=hs();kEe.__exportStar(nG(),cC)});var oG=d(sG=>{"use strict";Object.defineProperty(sG,"__esModule",{value:!0})});var cG=d(aG=>{"use strict";Object.defineProperty(aG,"__esModule",{value:!0})});var uG=d(lG=>{"use strict";Object.defineProperty(lG,"__esModule",{value:!0})});var fG=d(dG=>{"use strict";Object.defineProperty(dG,"__esModule",{value:!0})});var mG=d(Yg=>{"use strict";Object.defineProperty(Yg,"__esModule",{value:!0});Yg.isMsWindow=void 0;var FEe=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function UEe(e){return"MSInputMethodContext"in e&&"msCrypto"in e}function BEe(e){if(UEe(e)&&e.msCrypto.subtle!==void 0){var t=e.msCrypto,r=t.getRandomValues,n=t.subtle;return FEe.map(function(i){return n[i]}).concat(r).every(function(i){return typeof i=="function"})}return!1}Yg.isMsWindow=BEe});var pG=d(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});var Ll=hs();Ll.__exportStar(oG(),ys);Ll.__exportStar(cG(),ys);Ll.__exportStar(uG(),ys);Ll.__exportStar(fG(),ys);Ll.__exportStar(mG(),ys)});var hG=d(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});Jg.Sha256=void 0;var GEe=tC(),$Ee=nC(),VEe=eG(),HEe=iG(),KEe=pG(),_G=Lg(),WEe=Ug(),YEe=function(){function e(t){(0,HEe.supportsWebCrypto)((0,_G.locateWindow)())?this.hash=new $Ee.Sha256(t):(0,KEe.isMsWindow)((0,_G.locateWindow)())?this.hash=new GEe.Sha256(t):this.hash=new VEe.Sha256(t)}return e.prototype.update=function(t,r){this.hash.update((0,WEe.convertToBuffer)(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();Jg.Sha256=YEe});var yG=d(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.WebCryptoSha256=gs.Ie11Sha256=void 0;var JEe=hs();JEe.__exportStar(hG(),gs);var QEe=tC();Object.defineProperty(gs,"Ie11Sha256",{enumerable:!0,get:function(){return QEe.Sha256}});var XEe=nC();Object.defineProperty(gs,"WebCryptoSha256",{enumerable:!0,get:function(){return XEe.Sha256}})});var lC=d(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.convertToAttr=void 0;var ZEe=(e,t)=>{var r,n,i,s,o,a;if(e===void 0)throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(e===null&&typeof e=="object")return Qg();if(Array.isArray(e))return ebe(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Set")return tbe(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Map")return rbe(e,t);if(((i=e==null?void 0:e.constructor)===null||i===void 0?void 0:i.name)==="Object"||!e.constructor&&typeof e=="object")return gG(e,t);if(AG(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Qg():SG(e);if(typeof e=="boolean"||((s=e==null?void 0:e.constructor)===null||s===void 0?void 0:s.name)==="Boolean")return{BOOL:e.valueOf()};if(typeof e=="number"||((o=e==null?void 0:e.constructor)===null||o===void 0?void 0:o.name)==="Number")return bG(e);if(typeof e=="bigint")return EG(e);if(typeof e=="string"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Qg():wG(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return gG(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};vs.convertToAttr=ZEe;var ebe=(e,t)=>({L:e.filter(r=>!(t!=null&&t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&r!==void 0).map(r=>(0,vs.convertToAttr)(r,t))}),tbe=(e,t)=>{let r=t!=null&&t.removeUndefinedValues?new Set([...e].filter(i=>i!==void 0)):e;if(!(t!=null&&t.removeUndefinedValues)&&r.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(r.size===0){if(t!=null&&t.convertEmptyValues)return Qg();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let n=r.values().next().value;if(typeof n=="number")return{NS:Array.from(r).map(bG).map(i=>i.N)};if(typeof n=="bigint")return{NS:Array.from(r).map(EG).map(i=>i.N)};if(typeof n=="string")return{SS:Array.from(r).map(wG).map(i=>i.S)};if(AG(n))return{BS:Array.from(r).map(SG).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},rbe=(e,t)=>({M:(r=>{let n={};for(let[i,s]of r)typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(n[i]=(0,vs.convertToAttr)(s,t));return n})(e)}),gG=(e,t)=>({M:(r=>{let n={};for(let i in r){let s=r[i];typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(n[i]=(0,vs.convertToAttr)(s,t))}return n})(e)}),Qg=()=>({NULL:!0}),SG=e=>({B:e}),wG=e=>({S:e.toString()}),EG=e=>({N:e.toString()}),vG=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},bG=e=>{if([Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY].map(t=>t.toString()).includes(e.toString()))throw new Error(`Special numeric value ${e.toString()} is not allowed`);return e>Number.MAX_SAFE_INTEGER?vG(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&vG(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},AG=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return e!=null&&e.constructor?t.includes(e.constructor.name):!1}});var uC=d(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.convertToNative=void 0;var nbe=(e,t)=>{for(let[r,n]of Object.entries(e))if(n!==void 0)switch(r){case"NULL":return null;case"BOOL":return Boolean(n);case"N":return TG(n,t);case"B":return xG(n);case"S":return CG(n);case"L":return ibe(n,t);case"M":return sbe(n,t);case"NS":return new Set(n.map(i=>TG(i,t)));case"BS":return new Set(n.map(xG));case"SS":return new Set(n.map(CG));default:throw new Error(`Unsupported type passed: ${r}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};No.convertToNative=nbe;var TG=(e,t)=>{if(t!=null&&t.wrapNumbers)return{value:e};let r=Number(e),n=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)&&!n.includes(r))if(typeof BigInt=="function")try{return BigInt(e)}catch{throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}else throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);return r},CG=e=>e,xG=e=>e,ibe=(e,t)=>e.map(r=>(0,No.convertToNative)(r,t)),sbe=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[n]:(0,No.convertToNative)(i,t)}),{})});var IG=d(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0});Xg.marshall=void 0;var obe=lC();function abe(e,t){let r=(0,obe.convertToAttr)(e,t),[n,i]=Object.entries(r)[0];switch(n){case"M":case"L":return i;case"SS":case"NS":case"BS":case"S":case"N":case"B":case"NULL":case"BOOL":case"$unknown":default:return r}}Xg.marshall=abe});var PG=d(RG=>{"use strict";Object.defineProperty(RG,"__esModule",{value:!0})});var OG=d(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});Zg.unmarshall=void 0;var cbe=uC(),lbe=(e,t)=>(0,cbe.convertToNative)({M:e},t);Zg.unmarshall=lbe});var NG=d(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});var Ml=M();Ml.__exportStar(lC(),Ss);Ml.__exportStar(uC(),Ss);Ml.__exportStar(IG(),Ss);Ml.__exportStar(PG(),Ss);Ml.__exportStar(OG(),Ss)});var Mt=d(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.unmarshallOutput=Do.marshallInput=void 0;var qG=NG(),DG=(e,t,r)=>{if(e!==void 0)return!r||Array.isArray(r)&&r.length===0?t(e):Array.isArray(r)?dC(e,t,r):ube(e,t,r.children)},LG=(e,t,r)=>Array.isArray(e)?e.map(n=>DG(n,t,r)):DG(e,t,r),dC=(e,t,r)=>r.reduce((n,{key:i,children:s})=>({...n,[i]:LG(n[i],t,s)}),e),ube=(e,t,r)=>Object.entries(e).reduce((n,[i,s])=>({...n,[i]:LG(s,t,r)}),{}),dbe=(e,t,r)=>dC(e,i=>(0,qG.marshall)(i,r),t);Do.marshallInput=dbe;var fbe=(e,t,r)=>dC(e,i=>(0,qG.unmarshall)(i,r),t);Do.unmarshallOutput=fbe});var mC=d(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0});ev.BatchExecuteStatementCommand=void 0;var mbe=Ct(),pbe=P(),MG=Mt(),fC=class extends pbe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Statements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new mbe.BatchExecuteStatementCommand((0,MG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,MG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};ev.BatchExecuteStatementCommand=fC});var _C=d(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0});tv.BatchGetCommand=void 0;var _be=Ct(),hbe=P(),jG=Mt(),pC=class extends hbe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"Keys"}]}}],this.outputKeyNodes=[{key:"Responses",children:{}},{key:"UnprocessedKeys",children:{children:[{key:"Keys"}]}}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new _be.BatchGetItemCommand((0,jG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,jG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};tv.BatchGetCommand=pC});var yC=d(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0});rv.BatchWriteCommand=void 0;var ybe=Ct(),gbe=P(),zG=Mt(),hC=class extends gbe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}}],this.outputKeyNodes=[{key:"UnprocessedItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}},{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new ybe.BatchWriteItemCommand((0,zG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,zG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};rv.BatchWriteCommand=hC});var vC=d(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0});nv.DeleteCommand=void 0;var vbe=Ct(),Sbe=P(),kG=Mt(),gC=class extends Sbe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new vbe.DeleteItemCommand((0,kG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,kG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};nv.DeleteCommand=gC});var wC=d(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});iv.ExecuteStatementCommand=void 0;var wbe=Ct(),Ebe=P(),FG=Mt(),SC=class extends Ebe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new wbe.ExecuteStatementCommand((0,FG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,FG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};iv.ExecuteStatementCommand=SC});var bC=d(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});sv.ExecuteTransactionCommand=void 0;var bbe=Ct(),Abe=P(),UG=Mt(),EC=class extends Abe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactStatements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new bbe.ExecuteTransactionCommand((0,UG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,UG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};sv.ExecuteTransactionCommand=EC});var TC=d(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});ov.GetCommand=void 0;var Tbe=Ct(),Cbe=P(),BG=Mt(),AC=class extends Cbe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Tbe.GetItemCommand((0,BG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,BG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};ov.GetCommand=AC});var xC=d(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});av.PutCommand=void 0;var xbe=Ct(),Ibe=P(),GG=Mt(),CC=class extends Ibe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Item"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new xbe.PutItemCommand((0,GG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,GG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};av.PutCommand=CC});var lv=d(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});cv.QueryCommand=void 0;var Rbe=Ct(),Pbe=P(),$G=Mt(),IC=class extends Pbe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"KeyConditions",children:{children:[{key:"AttributeValueList"}]}},{key:"QueryFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Rbe.QueryCommand((0,$G.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,$G.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};cv.QueryCommand=IC});var dv=d(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0});uv.ScanCommand=void 0;var Obe=Ct(),Nbe=P(),VG=Mt(),RC=class extends Nbe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"ScanFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Obe.ScanCommand((0,VG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,VG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};uv.ScanCommand=RC});var OC=d(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});fv.TransactGetCommand=void 0;var Dbe=Ct(),qbe=P(),HG=Mt(),PC=class extends qbe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"Get",children:[{key:"Key"}]}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Dbe.TransactGetItemsCommand((0,HG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,HG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};fv.TransactGetCommand=PC});var DC=d(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});mv.TransactWriteCommand=void 0;var Lbe=Ct(),Mbe=P(),KG=Mt(),NC=class extends Mbe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"ConditionCheck",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Put",children:[{key:"Item"},{key:"ExpressionAttributeValues"}]},{key:"Delete",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Update",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]}]}],this.outputKeyNodes=[{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Lbe.TransactWriteItemsCommand((0,KG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,KG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};mv.TransactWriteCommand=NC});var LC=d(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});pv.UpdateCommand=void 0;var jbe=Ct(),zbe=P(),WG=Mt(),qC=class extends zbe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"AttributeUpdates",children:{children:[{key:"Value"}]}},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new jbe.UpdateItemCommand((0,WG.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,WG.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};pv.UpdateCommand=qC});var zl=d(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});_v.DynamoDBDocumentClient=void 0;var kbe=P(),jl=class extends kbe.Client{constructor(t,r){super(t.config),this.config=t.config,this.config.translateConfig=r,this.middlewareStack=t.middlewareStack}static from(t,r){return new jl(t,r)}destroy(){}};_v.DynamoDBDocumentClient=jl});var yv=d(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});hv.DynamoDBDocument=void 0;var Fbe=mC(),Ube=_C(),Bbe=yC(),Gbe=vC(),$be=wC(),Vbe=bC(),Hbe=TC(),Kbe=xC(),Wbe=lv(),Ybe=dv(),Jbe=OC(),Qbe=DC(),Xbe=LC(),Zbe=zl(),kl=class extends Zbe.DynamoDBDocumentClient{static from(t,r){return new kl(t,r)}batchExecuteStatement(t,r,n){let i=new Fbe.BatchExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchGet(t,r,n){let i=new Ube.BatchGetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchWrite(t,r,n){let i=new Bbe.BatchWriteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}delete(t,r,n){let i=new Gbe.DeleteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeStatement(t,r,n){let i=new $be.ExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeTransaction(t,r,n){let i=new Vbe.ExecuteTransactionCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}get(t,r,n){let i=new Hbe.GetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}put(t,r,n){let i=new Kbe.PutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}query(t,r,n){let i=new Wbe.QueryCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}scan(t,r,n){let i=new Ybe.ScanCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactGet(t,r,n){let i=new Jbe.TransactGetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactWrite(t,r,n){let i=new Qbe.TransactWriteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}update(t,r,n){let i=new Xbe.UpdateCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};hv.DynamoDBDocument=kl});var YG=d(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});var Qt=M();Qt.__exportStar(mC(),xt);Qt.__exportStar(_C(),xt);Qt.__exportStar(yC(),xt);Qt.__exportStar(vC(),xt);Qt.__exportStar(wC(),xt);Qt.__exportStar(bC(),xt);Qt.__exportStar(TC(),xt);Qt.__exportStar(xC(),xt);Qt.__exportStar(lv(),xt);Qt.__exportStar(dv(),xt);Qt.__exportStar(OC(),xt);Qt.__exportStar(DC(),xt);Qt.__exportStar(LC(),xt)});var QG=d(JG=>{"use strict";Object.defineProperty(JG,"__esModule",{value:!0})});var XG=d(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});gv.paginateQuery=void 0;var eAe=lv(),tAe=yv(),rAe=zl(),nAe=async(e,t,...r)=>await e.send(new eAe.QueryCommand(t),...r),iAe=async(e,t,...r)=>await e.query(t,...r);async function*sAe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof tAe.DynamoDBDocument)s=await iAe(e.client,t,...r);else if(e.client instanceof rAe.DynamoDBDocumentClient)s=await nAe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,n=s.LastEvaluatedKey,i=!!n}return void 0}gv.paginateQuery=sAe});var ZG=d(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});vv.paginateScan=void 0;var oAe=dv(),aAe=yv(),cAe=zl(),lAe=async(e,t,...r)=>await e.send(new oAe.ScanCommand(t),...r),uAe=async(e,t,...r)=>await e.scan(t,...r);async function*dAe(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof aAe.DynamoDBDocument)s=await uAe(e.client,t,...r);else if(e.client instanceof cAe.DynamoDBDocumentClient)s=await lAe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,n=s.LastEvaluatedKey,i=!!n}return void 0}vv.paginateScan=dAe});var e2=d(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var MC=M();MC.__exportStar(QG(),Fl);MC.__exportStar(XG(),Fl);MC.__exportStar(ZG(),Fl)});var t2=d(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});var Sv=M();Sv.__exportStar(yv(),qo);Sv.__exportStar(zl(),qo);Sv.__exportStar(YG(),qo);Sv.__exportStar(e2(),qo)});var r2=d(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.DBManager=void 0;var fAe=t2(),jC=class{get client(){return this._client}get ddbDocClient(){return this._ddbDocClient}constructor(t){let{dynamoClient:r,tableName:n}=t;this._tableName=n,this._client=r,this._ddbDocClient=fAe.DynamoDBDocument.from(this._client)}get tableName(){return this._tableName}set tableName(t){this._tableName=t}};wv.DBManager=jC});var n2=d(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.TransformationType=void 0;var mAe;(function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(mAe=Ul.TransformationType||(Ul.TransformationType={}))});var Bl=d(ws=>{"use strict";var pAe=ws&&ws.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),_Ae=ws&&ws.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&pAe(t,e,r)};Object.defineProperty(ws,"__esModule",{value:!0});_Ae(n2(),ws)});var i2=d(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});Ev.MetadataStorage=void 0;var Bn=Bl(),zC=class{constructor(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}addTypeMetadata(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)}addTransformMetadata(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)}addExposeMetadata(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)}addExcludeMetadata(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)}findTransformMetadatas(t,r,n){return this.findMetadatas(this._transformMetadatas,t,r).filter(i=>!i.options||i.options.toClassOnly===!0&&i.options.toPlainOnly===!0?!0:i.options.toClassOnly===!0?n===Bn.TransformationType.CLASS_TO_CLASS||n===Bn.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?n===Bn.TransformationType.CLASS_TO_PLAIN:!0)}findExcludeMetadata(t,r){return this.findMetadata(this._excludeMetadatas,t,r)}findExposeMetadata(t,r){return this.findMetadata(this._exposeMetadatas,t,r)}findExposeMetadataByCustomName(t,r){return this.getExposedMetadatas(t).find(n=>n.options&&n.options.name===r)}findTypeMetadata(t,r){return this.findMetadata(this._typeMetadatas,t,r)}getStrategy(t){let r=this._excludeMetadatas.get(t),n=r&&r.get(void 0),i=this._exposeMetadatas.get(t),s=i&&i.get(void 0);return n&&s||!n&&!s?"none":n?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,r){return this.getExposedMetadatas(t).filter(n=>!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===Bn.TransformationType.CLASS_TO_CLASS||r===Bn.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===Bn.TransformationType.CLASS_TO_PLAIN:!0).map(n=>n.propertyName)}getExcludedProperties(t,r){return this.getExcludedMetadatas(t).filter(n=>!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===Bn.TransformationType.CLASS_TO_CLASS||r===Bn.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===Bn.TransformationType.CLASS_TO_PLAIN:!0).map(n=>n.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,r){let n=t.get(r),i;n&&(i=Array.from(n.values()).filter(o=>o.propertyName!==void 0));let s=[];for(let o of this.getAncestors(r)){let a=t.get(o);if(a){let c=Array.from(a.values()).filter(l=>l.propertyName!==void 0);s.push(...c)}}return s.concat(i||[])}findMetadata(t,r,n){let i=t.get(r);if(i){let s=i.get(n);if(s)return s}for(let s of this.getAncestors(r)){let o=t.get(s);if(o){let a=o.get(n);if(a)return a}}}findMetadatas(t,r,n){let i=t.get(r),s;i&&(s=i.get(n));let o=[];for(let a of this.getAncestors(r)){let c=t.get(a);c&&c.has(n)&&o.push(...c.get(n))}return o.slice().reverse().concat((s||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let r=[];for(let n=Object.getPrototypeOf(t.prototype.constructor);typeof n.prototype<"u";n=Object.getPrototypeOf(n.prototype.constructor))r.push(n);this._ancestorsMap.set(t,r)}return this._ancestorsMap.get(t)}};Ev.MetadataStorage=zC});var Lo=d(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});bv.defaultMetadataStorage=void 0;var hAe=i2();bv.defaultMetadataStorage=new hAe.MetadataStorage});var s2=d(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.getGlobal=void 0;function yAe(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}Av.getGlobal=yAe});var o2=d(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});Tv.isPromise=void 0;function gAe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}Tv.isPromise=gAe});var c2=d(Ai=>{"use strict";var vAe=Ai&&Ai.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),a2=Ai&&Ai.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&vAe(t,e,r)};Object.defineProperty(Ai,"__esModule",{value:!0});a2(s2(),Ai);a2(o2(),Ai)});var u2=d(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});Cv.TransformOperationExecutor=void 0;var jt=Lo(),Ge=Bl(),l2=c2();function SAe(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var kC=class{constructor(t,r){this.transformationType=t,this.options=r,this.recursionStack=new Set}transform(t,r,n,i,s,o=0){if(Array.isArray(r)||r instanceof Set){let a=i&&this.transformationType===Ge.TransformationType.PLAIN_TO_CLASS?SAe(i):[];return r.forEach((c,l)=>{let u=t?t[l]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(c)){let p;if(typeof n!="function"&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(this.transformationType===Ge.TransformationType.PLAIN_TO_CLASS){p=n.options.discriminator.subTypes.find(y=>y.name===c[n.options.discriminator.property]);let h={newObject:a,object:c,property:void 0},g=n.typeFunction(h);p===void 0?p=g:p=p.value,n.options.keepDiscriminatorProperty||delete c[n.options.discriminator.property]}this.transformationType===Ge.TransformationType.CLASS_TO_CLASS&&(p=c.constructor),this.transformationType===Ge.TransformationType.CLASS_TO_PLAIN&&(c[n.options.discriminator.property]=n.options.discriminator.subTypes.find(h=>h.value===c.constructor).name)}else p=n;let m=this.transform(u,c,p,void 0,c instanceof Map,o+1);a instanceof Set?a.add(m):a.push(m)}else this.transformationType===Ge.TransformationType.CLASS_TO_CLASS&&(a instanceof Set?a.add(c):a.push(c))}),a}else{if(n===String&&!s)return r==null?r:String(r);if(n===Number&&!s)return r==null?r:Number(r);if(n===Boolean&&!s)return r==null?r:Boolean(r);if((n===Date||r instanceof Date)&&!s)return r instanceof Date?new Date(r.valueOf()):r==null?r:new Date(r);if(!!(0,l2.getGlobal)().Buffer&&(n===Buffer||r instanceof Buffer)&&!s)return r==null?r:Buffer.from(r);if((0,l2.isPromise)(r)&&!s)return new Promise((a,c)=>{r.then(l=>a(this.transform(void 0,l,n,void 0,void 0,o+1)),c)});if(!s&&r!==null&&typeof r=="object"&&typeof r.then=="function")return r;if(typeof r=="object"&&r!==null){!n&&r.constructor!==Object&&(!Array.isArray(r)&&r.constructor===Array||(n=r.constructor)),!n&&t&&(n=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(r);let a=this.getKeys(n,r,s),c=t||{};!t&&(this.transformationType===Ge.TransformationType.PLAIN_TO_CLASS||this.transformationType===Ge.TransformationType.CLASS_TO_CLASS)&&(s?c=new Map:n?c=new n:c={});for(let l of a){if(l==="__proto__"||l==="constructor")continue;let u=l,p=l,m=l;if(!this.options.ignoreDecorators&&n){if(this.transformationType===Ge.TransformationType.PLAIN_TO_CLASS){let T=jt.defaultMetadataStorage.findExposeMetadataByCustomName(n,l);T&&(m=T.propertyName,p=T.propertyName)}else if(this.transformationType===Ge.TransformationType.CLASS_TO_PLAIN||this.transformationType===Ge.TransformationType.CLASS_TO_CLASS){let T=jt.defaultMetadataStorage.findExposeMetadata(n,l);T&&T.options&&T.options.name&&(p=T.options.name)}}let h;this.transformationType===Ge.TransformationType.PLAIN_TO_CLASS?h=r[u]:r instanceof Map?h=r.get(u):r[u]instanceof Function?h=r[u]():h=r[u];let g,y=h instanceof Map;if(n&&s)g=n;else if(n){let T=jt.defaultMetadataStorage.findTypeMetadata(n,m);if(T){let B={newObject:c,object:r,property:m},_e=T.typeFunction?T.typeFunction(B):T.reflectedType;T.options&&T.options.discriminator&&T.options.discriminator.property&&T.options.discriminator.subTypes?r[u]instanceof Array?g=T:(this.transformationType===Ge.TransformationType.PLAIN_TO_CLASS&&(g=T.options.discriminator.subTypes.find(ot=>{if(h&&h instanceof Object&&T.options.discriminator.property in h)return ot.name===h[T.options.discriminator.property]}),g===void 0?g=_e:g=g.value,T.options.keepDiscriminatorProperty||h&&h instanceof Object&&T.options.discriminator.property in h&&delete h[T.options.discriminator.property]),this.transformationType===Ge.TransformationType.CLASS_TO_CLASS&&(g=h.constructor),this.transformationType===Ge.TransformationType.CLASS_TO_PLAIN&&h&&(h[T.options.discriminator.property]=T.options.discriminator.subTypes.find(ot=>ot.value===h.constructor).name)):g=_e,y=y||T.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(B=>B.target===n&&!!B.properties[m]).forEach(B=>g=B.properties[m]);else if(this.options.enableImplicitConversion&&this.transformationType===Ge.TransformationType.PLAIN_TO_CLASS){let B=Reflect.getMetadata("design:type",n.prototype,m);B&&(g=B)}}let w=Array.isArray(r[u])?this.getReflectedType(n,m):void 0,C=t?t[u]:void 0;if(c.constructor.prototype){let T=Object.getOwnPropertyDescriptor(c.constructor.prototype,p);if((this.transformationType===Ge.TransformationType.PLAIN_TO_CLASS||this.transformationType===Ge.TransformationType.CLASS_TO_CLASS)&&(T&&!T.set||c[p]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(h)){let T=this.transformationType===Ge.TransformationType.PLAIN_TO_CLASS?p:l,B;this.transformationType===Ge.TransformationType.CLASS_TO_PLAIN?(B=r[T],B=this.applyCustomTransformations(B,n,T,r,this.transformationType),B=r[T]===B?h:B,B=this.transform(C,B,g,w,y,o+1)):h===void 0&&this.options.exposeDefaultValues?B=c[p]:(B=this.transform(C,h,g,w,y,o+1),B=this.applyCustomTransformations(B,n,T,r,this.transformationType)),(B!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(p,B):c[p]=B)}else if(this.transformationType===Ge.TransformationType.CLASS_TO_CLASS){let T=h;T=this.applyCustomTransformations(T,n,l,r,this.transformationType),(T!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(p,T):c[p]=T)}}return this.options.enableCircularCheck&&this.recursionStack.delete(r),c}else return r}}applyCustomTransformations(t,r,n,i,s){let o=jt.defaultMetadataStorage.findTransformMetadatas(r,n,this.transformationType);return this.options.version!==void 0&&(o=o.filter(a=>a.options?this.checkVersion(a.options.since,a.options.until):!0)),this.options.groups&&this.options.groups.length?o=o.filter(a=>a.options?this.checkGroups(a.options.groups):!0):o=o.filter(a=>!a.options||!a.options.groups||!a.options.groups.length),o.forEach(a=>{t=a.transformFn({value:t,key:n,obj:i,type:s,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,r){if(!t)return;let n=jt.defaultMetadataStorage.findTypeMetadata(t,r);return n?n.reflectedType:void 0}getKeys(t,r,n){let i=jt.defaultMetadataStorage.getStrategy(t);i==="none"&&(i=this.options.strategy||"exposeAll");let s=[];if((i==="exposeAll"||n)&&(r instanceof Map?s=Array.from(r.keys()):s=Object.keys(r)),n)return s;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){let o=jt.defaultMetadataStorage.getExposedProperties(t,this.transformationType),a=jt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);s=[...o,...a]}if(!this.options.ignoreDecorators&&t){let o=jt.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===Ge.TransformationType.PLAIN_TO_CLASS&&(o=o.map(c=>{let l=jt.defaultMetadataStorage.findExposeMetadata(t,c);return l&&l.options&&l.options.name?l.options.name:c})),this.options.excludeExtraneousValues?s=o:s=s.concat(o);let a=jt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);a.length>0&&(s=s.filter(c=>!a.includes(c))),this.options.version!==void 0&&(s=s.filter(c=>{let l=jt.defaultMetadataStorage.findExposeMetadata(t,c);return!l||!l.options?!0:this.checkVersion(l.options.since,l.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(c=>{let l=jt.defaultMetadataStorage.findExposeMetadata(t,c);return!l||!l.options?!0:this.checkGroups(l.options.groups)}):s=s.filter(c=>{let l=jt.defaultMetadataStorage.findExposeMetadata(t,c);return!l||!l.options||!l.options.groups||!l.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(o=>this.options.excludePrefixes.every(a=>o.substr(0,a.length)!==a))),s=s.filter((o,a,c)=>c.indexOf(o)===a),s}checkVersion(t,r){let n=!0;return n&&t&&(n=this.options.version>=t),n&&r&&(n=this.options.version<r),n}checkGroups(t){return t?this.options.groups.some(r=>t.includes(r)):!0}};Cv.TransformOperationExecutor=kC});var d2=d(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.defaultOptions=void 0;xv.defaultOptions={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0}});var ko=d(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});Iv.ClassTransformer=void 0;var Mo=u2(),jo=Bl(),zo=d2(),FC=class{instanceToPlain(t,r){return new Mo.TransformOperationExecutor(jo.TransformationType.CLASS_TO_PLAIN,{...zo.defaultOptions,...r}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,r,n){return new Mo.TransformOperationExecutor(jo.TransformationType.CLASS_TO_PLAIN,{...zo.defaultOptions,...n}).transform(r,t,void 0,void 0,void 0,void 0)}plainToInstance(t,r,n){return new Mo.TransformOperationExecutor(jo.TransformationType.PLAIN_TO_CLASS,{...zo.defaultOptions,...n}).transform(void 0,r,t,void 0,void 0,void 0)}plainToClassFromExist(t,r,n){return new Mo.TransformOperationExecutor(jo.TransformationType.PLAIN_TO_CLASS,{...zo.defaultOptions,...n}).transform(t,r,void 0,void 0,void 0,void 0)}instanceToInstance(t,r){return new Mo.TransformOperationExecutor(jo.TransformationType.CLASS_TO_CLASS,{...zo.defaultOptions,...r}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,r,n){return new Mo.TransformOperationExecutor(jo.TransformationType.CLASS_TO_CLASS,{...zo.defaultOptions,...n}).transform(r,t,void 0,void 0,void 0,void 0)}serialize(t,r){return JSON.stringify(this.instanceToPlain(t,r))}deserialize(t,r,n){let i=JSON.parse(r);return this.plainToInstance(t,i,n)}deserializeArray(t,r,n){let i=JSON.parse(r);return this.plainToInstance(t,i,n)}};Iv.ClassTransformer=FC});var f2=d(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});Rv.Exclude=void 0;var wAe=Lo();function EAe(e={}){return function(t,r){wAe.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}Rv.Exclude=EAe});var m2=d(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});Pv.Expose=void 0;var bAe=Lo();function AAe(e={}){return function(t,r){bAe.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}Pv.Expose=AAe});var p2=d(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});Ov.TransformInstanceToInstance=void 0;var TAe=ko();function CAe(e){return function(t,r,n){let i=new TAe.ClassTransformer,s=n.value;n.value=function(...o){let a=s.apply(this,o);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(l=>i.instanceToInstance(l,e)):i.instanceToInstance(a,e)}}}Ov.TransformInstanceToInstance=CAe});var _2=d(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});Nv.TransformInstanceToPlain=void 0;var xAe=ko();function IAe(e){return function(t,r,n){let i=new xAe.ClassTransformer,s=n.value;n.value=function(...o){let a=s.apply(this,o);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(l=>i.instanceToPlain(l,e)):i.instanceToPlain(a,e)}}}Nv.TransformInstanceToPlain=IAe});var h2=d(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});Dv.TransformPlainToInstance=void 0;var RAe=ko();function PAe(e,t){return function(r,n,i){let s=new RAe.ClassTransformer,o=i.value;i.value=function(...a){let c=o.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(u=>s.plainToInstance(e,u,t)):s.plainToInstance(e,c,t)}}}Dv.TransformPlainToInstance=PAe});var y2=d(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});qv.Transform=void 0;var OAe=Lo();function NAe(e,t={}){return function(r,n){OAe.defaultMetadataStorage.addTransformMetadata({target:r.constructor,propertyName:n,transformFn:e,options:t})}}qv.Transform=NAe});var g2=d(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});Lv.Type=void 0;var DAe=Lo();function qAe(e,t={}){return function(r,n){let i=Reflect.getMetadata("design:type",r,n);DAe.defaultMetadataStorage.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:i,typeFunction:e,options:t})}}Lv.Type=qAe});var v2=d(Xt=>{"use strict";var LAe=Xt&&Xt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Es=Xt&&Xt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&LAe(t,e,r)};Object.defineProperty(Xt,"__esModule",{value:!0});Es(f2(),Xt);Es(m2(),Xt);Es(p2(),Xt);Es(_2(),Xt);Es(h2(),Xt);Es(y2(),Xt);Es(g2(),Xt)});var w2=d(S2=>{"use strict";Object.defineProperty(S2,"__esModule",{value:!0})});var b2=d(E2=>{"use strict";Object.defineProperty(E2,"__esModule",{value:!0})});var T2=d(A2=>{"use strict";Object.defineProperty(A2,"__esModule",{value:!0})});var x2=d(C2=>{"use strict";Object.defineProperty(C2,"__esModule",{value:!0})});var R2=d(I2=>{"use strict";Object.defineProperty(I2,"__esModule",{value:!0})});var O2=d(P2=>{"use strict";Object.defineProperty(P2,"__esModule",{value:!0})});var D2=d(N2=>{"use strict";Object.defineProperty(N2,"__esModule",{value:!0})});var L2=d(q2=>{"use strict";Object.defineProperty(q2,"__esModule",{value:!0})});var j2=d(M2=>{"use strict";Object.defineProperty(M2,"__esModule",{value:!0})});var k2=d(z2=>{"use strict";Object.defineProperty(z2,"__esModule",{value:!0})});var U2=d(F2=>{"use strict";Object.defineProperty(F2,"__esModule",{value:!0})});var G2=d(B2=>{"use strict";Object.defineProperty(B2,"__esModule",{value:!0})});var V2=d($2=>{"use strict";Object.defineProperty($2,"__esModule",{value:!0})});var K2=d(H2=>{"use strict";Object.defineProperty(H2,"__esModule",{value:!0})});var W2=d(Ye=>{"use strict";var MAe=Ye&&Ye.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),zt=Ye&&Ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&MAe(t,e,r)};Object.defineProperty(Ye,"__esModule",{value:!0});zt(w2(),Ye);zt(b2(),Ye);zt(T2(),Ye);zt(x2(),Ye);zt(R2(),Ye);zt(O2(),Ye);zt(D2(),Ye);zt(L2(),Ye);zt(j2(),Ye);zt(k2(),Ye);zt(U2(),Ye);zt(G2(),Ye);zt(V2(),Ye);zt(K2(),Ye)});var Mv=d(ye=>{"use strict";var jAe=ye&&ye.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),UC=ye&&ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&jAe(t,e,r)};Object.defineProperty(ye,"__esModule",{value:!0});ye.deserializeArray=ye.deserialize=ye.serialize=ye.classToClassFromExist=ye.instanceToInstance=ye.plainToClassFromExist=ye.plainToInstance=ye.plainToClass=ye.classToPlainFromExist=ye.instanceToPlain=ye.classToPlain=ye.ClassTransformer=void 0;var zAe=ko(),kAe=ko();Object.defineProperty(ye,"ClassTransformer",{enumerable:!0,get:function(){return kAe.ClassTransformer}});UC(v2(),ye);UC(W2(),ye);UC(Bl(),ye);var br=new zAe.ClassTransformer;function FAe(e,t){return br.instanceToPlain(e,t)}ye.classToPlain=FAe;function UAe(e,t){return br.instanceToPlain(e,t)}ye.instanceToPlain=UAe;function BAe(e,t,r){return br.classToPlainFromExist(e,t,r)}ye.classToPlainFromExist=BAe;function GAe(e,t,r){return br.plainToInstance(e,t,r)}ye.plainToClass=GAe;function $Ae(e,t,r){return br.plainToInstance(e,t,r)}ye.plainToInstance=$Ae;function VAe(e,t,r){return br.plainToClassFromExist(e,t,r)}ye.plainToClassFromExist=VAe;function HAe(e,t){return br.instanceToInstance(e,t)}ye.instanceToInstance=HAe;function KAe(e,t,r){return br.classToClassFromExist(e,t,r)}ye.classToClassFromExist=KAe;function WAe(e,t){return br.serialize(e,t)}ye.serialize=WAe;function YAe(e,t,r){return br.deserialize(e,t,r)}ye.deserialize=YAe;function JAe(e,t,r){return br.deserializeArray(e,t,r)}ye.deserializeArray=JAe});var BC=d(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});jv.Rules=void 0;var QAe=Mv(),Gl=class{static async Load(t){let{dbManager:r,key:n}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:"rules"}});return(0,QAe.plainToInstance)(Gl,i)}constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,RuleSet:this.RuleSet,Version:this.Version}}async Save(t){let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct}),n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([r,n]),await r,await n}get PK(){return`appName#${this.AppName}`.toLowerCase()}get SK(){return"rules"}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get RuleSet(){return this._ruleSet}set RuleSet(t){this._ruleSet=t}get Version(){return this._version}set Version(t){this._version=t}};jv.Rules=Gl});var GC=d(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});zv.Version=void 0;var Y2=Mv(),Fo;(function(e){e[e.AppName=0]="AppName"})(Fo||(Fo={}));var Uo=class{static async LoadVersions(t){let{dbManager:r,key:n}=t,{Items:i}=await r.ddbDocClient.query({TableName:r.tableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${n.AppName}`.toLowerCase(),":skval":"version"}}),s=[];if(i!==void 0)for(let o of i){let a=(0,Y2.plainToInstance)(Uo,o);s.push(a)}return s}static async LoadVersion(t){let{dbManager:r,key:n}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:`version#${n.SemVer}`.toLowerCase()}});return(0,Y2.plainToInstance)(Uo,i)}static async DeleteVersion(t){let{dbManager:r,key:n}=t;await r.ddbDocClient.delete({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:`version#${n.SemVer}`.toLowerCase()}})}get PK(){switch(this._keyBy){case Fo.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}constructor(t){this._keyBy=Fo.AppName,this._status="pending",this._startupType="iframe",this._defaultFile="",this._integrationID="",this._routeIDAppVersion="",this._routeIDAppVersionSplat="",this._url="",this._lambdaARN="",Object.assign(this,t)}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,SemVer:this.SemVer,Type:this.Type,StartupType:this.StartupType,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID,RouteIDAppVersion:this.RouteIDAppVersion,RouteIDAppVersionSplat:this.RouteIDAppVersionSplat,URL:this.URL,LambdaARN:this.LambdaARN}}async Save(t){this._keyBy=Fo.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case Fo.AppName:return`version#${this.SemVer}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get SemVer(){return this._semVer}set SemVer(t){this._semVer=t}get Type(){return this._type}set Type(t){this._type=t}get StartupType(){return this._startupType}set StartupType(t){this._startupType=t}get Status(){return this._status}set Status(t){this._status=t}get DefaultFile(){return this._defaultFile}set DefaultFile(t){this._defaultFile=t}get IntegrationID(){return this._integrationID}set IntegrationID(t){this._integrationID=t}get RouteIDAppVersion(){return this._routeIDAppVersion}set RouteIDAppVersion(t){this._routeIDAppVersion=t}get RouteIDAppVersionSplat(){return this._routeIDAppVersionSplat}set RouteIDAppVersionSplat(t){this._routeIDAppVersionSplat=t}get URL(){return this._url}set URL(t){this._url=t}get LambdaARN(){return this._lambdaARN}set LambdaARN(t){this._lambdaARN=t}};zv.Version=Uo});var X2=d(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});kv.Application=void 0;var J2=Mv(),Q2=BC(),XAe=GC(),Gn;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(Gn||(Gn={}));var Bo=class{static async UpdateDefaultRule(t){let{dbManager:r,key:n}=t,i=await Q2.Rules.Load({dbManager:r,key:n}),s=i.RuleSet.default;s.SemVer=n.SemVer,await i.Save(r)}static async GetVersionsAndRules(t){let{key:r,dbManager:n}=t,i=XAe.Version.LoadVersions({dbManager:n,key:r}),s=Q2.Rules.Load({dbManager:n,key:r});return await Promise.all([i,s]),{Versions:await i,Rules:await s}}static async Load(t){let{key:r,dbManager:n}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:"application"}});return(0,J2.plainToInstance)(Bo,i)}static async LoadAllApps(t){let{Items:r}=await t.ddbDocClient.query({TableName:t.tableName,KeyConditionExpression:"PK = :pkval",ExpressionAttributeValues:{":pkval":"applications"}}),n=[];if(r!==void 0)for(let i of r){let s=(0,J2.plainToInstance)(Bo,i);n.push(s)}return n}constructor(t){Object.assign(this,t),this._keyBy=Gn.AppName}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=Gn.AppName;let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=Gn.Applications;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([r,n]),await r,await n}get PK(){switch(this._keyBy){case Gn.Applications:return"applications";case Gn.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case Gn.Applications:return`appName#${this.AppName}`.toLowerCase();case Gn.AppName:return"application";default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get DisplayName(){return this._displayName}set DisplayName(t){this._displayName=t}};kv.Application=Bo});var $C=d(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.Version=gn.Rules=gn.Application=gn.DBManager=void 0;var ZAe=r2();Object.defineProperty(gn,"DBManager",{enumerable:!0,get:function(){return ZAe.DBManager}});var eTe=X2();Object.defineProperty(gn,"Application",{enumerable:!0,get:function(){return eTe.Application}});var tTe=BC();Object.defineProperty(gn,"Rules",{enumerable:!0,get:function(){return tTe.Rules}});var rTe=GC();Object.defineProperty(gn,"Version",{enumerable:!0,get:function(){return rTe.Version}})});var kt=d(VC=>{"use strict";VC.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};VC.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var e$=d((JBe,Z2)=>{var Ti=require("constants"),nTe=process.cwd,Fv=null,iTe=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Fv||(Fv=nTe.call(process)),Fv};try{process.cwd()}catch{}typeof process.chdir=="function"&&(HC=process.chdir,process.chdir=function(e){Fv=null,HC.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,HC));var HC;Z2.exports=sTe;function sTe(e){Ti.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(u,p,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(u,p,m,h){h&&process.nextTick(h)},e.lchownSync=function(){}),iTe==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(u){function p(m,h,g){var y=Date.now(),w=0;u(m,h,function C(T){if(T&&(T.code==="EACCES"||T.code==="EPERM")&&Date.now()-y<6e4){setTimeout(function(){e.stat(h,function(B,_e){B&&B.code==="ENOENT"?u(m,h,C):g(T)})},w),w<100&&(w+=10);return}g&&g(T)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,u),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(u){function p(m,h,g,y,w,C){var T;if(C&&typeof C=="function"){var B=0;T=function(_e,ot,pt){if(_e&&_e.code==="EAGAIN"&&B<10)return B++,u.call(e,m,h,g,y,w,T);C.apply(this,arguments)}}return u.call(e,m,h,g,y,w,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,u),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(u){return function(p,m,h,g,y){for(var w=0;;)try{return u.call(e,p,m,h,g,y)}catch(C){if(C.code==="EAGAIN"&&w<10){w++;continue}throw C}}}(e.readSync);function t(u){u.lchmod=function(p,m,h){u.open(p,Ti.O_WRONLY|Ti.O_SYMLINK,m,function(g,y){if(g){h&&h(g);return}u.fchmod(y,m,function(w){u.close(y,function(C){h&&h(w||C)})})})},u.lchmodSync=function(p,m){var h=u.openSync(p,Ti.O_WRONLY|Ti.O_SYMLINK,m),g=!0,y;try{y=u.fchmodSync(h,m),g=!1}finally{if(g)try{u.closeSync(h)}catch{}else u.closeSync(h)}return y}}function r(u){Ti.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(p,m,h,g){u.open(p,Ti.O_SYMLINK,function(y,w){if(y){g&&g(y);return}u.futimes(w,m,h,function(C){u.close(w,function(T){g&&g(C||T)})})})},u.lutimesSync=function(p,m,h){var g=u.openSync(p,Ti.O_SYMLINK),y,w=!0;try{y=u.futimesSync(g,m,h),w=!1}finally{if(w)try{u.closeSync(g)}catch{}else u.closeSync(g)}return y}):u.futimes&&(u.lutimes=function(p,m,h,g){g&&process.nextTick(g)},u.lutimesSync=function(){})}function n(u){return u&&function(p,m,h){return u.call(e,p,m,function(g){l(g)&&(g=null),h&&h.apply(this,arguments)})}}function i(u){return u&&function(p,m){try{return u.call(e,p,m)}catch(h){if(!l(h))throw h}}}function s(u){return u&&function(p,m,h,g){return u.call(e,p,m,h,function(y){l(y)&&(y=null),g&&g.apply(this,arguments)})}}function o(u){return u&&function(p,m,h){try{return u.call(e,p,m,h)}catch(g){if(!l(g))throw g}}}function a(u){return u&&function(p,m,h){typeof m=="function"&&(h=m,m=null);function g(y,w){w&&(w.uid<0&&(w.uid+=4294967296),w.gid<0&&(w.gid+=4294967296)),h&&h.apply(this,arguments)}return m?u.call(e,p,m,g):u.call(e,p,g)}}function c(u){return u&&function(p,m){var h=m?u.call(e,p,m):u.call(e,p);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function l(u){if(!u||u.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var n$=d((QBe,r$)=>{var t$=require("stream").Stream;r$.exports=oTe;function oTe(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);t$.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var l=o[a];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(u,p){if(u){s.emit("error",u),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);t$.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var c=s[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var s$=d((XBe,i$)=>{"use strict";i$.exports=cTe;var aTe=Object.getPrototypeOf||function(e){return e.__proto__};function cTe(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:aTe(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var wt=d((ZBe,YC)=>{var ze=require("fs"),lTe=e$(),uTe=n$(),dTe=s$(),Uv=require("util"),mt,Gv;typeof Symbol=="function"&&typeof Symbol.for=="function"?(mt=Symbol.for("graceful-fs.queue"),Gv=Symbol.for("graceful-fs.previous")):(mt="___graceful-fs.queue",Gv="___graceful-fs.previous");function fTe(){}function c$(e,t){Object.defineProperty(e,mt,{get:function(){return t}})}var bs=fTe;Uv.debuglog?bs=Uv.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(bs=function(){var e=Uv.format.apply(Uv,arguments);e="GFS4: "+e.split(/\n/).join(`
41
+ GFS4: `),console.error(e)});ze[mt]||(o$=global[mt]||[],c$(ze,o$),ze.close=function(e){function t(r,n){return e.call(ze,r,function(i){i||a$(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Gv,{value:e}),t}(ze.close),ze.closeSync=function(e){function t(r){e.apply(ze,arguments),a$()}return Object.defineProperty(t,Gv,{value:e}),t}(ze.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){bs(ze[mt]),require("assert").equal(ze[mt].length,0)}));var o$;global[mt]||c$(global,ze[mt]);YC.exports=KC(dTe(ze));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ze.__patched&&(YC.exports=KC(ze),ze.__patched=!0);function KC(e){lTe(e),e.gracefulify=KC,e.createReadStream=ot,e.createWriteStream=pt;var t=e.readFile;e.readFile=r;function r(L,H,ce){return typeof H=="function"&&(ce=H,H=null),Ce(L,H,ce);function Ce(ke,Ne,xe,Ie){return t(ke,Ne,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Go([Ce,[ke,Ne,xe],Se,Ie||Date.now(),Date.now()]):typeof xe=="function"&&xe.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(L,H,ce,Ce){return typeof ce=="function"&&(Ce=ce,ce=null),ke(L,H,ce,Ce);function ke(Ne,xe,Ie,Se,Fe){return n(Ne,xe,Ie,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Go([ke,[Ne,xe,Ie,Se],Ee,Fe||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(L,H,ce,Ce){return typeof ce=="function"&&(Ce=ce,ce=null),ke(L,H,ce,Ce);function ke(Ne,xe,Ie,Se,Fe){return s(Ne,xe,Ie,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Go([ke,[Ne,xe,Ie,Se],Ee,Fe||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(L,H,ce,Ce){return typeof ce=="function"&&(Ce=ce,ce=0),ke(L,H,ce,Ce);function ke(Ne,xe,Ie,Se,Fe){return a(Ne,xe,Ie,function(Ee){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Go([ke,[Ne,xe,Ie,Se],Ee,Fe||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}var l=e.readdir;e.readdir=p;var u=/^v[0-5]\./;function p(L,H,ce){typeof H=="function"&&(ce=H,H=null);var Ce=u.test(process.version)?function(xe,Ie,Se,Fe){return l(xe,ke(xe,Ie,Se,Fe))}:function(xe,Ie,Se,Fe){return l(xe,Ie,ke(xe,Ie,Se,Fe))};return Ce(L,H,ce);function ke(Ne,xe,Ie,Se){return function(Fe,Ee){Fe&&(Fe.code==="EMFILE"||Fe.code==="ENFILE")?Go([Ce,[Ne,xe,Ie],Fe,Se||Date.now(),Date.now()]):(Ee&&Ee.sort&&Ee.sort(),typeof Ie=="function"&&Ie.call(this,Fe,Ee))}}}if(process.version.substr(0,4)==="v0.8"){var m=uTe(e);C=m.ReadStream,B=m.WriteStream}var h=e.ReadStream;h&&(C.prototype=Object.create(h.prototype),C.prototype.open=T);var g=e.WriteStream;g&&(B.prototype=Object.create(g.prototype),B.prototype.open=_e),Object.defineProperty(e,"ReadStream",{get:function(){return C},set:function(L){C=L},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return B},set:function(L){B=L},enumerable:!0,configurable:!0});var y=C;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(L){y=L},enumerable:!0,configurable:!0});var w=B;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(L){w=L},enumerable:!0,configurable:!0});function C(L,H){return this instanceof C?(h.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function T(){var L=this;$t(L.path,L.flags,L.mode,function(H,ce){H?(L.autoClose&&L.destroy(),L.emit("error",H)):(L.fd=ce,L.emit("open",ce),L.read())})}function B(L,H){return this instanceof B?(g.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function _e(){var L=this;$t(L.path,L.flags,L.mode,function(H,ce){H?(L.destroy(),L.emit("error",H)):(L.fd=ce,L.emit("open",ce))})}function ot(L,H){return new e.ReadStream(L,H)}function pt(L,H){return new e.WriteStream(L,H)}var er=e.open;e.open=$t;function $t(L,H,ce,Ce){return typeof ce=="function"&&(Ce=ce,ce=null),ke(L,H,ce,Ce);function ke(Ne,xe,Ie,Se,Fe){return er(Ne,xe,Ie,function(Ee,En){Ee&&(Ee.code==="EMFILE"||Ee.code==="ENFILE")?Go([ke,[Ne,xe,Ie,Se],Ee,Fe||Date.now(),Date.now()]):typeof Se=="function"&&Se.apply(this,arguments)})}}return e}function Go(e){bs("ENQUEUE",e[0].name,e[1]),ze[mt].push(e),WC()}var Bv;function a$(){for(var e=Date.now(),t=0;t<ze[mt].length;++t)ze[mt][t].length>2&&(ze[mt][t][3]=e,ze[mt][t][4]=e);WC()}function WC(){if(clearTimeout(Bv),Bv=void 0,ze[mt].length!==0){var e=ze[mt].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)bs("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){bs("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),l=Math.min(c*1.2,100);a>=l?(bs("RETRY",t.name,r),t.apply(null,r.concat([i]))):ze[mt].push(e)}Bv===void 0&&(Bv=setTimeout(WC,0))}}});var $l=d(Ci=>{"use strict";var l$=kt().fromCallback,It=wt(),mTe=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof It[e]=="function");Object.keys(It).forEach(e=>{e!=="promises"&&(Ci[e]=It[e])});mTe.forEach(e=>{Ci[e]=l$(It[e])});Ci.exists=function(e,t){return typeof t=="function"?It.exists(e,t):new Promise(r=>It.exists(e,r))};Ci.read=function(e,t,r,n,i,s){return typeof s=="function"?It.read(e,t,r,n,i,s):new Promise((o,a)=>{It.read(e,t,r,n,i,(c,l,u)=>{if(c)return a(c);o({bytesRead:l,buffer:u})})})};Ci.write=function(e,t,...r){return typeof r[r.length-1]=="function"?It.write(e,t,...r):new Promise((n,i)=>{It.write(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof It.writev=="function"&&(Ci.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?It.writev(e,t,...r):new Promise((n,i)=>{It.writev(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof It.realpath.native=="function"&&(Ci.realpath.native=l$(It.realpath.native))});var JC=d((tGe,u$)=>{u$.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var _$=d((rGe,QC)=>{"use strict";var $o=$l(),$n=require("path"),pTe=JC(),d$=pTe("10.12.0"),f$=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace($n.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},m$=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},p$=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};QC.exports.makeDir=async(e,t)=>{if(f$(e),t=m$(t),d$){let n=$n.resolve(e);return $o.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await $o.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($n.dirname(n)===n)throw p$(n);if(i.message.includes("null bytes"))throw i;return await r($n.dirname(n)),r(n)}try{if(!(await $o.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($n.resolve(e))};QC.exports.makeDirSync=(e,t)=>{if(f$(e),t=m$(t),d$){let n=$n.resolve(e);return $o.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{$o.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($n.dirname(n)===n)throw p$(n);if(i.message.includes("null bytes"))throw i;return r($n.dirname(n)),r(n)}try{if(!$o.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($n.resolve(e))}});var Ar=d((nGe,h$)=>{"use strict";var _Te=kt().fromPromise,{makeDir:hTe,makeDirSync:XC}=_$(),ZC=_Te(hTe);h$.exports={mkdirs:ZC,mkdirsSync:XC,mkdirp:ZC,mkdirpSync:XC,ensureDir:ZC,ensureDirSync:XC}});var ex=d((iGe,y$)=>{"use strict";var Vo=wt();function yTe(e,t,r,n){Vo.open(e,"r+",(i,s)=>{if(i)return n(i);Vo.futimes(s,t,r,o=>{Vo.close(s,a=>{n&&n(o||a)})})})}function gTe(e,t,r){let n=Vo.openSync(e,"r+");return Vo.futimesSync(n,t,r),Vo.closeSync(n)}y$.exports={utimesMillis:yTe,utimesMillisSync:gTe}});var Vl=d((sGe,w$)=>{"use strict";var Ho=$l(),Ft=require("path"),vTe=require("util"),STe=JC(),$v=STe("10.5.0"),g$=e=>$v?Ho.stat(e,{bigint:!0}):Ho.stat(e),tx=e=>$v?Ho.statSync(e,{bigint:!0}):Ho.statSync(e);function wTe(e,t){return Promise.all([g$(e),g$(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function ETe(e,t){let r,n=tx(e);try{r=tx(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function bTe(e,t,r,n){vTe.callbackify(wTe)(e,t,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&Vv(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&rx(e,t)?n(new Error(Hv(e,t,r))):n(null,{srcStat:o,destStat:a})})}function ATe(e,t,r){let{srcStat:n,destStat:i}=ETe(e,t);if(i&&Vv(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&rx(e,t))throw new Error(Hv(e,t,r));return{srcStat:n,destStat:i}}function v$(e,t,r,n,i){let s=Ft.resolve(Ft.dirname(e)),o=Ft.resolve(Ft.dirname(r));if(o===s||o===Ft.parse(o).root)return i();let a=(c,l)=>c?c.code==="ENOENT"?i():i(c):Vv(t,l)?i(new Error(Hv(e,r,n))):v$(e,t,o,n,i);$v?Ho.stat(o,{bigint:!0},a):Ho.stat(o,a)}function S$(e,t,r,n){let i=Ft.resolve(Ft.dirname(e)),s=Ft.resolve(Ft.dirname(r));if(s===i||s===Ft.parse(s).root)return;let o;try{o=tx(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Vv(t,o))throw new Error(Hv(e,r,n));return S$(e,t,s,n)}function Vv(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&($v||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function rx(e,t){let r=Ft.resolve(e).split(Ft.sep).filter(i=>i),n=Ft.resolve(t).split(Ft.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Hv(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}w$.exports={checkPaths:bTe,checkPathsSync:ATe,checkParentPaths:v$,checkParentPathsSync:S$,isSrcSubdir:rx}});var C$=d((oGe,T$)=>{"use strict";var Et=wt(),Hl=require("path"),TTe=Ar().mkdirsSync,CTe=ex().utimesMillisSync,Kl=Vl();function xTe(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
30
42
 
31
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=dc.checkPathsSync(e,t,"copy");return dc.checkParentPathsSync(e,n,t,"copy"),Vde(i,e,t,r)}function Vde(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=uc.dirname(r);return ht.existsSync(i)||Bde(i),EM(e,t,r,n)}function EM(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Kde(e,t,r,n)}function Kde(e,t,r,n){let s=(n.dereference?ht.statSync:ht.lstatSync)(t);if(s.isDirectory())return Zde(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Hde(s,e,t,r,n);if(s.isSymbolicLink())return rfe(e,t,r,n)}function Hde(e,t,r,n,i){return t?Wde(e,r,n,i):AM(e,r,n,i)}function Wde(e,t,r,n){if(n.overwrite)return ht.unlinkSync(r),AM(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function AM(e,t,r,n){return ht.copyFileSync(t,r),n.preserveTimestamps&&Yde(e.mode,t,r),db(r,e.mode)}function Yde(e,t,r){return Jde(e)&&Qde(r,e),Xde(t,r)}function Jde(e){return(e&128)===0}function Qde(e,t){return db(e,t|128)}function db(e,t){return ht.chmodSync(e,t)}function Xde(e,t){let r=ht.statSync(e);return Gde(t,r.atime,r.mtime)}function Zde(e,t,r,n,i){if(!t)return efe(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return TM(r,n,i)}function efe(e,t,r,n){return ht.mkdirSync(r),TM(t,r,n),db(r,e)}function TM(e,t,r){ht.readdirSync(e).forEach(n=>tfe(n,e,t,r))}function tfe(e,t,r,n){let i=uc.join(t,e),s=uc.join(r,e),{destStat:o}=dc.checkPathsSync(i,s,"copy");return EM(o,i,s,n)}function rfe(e,t,r,n){let i=ht.readlinkSync(t);if(n.dereference&&(i=uc.resolve(process.cwd(),i)),e){let s;try{s=ht.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ht.symlinkSync(i,r);throw o}if(n.dereference&&(s=uc.resolve(process.cwd(),s)),dc.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ht.statSync(r).isDirectory()&&dc.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return nfe(i,r)}else return ht.symlinkSync(i,r)}function nfe(e,t){return ht.unlinkSync(t),ht.symlinkSync(e,t)}CM.exports=$de});var fb=f((VCe,IM)=>{"use strict";IM.exports={copySync:xM()}});var Qn=f((KCe,DM)=>{"use strict";var ife=Dt().fromPromise,RM=cc();function sfe(e){return RM.access(e).then(()=>!0).catch(()=>!1)}DM.exports={pathExists:ife(sfe),pathExistsSync:RM.existsSync}});var kM=f((HCe,jM)=>{"use strict";var Nt=pt(),fc=require("path"),ofe=mr().mkdirs,afe=Qn().pathExists,cfe=cb().utimesMillis,mc=lc();function lfe(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
43
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Kl.checkPathsSync(e,t,"copy");return Kl.checkParentPathsSync(e,n,t,"copy"),ITe(i,e,t,r)}function ITe(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=Hl.dirname(r);return Et.existsSync(i)||TTe(i),E$(e,t,r,n)}function E$(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return RTe(e,t,r,n)}function RTe(e,t,r,n){let s=(n.dereference?Et.statSync:Et.lstatSync)(t);if(s.isDirectory())return MTe(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return PTe(s,e,t,r,n);if(s.isSymbolicLink())return kTe(e,t,r,n)}function PTe(e,t,r,n,i){return t?OTe(e,r,n,i):b$(e,r,n,i)}function OTe(e,t,r,n){if(n.overwrite)return Et.unlinkSync(r),b$(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function b$(e,t,r,n){return Et.copyFileSync(t,r),n.preserveTimestamps&&NTe(e.mode,t,r),nx(r,e.mode)}function NTe(e,t,r){return DTe(e)&&qTe(r,e),LTe(t,r)}function DTe(e){return(e&128)===0}function qTe(e,t){return nx(e,t|128)}function nx(e,t){return Et.chmodSync(e,t)}function LTe(e,t){let r=Et.statSync(e);return CTe(t,r.atime,r.mtime)}function MTe(e,t,r,n,i){if(!t)return jTe(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return A$(r,n,i)}function jTe(e,t,r,n){return Et.mkdirSync(r),A$(t,r,n),nx(r,e)}function A$(e,t,r){Et.readdirSync(e).forEach(n=>zTe(n,e,t,r))}function zTe(e,t,r,n){let i=Hl.join(t,e),s=Hl.join(r,e),{destStat:o}=Kl.checkPathsSync(i,s,"copy");return E$(o,i,s,n)}function kTe(e,t,r,n){let i=Et.readlinkSync(t);if(n.dereference&&(i=Hl.resolve(process.cwd(),i)),e){let s;try{s=Et.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Et.symlinkSync(i,r);throw o}if(n.dereference&&(s=Hl.resolve(process.cwd(),s)),Kl.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Et.statSync(r).isDirectory()&&Kl.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return FTe(i,r)}else return Et.symlinkSync(i,r)}function FTe(e,t){return Et.unlinkSync(t),Et.symlinkSync(e,t)}T$.exports=xTe});var ix=d((aGe,x$)=>{"use strict";x$.exports={copySync:C$()}});var xi=d((cGe,R$)=>{"use strict";var UTe=kt().fromPromise,I$=$l();function BTe(e){return I$.access(e).then(()=>!0).catch(()=>!1)}R$.exports={pathExists:UTe(BTe),pathExistsSync:I$.existsSync}});var z$=d((lGe,j$)=>{"use strict";var Ut=wt(),Wl=require("path"),GTe=Ar().mkdirs,$Te=xi().pathExists,VTe=ex().utimesMillis,Yl=Vl();function HTe(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
32
44
 
33
- see https://github.com/jprichardson/node-fs-extra/issues/269`),mc.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;mc.checkParentPaths(e,o,t,"copy",c=>c?n(c):r.filter?LM(PM,a,e,t,r,n):PM(a,e,t,r,n))})}function PM(e,t,r,n,i){let s=fc.dirname(r);afe(s,(o,a)=>{if(o)return i(o);if(a)return mb(e,t,r,n,i);ofe(s,c=>c?i(c):mb(e,t,r,n,i))})}function LM(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function mb(e,t,r,n,i){return n.filter?LM(NM,e,t,r,n,i):NM(e,t,r,n,i)}function NM(e,t,r,n,i){(n.dereference?Nt.stat:Nt.lstat)(t,(o,a)=>{if(o)return i(o);if(a.isDirectory())return _fe(a,e,t,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return ufe(a,e,t,r,n,i);if(a.isSymbolicLink())return vfe(e,t,r,n,i)})}function ufe(e,t,r,n,i,s){return t?dfe(e,r,n,i,s):qM(e,r,n,i,s)}function dfe(e,t,r,n,i){if(n.overwrite)Nt.unlink(r,s=>s?i(s):qM(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function qM(e,t,r,n,i){Nt.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?ffe(e.mode,t,r,i):r_(r,e.mode,i))}function ffe(e,t,r,n){return mfe(e)?pfe(r,e,i=>i?n(i):OM(e,t,r,n)):OM(e,t,r,n)}function mfe(e){return(e&128)===0}function pfe(e,t,r){return r_(e,t|128,r)}function OM(e,t,r,n){hfe(t,r,i=>i?n(i):r_(r,e,n))}function r_(e,t,r){return Nt.chmod(e,t,r)}function hfe(e,t,r){Nt.stat(e,(n,i)=>n?r(n):cfe(t,i.atime,i.mtime,r))}function _fe(e,t,r,n,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):MM(r,n,i,s):yfe(e.mode,r,n,i,s)}function yfe(e,t,r,n,i){Nt.mkdir(r,s=>{if(s)return i(s);MM(t,r,n,o=>o?i(o):r_(r,e,i))})}function MM(e,t,r,n){Nt.readdir(e,(i,s)=>i?n(i):zM(s,e,t,r,n))}function zM(e,t,r,n,i){let s=e.pop();return s?gfe(e,s,t,r,n,i):i()}function gfe(e,t,r,n,i,s){let o=fc.join(r,t),a=fc.join(n,t);mc.checkPaths(o,a,"copy",(c,u)=>{if(c)return s(c);let{destStat:d}=u;mb(d,o,a,i,p=>p?s(p):zM(e,r,n,i,s))})}function vfe(e,t,r,n,i){Nt.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=fc.resolve(process.cwd(),o)),e)Nt.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?Nt.symlink(o,r,i):i(a):(n.dereference&&(c=fc.resolve(process.cwd(),c)),mc.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&mc.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):Sfe(o,r,i)));else return Nt.symlink(o,r,i)})}function Sfe(e,t,r){Nt.unlink(t,n=>n?r(n):Nt.symlink(e,t,r))}jM.exports=lfe});var pb=f((WCe,UM)=>{"use strict";var wfe=Dt().fromCallback;UM.exports={copy:wfe(kM())}});var YM=f((YCe,WM)=>{"use strict";var FM=pt(),VM=require("path"),Ie=require("assert"),pc=process.platform==="win32";function KM(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||FM[r],r=r+"Sync",e[r]=e[r]||FM[r]}),e.maxBusyTries=e.maxBusyTries||3}function hb(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),Ie(e,"rimraf: missing path"),Ie.strictEqual(typeof e,"string","rimraf: path should be a string"),Ie.strictEqual(typeof r,"function","rimraf: callback function required"),Ie(t,"rimraf: invalid options argument provided"),Ie.strictEqual(typeof t,"object","rimraf: options should be object"),KM(t),BM(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let o=n*100;return setTimeout(()=>BM(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function BM(e,t,r){Ie(e),Ie(t),Ie(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&pc)return GM(e,t,n,r);if(i&&i.isDirectory())return n_(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return pc?GM(e,t,s,r):n_(e,t,s,r);if(s.code==="EISDIR")return n_(e,t,s,r)}return r(s)})})}function GM(e,t,r,n){Ie(e),Ie(t),Ie(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?n_(e,t,r,n):t.unlink(e,n)})})}function $M(e,t,r){let n;Ie(e),Ie(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?i_(e,t,r):t.unlinkSync(e)}function n_(e,t,r,n){Ie(e),Ie(t),Ie(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?bfe(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function bfe(e,t,r){Ie(e),Ie(t),Ie(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(a=>{hb(VM.join(e,a),t,c=>{if(!o){if(c)return r(o=c);--s===0&&t.rmdir(e,r)}})})})}function HM(e,t){let r;t=t||{},KM(t),Ie(e,"rimraf: missing path"),Ie.strictEqual(typeof e,"string","rimraf: path should be a string"),Ie(t,"rimraf: missing options"),Ie.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&pc&&$M(e,t,n)}try{r&&r.isDirectory()?i_(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return pc?$M(e,t,n):i_(e,t,n);if(n.code!=="EISDIR")throw n;i_(e,t,n)}}function i_(e,t,r){Ie(e),Ie(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")Efe(e,t);else if(n.code!=="ENOENT")throw n}}function Efe(e,t){if(Ie(e),Ie(t),t.readdirSync(e).forEach(r=>HM(VM.join(e,r),t)),pc){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}WM.exports=hb;hb.sync=HM});var hc=f((JCe,QM)=>{"use strict";var Afe=Dt().fromCallback,JM=YM();QM.exports={remove:Afe(JM),removeSync:JM.sync}});var sz=f((QCe,iz)=>{"use strict";var Tfe=Dt().fromCallback,ez=pt(),tz=require("path"),rz=mr(),nz=hc(),XM=Tfe(function(t,r){r=r||function(){},ez.readdir(t,(n,i)=>{if(n)return rz.mkdirs(t,r);i=i.map(o=>tz.join(t,o)),s();function s(){let o=i.pop();if(!o)return r();nz.remove(o,a=>{if(a)return r(a);s()})}})});function ZM(e){let t;try{t=ez.readdirSync(e)}catch{return rz.mkdirsSync(e)}t.forEach(r=>{r=tz.join(e,r),nz.removeSync(r)})}iz.exports={emptyDirSync:ZM,emptydirSync:ZM,emptyDir:XM,emptydir:XM}});var lz=f((XCe,cz)=>{"use strict";var Cfe=Dt().fromCallback,oz=require("path"),Xn=pt(),az=mr();function xfe(e,t){function r(){Xn.writeFile(e,"",n=>{if(n)return t(n);t()})}Xn.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=oz.dirname(e);Xn.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?az.mkdirs(s,c=>{if(c)return t(c);r()}):t(o);a.isDirectory()?r():Xn.readdir(s,c=>{if(c)return t(c)})})})}function Ife(e){let t;try{t=Xn.statSync(e)}catch{}if(t&&t.isFile())return;let r=oz.dirname(e);try{Xn.statSync(r).isDirectory()||Xn.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")az.mkdirsSync(r);else throw n}Xn.writeFileSync(e,"")}cz.exports={createFile:Cfe(xfe),createFileSync:Ife}});var pz=f((ZCe,mz)=>{"use strict";var Rfe=Dt().fromCallback,dz=require("path"),ki=pt(),fz=mr(),uz=Qn().pathExists;function Dfe(e,t,r){function n(i,s){ki.link(i,s,o=>{if(o)return r(o);r(null)})}uz(t,(i,s)=>{if(i)return r(i);if(s)return r(null);ki.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=dz.dirname(t);uz(a,(c,u)=>{if(c)return r(c);if(u)return n(e,t);fz.mkdirs(a,d=>{if(d)return r(d);n(e,t)})})})})}function Pfe(e,t){if(ki.existsSync(t))return;try{ki.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=dz.dirname(t);return ki.existsSync(n)||fz.mkdirsSync(n),ki.linkSync(e,t)}mz.exports={createLink:Rfe(Dfe),createLinkSync:Pfe}});var _z=f((exe,hz)=>{"use strict";var Zn=require("path"),_c=pt(),Nfe=Qn().pathExists;function Ofe(e,t,r){if(Zn.isAbsolute(e))return _c.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Zn.dirname(t),i=Zn.join(n,e);return Nfe(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):_c.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:Zn.relative(n,e)})))}}function Lfe(e,t){let r;if(Zn.isAbsolute(e)){if(r=_c.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Zn.dirname(t),i=Zn.join(n,e);if(r=_c.existsSync(i),r)return{toCwd:i,toDst:e};if(r=_c.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Zn.relative(n,e)}}}hz.exports={symlinkPaths:Ofe,symlinkPathsSync:Lfe}});var vz=f((txe,gz)=>{"use strict";var yz=pt();function qfe(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);yz.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Mfe(e,t){let r;if(t)return t;try{r=yz.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}gz.exports={symlinkType:qfe,symlinkTypeSync:Mfe}});var Cz=f((rxe,Tz)=>{"use strict";var zfe=Dt().fromCallback,wz=require("path"),Ys=pt(),bz=mr(),jfe=bz.mkdirs,kfe=bz.mkdirsSync,Ez=_z(),Ufe=Ez.symlinkPaths,Ffe=Ez.symlinkPathsSync,Az=vz(),Bfe=Az.symlinkType,Gfe=Az.symlinkTypeSync,Sz=Qn().pathExists;function $fe(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Sz(t,(i,s)=>{if(i)return n(i);if(s)return n(null);Ufe(e,t,(o,a)=>{if(o)return n(o);e=a.toDst,Bfe(a.toCwd,r,(c,u)=>{if(c)return n(c);let d=wz.dirname(t);Sz(d,(p,m)=>{if(p)return n(p);if(m)return Ys.symlink(e,t,u,n);jfe(d,_=>{if(_)return n(_);Ys.symlink(e,t,u,n)})})})})})}function Vfe(e,t,r){if(Ys.existsSync(t))return;let i=Ffe(e,t);e=i.toDst,r=Gfe(i.toCwd,r);let s=wz.dirname(t);return Ys.existsSync(s)||kfe(s),Ys.symlinkSync(e,t,r)}Tz.exports={createSymlink:zfe($fe),createSymlinkSync:Vfe}});var Iz=f((nxe,xz)=>{"use strict";var s_=lz(),o_=pz(),a_=Cz();xz.exports={createFile:s_.createFile,createFileSync:s_.createFileSync,ensureFile:s_.createFile,ensureFileSync:s_.createFileSync,createLink:o_.createLink,createLinkSync:o_.createLinkSync,ensureLink:o_.createLink,ensureLinkSync:o_.createLinkSync,createSymlink:a_.createSymlink,createSymlinkSync:a_.createSymlinkSync,ensureSymlink:a_.createSymlink,ensureSymlinkSync:a_.createSymlinkSync}});var c_=f((ixe,Rz)=>{function Kfe(e,{EOL:t=`
34
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function Hfe(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Rz.exports={stringify:Kfe,stripBom:Hfe}});var Oz=f((sxe,Nz)=>{var Js;try{Js=pt()}catch{Js=require("fs")}var l_=Dt(),{stringify:Dz,stripBom:Pz}=c_();async function Wfe(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Js,n="throws"in t?t.throws:!0,i=await l_.fromCallback(r.readFile)(e,t);i=Pz(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}var Yfe=l_.fromPromise(Wfe);function Jfe(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Js,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Pz(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Qfe(e,t,r={}){let n=r.fs||Js,i=Dz(t,r);await l_.fromCallback(n.writeFile)(e,i,r)}var Xfe=l_.fromPromise(Qfe);function Zfe(e,t,r={}){let n=r.fs||Js,i=Dz(t,r);return n.writeFileSync(e,i,r)}var eme={readFile:Yfe,readFileSync:Jfe,writeFile:Xfe,writeFileSync:Zfe};Nz.exports=eme});var qz=f((oxe,Lz)=>{"use strict";var u_=Oz();Lz.exports={readJson:u_.readFile,readJsonSync:u_.readFileSync,writeJson:u_.writeFile,writeJsonSync:u_.writeFileSync}});var d_=f((axe,jz)=>{"use strict";var tme=Dt().fromCallback,yc=pt(),Mz=require("path"),zz=mr(),rme=Qn().pathExists;function nme(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Mz.dirname(e);rme(i,(s,o)=>{if(s)return n(s);if(o)return yc.writeFile(e,t,r,n);zz.mkdirs(i,a=>{if(a)return n(a);yc.writeFile(e,t,r,n)})})}function ime(e,...t){let r=Mz.dirname(e);if(yc.existsSync(r))return yc.writeFileSync(e,...t);zz.mkdirsSync(r),yc.writeFileSync(e,...t)}jz.exports={outputFile:tme(nme),outputFileSync:ime}});var Uz=f((cxe,kz)=>{"use strict";var{stringify:sme}=c_(),{outputFile:ome}=d_();async function ame(e,t,r={}){let n=sme(t,r);await ome(e,n,r)}kz.exports=ame});var Bz=f((lxe,Fz)=>{"use strict";var{stringify:cme}=c_(),{outputFileSync:lme}=d_();function ume(e,t,r){let n=cme(t,r);lme(e,n,r)}Fz.exports=ume});var $z=f((uxe,Gz)=>{"use strict";var dme=Dt().fromPromise,wt=qz();wt.outputJson=dme(Uz());wt.outputJsonSync=Bz();wt.outputJSON=wt.outputJson;wt.outputJSONSync=wt.outputJsonSync;wt.writeJSON=wt.writeJson;wt.writeJSONSync=wt.writeJsonSync;wt.readJSON=wt.readJson;wt.readJSONSync=wt.readJsonSync;Gz.exports=wt});var Jz=f((dxe,Yz)=>{"use strict";var Hz=pt(),fme=require("path"),mme=fb().copySync,Wz=hc().removeSync,pme=mr().mkdirpSync,Vz=lc();function hme(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Vz.checkPathsSync(e,t,"move");return Vz.checkParentPathsSync(e,i,t,"move"),pme(fme.dirname(t)),_me(e,t,n)}function _me(e,t,r){if(r)return Wz(t),Kz(e,t,r);if(Hz.existsSync(t))throw new Error("dest already exists.");return Kz(e,t,r)}function Kz(e,t,r){try{Hz.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return yme(e,t,r)}}function yme(e,t,r){return mme(e,t,{overwrite:r,errorOnExist:!0}),Wz(e)}Yz.exports=hme});var Xz=f((fxe,Qz)=>{"use strict";Qz.exports={moveSync:Jz()}});var nj=f((mxe,rj)=>{"use strict";var gme=pt(),vme=require("path"),Sme=pb().copy,tj=hc().remove,wme=mr().mkdirp,bme=Qn().pathExists,Zz=lc();function Eme(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Zz.checkPaths(e,t,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;Zz.checkParentPaths(e,a,t,"move",c=>{if(c)return n(c);wme(vme.dirname(t),u=>u?n(u):Ame(e,t,i,n))})})}function Ame(e,t,r,n){if(r)return tj(t,i=>i?n(i):ej(e,t,r,n));bme(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):ej(e,t,r,n))}function ej(e,t,r,n){gme.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):Tme(e,t,r,n):n())}function Tme(e,t,r,n){Sme(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):tj(e,n))}rj.exports=Eme});var sj=f((pxe,ij)=>{"use strict";var Cme=Dt().fromCallback;ij.exports={move:Cme(nj())}});var yb=f((hxe,_b)=>{"use strict";_b.exports={...cc(),...fb(),...pb(),...sz(),...Iz(),...$z(),...mr(),...Xz(),...sj(),...d_(),...Qn(),...hc()};var oj=require("fs");Object.getOwnPropertyDescriptor(oj,"promises")&&Object.defineProperty(_b.exports,"promises",{get(){return oj.promises}})});var fj=f((_xe,dj)=>{dj.exports=gc;gc.default=gc;gc.stable=lj;gc.stableStringify=lj;var f_="[...]",aj="[Circular]",Fi=[],Ui=[];function cj(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function gc(e,t,r,n){typeof n>"u"&&(n=cj()),gb(e,"",0,[],void 0,0,n);var i;try{Ui.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,uj(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Fi.length!==0;){var s=Fi.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Qs(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),Fi.push([n,r,t,i])):Ui.push([t,r,e]):(n[r]=e,Fi.push([n,r,t]))}function gb(e,t,r,n,i,s,o){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){Qs(aj,e,t,i);return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){Qs(f_,e,t,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Qs(f_,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)gb(e[a],a,a,n,e,s,o);else{var c=Object.keys(e);for(a=0;a<c.length;a++){var u=c[a];gb(e[u],u,a,n,e,s,o)}}n.pop()}}function xme(e,t){return e<t?-1:e>t?1:0}function lj(e,t,r,n){typeof n>"u"&&(n=cj());var i=vb(e,"",0,[],void 0,0,n)||e,s;try{Ui.length===0?s=JSON.stringify(i,t,r):s=JSON.stringify(i,uj(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Fi.length!==0;){var o=Fi.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function vb(e,t,r,n,i,s,o){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){Qs(aj,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){Qs(f_,e,t,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Qs(f_,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)vb(e[a],a,a,n,e,s,o);else{var c={},u=Object.keys(e).sort(xme);for(a=0;a<u.length;a++){var d=u[a];vb(e[d],d,a,n,e,s,o),c[d]=e[d]}if(typeof i<"u")Fi.push([i,t,e]),i[t]=c;else return c}n.pop()}}function uj(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(Ui.length>0)for(var n=0;n<Ui.length;n++){var i=Ui[n];if(i[1]===t&&i[0]===r){r=i[2],Ui.splice(n,1);break}}return e.call(this,t,r)}}});var pj=f((yxe,mj)=>{var Ime=fj(),xe={LOG:Symbol("log"),META:Symbol("meta"),ERROR:Symbol("error"),OPTS:Symbol("opts")},ei=class{constructor(t,r){this[xe.LOG]=t,this[xe.META]={},this[xe.ERROR]=null,this[xe.OPTS]=r;let{meta:n,tags:i}=this[xe.LOG];if(n&&(typeof n!="object"||Array.isArray(n))&&(this[xe.LOG].meta={meta:n}),n||(this[xe.LOG].meta={}),i||(this[xe.LOG].tags=[]),ei.isError(t.msg)){let s=t.msg;this[xe.ERROR]=s,this[xe.META].stack=s.stack,this[xe.LOG].msg=s.message}}get level(){return this[xe.LOG].level}get msg(){return this[xe.LOG].msg}set msg(t){this[xe.LOG].msg=t}get message(){return this.msg}set message(t){this.msg=t}get meta(){let t=this[xe.OPTS],r={...this[xe.META],...this[xe.OPTS].meta,...this[xe.LOG].meta};if(t.dynamicMeta&&typeof t.dynamicMeta=="function"){let n=t.dynamicMeta.call(this,this,t);typeof n=="object"&&(r=Object.assign(r,n))}for(let[n,i]of Object.entries(r))typeof i=="object"&&ei.isError(i)&&(r[n]=ei.stubError(i));return r}set meta(t){this[xe.LOG].meta={...this[xe.LOG].meta,...t}}get tags(){let t=this[xe.OPTS];return[].concat(t.tags,this[xe.LOG].tags).map(n=>{if(typeof n=="function")return n.call(this,{level:this.level,meta:this.meta,options:t});let i=n.match(/(<<(.*)>>)/);return i&&i[2]==="level"?n.replace(i[1],this.level):n}).filter(n=>n!=null&&n!=="")}set tags(t){this[xe.LOG].tags=this[xe.LOG].tags.concat(t)}get value(){let t=this[xe.OPTS];return{[t.levelKey]:t.levelKey?this.level:void 0,[t.messageKey]:this.msg,...this.meta,[t.tagsKey]:t.tagsKey?this.tags:void 0}}get log(){return this.value}get throw(){let t=this[xe.ERROR]||new Error(this.msg);throw t.log=this,t}toJSON(t){return Ime(this.value,this[xe.OPTS].replacer||null,t?4:0)}static isError(t){return Boolean(t)&&typeof t=="object"&&(t instanceof Error||Object.prototype.hasOwnProperty.call(t,"message")&&Object.prototype.hasOwnProperty.call(t,"stack"))}static stubError(t){return typeof t.toJSON=="function"||(t.toJSON=function(){return["name","message","stack"].concat(Object.keys(t)).reduce((n,i)=>{if(i in t){let s=t[i];if(typeof s=="function")return n;n[i]=s}return n},{})}),t}};ei.symbols=xe;mj.exports=ei});var _j=f((gxe,hj)=>{var Rme=require("events"),Dme=pj(),Xs={LEVELS:Symbol("levels")},Zs=class extends Rme{constructor(t={},r={}){super(),this.LambdaLog=Zs,this.LogMessage=Dme,this.options={meta:{},tags:[],dynamicMeta:null,debug:!1,dev:!1,silent:["true","yes","y","1"].includes(process.env.LAMBDALOG_SILENT),replacer:null,logHandler:console,levelKey:"_logLevel",messageKey:"msg",tagsKey:"_tags",...t},this[Xs.LEVELS]={info:"info",warn:"warn",error:"error",debug(){return this.options.debug?"debug":!1},...r},this.console=this.options.logHandler;let n=this[Xs.LEVELS];for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&this.addLevel(i,n[i])}addLevel(t,r){return this[Xs.LEVELS][t]=r,this[t]=(n,i={},s=[])=>this.log(t,n,i,s),this}log(t,r,n={},i=[]){if(!Object.prototype.hasOwnProperty.call(this[Xs.LEVELS],t))throw new Error(`"${t}" is not a valid log level`);let s=new this.LogMessage({level:t,msg:r,meta:n,tags:i},this.options),o=this[Xs.LEVELS][t];return typeof o=="function"&&(o=o.call(this,s)),o?(this.options.silent||this.console[o](s.toJSON(this.options.dev)),this.emit("log",s),s):!1}assert(t,r,n={},i=[]){return t?!1:this.log("error",r,n,i)}result(t,r={},n=[]){if(!t||typeof t.then!="function")throw new Error("A promise must be provided as the first argument");return new Promise(s=>{t.then(o=>s(this.log("info",o,r,n))).catch(o=>s(this.log("error",o,r,n)))})}};Zs.symbols=Xs;hj.exports=Zs});var Sb=f((vxe,yj)=>{var Pme=_j(),Nme=new Pme;yj.exports=Nme});var gj=f(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});var Ome=Sb(),m_=class{};wb.default=m_;m_.Instance=new Ome.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0})});var bj=f(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.GetAppInfo=Wr.GetRoute=Wr.normalizePathPrefix=Wr.loadAppFrame=void 0;var Sj=K();dy();var bb=Sj.__importDefault(require("path")),vj=yb(),Eb=X0(),Lme=Sj.__importDefault(gj()),yn=Lme.default.Instance;function qme({basePath:e="."}){let t=[e,bb.default.join(e,".."),bb.default.join(e,"templates"),e,"/opt","/opt/templates"];for(let r of t){let n=bb.default.join(r,"appFrame.html");try{if((0,vj.pathExistsSync)(n))return yn.info("found html file",{fullPath:n}),(0,vj.readFileSync)(n,"utf-8")}catch{}}throw yn.error("appFrame.html not found"),new Error("appFrame.html not found")}Wr.loadAppFrame=qme;function Mme(e){let t=e;return t!==""&&!t.startsWith("/")&&(t="/"+e),t.endsWith("/")&&t.substring(0,t.length-1),t}Wr.normalizePathPrefix=Mme;async function zme(e){let{dbManager:t,normalizedPathPrefix:r="",queryStringParameters:n}=e;try{if(r&&!e.rawPath.startsWith(r))return{statusCode:404,errorMessage:"Request not routable"};let i=r&&e.rawPath.startsWith(r)?e.rawPath.slice(r.length-1):e.rawPath,s=i.split("/"),{versionsAndRules:o,appName:a}=await wj({dbManager:t,appName:s.length>=2?s[1]:"[root]"}),c=a==="[root]",u=c?"":`${a}/`,p=(c?i:i.slice(a.length+1)).split("/"),m="";if(p.length>=2&&p[1]!==""&&(m=p.slice(1).join("/")),p.length===2||p.length===3&&!p[2]){let A=await kme({dbManager:t,appName:a,normalizedPathPrefix:r,semVer:p[1],appNameOrRootTrailingSlash:u});if(A)return A}let _=p.length>=4?p[3]:"",g=p.length>=2?p[1]:"",y=jme({dbManager:t,normalizedPathPrefix:r,event:e,appName:a,possibleSemVerPathNextData:_,possibleSemVerPathAfterApp:g,possibleSemVerQuery:(n==null?void 0:n.get("appver"))||"",additionalParts:m,versionsAndRules:o,appNameOrRootTrailingSlash:u});return y||{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, no matching route`}}catch(i){return yn.error("unexpected exception - returning 599",{statusCode:599,error:i}),{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, ${i.message}`}}}Wr.GetRoute=zme;async function wj(e){let{dbManager:t,appName:r}=e,n;return n=await Eb.Application.GetVersionsAndRules({dbManager:t,key:{AppName:r}}),n.Versions.length>0?{appName:r,versionsAndRules:n}:(n=await Eb.Application.GetVersionsAndRules({dbManager:t,key:{AppName:"[root]"}}),{appName:"[root]",versionsAndRules:n})}Wr.GetAppInfo=wj;function jme(e){var t,r;let{event:n,normalizedPathPrefix:i="",appName:s,possibleSemVerPathNextData:o,possibleSemVerPathAfterApp:a,possibleSemVerQuery:c,additionalParts:u,versionsAndRules:d,appNameOrRootTrailingSlash:p}=e,m,_=a?d.Versions.find(I=>I.SemVer===a):void 0,g=o?d.Versions.find(I=>I.SemVer===o):void 0,y=c?d.Versions.find(I=>I.SemVer===c):void 0,A=_||g;if(A)return{appName:s,semVer:A.SemVer,...A!=null&&A.URL?{url:A==null?void 0:A.URL}:{},...A!=null&&A.Type?{type:(A==null?void 0:A.Type)==="lambda"?"apigwy":A==null?void 0:A.Type}:{}};if(y)m=y;else{if(c)return yn.error(`could not find app ${s}, for path ${n.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find app: ${n.rawPath}, ${s}`};{let I=(r=(t=d.Rules)===null||t===void 0?void 0:t.RuleSet.default)===null||r===void 0?void 0:r.SemVer;if(I==null)return yn.error(`could not find app ${s}, for path ${n.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find app: ${n.rawPath}, ${s}`};m=d.Versions.find(U=>U.SemVer===I)}}if(!m)return yn.error(`could not find version info for app ${s}, for path ${n.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find version info for app: ${n.rawPath}, ${s}`};if((m==null?void 0:m.StartupType)==="iframe"||!(m!=null&&m.StartupType)){let I;return(m==null?void 0:m.Type)!=="static"&&((m==null?void 0:m.DefaultFile)===void 0||(m==null?void 0:m.DefaultFile)===""||u!=="")?(I=`${i}/${p}${m.SemVer}`,u!==""&&(I+=`/${u}`)):I=`${i}/${p}${m.SemVer}/${m.DefaultFile}`,{statusCode:200,appName:s,semVer:m.SemVer,startupType:"iframe",...m!=null&&m.URL?{url:m==null?void 0:m.URL}:{},...m!=null&&m.Type?{type:(m==null?void 0:m.Type)==="lambda"?"apigwy":m==null?void 0:m.Type}:{},iFrameAppVersionPath:I}}else{if((m==null?void 0:m.Type)==="lambda")throw new Error("Invalid type for direct app version");if(["apigwy","static"].includes((m==null?void 0:m.Type)||""))throw new Error("Invalid type for direct app version");return{appName:s,semVer:m.SemVer,startupType:"direct",...m!=null&&m.URL?{url:m==null?void 0:m.URL}:{},...m!=null&&m.Type?{type:m==null?void 0:m.Type}:{}}}}async function kme(e){let{dbManager:t,normalizedPathPrefix:r="",appName:n,appNameOrRootTrailingSlash:i,semVer:s}=e,o;try{o=await Eb.Version.LoadVersion({dbManager:t,key:{AppName:n,SemVer:s}})}catch(a){yn.info(`LoadVersion threw for '${r}/${i}${s}' - falling through to app routing'`,{appName:n,semVer:s,error:a});return}if(o===void 0){yn.info(`LoadVersion returned undefined for '${r}/${i}${s}', assuming not found - falling through to app routing'`,{appName:n,semVer:s});return}if(!!o.DefaultFile)return yn.info(`found '${r}/${i}${s}' - returning 302 to ${r}/${i}${s}/${o.DefaultFile}`,{statusCode:302,routedPath:`${r}/${i}${s}/${o.DefaultFile}`}),{statusCode:302,redirectLocation:`${r}/${i}${s}/${o.DefaultFile}`}}});var eo=f((vc,Cb)=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.default=Fme;function p_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p_=function(r){return typeof r}:p_=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},p_(e)}function Fme(e){var t=typeof e=="string"||e instanceof String;if(!t){var r=p_(e);throw e===null?r="null":r==="object"&&(r=e.constructor.name),new TypeError("Expected a string but received a ".concat(r))}}Cb.exports=vc.default;Cb.exports.default=vc.default});var h_=f((Sc,xb)=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.default=Bme;function Bme(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)typeof e[r]>"u"&&(e[r]=t[r]);return e}xb.exports=Sc.default;xb.exports.default=Sc.default});var Cj=f((wc,Ib)=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.default=Vme;var Gme=$me(eo());function $me(e){return e&&e.__esModule?e:{default:e}}function __(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?__=function(r){return typeof r}:__=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},__(e)}function Vme(e,t){(0,Gme.default)(e);var r,n;__(t)==="object"?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(typeof n>"u"||i<=n)}Ib.exports=wc.default;Ib.exports.default=wc.default});var Db=f((bc,Rb)=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.default=Yme;var Kme=xj(eo()),Hme=xj(h_());function xj(e){return e&&e.__esModule?e:{default:e}}var Wme={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function Yme(e,t){(0,Kme.default)(e),t=(0,Hme.default)(t,Wme),t.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),t.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var r=e.split("."),n=r[r.length-1];return t.require_tld&&(r.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(n)||/\s/.test(n))||!t.allow_numeric_tld&&/^\d+$/.test(n)?!1:r.every(function(i){return!(i.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(i)||/[\uff01-\uff5e]/.test(i)||/^-|-$/.test(i)||!t.allow_underscores&&/_/.test(i))})}Rb.exports=bc.default;Rb.exports.default=bc.default});var y_=f((Ec,Nb)=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.default=Pb;var Jme=Qme(eo());function Qme(e){return e&&e.__esModule?e:{default:e}}var Ij="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",ti="(".concat(Ij,"[.]){3}").concat(Ij),Xme=new RegExp("^".concat(ti,"$")),We="(?:[0-9a-fA-F]{1,4})",Zme=new RegExp("^("+"(?:".concat(We,":){7}(?:").concat(We,"|:)|")+"(?:".concat(We,":){6}(?:").concat(ti,"|:").concat(We,"|:)|")+"(?:".concat(We,":){5}(?::").concat(ti,"|(:").concat(We,"){1,2}|:)|")+"(?:".concat(We,":){4}(?:(:").concat(We,"){0,1}:").concat(ti,"|(:").concat(We,"){1,3}|:)|")+"(?:".concat(We,":){3}(?:(:").concat(We,"){0,2}:").concat(ti,"|(:").concat(We,"){1,4}|:)|")+"(?:".concat(We,":){2}(?:(:").concat(We,"){0,3}:").concat(ti,"|(:").concat(We,"){1,5}|:)|")+"(?:".concat(We,":){1}(?:(:").concat(We,"){0,4}:").concat(ti,"|(:").concat(We,"){1,6}|:)|")+"(?::((?::".concat(We,"){0,5}:").concat(ti,"|(?::").concat(We,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function Pb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,Jme.default)(e),t=String(t),!t)return Pb(e,4)||Pb(e,6);if(t==="4"){if(!Xme.test(e))return!1;var r=e.split(".").sort(function(n,i){return n-i});return r[3]<=255}return t==="6"?!!Zme.test(e):!1}Nb.exports=Ec.default;Nb.exports.default=Ec.default});var Dj=f((Tc,Lb)=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.default=fpe;var epe=Ac(eo()),tpe=Ac(h_()),Ob=Ac(Cj()),rpe=Ac(Db()),Rj=Ac(y_());function Ac(e){return e&&e.__esModule?e:{default:e}}var npe={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},ipe=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,spe=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,ope=/^[a-z\d]+$/,ape=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,cpe=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,lpe=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,upe=254;function dpe(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var r=/[\.";<>]/.test(t);if(r){if(t===e)return!1;var n=t.split('"').length===t.split('\\"').length;if(!n)return!1}return!0}function fpe(e,t){if((0,epe.default)(e),t=(0,tpe.default)(t,npe),t.require_display_name||t.allow_display_name){var r=e.match(ipe);if(r){var n=r[1];if(e=e.replace(n,"").replace(/(^<|>$)/g,""),n.endsWith(" ")&&(n=n.substr(0,n.length-1)),!dpe(n))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>upe)return!1;var i=e.split("@"),s=i.pop(),o=s.toLowerCase();if(t.host_blacklist.includes(o))return!1;var a=i.join("@");if(t.domain_specific_validation&&(o==="gmail.com"||o==="googlemail.com")){a=a.toLowerCase();var c=a.split("+")[0];if(!(0,Ob.default)(c.replace(/\./g,""),{min:6,max:30}))return!1;for(var u=c.split("."),d=0;d<u.length;d++)if(!ope.test(u[d]))return!1}if(t.ignore_max_length===!1&&(!(0,Ob.default)(a,{max:64})||!(0,Ob.default)(s,{max:254})))return!1;if(!(0,rpe.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,Rj.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var p=s.substr(1,s.length-2);if(p.length===0||!(0,Rj.default)(p))return!1}}if(a[0]==='"')return a=a.slice(1,a.length-1),t.allow_utf8_local_part?lpe.test(a):ape.test(a);for(var m=t.allow_utf8_local_part?cpe:spe,_=a.split("."),g=0;g<_.length;g++)if(!m.test(_[g]))return!1;return!(t.blacklisted_chars&&a.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}Lb.exports=Tc.default;Lb.exports.default=Tc.default});var Lj=f((Cc,qb)=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.default=Ape;var mpe=g_(eo()),ppe=g_(Db()),Pj=g_(y_()),hpe=g_(h_());function g_(e){return e&&e.__esModule?e:{default:e}}function _pe(e,t){return Spe(e)||vpe(e,t)||gpe(e,t)||ype()}function ype(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
35
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gpe(e,t){if(!!e){if(typeof e=="string")return Nj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nj(e,t)}}function Nj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vpe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,s=void 0;try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,s=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw s}}return r}}function Spe(e){if(Array.isArray(e))return e}var wpe={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},bpe=/^\[([^\]]+)\](?::([0-9]+))?$/;function Epe(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Oj(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||Epe(n)&&n.test(e))return!0}return!1}function Ape(e,t){if((0,mpe.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,hpe.default)(t,wpe),t.validate_length&&e.length>=2083)||!t.allow_fragments&&e.includes("#")||!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,n,i,s,o,a,c,u;if(c=e.split("#"),e=c.shift(),c=e.split("?"),e=c.shift(),c=e.split("://"),c.length>1){if(r=c.shift().toLowerCase(),t.require_valid_protocol&&t.protocols.indexOf(r)===-1)return!1}else{if(t.require_protocol)return!1;if(e.substr(0,2)==="//"){if(!t.allow_protocol_relative_urls)return!1;c[0]=e.substr(2)}}if(e=c.join("://"),e==="")return!1;if(c=e.split("/"),e=c.shift(),e===""&&!t.require_host)return!0;if(c=e.split("@"),c.length>1){if(t.disallow_auth||c[0]===""||(n=c.shift(),n.indexOf(":")>=0&&n.split(":").length>2))return!1;var d=n.split(":"),p=_pe(d,2),m=p[0],_=p[1];if(m===""&&_==="")return!1}s=c.join("@"),a=null,u=null;var g=s.match(bpe);if(g?(i="",u=g[1],a=g[2]||null):(c=s.split(":"),i=c.shift(),c.length&&(a=c.join(":"))),a!==null&&a.length>0){if(o=parseInt(a,10),!/^[0-9]+$/.test(a)||o<=0||o>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?Oj(i,t.host_whitelist):!(!(0,Pj.default)(i)&&!(0,ppe.default)(i,t)&&(!u||!(0,Pj.default)(u,6))||(i=i||u,t.host_blacklist&&Oj(i,t.host_blacklist)))}qb.exports=Cc.default;qb.exports.default=Cc.default});var Mj=f((Txe,qj)=>{"use strict";var Tpe=Dj(),Cpe=Lj(),xpe=y_();function Mb(e,t){if(!e)throw new Error(t)}var Ipe={name:"email",coerce:e=>e.toString(),validate:function(e){Mb(Tpe(e),"must be an email address")}},Rpe={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){Mb(xpe(e),"must be an IP address")}},Dpe={name:"url",coerce:e=>e.toString(),validate:function(e){Mb(Cpe(e,{require_tld:!1}),"must be a URL")}};qj.exports={email:Ipe,ipaddress:Rpe,url:Dpe}});var Tk=f(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0})});var Xb=f(Qb=>{"use strict";Object.defineProperty(Qb,"__esModule",{value:!0});var Jb=class{constructor(){if(!!!(Reflect&&Reflect.getMetadata))throw new Error("reflect-metadata should be installed properly");this._reflect=Reflect}isConstructor(t){return!!t.prototype&&!!t.prototype.constructor.name&&t instanceof Function}isConfigClass(t){let r=this._reflect.hasMetadata("tsconvict:properties",t),n=this._reflect.hasMetadata("tsconvict:schema",t);return r||n}getTsType(t,r){return this._reflect.getMetadata("design:type",t,r)}getConvictMetaForProperty(t,r){return this._reflect.getMetadata("tsconvict:property",t,r)}setConvictMetaForProperty(t,r,n){return this._reflect.defineMetadata("tsconvict:property",t,r,n)}setConvictMetaForClass(t,r){return this._reflect.defineMetadata("tsconvict:schema",t,r)}getConvictMetaForClass(t){return this._reflect.getMetadata("tsconvict:schema",t)||null}setPropertyForClass(t,r){let n=this.getClassProperties(t);return n.length===0&&(this._reflect.defineMetadata("tsconvict:properties",[],t.constructor),n=this.getClassProperties(t)),n.push(r)}getClassProperties(t){return this._reflect.getMetadata("tsconvict:properties",t.constructor)||[]}};Qb.default=new Jb});var Ck=f(ii=>{"use strict";var eye=ii&&ii.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ii,"__esModule",{value:!0});ii.Property=ii.Config=void 0;var T_=eye(Xb());function tye(e={}){return t=>{T_.default.setConvictMetaForClass(e,t)}}ii.Config=tye;function rye(e){return(t,r)=>{if(typeof e=="object"&&typeof e.format>"u"){let n=T_.default.getTsType(t,r);n&&(e.format=n)}T_.default.setConvictMetaForProperty(e,t,r),T_.default.setPropertyForClass(t,r)}}ii.Property=rye});var Lk=f((Lxe,Ok)=>{"use strict";var nye=require("util"),iye=require("fs"),xk=require("path");function Nc(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function Dk(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function Pk(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function sye(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var pr;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(pr||(pr={}));var vn,eE=class{constructor(t){vn=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=sye(t),s=oye(Object.assign(Object.create(null),n.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),a=Object.assign(Object.create(null),n.default),c=n.configObjects||[],u=n.envPrefix,d=o["populate--"],p=d?"--":"_",m=Object.create(null),_=Object.create(null),g=n.__||vn.format,y={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},A=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,I=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(S){let w=typeof S=="object"?S.key:S,N=Object.keys(S).map(function(x){return{boolean:"bools",string:"strings",number:"numbers"}[x]}).filter(Boolean).pop();N&&(y[N][w]=!0),y.arrays[w]=!0,y.keys.push(w)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(S){y.bools[S]=!0,y.keys.push(S)}),[].concat(n.string||[]).filter(Boolean).forEach(function(S){y.strings[S]=!0,y.keys.push(S)}),[].concat(n.number||[]).filter(Boolean).forEach(function(S){y.numbers[S]=!0,y.keys.push(S)}),[].concat(n.count||[]).filter(Boolean).forEach(function(S){y.counts[S]=!0,y.keys.push(S)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(S){y.normalize[S]=!0,y.keys.push(S)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([S,w])=>{typeof w=="number"&&(y.nargs[S]=w,y.keys.push(S))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([S,w])=>{typeof w=="function"&&(y.coercions[S]=w,y.keys.push(S))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(S){y.configs[S]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([S,w])=>{(typeof w=="boolean"||typeof w=="function")&&(y.configs[S]=w)})),En(n.key,s,n.default,y.arrays),Object.keys(a).forEach(function(S){(y.aliases[S]||[]).forEach(function(w){a[w]=a[S]})});let T=null;B_();let U=[],me=Object.assign(Object.create(null),{_:[]}),tt={};for(let S=0;S<i.length;S++){let w=i[S],N=w.replace(/^-{3,}/,"---"),x,b,j,k,Q,Be;if(w!=="--"&&Hi(w))ct(w);else if(N.match(/---+(=|$)/)){ct(w);continue}else if(w.match(/^--.+=/)||!o["short-option-groups"]&&w.match(/^-.+=/))k=w.match(/^--?([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&(se(k[1],y.arrays)?S=qt(S,k[1],i,k[2]):se(k[1],y.nargs)!==!1?S=Gt(S,k[1],i,k[2]):q(k[1],k[2]));else if(w.match(I)&&o["boolean-negation"])k=w.match(I),k!==null&&Array.isArray(k)&&k.length>=2&&(b=k[1],q(b,se(b,y.arrays)?[!1]:!1));else if(w.match(/^--.+/)||!o["short-option-groups"]&&w.match(/^-[^-]+/))k=w.match(/^--?(.+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(b=k[1],se(b,y.arrays)?S=qt(S,b,i):se(b,y.nargs)!==!1?S=Gt(S,b,i):(Q=i[S+1],Q!==void 0&&(!Q.match(/^-/)||Q.match(A))&&!se(b,y.bools)&&!se(b,y.counts)||/^(true|false)$/.test(Q)?(q(b,Q),S++):q(b,lt(b))));else if(w.match(/^-.\..+=/))k=w.match(/^-([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&q(k[1],k[2]);else if(w.match(/^-.\..+/)&&!w.match(A))Q=i[S+1],k=w.match(/^-(.\..+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(b=k[1],Q!==void 0&&!Q.match(/^-/)&&!se(b,y.bools)&&!se(b,y.counts)?(q(b,Q),S++):q(b,lt(b)));else if(w.match(/^-[^-]+/)&&!w.match(A)){j=w.slice(1,-1).split(""),x=!1;for(let Je=0;Je<j.length;Je++){if(Q=w.slice(Je+2),j[Je+1]&&j[Je+1]==="="){Be=w.slice(Je+3),b=j[Je],se(b,y.arrays)?S=qt(S,b,i,Be):se(b,y.nargs)!==!1?S=Gt(S,b,i,Be):q(b,Be),x=!0;break}if(Q==="-"){q(j[Je],Q);continue}if(/[A-Za-z]/.test(j[Je])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Q)&&se(Q,y.bools)===!1){q(j[Je],Q),x=!0;break}if(j[Je+1]&&j[Je+1].match(/\W/)){q(j[Je],Q),x=!0;break}else q(j[Je],lt(j[Je]))}b=w.slice(-1)[0],!x&&b!=="-"&&(se(b,y.arrays)?S=qt(S,b,i):se(b,y.nargs)!==!1?S=Gt(S,b,i):(Q=i[S+1],Q!==void 0&&(!/^(-|--)[^-]/.test(Q)||Q.match(A))&&!se(b,y.bools)&&!se(b,y.counts)||/^(true|false)$/.test(Q)?(q(b,Q),S++):q(b,lt(b))))}else if(w.match(/^-[0-9]$/)&&w.match(A)&&se(w.slice(1),y.bools))b=w.slice(1),q(b,lt(b));else if(w==="--"){U=i.slice(S+1);break}else if(o["halt-at-non-option"]){U=i.slice(S);break}else ct(w)}Te(me,!0),Te(me,!1),Me(me),Ae(),Se(me,y.aliases,a,!0),ge(me),o["set-placeholder-key"]&&ze(me),Object.keys(y.counts).forEach(function(S){Qr(me,S.split("."))||q(S,0)}),d&&U.length&&(me[p]=[]),U.forEach(function(S){me[p].push(S)}),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(me).filter(S=>S!=="--"&&S.includes("-")).forEach(S=>{delete me[S]}),o["strip-aliased"]&&[].concat(...Object.keys(s).map(S=>s[S])).forEach(S=>{o["camel-case-expansion"]&&S.includes("-")&&delete me[S.split(".").map(w=>Nc(w)).join(".")],delete me[S]});function ct(S){let w=Ee("_",S);(typeof w=="string"||typeof w=="number")&&me._.push(w)}function Gt(S,w,N,x){let b,j=se(w,y.nargs);if(j=typeof j!="number"||isNaN(j)?1:j,j===0)return $t(x)||(T=Error(g("Argument unexpected for: %s",w))),q(w,lt(w)),S;let k=$t(x)?0:1;if(o["nargs-eats-options"])N.length-(S+1)+k<j&&(T=Error(g("Not enough arguments following: %s",w))),k=j;else{for(b=S+1;b<N.length&&(!N[b].match(/^-[^0-9]/)||N[b].match(A)||Hi(N[b]));b++)k++;k<j&&(T=Error(g("Not enough arguments following: %s",w)))}let Q=Math.min(k,j);for(!$t(x)&&Q>0&&(q(w,x),Q--),b=S+1;b<Q+S+1;b++)q(w,N[b]);return S+Q}function qt(S,w,N,x){let b=[],j=x||N[S+1],k=se(w,y.nargs);if(se(w,y.bools)&&!/^(true|false)$/.test(j))b.push(!0);else if($t(j)||$t(x)&&/^-/.test(j)&&!A.test(j)&&!Hi(j)){if(a[w]!==void 0){let Q=a[w];b=Array.isArray(Q)?Q:[Q]}}else{$t(x)||b.push(ae(w,x));for(let Q=S+1;Q<N.length&&!(!o["greedy-arrays"]&&b.length>0||k&&typeof k=="number"&&b.length>=k||(j=N[Q],/^-/.test(j)&&!A.test(j)&&!Hi(j)));Q++)S=Q,b.push(ae(w,j))}return typeof k=="number"&&(k&&b.length<k||isNaN(k)&&b.length===0)&&(T=Error(g("Not enough arguments following: %s",w))),q(w,b),S}function q(S,w){if(/-/.test(S)&&o["camel-case-expansion"]){let b=S.split(".").map(function(j){return Nc(j)}).join(".");Y(S,b)}let N=ae(S,w),x=S.split(".");Pe(me,x,N),y.aliases[S]&&y.aliases[S].forEach(function(b){let j=b.split(".");Pe(me,j,N)}),x.length>1&&o["dot-notation"]&&(y.aliases[x[0]]||[]).forEach(function(b){let j=b.split("."),k=[].concat(x);k.shift(),j=j.concat(k),(y.aliases[S]||[]).includes(j.join("."))||Pe(me,j,N)}),se(S,y.normalize)&&!se(S,y.arrays)&&[S].concat(y.aliases[S]||[]).forEach(function(j){Object.defineProperty(tt,j,{enumerable:!0,get(){return w},set(k){w=typeof k=="string"?vn.normalize(k):k}})})}function Y(S,w){y.aliases[S]&&y.aliases[S].length||(y.aliases[S]=[w],m[w]=!0),y.aliases[w]&&y.aliases[w].length||Y(w,S)}function ae(S,w){typeof w=="string"&&(w[0]==="'"||w[0]==='"')&&w[w.length-1]===w[0]&&(w=w.substring(1,w.length-1)),(se(S,y.bools)||se(S,y.counts))&&typeof w=="string"&&(w=w==="true");let N=Array.isArray(w)?w.map(function(x){return Ee(S,x)}):Ee(S,w);return se(S,y.counts)&&($t(N)||typeof N=="boolean")&&(N=Zb()),se(S,y.normalize)&&se(S,y.arrays)&&(Array.isArray(w)?N=w.map(x=>vn.normalize(x)):N=vn.normalize(w)),N}function Ee(S,w){return!o["parse-positional-numbers"]&&S==="_"||!se(S,y.strings)&&!se(S,y.bools)&&!Array.isArray(w)&&(Pk(w)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${w}`)))||!$t(w)&&se(S,y.numbers))&&(w=Number(w)),w}function Me(S){let w=Object.create(null);Se(w,y.aliases,a),Object.keys(y.configs).forEach(function(N){let x=S[N]||w[N];if(x)try{let b=null,j=vn.resolve(vn.cwd(),x),k=y.configs[N];if(typeof k=="function"){try{b=k(j)}catch(Q){b=Q}if(b instanceof Error){T=b;return}}else b=vn.require(j);Re(b)}catch(b){b.name==="PermissionDenied"?T=b:S[N]&&(T=Error(g("Invalid JSON config file: %s",x)))}})}function Re(S,w){Object.keys(S).forEach(function(N){let x=S[N],b=w?w+"."+N:N;typeof x=="object"&&x!==null&&!Array.isArray(x)&&o["dot-notation"]?Re(x,b):(!Qr(me,b.split("."))||se(b,y.arrays)&&o["combine-arrays"])&&q(b,x)})}function Ae(){typeof c<"u"&&c.forEach(function(S){Re(S)})}function Te(S,w){if(typeof u>"u")return;let N=typeof u=="string"?u:"",x=vn.env();Object.keys(x).forEach(function(b){if(N===""||b.lastIndexOf(N,0)===0){let j=b.split("__").map(function(k,Q){return Q===0&&(k=k.substring(N.length)),Nc(k)});(w&&y.configs[j.join(".")]||!w)&&!Qr(S,j)&&q(j.join("."),x[b])}})}function ge(S){let w,N=new Set;Object.keys(S).forEach(function(x){if(!N.has(x)&&(w=se(x,y.coercions),typeof w=="function"))try{let b=Ee(x,w(S[x]));[].concat(y.aliases[x]||[],x).forEach(j=>{N.add(j),S[j]=b})}catch(b){T=b}})}function ze(S){return y.keys.forEach(w=>{~w.indexOf(".")||typeof S[w]>"u"&&(S[w]=void 0)}),S}function Se(S,w,N,x=!1){Object.keys(N).forEach(function(b){Qr(S,b.split("."))||(Pe(S,b.split("."),N[b]),x&&(_[b]=!0),(w[b]||[]).forEach(function(j){Qr(S,j.split("."))||Pe(S,j.split("."),N[b])}))})}function Qr(S,w){let N=S;o["dot-notation"]||(w=[w.join(".")]),w.slice(0,-1).forEach(function(b){N=N[b]||{}});let x=w[w.length-1];return typeof N!="object"?!1:x in N}function Pe(S,w,N){let x=S;o["dot-notation"]||(w=[w.join(".")]),w.slice(0,-1).forEach(function(Be){Be=Ik(Be),typeof x=="object"&&x[Be]===void 0&&(x[Be]={}),typeof x[Be]!="object"||Array.isArray(x[Be])?(Array.isArray(x[Be])?x[Be].push({}):x[Be]=[x[Be],{}],x=x[Be][x[Be].length-1]):x=x[Be]});let b=Ik(w[w.length-1]),j=se(w.join("."),y.arrays),k=Array.isArray(N),Q=o["duplicate-arguments-array"];!Q&&se(b,y.nargs)&&(Q=!0,(!$t(x[b])&&y.nargs[b]===1||Array.isArray(x[b])&&x[b].length===y.nargs[b])&&(x[b]=void 0)),N===Zb()?x[b]=Zb(x[b]):Array.isArray(x[b])?Q&&j&&k?x[b]=o["flatten-duplicate-arrays"]?x[b].concat(N):(Array.isArray(x[b][0])?x[b]:[x[b]]).concat([N]):!Q&&Boolean(j)===Boolean(k)?x[b]=N:x[b]=x[b].concat([N]):x[b]===void 0&&j?x[b]=k?N:[N]:Q&&!(x[b]===void 0||se(b,y.counts)||se(b,y.bools))?x[b]=[x[b],N]:x[b]=N}function En(...S){S.forEach(function(w){Object.keys(w||{}).forEach(function(N){y.aliases[N]||(y.aliases[N]=[].concat(s[N]||[]),y.aliases[N].concat(N).forEach(function(x){if(/-/.test(x)&&o["camel-case-expansion"]){let b=Nc(x);b!==N&&y.aliases[N].indexOf(b)===-1&&(y.aliases[N].push(b),m[b]=!0)}}),y.aliases[N].concat(N).forEach(function(x){if(x.length>1&&/[A-Z]/.test(x)&&o["camel-case-expansion"]){let b=Dk(x,"-");b!==N&&y.aliases[N].indexOf(b)===-1&&(y.aliases[N].push(b),m[b]=!0)}}),y.aliases[N].forEach(function(x){y.aliases[x]=[N].concat(y.aliases[N].filter(function(b){return x!==b}))}))})})}function se(S,w){let N=[].concat(y.aliases[S]||[],S),x=Object.keys(w),b=N.find(j=>x.includes(j));return b?w[b]:!1}function Ue(S){let w=Object.keys(y);return[].concat(w.map(x=>y[x])).some(function(x){return Array.isArray(x)?x.includes(S):x[S]})}function k_(S,...w){return[].concat(...w).some(function(x){let b=S.match(x);return b&&Ue(b[1])})}function U_(S){if(S.match(A)||!S.match(/^-[^-]+/))return!1;let w=!0,N,x=S.slice(1).split("");for(let b=0;b<x.length;b++){if(N=S.slice(b+2),!Ue(x[b])){w=!1;break}if(x[b+1]&&x[b+1]==="="||N==="-"||/[A-Za-z]/.test(x[b])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||x[b+1]&&x[b+1].match(/\W/))break}return w}function Hi(S){return o["unknown-options-as-args"]&&F_(S)}function F_(S){return S=S.replace(/^-{3,}/,"--"),S.match(A)||U_(S)?!1:!k_(S,/^-+([^=]+?)=[\s\S]*$/,I,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function lt(S){return!se(S,y.bools)&&!se(S,y.counts)&&`${S}`in a?a[S]:kc(An(S))}function kc(S){return{[pr.BOOLEAN]:!0,[pr.STRING]:"",[pr.NUMBER]:void 0,[pr.ARRAY]:[]}[S]}function An(S){let w=pr.BOOLEAN;return se(S,y.strings)?w=pr.STRING:se(S,y.numbers)?w=pr.NUMBER:se(S,y.bools)?w=pr.BOOLEAN:se(S,y.arrays)&&(w=pr.ARRAY),w}function $t(S){return S===void 0}function B_(){Object.keys(y.counts).find(S=>se(S,y.arrays)?(T=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",S)),!0):se(S,y.nargs)?(T=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",S)),!0):!1)}return{aliases:Object.assign({},y.aliases),argv:Object.assign(tt,me),configuration:o,defaulted:Object.assign({},_),error:T,newAliases:Object.assign({},m)}}};function oye(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,c){return c.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function Zb(e){return e!==void 0?e+1:1}function Ik(e){return e==="__proto__"?"___proto___":e}var Rk=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):10;if(process&&process.version&&Number(process.version.match(/v([^.]+)/)[1])<Rk)throw Error(`yargs parser supports a minimum Node.js version of ${Rk}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var aye=process?process.env:{},Nk=new eE({cwd:process.cwd,env:()=>aye,format:nye.format,normalize:xk.normalize,resolve:xk.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return iye.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),Oc=function(t,r){return Nk.parse(t.slice(),r).argv};Oc.detailed=function(e,t){return Nk.parse(e.slice(),t)};Oc.camelCase=Nc;Oc.decamelize=Dk;Oc.looksLikeNumber=Pk;Ok.exports=Oc});var bU=f((Lc,so)=>{var cye=200,Kk="__lodash_hash_undefined__",Hk=9007199254740991,cE="[object Arguments]",lye="[object Array]",Wk="[object Boolean]",Yk="[object Date]",uye="[object Error]",lE="[object Function]",Jk="[object GeneratorFunction]",C_="[object Map]",Qk="[object Number]",uE="[object Object]",qk="[object Promise]",Xk="[object RegExp]",x_="[object Set]",Zk="[object String]",eU="[object Symbol]",rE="[object WeakMap]",tU="[object ArrayBuffer]",I_="[object DataView]",rU="[object Float32Array]",nU="[object Float64Array]",iU="[object Int8Array]",sU="[object Int16Array]",oU="[object Int32Array]",aU="[object Uint8Array]",cU="[object Uint8ClampedArray]",lU="[object Uint16Array]",uU="[object Uint32Array]",dye=/[\\^$.*+?()[\]{}|]/g,fye=/\w*$/,mye=/^\[object .+?Constructor\]$/,pye=/^(?:0|[1-9]\d*)$/,De={};De[cE]=De[lye]=De[tU]=De[I_]=De[Wk]=De[Yk]=De[rU]=De[nU]=De[iU]=De[sU]=De[oU]=De[C_]=De[Qk]=De[uE]=De[Xk]=De[x_]=De[Zk]=De[eU]=De[aU]=De[cU]=De[lU]=De[uU]=!0;De[uye]=De[lE]=De[rE]=!1;var hye=typeof global=="object"&&global&&global.Object===Object&&global,_ye=typeof self=="object"&&self&&self.Object===Object&&self,Sn=hye||_ye||Function("return this")(),dU=typeof Lc=="object"&&Lc&&!Lc.nodeType&&Lc,Mk=dU&&typeof so=="object"&&so&&!so.nodeType&&so,yye=Mk&&Mk.exports===dU;function gye(e,t){return e.set(t[0],t[1]),e}function vye(e,t){return e.add(t),e}function Sye(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function wye(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function fU(e,t,r,n){var i=-1,s=e?e.length:0;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function bye(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Eye(e,t){return e==null?void 0:e[t]}function mU(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function zk(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function dE(e,t){return function(r){return e(t(r))}}function jk(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Aye=Array.prototype,Tye=Function.prototype,R_=Object.prototype,tE=Sn["__core-js_shared__"],kk=function(){var e=/[^.]+$/.exec(tE&&tE.keys&&tE.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pU=Tye.toString,si=R_.hasOwnProperty,D_=R_.toString,Cye=RegExp("^"+pU.call(si).replace(dye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Uk=yye?Sn.Buffer:void 0,Fk=Sn.Symbol,Bk=Sn.Uint8Array,xye=dE(Object.getPrototypeOf,Object),Iye=Object.create,Rye=R_.propertyIsEnumerable,Dye=Aye.splice,Gk=Object.getOwnPropertySymbols,Pye=Uk?Uk.isBuffer:void 0,Nye=dE(Object.keys,Object),nE=co(Sn,"DataView"),qc=co(Sn,"Map"),iE=co(Sn,"Promise"),sE=co(Sn,"Set"),oE=co(Sn,"WeakMap"),Mc=co(Object,"create"),Oye=Ki(nE),Lye=Ki(qc),qye=Ki(iE),Mye=Ki(sE),zye=Ki(oE),$k=Fk?Fk.prototype:void 0,Vk=$k?$k.valueOf:void 0;function Vi(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function jye(){this.__data__=Mc?Mc(null):{}}function kye(e){return this.has(e)&&delete this.__data__[e]}function Uye(e){var t=this.__data__;if(Mc){var r=t[e];return r===Kk?void 0:r}return si.call(t,e)?t[e]:void 0}function Fye(e){var t=this.__data__;return Mc?t[e]!==void 0:si.call(t,e)}function Bye(e,t){var r=this.__data__;return r[e]=Mc&&t===void 0?Kk:t,this}Vi.prototype.clear=jye;Vi.prototype.delete=kye;Vi.prototype.get=Uye;Vi.prototype.has=Fye;Vi.prototype.set=Bye;function wn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gye(){this.__data__=[]}function $ye(e){var t=this.__data__,r=P_(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Dye.call(t,r,1),!0}function Vye(e){var t=this.__data__,r=P_(t,e);return r<0?void 0:t[r][1]}function Kye(e){return P_(this.__data__,e)>-1}function Hye(e,t){var r=this.__data__,n=P_(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}wn.prototype.clear=Gye;wn.prototype.delete=$ye;wn.prototype.get=Vye;wn.prototype.has=Kye;wn.prototype.set=Hye;function oo(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Wye(){this.__data__={hash:new Vi,map:new(qc||wn),string:new Vi}}function Yye(e){return N_(this,e).delete(e)}function Jye(e){return N_(this,e).get(e)}function Qye(e){return N_(this,e).has(e)}function Xye(e,t){return N_(this,e).set(e,t),this}oo.prototype.clear=Wye;oo.prototype.delete=Yye;oo.prototype.get=Jye;oo.prototype.has=Qye;oo.prototype.set=Xye;function ao(e){this.__data__=new wn(e)}function Zye(){this.__data__=new wn}function ege(e){return this.__data__.delete(e)}function tge(e){return this.__data__.get(e)}function rge(e){return this.__data__.has(e)}function nge(e,t){var r=this.__data__;if(r instanceof wn){var n=r.__data__;if(!qc||n.length<cye-1)return n.push([e,t]),this;r=this.__data__=new oo(n)}return r.set(e,t),this}ao.prototype.clear=Zye;ao.prototype.delete=ege;ao.prototype.get=tge;ao.prototype.has=rge;ao.prototype.set=nge;function ige(e,t){var r=mE(e)||Ige(e)?bye(e.length,String):[],n=r.length,i=!!n;for(var s in e)(t||si.call(e,s))&&!(i&&(s=="length"||Age(s,n)))&&r.push(s);return r}function hU(e,t,r){var n=e[t];(!(si.call(e,t)&&vU(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function P_(e,t){for(var r=e.length;r--;)if(vU(e[r][0],t))return r;return-1}function sge(e,t){return e&&_U(t,pE(t),e)}function aE(e,t,r,n,i,s,o){var a;if(n&&(a=s?n(e,i,s,o):n(e)),a!==void 0)return a;if(!O_(e))return e;var c=mE(e);if(c){if(a=wge(e),!t)return gge(e,a)}else{var u=$i(e),d=u==lE||u==Jk;if(Dge(e))return dge(e,t);if(u==uE||u==cE||d&&!s){if(mU(e))return s?e:{};if(a=bge(d?{}:e),!t)return vge(e,sge(a,e))}else{if(!De[u])return s?e:{};a=Ege(e,u,aE,t)}}o||(o=new ao);var p=o.get(e);if(p)return p;if(o.set(e,a),!c)var m=r?Sge(e):pE(e);return Sye(m||e,function(_,g){m&&(g=_,_=e[g]),hU(a,g,aE(_,t,r,n,g,e,o))}),a}function oge(e){return O_(e)?Iye(e):{}}function age(e,t,r){var n=t(e);return mE(e)?n:wye(n,r(e))}function cge(e){return D_.call(e)}function lge(e){if(!O_(e)||Cge(e))return!1;var t=wU(e)||mU(e)?Cye:mye;return t.test(Ki(e))}function uge(e){if(!gU(e))return Nye(e);var t=[];for(var r in Object(e))si.call(e,r)&&r!="constructor"&&t.push(r);return t}function dge(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function fE(e){var t=new e.constructor(e.byteLength);return new Bk(t).set(new Bk(e)),t}function fge(e,t){var r=t?fE(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function mge(e,t,r){var n=t?r(zk(e),!0):zk(e);return fU(n,gye,new e.constructor)}function pge(e){var t=new e.constructor(e.source,fye.exec(e));return t.lastIndex=e.lastIndex,t}function hge(e,t,r){var n=t?r(jk(e),!0):jk(e);return fU(n,vye,new e.constructor)}function _ge(e){return Vk?Object(Vk.call(e)):{}}function yge(e,t){var r=t?fE(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function gge(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function _U(e,t,r,n){r||(r={});for(var i=-1,s=t.length;++i<s;){var o=t[i],a=n?n(r[o],e[o],o,r,e):void 0;hU(r,o,a===void 0?e[o]:a)}return r}function vge(e,t){return _U(e,yU(e),t)}function Sge(e){return age(e,pE,yU)}function N_(e,t){var r=e.__data__;return Tge(t)?r[typeof t=="string"?"string":"hash"]:r.map}function co(e,t){var r=Eye(e,t);return lge(r)?r:void 0}var yU=Gk?dE(Gk,Object):Oge,$i=cge;(nE&&$i(new nE(new ArrayBuffer(1)))!=I_||qc&&$i(new qc)!=C_||iE&&$i(iE.resolve())!=qk||sE&&$i(new sE)!=x_||oE&&$i(new oE)!=rE)&&($i=function(e){var t=D_.call(e),r=t==uE?e.constructor:void 0,n=r?Ki(r):void 0;if(n)switch(n){case Oye:return I_;case Lye:return C_;case qye:return qk;case Mye:return x_;case zye:return rE}return t});function wge(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&si.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function bge(e){return typeof e.constructor=="function"&&!gU(e)?oge(xye(e)):{}}function Ege(e,t,r,n){var i=e.constructor;switch(t){case tU:return fE(e);case Wk:case Yk:return new i(+e);case I_:return fge(e,n);case rU:case nU:case iU:case sU:case oU:case aU:case cU:case lU:case uU:return yge(e,n);case C_:return mge(e,n,r);case Qk:case Zk:return new i(e);case Xk:return pge(e);case x_:return hge(e,n,r);case eU:return _ge(e)}}function Age(e,t){return t=t??Hk,!!t&&(typeof e=="number"||pye.test(e))&&e>-1&&e%1==0&&e<t}function Tge(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Cge(e){return!!kk&&kk in e}function gU(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||R_;return e===r}function Ki(e){if(e!=null){try{return pU.call(e)}catch{}try{return e+""}catch{}}return""}function xge(e){return aE(e,!0,!0)}function vU(e,t){return e===t||e!==e&&t!==t}function Ige(e){return Rge(e)&&si.call(e,"callee")&&(!Rye.call(e,"callee")||D_.call(e)==cE)}var mE=Array.isArray;function SU(e){return e!=null&&Pge(e.length)&&!wU(e)}function Rge(e){return Nge(e)&&SU(e)}var Dge=Pye||Lge;function wU(e){var t=O_(e)?D_.call(e):"";return t==lE||t==Jk}function Pge(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hk}function O_(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Nge(e){return!!e&&typeof e=="object"}function pE(e){return SU(e)?ige(e):uge(e)}function Oge(){return[]}function Lge(){return!1}so.exports=xge});var NU=f((qxe,PU)=>{"use strict";var qge=require("fs"),Mge=Lk(),lo=bU(),zge=["__proto__.","constructor.prototype."],jge="strict",EU="warn";function oi(e,t){if(!e)throw new Error(t)}function AU(e){return Number.isInteger(e)&&e>=0&&e<=65535}function yE(e){return String(e).includes("\\\\.\\pipe\\")}var zc={"*":function(){},int:function(e){oi(Number.isInteger(e),"must be an integer")},nat:function(e){oi(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){oi(AU(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){oi(yE(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){yE(e)||oi(AU(e),"must be a windows named pipe or a number within range 0 - 65535")}};zc.integer=zc.int;var gE=new Map,vE={"*":JSON.parse};function TU(e,t){let r=Object.keys(e),n,i=[];for(;r.length;){n=r.shift();let o=uo(e,n);if(typeof o=="object"&&!Array.isArray(o)&&o!=null){if(t)if("_cvtProperties"in o)o=o._cvtProperties,n=`${n}._cvtProperties`;else{i.push([n,o]);continue}let a=Object.keys(o);if(a.length>0){a.forEach(function(c){r.push(`${n}.${c}`)});continue}}i.push([n,o])}let s={};return i.forEach(function(o){let a=o[0];t&&(a=a.replace(/\._cvtProperties/g,""));let c=o[1];s[a]=c}),s}function kge(e,t,r){let n={undeclared:[],invalid_type:[],missing:[]},i=TU(e),s=TU(t._cvtProperties,!0);return Object.keys(s).forEach(function(o){let a=s[o],c=i[o];if(!(o in i))try{if(typeof a.default=="object"&&!Array.isArray(a.default))c=uo(e,o);else throw new Error("missing")}catch{let d=new Error(`configuration param '${o}' missing from config, did you override its parent?`);n.missing.push(d);return}if(delete i[o],(a.format==="object"||typeof a.default=="object")&&Object.keys(i).filter(function(u){return u.lastIndexOf(`${o}.`,0)===0}).forEach(function(u){delete i[u]}),!(typeof a.default>"u"&&c===a.default))try{a._format(c)}catch(u){n.invalid_type.push(u)}}),r&&Object.keys(i).forEach(function(o){let a=new Error(`configuration param '${o}' not declared in the schema`);n.undeclared.push(a)}),n}function Uge(e,t){oi(e.indexOf(t)!==-1,`must be one of the possible values: ${JSON.stringify(e)}`)}var wE={Object,Array,String,Number,Boolean,RegExp},IU=Object.keys(wE),Fge=IU.map(function(e){return wE[e]});function RU(e,t,r,n,i,s,o){if(e==="_cvtProperties")throw new Error(`'${n}': '_cvtProperties' is reserved word of convict.`);if(typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length>0&&!("default"in t)){r[e]={_cvtProperties:{}},Object.keys(t).forEach(function(d){RU(d,t[d],r[e]._cvtProperties,`${n}.${d}`,i,s,o)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let a=lo(t);if(r[e]=a,a.env&&(i[a.env]||(i[a.env]=[]),i[a.env].push(n)),a.arg){if(s[a.arg])throw new Error(`'${n}' reuses a command-line argument: ${a.arg}`);s[a.arg]=n}a.sensitive===!0&&o.add(n);let c=a.format,u;if(Fge.indexOf(c)>=0||IU.indexOf(c)>=0){let d=typeof c=="string"?wE[c]:c;u=function(p){oi(Object.prototype.toString.call(p)==Object.prototype.toString.call(new d),`must be of type ${d.name}`)},a.format=d.name.toLowerCase()}else if(typeof c=="string"){if(!zc[c])throw new Error(`'${n}' uses an unknown format type: ${c}`);u=zc[c]}else if(Array.isArray(c))u=Uge.bind(null,c);else if(typeof c=="function")u=c;else if(c&&typeof c!="function")throw new Error(`'${n}': "format" must be a function or a known format type.`);if(!u&&!c){let d=Object.prototype.toString.call(a.default);u=function(p){oi(Object.prototype.toString.call(p)==d," should be of type "+d.replace(/\[.* |]/g,""))}}a._format=function(d){if(!(this.nullable&&d===null))try{u(d,this)}catch(p){throw p.fullName=n,p.value=d,p}}}function hE(e){let t=e.getEnv();Object.keys(e._env).forEach(function(r){t[r]!==void 0&&e._env[r].forEach(function(i){e.set(i,t[r])})})}function _E(e){let t=Mge(e.getArgs(),{configuration:{"dot-notation":!1}});Object.keys(e._argv).forEach(function(r){let n=e._argv[r];t[r]!==void 0&&e.set(n,String(t[r]))})}function DU(e,t,r){Object.keys(e._cvtProperties).forEach(function(n){let i=e._cvtProperties[n];if(i._cvtProperties){let s=t[n]||{};DU(i,s,r),t[n]=s}else t[n]=bE(n,lo(i.default),e,r)})}function CU(e){return typeof e=="object"&&e!==null}function SE(e,t,r){Object.keys(e).forEach(function(n){Array.isArray(e[n])||!CU(e[n])||!r||r.format==="object"?t[n]=bE(n,e[n],r):(CU(t[n])||(t[n]={}),SE(e[n],t[n],r._cvtProperties[n]))})}function Bge(e,t){let r=t.split("."),n=e;for(;r.length>0;){let i=r.shift();if(n&&n._cvtProperties&&n._cvtProperties[i])n=n._cvtProperties[i];else{n=null;break}}return n}function Gge(e,t){let r=Bge(e,t);return r==null?null:typeof r.format=="string"?r.format:r.default!=null?typeof r.default:null}function bE(e,t,r,n){let i=Gge(r,e);if(typeof t=="string"){if(gE.has(i))return gE.get(i)(t,n,e);switch(i){case"port":case"nat":case"integer":case"int":t=parseInt(t,10);break;case"port_or_windows_named_pipe":t=yE(t)?t:parseInt(t,10);break;case"number":t=parseFloat(t);break;case"boolean":t=String(t).toLowerCase()!=="false";break;case"array":t=t.split(",");break;case"object":t=JSON.parse(t);break;case"regexp":t=new RegExp(t);break;default:}}return t}function xU(e){let t=e.split("."),r=t.length>1?t.pop():"";return(vE[r]||vE["*"])(qge.readFileSync(e,"utf-8"))}function uo(e,t,r){if(t){let n=t.split(".");for(;n.length;){let i=n.shift();if(r&&e[i]==null)e[i]={},e=e[i];else if(i in e)e=e[i];else throw new Error(`cannot find configuration param '${t}'`)}}return e}var jc=function(t,r){let n={getArgs:function(){return r&&r.args||process.argv.slice(2)},getEnv:function(){return r&&r.env||process.env},getProperties:function(){return lo(this._instance)},toString:function(){let i=lo(this._instance);return this._sensitive.forEach(function(s){let o=s.split("."),a=o.pop(),c=o.join("."),u=uo(i,c);u[a]="[Sensitive]"}),JSON.stringify(i,null,2)},getSchema:function(){return JSON.parse(JSON.stringify(this._schema))},getSchemaString:function(){return JSON.stringify(this._schema,null,2)},get:function(i){let s=uo(this._instance,i);return lo(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=uo(this._schema._cvtProperties,i);return lo(s)},reset:function(i){this.set(i,this.default(i))},has:function(i){try{return typeof this.get(i)<"u"}catch{return!1}},set:function(i,s){for(let d of zge)if(i.startsWith(d)||i.includes(`.${d}`))return this;s=bE(i,s,this._schema,this);let o=i.split("."),a=o.pop(),c=o.join("."),u=uo(this._instance,c,!0);return u[a]=s,this},load:function(i){return SE(i,this._instance,this._schema),hE(n),_E(n),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(o){let a=xU(o);a&&SE(a,s._instance,s._schema)}),hE(n),_E(n),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||EU,i.output&&typeof i.output!="function")throw new Error("options.output is optional and must be a function.");let s=i.output||global.console.log,o=kge(this._instance,this._schema,i.allowed);if(o.invalid_type.length+o.undeclared.length+o.missing.length){let a=this._sensitive,c=function(g){let y="";for(let A=0;A<g.length;A++){y.length&&(y+=`
36
- `);let I=g[A];I.fullName&&(y+=I.fullName+": "),I.message&&(y+=I.message),I.value&&!a.has(I.fullName)&&(y+=": value was "+JSON.stringify(I.value))}return y},u=c(o.invalid_type),d=c(o.undeclared),p=c(o.missing),m=[u,p];if(i.allowed===EU&&d.length){let g="Warning:";if(process.stdout.isTTY){let y="\x1B[33;1m",A="\x1B[0m";g=y+g+A}s(g+" "+d)}else i.allowed===jge&&m.push(d);let _=m.filter(function(g){return g.length}).join(`
37
- `);if(_.length)throw new Error(_)}return this}};return typeof t=="string"?n._def=xU(t):n._def=t,n._schema={_cvtProperties:{}},n._env={},n._argv={},n._sensitive=new Set,Object.keys(n._def).forEach(function(i){RU(i,n._def[i],n._schema._cvtProperties,i,n._env,n._argv,n._sensitive)}),n._instance={},DU(n._schema,n._instance,n),hE(n),_E(n),n};jc.addFormat=function(e,t,r){if(typeof e=="object"&&(t=e.validate,r=e.coerce,e=e.name),typeof t!="function")throw new Error(`Validation function for '${e}' must be a function.`);if(r&&typeof r!="function")throw new Error(`Coerce function for '${e}' must be a function.`);zc[e]=t,r&&gE.set(e,r)};jc.addFormats=function(e){Object.keys(e).forEach(function(t){jc.addFormat(t,e[t].validate,e[t].coerce)})};jc.addParser=function(e){Array.isArray(e)||(e=[e]),e.forEach(function(t){if(!t)throw new Error("Invalid parser");if(!t.extension)throw new Error("Missing parser.extension");if(!t.parse)throw new Error("Missing parser.parse function");if(typeof t.parse!="function")throw new Error("Invalid parser.parse function");(Array.isArray(t.extension)?t.extension:[t.extension]).forEach(function(n){if(typeof n!="string")throw new Error("Invalid parser.extension");vE[n]=t.parse})})};PU.exports=jc});var OU=f(fo=>{"use strict";var L_=fo&&fo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fo,"__esModule",{value:!0});fo.TSConvict=void 0;var Jr=L_(Xb()),EE=L_(NU()),$ge=L_(require("fs")),Vge=L_(require("path")),AE=class{constructor(t){if(this.opts={},!Jr.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let r=Jr.default.getConvictMetaForClass(t);r!==null&&(typeof r.parser<"u"&&EE.default.addParser(r.parser),typeof r.formats<"u"&&EE.default.addFormats(r.formats),this.opts=r),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=EE.default(this.schema)}load(t=null){let r=null;if(typeof this.opts.file<"u"&&$ge.default.existsSync(Vge.default.resolve(this.opts.file))&&(r=this.opts.file),typeof t=="string"||Array.isArray(t)){let s;Array.isArray(t)?s=t:s=[t],r!==null&&s.unshift(r),this.client.loadFile(s)}else if(t===null)r!==null?this.client.loadFile(r):this.client.load({});else if(typeof t=="object")r!==null&&this.client.loadFile(r),this.client.load(t);else throw new Error(`Could not load the config given: ${t}`);let n=this.opts.validationMethod===void 0?"strict":this.opts.validationMethod;this.client.validate({allowed:n});let i=this.client.getProperties();return this.applyDataToModel(this.baseModel,i)}getSchemaFor(t){let r={};for(let n of Jr.default.getClassProperties(t)){let i=Jr.default.getConvictMetaForProperty(t,n);if(Jr.default.isConstructor(i)&&Jr.default.isConfigClass(i))try{t[n]=new i,r[n]=this.getSchemaFor(t[n])}catch(s){throw console.error(s),new Error("Could not make a new class of "+i)}else r[n]=i}return r}applyDataToModel(t,r){for(let n of Jr.default.getClassProperties(t)){let i=Jr.default.getConvictMetaForProperty(t,n);Jr.default.isConstructor(i)&&Jr.default.isConfigClass(i)?this.applyDataToModel(t[n],r[n]||{}):n in r&&(t[n]=r[n])}return t}};fo.TSConvict=AE});var LU=f(bn=>{"use strict";var Kge=bn&&bn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),TE=bn&&bn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Kge(t,e,r)};Object.defineProperty(bn,"__esModule",{value:!0});TE(Tk(),bn);TE(Ck(),bn);TE(OU(),bn)});var eve={};BU(eve,{handler:()=>Zge,overrideDBManager:()=>Jge});module.exports=GU(eve);var Bxe=Vt(dy());var mA;(function(e){(function(t){var r=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),n=i(e);typeof r.Reflect>"u"?r.Reflect=e:n=i(r.Reflect,n),t(n);function i(s,o){return function(a,c){typeof s[a]!="function"&&Object.defineProperty(s,a,{configurable:!0,writable:!0,value:c}),o&&o(a,c)}}})(function(t){var r=Object.prototype.hasOwnProperty,n=typeof Symbol=="function",i=n&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=n&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",a={__proto__:[]}instanceof Array,c=!o&&!a,u={create:o?function(){return Je(Object.create(null))}:a?function(){return Je({__proto__:null})}:function(){return Je({})},has:c?function(E,R){return r.call(E,R)}:function(E,R){return R in E},get:c?function(E,R){return r.call(E,R)?E[R]:void 0}:function(E,R){return E[R]}},d=Object.getPrototypeOf(Function),p=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",m=!p&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:k(),_=!p&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Q(),g=!p&&typeof WeakMap=="function"?WeakMap:Be(),y=new g;function A(E,R,P,z){if(Pe(P)){if(!kc(E))throw new TypeError;if(!$t(R))throw new TypeError;return Y(E,R)}else{if(!kc(E))throw new TypeError;if(!Ue(R))throw new TypeError;if(!Ue(z)&&!Pe(z)&&!En(z))throw new TypeError;return En(z)&&(z=void 0),P=lt(P),ae(E,R,P,z)}}t("decorate",A);function I(E,R){function P(z,H){if(!Ue(z))throw new TypeError;if(!Pe(H)&&!B_(H))throw new TypeError;ge(E,R,z,H)}return P}t("metadata",I);function T(E,R,P,z){if(!Ue(P))throw new TypeError;return Pe(z)||(z=lt(z)),ge(E,R,P,z)}t("defineMetadata",T);function U(E,R,P){if(!Ue(R))throw new TypeError;return Pe(P)||(P=lt(P)),Me(E,R,P)}t("hasMetadata",U);function me(E,R,P){if(!Ue(R))throw new TypeError;return Pe(P)||(P=lt(P)),Re(E,R,P)}t("hasOwnMetadata",me);function tt(E,R,P){if(!Ue(R))throw new TypeError;return Pe(P)||(P=lt(P)),Ae(E,R,P)}t("getMetadata",tt);function ct(E,R,P){if(!Ue(R))throw new TypeError;return Pe(P)||(P=lt(P)),Te(E,R,P)}t("getOwnMetadata",ct);function Gt(E,R){if(!Ue(E))throw new TypeError;return Pe(R)||(R=lt(R)),ze(E,R)}t("getMetadataKeys",Gt);function qt(E,R){if(!Ue(E))throw new TypeError;return Pe(R)||(R=lt(R)),Se(E,R)}t("getOwnMetadataKeys",qt);function q(E,R,P){if(!Ue(R))throw new TypeError;Pe(P)||(P=lt(P));var z=Ee(R,P,!1);if(Pe(z)||!z.delete(E))return!1;if(z.size>0)return!0;var H=y.get(R);return H.delete(P),H.size>0||y.delete(R),!0}t("deleteMetadata",q);function Y(E,R){for(var P=E.length-1;P>=0;--P){var z=E[P],H=z(R);if(!Pe(H)&&!En(H)){if(!$t(H))throw new TypeError;R=H}}return R}function ae(E,R,P,z){for(var H=E.length-1;H>=0;--H){var rt=E[H],ce=rt(R,P,z);if(!Pe(ce)&&!En(ce)){if(!Ue(ce))throw new TypeError;z=ce}}return z}function Ee(E,R,P){var z=y.get(E);if(Pe(z)){if(!P)return;z=new m,y.set(E,z)}var H=z.get(R);if(Pe(H)){if(!P)return;H=new m,z.set(R,H)}return H}function Me(E,R,P){var z=Re(E,R,P);if(z)return!0;var H=j(R);return En(H)?!1:Me(E,H,P)}function Re(E,R,P){var z=Ee(R,P,!1);return Pe(z)?!1:Hi(z.has(E))}function Ae(E,R,P){var z=Re(E,R,P);if(z)return Te(E,R,P);var H=j(R);if(!En(H))return Ae(E,H,P)}function Te(E,R,P){var z=Ee(R,P,!1);if(!Pe(z))return z.get(E)}function ge(E,R,P,z){var H=Ee(P,z,!0);H.set(E,R)}function ze(E,R){var P=Se(E,R),z=j(E);if(z===null)return P;var H=ze(z,R);if(H.length<=0)return P;if(P.length<=0)return H;for(var rt=new _,ce=[],ue=0,Z=P;ue<Z.length;ue++){var _e=Z[ue],ye=rt.has(_e);ye||(rt.add(_e),ce.push(_e))}for(var Tn=0,DE=H;Tn<DE.length;Tn++){var _e=DE[Tn],ye=rt.has(_e);ye||(rt.add(_e),ce.push(_e))}return ce}function Se(E,R){var P=[],z=Ee(E,R,!1);if(Pe(z))return P;for(var H=z.keys(),rt=w(H),ce=0;;){var ue=x(rt);if(!ue)return P.length=ce,P;var Z=N(ue);try{P[ce]=Z}catch(_e){try{b(rt)}finally{throw _e}}ce++}}function Qr(E){if(E===null)return 1;switch(typeof E){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return E===null?1:6;default:return 6}}function Pe(E){return E===void 0}function En(E){return E===null}function se(E){return typeof E=="symbol"}function Ue(E){return typeof E=="object"?E!==null:typeof E=="function"}function k_(E,R){switch(Qr(E)){case 0:return E;case 1:return E;case 2:return E;case 3:return E;case 4:return E;case 5:return E}var P=R===3?"string":R===5?"number":"default",z=S(E,i);if(z!==void 0){var H=z.call(E,P);if(Ue(H))throw new TypeError;return H}return U_(E,P==="default"?"number":P)}function U_(E,R){if(R==="string"){var P=E.toString;if(An(P)){var z=P.call(E);if(!Ue(z))return z}var H=E.valueOf;if(An(H)){var z=H.call(E);if(!Ue(z))return z}}else{var H=E.valueOf;if(An(H)){var z=H.call(E);if(!Ue(z))return z}var rt=E.toString;if(An(rt)){var z=rt.call(E);if(!Ue(z))return z}}throw new TypeError}function Hi(E){return!!E}function F_(E){return""+E}function lt(E){var R=k_(E,3);return se(R)?R:F_(R)}function kc(E){return Array.isArray?Array.isArray(E):E instanceof Object?E instanceof Array:Object.prototype.toString.call(E)==="[object Array]"}function An(E){return typeof E=="function"}function $t(E){return typeof E=="function"}function B_(E){switch(Qr(E)){case 3:return!0;case 4:return!0;default:return!1}}function S(E,R){var P=E[R];if(P!=null){if(!An(P))throw new TypeError;return P}}function w(E){var R=S(E,s);if(!An(R))throw new TypeError;var P=R.call(E);if(!Ue(P))throw new TypeError;return P}function N(E){return E.value}function x(E){var R=E.next();return R.done?!1:R}function b(E){var R=E.return;R&&R.call(E)}function j(E){var R=Object.getPrototypeOf(E);if(typeof E!="function"||E===d||R!==d)return R;var P=E.prototype,z=P&&Object.getPrototypeOf(P);if(z==null||z===Object.prototype)return R;var H=z.constructor;return typeof H!="function"||H===E?R:H}function k(){var E={},R=[],P=function(){function ce(ue,Z,_e){this._index=0,this._keys=ue,this._values=Z,this._selector=_e}return ce.prototype["@@iterator"]=function(){return this},ce.prototype[s]=function(){return this},ce.prototype.next=function(){var ue=this._index;if(ue>=0&&ue<this._keys.length){var Z=this._selector(this._keys[ue],this._values[ue]);return ue+1>=this._keys.length?(this._index=-1,this._keys=R,this._values=R):this._index++,{value:Z,done:!1}}return{value:void 0,done:!0}},ce.prototype.throw=function(ue){throw this._index>=0&&(this._index=-1,this._keys=R,this._values=R),ue},ce.prototype.return=function(ue){return this._index>=0&&(this._index=-1,this._keys=R,this._values=R),{value:ue,done:!0}},ce}();return function(){function ce(){this._keys=[],this._values=[],this._cacheKey=E,this._cacheIndex=-2}return Object.defineProperty(ce.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ce.prototype.has=function(ue){return this._find(ue,!1)>=0},ce.prototype.get=function(ue){var Z=this._find(ue,!1);return Z>=0?this._values[Z]:void 0},ce.prototype.set=function(ue,Z){var _e=this._find(ue,!0);return this._values[_e]=Z,this},ce.prototype.delete=function(ue){var Z=this._find(ue,!1);if(Z>=0){for(var _e=this._keys.length,ye=Z+1;ye<_e;ye++)this._keys[ye-1]=this._keys[ye],this._values[ye-1]=this._values[ye];return this._keys.length--,this._values.length--,ue===this._cacheKey&&(this._cacheKey=E,this._cacheIndex=-2),!0}return!1},ce.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=E,this._cacheIndex=-2},ce.prototype.keys=function(){return new P(this._keys,this._values,z)},ce.prototype.values=function(){return new P(this._keys,this._values,H)},ce.prototype.entries=function(){return new P(this._keys,this._values,rt)},ce.prototype["@@iterator"]=function(){return this.entries()},ce.prototype[s]=function(){return this.entries()},ce.prototype._find=function(ue,Z){return this._cacheKey!==ue&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=ue)),this._cacheIndex<0&&Z&&(this._cacheIndex=this._keys.length,this._keys.push(ue),this._values.push(void 0)),this._cacheIndex},ce}();function z(ce,ue){return ce}function H(ce,ue){return ue}function rt(ce,ue){return[ce,ue]}}function Q(){return function(){function E(){this._map=new m}return Object.defineProperty(E.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),E.prototype.has=function(R){return this._map.has(R)},E.prototype.add=function(R){return this._map.set(R,R),this},E.prototype.delete=function(R){return this._map.delete(R)},E.prototype.clear=function(){this._map.clear()},E.prototype.keys=function(){return this._map.keys()},E.prototype.values=function(){return this._map.values()},E.prototype.entries=function(){return this._map.entries()},E.prototype["@@iterator"]=function(){return this.keys()},E.prototype[s]=function(){return this.keys()},E}()}function Be(){var E=16,R=u.create(),P=z();return function(){function Z(){this._key=z()}return Z.prototype.has=function(_e){var ye=H(_e,!1);return ye!==void 0?u.has(ye,this._key):!1},Z.prototype.get=function(_e){var ye=H(_e,!1);return ye!==void 0?u.get(ye,this._key):void 0},Z.prototype.set=function(_e,ye){var Tn=H(_e,!0);return Tn[this._key]=ye,this},Z.prototype.delete=function(_e){var ye=H(_e,!1);return ye!==void 0?delete ye[this._key]:!1},Z.prototype.clear=function(){this._key=z()},Z}();function z(){var Z;do Z="@@WeakMap@@"+ue();while(u.has(R,Z));return R[Z]=!0,Z}function H(Z,_e){if(!r.call(Z,P)){if(!_e)return;Object.defineProperty(Z,P,{value:u.create()})}return Z[P]}function rt(Z,_e){for(var ye=0;ye<_e;++ye)Z[ye]=Math.random()*255|0;return Z}function ce(Z){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(Z)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(Z)):rt(new Uint8Array(Z),Z):rt(new Array(Z),Z)}function ue(){var Z=ce(E);Z[6]=Z[6]&79|64,Z[8]=Z[8]&191|128;for(var _e="",ye=0;ye<E;++ye){var Tn=Z[ye];(ye===4||ye===6||ye===8)&&(_e+="-"),Tn<16&&(_e+="0"),_e+=Tn.toString(16).toLowerCase()}return _e}}function Je(E){return E.__=void 0,delete E.__,E}})})(mA||(mA={}));var MU=Vt(gt()),xE=Vt(dp()),IE=Vt(wS()),RE=Vt(gL()),zU=Vt(X0()),po=Vt(bj());var Ej=Vt(Et()),Ume={"x-forwarded-for":!0,"x-amzn-trace-id":!0};function Ab(e){let{request:t}=e,{headers:r,method:n,body:i,querystring:s,uri:o}=t,a=s.replace(/\[/g,"%5B").replace(/]/g,"%5D"),c=r.host[0].value,u=new URL(`https://${c}${o}${s?`?${s}`:""}`),d={};for(let _ of Object.keys(r))Ume[_]||(d[_]=r[_][0].value);let p={};for(let _ of u.searchParams.keys())p[_]=u.searchParams.get(_)||"";t.querystring=a;let m;return i&&i.data&&i.encoding==="base64"?m=Buffer.from(i.data,"base64"):i&&i.data&&(m=i.data),new Ej.HttpRequest({headers:d,hostname:c,method:n,port:443,protocol:"https:",path:t.uri,body:m,query:p})}var Tb=["authorization","x-amz-date","x-amz-security-token","x-amz-content-sha256"];async function Aj(e,t,r){let n=Ab({request:e});for(let s of Tb)delete n.headers[s];let i=await r.sign(n);for(let s of Tb)e.headers[s]=[{key:s,value:i.headers[s]}];return e}async function Tj(e,t,r){let n=Ab({request:e}),i=await r.presign(n);for(let s of Tb)e.headers[s]=[{key:s,value:i.headers[s]}];return e}var z_=Vt(Mj());function Xj(e){return typeof e>"u"||e===null}function Ppe(e){return typeof e=="object"&&e!==null}function Npe(e){return Array.isArray(e)?e:Xj(e)?[]:[e]}function Ope(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function Lpe(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function qpe(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Mpe=Xj,zpe=Ppe,jpe=Npe,kpe=Lpe,Upe=qpe,Fpe=Ope,Qe={isNothing:Mpe,isObject:zpe,toArray:jpe,repeat:kpe,isNegativeZero:Upe,extend:Fpe};function Zj(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
45
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),Yl.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Yl.checkParentPaths(e,o,t,"copy",c=>c?n(c):r.filter?D$(P$,a,e,t,r,n):P$(a,e,t,r,n))})}function P$(e,t,r,n,i){let s=Wl.dirname(r);$Te(s,(o,a)=>{if(o)return i(o);if(a)return sx(e,t,r,n,i);GTe(s,c=>c?i(c):sx(e,t,r,n,i))})}function D$(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function sx(e,t,r,n,i){return n.filter?D$(O$,e,t,r,n,i):O$(e,t,r,n,i)}function O$(e,t,r,n,i){(n.dereference?Ut.stat:Ut.lstat)(t,(o,a)=>{if(o)return i(o);if(a.isDirectory())return ZTe(a,e,t,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return KTe(a,e,t,r,n,i);if(a.isSymbolicLink())return rCe(e,t,r,n,i)})}function KTe(e,t,r,n,i,s){return t?WTe(e,r,n,i,s):q$(e,r,n,i,s)}function WTe(e,t,r,n,i){if(n.overwrite)Ut.unlink(r,s=>s?i(s):q$(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function q$(e,t,r,n,i){Ut.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?YTe(e.mode,t,r,i):Kv(r,e.mode,i))}function YTe(e,t,r,n){return JTe(e)?QTe(r,e,i=>i?n(i):N$(e,t,r,n)):N$(e,t,r,n)}function JTe(e){return(e&128)===0}function QTe(e,t,r){return Kv(e,t|128,r)}function N$(e,t,r,n){XTe(t,r,i=>i?n(i):Kv(r,e,n))}function Kv(e,t,r){return Ut.chmod(e,t,r)}function XTe(e,t,r){Ut.stat(e,(n,i)=>n?r(n):VTe(t,i.atime,i.mtime,r))}function ZTe(e,t,r,n,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):L$(r,n,i,s):eCe(e.mode,r,n,i,s)}function eCe(e,t,r,n,i){Ut.mkdir(r,s=>{if(s)return i(s);L$(t,r,n,o=>o?i(o):Kv(r,e,i))})}function L$(e,t,r,n){Ut.readdir(e,(i,s)=>i?n(i):M$(s,e,t,r,n))}function M$(e,t,r,n,i){let s=e.pop();return s?tCe(e,s,t,r,n,i):i()}function tCe(e,t,r,n,i,s){let o=Wl.join(r,t),a=Wl.join(n,t);Yl.checkPaths(o,a,"copy",(c,l)=>{if(c)return s(c);let{destStat:u}=l;sx(u,o,a,i,p=>p?s(p):M$(e,r,n,i,s))})}function rCe(e,t,r,n,i){Ut.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Wl.resolve(process.cwd(),o)),e)Ut.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?Ut.symlink(o,r,i):i(a):(n.dereference&&(c=Wl.resolve(process.cwd(),c)),Yl.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&Yl.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):nCe(o,r,i)));else return Ut.symlink(o,r,i)})}function nCe(e,t,r){Ut.unlink(t,n=>n?r(n):Ut.symlink(e,t,r))}j$.exports=HTe});var ox=d((uGe,k$)=>{"use strict";var iCe=kt().fromCallback;k$.exports={copy:iCe(z$())}});var W$=d((dGe,K$)=>{"use strict";var F$=wt(),$$=require("path"),Oe=require("assert"),Jl=process.platform==="win32";function V$(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||F$[r],r=r+"Sync",e[r]=e[r]||F$[r]}),e.maxBusyTries=e.maxBusyTries||3}function ax(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),Oe(e,"rimraf: missing path"),Oe.strictEqual(typeof e,"string","rimraf: path should be a string"),Oe.strictEqual(typeof r,"function","rimraf: callback function required"),Oe(t,"rimraf: invalid options argument provided"),Oe.strictEqual(typeof t,"object","rimraf: options should be object"),V$(t),U$(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let o=n*100;return setTimeout(()=>U$(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function U$(e,t,r){Oe(e),Oe(t),Oe(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Jl)return B$(e,t,n,r);if(i&&i.isDirectory())return Wv(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Jl?B$(e,t,s,r):Wv(e,t,s,r);if(s.code==="EISDIR")return Wv(e,t,s,r)}return r(s)})})}function B$(e,t,r,n){Oe(e),Oe(t),Oe(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Wv(e,t,r,n):t.unlink(e,n)})})}function G$(e,t,r){let n;Oe(e),Oe(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Yv(e,t,r):t.unlinkSync(e)}function Wv(e,t,r,n){Oe(e),Oe(t),Oe(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?sCe(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function sCe(e,t,r){Oe(e),Oe(t),Oe(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(a=>{ax($$.join(e,a),t,c=>{if(!o){if(c)return r(o=c);--s===0&&t.rmdir(e,r)}})})})}function H$(e,t){let r;t=t||{},V$(t),Oe(e,"rimraf: missing path"),Oe.strictEqual(typeof e,"string","rimraf: path should be a string"),Oe(t,"rimraf: missing options"),Oe.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Jl&&G$(e,t,n)}try{r&&r.isDirectory()?Yv(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Jl?G$(e,t,n):Yv(e,t,n);if(n.code!=="EISDIR")throw n;Yv(e,t,n)}}function Yv(e,t,r){Oe(e),Oe(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")oCe(e,t);else if(n.code!=="ENOENT")throw n}}function oCe(e,t){if(Oe(e),Oe(t),t.readdirSync(e).forEach(r=>H$($$.join(e,r),t)),Jl){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}K$.exports=ax;ax.sync=H$});var Ql=d((fGe,J$)=>{"use strict";var aCe=kt().fromCallback,Y$=W$();J$.exports={remove:aCe(Y$),removeSync:Y$.sync}});var iV=d((mGe,nV)=>{"use strict";var cCe=kt().fromCallback,Z$=wt(),eV=require("path"),tV=Ar(),rV=Ql(),Q$=cCe(function(t,r){r=r||function(){},Z$.readdir(t,(n,i)=>{if(n)return tV.mkdirs(t,r);i=i.map(o=>eV.join(t,o)),s();function s(){let o=i.pop();if(!o)return r();rV.remove(o,a=>{if(a)return r(a);s()})}})});function X$(e){let t;try{t=Z$.readdirSync(e)}catch{return tV.mkdirsSync(e)}t.forEach(r=>{r=eV.join(e,r),rV.removeSync(r)})}nV.exports={emptyDirSync:X$,emptydirSync:X$,emptyDir:Q$,emptydir:Q$}});var cV=d((pGe,aV)=>{"use strict";var lCe=kt().fromCallback,sV=require("path"),Ii=wt(),oV=Ar();function uCe(e,t){function r(){Ii.writeFile(e,"",n=>{if(n)return t(n);t()})}Ii.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=sV.dirname(e);Ii.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?oV.mkdirs(s,c=>{if(c)return t(c);r()}):t(o);a.isDirectory()?r():Ii.readdir(s,c=>{if(c)return t(c)})})})}function dCe(e){let t;try{t=Ii.statSync(e)}catch{}if(t&&t.isFile())return;let r=sV.dirname(e);try{Ii.statSync(r).isDirectory()||Ii.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")oV.mkdirsSync(r);else throw n}Ii.writeFileSync(e,"")}aV.exports={createFile:lCe(uCe),createFileSync:dCe}});var mV=d((_Ge,fV)=>{"use strict";var fCe=kt().fromCallback,uV=require("path"),As=wt(),dV=Ar(),lV=xi().pathExists;function mCe(e,t,r){function n(i,s){As.link(i,s,o=>{if(o)return r(o);r(null)})}lV(t,(i,s)=>{if(i)return r(i);if(s)return r(null);As.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=uV.dirname(t);lV(a,(c,l)=>{if(c)return r(c);if(l)return n(e,t);dV.mkdirs(a,u=>{if(u)return r(u);n(e,t)})})})})}function pCe(e,t){if(As.existsSync(t))return;try{As.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=uV.dirname(t);return As.existsSync(n)||dV.mkdirsSync(n),As.linkSync(e,t)}fV.exports={createLink:fCe(mCe),createLinkSync:pCe}});var _V=d((hGe,pV)=>{"use strict";var Ri=require("path"),Xl=wt(),_Ce=xi().pathExists;function hCe(e,t,r){if(Ri.isAbsolute(e))return Xl.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Ri.dirname(t),i=Ri.join(n,e);return _Ce(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):Xl.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:Ri.relative(n,e)})))}}function yCe(e,t){let r;if(Ri.isAbsolute(e)){if(r=Xl.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Ri.dirname(t),i=Ri.join(n,e);if(r=Xl.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Xl.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Ri.relative(n,e)}}}pV.exports={symlinkPaths:hCe,symlinkPathsSync:yCe}});var gV=d((yGe,yV)=>{"use strict";var hV=wt();function gCe(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);hV.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function vCe(e,t){let r;if(t)return t;try{r=hV.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}yV.exports={symlinkType:gCe,symlinkTypeSync:vCe}});var TV=d((gGe,AV)=>{"use strict";var SCe=kt().fromCallback,SV=require("path"),Ko=wt(),wV=Ar(),wCe=wV.mkdirs,ECe=wV.mkdirsSync,EV=_V(),bCe=EV.symlinkPaths,ACe=EV.symlinkPathsSync,bV=gV(),TCe=bV.symlinkType,CCe=bV.symlinkTypeSync,vV=xi().pathExists;function xCe(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,vV(t,(i,s)=>{if(i)return n(i);if(s)return n(null);bCe(e,t,(o,a)=>{if(o)return n(o);e=a.toDst,TCe(a.toCwd,r,(c,l)=>{if(c)return n(c);let u=SV.dirname(t);vV(u,(p,m)=>{if(p)return n(p);if(m)return Ko.symlink(e,t,l,n);wCe(u,h=>{if(h)return n(h);Ko.symlink(e,t,l,n)})})})})})}function ICe(e,t,r){if(Ko.existsSync(t))return;let i=ACe(e,t);e=i.toDst,r=CCe(i.toCwd,r);let s=SV.dirname(t);return Ko.existsSync(s)||ECe(s),Ko.symlinkSync(e,t,r)}AV.exports={createSymlink:SCe(xCe),createSymlinkSync:ICe}});var xV=d((vGe,CV)=>{"use strict";var Jv=cV(),Qv=mV(),Xv=TV();CV.exports={createFile:Jv.createFile,createFileSync:Jv.createFileSync,ensureFile:Jv.createFile,ensureFileSync:Jv.createFileSync,createLink:Qv.createLink,createLinkSync:Qv.createLinkSync,ensureLink:Qv.createLink,ensureLinkSync:Qv.createLinkSync,createSymlink:Xv.createSymlink,createSymlinkSync:Xv.createSymlinkSync,ensureSymlink:Xv.createSymlink,ensureSymlinkSync:Xv.createSymlinkSync}});var Zv=d((SGe,IV)=>{function RCe(e,{EOL:t=`
46
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function PCe(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}IV.exports={stringify:RCe,stripBom:PCe}});var NV=d((wGe,OV)=>{var Wo;try{Wo=wt()}catch{Wo=require("fs")}var eS=kt(),{stringify:RV,stripBom:PV}=Zv();async function OCe(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Wo,n="throws"in t?t.throws:!0,i=await eS.fromCallback(r.readFile)(e,t);i=PV(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}var NCe=eS.fromPromise(OCe);function DCe(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Wo,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=PV(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function qCe(e,t,r={}){let n=r.fs||Wo,i=RV(t,r);await eS.fromCallback(n.writeFile)(e,i,r)}var LCe=eS.fromPromise(qCe);function MCe(e,t,r={}){let n=r.fs||Wo,i=RV(t,r);return n.writeFileSync(e,i,r)}var jCe={readFile:NCe,readFileSync:DCe,writeFile:LCe,writeFileSync:MCe};OV.exports=jCe});var qV=d((EGe,DV)=>{"use strict";var tS=NV();DV.exports={readJson:tS.readFile,readJsonSync:tS.readFileSync,writeJson:tS.writeFile,writeJsonSync:tS.writeFileSync}});var rS=d((bGe,jV)=>{"use strict";var zCe=kt().fromCallback,Zl=wt(),LV=require("path"),MV=Ar(),kCe=xi().pathExists;function FCe(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=LV.dirname(e);kCe(i,(s,o)=>{if(s)return n(s);if(o)return Zl.writeFile(e,t,r,n);MV.mkdirs(i,a=>{if(a)return n(a);Zl.writeFile(e,t,r,n)})})}function UCe(e,...t){let r=LV.dirname(e);if(Zl.existsSync(r))return Zl.writeFileSync(e,...t);MV.mkdirsSync(r),Zl.writeFileSync(e,...t)}jV.exports={outputFile:zCe(FCe),outputFileSync:UCe}});var kV=d((AGe,zV)=>{"use strict";var{stringify:BCe}=Zv(),{outputFile:GCe}=rS();async function $Ce(e,t,r={}){let n=BCe(t,r);await GCe(e,n,r)}zV.exports=$Ce});var UV=d((TGe,FV)=>{"use strict";var{stringify:VCe}=Zv(),{outputFileSync:HCe}=rS();function KCe(e,t,r){let n=VCe(t,r);HCe(e,n,r)}FV.exports=KCe});var GV=d((CGe,BV)=>{"use strict";var WCe=kt().fromPromise,Rt=qV();Rt.outputJson=WCe(kV());Rt.outputJsonSync=UV();Rt.outputJSON=Rt.outputJson;Rt.outputJSONSync=Rt.outputJsonSync;Rt.writeJSON=Rt.writeJson;Rt.writeJSONSync=Rt.writeJsonSync;Rt.readJSON=Rt.readJson;Rt.readJSONSync=Rt.readJsonSync;BV.exports=Rt});var YV=d((xGe,WV)=>{"use strict";var HV=wt(),YCe=require("path"),JCe=ix().copySync,KV=Ql().removeSync,QCe=Ar().mkdirpSync,$V=Vl();function XCe(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=$V.checkPathsSync(e,t,"move");return $V.checkParentPathsSync(e,i,t,"move"),QCe(YCe.dirname(t)),ZCe(e,t,n)}function ZCe(e,t,r){if(r)return KV(t),VV(e,t,r);if(HV.existsSync(t))throw new Error("dest already exists.");return VV(e,t,r)}function VV(e,t,r){try{HV.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return exe(e,t,r)}}function exe(e,t,r){return JCe(e,t,{overwrite:r,errorOnExist:!0}),KV(e)}WV.exports=XCe});var QV=d((IGe,JV)=>{"use strict";JV.exports={moveSync:YV()}});var rH=d((RGe,tH)=>{"use strict";var txe=wt(),rxe=require("path"),nxe=ox().copy,eH=Ql().remove,ixe=Ar().mkdirp,sxe=xi().pathExists,XV=Vl();function oxe(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;XV.checkPaths(e,t,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;XV.checkParentPaths(e,a,t,"move",c=>{if(c)return n(c);ixe(rxe.dirname(t),l=>l?n(l):axe(e,t,i,n))})})}function axe(e,t,r,n){if(r)return eH(t,i=>i?n(i):ZV(e,t,r,n));sxe(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):ZV(e,t,r,n))}function ZV(e,t,r,n){txe.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):cxe(e,t,r,n):n())}function cxe(e,t,r,n){nxe(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):eH(e,n))}tH.exports=oxe});var iH=d((PGe,nH)=>{"use strict";var lxe=kt().fromCallback;nH.exports={move:lxe(rH())}});var lx=d((OGe,cx)=>{"use strict";cx.exports={...$l(),...ix(),...ox(),...iV(),...xV(),...GV(),...Ar(),...QV(),...iH(),...rS(),...xi(),...Ql()};var sH=require("fs");Object.getOwnPropertyDescriptor(sH,"promises")&&Object.defineProperty(cx.exports,"promises",{get(){return sH.promises}})});var dH=d((NGe,uH)=>{uH.exports=eu;eu.default=eu;eu.stable=cH;eu.stableStringify=cH;var nS="[...]",oH="[Circular]",Cs=[],Ts=[];function aH(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function eu(e,t,r,n){typeof n>"u"&&(n=aH()),ux(e,"",0,[],void 0,0,n);var i;try{Ts.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,lH(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Cs.length!==0;){var s=Cs.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Yo(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),Cs.push([n,r,t,i])):Ts.push([t,r,e]):(n[r]=e,Cs.push([n,r,t]))}function ux(e,t,r,n,i,s,o){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){Yo(oH,e,t,i);return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){Yo(nS,e,t,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Yo(nS,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)ux(e[a],a,a,n,e,s,o);else{var c=Object.keys(e);for(a=0;a<c.length;a++){var l=c[a];ux(e[l],l,a,n,e,s,o)}}n.pop()}}function uxe(e,t){return e<t?-1:e>t?1:0}function cH(e,t,r,n){typeof n>"u"&&(n=aH());var i=dx(e,"",0,[],void 0,0,n)||e,s;try{Ts.length===0?s=JSON.stringify(i,t,r):s=JSON.stringify(i,lH(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Cs.length!==0;){var o=Cs.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function dx(e,t,r,n,i,s,o){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){Yo(oH,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){Yo(nS,e,t,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Yo(nS,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)dx(e[a],a,a,n,e,s,o);else{var c={},l=Object.keys(e).sort(uxe);for(a=0;a<l.length;a++){var u=l[a];dx(e[u],u,a,n,e,s,o),c[u]=e[u]}if(typeof i<"u")Cs.push([i,t,e]),i[t]=c;else return c}n.pop()}}function lH(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(Ts.length>0)for(var n=0;n<Ts.length;n++){var i=Ts[n];if(i[1]===t&&i[0]===r){r=i[2],Ts.splice(n,1);break}}return e.call(this,t,r)}}});var mH=d((DGe,fH)=>{var dxe=dH(),Pe={LOG:Symbol("log"),META:Symbol("meta"),ERROR:Symbol("error"),OPTS:Symbol("opts")},Pi=class{constructor(t,r){this[Pe.LOG]=t,this[Pe.META]={},this[Pe.ERROR]=null,this[Pe.OPTS]=r;let{meta:n,tags:i}=this[Pe.LOG];if(n&&(typeof n!="object"||Array.isArray(n))&&(this[Pe.LOG].meta={meta:n}),n||(this[Pe.LOG].meta={}),i||(this[Pe.LOG].tags=[]),Pi.isError(t.msg)){let s=t.msg;this[Pe.ERROR]=s,this[Pe.META].stack=s.stack,this[Pe.LOG].msg=s.message}}get level(){return this[Pe.LOG].level}get msg(){return this[Pe.LOG].msg}set msg(t){this[Pe.LOG].msg=t}get message(){return this.msg}set message(t){this.msg=t}get meta(){let t=this[Pe.OPTS],r={...this[Pe.META],...this[Pe.OPTS].meta,...this[Pe.LOG].meta};if(t.dynamicMeta&&typeof t.dynamicMeta=="function"){let n=t.dynamicMeta.call(this,this,t);typeof n=="object"&&(r=Object.assign(r,n))}for(let[n,i]of Object.entries(r))typeof i=="object"&&Pi.isError(i)&&(r[n]=Pi.stubError(i));return r}set meta(t){this[Pe.LOG].meta={...this[Pe.LOG].meta,...t}}get tags(){let t=this[Pe.OPTS];return[].concat(t.tags,this[Pe.LOG].tags).map(n=>{if(typeof n=="function")return n.call(this,{level:this.level,meta:this.meta,options:t});let i=n.match(/(<<(.*)>>)/);return i&&i[2]==="level"?n.replace(i[1],this.level):n}).filter(n=>n!=null&&n!=="")}set tags(t){this[Pe.LOG].tags=this[Pe.LOG].tags.concat(t)}get value(){let t=this[Pe.OPTS];return{[t.levelKey]:t.levelKey?this.level:void 0,[t.messageKey]:this.msg,...this.meta,[t.tagsKey]:t.tagsKey?this.tags:void 0}}get log(){return this.value}get throw(){let t=this[Pe.ERROR]||new Error(this.msg);throw t.log=this,t}toJSON(t){return dxe(this.value,this[Pe.OPTS].replacer||null,t?4:0)}static isError(t){return Boolean(t)&&typeof t=="object"&&(t instanceof Error||Object.prototype.hasOwnProperty.call(t,"message")&&Object.prototype.hasOwnProperty.call(t,"stack"))}static stubError(t){return typeof t.toJSON=="function"||(t.toJSON=function(){return["name","message","stack"].concat(Object.keys(t)).reduce((n,i)=>{if(i in t){let s=t[i];if(typeof s=="function")return n;n[i]=s}return n},{})}),t}};Pi.symbols=Pe;fH.exports=Pi});var _H=d((qGe,pH)=>{var fxe=require("events"),mxe=mH(),Jo={LEVELS:Symbol("levels")},Qo=class extends fxe{constructor(t={},r={}){super(),this.LambdaLog=Qo,this.LogMessage=mxe,this.options={meta:{},tags:[],dynamicMeta:null,debug:!1,dev:!1,silent:["true","yes","y","1"].includes(process.env.LAMBDALOG_SILENT),replacer:null,logHandler:console,levelKey:"_logLevel",messageKey:"msg",tagsKey:"_tags",...t},this[Jo.LEVELS]={info:"info",warn:"warn",error:"error",debug(){return this.options.debug?"debug":!1},...r},this.console=this.options.logHandler;let n=this[Jo.LEVELS];for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&this.addLevel(i,n[i])}addLevel(t,r){return this[Jo.LEVELS][t]=r,this[t]=(n,i={},s=[])=>this.log(t,n,i,s),this}log(t,r,n={},i=[]){if(!Object.prototype.hasOwnProperty.call(this[Jo.LEVELS],t))throw new Error(`"${t}" is not a valid log level`);let s=new this.LogMessage({level:t,msg:r,meta:n,tags:i},this.options),o=this[Jo.LEVELS][t];return typeof o=="function"&&(o=o.call(this,s)),o?(this.options.silent||this.console[o](s.toJSON(this.options.dev)),this.emit("log",s),s):!1}assert(t,r,n={},i=[]){return t?!1:this.log("error",r,n,i)}result(t,r={},n=[]){if(!t||typeof t.then!="function")throw new Error("A promise must be provided as the first argument");return new Promise(s=>{t.then(o=>s(this.log("info",o,r,n))).catch(o=>s(this.log("error",o,r,n)))})}};Qo.symbols=Jo;pH.exports=Qo});var fx=d((LGe,hH)=>{var pxe=_H(),_xe=new pxe;hH.exports=_xe});var yH=d(mx=>{"use strict";Object.defineProperty(mx,"__esModule",{value:!0});var hxe=fx(),iS=class{};mx.default=iS;iS.Instance=new hxe.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0})});var wH=d(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.GetAppInfo=vn.GetRoute=vn.normalizePathPrefix=vn.loadAppFrame=void 0;var vH=M();rw();var px=vH.__importDefault(require("path")),gH=lx(),_x=$C(),yxe=vH.__importDefault(yH()),Vn=yxe.default.Instance;function gxe({basePath:e="."}){let t=[e,px.default.join(e,".."),px.default.join(e,"templates"),e,"/opt","/opt/templates"];for(let r of t){let n=px.default.join(r,"appFrame.html");try{if((0,gH.pathExistsSync)(n))return Vn.info("found html file",{fullPath:n}),(0,gH.readFileSync)(n,"utf-8")}catch{}}throw Vn.error("appFrame.html not found"),new Error("appFrame.html not found")}vn.loadAppFrame=gxe;function vxe(e){let t=e;return t!==""&&!t.startsWith("/")&&(t="/"+e),t.endsWith("/")&&t.substring(0,t.length-1),t}vn.normalizePathPrefix=vxe;async function Sxe(e){let{dbManager:t,normalizedPathPrefix:r="",queryStringParameters:n}=e;try{if(r&&!e.rawPath.startsWith(r))return{statusCode:404,errorMessage:"Request not routable"};let i=r&&e.rawPath.startsWith(r)?e.rawPath.slice(r.length-1):e.rawPath,s=i.split("/"),{versionsAndRules:o,appName:a}=await SH({dbManager:t,appName:s.length>=2?s[1]:"[root]"}),c=a==="[root]",l=c?"":`${a}/`,p=(c?i:i.slice(a.length+1)).split("/"),m="";if(p.length>=2&&p[1]!==""&&(m=p.slice(1).join("/")),p.length===2||p.length===3&&!p[2]){let w=await Exe({dbManager:t,appName:a,normalizedPathPrefix:r,semVer:p[1],appNameOrRootTrailingSlash:l});if(w)return w}let h=p.length>=4?p[3]:"",g=p.length>=2?p[1]:"",y=wxe({dbManager:t,normalizedPathPrefix:r,event:e,appName:a,possibleSemVerPathNextData:h,possibleSemVerPathAfterApp:g,possibleSemVerQuery:(n==null?void 0:n.get("appver"))||"",additionalParts:m,versionsAndRules:o,appNameOrRootTrailingSlash:l});return y||{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, no matching route`}}catch(i){return Vn.error("unexpected exception - returning 599",{statusCode:599,error:i}),{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, ${i.message}`}}}vn.GetRoute=Sxe;async function SH(e){let{dbManager:t,appName:r}=e,n;return n=await _x.Application.GetVersionsAndRules({dbManager:t,key:{AppName:r}}),n.Versions.length>0?{appName:r,versionsAndRules:n}:(n=await _x.Application.GetVersionsAndRules({dbManager:t,key:{AppName:"[root]"}}),{appName:"[root]",versionsAndRules:n})}vn.GetAppInfo=SH;function wxe(e){var t,r;let{event:n,normalizedPathPrefix:i="",appName:s,possibleSemVerPathNextData:o,possibleSemVerPathAfterApp:a,possibleSemVerQuery:c,additionalParts:l,versionsAndRules:u,appNameOrRootTrailingSlash:p}=e,m,h=a?u.Versions.find(C=>C.SemVer===a):void 0,g=o?u.Versions.find(C=>C.SemVer===o):void 0,y=c?u.Versions.find(C=>C.SemVer===c):void 0,w=h||g;if(w)return{appName:s,semVer:w.SemVer,...w!=null&&w.URL?{url:w==null?void 0:w.URL}:{},...w!=null&&w.Type?{type:(w==null?void 0:w.Type)==="lambda"?"apigwy":w==null?void 0:w.Type}:{}};if(y)m=y;else{if(c)return Vn.error(`could not find app ${s}, for path ${n.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find app: ${n.rawPath}, ${s}`};{let C=(r=(t=u.Rules)===null||t===void 0?void 0:t.RuleSet.default)===null||r===void 0?void 0:r.SemVer;if(C==null)return Vn.error(`could not find app ${s}, for path ${n.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find app: ${n.rawPath}, ${s}`};m=u.Versions.find(B=>B.SemVer===C)}}if(!m)return Vn.error(`could not find version info for app ${s}, for path ${n.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find version info for app: ${n.rawPath}, ${s}`};if((m==null?void 0:m.StartupType)==="iframe"||!(m!=null&&m.StartupType)){let C;return(m==null?void 0:m.Type)!=="static"&&((m==null?void 0:m.DefaultFile)===void 0||(m==null?void 0:m.DefaultFile)===""||l!=="")?(C=`${i}/${p}${m.SemVer}`,l!==""&&(C+=`/${l}`)):C=`${i}/${p}${m.SemVer}/${m.DefaultFile}`,{statusCode:200,appName:s,semVer:m.SemVer,startupType:"iframe",...m!=null&&m.URL?{url:m==null?void 0:m.URL}:{},...m!=null&&m.Type?{type:(m==null?void 0:m.Type)==="lambda"?"apigwy":m==null?void 0:m.Type}:{},iFrameAppVersionPath:C}}else{if((m==null?void 0:m.Type)==="lambda")throw new Error("Invalid type for direct app version");if(["apigwy","static"].includes((m==null?void 0:m.Type)||""))throw new Error("Invalid type for direct app version");return{appName:s,semVer:m.SemVer,startupType:"direct",...m!=null&&m.URL?{url:m==null?void 0:m.URL}:{},...m!=null&&m.Type?{type:m==null?void 0:m.Type}:{}}}}async function Exe(e){let{dbManager:t,normalizedPathPrefix:r="",appName:n,appNameOrRootTrailingSlash:i,semVer:s}=e,o;try{o=await _x.Version.LoadVersion({dbManager:t,key:{AppName:n,SemVer:s}})}catch(a){Vn.info(`LoadVersion threw for '${r}/${i}${s}' - falling through to app routing'`,{appName:n,semVer:s,error:a});return}if(o===void 0){Vn.info(`LoadVersion returned undefined for '${r}/${i}${s}', assuming not found - falling through to app routing'`,{appName:n,semVer:s});return}if(!!o.DefaultFile)return Vn.info(`found '${r}/${i}${s}' - returning 302 to ${r}/${i}${s}/${o.DefaultFile}`,{statusCode:302,routedPath:`${r}/${i}${s}/${o.DefaultFile}`}),{statusCode:302,redirectLocation:`${r}/${i}${s}/${o.DefaultFile}`}}});var Xo=d((tu,gx)=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.default=Axe;function sS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sS=function(r){return typeof r}:sS=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},sS(e)}function Axe(e){var t=typeof e=="string"||e instanceof String;if(!t){var r=sS(e);throw e===null?r="null":r==="object"&&(r=e.constructor.name),new TypeError("Expected a string but received a ".concat(r))}}gx.exports=tu.default;gx.exports.default=tu.default});var oS=d((ru,vx)=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.default=Txe;function Txe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)typeof e[r]>"u"&&(e[r]=t[r]);return e}vx.exports=ru.default;vx.exports.default=ru.default});var TH=d((nu,Sx)=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.default=Ixe;var Cxe=xxe(Xo());function xxe(e){return e&&e.__esModule?e:{default:e}}function aS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?aS=function(r){return typeof r}:aS=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},aS(e)}function Ixe(e,t){(0,Cxe.default)(e);var r,n;aS(t)==="object"?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(typeof n>"u"||i<=n)}Sx.exports=nu.default;Sx.exports.default=nu.default});var Ex=d((iu,wx)=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.default=Nxe;var Rxe=CH(Xo()),Pxe=CH(oS());function CH(e){return e&&e.__esModule?e:{default:e}}var Oxe={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function Nxe(e,t){(0,Rxe.default)(e),t=(0,Pxe.default)(t,Oxe),t.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),t.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var r=e.split("."),n=r[r.length-1];return t.require_tld&&(r.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(n)||/\s/.test(n))||!t.allow_numeric_tld&&/^\d+$/.test(n)?!1:r.every(function(i){return!(i.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(i)||/[\uff01-\uff5e]/.test(i)||/^-|-$/.test(i)||!t.allow_underscores&&/_/.test(i))})}wx.exports=iu.default;wx.exports.default=iu.default});var cS=d((su,Ax)=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.default=bx;var Dxe=qxe(Xo());function qxe(e){return e&&e.__esModule?e:{default:e}}var xH="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",Oi="(".concat(xH,"[.]){3}").concat(xH),Lxe=new RegExp("^".concat(Oi,"$")),Je="(?:[0-9a-fA-F]{1,4})",Mxe=new RegExp("^("+"(?:".concat(Je,":){7}(?:").concat(Je,"|:)|")+"(?:".concat(Je,":){6}(?:").concat(Oi,"|:").concat(Je,"|:)|")+"(?:".concat(Je,":){5}(?::").concat(Oi,"|(:").concat(Je,"){1,2}|:)|")+"(?:".concat(Je,":){4}(?:(:").concat(Je,"){0,1}:").concat(Oi,"|(:").concat(Je,"){1,3}|:)|")+"(?:".concat(Je,":){3}(?:(:").concat(Je,"){0,2}:").concat(Oi,"|(:").concat(Je,"){1,4}|:)|")+"(?:".concat(Je,":){2}(?:(:").concat(Je,"){0,3}:").concat(Oi,"|(:").concat(Je,"){1,5}|:)|")+"(?:".concat(Je,":){1}(?:(:").concat(Je,"){0,4}:").concat(Oi,"|(:").concat(Je,"){1,6}|:)|")+"(?::((?::".concat(Je,"){0,5}:").concat(Oi,"|(?::").concat(Je,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function bx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,Dxe.default)(e),t=String(t),!t)return bx(e,4)||bx(e,6);if(t==="4"){if(!Lxe.test(e))return!1;var r=e.split(".").sort(function(n,i){return n-i});return r[3]<=255}return t==="6"?!!Mxe.test(e):!1}Ax.exports=su.default;Ax.exports.default=su.default});var RH=d((au,Cx)=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.default=Yxe;var jxe=ou(Xo()),zxe=ou(oS()),Tx=ou(TH()),kxe=ou(Ex()),IH=ou(cS());function ou(e){return e&&e.__esModule?e:{default:e}}var Fxe={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},Uxe=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,Bxe=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,Gxe=/^[a-z\d]+$/,$xe=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,Vxe=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,Hxe=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,Kxe=254;function Wxe(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var r=/[\.";<>]/.test(t);if(r){if(t===e)return!1;var n=t.split('"').length===t.split('\\"').length;if(!n)return!1}return!0}function Yxe(e,t){if((0,jxe.default)(e),t=(0,zxe.default)(t,Fxe),t.require_display_name||t.allow_display_name){var r=e.match(Uxe);if(r){var n=r[1];if(e=e.replace(n,"").replace(/(^<|>$)/g,""),n.endsWith(" ")&&(n=n.substr(0,n.length-1)),!Wxe(n))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>Kxe)return!1;var i=e.split("@"),s=i.pop(),o=s.toLowerCase();if(t.host_blacklist.includes(o))return!1;var a=i.join("@");if(t.domain_specific_validation&&(o==="gmail.com"||o==="googlemail.com")){a=a.toLowerCase();var c=a.split("+")[0];if(!(0,Tx.default)(c.replace(/\./g,""),{min:6,max:30}))return!1;for(var l=c.split("."),u=0;u<l.length;u++)if(!Gxe.test(l[u]))return!1}if(t.ignore_max_length===!1&&(!(0,Tx.default)(a,{max:64})||!(0,Tx.default)(s,{max:254})))return!1;if(!(0,kxe.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,IH.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var p=s.substr(1,s.length-2);if(p.length===0||!(0,IH.default)(p))return!1}}if(a[0]==='"')return a=a.slice(1,a.length-1),t.allow_utf8_local_part?Hxe.test(a):$xe.test(a);for(var m=t.allow_utf8_local_part?Vxe:Bxe,h=a.split("."),g=0;g<h.length;g++)if(!m.test(h[g]))return!1;return!(t.blacklisted_chars&&a.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}Cx.exports=au.default;Cx.exports.default=au.default});var DH=d((cu,xx)=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.default=aIe;var Jxe=lS(Xo()),Qxe=lS(Ex()),PH=lS(cS()),Xxe=lS(oS());function lS(e){return e&&e.__esModule?e:{default:e}}function Zxe(e,t){return nIe(e)||rIe(e,t)||tIe(e,t)||eIe()}function eIe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tIe(e,t){if(!!e){if(typeof e=="string")return OH(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OH(e,t)}}function OH(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rIe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,s=void 0;try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,s=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw s}}return r}}function nIe(e){if(Array.isArray(e))return e}var iIe={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},sIe=/^\[([^\]]+)\](?::([0-9]+))?$/;function oIe(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function NH(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||oIe(n)&&n.test(e))return!0}return!1}function aIe(e,t){if((0,Jxe.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,Xxe.default)(t,iIe),t.validate_length&&e.length>=2083)||!t.allow_fragments&&e.includes("#")||!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,n,i,s,o,a,c,l;if(c=e.split("#"),e=c.shift(),c=e.split("?"),e=c.shift(),c=e.split("://"),c.length>1){if(r=c.shift().toLowerCase(),t.require_valid_protocol&&t.protocols.indexOf(r)===-1)return!1}else{if(t.require_protocol)return!1;if(e.substr(0,2)==="//"){if(!t.allow_protocol_relative_urls)return!1;c[0]=e.substr(2)}}if(e=c.join("://"),e==="")return!1;if(c=e.split("/"),e=c.shift(),e===""&&!t.require_host)return!0;if(c=e.split("@"),c.length>1){if(t.disallow_auth||c[0]===""||(n=c.shift(),n.indexOf(":")>=0&&n.split(":").length>2))return!1;var u=n.split(":"),p=Zxe(u,2),m=p[0],h=p[1];if(m===""&&h==="")return!1}s=c.join("@"),a=null,l=null;var g=s.match(sIe);if(g?(i="",l=g[1],a=g[2]||null):(c=s.split(":"),i=c.shift(),c.length&&(a=c.join(":"))),a!==null&&a.length>0){if(o=parseInt(a,10),!/^[0-9]+$/.test(a)||o<=0||o>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?NH(i,t.host_whitelist):!(!(0,PH.default)(i)&&!(0,Qxe.default)(i,t)&&(!l||!(0,PH.default)(l,6))||(i=i||l,t.host_blacklist&&NH(i,t.host_blacklist)))}xx.exports=cu.default;xx.exports.default=cu.default});var LH=d((UGe,qH)=>{"use strict";var cIe=RH(),lIe=DH(),uIe=cS();function Ix(e,t){if(!e)throw new Error(t)}var dIe={name:"email",coerce:e=>e.toString(),validate:function(e){Ix(cIe(e),"must be an email address")}},fIe={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){Ix(uIe(e),"must be an IP address")}},mIe={name:"url",coerce:e=>e.toString(),validate:function(e){Ix(lIe(e,{require_tld:!1}),"must be a URL")}};qH.exports={email:dIe,ipaddress:fIe,url:mIe}});var AK=d(bK=>{"use strict";Object.defineProperty(bK,"__esModule",{value:!0})});var $x=d(Gx=>{"use strict";Object.defineProperty(Gx,"__esModule",{value:!0});var Bx=class{constructor(){if(!!!(Reflect&&Reflect.getMetadata))throw new Error("reflect-metadata should be installed properly");this._reflect=Reflect}isConstructor(t){return!!t.prototype&&!!t.prototype.constructor.name&&t instanceof Function}isConfigClass(t){let r=this._reflect.hasMetadata("tsconvict:properties",t),n=this._reflect.hasMetadata("tsconvict:schema",t);return r||n}getTsType(t,r){return this._reflect.getMetadata("design:type",t,r)}getConvictMetaForProperty(t,r){return this._reflect.getMetadata("tsconvict:property",t,r)}setConvictMetaForProperty(t,r,n){return this._reflect.defineMetadata("tsconvict:property",t,r,n)}setConvictMetaForClass(t,r){return this._reflect.defineMetadata("tsconvict:schema",t,r)}getConvictMetaForClass(t){return this._reflect.getMetadata("tsconvict:schema",t)||null}setPropertyForClass(t,r){let n=this.getClassProperties(t);return n.length===0&&(this._reflect.defineMetadata("tsconvict:properties",[],t.constructor),n=this.getClassProperties(t)),n.push(r)}getClassProperties(t){return this._reflect.getMetadata("tsconvict:properties",t.constructor)||[]}};Gx.default=new Bx});var TK=d(qi=>{"use strict";var jRe=qi&&qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qi,"__esModule",{value:!0});qi.Property=qi.Config=void 0;var hS=jRe($x());function zRe(e={}){return t=>{hS.default.setConvictMetaForClass(e,t)}}qi.Config=zRe;function kRe(e){return(t,r)=>{if(typeof e=="object"&&typeof e.format>"u"){let n=hS.default.getTsType(t,r);n&&(e.format=n)}hS.default.setConvictMetaForProperty(e,t,r),hS.default.setPropertyForClass(t,r)}}qi.Property=kRe});var DK=d((JGe,NK)=>{"use strict";var FRe=require("util"),URe=require("fs"),CK=require("path");function pu(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function RK(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function PK(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function BRe(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var Tr;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(Tr||(Tr={}));var Kn,Hx=class{constructor(t){Kn=t}parse(t,r){let n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},r),i=BRe(t),s=GRe(Object.assign(Object.create(null),n.alias)),o=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),a=Object.assign(Object.create(null),n.default),c=n.configObjects||[],l=n.envPrefix,u=o["populate--"],p=u?"--":"_",m=Object.create(null),h=Object.create(null),g=n.__||Kn.format,y={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},w=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,C=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(S){let E=typeof S=="object"?S.key:S,D=Object.keys(S).map(function(I){return{boolean:"bools",string:"strings",number:"numbers"}[I]}).filter(Boolean).pop();D&&(y[D][E]=!0),y.arrays[E]=!0,y.keys.push(E)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(S){y.bools[S]=!0,y.keys.push(S)}),[].concat(n.string||[]).filter(Boolean).forEach(function(S){y.strings[S]=!0,y.keys.push(S)}),[].concat(n.number||[]).filter(Boolean).forEach(function(S){y.numbers[S]=!0,y.keys.push(S)}),[].concat(n.count||[]).filter(Boolean).forEach(function(S){y.counts[S]=!0,y.keys.push(S)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(S){y.normalize[S]=!0,y.keys.push(S)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([S,E])=>{typeof E=="number"&&(y.nargs[S]=E,y.keys.push(S))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([S,E])=>{typeof E=="function"&&(y.coercions[S]=E,y.keys.push(S))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(S){y.configs[S]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([S,E])=>{(typeof E=="boolean"||typeof E=="function")&&(y.configs[S]=E)})),Qn(n.key,s,n.default,y.arrays),Object.keys(a).forEach(function(S){(y.aliases[S]||[]).forEach(function(E){a[E]=a[S]})});let T=null;DS();let B=[],_e=Object.assign(Object.create(null),{_:[]}),ot={};for(let S=0;S<i.length;S++){let E=i[S],D=E.replace(/^-{3,}/,"---"),I,b,k,F,X,$e;if(E!=="--"&&Ns(E))pt(E);else if(D.match(/---+(=|$)/)){pt(E);continue}else if(E.match(/^--.+=/)||!o["short-option-groups"]&&E.match(/^-.+=/))F=E.match(/^--?([^=]+)=([\s\S]*)$/),F!==null&&Array.isArray(F)&&F.length>=3&&(oe(F[1],y.arrays)?S=$t(S,F[1],i,F[2]):oe(F[1],y.nargs)!==!1?S=er(S,F[1],i,F[2]):L(F[1],F[2]));else if(E.match(C)&&o["boolean-negation"])F=E.match(C),F!==null&&Array.isArray(F)&&F.length>=2&&(b=F[1],L(b,oe(b,y.arrays)?[!1]:!1));else if(E.match(/^--.+/)||!o["short-option-groups"]&&E.match(/^-[^-]+/))F=E.match(/^--?(.+)/),F!==null&&Array.isArray(F)&&F.length>=2&&(b=F[1],oe(b,y.arrays)?S=$t(S,b,i):oe(b,y.nargs)!==!1?S=er(S,b,i):(X=i[S+1],X!==void 0&&(!X.match(/^-/)||X.match(w))&&!oe(b,y.bools)&&!oe(b,y.counts)||/^(true|false)$/.test(X)?(L(b,X),S++):L(b,_t(b))));else if(E.match(/^-.\..+=/))F=E.match(/^-([^=]+)=([\s\S]*)$/),F!==null&&Array.isArray(F)&&F.length>=3&&L(F[1],F[2]);else if(E.match(/^-.\..+/)&&!E.match(w))X=i[S+1],F=E.match(/^-(.\..+)/),F!==null&&Array.isArray(F)&&F.length>=2&&(b=F[1],X!==void 0&&!X.match(/^-/)&&!oe(b,y.bools)&&!oe(b,y.counts)?(L(b,X),S++):L(b,_t(b)));else if(E.match(/^-[^-]+/)&&!E.match(w)){k=E.slice(1,-1).split(""),I=!1;for(let Xe=0;Xe<k.length;Xe++){if(X=E.slice(Xe+2),k[Xe+1]&&k[Xe+1]==="="){$e=E.slice(Xe+3),b=k[Xe],oe(b,y.arrays)?S=$t(S,b,i,$e):oe(b,y.nargs)!==!1?S=er(S,b,i,$e):L(b,$e),I=!0;break}if(X==="-"){L(k[Xe],X);continue}if(/[A-Za-z]/.test(k[Xe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(X)&&oe(X,y.bools)===!1){L(k[Xe],X),I=!0;break}if(k[Xe+1]&&k[Xe+1].match(/\W/)){L(k[Xe],X),I=!0;break}else L(k[Xe],_t(k[Xe]))}b=E.slice(-1)[0],!I&&b!=="-"&&(oe(b,y.arrays)?S=$t(S,b,i):oe(b,y.nargs)!==!1?S=er(S,b,i):(X=i[S+1],X!==void 0&&(!/^(-|--)[^-]/.test(X)||X.match(w))&&!oe(b,y.bools)&&!oe(b,y.counts)||/^(true|false)$/.test(X)?(L(b,X),S++):L(b,_t(b))))}else if(E.match(/^-[0-9]$/)&&E.match(w)&&oe(E.slice(1),y.bools))b=E.slice(1),L(b,_t(b));else if(E==="--"){B=i.slice(S+1);break}else if(o["halt-at-non-option"]){B=i.slice(S);break}else pt(E)}Ie(_e,!0),Ie(_e,!1),ke(_e),xe(),Ee(_e,y.aliases,a,!0),Se(_e),o["set-placeholder-key"]&&Fe(_e),Object.keys(y.counts).forEach(function(S){En(_e,S.split("."))||L(S,0)}),u&&B.length&&(_e[p]=[]),B.forEach(function(S){_e[p].push(S)}),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(_e).filter(S=>S!=="--"&&S.includes("-")).forEach(S=>{delete _e[S]}),o["strip-aliased"]&&[].concat(...Object.keys(s).map(S=>s[S])).forEach(S=>{o["camel-case-expansion"]&&S.includes("-")&&delete _e[S.split(".").map(E=>pu(E)).join(".")],delete _e[S]});function pt(S){let E=Ce("_",S);(typeof E=="string"||typeof E=="number")&&_e._.push(E)}function er(S,E,D,I){let b,k=oe(E,y.nargs);if(k=typeof k!="number"||isNaN(k)?1:k,k===0)return tr(I)||(T=Error(g("Argument unexpected for: %s",E))),L(E,_t(E)),S;let F=tr(I)?0:1;if(o["nargs-eats-options"])D.length-(S+1)+F<k&&(T=Error(g("Not enough arguments following: %s",E))),F=k;else{for(b=S+1;b<D.length&&(!D[b].match(/^-[^0-9]/)||D[b].match(w)||Ns(D[b]));b++)F++;F<k&&(T=Error(g("Not enough arguments following: %s",E)))}let X=Math.min(F,k);for(!tr(I)&&X>0&&(L(E,I),X--),b=S+1;b<X+S+1;b++)L(E,D[b]);return S+X}function $t(S,E,D,I){let b=[],k=I||D[S+1],F=oe(E,y.nargs);if(oe(E,y.bools)&&!/^(true|false)$/.test(k))b.push(!0);else if(tr(k)||tr(I)&&/^-/.test(k)&&!w.test(k)&&!Ns(k)){if(a[E]!==void 0){let X=a[E];b=Array.isArray(X)?X:[X]}}else{tr(I)||b.push(ce(E,I));for(let X=S+1;X<D.length&&!(!o["greedy-arrays"]&&b.length>0||F&&typeof F=="number"&&b.length>=F||(k=D[X],/^-/.test(k)&&!w.test(k)&&!Ns(k)));X++)S=X,b.push(ce(E,k))}return typeof F=="number"&&(F&&b.length<F||isNaN(F)&&b.length===0)&&(T=Error(g("Not enough arguments following: %s",E))),L(E,b),S}function L(S,E){if(/-/.test(S)&&o["camel-case-expansion"]){let b=S.split(".").map(function(k){return pu(k)}).join(".");H(S,b)}let D=ce(S,E),I=S.split(".");qe(_e,I,D),y.aliases[S]&&y.aliases[S].forEach(function(b){let k=b.split(".");qe(_e,k,D)}),I.length>1&&o["dot-notation"]&&(y.aliases[I[0]]||[]).forEach(function(b){let k=b.split("."),F=[].concat(I);F.shift(),k=k.concat(F),(y.aliases[S]||[]).includes(k.join("."))||qe(_e,k,D)}),oe(S,y.normalize)&&!oe(S,y.arrays)&&[S].concat(y.aliases[S]||[]).forEach(function(k){Object.defineProperty(ot,k,{enumerable:!0,get(){return E},set(F){E=typeof F=="string"?Kn.normalize(F):F}})})}function H(S,E){y.aliases[S]&&y.aliases[S].length||(y.aliases[S]=[E],m[E]=!0),y.aliases[E]&&y.aliases[E].length||H(E,S)}function ce(S,E){typeof E=="string"&&(E[0]==="'"||E[0]==='"')&&E[E.length-1]===E[0]&&(E=E.substring(1,E.length-1)),(oe(S,y.bools)||oe(S,y.counts))&&typeof E=="string"&&(E=E==="true");let D=Array.isArray(E)?E.map(function(I){return Ce(S,I)}):Ce(S,E);return oe(S,y.counts)&&(tr(D)||typeof D=="boolean")&&(D=Vx()),oe(S,y.normalize)&&oe(S,y.arrays)&&(Array.isArray(E)?D=E.map(I=>Kn.normalize(I)):D=Kn.normalize(E)),D}function Ce(S,E){return!o["parse-positional-numbers"]&&S==="_"||!oe(S,y.strings)&&!oe(S,y.bools)&&!Array.isArray(E)&&(PK(E)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${E}`)))||!tr(E)&&oe(S,y.numbers))&&(E=Number(E)),E}function ke(S){let E=Object.create(null);Ee(E,y.aliases,a),Object.keys(y.configs).forEach(function(D){let I=S[D]||E[D];if(I)try{let b=null,k=Kn.resolve(Kn.cwd(),I),F=y.configs[D];if(typeof F=="function"){try{b=F(k)}catch(X){b=X}if(b instanceof Error){T=b;return}}else b=Kn.require(k);Ne(b)}catch(b){b.name==="PermissionDenied"?T=b:S[D]&&(T=Error(g("Invalid JSON config file: %s",I)))}})}function Ne(S,E){Object.keys(S).forEach(function(D){let I=S[D],b=E?E+"."+D:D;typeof I=="object"&&I!==null&&!Array.isArray(I)&&o["dot-notation"]?Ne(I,b):(!En(_e,b.split("."))||oe(b,y.arrays)&&o["combine-arrays"])&&L(b,I)})}function xe(){typeof c<"u"&&c.forEach(function(S){Ne(S)})}function Ie(S,E){if(typeof l>"u")return;let D=typeof l=="string"?l:"",I=Kn.env();Object.keys(I).forEach(function(b){if(D===""||b.lastIndexOf(D,0)===0){let k=b.split("__").map(function(F,X){return X===0&&(F=F.substring(D.length)),pu(F)});(E&&y.configs[k.join(".")]||!E)&&!En(S,k)&&L(k.join("."),I[b])}})}function Se(S){let E,D=new Set;Object.keys(S).forEach(function(I){if(!D.has(I)&&(E=oe(I,y.coercions),typeof E=="function"))try{let b=Ce(I,E(S[I]));[].concat(y.aliases[I]||[],I).forEach(k=>{D.add(k),S[k]=b})}catch(b){T=b}})}function Fe(S){return y.keys.forEach(E=>{~E.indexOf(".")||typeof S[E]>"u"&&(S[E]=void 0)}),S}function Ee(S,E,D,I=!1){Object.keys(D).forEach(function(b){En(S,b.split("."))||(qe(S,b.split("."),D[b]),I&&(h[b]=!0),(E[b]||[]).forEach(function(k){En(S,k.split("."))||qe(S,k.split("."),D[b])}))})}function En(S,E){let D=S;o["dot-notation"]||(E=[E.join(".")]),E.slice(0,-1).forEach(function(b){D=D[b]||{}});let I=E[E.length-1];return typeof D!="object"?!1:I in D}function qe(S,E,D){let I=S;o["dot-notation"]||(E=[E.join(".")]),E.slice(0,-1).forEach(function($e){$e=xK($e),typeof I=="object"&&I[$e]===void 0&&(I[$e]={}),typeof I[$e]!="object"||Array.isArray(I[$e])?(Array.isArray(I[$e])?I[$e].push({}):I[$e]=[I[$e],{}],I=I[$e][I[$e].length-1]):I=I[$e]});let b=xK(E[E.length-1]),k=oe(E.join("."),y.arrays),F=Array.isArray(D),X=o["duplicate-arguments-array"];!X&&oe(b,y.nargs)&&(X=!0,(!tr(I[b])&&y.nargs[b]===1||Array.isArray(I[b])&&I[b].length===y.nargs[b])&&(I[b]=void 0)),D===Vx()?I[b]=Vx(I[b]):Array.isArray(I[b])?X&&k&&F?I[b]=o["flatten-duplicate-arrays"]?I[b].concat(D):(Array.isArray(I[b][0])?I[b]:[I[b]]).concat([D]):!X&&Boolean(k)===Boolean(F)?I[b]=D:I[b]=I[b].concat([D]):I[b]===void 0&&k?I[b]=F?D:[D]:X&&!(I[b]===void 0||oe(b,y.counts)||oe(b,y.bools))?I[b]=[I[b],D]:I[b]=D}function Qn(...S){S.forEach(function(E){Object.keys(E||{}).forEach(function(D){y.aliases[D]||(y.aliases[D]=[].concat(s[D]||[]),y.aliases[D].concat(D).forEach(function(I){if(/-/.test(I)&&o["camel-case-expansion"]){let b=pu(I);b!==D&&y.aliases[D].indexOf(b)===-1&&(y.aliases[D].push(b),m[b]=!0)}}),y.aliases[D].concat(D).forEach(function(I){if(I.length>1&&/[A-Z]/.test(I)&&o["camel-case-expansion"]){let b=RK(I,"-");b!==D&&y.aliases[D].indexOf(b)===-1&&(y.aliases[D].push(b),m[b]=!0)}}),y.aliases[D].forEach(function(I){y.aliases[I]=[D].concat(y.aliases[D].filter(function(b){return I!==b}))}))})})}function oe(S,E){let D=[].concat(y.aliases[S]||[],S),I=Object.keys(E),b=D.find(k=>I.includes(k));return b?E[b]:!1}function Be(S){let E=Object.keys(y);return[].concat(E.map(I=>y[I])).some(function(I){return Array.isArray(I)?I.includes(S):I[S]})}function PS(S,...E){return[].concat(...E).some(function(I){let b=S.match(I);return b&&Be(b[1])})}function OS(S){if(S.match(w)||!S.match(/^-[^-]+/))return!1;let E=!0,D,I=S.slice(1).split("");for(let b=0;b<I.length;b++){if(D=S.slice(b+2),!Be(I[b])){E=!1;break}if(I[b+1]&&I[b+1]==="="||D==="-"||/[A-Za-z]/.test(I[b])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(D)||I[b+1]&&I[b+1].match(/\W/))break}return E}function Ns(S){return o["unknown-options-as-args"]&&NS(S)}function NS(S){return S=S.replace(/^-{3,}/,"--"),S.match(w)||OS(S)?!1:!PS(S,/^-+([^=]+?)=[\s\S]*$/,C,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function _t(S){return!oe(S,y.bools)&&!oe(S,y.counts)&&`${S}`in a?a[S]:wu(Xn(S))}function wu(S){return{[Tr.BOOLEAN]:!0,[Tr.STRING]:"",[Tr.NUMBER]:void 0,[Tr.ARRAY]:[]}[S]}function Xn(S){let E=Tr.BOOLEAN;return oe(S,y.strings)?E=Tr.STRING:oe(S,y.numbers)?E=Tr.NUMBER:oe(S,y.bools)?E=Tr.BOOLEAN:oe(S,y.arrays)&&(E=Tr.ARRAY),E}function tr(S){return S===void 0}function DS(){Object.keys(y.counts).find(S=>oe(S,y.arrays)?(T=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",S)),!0):oe(S,y.nargs)?(T=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",S)),!0):!1)}return{aliases:Object.assign({},y.aliases),argv:Object.assign(ot,_e),configuration:o,defaulted:Object.assign({},h),error:T,newAliases:Object.assign({},m)}}};function GRe(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,c){return c.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function Vx(e){return e!==void 0?e+1:1}function xK(e){return e==="__proto__"?"___proto___":e}var IK=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):10;if(process&&process.version&&Number(process.version.match(/v([^.]+)/)[1])<IK)throw Error(`yargs parser supports a minimum Node.js version of ${IK}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var $Re=process?process.env:{},OK=new Hx({cwd:process.cwd,env:()=>$Re,format:FRe.format,normalize:CK.normalize,resolve:CK.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return URe.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),_u=function(t,r){return OK.parse(t.slice(),r).argv};_u.detailed=function(e,t){return OK.parse(e.slice(),t)};_u.camelCase=pu;_u.decamelize=RK;_u.looksLikeNumber=PK;NK.exports=_u});var w3=d((hu,na)=>{var VRe=200,VK="__lodash_hash_undefined__",HK=9007199254740991,eI="[object Arguments]",HRe="[object Array]",KK="[object Boolean]",WK="[object Date]",KRe="[object Error]",tI="[object Function]",YK="[object GeneratorFunction]",yS="[object Map]",JK="[object Number]",rI="[object Object]",qK="[object Promise]",QK="[object RegExp]",gS="[object Set]",XK="[object String]",ZK="[object Symbol]",Wx="[object WeakMap]",e3="[object ArrayBuffer]",vS="[object DataView]",t3="[object Float32Array]",r3="[object Float64Array]",n3="[object Int8Array]",i3="[object Int16Array]",s3="[object Int32Array]",o3="[object Uint8Array]",a3="[object Uint8ClampedArray]",c3="[object Uint16Array]",l3="[object Uint32Array]",WRe=/[\\^$.*+?()[\]{}|]/g,YRe=/\w*$/,JRe=/^\[object .+?Constructor\]$/,QRe=/^(?:0|[1-9]\d*)$/,De={};De[eI]=De[HRe]=De[e3]=De[vS]=De[KK]=De[WK]=De[t3]=De[r3]=De[n3]=De[i3]=De[s3]=De[yS]=De[JK]=De[rI]=De[QK]=De[gS]=De[XK]=De[ZK]=De[o3]=De[a3]=De[c3]=De[l3]=!0;De[KRe]=De[tI]=De[Wx]=!1;var XRe=typeof global=="object"&&global&&global.Object===Object&&global,ZRe=typeof self=="object"&&self&&self.Object===Object&&self,Wn=XRe||ZRe||Function("return this")(),u3=typeof hu=="object"&&hu&&!hu.nodeType&&hu,LK=u3&&typeof na=="object"&&na&&!na.nodeType&&na,ePe=LK&&LK.exports===u3;function tPe(e,t){return e.set(t[0],t[1]),e}function rPe(e,t){return e.add(t),e}function nPe(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function iPe(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function d3(e,t,r,n){var i=-1,s=e?e.length:0;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function sPe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function oPe(e,t){return e==null?void 0:e[t]}function f3(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function MK(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function nI(e,t){return function(r){return e(t(r))}}function jK(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var aPe=Array.prototype,cPe=Function.prototype,SS=Object.prototype,Kx=Wn["__core-js_shared__"],zK=function(){var e=/[^.]+$/.exec(Kx&&Kx.keys&&Kx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),m3=cPe.toString,Li=SS.hasOwnProperty,wS=SS.toString,lPe=RegExp("^"+m3.call(Li).replace(WRe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kK=ePe?Wn.Buffer:void 0,FK=Wn.Symbol,UK=Wn.Uint8Array,uPe=nI(Object.getPrototypeOf,Object),dPe=Object.create,fPe=SS.propertyIsEnumerable,mPe=aPe.splice,BK=Object.getOwnPropertySymbols,pPe=kK?kK.isBuffer:void 0,_Pe=nI(Object.keys,Object),Yx=oa(Wn,"DataView"),yu=oa(Wn,"Map"),Jx=oa(Wn,"Promise"),Qx=oa(Wn,"Set"),Xx=oa(Wn,"WeakMap"),gu=oa(Object,"create"),hPe=Os(Yx),yPe=Os(yu),gPe=Os(Jx),vPe=Os(Qx),SPe=Os(Xx),GK=FK?FK.prototype:void 0,$K=GK?GK.valueOf:void 0;function Ps(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function wPe(){this.__data__=gu?gu(null):{}}function EPe(e){return this.has(e)&&delete this.__data__[e]}function bPe(e){var t=this.__data__;if(gu){var r=t[e];return r===VK?void 0:r}return Li.call(t,e)?t[e]:void 0}function APe(e){var t=this.__data__;return gu?t[e]!==void 0:Li.call(t,e)}function TPe(e,t){var r=this.__data__;return r[e]=gu&&t===void 0?VK:t,this}Ps.prototype.clear=wPe;Ps.prototype.delete=EPe;Ps.prototype.get=bPe;Ps.prototype.has=APe;Ps.prototype.set=TPe;function Yn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function CPe(){this.__data__=[]}function xPe(e){var t=this.__data__,r=ES(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():mPe.call(t,r,1),!0}function IPe(e){var t=this.__data__,r=ES(t,e);return r<0?void 0:t[r][1]}function RPe(e){return ES(this.__data__,e)>-1}function PPe(e,t){var r=this.__data__,n=ES(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Yn.prototype.clear=CPe;Yn.prototype.delete=xPe;Yn.prototype.get=IPe;Yn.prototype.has=RPe;Yn.prototype.set=PPe;function ia(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function OPe(){this.__data__={hash:new Ps,map:new(yu||Yn),string:new Ps}}function NPe(e){return bS(this,e).delete(e)}function DPe(e){return bS(this,e).get(e)}function qPe(e){return bS(this,e).has(e)}function LPe(e,t){return bS(this,e).set(e,t),this}ia.prototype.clear=OPe;ia.prototype.delete=NPe;ia.prototype.get=DPe;ia.prototype.has=qPe;ia.prototype.set=LPe;function sa(e){this.__data__=new Yn(e)}function MPe(){this.__data__=new Yn}function jPe(e){return this.__data__.delete(e)}function zPe(e){return this.__data__.get(e)}function kPe(e){return this.__data__.has(e)}function FPe(e,t){var r=this.__data__;if(r instanceof Yn){var n=r.__data__;if(!yu||n.length<VRe-1)return n.push([e,t]),this;r=this.__data__=new ia(n)}return r.set(e,t),this}sa.prototype.clear=MPe;sa.prototype.delete=jPe;sa.prototype.get=zPe;sa.prototype.has=kPe;sa.prototype.set=FPe;function UPe(e,t){var r=sI(e)||dOe(e)?sPe(e.length,String):[],n=r.length,i=!!n;for(var s in e)(t||Li.call(e,s))&&!(i&&(s=="length"||aOe(s,n)))&&r.push(s);return r}function p3(e,t,r){var n=e[t];(!(Li.call(e,t)&&g3(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function ES(e,t){for(var r=e.length;r--;)if(g3(e[r][0],t))return r;return-1}function BPe(e,t){return e&&_3(t,oI(t),e)}function Zx(e,t,r,n,i,s,o){var a;if(n&&(a=s?n(e,i,s,o):n(e)),a!==void 0)return a;if(!AS(e))return e;var c=sI(e);if(c){if(a=iOe(e),!t)return tOe(e,a)}else{var l=Rs(e),u=l==tI||l==YK;if(mOe(e))return WPe(e,t);if(l==rI||l==eI||u&&!s){if(f3(e))return s?e:{};if(a=sOe(u?{}:e),!t)return rOe(e,BPe(a,e))}else{if(!De[l])return s?e:{};a=oOe(e,l,Zx,t)}}o||(o=new sa);var p=o.get(e);if(p)return p;if(o.set(e,a),!c)var m=r?nOe(e):oI(e);return nPe(m||e,function(h,g){m&&(g=h,h=e[g]),p3(a,g,Zx(h,t,r,n,g,e,o))}),a}function GPe(e){return AS(e)?dPe(e):{}}function $Pe(e,t,r){var n=t(e);return sI(e)?n:iPe(n,r(e))}function VPe(e){return wS.call(e)}function HPe(e){if(!AS(e)||lOe(e))return!1;var t=S3(e)||f3(e)?lPe:JRe;return t.test(Os(e))}function KPe(e){if(!y3(e))return _Pe(e);var t=[];for(var r in Object(e))Li.call(e,r)&&r!="constructor"&&t.push(r);return t}function WPe(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function iI(e){var t=new e.constructor(e.byteLength);return new UK(t).set(new UK(e)),t}function YPe(e,t){var r=t?iI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function JPe(e,t,r){var n=t?r(MK(e),!0):MK(e);return d3(n,tPe,new e.constructor)}function QPe(e){var t=new e.constructor(e.source,YRe.exec(e));return t.lastIndex=e.lastIndex,t}function XPe(e,t,r){var n=t?r(jK(e),!0):jK(e);return d3(n,rPe,new e.constructor)}function ZPe(e){return $K?Object($K.call(e)):{}}function eOe(e,t){var r=t?iI(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function tOe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function _3(e,t,r,n){r||(r={});for(var i=-1,s=t.length;++i<s;){var o=t[i],a=n?n(r[o],e[o],o,r,e):void 0;p3(r,o,a===void 0?e[o]:a)}return r}function rOe(e,t){return _3(e,h3(e),t)}function nOe(e){return $Pe(e,oI,h3)}function bS(e,t){var r=e.__data__;return cOe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function oa(e,t){var r=oPe(e,t);return HPe(r)?r:void 0}var h3=BK?nI(BK,Object):hOe,Rs=VPe;(Yx&&Rs(new Yx(new ArrayBuffer(1)))!=vS||yu&&Rs(new yu)!=yS||Jx&&Rs(Jx.resolve())!=qK||Qx&&Rs(new Qx)!=gS||Xx&&Rs(new Xx)!=Wx)&&(Rs=function(e){var t=wS.call(e),r=t==rI?e.constructor:void 0,n=r?Os(r):void 0;if(n)switch(n){case hPe:return vS;case yPe:return yS;case gPe:return qK;case vPe:return gS;case SPe:return Wx}return t});function iOe(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&Li.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function sOe(e){return typeof e.constructor=="function"&&!y3(e)?GPe(uPe(e)):{}}function oOe(e,t,r,n){var i=e.constructor;switch(t){case e3:return iI(e);case KK:case WK:return new i(+e);case vS:return YPe(e,n);case t3:case r3:case n3:case i3:case s3:case o3:case a3:case c3:case l3:return eOe(e,n);case yS:return JPe(e,n,r);case JK:case XK:return new i(e);case QK:return QPe(e);case gS:return XPe(e,n,r);case ZK:return ZPe(e)}}function aOe(e,t){return t=t??HK,!!t&&(typeof e=="number"||QRe.test(e))&&e>-1&&e%1==0&&e<t}function cOe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function lOe(e){return!!zK&&zK in e}function y3(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||SS;return e===r}function Os(e){if(e!=null){try{return m3.call(e)}catch{}try{return e+""}catch{}}return""}function uOe(e){return Zx(e,!0,!0)}function g3(e,t){return e===t||e!==e&&t!==t}function dOe(e){return fOe(e)&&Li.call(e,"callee")&&(!fPe.call(e,"callee")||wS.call(e)==eI)}var sI=Array.isArray;function v3(e){return e!=null&&pOe(e.length)&&!S3(e)}function fOe(e){return _Oe(e)&&v3(e)}var mOe=pPe||yOe;function S3(e){var t=AS(e)?wS.call(e):"";return t==tI||t==YK}function pOe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=HK}function AS(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function _Oe(e){return!!e&&typeof e=="object"}function oI(e){return v3(e)?UPe(e):KPe(e)}function hOe(){return[]}function yOe(){return!1}na.exports=uOe});var O3=d((QGe,P3)=>{"use strict";var gOe=require("fs"),vOe=DK(),aa=w3(),SOe=["__proto__.","constructor.prototype."],wOe="strict",E3="warn";function Mi(e,t){if(!e)throw new Error(t)}function b3(e){return Number.isInteger(e)&&e>=0&&e<=65535}function lI(e){return String(e).includes("\\\\.\\pipe\\")}var vu={"*":function(){},int:function(e){Mi(Number.isInteger(e),"must be an integer")},nat:function(e){Mi(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){Mi(b3(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){Mi(lI(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){lI(e)||Mi(b3(e),"must be a windows named pipe or a number within range 0 - 65535")}};vu.integer=vu.int;var uI=new Map,dI={"*":JSON.parse};function A3(e,t){let r=Object.keys(e),n,i=[];for(;r.length;){n=r.shift();let o=ca(e,n);if(typeof o=="object"&&!Array.isArray(o)&&o!=null){if(t)if("_cvtProperties"in o)o=o._cvtProperties,n=`${n}._cvtProperties`;else{i.push([n,o]);continue}let a=Object.keys(o);if(a.length>0){a.forEach(function(c){r.push(`${n}.${c}`)});continue}}i.push([n,o])}let s={};return i.forEach(function(o){let a=o[0];t&&(a=a.replace(/\._cvtProperties/g,""));let c=o[1];s[a]=c}),s}function EOe(e,t,r){let n={undeclared:[],invalid_type:[],missing:[]},i=A3(e),s=A3(t._cvtProperties,!0);return Object.keys(s).forEach(function(o){let a=s[o],c=i[o];if(!(o in i))try{if(typeof a.default=="object"&&!Array.isArray(a.default))c=ca(e,o);else throw new Error("missing")}catch{let u=new Error(`configuration param '${o}' missing from config, did you override its parent?`);n.missing.push(u);return}if(delete i[o],(a.format==="object"||typeof a.default=="object")&&Object.keys(i).filter(function(l){return l.lastIndexOf(`${o}.`,0)===0}).forEach(function(l){delete i[l]}),!(typeof a.default>"u"&&c===a.default))try{a._format(c)}catch(l){n.invalid_type.push(l)}}),r&&Object.keys(i).forEach(function(o){let a=new Error(`configuration param '${o}' not declared in the schema`);n.undeclared.push(a)}),n}function bOe(e,t){Mi(e.indexOf(t)!==-1,`must be one of the possible values: ${JSON.stringify(e)}`)}var mI={Object,Array,String,Number,Boolean,RegExp},x3=Object.keys(mI),AOe=x3.map(function(e){return mI[e]});function I3(e,t,r,n,i,s,o){if(e==="_cvtProperties")throw new Error(`'${n}': '_cvtProperties' is reserved word of convict.`);if(typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length>0&&!("default"in t)){r[e]={_cvtProperties:{}},Object.keys(t).forEach(function(u){I3(u,t[u],r[e]._cvtProperties,`${n}.${u}`,i,s,o)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let a=aa(t);if(r[e]=a,a.env&&(i[a.env]||(i[a.env]=[]),i[a.env].push(n)),a.arg){if(s[a.arg])throw new Error(`'${n}' reuses a command-line argument: ${a.arg}`);s[a.arg]=n}a.sensitive===!0&&o.add(n);let c=a.format,l;if(AOe.indexOf(c)>=0||x3.indexOf(c)>=0){let u=typeof c=="string"?mI[c]:c;l=function(p){Mi(Object.prototype.toString.call(p)==Object.prototype.toString.call(new u),`must be of type ${u.name}`)},a.format=u.name.toLowerCase()}else if(typeof c=="string"){if(!vu[c])throw new Error(`'${n}' uses an unknown format type: ${c}`);l=vu[c]}else if(Array.isArray(c))l=bOe.bind(null,c);else if(typeof c=="function")l=c;else if(c&&typeof c!="function")throw new Error(`'${n}': "format" must be a function or a known format type.`);if(!l&&!c){let u=Object.prototype.toString.call(a.default);l=function(p){Mi(Object.prototype.toString.call(p)==u," should be of type "+u.replace(/\[.* |]/g,""))}}a._format=function(u){if(!(this.nullable&&u===null))try{l(u,this)}catch(p){throw p.fullName=n,p.value=u,p}}}function aI(e){let t=e.getEnv();Object.keys(e._env).forEach(function(r){t[r]!==void 0&&e._env[r].forEach(function(i){e.set(i,t[r])})})}function cI(e){let t=vOe(e.getArgs(),{configuration:{"dot-notation":!1}});Object.keys(e._argv).forEach(function(r){let n=e._argv[r];t[r]!==void 0&&e.set(n,String(t[r]))})}function R3(e,t,r){Object.keys(e._cvtProperties).forEach(function(n){let i=e._cvtProperties[n];if(i._cvtProperties){let s=t[n]||{};R3(i,s,r),t[n]=s}else t[n]=pI(n,aa(i.default),e,r)})}function T3(e){return typeof e=="object"&&e!==null}function fI(e,t,r){Object.keys(e).forEach(function(n){Array.isArray(e[n])||!T3(e[n])||!r||r.format==="object"?t[n]=pI(n,e[n],r):(T3(t[n])||(t[n]={}),fI(e[n],t[n],r._cvtProperties[n]))})}function TOe(e,t){let r=t.split("."),n=e;for(;r.length>0;){let i=r.shift();if(n&&n._cvtProperties&&n._cvtProperties[i])n=n._cvtProperties[i];else{n=null;break}}return n}function COe(e,t){let r=TOe(e,t);return r==null?null:typeof r.format=="string"?r.format:r.default!=null?typeof r.default:null}function pI(e,t,r,n){let i=COe(r,e);if(typeof t=="string"){if(uI.has(i))return uI.get(i)(t,n,e);switch(i){case"port":case"nat":case"integer":case"int":t=parseInt(t,10);break;case"port_or_windows_named_pipe":t=lI(t)?t:parseInt(t,10);break;case"number":t=parseFloat(t);break;case"boolean":t=String(t).toLowerCase()!=="false";break;case"array":t=t.split(",");break;case"object":t=JSON.parse(t);break;case"regexp":t=new RegExp(t);break;default:}}return t}function C3(e){let t=e.split("."),r=t.length>1?t.pop():"";return(dI[r]||dI["*"])(gOe.readFileSync(e,"utf-8"))}function ca(e,t,r){if(t){let n=t.split(".");for(;n.length;){let i=n.shift();if(r&&e[i]==null)e[i]={},e=e[i];else if(i in e)e=e[i];else throw new Error(`cannot find configuration param '${t}'`)}}return e}var Su=function(t,r){let n={getArgs:function(){return r&&r.args||process.argv.slice(2)},getEnv:function(){return r&&r.env||process.env},getProperties:function(){return aa(this._instance)},toString:function(){let i=aa(this._instance);return this._sensitive.forEach(function(s){let o=s.split("."),a=o.pop(),c=o.join("."),l=ca(i,c);l[a]="[Sensitive]"}),JSON.stringify(i,null,2)},getSchema:function(){return JSON.parse(JSON.stringify(this._schema))},getSchemaString:function(){return JSON.stringify(this._schema,null,2)},get:function(i){let s=ca(this._instance,i);return aa(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=ca(this._schema._cvtProperties,i);return aa(s)},reset:function(i){this.set(i,this.default(i))},has:function(i){try{return typeof this.get(i)<"u"}catch{return!1}},set:function(i,s){for(let u of SOe)if(i.startsWith(u)||i.includes(`.${u}`))return this;s=pI(i,s,this._schema,this);let o=i.split("."),a=o.pop(),c=o.join("."),l=ca(this._instance,c,!0);return l[a]=s,this},load:function(i){return fI(i,this._instance,this._schema),aI(n),cI(n),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(o){let a=C3(o);a&&fI(a,s._instance,s._schema)}),aI(n),cI(n),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||E3,i.output&&typeof i.output!="function")throw new Error("options.output is optional and must be a function.");let s=i.output||global.console.log,o=EOe(this._instance,this._schema,i.allowed);if(o.invalid_type.length+o.undeclared.length+o.missing.length){let a=this._sensitive,c=function(g){let y="";for(let w=0;w<g.length;w++){y.length&&(y+=`
48
+ `);let C=g[w];C.fullName&&(y+=C.fullName+": "),C.message&&(y+=C.message),C.value&&!a.has(C.fullName)&&(y+=": value was "+JSON.stringify(C.value))}return y},l=c(o.invalid_type),u=c(o.undeclared),p=c(o.missing),m=[l,p];if(i.allowed===E3&&u.length){let g="Warning:";if(process.stdout.isTTY){let y="\x1B[33;1m",w="\x1B[0m";g=y+g+w}s(g+" "+u)}else i.allowed===wOe&&m.push(u);let h=m.filter(function(g){return g.length}).join(`
49
+ `);if(h.length)throw new Error(h)}return this}};return typeof t=="string"?n._def=C3(t):n._def=t,n._schema={_cvtProperties:{}},n._env={},n._argv={},n._sensitive=new Set,Object.keys(n._def).forEach(function(i){I3(i,n._def[i],n._schema._cvtProperties,i,n._env,n._argv,n._sensitive)}),n._instance={},R3(n._schema,n._instance,n),aI(n),cI(n),n};Su.addFormat=function(e,t,r){if(typeof e=="object"&&(t=e.validate,r=e.coerce,e=e.name),typeof t!="function")throw new Error(`Validation function for '${e}' must be a function.`);if(r&&typeof r!="function")throw new Error(`Coerce function for '${e}' must be a function.`);vu[e]=t,r&&uI.set(e,r)};Su.addFormats=function(e){Object.keys(e).forEach(function(t){Su.addFormat(t,e[t].validate,e[t].coerce)})};Su.addParser=function(e){Array.isArray(e)||(e=[e]),e.forEach(function(t){if(!t)throw new Error("Invalid parser");if(!t.extension)throw new Error("Missing parser.extension");if(!t.parse)throw new Error("Missing parser.parse function");if(typeof t.parse!="function")throw new Error("Invalid parser.parse function");(Array.isArray(t.extension)?t.extension:[t.extension]).forEach(function(n){if(typeof n!="string")throw new Error("Invalid parser.extension");dI[n]=t.parse})})};P3.exports=Su});var N3=d(la=>{"use strict";var TS=la&&la.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(la,"__esModule",{value:!0});la.TSConvict=void 0;var wn=TS($x()),_I=TS(O3()),xOe=TS(require("fs")),IOe=TS(require("path")),hI=class{constructor(t){if(this.opts={},!wn.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let r=wn.default.getConvictMetaForClass(t);r!==null&&(typeof r.parser<"u"&&_I.default.addParser(r.parser),typeof r.formats<"u"&&_I.default.addFormats(r.formats),this.opts=r),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=_I.default(this.schema)}load(t=null){let r=null;if(typeof this.opts.file<"u"&&xOe.default.existsSync(IOe.default.resolve(this.opts.file))&&(r=this.opts.file),typeof t=="string"||Array.isArray(t)){let s;Array.isArray(t)?s=t:s=[t],r!==null&&s.unshift(r),this.client.loadFile(s)}else if(t===null)r!==null?this.client.loadFile(r):this.client.load({});else if(typeof t=="object")r!==null&&this.client.loadFile(r),this.client.load(t);else throw new Error(`Could not load the config given: ${t}`);let n=this.opts.validationMethod===void 0?"strict":this.opts.validationMethod;this.client.validate({allowed:n});let i=this.client.getProperties();return this.applyDataToModel(this.baseModel,i)}getSchemaFor(t){let r={};for(let n of wn.default.getClassProperties(t)){let i=wn.default.getConvictMetaForProperty(t,n);if(wn.default.isConstructor(i)&&wn.default.isConfigClass(i))try{t[n]=new i,r[n]=this.getSchemaFor(t[n])}catch(s){throw console.error(s),new Error("Could not make a new class of "+i)}else r[n]=i}return r}applyDataToModel(t,r){for(let n of wn.default.getClassProperties(t)){let i=wn.default.getConvictMetaForProperty(t,n);wn.default.isConstructor(i)&&wn.default.isConfigClass(i)?this.applyDataToModel(t[n],r[n]||{}):n in r&&(t[n]=r[n])}return t}};la.TSConvict=hI});var D3=d(Jn=>{"use strict";var ROe=Jn&&Jn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),yI=Jn&&Jn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ROe(t,e,r)};Object.defineProperty(Jn,"__esModule",{value:!0});yI(AK(),Jn);yI(TK(),Jn);yI(N3(),Jn)});var jOe={};U3(jOe,{handler:()=>MOe,overrideDBManager:()=>DOe});module.exports=B3(jOe);var i2e=rr(rw());var s1;(function(e){(function(t){var r=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),n=i(e);typeof r.Reflect>"u"?r.Reflect=e:n=i(r.Reflect,n),t(n);function i(s,o){return function(a,c){typeof s[a]!="function"&&Object.defineProperty(s,a,{configurable:!0,writable:!0,value:c}),o&&o(a,c)}}})(function(t){var r=Object.prototype.hasOwnProperty,n=typeof Symbol=="function",i=n&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=n&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",a={__proto__:[]}instanceof Array,c=!o&&!a,l={create:o?function(){return Xe(Object.create(null))}:a?function(){return Xe({__proto__:null})}:function(){return Xe({})},has:c?function(A,R){return r.call(A,R)}:function(A,R){return R in A},get:c?function(A,R){return r.call(A,R)?A[R]:void 0}:function(A,R){return A[R]}},u=Object.getPrototypeOf(Function),p=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",m=!p&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:F(),h=!p&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:X(),g=!p&&typeof WeakMap=="function"?WeakMap:$e(),y=new g;function w(A,R,N,z){if(qe(N)){if(!wu(A))throw new TypeError;if(!tr(R))throw new TypeError;return H(A,R)}else{if(!wu(A))throw new TypeError;if(!Be(R))throw new TypeError;if(!Be(z)&&!qe(z)&&!Qn(z))throw new TypeError;return Qn(z)&&(z=void 0),N=_t(N),ce(A,R,N,z)}}t("decorate",w);function C(A,R){function N(z,Y){if(!Be(z))throw new TypeError;if(!qe(Y)&&!DS(Y))throw new TypeError;Se(A,R,z,Y)}return N}t("metadata",C);function T(A,R,N,z){if(!Be(N))throw new TypeError;return qe(z)||(z=_t(z)),Se(A,R,N,z)}t("defineMetadata",T);function B(A,R,N){if(!Be(R))throw new TypeError;return qe(N)||(N=_t(N)),ke(A,R,N)}t("hasMetadata",B);function _e(A,R,N){if(!Be(R))throw new TypeError;return qe(N)||(N=_t(N)),Ne(A,R,N)}t("hasOwnMetadata",_e);function ot(A,R,N){if(!Be(R))throw new TypeError;return qe(N)||(N=_t(N)),xe(A,R,N)}t("getMetadata",ot);function pt(A,R,N){if(!Be(R))throw new TypeError;return qe(N)||(N=_t(N)),Ie(A,R,N)}t("getOwnMetadata",pt);function er(A,R){if(!Be(A))throw new TypeError;return qe(R)||(R=_t(R)),Fe(A,R)}t("getMetadataKeys",er);function $t(A,R){if(!Be(A))throw new TypeError;return qe(R)||(R=_t(R)),Ee(A,R)}t("getOwnMetadataKeys",$t);function L(A,R,N){if(!Be(R))throw new TypeError;qe(N)||(N=_t(N));var z=Ce(R,N,!1);if(qe(z)||!z.delete(A))return!1;if(z.size>0)return!0;var Y=y.get(R);return Y.delete(N),Y.size>0||y.delete(R),!0}t("deleteMetadata",L);function H(A,R){for(var N=A.length-1;N>=0;--N){var z=A[N],Y=z(R);if(!qe(Y)&&!Qn(Y)){if(!tr(Y))throw new TypeError;R=Y}}return R}function ce(A,R,N,z){for(var Y=A.length-1;Y>=0;--Y){var at=A[Y],le=at(R,N,z);if(!qe(le)&&!Qn(le)){if(!Be(le))throw new TypeError;z=le}}return z}function Ce(A,R,N){var z=y.get(A);if(qe(z)){if(!N)return;z=new m,y.set(A,z)}var Y=z.get(R);if(qe(Y)){if(!N)return;Y=new m,z.set(R,Y)}return Y}function ke(A,R,N){var z=Ne(A,R,N);if(z)return!0;var Y=k(R);return Qn(Y)?!1:ke(A,Y,N)}function Ne(A,R,N){var z=Ce(R,N,!1);return qe(z)?!1:Ns(z.has(A))}function xe(A,R,N){var z=Ne(A,R,N);if(z)return Ie(A,R,N);var Y=k(R);if(!Qn(Y))return xe(A,Y,N)}function Ie(A,R,N){var z=Ce(R,N,!1);if(!qe(z))return z.get(A)}function Se(A,R,N,z){var Y=Ce(N,z,!0);Y.set(A,R)}function Fe(A,R){var N=Ee(A,R),z=k(A);if(z===null)return N;var Y=Fe(z,R);if(Y.length<=0)return N;if(N.length<=0)return Y;for(var at=new h,le=[],fe=0,ee=N;fe<ee.length;fe++){var ge=ee[fe],ve=at.has(ge);ve||(at.add(ge),le.push(ge))}for(var Zn=0,EI=Y;Zn<EI.length;Zn++){var ge=EI[Zn],ve=at.has(ge);ve||(at.add(ge),le.push(ge))}return le}function Ee(A,R){var N=[],z=Ce(A,R,!1);if(qe(z))return N;for(var Y=z.keys(),at=E(Y),le=0;;){var fe=I(at);if(!fe)return N.length=le,N;var ee=D(fe);try{N[le]=ee}catch(ge){try{b(at)}finally{throw ge}}le++}}function En(A){if(A===null)return 1;switch(typeof A){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return A===null?1:6;default:return 6}}function qe(A){return A===void 0}function Qn(A){return A===null}function oe(A){return typeof A=="symbol"}function Be(A){return typeof A=="object"?A!==null:typeof A=="function"}function PS(A,R){switch(En(A)){case 0:return A;case 1:return A;case 2:return A;case 3:return A;case 4:return A;case 5:return A}var N=R===3?"string":R===5?"number":"default",z=S(A,i);if(z!==void 0){var Y=z.call(A,N);if(Be(Y))throw new TypeError;return Y}return OS(A,N==="default"?"number":N)}function OS(A,R){if(R==="string"){var N=A.toString;if(Xn(N)){var z=N.call(A);if(!Be(z))return z}var Y=A.valueOf;if(Xn(Y)){var z=Y.call(A);if(!Be(z))return z}}else{var Y=A.valueOf;if(Xn(Y)){var z=Y.call(A);if(!Be(z))return z}var at=A.toString;if(Xn(at)){var z=at.call(A);if(!Be(z))return z}}throw new TypeError}function Ns(A){return!!A}function NS(A){return""+A}function _t(A){var R=PS(A,3);return oe(R)?R:NS(R)}function wu(A){return Array.isArray?Array.isArray(A):A instanceof Object?A instanceof Array:Object.prototype.toString.call(A)==="[object Array]"}function Xn(A){return typeof A=="function"}function tr(A){return typeof A=="function"}function DS(A){switch(En(A)){case 3:return!0;case 4:return!0;default:return!1}}function S(A,R){var N=A[R];if(N!=null){if(!Xn(N))throw new TypeError;return N}}function E(A){var R=S(A,s);if(!Xn(R))throw new TypeError;var N=R.call(A);if(!Be(N))throw new TypeError;return N}function D(A){return A.value}function I(A){var R=A.next();return R.done?!1:R}function b(A){var R=A.return;R&&R.call(A)}function k(A){var R=Object.getPrototypeOf(A);if(typeof A!="function"||A===u||R!==u)return R;var N=A.prototype,z=N&&Object.getPrototypeOf(N);if(z==null||z===Object.prototype)return R;var Y=z.constructor;return typeof Y!="function"||Y===A?R:Y}function F(){var A={},R=[],N=function(){function le(fe,ee,ge){this._index=0,this._keys=fe,this._values=ee,this._selector=ge}return le.prototype["@@iterator"]=function(){return this},le.prototype[s]=function(){return this},le.prototype.next=function(){var fe=this._index;if(fe>=0&&fe<this._keys.length){var ee=this._selector(this._keys[fe],this._values[fe]);return fe+1>=this._keys.length?(this._index=-1,this._keys=R,this._values=R):this._index++,{value:ee,done:!1}}return{value:void 0,done:!0}},le.prototype.throw=function(fe){throw this._index>=0&&(this._index=-1,this._keys=R,this._values=R),fe},le.prototype.return=function(fe){return this._index>=0&&(this._index=-1,this._keys=R,this._values=R),{value:fe,done:!0}},le}();return function(){function le(){this._keys=[],this._values=[],this._cacheKey=A,this._cacheIndex=-2}return Object.defineProperty(le.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),le.prototype.has=function(fe){return this._find(fe,!1)>=0},le.prototype.get=function(fe){var ee=this._find(fe,!1);return ee>=0?this._values[ee]:void 0},le.prototype.set=function(fe,ee){var ge=this._find(fe,!0);return this._values[ge]=ee,this},le.prototype.delete=function(fe){var ee=this._find(fe,!1);if(ee>=0){for(var ge=this._keys.length,ve=ee+1;ve<ge;ve++)this._keys[ve-1]=this._keys[ve],this._values[ve-1]=this._values[ve];return this._keys.length--,this._values.length--,fe===this._cacheKey&&(this._cacheKey=A,this._cacheIndex=-2),!0}return!1},le.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=A,this._cacheIndex=-2},le.prototype.keys=function(){return new N(this._keys,this._values,z)},le.prototype.values=function(){return new N(this._keys,this._values,Y)},le.prototype.entries=function(){return new N(this._keys,this._values,at)},le.prototype["@@iterator"]=function(){return this.entries()},le.prototype[s]=function(){return this.entries()},le.prototype._find=function(fe,ee){return this._cacheKey!==fe&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=fe)),this._cacheIndex<0&&ee&&(this._cacheIndex=this._keys.length,this._keys.push(fe),this._values.push(void 0)),this._cacheIndex},le}();function z(le,fe){return le}function Y(le,fe){return fe}function at(le,fe){return[le,fe]}}function X(){return function(){function A(){this._map=new m}return Object.defineProperty(A.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),A.prototype.has=function(R){return this._map.has(R)},A.prototype.add=function(R){return this._map.set(R,R),this},A.prototype.delete=function(R){return this._map.delete(R)},A.prototype.clear=function(){this._map.clear()},A.prototype.keys=function(){return this._map.keys()},A.prototype.values=function(){return this._map.values()},A.prototype.entries=function(){return this._map.entries()},A.prototype["@@iterator"]=function(){return this.keys()},A.prototype[s]=function(){return this.keys()},A}()}function $e(){var A=16,R=l.create(),N=z();return function(){function ee(){this._key=z()}return ee.prototype.has=function(ge){var ve=Y(ge,!1);return ve!==void 0?l.has(ve,this._key):!1},ee.prototype.get=function(ge){var ve=Y(ge,!1);return ve!==void 0?l.get(ve,this._key):void 0},ee.prototype.set=function(ge,ve){var Zn=Y(ge,!0);return Zn[this._key]=ve,this},ee.prototype.delete=function(ge){var ve=Y(ge,!1);return ve!==void 0?delete ve[this._key]:!1},ee.prototype.clear=function(){this._key=z()},ee}();function z(){var ee;do ee="@@WeakMap@@"+fe();while(l.has(R,ee));return R[ee]=!0,ee}function Y(ee,ge){if(!r.call(ee,N)){if(!ge)return;Object.defineProperty(ee,N,{value:l.create()})}return ee[N]}function at(ee,ge){for(var ve=0;ve<ge;++ve)ee[ve]=Math.random()*255|0;return ee}function le(ee){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(ee)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(ee)):at(new Uint8Array(ee),ee):at(new Array(ee),ee)}function fe(){var ee=le(A);ee[6]=ee[6]&79|64,ee[8]=ee[8]&191|128;for(var ge="",ve=0;ve<A;++ve){var Zn=ee[ve];(ve===4||ve===6||ve===8)&&(ge+="-"),Zn<16&&(ge+="0"),ge+=Zn.toString(16).toLowerCase()}return ge}}function Xe(A){return A.__=void 0,delete A.__,A}})})(s1||(s1={}));var L3=rr(Ct()),vI=rr(Py()),SI=rr(vB()),wI=rr(yG()),M3=rr($C()),da=rr(wH());var EH=rr(Tt()),bxe={"x-forwarded-for":!0,"x-amzn-trace-id":!0};function hx(e){let{request:t}=e,{headers:r,method:n,body:i,querystring:s,uri:o}=t,a=s.replace(/\[/g,"%5B").replace(/]/g,"%5D"),c=r.host[0].value,l=new URL(`https://${c}${o}${s?`?${s}`:""}`),u={};for(let h of Object.keys(r))bxe[h]||(u[h]=r[h][0].value);let p={};for(let h of l.searchParams.keys())p[h]=l.searchParams.get(h)||"";t.querystring=a;let m;return i&&i.data&&i.encoding==="base64"?m=Buffer.from(i.data,"base64"):i&&i.data&&(m=i.data),new EH.HttpRequest({headers:u,hostname:c,method:n,port:443,protocol:"https:",path:t.uri,body:m,query:p})}var yx=["authorization","x-amz-date","x-amz-security-token","x-amz-content-sha256"];async function bH(e,t,r){let n=hx({request:e});for(let s of yx)delete n.headers[s];let i=await r.sign(n);for(let s of yx)e.headers[s]=[{key:s,value:i.headers[s]}];return e}async function AH(e,t,r){let n=hx({request:e}),i=await r.presign(n);for(let s of yx)e.headers[s]=[{key:s,value:i.headers[s]}];return e}var IS=rr(LH());function QH(e){return typeof e>"u"||e===null}function pIe(e){return typeof e=="object"&&e!==null}function _Ie(e){return Array.isArray(e)?e:QH(e)?[]:[e]}function hIe(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function yIe(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function gIe(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var vIe=QH,SIe=pIe,wIe=_Ie,EIe=yIe,bIe=gIe,AIe=hIe,Ze={isNothing:vIe,isObject:SIe,toArray:wIe,repeat:EIe,isNegativeZero:bIe,extend:AIe};function XH(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
38
50
 
39
- `+e.mark.snippet),n+" "+r):n}function Ic(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Zj(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ic.prototype=Object.create(Error.prototype);Ic.prototype.constructor=Ic;Ic.prototype.toString=function(t){return this.name+": "+Zj(this,t)};var Ot=Ic;function zb(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function jb(e,t){return Qe.repeat(" ",t-e.length)+e}function Bpe(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,u,d=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+d+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)u=zb(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),p),a=Qe.repeat(" ",t.indent)+jb((e.line-c+1).toString(),d)+" | "+u.str+`
40
- `+a;for(u=zb(e.buffer,n[o],i[o],e.position,p),a+=Qe.repeat(" ",t.indent)+jb((e.line+1).toString(),d)+" | "+u.str+`
41
- `,a+=Qe.repeat("-",t.indent+d+3+u.pos)+`^
42
- `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=zb(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),p),a+=Qe.repeat(" ",t.indent)+jb((e.line+c+1).toString(),d)+" | "+u.str+`
43
- `;return a.replace(/\n$/,"")}var Gpe=Bpe,$pe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Vpe=["scalar","sequence","mapping"];function Kpe(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function Hpe(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if($pe.indexOf(r)===-1)throw new Ot('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Kpe(t.styleAliases||null),Vpe.indexOf(this.kind)===-1)throw new Ot('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var _t=Hpe;function zj(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function Wpe(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Ub(e){return this.extend(e)}Ub.prototype.extend=function(t){var r=[],n=[];if(t instanceof _t)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Ot("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof _t))throw new Ot("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ot("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Ot("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof _t))throw new Ot("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Ub.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=zj(i,"implicit"),i.compiledExplicit=zj(i,"explicit"),i.compiledTypeMap=Wpe(i.compiledImplicit,i.compiledExplicit),i};var Ype=Ub,Jpe=new _t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Qpe=new _t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Xpe=new _t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Zpe=new Ype({explicit:[Jpe,Qpe,Xpe]});function ehe(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function the(){return null}function rhe(e){return e===null}var nhe=new _t("tag:yaml.org,2002:null",{kind:"scalar",resolve:ehe,construct:the,predicate:rhe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function ihe(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function she(e){return e==="true"||e==="True"||e==="TRUE"}function ohe(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ahe=new _t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ihe,construct:she,predicate:ohe,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function che(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function lhe(e){return 48<=e&&e<=55}function uhe(e){return 48<=e&&e<=57}function dhe(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!che(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!lhe(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!uhe(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function fhe(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function mhe(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Qe.isNegativeZero(e)}var phe=new _t("tag:yaml.org,2002:int",{kind:"scalar",resolve:dhe,construct:fhe,predicate:mhe,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),hhe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function _he(e){return!(e===null||!hhe.test(e)||e[e.length-1]==="_")}function yhe(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var ghe=/^[-+]?[0-9]+e/;function vhe(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Qe.isNegativeZero(e))return"-0.0";return r=e.toString(10),ghe.test(r)?r.replace("e",".e"):r}function She(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Qe.isNegativeZero(e))}var whe=new _t("tag:yaml.org,2002:float",{kind:"scalar",resolve:_he,construct:yhe,predicate:She,represent:vhe,defaultStyle:"lowercase"}),bhe=Zpe.extend({implicit:[nhe,ahe,phe,whe]}),Ehe=bhe,ek=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),tk=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Ahe(e){return e===null?!1:ek.exec(e)!==null||tk.exec(e)!==null}function The(e){var t,r,n,i,s,o,a,c=0,u=null,d,p,m;if(t=ek.exec(e),t===null&&(t=tk.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(d=+t[10],p=+(t[11]||0),u=(d*60+p)*6e4,t[9]==="-"&&(u=-u)),m=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&m.setTime(m.getTime()-u),m}function Che(e){return e.toISOString()}var xhe=new _t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ahe,construct:The,instanceOf:Date,represent:Che});function Ihe(e){return e==="<<"||e===null}var Rhe=new _t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ihe}),Vb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
44
- \r`;function Dhe(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Vb;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function Phe(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Vb,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function Nhe(e){var t="",r=0,n,i,s=e.length,o=Vb;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function Ohe(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Lhe=new _t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Dhe,construct:Phe,predicate:Ohe,represent:Nhe}),qhe=Object.prototype.hasOwnProperty,Mhe=Object.prototype.toString;function zhe(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,Mhe.call(i)!=="[object Object]")return!1;for(s in i)if(qhe.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function jhe(e){return e!==null?e:[]}var khe=new _t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:zhe,construct:jhe}),Uhe=Object.prototype.toString;function Fhe(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],Uhe.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function Bhe(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var Ghe=new _t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Fhe,construct:Bhe}),$he=Object.prototype.hasOwnProperty;function Vhe(e){if(e===null)return!0;var t,r=e;for(t in r)if($he.call(r,t)&&r[t]!==null)return!1;return!0}function Khe(e){return e!==null?e:{}}var Hhe=new _t("tag:yaml.org,2002:set",{kind:"mapping",resolve:Vhe,construct:Khe}),rk=Ehe.extend({implicit:[xhe,Rhe],explicit:[Lhe,khe,Ghe,Hhe]}),ni=Object.prototype.hasOwnProperty,v_=1,nk=2,ik=3,S_=4,kb=1,Whe=2,jj=3,Yhe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Jhe=/[\x85\u2028\u2029]/,Qhe=/[,\[\]\{\}]/,sk=/^(?:!|!!|![a-z\-]+!)$/i,ok=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function kj(e){return Object.prototype.toString.call(e)}function Yr(e){return e===10||e===13}function Gi(e){return e===9||e===32}function Lt(e){return e===9||e===32||e===10||e===13}function ro(e){return e===44||e===91||e===93||e===123||e===125}function Xhe(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Zhe(e){return e===120?2:e===117?4:e===85?8:0}function e_e(e){return 48<=e&&e<=57?e-48:-1}function Uj(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
45
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function t_e(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var ak=new Array(256),ck=new Array(256);for(Bi=0;Bi<256;Bi++)ak[Bi]=Uj(Bi)?1:0,ck[Bi]=Uj(Bi);var Bi;function r_e(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||rk,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function lk(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Gpe(r),new Ot(t,r)}function V(e,t){throw lk(e,t)}function w_(e,t){e.onWarning&&e.onWarning.call(null,lk(e,t))}var Fj={YAML:function(t,r,n){var i,s,o;t.version!==null&&V(t,"duplication of %YAML directive"),n.length!==1&&V(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&V(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&V(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&w_(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&V(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],sk.test(i)||V(t,"ill-formed tag handle (first argument) of the TAG directive"),ni.call(t.tagMap,i)&&V(t,'there is a previously declared suffix for "'+i+'" tag handle'),ok.test(s)||V(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{V(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function ri(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||V(e,"expected valid JSON character");else Yhe.test(a)&&V(e,"the stream contains non-printable characters");e.result+=a}}function Bj(e,t,r,n){var i,s,o,a;for(Qe.isObject(r)||V(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],ni.call(t,s)||(t[s]=r[s],n[s]=!0)}function no(e,t,r,n,i,s,o,a,c){var u,d;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,d=i.length;u<d;u+=1)Array.isArray(i[u])&&V(e,"nested arrays are not supported inside keys"),typeof i=="object"&&kj(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&kj(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,d=s.length;u<d;u+=1)Bj(e,t,s[u],r);else Bj(e,t,s,r);else!e.json&&!ni.call(r,i)&&ni.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,V(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function Kb(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):V(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ye(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Gi(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Yr(i))for(Kb(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&w_(e,"deficient indentation"),n}function A_(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Lt(r)))}function Hb(e,t){t===1?e.result+=" ":t>1&&(e.result+=Qe.repeat(`
46
- `,t-1))}function n_e(e,t,r){var n,i,s,o,a,c,u,d,p=e.kind,m=e.result,_;if(_=e.input.charCodeAt(e.position),Lt(_)||ro(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(i=e.input.charCodeAt(e.position+1),Lt(i)||r&&ro(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;_!==0;){if(_===58){if(i=e.input.charCodeAt(e.position+1),Lt(i)||r&&ro(i))break}else if(_===35){if(n=e.input.charCodeAt(e.position-1),Lt(n))break}else{if(e.position===e.lineStart&&A_(e)||r&&ro(_))break;if(Yr(_))if(c=e.line,u=e.lineStart,d=e.lineIndent,Ye(e,!1,-1),e.lineIndent>=t){a=!0,_=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=u,e.lineIndent=d;break}}a&&(ri(e,s,o,!1),Hb(e,e.line-c),s=o=e.position,a=!1),Gi(_)||(o=e.position+1),_=e.input.charCodeAt(++e.position)}return ri(e,s,o,!1),e.result?!0:(e.kind=p,e.result=m,!1)}function i_e(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(ri(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Yr(r)?(ri(e,n,i,!0),Hb(e,Ye(e,!1,t)),n=i=e.position):e.position===e.lineStart&&A_(e)?V(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);V(e,"unexpected end of the stream within a single quoted scalar")}function s_e(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return ri(e,r,e.position,!0),e.position++,!0;if(a===92){if(ri(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Yr(a))Ye(e,!1,t);else if(a<256&&ak[a])e.result+=ck[a],e.position++;else if((o=Zhe(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=Xhe(a))>=0?s=(s<<4)+o:V(e,"expected hexadecimal character");e.result+=t_e(s),e.position++}else V(e,"unknown escape sequence");r=n=e.position}else Yr(a)?(ri(e,r,n,!0),Hb(e,Ye(e,!1,t)),r=n=e.position):e.position===e.lineStart&&A_(e)?V(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}V(e,"unexpected end of the stream within a double quoted scalar")}function o_e(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,u,d,p,m,_,g=Object.create(null),y,A,I,T;if(T=e.input.charCodeAt(e.position),T===91)d=93,_=!1,a=[];else if(T===123)d=125,_=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),T=e.input.charCodeAt(++e.position);T!==0;){if(Ye(e,!0,t),T=e.input.charCodeAt(e.position),T===d)return e.position++,e.tag=o,e.anchor=c,e.kind=_?"mapping":"sequence",e.result=a,!0;r?T===44&&V(e,"expected the node content, but found ','"):V(e,"missed comma between flow collection entries"),A=y=I=null,p=m=!1,T===63&&(u=e.input.charCodeAt(e.position+1),Lt(u)&&(p=m=!0,e.position++,Ye(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,io(e,t,v_,!1,!0),A=e.tag,y=e.result,Ye(e,!0,t),T=e.input.charCodeAt(e.position),(m||e.line===n)&&T===58&&(p=!0,T=e.input.charCodeAt(++e.position),Ye(e,!0,t),io(e,t,v_,!1,!0),I=e.result),_?no(e,a,g,A,y,I,n,i,s):p?a.push(no(e,null,g,A,y,I,n,i,s)):a.push(y),Ye(e,!0,t),T=e.input.charCodeAt(e.position),T===44?(r=!0,T=e.input.charCodeAt(++e.position)):r=!1}V(e,"unexpected end of the stream within a flow collection")}function a_e(e,t){var r,n,i=kb,s=!1,o=!1,a=t,c=0,u=!1,d,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)kb===i?i=p===43?jj:Whe:V(e,"repeat of a chomping mode identifier");else if((d=e_e(p))>=0)d===0?V(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?V(e,"repeat of an indentation width identifier"):(a=t+d-1,o=!0);else break;if(Gi(p)){do p=e.input.charCodeAt(++e.position);while(Gi(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Yr(p)&&p!==0)}for(;p!==0;){for(Kb(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Yr(p)){c++;continue}if(e.lineIndent<a){i===jj?e.result+=Qe.repeat(`
47
- `,s?1+c:c):i===kb&&s&&(e.result+=`
48
- `);break}for(n?Gi(p)?(u=!0,e.result+=Qe.repeat(`
49
- `,s?1+c:c)):u?(u=!1,e.result+=Qe.repeat(`
50
- `,c+1)):c===0?s&&(e.result+=" "):e.result+=Qe.repeat(`
51
- `,c):e.result+=Qe.repeat(`
52
- `,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!Yr(p)&&p!==0;)p=e.input.charCodeAt(++e.position);ri(e,r,e.position,!1)}return!0}function Gj(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,V(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!Lt(o))));){if(a=!0,e.position++,Ye(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,io(e,t,ik,!1,!0),s.push(e.result),Ye(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)V(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function c_e(e,t,r){var n,i,s,o,a,c,u=e.tag,d=e.anchor,p={},m=Object.create(null),_=null,g=null,y=null,A=!1,I=!1,T;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),T=e.input.charCodeAt(e.position);T!==0;){if(!A&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,V(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(T===63||T===58)&&Lt(n))T===63?(A&&(no(e,p,m,_,g,null,o,a,c),_=g=y=null),I=!0,A=!0,i=!0):A?(A=!1,i=!0):V(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,T=n;else{if(o=e.line,a=e.lineStart,c=e.position,!io(e,r,nk,!1,!0))break;if(e.line===s){for(T=e.input.charCodeAt(e.position);Gi(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),Lt(T)||V(e,"a whitespace character is expected after the key-value separator within a block mapping"),A&&(no(e,p,m,_,g,null,o,a,c),_=g=y=null),I=!0,A=!1,i=!1,_=e.tag,g=e.result;else if(I)V(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=d,!0}else if(I)V(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=d,!0}if((e.line===s||e.lineIndent>t)&&(A&&(o=e.line,a=e.lineStart,c=e.position),io(e,t,S_,!0,i)&&(A?g=e.result:y=e.result),A||(no(e,p,m,_,g,y,o,a,c),_=g=y=null),Ye(e,!0,-1),T=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&T!==0)V(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return A&&no(e,p,m,_,g,null,o,a,c),I&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=p),I}function l_e(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&V(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):V(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Lt(o);)o===33&&(n?V(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),sk.test(i)||V(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Qhe.test(s)&&V(e,"tag suffix cannot contain flow indicator characters")}s&&!ok.test(s)&&V(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{V(e,"tag name is malformed: "+s)}return r?e.tag=s:ni.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:V(e,'undeclared tag handle "'+i+'"'),!0}function u_e(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&V(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Lt(r)&&!ro(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&V(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function d_e(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Lt(n)&&!ro(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&V(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ni.call(e.anchorMap,r)||V(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ye(e,!0,-1),!0}function io(e,t,r,n,i){var s,o,a,c=1,u=!1,d=!1,p,m,_,g,y,A;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=S_===r||ik===r,n&&Ye(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;l_e(e)||u_e(e);)Ye(e,!0,-1)?(u=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||S_===r)&&(v_===r||nk===r?y=t:y=t+1,A=e.position-e.lineStart,c===1?a&&(Gj(e,A)||c_e(e,A,y))||o_e(e,y)?d=!0:(o&&a_e(e,y)||i_e(e,y)||s_e(e,y)?d=!0:d_e(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&V(e,"alias node should not have any properties")):n_e(e,y,v_===r)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(d=a&&Gj(e,A))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&V(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,m=e.implicitTypes.length;p<m;p+=1)if(g=e.implicitTypes[p],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ni.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,_=e.typeMap.multi[e.kind||"fallback"],p=0,m=_.length;p<m;p+=1)if(e.tag.slice(0,_[p].tag.length)===_[p].tag){g=_[p];break}g||V(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&V(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):V(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}function f_e(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Ye(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Lt(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&V(e,"directive name must not be less than one character in length");o!==0;){for(;Gi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Yr(o));break}if(Yr(o))break;for(r=e.position;o!==0&&!Lt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Kb(e),ni.call(Fj,n)?Fj[n](e,n,i):w_(e,'unknown document directive "'+n+'"')}if(Ye(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ye(e,!0,-1)):s&&V(e,"directives end mark is expected"),io(e,e.lineIndent-1,S_,!1,!0),Ye(e,!0,-1),e.checkLineBreaks&&Jhe.test(e.input.slice(t,e.position))&&w_(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&A_(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ye(e,!0,-1));return}if(e.position<e.length-1)V(e,"end of the stream or a document separator is expected");else return}function uk(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
53
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new r_e(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,V(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)f_e(r);return r.documents}function m_e(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=uk(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function p_e(e,t){var r=uk(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Ot("expected a single document in the stream, but found more")}}var h_e=m_e,__e=p_e,dk={loadAll:h_e,load:__e},fk=Object.prototype.toString,mk=Object.prototype.hasOwnProperty,Wb=65279,y_e=9,Rc=10,g_e=13,v_e=32,S_e=33,w_e=34,Fb=35,b_e=37,E_e=38,A_e=39,T_e=42,pk=44,C_e=45,b_=58,x_e=61,I_e=62,R_e=63,D_e=64,hk=91,_k=93,P_e=96,yk=123,N_e=124,gk=125,yt={};yt[0]="\\0";yt[7]="\\a";yt[8]="\\b";yt[9]="\\t";yt[10]="\\n";yt[11]="\\v";yt[12]="\\f";yt[13]="\\r";yt[27]="\\e";yt[34]='\\"';yt[92]="\\\\";yt[133]="\\N";yt[160]="\\_";yt[8232]="\\L";yt[8233]="\\P";var O_e=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],L_e=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function q_e(e,t){var r,n,i,s,o,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&mk.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function M_e(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Ot("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Qe.repeat("0",n-t.length)+t}var z_e=1,Dc=2;function j_e(e){this.schema=e.schema||rk,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Qe.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=q_e(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Dc:z_e,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function $j(e,t){for(var r=Qe.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
51
+ `+e.mark.snippet),n+" "+r):n}function uu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=XH(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}uu.prototype=Object.create(Error.prototype);uu.prototype.constructor=uu;uu.prototype.toString=function(t){return this.name+": "+XH(this,t)};var Bt=uu;function Rx(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Px(e,t){return Ze.repeat(" ",t-e.length)+e}function TIe(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=Rx(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),p),a=Ze.repeat(" ",t.indent)+Px((e.line-c+1).toString(),u)+" | "+l.str+`
52
+ `+a;for(l=Rx(e.buffer,n[o],i[o],e.position,p),a+=Ze.repeat(" ",t.indent)+Px((e.line+1).toString(),u)+" | "+l.str+`
53
+ `,a+=Ze.repeat("-",t.indent+u+3+l.pos)+`^
54
+ `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=Rx(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),p),a+=Ze.repeat(" ",t.indent)+Px((e.line+c+1).toString(),u)+" | "+l.str+`
55
+ `;return a.replace(/\n$/,"")}var CIe=TIe,xIe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],IIe=["scalar","sequence","mapping"];function RIe(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function PIe(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(xIe.indexOf(r)===-1)throw new Bt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=RIe(t.styleAliases||null),IIe.indexOf(this.kind)===-1)throw new Bt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var bt=PIe;function MH(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function OIe(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Nx(e){return this.extend(e)}Nx.prototype.extend=function(t){var r=[],n=[];if(t instanceof bt)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Bt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof bt))throw new Bt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Bt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Bt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof bt))throw new Bt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Nx.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=MH(i,"implicit"),i.compiledExplicit=MH(i,"explicit"),i.compiledTypeMap=OIe(i.compiledImplicit,i.compiledExplicit),i};var NIe=Nx,DIe=new bt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),qIe=new bt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),LIe=new bt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),MIe=new NIe({explicit:[DIe,qIe,LIe]});function jIe(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function zIe(){return null}function kIe(e){return e===null}var FIe=new bt("tag:yaml.org,2002:null",{kind:"scalar",resolve:jIe,construct:zIe,predicate:kIe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function UIe(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function BIe(e){return e==="true"||e==="True"||e==="TRUE"}function GIe(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var $Ie=new bt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:UIe,construct:BIe,predicate:GIe,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function VIe(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function HIe(e){return 48<=e&&e<=55}function KIe(e){return 48<=e&&e<=57}function WIe(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!VIe(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!HIe(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!KIe(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function YIe(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function JIe(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ze.isNegativeZero(e)}var QIe=new bt("tag:yaml.org,2002:int",{kind:"scalar",resolve:WIe,construct:YIe,predicate:JIe,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),XIe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ZIe(e){return!(e===null||!XIe.test(e)||e[e.length-1]==="_")}function e1e(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var t1e=/^[-+]?[0-9]+e/;function r1e(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ze.isNegativeZero(e))return"-0.0";return r=e.toString(10),t1e.test(r)?r.replace("e",".e"):r}function n1e(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ze.isNegativeZero(e))}var i1e=new bt("tag:yaml.org,2002:float",{kind:"scalar",resolve:ZIe,construct:e1e,predicate:n1e,represent:r1e,defaultStyle:"lowercase"}),s1e=MIe.extend({implicit:[FIe,$Ie,QIe,i1e]}),o1e=s1e,ZH=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),eK=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function a1e(e){return e===null?!1:ZH.exec(e)!==null||eK.exec(e)!==null}function c1e(e){var t,r,n,i,s,o,a,c=0,l=null,u,p,m;if(t=ZH.exec(e),t===null&&(t=eK.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=+t[10],p=+(t[11]||0),l=(u*60+p)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(r,n,i,s,o,a,c)),l&&m.setTime(m.getTime()-l),m}function l1e(e){return e.toISOString()}var u1e=new bt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:a1e,construct:c1e,instanceOf:Date,represent:l1e});function d1e(e){return e==="<<"||e===null}var f1e=new bt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:d1e}),jx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
56
+ \r`;function m1e(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=jx;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function p1e(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=jx,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function _1e(e){var t="",r=0,n,i,s=e.length,o=jx;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function h1e(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var y1e=new bt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:m1e,construct:p1e,predicate:h1e,represent:_1e}),g1e=Object.prototype.hasOwnProperty,v1e=Object.prototype.toString;function S1e(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,v1e.call(i)!=="[object Object]")return!1;for(s in i)if(g1e.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function w1e(e){return e!==null?e:[]}var E1e=new bt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:S1e,construct:w1e}),b1e=Object.prototype.toString;function A1e(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],b1e.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function T1e(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var C1e=new bt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:A1e,construct:T1e}),x1e=Object.prototype.hasOwnProperty;function I1e(e){if(e===null)return!0;var t,r=e;for(t in r)if(x1e.call(r,t)&&r[t]!==null)return!1;return!0}function R1e(e){return e!==null?e:{}}var P1e=new bt("tag:yaml.org,2002:set",{kind:"mapping",resolve:I1e,construct:R1e}),tK=o1e.extend({implicit:[u1e,f1e],explicit:[y1e,E1e,C1e,P1e]}),Di=Object.prototype.hasOwnProperty,uS=1,rK=2,nK=3,dS=4,Ox=1,O1e=2,jH=3,N1e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,D1e=/[\x85\u2028\u2029]/,q1e=/[,\[\]\{\}]/,iK=/^(?:!|!!|![a-z\-]+!)$/i,sK=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function zH(e){return Object.prototype.toString.call(e)}function Sn(e){return e===10||e===13}function Is(e){return e===9||e===32}function Gt(e){return e===9||e===32||e===10||e===13}function ea(e){return e===44||e===91||e===93||e===123||e===125}function L1e(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function M1e(e){return e===120?2:e===117?4:e===85?8:0}function j1e(e){return 48<=e&&e<=57?e-48:-1}function kH(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
57
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function z1e(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var oK=new Array(256),aK=new Array(256);for(xs=0;xs<256;xs++)oK[xs]=kH(xs)?1:0,aK[xs]=kH(xs);var xs;function k1e(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||tK,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function cK(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=CIe(r),new Bt(t,r)}function W(e,t){throw cK(e,t)}function fS(e,t){e.onWarning&&e.onWarning.call(null,cK(e,t))}var FH={YAML:function(t,r,n){var i,s,o;t.version!==null&&W(t,"duplication of %YAML directive"),n.length!==1&&W(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&W(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&W(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&fS(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&W(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],iK.test(i)||W(t,"ill-formed tag handle (first argument) of the TAG directive"),Di.call(t.tagMap,i)&&W(t,'there is a previously declared suffix for "'+i+'" tag handle'),sK.test(s)||W(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{W(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Ni(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||W(e,"expected valid JSON character");else N1e.test(a)&&W(e,"the stream contains non-printable characters");e.result+=a}}function UH(e,t,r,n){var i,s,o,a;for(Ze.isObject(r)||W(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Di.call(t,s)||(t[s]=r[s],n[s]=!0)}function ta(e,t,r,n,i,s,o,a,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&W(e,"nested arrays are not supported inside keys"),typeof i=="object"&&zH(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&zH(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,u=s.length;l<u;l+=1)UH(e,t,s[l],r);else UH(e,t,s,r);else!e.json&&!Di.call(r,i)&&Di.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,W(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function zx(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):W(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Qe(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Is(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Sn(i))for(zx(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&fS(e,"deficient indentation"),n}function _S(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Gt(r)))}function kx(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ze.repeat(`
58
+ `,t-1))}function F1e(e,t,r){var n,i,s,o,a,c,l,u,p=e.kind,m=e.result,h;if(h=e.input.charCodeAt(e.position),Gt(h)||ea(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Gt(i)||r&&ea(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Gt(i)||r&&ea(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),Gt(n))break}else{if(e.position===e.lineStart&&_S(e)||r&&ea(h))break;if(Sn(h))if(c=e.line,l=e.lineStart,u=e.lineIndent,Qe(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}}a&&(Ni(e,s,o,!1),kx(e,e.line-c),s=o=e.position,a=!1),Is(h)||(o=e.position+1),h=e.input.charCodeAt(++e.position)}return Ni(e,s,o,!1),e.result?!0:(e.kind=p,e.result=m,!1)}function U1e(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ni(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Sn(r)?(Ni(e,n,i,!0),kx(e,Qe(e,!1,t)),n=i=e.position):e.position===e.lineStart&&_S(e)?W(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);W(e,"unexpected end of the stream within a single quoted scalar")}function B1e(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Ni(e,r,e.position,!0),e.position++,!0;if(a===92){if(Ni(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Sn(a))Qe(e,!1,t);else if(a<256&&oK[a])e.result+=aK[a],e.position++;else if((o=M1e(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=L1e(a))>=0?s=(s<<4)+o:W(e,"expected hexadecimal character");e.result+=z1e(s),e.position++}else W(e,"unknown escape sequence");r=n=e.position}else Sn(a)?(Ni(e,r,n,!0),kx(e,Qe(e,!1,t)),r=n=e.position):e.position===e.lineStart&&_S(e)?W(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}W(e,"unexpected end of the stream within a double quoted scalar")}function G1e(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,l,u,p,m,h,g=Object.create(null),y,w,C,T;if(T=e.input.charCodeAt(e.position),T===91)u=93,h=!1,a=[];else if(T===123)u=125,h=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),T=e.input.charCodeAt(++e.position);T!==0;){if(Qe(e,!0,t),T=e.input.charCodeAt(e.position),T===u)return e.position++,e.tag=o,e.anchor=c,e.kind=h?"mapping":"sequence",e.result=a,!0;r?T===44&&W(e,"expected the node content, but found ','"):W(e,"missed comma between flow collection entries"),w=y=C=null,p=m=!1,T===63&&(l=e.input.charCodeAt(e.position+1),Gt(l)&&(p=m=!0,e.position++,Qe(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,ra(e,t,uS,!1,!0),w=e.tag,y=e.result,Qe(e,!0,t),T=e.input.charCodeAt(e.position),(m||e.line===n)&&T===58&&(p=!0,T=e.input.charCodeAt(++e.position),Qe(e,!0,t),ra(e,t,uS,!1,!0),C=e.result),h?ta(e,a,g,w,y,C,n,i,s):p?a.push(ta(e,null,g,w,y,C,n,i,s)):a.push(y),Qe(e,!0,t),T=e.input.charCodeAt(e.position),T===44?(r=!0,T=e.input.charCodeAt(++e.position)):r=!1}W(e,"unexpected end of the stream within a flow collection")}function $1e(e,t){var r,n,i=Ox,s=!1,o=!1,a=t,c=0,l=!1,u,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Ox===i?i=p===43?jH:O1e:W(e,"repeat of a chomping mode identifier");else if((u=j1e(p))>=0)u===0?W(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?W(e,"repeat of an indentation width identifier"):(a=t+u-1,o=!0);else break;if(Is(p)){do p=e.input.charCodeAt(++e.position);while(Is(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Sn(p)&&p!==0)}for(;p!==0;){for(zx(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Sn(p)){c++;continue}if(e.lineIndent<a){i===jH?e.result+=Ze.repeat(`
59
+ `,s?1+c:c):i===Ox&&s&&(e.result+=`
60
+ `);break}for(n?Is(p)?(l=!0,e.result+=Ze.repeat(`
61
+ `,s?1+c:c)):l?(l=!1,e.result+=Ze.repeat(`
62
+ `,c+1)):c===0?s&&(e.result+=" "):e.result+=Ze.repeat(`
63
+ `,c):e.result+=Ze.repeat(`
64
+ `,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!Sn(p)&&p!==0;)p=e.input.charCodeAt(++e.position);Ni(e,r,e.position,!1)}return!0}function BH(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,W(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!Gt(o))));){if(a=!0,e.position++,Qe(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,ra(e,t,nK,!1,!0),s.push(e.result),Qe(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)W(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function V1e(e,t,r){var n,i,s,o,a,c,l=e.tag,u=e.anchor,p={},m=Object.create(null),h=null,g=null,y=null,w=!1,C=!1,T;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),T=e.input.charCodeAt(e.position);T!==0;){if(!w&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,W(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(T===63||T===58)&&Gt(n))T===63?(w&&(ta(e,p,m,h,g,null,o,a,c),h=g=y=null),C=!0,w=!0,i=!0):w?(w=!1,i=!0):W(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,T=n;else{if(o=e.line,a=e.lineStart,c=e.position,!ra(e,r,rK,!1,!0))break;if(e.line===s){for(T=e.input.charCodeAt(e.position);Is(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),Gt(T)||W(e,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(ta(e,p,m,h,g,null,o,a,c),h=g=y=null),C=!0,w=!1,i=!1,h=e.tag,g=e.result;else if(C)W(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=u,!0}else if(C)W(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=u,!0}if((e.line===s||e.lineIndent>t)&&(w&&(o=e.line,a=e.lineStart,c=e.position),ra(e,t,dS,!0,i)&&(w?g=e.result:y=e.result),w||(ta(e,p,m,h,g,y,o,a,c),h=g=y=null),Qe(e,!0,-1),T=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&T!==0)W(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return w&&ta(e,p,m,h,g,null,o,a,c),C&&(e.tag=l,e.anchor=u,e.kind="mapping",e.result=p),C}function H1e(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&W(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):W(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Gt(o);)o===33&&(n?W(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),iK.test(i)||W(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),q1e.test(s)&&W(e,"tag suffix cannot contain flow indicator characters")}s&&!sK.test(s)&&W(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{W(e,"tag name is malformed: "+s)}return r?e.tag=s:Di.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:W(e,'undeclared tag handle "'+i+'"'),!0}function K1e(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&W(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Gt(r)&&!ea(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&W(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function W1e(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Gt(n)&&!ea(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&W(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Di.call(e.anchorMap,r)||W(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Qe(e,!0,-1),!0}function ra(e,t,r,n,i){var s,o,a,c=1,l=!1,u=!1,p,m,h,g,y,w;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=dS===r||nK===r,n&&Qe(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;H1e(e)||K1e(e);)Qe(e,!0,-1)?(l=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=l||i),(c===1||dS===r)&&(uS===r||rK===r?y=t:y=t+1,w=e.position-e.lineStart,c===1?a&&(BH(e,w)||V1e(e,w,y))||G1e(e,y)?u=!0:(o&&$1e(e,y)||U1e(e,y)||B1e(e,y)?u=!0:W1e(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&W(e,"alias node should not have any properties")):F1e(e,y,uS===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=a&&BH(e,w))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&W(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,m=e.implicitTypes.length;p<m;p+=1)if(g=e.implicitTypes[p],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Di.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,h=e.typeMap.multi[e.kind||"fallback"],p=0,m=h.length;p<m;p+=1)if(e.tag.slice(0,h[p].tag.length)===h[p].tag){g=h[p];break}g||W(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&W(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):W(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function Y1e(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Qe(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Gt(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&W(e,"directive name must not be less than one character in length");o!==0;){for(;Is(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Sn(o));break}if(Sn(o))break;for(r=e.position;o!==0&&!Gt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&zx(e),Di.call(FH,n)?FH[n](e,n,i):fS(e,'unknown document directive "'+n+'"')}if(Qe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Qe(e,!0,-1)):s&&W(e,"directives end mark is expected"),ra(e,e.lineIndent-1,dS,!1,!0),Qe(e,!0,-1),e.checkLineBreaks&&D1e.test(e.input.slice(t,e.position))&&fS(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&_S(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Qe(e,!0,-1));return}if(e.position<e.length-1)W(e,"end of the stream or a document separator is expected");else return}function lK(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
65
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new k1e(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,W(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Y1e(r);return r.documents}function J1e(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=lK(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function Q1e(e,t){var r=lK(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Bt("expected a single document in the stream, but found more")}}var X1e=J1e,Z1e=Q1e,uK={loadAll:X1e,load:Z1e},dK=Object.prototype.toString,fK=Object.prototype.hasOwnProperty,Fx=65279,eRe=9,du=10,tRe=13,rRe=32,nRe=33,iRe=34,Dx=35,sRe=37,oRe=38,aRe=39,cRe=42,mK=44,lRe=45,mS=58,uRe=61,dRe=62,fRe=63,mRe=64,pK=91,_K=93,pRe=96,hK=123,_Re=124,yK=125,At={};At[0]="\\0";At[7]="\\a";At[8]="\\b";At[9]="\\t";At[10]="\\n";At[11]="\\v";At[12]="\\f";At[13]="\\r";At[27]="\\e";At[34]='\\"';At[92]="\\\\";At[133]="\\N";At[160]="\\_";At[8232]="\\L";At[8233]="\\P";var hRe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],yRe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function gRe(e,t){var r,n,i,s,o,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&fK.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function vRe(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Bt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ze.repeat("0",n-t.length)+t}var SRe=1,fu=2;function wRe(e){this.schema=e.schema||tK,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ze.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=gRe(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?fu:SRe,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function GH(e,t){for(var r=Ze.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
54
66
  `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
55
- `&&(s+=r),s+=o;return s}function Bb(e,t){return`
56
- `+Qe.repeat(" ",e.indent*t)}function k_e(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function E_(e){return e===v_e||e===y_e}function Pc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Wb||65536<=e&&e<=1114111}function Vj(e){return Pc(e)&&e!==Wb&&e!==g_e&&e!==Rc}function Kj(e,t,r){var n=Vj(e),i=n&&!E_(e);return(r?n:n&&e!==pk&&e!==hk&&e!==_k&&e!==yk&&e!==gk)&&e!==Fb&&!(t===b_&&!i)||Vj(t)&&!E_(t)&&e===Fb||t===b_&&i}function U_e(e){return Pc(e)&&e!==Wb&&!E_(e)&&e!==C_e&&e!==R_e&&e!==b_&&e!==pk&&e!==hk&&e!==_k&&e!==yk&&e!==gk&&e!==Fb&&e!==E_e&&e!==T_e&&e!==S_e&&e!==N_e&&e!==x_e&&e!==I_e&&e!==A_e&&e!==w_e&&e!==b_e&&e!==D_e&&e!==P_e}function F_e(e){return!E_(e)&&e!==b_}function xc(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function vk(e){var t=/^\n* /;return t.test(e)}var Sk=1,Gb=2,wk=3,bk=4,to=5;function B_e(e,t,r,n,i,s,o,a){var c,u=0,d=null,p=!1,m=!1,_=n!==-1,g=-1,y=U_e(xc(e,0))&&F_e(xc(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=xc(e,c),!Pc(u))return to;y=y&&Kj(u,d,a),d=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=xc(e,c),u===Rc)p=!0,_&&(m=m||c-g-1>n&&e[g+1]!==" ",g=c);else if(!Pc(u))return to;y=y&&Kj(u,d,a),d=u}m=m||_&&c-g-1>n&&e[g+1]!==" "}return!p&&!m?y&&!o&&!i(e)?Sk:s===Dc?to:Gb:r>9&&vk(e)?to:o?s===Dc?to:Gb:m?bk:wk}function G_e(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Dc?'""':"''";if(!e.noCompatMode&&(O_e.indexOf(t)!==-1||L_e.test(t)))return e.quotingType===Dc?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return k_e(e,u)}switch(B_e(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case Sk:return t;case Gb:return"'"+t.replace(/'/g,"''")+"'";case wk:return"|"+Hj(t,e.indent)+Wj($j(t,s));case bk:return">"+Hj(t,e.indent)+Wj($j($_e(t,o),s));case to:return'"'+V_e(t)+'"';default:throw new Ot("impossible error: invalid scalar style")}}()}function Hj(e,t){var r=vk(e)?String(t):"",n=e[e.length-1]===`
67
+ `&&(s+=r),s+=o;return s}function qx(e,t){return`
68
+ `+Ze.repeat(" ",e.indent*t)}function ERe(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function pS(e){return e===rRe||e===eRe}function mu(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Fx||65536<=e&&e<=1114111}function $H(e){return mu(e)&&e!==Fx&&e!==tRe&&e!==du}function VH(e,t,r){var n=$H(e),i=n&&!pS(e);return(r?n:n&&e!==mK&&e!==pK&&e!==_K&&e!==hK&&e!==yK)&&e!==Dx&&!(t===mS&&!i)||$H(t)&&!pS(t)&&e===Dx||t===mS&&i}function bRe(e){return mu(e)&&e!==Fx&&!pS(e)&&e!==lRe&&e!==fRe&&e!==mS&&e!==mK&&e!==pK&&e!==_K&&e!==hK&&e!==yK&&e!==Dx&&e!==oRe&&e!==cRe&&e!==nRe&&e!==_Re&&e!==uRe&&e!==dRe&&e!==aRe&&e!==iRe&&e!==sRe&&e!==mRe&&e!==pRe}function ARe(e){return!pS(e)&&e!==mS}function lu(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function gK(e){var t=/^\n* /;return t.test(e)}var vK=1,Lx=2,SK=3,wK=4,Zo=5;function TRe(e,t,r,n,i,s,o,a){var c,l=0,u=null,p=!1,m=!1,h=n!==-1,g=-1,y=bRe(lu(e,0))&&ARe(lu(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=lu(e,c),!mu(l))return Zo;y=y&&VH(l,u,a),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=lu(e,c),l===du)p=!0,h&&(m=m||c-g-1>n&&e[g+1]!==" ",g=c);else if(!mu(l))return Zo;y=y&&VH(l,u,a),u=l}m=m||h&&c-g-1>n&&e[g+1]!==" "}return!p&&!m?y&&!o&&!i(e)?vK:s===fu?Zo:Lx:r>9&&gK(e)?Zo:o?s===fu?Zo:Lx:m?wK:SK}function CRe(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===fu?'""':"''";if(!e.noCompatMode&&(hRe.indexOf(t)!==-1||yRe.test(t)))return e.quotingType===fu?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(l){return ERe(e,l)}switch(TRe(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case vK:return t;case Lx:return"'"+t.replace(/'/g,"''")+"'";case SK:return"|"+HH(t,e.indent)+KH(GH(t,s));case wK:return">"+HH(t,e.indent)+KH(GH(xRe(t,o),s));case Zo:return'"'+IRe(t)+'"';default:throw new Bt("impossible error: invalid scalar style")}}()}function HH(e,t){var r=gK(e)?String(t):"",n=e[e.length-1]===`
57
69
  `,i=n&&(e[e.length-2]===`
58
70
  `||e===`
59
71
  `),s=i?"+":n?"":"-";return r+s+`
60
- `}function Wj(e){return e[e.length-1]===`
61
- `?e.slice(0,-1):e}function $_e(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
62
- `);return u=u!==-1?u:e.length,r.lastIndex=u,Yj(e.slice(0,u),t)}(),i=e[0]===`
72
+ `}function KH(e){return e[e.length-1]===`
73
+ `?e.slice(0,-1):e}function xRe(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
74
+ `);return l=l!==-1?l:e.length,r.lastIndex=l,WH(e.slice(0,l),t)}(),i=e[0]===`
63
75
  `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],c=o[2];s=c[0]===" ",n+=a+(!i&&!s&&c!==""?`
64
- `:"")+Yj(c,t),i=s}return n}function Yj(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
76
+ `:"")+WH(c,t),i=s}return n}function WH(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
65
77
  `+e.slice(i,s),i=s+1),o=a;return c+=`
66
78
  `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
67
- `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function V_e(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=xc(e,i),n=yt[r],!n&&Pc(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||M_e(r);return t}function K_e(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(gn(e,t,a,!1,!1)||typeof a>"u"&&gn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Jj(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(gn(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&gn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Bb(e,t)),e.dump&&Rc===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function H_e(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,u,d;for(o=0,a=s.length;o<a;o+=1)d="",n!==""&&(d+=", "),e.condenseFlow&&(d+='"'),c=s[o],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),gn(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),gn(e,t,u,!1,!1)&&(d+=e.dump,n+=d));e.tag=i,e.dump="{"+n+"}"}function W_e(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,u,d,p,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Ot("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)m="",(!n||i!=="")&&(m+=Bb(e,t)),u=o[a],d=r[u],e.replacer&&(d=e.replacer.call(r,u,d)),gn(e,t+1,u,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Rc===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,p&&(m+=Bb(e,t)),gn(e,t+1,d,!0,p)&&(e.dump&&Rc===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,i+=m));e.tag=s,e.dump=i||"{}"}function Qj(e,t,r){var n,i,s,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,fk.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(mk.call(a.represent,c))n=a.represent[c](t,c);else throw new Ot("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function gn(e,t,r,n,i,s,o){e.tag=null,e.dump=r,Qj(e,r,!1)||Qj(e,r,!0);var a=fk.call(e.dump),c=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var d=a==="[object Object]"||a==="[object Array]",p,m;if(d&&(p=e.duplicates.indexOf(r),m=p!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(i=!1),m&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&m&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(W_e(e,t,e.dump,i),m&&(e.dump="&ref_"+p+e.dump)):(H_e(e,t,e.dump),m&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Jj(e,t-1,e.dump,i):Jj(e,t,e.dump,i),m&&(e.dump="&ref_"+p+e.dump)):(K_e(e,t,e.dump),m&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&G_e(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ot("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function Y_e(e,t){var r=[],n=[],i,s;for($b(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function $b(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)$b(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)$b(e[n[i]],t,r)}function J_e(e,t){t=t||{};var r=new j_e(t);r.noRefs||Y_e(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),gn(r,0,n,!0,!0)?r.dump+`
68
- `:""}var Q_e=J_e,X_e={dump:Q_e};function Yb(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Ek=dk.load,Cxe=dk.loadAll,xxe=X_e.dump;var Ixe=Yb("safeLoad","load"),Rxe=Yb("safeLoadAll","loadAll"),Dxe=Yb("safeDump","dump");var Bt=Vt(LU());var M_=Vt(yb()),q_=class{static async getExistingFiles(t){let r=[];for(let n of t)await(0,M_.pathExists)(n)&&r.push(n);return r}static getExistingFilesSync(t){let r=[];for(let n of t)(0,M_.pathExistsSync)(n)&&r.push(n);return r}};var Le=class{static configFiles(){let t=["./config.yaml","./config.yml","./configs/config.yaml","./configs/config.yml",`./configs/config-${Le.envLevel}.yaml`,`./configs/config-${Le.envLevel}.yml`,"./configs/config.json",`./configs/config-${Le.envLevel}.json`];return q_.getExistingFilesSync(t)}static get instance(){if(Le._instance===void 0){let t=new Bt.TSConvict(Le);Le._instance=t.load(Le.configFiles())}return Le._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};_r([Bt.Property({doc:"AWS Account ID for app Lambda function",default:"",env:"AWS_ACCOUNT_ID"})],Le.prototype,"awsAccountID",2),_r([Bt.Property({doc:"AWS Region for app Lambda function",default:"us-east-1",env:"AWS_REGION"})],Le.prototype,"awsRegion",2),_r([Bt.Property({doc:"AWS Region where the origin API Gateway is located, used for signing requests",default:"us-east-2",env:"ORIGIN_REGION"})],Le.prototype,"originRegion",2),_r([Bt.Property({doc:`Signing mode
79
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function IRe(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=lu(e,i),n=At[r],!n&&mu(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||vRe(r);return t}function RRe(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(Hn(e,t,a,!1,!1)||typeof a>"u"&&Hn(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function YH(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(Hn(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&Hn(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=qx(e,t)),e.dump&&du===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function PRe(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,l,u;for(o=0,a=s.length;o<a;o+=1)u="",n!==""&&(u+=", "),e.condenseFlow&&(u+='"'),c=s[o],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),Hn(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Hn(e,t,l,!1,!1)&&(u+=e.dump,n+=u));e.tag=i,e.dump="{"+n+"}"}function ORe(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,l,u,p,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Bt("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)m="",(!n||i!=="")&&(m+=qx(e,t)),l=o[a],u=r[l],e.replacer&&(u=e.replacer.call(r,l,u)),Hn(e,t+1,l,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&du===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,p&&(m+=qx(e,t)),Hn(e,t+1,u,!0,p)&&(e.dump&&du===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,i+=m));e.tag=s,e.dump=i||"{}"}function JH(e,t,r){var n,i,s,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,dK.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(fK.call(a.represent,c))n=a.represent[c](t,c);else throw new Bt("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function Hn(e,t,r,n,i,s,o){e.tag=null,e.dump=r,JH(e,r,!1)||JH(e,r,!0);var a=dK.call(e.dump),c=n,l;n&&(n=e.flowLevel<0||e.flowLevel>t);var u=a==="[object Object]"||a==="[object Array]",p,m;if(u&&(p=e.duplicates.indexOf(r),m=p!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(i=!1),m&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(u&&m&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(ORe(e,t,e.dump,i),m&&(e.dump="&ref_"+p+e.dump)):(PRe(e,t,e.dump),m&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?YH(e,t-1,e.dump,i):YH(e,t,e.dump,i),m&&(e.dump="&ref_"+p+e.dump)):(RRe(e,t,e.dump),m&&(e.dump="&ref_"+p+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&CRe(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Bt("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",e.dump=l+" "+e.dump)}return!0}function NRe(e,t){var r=[],n=[],i,s;for(Mx(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Mx(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Mx(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Mx(e[n[i]],t,r)}function DRe(e,t){t=t||{};var r=new wRe(t);r.noRefs||NRe(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Hn(r,0,n,!0,!0)?r.dump+`
80
+ `:""}var qRe=DRe,LRe={dump:qRe};function Ux(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var EK=uK.load,BGe=uK.loadAll,GGe=LRe.dump;var $Ge=Ux("safeLoad","load"),VGe=Ux("safeLoadAll","loadAll"),HGe=Ux("safeDump","dump");var Zt=rr(D3());var xS=rr(lx()),CS=class{static async getExistingFiles(t){let r=[];for(let n of t)await(0,xS.pathExists)(n)&&r.push(n);return r}static getExistingFilesSync(t){let r=[];for(let n of t)(0,xS.pathExistsSync)(n)&&r.push(n);return r}};var je=class{static configFiles(){let t=["./config.yaml","./config.yml","./configs/config.yaml","./configs/config.yml",`./configs/config-${je.envLevel}.yaml`,`./configs/config-${je.envLevel}.yml`,"./configs/config.json",`./configs/config-${je.envLevel}.json`];return CS.getExistingFilesSync(t)}static get instance(){if(je._instance===void 0){let t=new Zt.TSConvict(je);je._instance=t.load(je.configFiles())}return je._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};xr([Zt.Property({doc:"AWS Account ID for app Lambda function",default:"",env:"AWS_ACCOUNT_ID"})],je.prototype,"awsAccountID",2),xr([Zt.Property({doc:"AWS Region for app Lambda function",default:"us-east-1",env:"AWS_REGION"})],je.prototype,"awsRegion",2),xr([Zt.Property({doc:"AWS Region where the origin API Gateway is located, used for signing requests",default:"us-east-2",env:"ORIGIN_REGION"})],je.prototype,"originRegion",2),xr([Zt.Property({doc:`Signing mode
69
81
  - 'sign' - Sign API Gateway origin requests with SigV4 in headers
70
82
  - 'presign' - Sign API Gateway origin requsets with SigV4 in query params
71
- - undefined - Do not sign origin requests`,default:"",env:"SIGNING_MODE"})],Le.prototype,"signingMode",2),_r([Bt.Property({doc:"Add X-Forwarded-Host header with value of Host header on the Edge",default:!0,env:"ADD_X_FORWARDED_HOST_HEADER"})],Le.prototype,"addXForwardedHostHeader",2),_r([Bt.Property({doc:`Set the Host header to the Origin host name
83
+ - undefined - Do not sign origin requests`,default:"",env:"SIGNING_MODE"})],je.prototype,"signingMode",2),xr([Zt.Property({doc:"Add X-Forwarded-Host header with value of Host header on the Edge",default:!0,env:"ADD_X_FORWARDED_HOST_HEADER"})],je.prototype,"addXForwardedHostHeader",2),xr([Zt.Property({doc:`Set the Host header to the Origin host name
72
84
  This is useful when the OriginRequestPolicy is set to forward all headers
73
85
  API Gateway and Lambda Function URLs will both reject the request if the Host header is set
74
- to the Edge host name.`,default:!0,env:"REPLACE_HOST_HEADER"})],Le.prototype,"replaceHostHeader",2),_r([Bt.Property({doc:"Allow 2nd generation routing by forwarding the request to the Lambda Function URL of the target version.",env:"TABLE_NAME",default:""})],Le.prototype,"tableName",2),_r([Bt.Property({doc:"Path prefix for this deployment",default:"",env:"ROOT_PATH_PREFIX"})],Le.prototype,"rootPathPrefix",2),Le=_r([Bt.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:Ek},formats:{url:z_.url,ipaddress:z_.ipaddress}})],Le);var qU=Vt(Sb()),mo=class{};mo.Instance=new qU.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0});var nr=mo.Instance,hr=Le.instance,Hge=(0,po.normalizePathPrefix)(Le.instance.rootPathPrefix),Wge=(0,po.loadAppFrame)({basePath:__dirname});nr.info("loaded config",{config:hr});var Yge="2023-02-01-01";nr.info("Edge-to-origin build trigger",{buildTrigger:Yge});var j_,CE=new MU.DynamoDBClient({maxAttempts:8,region:hr.originRegion});function Jge(e){j_=e.dbManager,CE=e.dynamoClient}j_=hr.tableName&&CE?new zU.DBManager({dynamoClient:CE,tableName:hr.tableName}):void 0;var Qge=new IE.SignatureV4({credentials:(0,xE.defaultProvider)(),region:hr.originRegion||"us-east-2",service:"lambda",sha256:RE.Sha256}),Xge=new IE.SignatureV4({credentials:(0,xE.defaultProvider)(),region:hr.originRegion||"us-east-2",service:"execute-api",sha256:RE.Sha256}),Zge=async(e,t)=>{var n,i,s,o,a,c,u,d,p,m,_,g,y,A,I,T,U,me;let r=e.Records[0].cf.request;try{let tt=r;if(nr.debug("got request",{event:e,context:t}),((i=(n=r.origin)==null?void 0:n.s3)==null?void 0:i.domainName)&&((c=(a=(o=(s=r.origin)==null?void 0:s.s3)==null?void 0:o.customHeaders["x-microapps-origin"])==null?void 0:a[0])==null?void 0:c.value)==="s3")return nr.info("request is for S3 origin",{request:r}),((d=(u=r.headers.host)==null?void 0:u[0])==null?void 0:d.value)&&((m=(p=r.headers.host)==null?void 0:p[0])==null?void 0:m.value)!==((g=(_=r.origin)==null?void 0:_.s3)==null?void 0:g.domainName)&&(r.headers.host=[{key:"Host",value:(A=(y=r.origin)==null?void 0:y.s3)==null?void 0:A.domainName}]),r;hr.addXForwardedHostHeader&&r.headers.host&&(r.headers["x-forwarded-host"]=[{key:"X-Forwarded-Host",value:r.headers.host[0].value}]);let ct=(T=(I=r.origin)==null?void 0:I.custom)==null?void 0:T.domainName,Gt="api-gateway";if(j_){let q=new URL(`https://localhost${r.uri}${r.querystring?`?${r.querystring}`:""}`),Y=await(0,po.GetRoute)({dbManager:j_,rawPath:e.Records[0].cf.request.uri,queryStringParameters:q.searchParams,normalizedPathPrefix:Hge});if(nr.info("got route info",{route:Y}),Y.startupType==="iframe"&&Y.iFrameAppVersionPath){let ae=Wge.replace("{{iframeSrc}}",Y.iFrameAppVersionPath);return nr.info("returning app frame",{frameHTML:ae}),{status:"200",headers:{"content-type":[{key:"Content-Type",value:"text/html; charset=UTF-8"}],"cache-control":[{key:"Cache-Control",value:"private"}]},body:ae,bodyEncoding:"text"}}if(Y.redirectLocation)return{status:`${Y.statusCode}`,headers:{location:[{key:"Location",value:Y.redirectLocation}]}};if(Y.statusCode&&Y.statusCode!==200)return{status:`${Y.statusCode}`,statusDescription:Y.errorMessage};Y.url&&(Y.type==="url"||Y.type==="lambda-url")&&(nr.info("rewriting to url",{url:Y.url}),Gt=Y.type,ct=new URL(Y.url).hostname)}if(!ct)return nr.error("No origin found",{request:r}),{status:"404",statusDescription:"Origin Domain Missing"};(hr.tableName||hr.replaceHostHeader&&ct||Gt==="lambda-url"||Gt==="url")&&(r.headers.host=[{key:"Host",value:ct}]),(me=(U=r.origin)==null?void 0:U.custom)!=null&&me.domainName?(r.origin={...r.origin},r.origin.custom.domainName=ct):r.origin={custom:{domainName:ct,keepaliveTimeout:5,port:443,protocol:"https",readTimeout:30,sslProtocols:["TLSv1.2"],customHeaders:{},path:""}},r.querystring=(r.querystring??"").replace(/&?appver=[^&]*/,"");let qt=ct.includes(".lambda-url.")?Qge:Xge;return hr.signingMode==="sign"?(nr.info("signing request"),tt=await Aj(r,t,qt)):hr.signingMode==="presign"?(nr.error("presign not yet implemented"),tt=await Tj(r,t,qt)):nr.info("not signing request"),tt}catch(tt){return nr.error("caught exception at top level",{error:tt}),{status:"500",statusDescription:"Failed Modifying Origin Request"}}};0&&(module.exports={handler,overrideDBManager});
86
+ to the Edge host name.`,default:!0,env:"REPLACE_HOST_HEADER"})],je.prototype,"replaceHostHeader",2),xr([Zt.Property({doc:"Allow 2nd generation routing by forwarding the request to the Lambda Function URL of the target version.",env:"TABLE_NAME",default:""})],je.prototype,"tableName",2),xr([Zt.Property({doc:"Path prefix for this deployment",default:"",env:"ROOT_PATH_PREFIX"})],je.prototype,"rootPathPrefix",2),je=xr([Zt.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:EK},formats:{url:IS.url,ipaddress:IS.ipaddress}})],je);var q3=rr(fx()),ua=class{};ua.Instance=new q3.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0});var _r=ua.Instance,Cr=je.instance,POe=(0,da.normalizePathPrefix)(je.instance.rootPathPrefix),OOe=(0,da.loadAppFrame)({basePath:__dirname});_r.info("loaded config",{config:Cr});var NOe="2023-02-01-01";_r.info("Edge-to-origin build trigger",{buildTrigger:NOe});var RS,gI=new L3.DynamoDBClient({maxAttempts:8,region:Cr.originRegion});function DOe(e){RS=e.dbManager,gI=e.dynamoClient}RS=Cr.tableName&&gI?new M3.DBManager({dynamoClient:gI,tableName:Cr.tableName}):void 0;var qOe=new SI.SignatureV4({credentials:(0,vI.defaultProvider)(),region:Cr.originRegion||"us-east-2",service:"lambda",sha256:wI.Sha256}),LOe=new SI.SignatureV4({credentials:(0,vI.defaultProvider)(),region:Cr.originRegion||"us-east-2",service:"execute-api",sha256:wI.Sha256}),MOe=async(e,t)=>{var n,i,s,o,a,c,l,u,p,m,h,g,y,w,C,T,B,_e;let r=e.Records[0].cf.request;try{let ot=r;if(_r.debug("got request",{event:e,context:t}),((i=(n=r.origin)==null?void 0:n.s3)==null?void 0:i.domainName)&&((c=(a=(o=(s=r.origin)==null?void 0:s.s3)==null?void 0:o.customHeaders["x-microapps-origin"])==null?void 0:a[0])==null?void 0:c.value)==="s3")return _r.info("request is for S3 origin",{request:r}),((u=(l=r.headers.host)==null?void 0:l[0])==null?void 0:u.value)&&((m=(p=r.headers.host)==null?void 0:p[0])==null?void 0:m.value)!==((g=(h=r.origin)==null?void 0:h.s3)==null?void 0:g.domainName)&&(r.headers.host=[{key:"Host",value:(w=(y=r.origin)==null?void 0:y.s3)==null?void 0:w.domainName}]),r;Cr.addXForwardedHostHeader&&r.headers.host&&(r.headers["x-forwarded-host"]=[{key:"X-Forwarded-Host",value:r.headers.host[0].value}]);let pt=(T=(C=r.origin)==null?void 0:C.custom)==null?void 0:T.domainName,er="api-gateway";if(RS){let L=new URL(`https://localhost${r.uri}${r.querystring?`?${r.querystring}`:""}`),H=await(0,da.GetRoute)({dbManager:RS,rawPath:e.Records[0].cf.request.uri,queryStringParameters:L.searchParams,normalizedPathPrefix:POe});if(_r.info("got route info",{route:H}),H.startupType==="iframe"&&H.iFrameAppVersionPath){let ce=OOe.replace("{{iframeSrc}}",H.iFrameAppVersionPath);return _r.info("returning app frame",{frameHTML:ce}),{status:"200",headers:{"content-type":[{key:"Content-Type",value:"text/html; charset=UTF-8"}],"cache-control":[{key:"Cache-Control",value:"private"}]},body:ce,bodyEncoding:"text"}}if(H.redirectLocation)return{status:`${H.statusCode}`,headers:{location:[{key:"Location",value:H.redirectLocation}]}};if(H.statusCode&&H.statusCode!==200)return{status:`${H.statusCode}`,statusDescription:H.errorMessage};H.url&&(H.type==="url"||H.type==="lambda-url")&&(_r.info("rewriting to url",{url:H.url}),er=H.type,pt=new URL(H.url).hostname),H.appName&&(r.headers["x-microapps-appname"]=[{key:"X-MicroApps-AppName",value:H.appName}]),H.semVer&&(r.headers["x-microapps-semver"]=[{key:"X-MicroApps-SemVer",value:H.semVer}])}if(!pt)return _r.error("No origin found",{request:r}),{status:"404",statusDescription:"Origin Domain Missing"};(Cr.tableName||Cr.replaceHostHeader&&pt||er==="lambda-url"||er==="url")&&(r.headers.host=[{key:"Host",value:pt}]),(_e=(B=r.origin)==null?void 0:B.custom)!=null&&_e.domainName?(r.origin={...r.origin},r.origin.custom.domainName=pt):r.origin={custom:{domainName:pt,keepaliveTimeout:5,port:443,protocol:"https",readTimeout:30,sslProtocols:["TLSv1.2"],customHeaders:{},path:""}},r.querystring=(r.querystring??"").replace(/&?appver=[^&]*/,"");let $t=pt.includes(".lambda-url.")?qOe:LOe;return Cr.signingMode==="sign"?(_r.info("signing request"),ot=await bH(r,t,$t)):Cr.signingMode==="presign"?(_r.error("presign not yet implemented"),ot=await AH(r,t,$t)):_r.info("not signing request"),ot}catch(ot){return _r.error("caught exception at top level",{error:ot}),{status:"500",statusDescription:"Failed Modifying Origin Request"}}};0&&(module.exports={handler,overrideDBManager});
75
87
  /*! *****************************************************************************
76
88
  Copyright (C) Microsoft. All rights reserved.
77
89
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use