@pwrdrvr/microapps-cdk 0.4.0-alpha.2 → 0.4.0-alpha.4
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.
- package/.jsii +113 -103
- package/API.md +39 -40
- package/README.md +59 -94
- package/changelog.md +1 -1
- package/lib/MicroApps.d.ts +0 -1
- package/lib/MicroApps.js +5 -5
- package/lib/MicroAppsAPIGwy.d.ts +0 -1
- package/lib/MicroAppsAPIGwy.js +1 -1
- package/lib/MicroAppsCF.d.ts +15 -33
- package/lib/MicroAppsCF.js +41 -51
- package/lib/MicroAppsChildDeployer.d.ts +0 -1
- package/lib/MicroAppsChildDeployer.js +1 -1
- package/lib/MicroAppsEdgeToOrigin.d.ts +0 -1
- package/lib/MicroAppsEdgeToOrigin.js +4 -6
- package/lib/MicroAppsS3.d.ts +15 -4
- package/lib/MicroAppsS3.js +18 -5
- package/lib/MicroAppsSvcs.d.ts +0 -1
- package/lib/MicroAppsSvcs.js +3 -4
- package/lib/MicroAppsTable.d.ts +0 -1
- package/lib/MicroAppsTable.js +3 -3
- package/lib/index.d.ts +0 -1
- package/lib/microapps-deployer/index.js +64 -65
- package/lib/microapps-deployer/index.js.map +4 -4
- package/lib/microapps-edge-to-origin/index.js +50 -57
- package/lib/microapps-edge-to-origin/index.js.map +4 -4
- package/lib/microapps-router/index.js +54 -55
- package/lib/microapps-router/index.js.map +4 -4
- package/lib/utils/ReverseDomain.d.ts +0 -1
- package/package.json +1 -1
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
- package/lib/MicroApps.d.ts.map +0 -1
- package/lib/MicroAppsAPIGwy.d.ts.map +0 -1
- package/lib/MicroAppsCF.d.ts.map +0 -1
- package/lib/MicroAppsChildDeployer.d.ts.map +0 -1
- package/lib/MicroAppsEdgeToOrigin.d.ts.map +0 -1
- package/lib/MicroAppsS3.d.ts.map +0 -1
- package/lib/MicroAppsSvcs.d.ts.map +0 -1
- package/lib/MicroAppsTable.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/utils/ReverseDomain.d.ts.map +0 -1
|
@@ -1,72 +1,71 @@
|
|
|
1
|
-
var _$=Object.create;var ws=Object.defineProperty,h$=Object.defineProperties,XT=Object.getOwnPropertyDescriptor,y$=Object.getOwnPropertyDescriptors,g$=Object.getOwnPropertyNames,Vl=Object.getOwnPropertySymbols,v$=Object.getPrototypeOf,Ug=Object.prototype.hasOwnProperty,ZT=Object.prototype.propertyIsEnumerable;var QT=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t)=>{for(var r in t||(t={}))Ug.call(t,r)&&QT(e,r,t[r]);if(Vl)for(var r of Vl(t))ZT.call(t,r)&&QT(e,r,t[r]);return e},y=(e,t)=>h$(e,y$(t));var Gn=(e,t)=>{var r={};for(var n in e)Ug.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Vl)for(var n of Vl(e))t.indexOf(n)<0&&ZT.call(e,n)&&(r[n]=e[n]);return r};var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S$=(e,t)=>{for(var r in t)ws(e,r,{get:t[r],enumerable:!0})},eC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of g$(t))!Ug.call(e,i)&&i!==r&&ws(e,i,{get:()=>t[i],enumerable:!(n=XT(t,i))||n.enumerable});return e};var yr=(e,t,r)=>(r=e!=null?_$(v$(e)):{},eC(t||!e||!e.__esModule?ws(r,"default",{value:e,enumerable:!0}):r,e)),w$=e=>eC(ws({},"__esModule",{value:!0}),e),Es=(e,t,r,n)=>{for(var i=n>1?void 0:n?XT(t,r):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&ws(t,r,i),i};var rC=m(Bg=>{var tC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Bg.encode=function(e){if(0<=e&&e<tC.length)return tC[e];throw new TypeError("Must be between 0 and 63: "+e)};Bg.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,c=43,l=47,u=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+u:s<=e&&e<=a?e-s+f:e==c?62:e==l?63:-1}});var Vg=m($g=>{var nC=rC(),Gg=5,iC=1<<Gg,sC=iC-1,oC=iC;function E$(e){return e<0?(-e<<1)+1:(e<<1)+0}function b$(e){var t=(e&1)===1,r=e>>1;return t?-r:r}$g.encode=function(t){var r="",n,i=E$(t);do n=i&sC,i>>>=Gg,i>0&&(n|=oC),r+=nC.encode(n);while(i>0);return r};$g.decode=function(t,r,n){var i=t.length,s=0,a=0,c,l;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=nC.decode(t.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));c=!!(l&oC),l&=sC,s=s+(l<<a),a+=Gg}while(c);n.value=b$(s),n.rest=r}});var Ts=m(_t=>{function A$(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}_t.getArg=A$;var aC=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,T$=/^data:.+\,.+$/;function Vo(e){var t=e.match(aC);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}_t.urlParse=Vo;function bs(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}_t.urlGenerate=bs;function Kg(e){var t=e,r=Vo(e);if(r){if(!r.path)return e;t=r.path}for(var n=_t.isAbsolute(t),i=t.split(/\/+/),s,a=0,c=i.length-1;c>=0;c--)s=i[c],s==="."?i.splice(c,1):s===".."?a++:a>0&&(s===""?(i.splice(c+1,a),a=0):(i.splice(c,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,bs(r)):t}_t.normalize=Kg;function cC(e,t){e===""&&(e="."),t===""&&(t=".");var r=Vo(t),n=Vo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),bs(r);if(r||t.match(T$))return t;if(n&&!n.host&&!n.path)return n.host=t,bs(n);var i=t.charAt(0)==="/"?t:Kg(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,bs(n)):i}_t.join=cC;_t.isAbsolute=function(e){return e.charAt(0)==="/"||aC.test(e)};function C$(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)}_t.relative=C$;var lC=function(){var e=Object.create(null);return!("__proto__"in e)}();function dC(e){return e}function x$(e){return uC(e)?"$"+e:e}_t.toSetString=lC?dC:x$;function I$(e){return uC(e)?e.slice(1):e}_t.fromSetString=lC?dC:I$;function uC(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 R$(e,t,r){var n=As(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:As(e.name,t.name)}_t.compareByOriginalPositions=R$;function N$(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=As(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:As(e.name,t.name)}_t.compareByGeneratedPositionsDeflated=N$;function As(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function P$(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=As(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:As(e.name,t.name)}_t.compareByGeneratedPositionsInflated=P$;function D$(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}_t.parseSourceMapInput=D$;function O$(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Vo(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=cC(bs(n),t)}return Kg(t)}_t.computeSourceURL=O$});var Jg=m(fC=>{var Hg=Ts(),Wg=Object.prototype.hasOwnProperty,Ti=typeof Map<"u";function ln(){this._array=[],this._set=Ti?new Map:Object.create(null)}ln.fromArray=function(t,r){for(var n=new ln,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n};ln.prototype.size=function(){return Ti?this._set.size:Object.getOwnPropertyNames(this._set).length};ln.prototype.add=function(t,r){var n=Ti?t:Hg.toSetString(t),i=Ti?this.has(t):Wg.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Ti?this._set.set(t,s):this._set[n]=s)};ln.prototype.has=function(t){if(Ti)return this._set.has(t);var r=Hg.toSetString(t);return Wg.call(this._set,r)};ln.prototype.indexOf=function(t){if(Ti){var r=this._set.get(t);if(r>=0)return r}else{var n=Hg.toSetString(t);if(Wg.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};ln.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};ln.prototype.toArray=function(){return this._array.slice()};fC.ArraySet=ln});var _C=m(pC=>{var mC=Ts();function L$(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||mC.compareByGeneratedPositionsInflated(e,t)<=0}function Kl(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Kl.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Kl.prototype.add=function(t){L$(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Kl.prototype.toArray=function(){return this._sorted||(this._array.sort(mC.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};pC.MappingList=Kl});var Yg=m(hC=>{var Ko=Vg(),Ke=Ts(),Hl=Jg().ArraySet,q$=_C().MappingList;function Yt(e){e||(e={}),this._file=Ke.getArg(e,"file",null),this._sourceRoot=Ke.getArg(e,"sourceRoot",null),this._skipValidation=Ke.getArg(e,"skipValidation",!1),this._sources=new Hl,this._names=new Hl,this._mappings=new q$,this._sourcesContents=null}Yt.prototype._version=3;Yt.fromSourceMap=function(t){var r=t.sourceRoot,n=new Yt({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=Ke.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=Ke.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a)}),n};Yt.prototype.addMapping=function(t){var r=Ke.getArg(t,"generated"),n=Ke.getArg(t,"original",null),i=Ke.getArg(t,"source",null),s=Ke.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})};Yt.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Ke.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Ke.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Ke.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Yt.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=Ke.relative(s,i));var a=new Hl,c=new Hl;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var u=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=Ke.join(n,l.source)),s!=null&&(l.source=Ke.relative(s,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var f=l.source;f!=null&&!a.has(f)&&a.add(f);var h=l.name;h!=null&&!c.has(h)&&c.add(h)},this),this._sources=a,this._names=c,t.sources.forEach(function(l){var u=t.sourceContentFor(l);u!=null&&(n!=null&&(l=Ke.join(n,l)),s!=null&&(l=Ke.relative(s,l)),this.setSourceContent(l,u))},this)};Yt.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}))}};Yt.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,c="",l,u,f,h,p=this._mappings.toArray(),v=0,S=p.length;v<S;v++){if(u=p[v],l="",u.generatedLine!==r)for(t=0;u.generatedLine!==r;)l+=";",r++;else if(v>0){if(!Ke.compareByGeneratedPositionsInflated(u,p[v-1]))continue;l+=","}l+=Ko.encode(u.generatedColumn-t),t=u.generatedColumn,u.source!=null&&(h=this._sources.indexOf(u.source),l+=Ko.encode(h-a),a=h,l+=Ko.encode(u.originalLine-1-i),i=u.originalLine-1,l+=Ko.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(f=this._names.indexOf(u.name),l+=Ko.encode(f-s),s=f)),c+=l}return c};Yt.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Ke.relative(r,n));var i=Ke.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Yt.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};Yt.prototype.toString=function(){return JSON.stringify(this.toJSON())};hC.SourceMapGenerator=Yt});var yC=m(Ci=>{Ci.GREATEST_LOWER_BOUND=1;Ci.LEAST_UPPER_BOUND=2;function Qg(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,c=i(r,n[a],!0);return c===0?a:c>0?t-a>1?Qg(a,t,r,n,i,s):s==Ci.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?Qg(e,a,r,n,i,s):s==Ci.LEAST_UPPER_BOUND?a:e<0?-1:e}Ci.search=function(t,r,n,i){if(r.length===0)return-1;var s=Qg(-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 vC=m(gC=>{function Xg(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function M$(e,t){return Math.round(e+Math.random()*(t-e))}function Zg(e,t,r,n){if(r<n){var i=M$(r,n),s=r-1;Xg(e,i,n);for(var a=e[n],c=r;c<n;c++)t(e[c],a)<=0&&(s+=1,Xg(e,s,c));Xg(e,s+1,c);var l=s+1;Zg(e,t,r,l-1),Zg(e,t,l+1,n)}}gC.quickSort=function(e,t){Zg(e,t,0,e.length-1)}});var wC=m(Wl=>{var V=Ts(),ev=yC(),Cs=Jg().ArraySet,z$=Vg(),Ho=vC().quickSort;function ze(e,t){var r=e;return typeof e=="string"&&(r=V.parseSourceMapInput(e)),r.sections!=null?new or(r,t):new lt(r,t)}ze.fromSourceMap=function(e,t){return lt.fromSourceMap(e,t)};ze.prototype._version=3;ze.prototype.__generatedMappings=null;Object.defineProperty(ze.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});ze.prototype.__originalMappings=null;Object.defineProperty(ze.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});ze.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};ze.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};ze.GENERATED_ORDER=1;ze.ORIGINAL_ORDER=2;ze.GREATEST_LOWER_BOUND=1;ze.LEAST_UPPER_BOUND=2;ze.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||ze.GENERATED_ORDER,a;switch(s){case ze.GENERATED_ORDER:a=this._generatedMappings;break;case ze.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var u=l.source===null?null:this._sources.at(l.source);return u=V.computeSourceURL(c,u,this._sourceMapURL),{source:u,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(t,i)};ze.prototype.allGeneratedPositionsFor=function(t){var r=V.getArg(t,"line"),n={source:V.getArg(t,"source"),originalLine:r,originalColumn:V.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",V.compareByOriginalPositions,ev.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)i.push({line:V.getArg(a,"generatedLine",null),column:V.getArg(a,"generatedColumn",null),lastColumn:V.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)i.push({line:V.getArg(a,"generatedLine",null),column:V.getArg(a,"generatedColumn",null),lastColumn:V.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i};Wl.SourceMapConsumer=ze;function lt(e,t){var r=e;typeof e=="string"&&(r=V.parseSourceMapInput(e));var n=V.getArg(r,"version"),i=V.getArg(r,"sources"),s=V.getArg(r,"names",[]),a=V.getArg(r,"sourceRoot",null),c=V.getArg(r,"sourcesContent",null),l=V.getArg(r,"mappings"),u=V.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=V.normalize(a)),i=i.map(String).map(V.normalize).map(function(f){return a&&V.isAbsolute(a)&&V.isAbsolute(f)?V.relative(a,f):f}),this._names=Cs.fromArray(s.map(String),!0),this._sources=Cs.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return V.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=u}lt.prototype=Object.create(ze.prototype);lt.prototype.consumer=ze;lt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=V.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};lt.fromSourceMap=function(t,r){var n=Object.create(lt.prototype),i=n._names=Cs.fromArray(t._names.toArray(),!0),s=n._sources=Cs.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(v){return V.computeSourceURL(n.sourceRoot,v,r)});for(var a=t._mappings.toArray().slice(),c=n.__generatedMappings=[],l=n.__originalMappings=[],u=0,f=a.length;u<f;u++){var h=a[u],p=new SC;p.generatedLine=h.generatedLine,p.generatedColumn=h.generatedColumn,h.source&&(p.source=s.indexOf(h.source),p.originalLine=h.originalLine,p.originalColumn=h.originalColumn,h.name&&(p.name=i.indexOf(h.name)),l.push(p)),c.push(p)}return Ho(n.__originalMappings,V.compareByOriginalPositions),n};lt.prototype._version=3;Object.defineProperty(lt.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function SC(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}lt.prototype._parseMappings=function(t,r){for(var n=1,i=0,s=0,a=0,c=0,l=0,u=t.length,f=0,h={},p={},v=[],S=[],g,C,P,x,k;f<u;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(g=new SC,g.generatedLine=n,x=f;x<u&&!this._charIsMappingSeparator(t,x);x++);if(C=t.slice(f,x),P=h[C],P)f+=C.length;else{for(P=[];f<x;)z$.decode(t,f,p),k=p.value,f=p.rest,P.push(k);if(P.length===2)throw new Error("Found a source, but no line and column");if(P.length===3)throw new Error("Found a source and line, but no column");h[C]=P}g.generatedColumn=i+P[0],i=g.generatedColumn,P.length>1&&(g.source=c+P[1],c+=P[1],g.originalLine=s+P[2],s=g.originalLine,g.originalLine+=1,g.originalColumn=a+P[3],a=g.originalColumn,P.length>4&&(g.name=l+P[4],l+=P[4])),S.push(g),typeof g.originalLine=="number"&&v.push(g)}Ho(S,V.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,Ho(v,V.compareByOriginalPositions),this.__originalMappings=v};lt.prototype._findMapping=function(t,r,n,i,s,a){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 ev.search(t,r,s,a)};lt.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}};lt.prototype.originalPositionFor=function(t){var r={generatedLine:V.getArg(t,"line"),generatedColumn:V.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",V.compareByGeneratedPositionsDeflated,V.getArg(t,"bias",ze.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=V.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=V.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=V.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:V.getArg(i,"originalLine",null),column:V.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};lt.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};lt.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=V.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=V.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];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.')};lt.prototype.generatedPositionFor=function(t){var r=V.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:V.getArg(t,"line"),originalColumn:V.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",V.compareByOriginalPositions,V.getArg(t,"bias",ze.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:V.getArg(s,"generatedLine",null),column:V.getArg(s,"generatedColumn",null),lastColumn:V.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Wl.BasicSourceMapConsumer=lt;function or(e,t){var r=e;typeof e=="string"&&(r=V.parseSourceMapInput(e));var n=V.getArg(r,"version"),i=V.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Cs,this._names=new Cs;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=V.getArg(a,"offset"),l=V.getArg(c,"line"),u=V.getArg(c,"column");if(l<s.line||l===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:l+1,generatedColumn:u+1},consumer:new ze(V.getArg(a,"map"),t)}})}or.prototype=Object.create(ze.prototype);or.prototype.constructor=ze;or.prototype._version=3;Object.defineProperty(or.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}});or.prototype.originalPositionFor=function(t){var r={generatedLine:V.getArg(t,"line"),generatedColumn:V.getArg(t,"column")},n=ev.search(r,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.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}};or.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};or.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.')};or.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(V.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}};or.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,a=0;a<s.length;a++){var c=s[a],l=i.consumer._sources.at(c.source);l=V.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var f={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}Ho(this.__generatedMappings,V.compareByGeneratedPositionsDeflated),Ho(this.__originalMappings,V.compareByOriginalPositions)};Wl.IndexedSourceMapConsumer=or});var bC=m(EC=>{var j$=Yg().SourceMapGenerator,Jl=Ts(),k$=/(\r?\n)/,F$=10,xs="$$$isSourceNode$$$";function Bt(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[xs]=!0,n!=null&&this.add(n)}Bt.fromStringWithSourceMap=function(t,r,n){var i=new Bt,s=t.split(k$),a=0,c=function(){var p=S(),v=S()||"";return p+v;function S(){return a<s.length?s[a++]:void 0}},l=1,u=0,f=null;return r.eachMapping(function(p){if(f!==null)if(l<p.generatedLine)h(f,c()),l++,u=0;else{var v=s[a]||"",S=v.substr(0,p.generatedColumn-u);s[a]=v.substr(p.generatedColumn-u),u=p.generatedColumn,h(f,S),f=p;return}for(;l<p.generatedLine;)i.add(c()),l++;if(u<p.generatedColumn){var v=s[a]||"";i.add(v.substr(0,p.generatedColumn)),s[a]=v.substr(p.generatedColumn),u=p.generatedColumn}f=p},this),a<s.length&&(f&&h(f,c()),i.add(s.splice(a).join(""))),r.sources.forEach(function(p){var v=r.sourceContentFor(p);v!=null&&(n!=null&&(p=Jl.join(n,p)),i.setSourceContent(p,v))}),i;function h(p,v){if(p===null||p.source===void 0)i.add(v);else{var S=n?Jl.join(n,p.source):p.source;i.add(new Bt(p.originalLine,p.originalColumn,S,v,p.name))}}};Bt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[xs]||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};Bt.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[xs]||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};Bt.prototype.walk=function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[xs]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Bt.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};Bt.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[xs]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};Bt.prototype.setSourceContent=function(t,r){this.sourceContents[Jl.toSetString(t)]=r};Bt.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][xs]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(Jl.fromSetString(i[r]),this.sourceContents[i[r]])};Bt.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};Bt.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new j$(t),i=!1,s=null,a=null,c=null,l=null;return this.walk(function(u,f){r.code+=u,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||a!==f.line||c!==f.column||l!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,a=f.line,c=f.column,l=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var h=0,p=u.length;h<p;h++)u.charCodeAt(h)===F$?(r.line++,r.column=0,h+1===p?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(u,f){n.setSourceContent(u,f)}),{code:r.code,map:n}};EC.SourceNode=Bt});var AC=m(Yl=>{Yl.SourceMapGenerator=Yg().SourceMapGenerator;Yl.SourceMapConsumer=wC().SourceMapConsumer;Yl.SourceNode=bC().SourceNode});var CC=m((YTe,TC)=>{var U$=Object.prototype.toString,tv=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function B$(e){return U$.call(e).slice(8,-1)==="ArrayBuffer"}function G$(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 tv?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function $$(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return tv?Buffer.from(e,t):new Buffer(e,t)}function V$(e,t,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return B$(e)?G$(e,t,r):typeof e=="string"?$$(e,t):tv?Buffer.from(e):new Buffer(e)}TC.exports=V$});var LC=m((Ii,sv)=>{var K$=AC().SourceMapConsumer,rv=require("path"),gr;try{gr=require("fs"),(!gr.existsSync||!gr.readFileSync)&&(gr=null)}catch{}var H$=CC();function xC(e,t){return e.require(t)}var IC=!1,RC=!1,nv=!1,Wo="auto",xi={},Jo={},W$=/^data:application\/json[^,]+base64,/,$n=[],Vn=[];function ov(){return Wo==="browser"?!0:Wo==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function J$(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function Y$(){return typeof process=="object"&&process!==null?process.version:""}function Q$(){if(typeof process=="object"&&process!==null)return process.stderr}function X$(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function Ql(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var av=Ql($n);$n.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(n,i){return i?"":"/"})),e in xi)return xi[e];var t="";try{if(gr)gr.existsSync(e)&&(t=gr.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 xi[e]=t});function iv(e,t){if(!e)return t;var r=rv.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",s=r.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+rv.resolve(r.slice(i.length),t).replace(/\\/g,"/")):i+rv.resolve(r.slice(i.length),t)}function Z$(e){var t;if(ov())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=av(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,a;a=i.exec(t);)s=a;return s?s[1]:null}var cv=Ql(Vn);Vn.push(function(e){var t=Z$(e);if(!t)return null;var r;if(W$.test(t)){var n=t.slice(t.indexOf(",")+1);r=H$(n,"base64").toString(),t=e}else t=iv(e,t),r=av(t);return r?{url:t,map:r}:null});function lv(e){var t=Jo[e.source];if(!t){var r=cv(e.source);r?(t=Jo[e.source]={url:r.url,map:new K$(r.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var a=t.map.sourcesContent[s];if(a){var c=iv(t.url,i);xi[c]=a}})):t=Jo[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=iv(t.url,n.source),n}return e}function PC(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=lv({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]+" ("+PC(t[2])+")":e}function eV(){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(),a=!0,c=this.isConstructor(),l=!(this.isToplevel()||c);if(l){var u=this.getTypeName();u==="[object Object]"&&(u="null");var f=this.getMethodName();s?(u&&s.indexOf(u)!=0&&(i+=u+"."),i+=s,f&&s.indexOf("."+f)!=s.length-f.length-1&&(i+=" [as "+f+"]")):i+=u+"."+(f||"<anonymous>")}else c?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,a=!1);return a&&(i+=" ("+t+")"),i}function NC(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=eV,t}function DC(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)/,a=s.test(Y$())?0:62;n===1&&i>a&&!ov()&&!e.isEval()&&(i-=a);var c=lv({source:r,line:n,column:i});t.curPosition=c,e=NC(e);var l=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?l():t.nextPosition.name||l()},e.getFileName=function(){return c.source},e.getLineNumber=function(){return c.line},e.getColumnNumber=function(){return c.column+1},e.getScriptNameOrSourceURL=function(){return c.source},e}var u=e.isEval()&&e.getEvalOrigin();return u&&(u=PC(u),e=NC(e),e.getEvalOrigin=function(){return u}),e}function tV(e,t){nv&&(xi={},Jo={});for(var r=e.name||"Error",n=e.message||"",i=r+": "+n,s={nextPosition:null,curPosition:null},a=[],c=t.length-1;c>=0;c--)a.push(`
|
|
2
|
-
at `+
|
|
3
|
-
`+
|
|
4
|
-
`+new Array(i).join(" ")+"^"}}return null}function rV(e){var t=OC(e),r=Q$();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),X$(1)}function nV(){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 rV(arguments[1])}return e.apply(this,arguments)}}var iV=$n.slice(0),sV=Vn.slice(0);Ii.wrapCallSite=DC;Ii.getErrorSource=OC;Ii.mapSourcePosition=lv;Ii.retrieveSourceMap=cv;Ii.install=function(e){if(e=e||{},e.environment&&(Wo=e.environment,["node","browser","auto"].indexOf(Wo)===-1))throw new Error("environment "+Wo+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&($n.length=0),$n.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Vn.length=0),Vn.unshift(e.retrieveSourceMap)),e.hookRequire&&!ov()){var t=xC(sv,"module"),r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(s,a){return xi[a]=s,Jo[a]=void 0,r.call(this,s,a)},t.prototype._compile.__sourceMapSupport=!0)}if(nv||(nv="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),IC||(IC=!0,Error.prepareStackTrace=tV),!RC){var n="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=xC(sv,"worker_threads");i.isMainThread===!1&&(n=!1)}catch{}n&&J$()&&(RC=!0,nV())}};Ii.resetRetrieveHandlers=function(){$n.length=0,Vn.length=0,$n=iV.slice(0),Vn=sV.slice(0),cv=Ql(Vn),av=Ql($n)}});var dv=m(()=>{LC().install()});var $=m((ZTe,ed)=>{var MC,zC,jC,kC,FC,UC,BC,GC,$C,Xl,uv,VC,KC,HC,Is,WC,JC,YC,QC,XC,ZC,ex,tx,rx,Zl;(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 ed=="object"&&typeof ed.exports=="object"?e(r(t,r(ed.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,a){return n[s]=i?i(s,a):a}}})(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])};MC=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)},zC=Object.assign||function(n){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(n[c]=i[c])}return n},jC=function(n,i){var s={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.indexOf(a)<0&&(s[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(n);c<a.length;c++)i.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(n,a[c])&&(s[a[c]]=n[a[c]]);return s},kC=function(n,i,s,a){var c=arguments.length,l=c<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,s):a,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,i,s,a);else for(var f=n.length-1;f>=0;f--)(u=n[f])&&(l=(c<3?u(l):c>3?u(i,s,l):u(i,s))||l);return c>3&&l&&Object.defineProperty(i,s,l),l},FC=function(n,i){return function(s,a){i(s,a,n)}},UC=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},BC=function(n,i,s,a){function c(l){return l instanceof s?l:new s(function(u){u(l)})}return new(s||(s=Promise))(function(l,u){function f(v){try{p(a.next(v))}catch(S){u(S)}}function h(v){try{p(a.throw(v))}catch(S){u(S)}}function p(v){v.done?l(v.value):c(v.value).then(f,h)}p((a=a.apply(n,i||[])).next())})},GC=function(n,i){var s={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,c,l,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(p){return function(v){return h([p,v])}}function h(p){if(a)throw new TypeError("Generator is already executing.");for(;s;)try{if(a=1,c&&(l=p[0]&2?c.return:p[0]?c.throw||((l=c.return)&&l.call(c),0):c.next)&&!(l=l.call(c,p[1])).done)return l;switch(c=0,l&&(p=[p[0]&2,l.value]),p[0]){case 0:case 1:l=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,c=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(l=s.trys,!(l=l.length>0&&l[l.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!l||p[1]>l[0]&&p[1]<l[3])){s.label=p[1];break}if(p[0]===6&&s.label<l[1]){s.label=l[1],l=p;break}if(l&&s.label<l[2]){s.label=l[2],s.ops.push(p);break}l[2]&&s.ops.pop(),s.trys.pop();continue}p=i.call(n,s)}catch(v){p=[6,v],c=0}finally{a=l=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},$C=function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&Zl(i,n,s)},Zl=Object.create?function(n,i,s,a){a===void 0&&(a=s);var c=Object.getOwnPropertyDescriptor(i,s);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,a,c)}:function(n,i,s,a){a===void 0&&(a=s),n[a]=i[s]},Xl=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&n[i],a=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&a>=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},uv=function(n,i){var s=typeof Symbol=="function"&&n[Symbol.iterator];if(!s)return n;var a=s.call(n),c,l=[],u;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)l.push(c.value)}catch(f){u={error:f}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(u)throw u.error}}return l},VC=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(uv(arguments[i]));return n},KC=function(){for(var n=0,i=0,s=arguments.length;i<s;i++)n+=arguments[i].length;for(var a=Array(n),c=0,i=0;i<s;i++)for(var l=arguments[i],u=0,f=l.length;u<f;u++,c++)a[c]=l[u];return a},HC=function(n,i,s){if(s||arguments.length===2)for(var a=0,c=i.length,l;a<c;a++)(l||!(a in i))&&(l||(l=Array.prototype.slice.call(i,0,a)),l[a]=i[a]);return n.concat(l||Array.prototype.slice.call(i))},Is=function(n){return this instanceof Is?(this.v=n,this):new Is(n)},WC=function(n,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=s.apply(n,i||[]),c,l=[];return c={},u("next"),u("throw"),u("return"),c[Symbol.asyncIterator]=function(){return this},c;function u(g){a[g]&&(c[g]=function(C){return new Promise(function(P,x){l.push([g,C,P,x])>1||f(g,C)})})}function f(g,C){try{h(a[g](C))}catch(P){S(l[0][3],P)}}function h(g){g.value instanceof Is?Promise.resolve(g.value.v).then(p,v):S(l[0][2],g)}function p(g){f("next",g)}function v(g){f("throw",g)}function S(g,C){g(C),l.shift(),l.length&&f(l[0][0],l[0][1])}},JC=function(n){var i,s;return i={},a("next"),a("throw",function(c){throw c}),a("return"),i[Symbol.iterator]=function(){return this},i;function a(c,l){i[c]=n[c]?function(u){return(s=!s)?{value:Is(n[c](u)),done:c==="return"}:l?l(u):u}:l}},YC=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 Xl=="function"?Xl(n):n[Symbol.iterator](),s={},a("next"),a("throw"),a("return"),s[Symbol.asyncIterator]=function(){return this},s);function a(l){s[l]=n[l]&&function(u){return new Promise(function(f,h){u=n[l](u),c(f,h,u.done,u.value)})}}function c(l,u,f,h){Promise.resolve(h).then(function(p){l({value:p,done:f})},u)}},QC=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};XC=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)&&Zl(i,n,s);return r(i,n),i},ZC=function(n){return n&&n.__esModule?n:{default:n}},ex=function(n,i,s,a){if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?a:s==="a"?a.call(n):a?a.value:i.get(n)},tx=function(n,i,s,a,c){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!c:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?c.call(n,s):c?c.value=s:i.set(n,s),s},rx=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",MC),e("__assign",zC),e("__rest",jC),e("__decorate",kC),e("__param",FC),e("__metadata",UC),e("__awaiter",BC),e("__generator",GC),e("__exportStar",$C),e("__createBinding",Zl),e("__values",Xl),e("__read",uv),e("__spread",VC),e("__spreadArrays",KC),e("__spreadArray",HC),e("__await",Is),e("__asyncGenerator",WC),e("__asyncDelegator",JC),e("__asyncValues",YC),e("__makeTemplateObject",QC),e("__importStar",XC),e("__importDefault",ZC),e("__classPrivateFieldGet",ex),e("__classPrivateFieldSet",tx),e("__classPrivateFieldIn",rx)})});var fv=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.deserializerMiddleware=void 0;var oV=(e,t)=>(r,n)=>async i=>{let{response:s}=await r(i);try{let a=await t(s,e);return{response:s,output:a}}catch(a){throw Object.defineProperty(a,"$response",{value:s}),a}};td.deserializerMiddleware=oV});var mv=m(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.serializerMiddleware=void 0;var aV=(e,t)=>(r,n)=>async i=>{let s=await t(i.input,e);return r(y(o({},i),{request:s}))};rd.serializerMiddleware=aV});var nx=m(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.getSerdePlugin=vr.serializerMiddlewareOption=vr.deserializerMiddlewareOption=void 0;var cV=fv(),lV=mv();vr.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};vr.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function dV(e,t,r){return{applyToStack:n=>{n.add((0,cV.deserializerMiddleware)(e,r),vr.deserializerMiddlewareOption),n.add((0,lV.serializerMiddleware)(e,t),vr.serializerMiddlewareOption)}}}vr.getSerdePlugin=dV});var G=m(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});var pv=$();pv.__exportStar(fv(),Yo);pv.__exportStar(nx(),Yo);pv.__exportStar(mv(),Yo)});var ox=m(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.constructStack=void 0;var uV=()=>{let e=[],t=[],r=new Set,n=f=>f.sort((h,p)=>ix[p.step]-ix[h.step]||sx[p.priority||"normal"]-sx[h.priority||"normal"]),i=f=>{let h=!1,p=v=>v.name&&v.name===f?(h=!0,r.delete(f),!1):!0;return e=e.filter(p),t=t.filter(p),h},s=f=>{let h=!1,p=v=>v.middleware===f?(h=!0,v.name&&r.delete(v.name),!1):!0;return e=e.filter(p),t=t.filter(p),h},a=f=>(e.forEach(h=>{f.add(h.middleware,o({},h))}),t.forEach(h=>{f.addRelativeTo(h.middleware,o({},h))}),f),c=f=>{let h=[];return f.before.forEach(p=>{p.before.length===0&&p.after.length===0?h.push(p):h.push(...c(p))}),h.push(f),f.after.reverse().forEach(p=>{p.before.length===0&&p.after.length===0?h.push(p):h.push(...c(p))}),h},l=()=>{let f=[],h=[],p={};return e.forEach(S=>{let g=y(o({},S),{before:[],after:[]});g.name&&(p[g.name]=g),f.push(g)}),t.forEach(S=>{let g=y(o({},S),{before:[],after:[]});g.name&&(p[g.name]=g),h.push(g)}),h.forEach(S=>{if(S.toMiddleware){let g=p[S.toMiddleware];if(g===void 0)throw new Error(`${S.toMiddleware} is not found when adding ${S.name||"anonymous"} middleware ${S.relation} ${S.toMiddleware}`);S.relation==="after"&&g.after.push(S),S.relation==="before"&&g.before.push(S)}}),n(f).map(c).reduce((S,g)=>(S.push(...g),S),[]).map(S=>S.middleware)},u={add:(f,h={})=>{let{name:p,override:v}=h,S=o({step:"initialize",priority:"normal",middleware:f},h);if(p){if(r.has(p)){if(!v)throw new Error(`Duplicate middleware name '${p}'`);let g=e.findIndex(P=>P.name===p),C=e[g];if(C.step!==S.step||C.priority!==S.priority)throw new Error(`"${p}" middleware with ${C.priority} priority in ${C.step} step cannot be overridden by same-name middleware with ${S.priority} priority in ${S.step} step.`);e.splice(g,1)}r.add(p)}e.push(S)},addRelativeTo:(f,h)=>{let{name:p,override:v}=h,S=o({middleware:f},h);if(p){if(r.has(p)){if(!v)throw new Error(`Duplicate middleware name '${p}'`);let g=t.findIndex(P=>P.name===p),C=t[g];if(C.toMiddleware!==S.toMiddleware||C.relation!==S.relation)throw new Error(`"${p}" middleware ${C.relation} "${C.toMiddleware}" middleware cannot be overridden by same-name middleware ${S.relation} "${S.toMiddleware}" middleware.`);t.splice(g,1)}r.add(p)}t.push(S)},clone:()=>a((0,Rs.constructStack)()),use:f=>{f.applyToStack(u)},remove:f=>typeof f=="string"?i(f):s(f),removeByTag:f=>{let h=!1,p=v=>{let{tags:S,name:g}=v;return S&&S.includes(f)?(g&&r.delete(g),h=!0,!1):!0};return e=e.filter(p),t=t.filter(p),h},concat:f=>{let h=a((0,Rs.constructStack)());return h.use(f),h},applyToStack:a,resolve:(f,h)=>{for(let p of l().reverse())f=p(f,h);return f}};return u};Rs.constructStack=uV;var ix={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},sx={high:3,normal:2,low:1}});var hv=m(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});var fV=$();fV.__exportStar(ox(),_v)});var ax=m(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.Client=void 0;var mV=hv(),yv=class{constructor(t){this.middlewareStack=(0,mV.constructStack)(),this.config=t}send(t,r,n){let i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,a=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)a(t).then(c=>s(null,c.output),c=>s(c)).catch(()=>{});else return a(t).then(c=>c.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};nd.Client=yv});var cx=m(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.Command=void 0;var pV=hv(),gv=class{constructor(){this.middlewareStack=(0,pV.constructStack)()}};id.Command=gv});var lx=m(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.SENSITIVE_STRING=void 0;sd.SENSITIVE_STRING="***SensitiveInformation***"});var Sv=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.strictParseByte=z.strictParseShort=z.strictParseInt32=z.strictParseInt=z.strictParseLong=z.limitedParseFloat32=z.limitedParseFloat=z.handleFloat=z.limitedParseDouble=z.strictParseFloat32=z.strictParseFloat=z.strictParseDouble=z.expectUnion=z.expectString=z.expectObject=z.expectNonNull=z.expectByte=z.expectShort=z.expectInt32=z.expectInt=z.expectLong=z.expectFloat32=z.expectNumber=z.expectBoolean=z.parseBoolean=void 0;var _V=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};z.parseBoolean=_V;var hV=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};z.expectBoolean=hV;var yV=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};z.expectNumber=yV;var gV=Math.ceil(2**127*(2-2**-23)),vV=e=>{let t=(0,z.expectNumber)(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>gV)throw new TypeError(`Expected 32-bit float, got ${e}`);return t};z.expectFloat32=vV;var SV=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}`)}};z.expectLong=SV;z.expectInt=z.expectLong;var wV=e=>vv(e,32);z.expectInt32=wV;var EV=e=>vv(e,16);z.expectShort=EV;var bV=e=>vv(e,8);z.expectByte=bV;var vv=(e,t)=>{let r=(0,z.expectLong)(e);if(r!==void 0&&AV(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},AV=(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]}},TV=(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};z.expectNonNull=TV;var CV=e=>{if(e!=null){if(typeof e=="object"&&!Array.isArray(e))return e;throw new TypeError(`Expected object, got ${typeof e}`)}};z.expectObject=CV;var xV=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};z.expectString=xV;var IV=e=>{if(e==null)return;let t=(0,z.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};z.expectUnion=IV;var RV=e=>typeof e=="string"?(0,z.expectNumber)(Ns(e)):(0,z.expectNumber)(e);z.strictParseDouble=RV;z.strictParseFloat=z.strictParseDouble;var NV=e=>typeof e=="string"?(0,z.expectFloat32)(Ns(e)):(0,z.expectFloat32)(e);z.strictParseFloat32=NV;var PV=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Ns=e=>{let t=e.match(PV);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},DV=e=>typeof e=="string"?dx(e):(0,z.expectNumber)(e);z.limitedParseDouble=DV;z.handleFloat=z.limitedParseDouble;z.limitedParseFloat=z.limitedParseDouble;var OV=e=>typeof e=="string"?dx(e):(0,z.expectFloat32)(e);z.limitedParseFloat32=OV;var dx=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}`)}},LV=e=>typeof e=="string"?(0,z.expectLong)(Ns(e)):(0,z.expectLong)(e);z.strictParseLong=LV;z.strictParseInt=z.strictParseLong;var qV=e=>typeof e=="string"?(0,z.expectInt32)(Ns(e)):(0,z.expectInt32)(e);z.strictParseInt32=qV;var MV=e=>typeof e=="string"?(0,z.expectShort)(Ns(e)):(0,z.expectShort)(e);z.strictParseShort=MV;var zV=e=>typeof e=="string"?(0,z.expectByte)(Ns(e)):(0,z.expectByte)(e);z.strictParseByte=zV});var ux=m(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.parseEpochTimestamp=Sr.parseRfc7231DateTime=Sr.parseRfc3339DateTime=Sr.dateToUtcString=void 0;var Ri=Sv(),jV=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ev=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function kV(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds(),l=i<10?`0${i}`:`${i}`,u=s<10?`0${s}`:`${s}`,f=a<10?`0${a}`:`${a}`,h=c<10?`0${c}`:`${c}`;return`${jV[n]}, ${l} ${Ev[r]} ${t} ${u}:${f}:${h} GMT`}Sr.dateToUtcString=kV;var FV=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),UV=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=FV.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,i,s,a,c,l,u]=t,f=(0,Ri.strictParseShort)(Qo(n)),h=Kn(i,"month",1,12),p=Kn(s,"day",1,31);return od(f,h,p,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})};Sr.parseRfc3339DateTime=UV;var BV=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$/),GV=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$/),$V=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})$/),VV=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=BV.exec(e);if(t){let[r,n,i,s,a,c,l,u]=t;return od((0,Ri.strictParseShort)(Qo(s)),wv(i),Kn(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(t=GV.exec(e),t){let[r,n,i,s,a,c,l,u]=t;return JV(od(HV(s),wv(i),Kn(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(t=$V.exec(e),t){let[r,n,i,s,a,c,l,u]=t;return od((0,Ri.strictParseShort)(Qo(u)),wv(n),Kn(i.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")};Sr.parseRfc7231DateTime=VV;var KV=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=(0,Ri.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))};Sr.parseEpochTimestamp=KV;var od=(e,t,r,n)=>{let i=t-1;return QV(e,i,r),new Date(Date.UTC(e,i,r,Kn(n.hours,"hour",0,23),Kn(n.minutes,"minute",0,59),Kn(n.seconds,"seconds",0,60),ZV(n.fractionalMilliseconds)))},HV=e=>{let t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+(0,Ri.strictParseShort)(Qo(e));return r<t?r+100:r},WV=50*365*24*60*60*1e3,JV=e=>e.getTime()-new Date().getTime()>WV?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,wv=e=>{let t=Ev.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},YV=[31,28,31,30,31,30,31,31,30,31,30,31],QV=(e,t,r)=>{let n=YV[t];if(t===1&&XV(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${Ev[t]} in ${e}: ${r}`)},XV=e=>e%4===0&&(e%100!==0||e%400===0),Kn=(e,t,r,n)=>{let i=(0,Ri.strictParseByte)(Qo(e));if(i<r||i>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return i},ZV=e=>e==null?0:(0,Ri.strictParseFloat32)("0."+e)*1e3,Qo=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var fx=m(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.loadConfigsForDefaultMode=void 0;var e2=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{}}};ad.loadConfigsForDefaultMode=e2});var px=m(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.emitWarningIfUnsupportedVersion=void 0;var mx=!1,t2=e=>{e&&!mx&&parseInt(e.substring(1,e.indexOf(".")))<12&&(mx=!0,process.emitWarning(`The AWS SDK for JavaScript (v3) will
|
|
1
|
+
"use strict";var $j=Object.create;var no=Object.defineProperty;var zb=Object.getOwnPropertyDescriptor;var Vj=Object.getOwnPropertyNames;var Kj=Object.getPrototypeOf,Wj=Object.prototype.hasOwnProperty;var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hj=(e,t)=>{for(var n in t)no(e,n,{get:t[n],enumerable:!0})},jb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Vj(t))!Wj.call(e,i)&&i!==n&&no(e,i,{get:()=>t[i],enumerable:!(r=zb(t,i))||r.enumerable});return e};var un=(e,t,n)=>(n=e!=null?$j(Kj(e)):{},jb(t||!e||!e.__esModule?no(n,"default",{value:e,enumerable:!0}):n,e)),Yj=e=>jb(no({},"__esModule",{value:!0}),e),ki=(e,t,n,r)=>{for(var i=r>1?void 0:r?zb(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&no(t,n,i),i};var Fb=f(f_=>{var kb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");f_.encode=function(e){if(0<=e&&e<kb.length)return kb[e];throw new TypeError("Must be between 0 and 63: "+e)};f_.decode=function(e){var t=65,n=90,r=97,i=122,s=48,o=57,a=43,c=47,u=26,d=52;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+u:s<=e&&e<=o?e-s+d:e==a?62:e==c?63:-1}});var h_=f(p_=>{var Ub=Fb(),m_=5,Bb=1<<m_,Gb=Bb-1,$b=Bb;function Jj(e){return e<0?(-e<<1)+1:(e<<1)+0}function Qj(e){var t=(e&1)===1,n=e>>1;return t?-n:n}p_.encode=function(t){var n="",r,i=Jj(t);do r=i&Gb,i>>>=m_,i>0&&(r|=$b),n+=Ub.encode(r);while(i>0);return n};p_.decode=function(t,n,r){var i=t.length,s=0,o=0,a,c;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=Ub.decode(t.charCodeAt(n++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));a=!!(c&$b),c&=Gb,s=s+(c<<o),o+=m_}while(a);r.value=Qj(s),r.rest=n}});var Bi=f(ct=>{function Xj(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}ct.getArg=Xj;var Vb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Zj=/^data:.+\,.+$/;function ro(e){var t=e.match(Vb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}ct.urlParse=ro;function Fi(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}ct.urlGenerate=Fi;function __(e){var t=e,n=ro(e);if(n){if(!n.path)return e;t=n.path}for(var r=ct.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=r?"/":"."),n?(n.path=t,Fi(n)):t}ct.normalize=__;function Kb(e,t){e===""&&(e="."),t===""&&(t=".");var n=ro(t),r=ro(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),Fi(n);if(n||t.match(Zj))return t;if(r&&!r.host&&!r.path)return r.host=t,Fi(r);var i=t.charAt(0)==="/"?t:__(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,Fi(r)):i}ct.join=Kb;ct.isAbsolute=function(e){return e.charAt(0)==="/"||Vb.test(e)};function ek(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var n=0;t.indexOf(e+"/")!==0;){var r=e.lastIndexOf("/");if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}ct.relative=ek;var Wb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Hb(e){return e}function tk(e){return Yb(e)?"$"+e:e}ct.toSetString=Wb?Hb:tk;function nk(e){return Yb(e)?e.slice(1):e}ct.fromSetString=Wb?Hb:nk;function Yb(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 n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function rk(e,t,n){var r=Ui(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:Ui(e.name,t.name)}ct.compareByOriginalPositions=rk;function ik(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=Ui(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Ui(e.name,t.name)}ct.compareByGeneratedPositionsDeflated=ik;function Ui(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function sk(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=Ui(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Ui(e.name,t.name)}ct.compareByGeneratedPositionsInflated=sk;function ok(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}ct.parseSourceMapInput=ok;function ak(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=ro(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var i=r.path.lastIndexOf("/");i>=0&&(r.path=r.path.substring(0,i+1))}t=Kb(Fi(r),t)}return __(t)}ct.computeSourceURL=ak});var v_=f(Jb=>{var y_=Bi(),g_=Object.prototype.hasOwnProperty,ei=typeof Map<"u";function $n(){this._array=[],this._set=ei?new Map:Object.create(null)}$n.fromArray=function(t,n){for(var r=new $n,i=0,s=t.length;i<s;i++)r.add(t[i],n);return r};$n.prototype.size=function(){return ei?this._set.size:Object.getOwnPropertyNames(this._set).length};$n.prototype.add=function(t,n){var r=ei?t:y_.toSetString(t),i=ei?this.has(t):g_.call(this._set,r),s=this._array.length;(!i||n)&&this._array.push(t),i||(ei?this._set.set(t,s):this._set[r]=s)};$n.prototype.has=function(t){if(ei)return this._set.has(t);var n=y_.toSetString(t);return g_.call(this._set,n)};$n.prototype.indexOf=function(t){if(ei){var n=this._set.get(t);if(n>=0)return n}else{var r=y_.toSetString(t);if(g_.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};$n.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};$n.prototype.toArray=function(){return this._array.slice()};Jb.ArraySet=$n});var Zb=f(Xb=>{var Qb=Bi();function ck(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||Qb.compareByGeneratedPositionsInflated(e,t)<=0}function Rc(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Rc.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Rc.prototype.add=function(t){ck(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Rc.prototype.toArray=function(){return this._sorted||(this._array.sort(Qb.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Xb.MappingList=Rc});var S_=f(eE=>{var io=h_(),Be=Bi(),Dc=v_().ArraySet,lk=Zb().MappingList;function Ut(e){e||(e={}),this._file=Be.getArg(e,"file",null),this._sourceRoot=Be.getArg(e,"sourceRoot",null),this._skipValidation=Be.getArg(e,"skipValidation",!1),this._sources=new Dc,this._names=new Dc,this._mappings=new lk,this._sourcesContents=null}Ut.prototype._version=3;Ut.fromSourceMap=function(t){var n=t.sourceRoot,r=new Ut({file:t.file,sourceRoot:n});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,n!=null&&(s.source=Be.relative(n,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),r.addMapping(s)}),t.sources.forEach(function(i){var s=i;n!==null&&(s=Be.relative(n,i)),r._sources.has(s)||r._sources.add(s);var o=t.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r};Ut.prototype.addMapping=function(t){var n=Be.getArg(t,"generated"),r=Be.getArg(t,"original",null),i=Be.getArg(t,"source",null),s=Be.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,r,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:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s})};Ut.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=Be.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Be.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[Be.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Ut.prototype.applySourceMap=function(t,n,r){var i=n;if(n==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=Be.relative(s,i));var o=new Dc,a=new Dc;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,r!=null&&(c.source=Be.join(r,c.source)),s!=null&&(c.source=Be.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 h=c.name;h!=null&&!a.has(h)&&a.add(h)},this),this._sources=o,this._names=a,t.sources.forEach(function(c){var u=t.sourceContentFor(c);u!=null&&(r!=null&&(c=Be.join(r,c)),s!=null&&(c=Be.relative(s,c)),this.setSourceContent(c,u))},this)};Ut.prototype._validateMapping=function(t,n,r,i){if(n&&typeof n.line!="number"&&typeof n.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&&!n&&!r&&!i)){if(t&&"line"in t&&"column"in t&&n&&"line"in n&&"column"in n&&t.line>0&&t.column>=0&&n.line>0&&n.column>=0&&r)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:r,original:n,name:i}))}};Ut.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,i=0,s=0,o=0,a="",c,u,d,h,m=this._mappings.toArray(),y=0,g=m.length;y<g;y++){if(u=m[y],c="",u.generatedLine!==n)for(t=0;u.generatedLine!==n;)c+=";",n++;else if(y>0){if(!Be.compareByGeneratedPositionsInflated(u,m[y-1]))continue;c+=","}c+=io.encode(u.generatedColumn-t),t=u.generatedColumn,u.source!=null&&(h=this._sources.indexOf(u.source),c+=io.encode(h-o),o=h,c+=io.encode(u.originalLine-1-i),i=u.originalLine-1,c+=io.encode(u.originalColumn-r),r=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),c+=io.encode(d-s),s=d)),a+=c}return a};Ut.prototype._generateSourcesContent=function(t,n){return t.map(function(r){if(!this._sourcesContents)return null;n!=null&&(r=Be.relative(n,r));var i=Be.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Ut.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};Ut.prototype.toString=function(){return JSON.stringify(this.toJSON())};eE.SourceMapGenerator=Ut});var tE=f(ti=>{ti.GREATEST_LOWER_BOUND=1;ti.LEAST_UPPER_BOUND=2;function w_(e,t,n,r,i,s){var o=Math.floor((t-e)/2)+e,a=i(n,r[o],!0);return a===0?o:a>0?t-o>1?w_(o,t,n,r,i,s):s==ti.LEAST_UPPER_BOUND?t<r.length?t:-1:o:o-e>1?w_(e,o,n,r,i,s):s==ti.LEAST_UPPER_BOUND?o:e<0?-1:e}ti.search=function(t,n,r,i){if(n.length===0)return-1;var s=w_(-1,n.length,t,n,r,i||ti.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(n[s],n[s-1],!0)===0;)--s;return s}});var rE=f(nE=>{function b_(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function uk(e,t){return Math.round(e+Math.random()*(t-e))}function E_(e,t,n,r){if(n<r){var i=uk(n,r),s=n-1;b_(e,i,r);for(var o=e[r],a=n;a<r;a++)t(e[a],o)<=0&&(s+=1,b_(e,s,a));b_(e,s+1,a);var c=s+1;E_(e,t,n,c-1),E_(e,t,c+1,r)}}nE.quickSort=function(e,t){E_(e,t,0,e.length-1)}});var sE=f(Nc=>{var F=Bi(),A_=tE(),Gi=v_().ArraySet,dk=h_(),so=rE().quickSort;function Pe(e,t){var n=e;return typeof e=="string"&&(n=F.parseSourceMapInput(e)),n.sections!=null?new Qt(n,t):new nt(n,t)}Pe.fromSourceMap=function(e,t){return nt.fromSourceMap(e,t)};Pe.prototype._version=3;Pe.prototype.__generatedMappings=null;Object.defineProperty(Pe.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Pe.prototype.__originalMappings=null;Object.defineProperty(Pe.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Pe.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};Pe.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Pe.GENERATED_ORDER=1;Pe.ORIGINAL_ORDER=2;Pe.GREATEST_LOWER_BOUND=1;Pe.LEAST_UPPER_BOUND=2;Pe.prototype.eachMapping=function(t,n,r){var i=n||null,s=r||Pe.GENERATED_ORDER,o;switch(s){case Pe.GENERATED_ORDER:o=this._generatedMappings;break;case Pe.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)};Pe.prototype.allGeneratedPositionsFor=function(t){var n=F.getArg(t,"line"),r={source:F.getArg(t,"source"),originalLine:n,originalColumn:F.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var i=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,A_.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===n&&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};Nc.SourceMapConsumer=Pe;function nt(e,t){var n=e;typeof e=="string"&&(n=F.parseSourceMapInput(e));var r=F.getArg(n,"version"),i=F.getArg(n,"sources"),s=F.getArg(n,"names",[]),o=F.getArg(n,"sourceRoot",null),a=F.getArg(n,"sourcesContent",null),c=F.getArg(n,"mappings"),u=F.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);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=Gi.fromArray(s.map(String),!0),this._sources=Gi.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(Pe.prototype);nt.prototype.consumer=Pe;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 n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==e)return n;return-1};nt.fromSourceMap=function(t,n){var r=Object.create(nt.prototype),i=r._names=Gi.fromArray(t._names.toArray(),!0),s=r._sources=Gi.fromArray(t._sources.toArray(),!0);r.sourceRoot=t._sourceRoot,r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=t._file,r._sourceMapURL=n,r._absoluteSources=r._sources.toArray().map(function(y){return F.computeSourceURL(r.sourceRoot,y,n)});for(var o=t._mappings.toArray().slice(),a=r.__generatedMappings=[],c=r.__originalMappings=[],u=0,d=o.length;u<d;u++){var h=o[u],m=new iE;m.generatedLine=h.generatedLine,m.generatedColumn=h.generatedColumn,h.source&&(m.source=s.indexOf(h.source),m.originalLine=h.originalLine,m.originalColumn=h.originalColumn,h.name&&(m.name=i.indexOf(h.name)),c.push(m)),a.push(m)}return so(r.__originalMappings,F.compareByOriginalPositions),r};nt.prototype._version=3;Object.defineProperty(nt.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function iE(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}nt.prototype._parseMappings=function(t,n){for(var r=1,i=0,s=0,o=0,a=0,c=0,u=t.length,d=0,h={},m={},y=[],g=[],_,A,R,T,G;d<u;)if(t.charAt(d)===";")r++,d++,i=0;else if(t.charAt(d)===",")d++;else{for(_=new iE,_.generatedLine=r,T=d;T<u&&!this._charIsMappingSeparator(t,T);T++);if(A=t.slice(d,T),R=h[A],R)d+=A.length;else{for(R=[];d<T;)dk.decode(t,d,m),G=m.value,d=m.rest,R.push(G);if(R.length===2)throw new Error("Found a source, but no line and column");if(R.length===3)throw new Error("Found a source and line, but no column");h[A]=R}_.generatedColumn=i+R[0],i=_.generatedColumn,R.length>1&&(_.source=a+R[1],a+=R[1],_.originalLine=s+R[2],s=_.originalLine,_.originalLine+=1,_.originalColumn=o+R[3],o=_.originalColumn,R.length>4&&(_.name=c+R[4],c+=R[4])),g.push(_),typeof _.originalLine=="number"&&y.push(_)}so(g,F.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,so(y,F.compareByOriginalPositions),this.__originalMappings=y};nt.prototype._findMapping=function(t,n,r,i,s,o){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return A_.search(t,n,s,o)};nt.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var n=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var r=this._generatedMappings[t+1];if(n.generatedLine===r.generatedLine){n.lastGeneratedColumn=r.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};nt.prototype.originalPositionFor=function(t){var n={generatedLine:F.getArg(t,"line"),generatedColumn:F.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",F.compareByGeneratedPositionsDeflated,F.getArg(t,"bias",Pe.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.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,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];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(n)return null;throw new Error('"'+i+'" is not in the SourceMap.')};nt.prototype.generatedPositionFor=function(t){var n=F.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:F.getArg(t,"line"),originalColumn:F.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,F.getArg(t,"bias",Pe.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.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}};Nc.BasicSourceMapConsumer=nt;function Qt(e,t){var n=e;typeof e=="string"&&(n=F.parseSourceMapInput(e));var r=F.getArg(n,"version"),i=F.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new Gi,this._names=new Gi;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 Pe(F.getArg(o,"map"),t)}})}Qt.prototype=Object.create(Pe.prototype);Qt.prototype.constructor=Pe;Qt.prototype._version=3;Object.defineProperty(Qt.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}});Qt.prototype.originalPositionFor=function(t){var n={generatedLine:F.getArg(t,"line"),generatedColumn:F.getArg(t,"column")},r=A_.search(n,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[r];return i?i.consumer.originalPositionFor({line:n.generatedLine-(i.generatedOffset.generatedLine-1),column:n.generatedColumn-(i.generatedOffset.generatedLine===n.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};Qt.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Qt.prototype.sourceContentFor=function(t,n){for(var r=0;r<this._sections.length;r++){var i=this._sections[r],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Qt.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(F.getArg(t,"source"))!==-1){var i=r.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};Qt.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],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)}so(this.__generatedMappings,F.compareByGeneratedPositionsDeflated),so(this.__originalMappings,F.compareByOriginalPositions)};Nc.IndexedSourceMapConsumer=Qt});var aE=f(oE=>{var fk=S_().SourceMapGenerator,Pc=Bi(),mk=/(\r?\n)/,pk=10,$i="$$$isSourceNode$$$";function Pt(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[$i]=!0,r!=null&&this.add(r)}Pt.fromStringWithSourceMap=function(t,n,r){var i=new Pt,s=t.split(mk),o=0,a=function(){var m=g(),y=g()||"";return m+y;function g(){return o<s.length?s[o++]:void 0}},c=1,u=0,d=null;return n.eachMapping(function(m){if(d!==null)if(c<m.generatedLine)h(d,a()),c++,u=0;else{var y=s[o]||"",g=y.substr(0,m.generatedColumn-u);s[o]=y.substr(m.generatedColumn-u),u=m.generatedColumn,h(d,g),d=m;return}for(;c<m.generatedLine;)i.add(a()),c++;if(u<m.generatedColumn){var y=s[o]||"";i.add(y.substr(0,m.generatedColumn)),s[o]=y.substr(m.generatedColumn),u=m.generatedColumn}d=m},this),o<s.length&&(d&&h(d,a()),i.add(s.splice(o).join(""))),n.sources.forEach(function(m){var y=n.sourceContentFor(m);y!=null&&(r!=null&&(m=Pc.join(r,m)),i.setSourceContent(m,y))}),i;function h(m,y){if(m===null||m.source===void 0)i.add(y);else{var g=r?Pc.join(r,m.source):m.source;i.add(new Pt(m.originalLine,m.originalColumn,g,y,m.name))}}};Pt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[$i]||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};Pt.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[$i]||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};Pt.prototype.walk=function(t){for(var n,r=0,i=this.children.length;r<i;r++)n=this.children[r],n[$i]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};Pt.prototype.join=function(t){var n,r,i=this.children.length;if(i>0){for(n=[],r=0;r<i-1;r++)n.push(this.children[r]),n.push(t);n.push(this.children[r]),this.children=n}return this};Pt.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[$i]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};Pt.prototype.setSourceContent=function(t,n){this.sourceContents[Pc.toSetString(t)]=n};Pt.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][$i]&&this.children[n].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),n=0,r=i.length;n<r;n++)t(Pc.fromSetString(i[n]),this.sourceContents[i[n]])};Pt.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};Pt.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new fk(t),i=!1,s=null,o=null,a=null,c=null;return this.walk(function(u,d){n.code+=u,d.source!==null&&d.line!==null&&d.column!==null?((s!==d.source||o!==d.line||a!==d.column||c!==d.name)&&r.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:n.line,column:n.column},name:d.name}),s=d.source,o=d.line,a=d.column,c=d.name,i=!0):i&&(r.addMapping({generated:{line:n.line,column:n.column}}),s=null,i=!1);for(var h=0,m=u.length;h<m;h++)u.charCodeAt(h)===pk?(n.line++,n.column=0,h+1===m?(s=null,i=!1):i&&r.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:n.line,column:n.column},name:d.name})):n.column++}),this.walkSourceContents(function(u,d){r.setSourceContent(u,d)}),{code:n.code,map:r}};oE.SourceNode=Pt});var cE=f(Oc=>{Oc.SourceMapGenerator=S_().SourceMapGenerator;Oc.SourceMapConsumer=sE().SourceMapConsumer;Oc.SourceNode=aE().SourceNode});var uE=f((T_e,lE)=>{var hk=Object.prototype.toString,T_=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function _k(e){return hk.call(e).slice(8,-1)==="ArrayBuffer"}function yk(e,t,n){t>>>=0;var r=e.byteLength-t;if(r<0)throw new RangeError("'offset' is out of bounds");if(n===void 0)n=r;else if(n>>>=0,n>r)throw new RangeError("'length' is out of bounds");return T_?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function gk(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return T_?Buffer.from(e,t):new Buffer(e,t)}function vk(e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return _k(e)?yk(e,t,n):typeof e=="string"?gk(e,t):T_?Buffer.from(e):new Buffer(e)}lE.exports=vk});var gE=f((ri,R_)=>{var Sk=cE().SourceMapConsumer,C_=require("path"),dn;try{dn=require("fs"),(!dn.existsSync||!dn.readFileSync)&&(dn=null)}catch{}var wk=uE();function dE(e,t){return e.require(t)}var fE=!1,mE=!1,x_=!1,oo="auto",ni={},ao={},bk=/^data:application\/json[^,]+base64,/,vr=[],Sr=[];function D_(){return oo==="browser"?!0:oo==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function Ek(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function Ak(){return typeof process=="object"&&process!==null?process.version:""}function Tk(){if(typeof process=="object"&&process!==null)return process.stderr}function Ck(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function Lc(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var N_=Lc(vr);vr.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(r,i){return i?"":"/"})),e in ni)return ni[e];var t="";try{if(dn)dn.existsSync(e)&&(t=dn.readFileSync(e,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),n.readyState===4&&n.status===200&&(t=n.responseText)}}catch{}return ni[e]=t});function I_(e,t){if(!e)return t;var n=C_.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),i=r?r[0]:"",s=n.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+C_.resolve(n.slice(i.length),t).replace(/\\/g,"/")):i+C_.resolve(n.slice(i.length),t)}function xk(e){var t;if(D_())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=n.readyState===4?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch{}t=N_(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 P_=Lc(Sr);Sr.push(function(e){var t=xk(e);if(!t)return null;var n;if(bk.test(t)){var r=t.slice(t.indexOf(",")+1);n=wk(r,"base64").toString(),t=e}else t=I_(e,t),n=N_(t);return n?{url:t,map:n}:null});function O_(e){var t=ao[e.source];if(!t){var n=P_(e.source);n?(t=ao[e.source]={url:n.url,map:new Sk(n.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var o=t.map.sourcesContent[s];if(o){var a=I_(t.url,i);ni[a]=o}})):t=ao[e.source]={url:null,map:null}}if(t&&t.map&&typeof t.map.originalPositionFor=="function"){var r=t.map.originalPositionFor(e);if(r.source!==null)return r.source=I_(t.url,r.source),r}return e}function hE(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=O_({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return t=/^eval at ([^(]+) \((.+)\)$/.exec(e),t?"eval at "+t[1]+" ("+hE(t[2])+")":e}function Ik(){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 n=this.getLineNumber();if(n!=null){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}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 pE(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]}),t.toString=Ik,t}function _E(e,t){if(t===void 0&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var r=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(Ak())?0:62;r===1&&i>o&&!D_()&&!e.isEval()&&(i-=o);var a=O_({source:n,line:r,column:i});t.curPosition=a,e=pE(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=hE(u),e=pE(e),e.getEvalOrigin=function(){return u}),e}function Rk(e,t){x_&&(ni={},ao={});for(var n=e.name||"Error",r=e.message||"",i=n+": "+r,s={nextPosition:null,curPosition:null},o=[],a=t.length-1;a>=0;a--)o.push(`
|
|
2
|
+
at `+_E(t[a],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,i+o.reverse().join("")}function yE(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],s=ni[n];if(!s&&dn&&dn.existsSync(n))try{s=dn.readFileSync(n,"utf8")}catch{s=""}if(s){var o=s.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+`
|
|
3
|
+
`+o+`
|
|
4
|
+
`+new Array(i).join(" ")+"^"}}return null}function Dk(e){var t=yE(e),n=Tk();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),Ck(1)}function Nk(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return Dk(arguments[1])}return e.apply(this,arguments)}}var Pk=vr.slice(0),Ok=Sr.slice(0);ri.wrapCallSite=_E;ri.getErrorSource=yE;ri.mapSourcePosition=O_;ri.retrieveSourceMap=P_;ri.install=function(e){if(e=e||{},e.environment&&(oo=e.environment,["node","browser","auto"].indexOf(oo)===-1))throw new Error("environment "+oo+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(vr.length=0),vr.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Sr.length=0),Sr.unshift(e.retrieveSourceMap)),e.hookRequire&&!D_()){var t=dE(R_,"module"),n=t.prototype._compile;n.__sourceMapSupport||(t.prototype._compile=function(s,o){return ni[o]=s,ao[o]=void 0,n.call(this,s,o)},t.prototype._compile.__sourceMapSupport=!0)}if(x_||(x_="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),fE||(fE=!0,Error.prepareStackTrace=Rk),!mE){var r="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=dE(R_,"worker_threads");i.isMainThread===!1&&(r=!1)}catch{}r&&Ek()&&(mE=!0,Nk())}};ri.resetRetrieveHandlers=function(){vr.length=0,Sr.length=0,vr=Pk.slice(0),Sr=Ok.slice(0),P_=Lc(Sr),N_=Lc(vr)}});var L_=f(()=>{gE().install()});var K=f((I_e,zc)=>{var SE,wE,bE,EE,AE,TE,CE,xE,IE,qc,q_,RE,DE,NE,Vi,PE,OE,LE,qE,ME,zE,jE,kE,FE,Mc;(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(r){e(n(t,n(r)))}):typeof zc=="object"&&typeof zc.exports=="object"?e(n(t,n(zc.exports))):e(n(t));function n(r,i){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(s,o){return r[s]=i?i(s,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])};SE=function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(r,i);function s(){this.constructor=r}r.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)},wE=Object.assign||function(r){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)&&(r[a]=i[a])}return r},bE=function(r,i){var s={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.indexOf(o)<0&&(s[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)i.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(s[o[a]]=r[o[a]]);return s},EE=function(r,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(r,i,s,o);else for(var d=r.length-1;d>=0;d--)(u=r[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},AE=function(r,i){return function(s,o){i(s,o,r)}},TE=function(r,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,i)},CE=function(r,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(y){try{m(o.next(y))}catch(g){u(g)}}function h(y){try{m(o.throw(y))}catch(g){u(g)}}function m(y){y.done?c(y.value):a(y.value).then(d,h)}m((o=o.apply(r,i||[])).next())})},xE=function(r,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(y){return h([m,y])}}function h(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(r,s)}catch(y){m=[6,y],a=0}finally{o=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},IE=function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&Mc(i,r,s)},Mc=Object.create?function(r,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(r,o,a)}:function(r,i,s,o){o===void 0&&(o=s),r[o]=i[s]},qc=function(r){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&r[i],o=0;if(s)return s.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},q_=function(r,i){var s=typeof Symbol=="function"&&r[Symbol.iterator];if(!s)return r;var o=s.call(r),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},RE=function(){for(var r=[],i=0;i<arguments.length;i++)r=r.concat(q_(arguments[i]));return r},DE=function(){for(var r=0,i=0,s=arguments.length;i<s;i++)r+=arguments[i].length;for(var o=Array(r),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},NE=function(r,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 r.concat(c||Array.prototype.slice.call(i))},Vi=function(r){return this instanceof Vi?(this.v=r,this):new Vi(r)},PE=function(r,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s.apply(r,i||[]),a,c=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(_){o[_]&&(a[_]=function(A){return new Promise(function(R,T){c.push([_,A,R,T])>1||d(_,A)})})}function d(_,A){try{h(o[_](A))}catch(R){g(c[0][3],R)}}function h(_){_.value instanceof Vi?Promise.resolve(_.value.v).then(m,y):g(c[0][2],_)}function m(_){d("next",_)}function y(_){d("throw",_)}function g(_,A){_(A),c.shift(),c.length&&d(c[0][0],c[0][1])}},OE=function(r){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]=r[a]?function(u){return(s=!s)?{value:Vi(r[a](u)),done:a==="return"}:c?c(u):u}:c}},LE=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],s;return i?i.call(r):(r=typeof qc=="function"?qc(r):r[Symbol.iterator](),s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s);function o(c){s[c]=r[c]&&function(u){return new Promise(function(d,h){u=r[c](u),a(d,h,u.done,u.value)})}}function a(c,u,d,h){Promise.resolve(h).then(function(m){c({value:m,done:d})},u)}},qE=function(r,i){return Object.defineProperty?Object.defineProperty(r,"raw",{value:i}):r.raw=i,r};var n=Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:!0,value:i})}:function(r,i){r.default=i};ME=function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)s!=="default"&&Object.prototype.hasOwnProperty.call(r,s)&&Mc(i,r,s);return n(i,r),i},zE=function(r){return r&&r.__esModule?r:{default:r}},jE=function(r,i,s,o){if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!o:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?o:s==="a"?o.call(r):o?o.value:i.get(r)},kE=function(r,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"?r!==i||!a:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(r,s):a?a.value=s:i.set(r,s),s},FE=function(r,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r=="function"?i===r:r.has(i)},e("__extends",SE),e("__assign",wE),e("__rest",bE),e("__decorate",EE),e("__param",AE),e("__metadata",TE),e("__awaiter",CE),e("__generator",xE),e("__exportStar",IE),e("__createBinding",Mc),e("__values",qc),e("__read",q_),e("__spread",RE),e("__spreadArrays",DE),e("__spreadArray",NE),e("__await",Vi),e("__asyncGenerator",PE),e("__asyncDelegator",OE),e("__asyncValues",LE),e("__makeTemplateObject",qE),e("__importStar",ME),e("__importDefault",zE),e("__classPrivateFieldGet",jE),e("__classPrivateFieldSet",kE),e("__classPrivateFieldIn",FE)})});var M_=f(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.deserializerMiddleware=void 0;var Lk=(e,t)=>(n,r)=>async i=>{let{response:s}=await n(i);try{let o=await t(s,e);return{response:s,output:o}}catch(o){throw Object.defineProperty(o,"$response",{value:s}),o}};jc.deserializerMiddleware=Lk});var z_=f(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.serializerMiddleware=void 0;var qk=(e,t)=>(n,r)=>async i=>{let s=await t(i.input,e);return n({...i,request:s})};kc.serializerMiddleware=qk});var UE=f(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.getSerdePlugin=fn.serializerMiddlewareOption=fn.deserializerMiddlewareOption=void 0;var Mk=M_(),zk=z_();fn.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};fn.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function jk(e,t,n){return{applyToStack:r=>{r.add((0,Mk.deserializerMiddleware)(e,n),fn.deserializerMiddlewareOption),r.add((0,zk.serializerMiddleware)(e,t),fn.serializerMiddlewareOption)}}}fn.getSerdePlugin=jk});var U=f(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var j_=K();j_.__exportStar(M_(),co);j_.__exportStar(UE(),co);j_.__exportStar(z_(),co)});var $E=f(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.constructStack=void 0;var kk=()=>{let e=[],t=[],n=new Set,r=d=>d.sort((h,m)=>BE[m.step]-BE[h.step]||GE[m.priority||"normal"]-GE[h.priority||"normal"]),i=d=>{let h=!1,m=y=>y.name&&y.name===d?(h=!0,n.delete(d),!1):!0;return e=e.filter(m),t=t.filter(m),h},s=d=>{let h=!1,m=y=>y.middleware===d?(h=!0,y.name&&n.delete(y.name),!1):!0;return e=e.filter(m),t=t.filter(m),h},o=d=>(e.forEach(h=>{d.add(h.middleware,{...h})}),t.forEach(h=>{d.addRelativeTo(h.middleware,{...h})}),d),a=d=>{let h=[];return d.before.forEach(m=>{m.before.length===0&&m.after.length===0?h.push(m):h.push(...a(m))}),h.push(d),d.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?h.push(m):h.push(...a(m))}),h},c=()=>{let d=[],h=[],m={};return e.forEach(g=>{let _={...g,before:[],after:[]};_.name&&(m[_.name]=_),d.push(_)}),t.forEach(g=>{let _={...g,before:[],after:[]};_.name&&(m[_.name]=_),h.push(_)}),h.forEach(g=>{if(g.toMiddleware){let _=m[g.toMiddleware];if(_===void 0)throw new Error(`${g.toMiddleware} is not found when adding ${g.name||"anonymous"} middleware ${g.relation} ${g.toMiddleware}`);g.relation==="after"&&_.after.push(g),g.relation==="before"&&_.before.push(g)}}),r(d).map(a).reduce((g,_)=>(g.push(..._),g),[]).map(g=>g.middleware)},u={add:(d,h={})=>{let{name:m,override:y}=h,g={step:"initialize",priority:"normal",middleware:d,...h};if(m){if(n.has(m)){if(!y)throw new Error(`Duplicate middleware name '${m}'`);let _=e.findIndex(R=>R.name===m),A=e[_];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(_,1)}n.add(m)}e.push(g)},addRelativeTo:(d,h)=>{let{name:m,override:y}=h,g={middleware:d,...h};if(m){if(n.has(m)){if(!y)throw new Error(`Duplicate middleware name '${m}'`);let _=t.findIndex(R=>R.name===m),A=t[_];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(_,1)}n.add(m)}t.push(g)},clone:()=>o((0,Ki.constructStack)()),use:d=>{d.applyToStack(u)},remove:d=>typeof d=="string"?i(d):s(d),removeByTag:d=>{let h=!1,m=y=>{let{tags:g,name:_}=y;return g&&g.includes(d)?(_&&n.delete(_),h=!0,!1):!0};return e=e.filter(m),t=t.filter(m),h},concat:d=>{let h=o((0,Ki.constructStack)());return h.use(d),h},applyToStack:o,resolve:(d,h)=>{for(let m of c().reverse())d=m(d,h);return d}};return u};Ki.constructStack=kk;var BE={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},GE={high:3,normal:2,low:1}});var F_=f(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});var Fk=K();Fk.__exportStar($E(),k_)});var VE=f(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.Client=void 0;var Uk=F_(),U_=class{constructor(t){this.middlewareStack=(0,Uk.constructStack)(),this.config=t}send(t,n,r){let i=typeof n!="function"?n:void 0,s=typeof n=="function"?n:r,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()}};Fc.Client=U_});var KE=f(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.Command=void 0;var Bk=F_(),B_=class{constructor(){this.middlewareStack=(0,Bk.constructStack)()}};Uc.Command=B_});var WE=f(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.SENSITIVE_STRING=void 0;Bc.SENSITIVE_STRING="***SensitiveInformation***"});var $_=f(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.strictParseByte=q.strictParseShort=q.strictParseInt32=q.strictParseInt=q.strictParseLong=q.limitedParseFloat32=q.limitedParseFloat=q.handleFloat=q.limitedParseDouble=q.strictParseFloat32=q.strictParseFloat=q.strictParseDouble=q.expectUnion=q.expectString=q.expectObject=q.expectNonNull=q.expectByte=q.expectShort=q.expectInt32=q.expectInt=q.expectLong=q.expectFloat32=q.expectNumber=q.expectBoolean=q.parseBoolean=void 0;var Gk=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};q.parseBoolean=Gk;var $k=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};q.expectBoolean=$k;var Vk=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};q.expectNumber=Vk;var Kk=Math.ceil(2**127*(2-2**-23)),Wk=e=>{let t=(0,q.expectNumber)(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Kk)throw new TypeError(`Expected 32-bit float, got ${e}`);return t};q.expectFloat32=Wk;var Hk=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}`)}};q.expectLong=Hk;q.expectInt=q.expectLong;var Yk=e=>G_(e,32);q.expectInt32=Yk;var Jk=e=>G_(e,16);q.expectShort=Jk;var Qk=e=>G_(e,8);q.expectByte=Qk;var G_=(e,t)=>{let n=(0,q.expectLong)(e);if(n!==void 0&&Xk(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},Xk=(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]}},Zk=(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};q.expectNonNull=Zk;var eF=e=>{if(e!=null){if(typeof e=="object"&&!Array.isArray(e))return e;throw new TypeError(`Expected object, got ${typeof e}`)}};q.expectObject=eF;var tF=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};q.expectString=tF;var nF=e=>{if(e==null)return;let t=(0,q.expectObject)(e),n=Object.entries(t).filter(([r,i])=>i!=null).map(([r,i])=>r);if(n.length===0)throw new TypeError("Unions must have exactly one non-null member");if(n.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`);return t};q.expectUnion=nF;var rF=e=>typeof e=="string"?(0,q.expectNumber)(Wi(e)):(0,q.expectNumber)(e);q.strictParseDouble=rF;q.strictParseFloat=q.strictParseDouble;var iF=e=>typeof e=="string"?(0,q.expectFloat32)(Wi(e)):(0,q.expectFloat32)(e);q.strictParseFloat32=iF;var sF=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Wi=e=>{let t=e.match(sF);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},oF=e=>typeof e=="string"?HE(e):(0,q.expectNumber)(e);q.limitedParseDouble=oF;q.handleFloat=q.limitedParseDouble;q.limitedParseFloat=q.limitedParseDouble;var aF=e=>typeof e=="string"?HE(e):(0,q.expectFloat32)(e);q.limitedParseFloat32=aF;var HE=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}`)}},cF=e=>typeof e=="string"?(0,q.expectLong)(Wi(e)):(0,q.expectLong)(e);q.strictParseLong=cF;q.strictParseInt=q.strictParseLong;var lF=e=>typeof e=="string"?(0,q.expectInt32)(Wi(e)):(0,q.expectInt32)(e);q.strictParseInt32=lF;var uF=e=>typeof e=="string"?(0,q.expectShort)(Wi(e)):(0,q.expectShort)(e);q.strictParseShort=uF;var dF=e=>typeof e=="string"?(0,q.expectByte)(Wi(e)):(0,q.expectByte)(e);q.strictParseByte=dF});var YE=f(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.parseEpochTimestamp=mn.parseRfc7231DateTime=mn.parseRfc3339DateTime=mn.dateToUtcString=void 0;var ii=$_(),fF=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],K_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function mF(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=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}`,h=a<10?`0${a}`:`${a}`;return`${fF[r]}, ${c} ${K_[n]} ${t} ${u}:${d}:${h} GMT`}mn.dateToUtcString=mF;var pF=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),hF=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=pF.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[n,r,i,s,o,a,c,u]=t,d=(0,ii.strictParseShort)(lo(r)),h=wr(i,"month",1,12),m=wr(s,"day",1,31);return Gc(d,h,m,{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u})};mn.parseRfc3339DateTime=hF;var _F=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$/),yF=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$/),gF=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})$/),vF=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=_F.exec(e);if(t){let[n,r,i,s,o,a,c,u]=t;return Gc((0,ii.strictParseShort)(lo(s)),V_(i),wr(r,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u})}if(t=yF.exec(e),t){let[n,r,i,s,o,a,c,u]=t;return EF(Gc(wF(s),V_(i),wr(r,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u}))}if(t=gF.exec(e),t){let[n,r,i,s,o,a,c,u]=t;return Gc((0,ii.strictParseShort)(lo(u)),V_(r),wr(i.trimLeft(),"day",1,31),{hours:s,minutes:o,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};mn.parseRfc7231DateTime=vF;var SF=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=(0,ii.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))};mn.parseEpochTimestamp=SF;var Gc=(e,t,n,r)=>{let i=t-1;return TF(e,i,n),new Date(Date.UTC(e,i,n,wr(r.hours,"hour",0,23),wr(r.minutes,"minute",0,59),wr(r.seconds,"seconds",0,60),xF(r.fractionalMilliseconds)))},wF=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+(0,ii.strictParseShort)(lo(e));return n<t?n+100:n},bF=50*365*24*60*60*1e3,EF=e=>e.getTime()-new Date().getTime()>bF?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,V_=e=>{let t=K_.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},AF=[31,28,31,30,31,30,31,31,30,31,30,31],TF=(e,t,n)=>{let r=AF[t];if(t===1&&CF(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${K_[t]} in ${e}: ${n}`)},CF=e=>e%4===0&&(e%100!==0||e%400===0),wr=(e,t,n,r)=>{let i=(0,ii.strictParseByte)(lo(e));if(i<n||i>r)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},xF=e=>e==null?0:(0,ii.strictParseFloat32)("0."+e)*1e3,lo=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var JE=f($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.loadConfigsForDefaultMode=void 0;var IF=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{}}};$c.loadConfigsForDefaultMode=IF});var XE=f(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.emitWarningIfUnsupportedVersion=void 0;var QE=!1,RF=e=>{e&&!QE&&parseInt(e.substring(1,e.indexOf(".")))<12&&(QE=!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"))};cd.emitWarningIfUnsupportedVersion=t2});var _x=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.decorateServiceException=Ps.ServiceException=void 0;var Xo=class extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,Xo.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}};Ps.ServiceException=Xo;var r2=(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};Ps.decorateServiceException=r2});var hx=m(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.extendedEncodeURIComponent=void 0;function n2(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}ld.extendedEncodeURIComponent=n2});var yx=m(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.getArrayIfSingleItem=void 0;var i2=e=>Array.isArray(e)?e:[e];dd.getArrayIfSingleItem=i2});var gx=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.getValueFromTextNode=void 0;var s2=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,Zo.getValueFromTextNode)(e[r]));return e};Zo.getValueFromTextNode=s2});var vx=m(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.LazyJsonString=wr.StringWrapper=void 0;var o2=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),r=new t;return Object.setPrototypeOf(r,e.prototype),r};wr.StringWrapper=o2;wr.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:wr.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(wr.StringWrapper,String);var Ni=class extends wr.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof Ni?t:t instanceof String||typeof t=="string"?new Ni(t):new Ni(JSON.stringify(t))}};wr.LazyJsonString=Ni});var Sx=m(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.serializeFloat=void 0;var a2=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};ud.serializeFloat=a2});var wx=m(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.splitEvery=void 0;function c2(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 a=0;a<n.length;a++)s===""?s=n[a]:s+=t+n[a],(a+1)%r===0&&(i.push(s),s="");return s!==""&&i.push(s),i}fd.splitEvery=c2});var D=m(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});var xt=$();xt.__exportStar(ax(),ht);xt.__exportStar(cx(),ht);xt.__exportStar(lx(),ht);xt.__exportStar(ux(),ht);xt.__exportStar(fx(),ht);xt.__exportStar(px(),ht);xt.__exportStar(_x(),ht);xt.__exportStar(hx(),ht);xt.__exportStar(yx(),ht);xt.__exportStar(gx(),ht);xt.__exportStar(vx(),ht);xt.__exportStar(Sv(),ht);xt.__exportStar(Sx(),ht);xt.__exportStar(wx(),ht)});var pd=m(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.DynamoDBServiceException=void 0;var l2=D(),ea=class extends l2.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,ea.prototype)}};md.DynamoDBServiceException=ea});var Y=m(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.ProvisionedThroughputOverride=d.CreateGlobalTableInput=d.Replica=d.CreateGlobalSecondaryIndexAction=d.TableNotFoundException=d.TableInUseException=d.LimitExceededException=d.CreateBackupOutput=d.CreateBackupInput=d.ContributorInsightsSummary=d.ContinuousBackupsUnavailableException=d.ContinuousBackupsDescription=d.PointInTimeRecoveryDescription=d.ConditionalCheckFailedException=d.BillingModeSummary=d.ItemCollectionSizeLimitExceededException=d.ResourceNotFoundException=d.ProvisionedThroughputExceededException=d.InvalidEndpointException=d.RequestLimitExceeded=d.InternalServerError=d.BatchStatementError=d.BatchStatementErrorCodeEnum=d.ConsumedCapacity=d.Capacity=d.BackupTypeFilter=d.BackupSummary=d.BackupNotFoundException=d.BackupInUseException=d.BackupDescription=d.SourceTableFeatureDetails=d.TimeToLiveDescription=d.StreamSpecification=d.SSEDescription=d.LocalSecondaryIndexInfo=d.GlobalSecondaryIndexInfo=d.Projection=d.SourceTableDetails=d.ProvisionedThroughput=d.KeySchemaElement=d.BackupDetails=d.BackupType=d.AutoScalingSettingsUpdate=d.AutoScalingSettingsDescription=d.AutoScalingPolicyUpdate=d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=d.AutoScalingPolicyDescription=d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=d.AttributeDefinition=d.ArchivalSummary=void 0;d.DescribeGlobalTableSettingsInput=d.GlobalTableNotFoundException=d.DescribeGlobalTableOutput=d.DescribeGlobalTableInput=d.ExportNotFoundException=d.DescribeExportOutput=d.ExportDescription=d.ExportStatus=d.ExportFormat=d.DescribeExportInput=d.DescribeEndpointsResponse=d.Endpoint=d.DescribeEndpointsRequest=d.DescribeContributorInsightsOutput=d.FailureException=d.DescribeContributorInsightsInput=d.DescribeContinuousBackupsOutput=d.DescribeContinuousBackupsInput=d.DescribeBackupOutput=d.DescribeBackupInput=d.DeleteTableOutput=d.DeleteTableInput=d.DeleteReplicationGroupMemberAction=d.DeleteReplicaAction=d.TransactionConflictException=d.DeleteGlobalSecondaryIndexAction=d.DeleteBackupOutput=d.DeleteBackupInput=d.ResourceInUseException=d.CreateTableOutput=d.TableDescription=d.RestoreSummary=d.LocalSecondaryIndexDescription=d.GlobalSecondaryIndexDescription=d.ProvisionedThroughputDescription=d.CreateTableInput=d.Tag=d.SSESpecification=d.LocalSecondaryIndex=d.GlobalSecondaryIndex=d.CreateReplicationGroupMemberAction=d.ReplicaGlobalSecondaryIndex=d.CreateReplicaAction=d.GlobalTableAlreadyExistsException=d.CreateGlobalTableOutput=d.GlobalTableDescription=d.ReplicaDescription=d.TableClassSummary=d.TableClass=d.ReplicaGlobalSecondaryIndexDescription=void 0;d.PointInTimeRecoverySpecification=d.UntagResourceInput=d.TagResourceInput=d.RestoreTableToPointInTimeOutput=d.RestoreTableToPointInTimeInput=d.InvalidRestoreTimeException=d.TableAlreadyExistsException=d.RestoreTableFromBackupOutput=d.RestoreTableFromBackupInput=d.ListTagsOfResourceOutput=d.ListTagsOfResourceInput=d.ListTablesOutput=d.ListTablesInput=d.ListGlobalTablesOutput=d.GlobalTable=d.ListGlobalTablesInput=d.ListExportsOutput=d.ExportSummary=d.ListExportsInput=d.ListContributorInsightsOutput=d.ListContributorInsightsInput=d.ListBackupsOutput=d.ListBackupsInput=d.PointInTimeRecoveryUnavailableException=d.InvalidExportTimeException=d.ExportTableToPointInTimeOutput=d.ExportTableToPointInTimeInput=d.ExportConflictException=d.TransactionInProgressException=d.IdempotentParameterMismatchException=d.DuplicateItemException=d.KinesisStreamingDestinationOutput=d.KinesisStreamingDestinationInput=d.DescribeTimeToLiveOutput=d.DescribeTimeToLiveInput=d.DescribeTableReplicaAutoScalingOutput=d.TableAutoScalingDescription=d.ReplicaAutoScalingDescription=d.ReplicaGlobalSecondaryIndexAutoScalingDescription=d.DescribeTableReplicaAutoScalingInput=d.DescribeTableOutput=d.DescribeTableInput=d.DescribeLimitsOutput=d.DescribeLimitsInput=d.DescribeKinesisStreamingDestinationOutput=d.KinesisDataStreamDestination=d.DescribeKinesisStreamingDestinationInput=d.DescribeGlobalTableSettingsOutput=d.ReplicaSettingsDescription=d.ReplicaGlobalSecondaryIndexSettingsDescription=void 0;d.ExecuteTransactionOutput=d.ExecuteTransactionInput=d.BatchExecuteStatementOutput=d.BatchExecuteStatementInput=d.TransactGetItem=d.KeysAndAttributes=d.PutRequest=d.ParameterizedStatement=d.ItemResponse=d.ItemCollectionMetrics=d.GetItemOutput=d.GetItemInput=d.Get=d.ExecuteStatementInput=d.DeleteRequest=d.Condition=d.CancellationReason=d.BatchStatementResponse=d.BatchStatementRequest=d.AttributeValueUpdate=d.AttributeValue=d.UpdateTimeToLiveOutput=d.UpdateTimeToLiveInput=d.TimeToLiveSpecification=d.UpdateTableReplicaAutoScalingOutput=d.UpdateTableReplicaAutoScalingInput=d.ReplicaAutoScalingUpdate=d.ReplicaGlobalSecondaryIndexAutoScalingUpdate=d.GlobalSecondaryIndexAutoScalingUpdate=d.UpdateTableOutput=d.UpdateTableInput=d.ReplicationGroupUpdate=d.UpdateReplicationGroupMemberAction=d.GlobalSecondaryIndexUpdate=d.UpdateGlobalSecondaryIndexAction=d.UpdateGlobalTableSettingsOutput=d.UpdateGlobalTableSettingsInput=d.ReplicaSettingsUpdate=d.ReplicaGlobalSecondaryIndexSettingsUpdate=d.GlobalTableGlobalSecondaryIndexSettingsUpdate=d.IndexNotFoundException=d.UpdateGlobalTableOutput=d.UpdateGlobalTableInput=d.ReplicaUpdate=d.ReplicaNotFoundException=d.ReplicaAlreadyExistsException=d.UpdateContributorInsightsOutput=d.UpdateContributorInsightsInput=d.UpdateContinuousBackupsOutput=d.UpdateContinuousBackupsInput=void 0;d.TransactWriteItemsInput=d.TransactWriteItem=d.UpdateItemInput=d.BatchWriteItemOutput=d.QueryInput=d.PutItemInput=d.DeleteItemInput=d.BatchWriteItemInput=d.ScanInput=d.BatchGetItemOutput=d.WriteRequest=d.UpdateItemOutput=d.ScanOutput=d.QueryOutput=d.PutItemOutput=d.ExecuteStatementOutput=d.DeleteItemOutput=d.Update=d.Put=d.Delete=d.ConditionCheck=d.TransactWriteItemsOutput=d.TransactGetItemsInput=d.ExpectedAttributeValue=d.BatchGetItemInput=d.TransactionCanceledException=d.TransactGetItemsOutput=void 0;var Te=pd(),d2;(function(e){e.filterSensitiveLog=t=>o({},t)})(d2=d.ArchivalSummary||(d.ArchivalSummary={}));var u2;(function(e){e.filterSensitiveLog=t=>o({},t)})(u2=d.AttributeDefinition||(d.AttributeDefinition={}));var f2;(function(e){e.filterSensitiveLog=t=>o({},t)})(f2=d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var m2;(function(e){e.filterSensitiveLog=t=>o({},t)})(m2=d.AutoScalingPolicyDescription||(d.AutoScalingPolicyDescription={}));var p2;(function(e){e.filterSensitiveLog=t=>o({},t)})(p2=d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var _2;(function(e){e.filterSensitiveLog=t=>o({},t)})(_2=d.AutoScalingPolicyUpdate||(d.AutoScalingPolicyUpdate={}));var h2;(function(e){e.filterSensitiveLog=t=>o({},t)})(h2=d.AutoScalingSettingsDescription||(d.AutoScalingSettingsDescription={}));var y2;(function(e){e.filterSensitiveLog=t=>o({},t)})(y2=d.AutoScalingSettingsUpdate||(d.AutoScalingSettingsUpdate={}));var g2;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(g2=d.BackupType||(d.BackupType={}));var v2;(function(e){e.filterSensitiveLog=t=>o({},t)})(v2=d.BackupDetails||(d.BackupDetails={}));var S2;(function(e){e.filterSensitiveLog=t=>o({},t)})(S2=d.KeySchemaElement||(d.KeySchemaElement={}));var w2;(function(e){e.filterSensitiveLog=t=>o({},t)})(w2=d.ProvisionedThroughput||(d.ProvisionedThroughput={}));var E2;(function(e){e.filterSensitiveLog=t=>o({},t)})(E2=d.SourceTableDetails||(d.SourceTableDetails={}));var b2;(function(e){e.filterSensitiveLog=t=>o({},t)})(b2=d.Projection||(d.Projection={}));var A2;(function(e){e.filterSensitiveLog=t=>o({},t)})(A2=d.GlobalSecondaryIndexInfo||(d.GlobalSecondaryIndexInfo={}));var T2;(function(e){e.filterSensitiveLog=t=>o({},t)})(T2=d.LocalSecondaryIndexInfo||(d.LocalSecondaryIndexInfo={}));var C2;(function(e){e.filterSensitiveLog=t=>o({},t)})(C2=d.SSEDescription||(d.SSEDescription={}));var x2;(function(e){e.filterSensitiveLog=t=>o({},t)})(x2=d.StreamSpecification||(d.StreamSpecification={}));var I2;(function(e){e.filterSensitiveLog=t=>o({},t)})(I2=d.TimeToLiveDescription||(d.TimeToLiveDescription={}));var R2;(function(e){e.filterSensitiveLog=t=>o({},t)})(R2=d.SourceTableFeatureDetails||(d.SourceTableFeatureDetails={}));var N2;(function(e){e.filterSensitiveLog=t=>o({},t)})(N2=d.BackupDescription||(d.BackupDescription={}));var ta=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"BackupInUseException",$fault:"client"},t)),this.name="BackupInUseException",this.$fault="client",Object.setPrototypeOf(this,ta.prototype)}};d.BackupInUseException=ta;var ra=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"BackupNotFoundException",$fault:"client"},t)),this.name="BackupNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ra.prototype)}};d.BackupNotFoundException=ra;var P2;(function(e){e.filterSensitiveLog=t=>o({},t)})(P2=d.BackupSummary||(d.BackupSummary={}));var D2;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(D2=d.BackupTypeFilter||(d.BackupTypeFilter={}));var O2;(function(e){e.filterSensitiveLog=t=>o({},t)})(O2=d.Capacity||(d.Capacity={}));var L2;(function(e){e.filterSensitiveLog=t=>o({},t)})(L2=d.ConsumedCapacity||(d.ConsumedCapacity={}));var q2;(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"})(q2=d.BatchStatementErrorCodeEnum||(d.BatchStatementErrorCodeEnum={}));var M2;(function(e){e.filterSensitiveLog=t=>o({},t)})(M2=d.BatchStatementError||(d.BatchStatementError={}));var na=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"InternalServerError",$fault:"server"},t)),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,na.prototype)}};d.InternalServerError=na;var ia=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"RequestLimitExceeded",$fault:"client"},t)),this.name="RequestLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,ia.prototype)}};d.RequestLimitExceeded=ia;var sa=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"InvalidEndpointException",$fault:"client"},t)),this.name="InvalidEndpointException",this.$fault="client",Object.setPrototypeOf(this,sa.prototype),this.Message=t.Message}};d.InvalidEndpointException=sa;var oa=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"ProvisionedThroughputExceededException",$fault:"client"},t)),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,oa.prototype)}};d.ProvisionedThroughputExceededException=oa;var aa=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,aa.prototype)}};d.ResourceNotFoundException=aa;var ca=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"ItemCollectionSizeLimitExceededException",$fault:"client"},t)),this.name="ItemCollectionSizeLimitExceededException",this.$fault="client",Object.setPrototypeOf(this,ca.prototype)}};d.ItemCollectionSizeLimitExceededException=ca;var z2;(function(e){e.filterSensitiveLog=t=>o({},t)})(z2=d.BillingModeSummary||(d.BillingModeSummary={}));var la=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"ConditionalCheckFailedException",$fault:"client"},t)),this.name="ConditionalCheckFailedException",this.$fault="client",Object.setPrototypeOf(this,la.prototype)}};d.ConditionalCheckFailedException=la;var j2;(function(e){e.filterSensitiveLog=t=>o({},t)})(j2=d.PointInTimeRecoveryDescription||(d.PointInTimeRecoveryDescription={}));var k2;(function(e){e.filterSensitiveLog=t=>o({},t)})(k2=d.ContinuousBackupsDescription||(d.ContinuousBackupsDescription={}));var da=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"ContinuousBackupsUnavailableException",$fault:"client"},t)),this.name="ContinuousBackupsUnavailableException",this.$fault="client",Object.setPrototypeOf(this,da.prototype)}};d.ContinuousBackupsUnavailableException=da;var F2;(function(e){e.filterSensitiveLog=t=>o({},t)})(F2=d.ContributorInsightsSummary||(d.ContributorInsightsSummary={}));var U2;(function(e){e.filterSensitiveLog=t=>o({},t)})(U2=d.CreateBackupInput||(d.CreateBackupInput={}));var B2;(function(e){e.filterSensitiveLog=t=>o({},t)})(B2=d.CreateBackupOutput||(d.CreateBackupOutput={}));var ua=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"LimitExceededException",$fault:"client"},t)),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,ua.prototype)}};d.LimitExceededException=ua;var fa=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"TableInUseException",$fault:"client"},t)),this.name="TableInUseException",this.$fault="client",Object.setPrototypeOf(this,fa.prototype)}};d.TableInUseException=fa;var ma=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"TableNotFoundException",$fault:"client"},t)),this.name="TableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ma.prototype)}};d.TableNotFoundException=ma;var G2;(function(e){e.filterSensitiveLog=t=>o({},t)})(G2=d.CreateGlobalSecondaryIndexAction||(d.CreateGlobalSecondaryIndexAction={}));var $2;(function(e){e.filterSensitiveLog=t=>o({},t)})($2=d.Replica||(d.Replica={}));var V2;(function(e){e.filterSensitiveLog=t=>o({},t)})(V2=d.CreateGlobalTableInput||(d.CreateGlobalTableInput={}));var K2;(function(e){e.filterSensitiveLog=t=>o({},t)})(K2=d.ProvisionedThroughputOverride||(d.ProvisionedThroughputOverride={}));var H2;(function(e){e.filterSensitiveLog=t=>o({},t)})(H2=d.ReplicaGlobalSecondaryIndexDescription||(d.ReplicaGlobalSecondaryIndexDescription={}));var W2;(function(e){e.STANDARD="STANDARD",e.STANDARD_INFREQUENT_ACCESS="STANDARD_INFREQUENT_ACCESS"})(W2=d.TableClass||(d.TableClass={}));var J2;(function(e){e.filterSensitiveLog=t=>o({},t)})(J2=d.TableClassSummary||(d.TableClassSummary={}));var Y2;(function(e){e.filterSensitiveLog=t=>o({},t)})(Y2=d.ReplicaDescription||(d.ReplicaDescription={}));var Q2;(function(e){e.filterSensitiveLog=t=>o({},t)})(Q2=d.GlobalTableDescription||(d.GlobalTableDescription={}));var X2;(function(e){e.filterSensitiveLog=t=>o({},t)})(X2=d.CreateGlobalTableOutput||(d.CreateGlobalTableOutput={}));var pa=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"GlobalTableAlreadyExistsException",$fault:"client"},t)),this.name="GlobalTableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,pa.prototype)}};d.GlobalTableAlreadyExistsException=pa;var Z2;(function(e){e.filterSensitiveLog=t=>o({},t)})(Z2=d.CreateReplicaAction||(d.CreateReplicaAction={}));var eK;(function(e){e.filterSensitiveLog=t=>o({},t)})(eK=d.ReplicaGlobalSecondaryIndex||(d.ReplicaGlobalSecondaryIndex={}));var tK;(function(e){e.filterSensitiveLog=t=>o({},t)})(tK=d.CreateReplicationGroupMemberAction||(d.CreateReplicationGroupMemberAction={}));var rK;(function(e){e.filterSensitiveLog=t=>o({},t)})(rK=d.GlobalSecondaryIndex||(d.GlobalSecondaryIndex={}));var nK;(function(e){e.filterSensitiveLog=t=>o({},t)})(nK=d.LocalSecondaryIndex||(d.LocalSecondaryIndex={}));var iK;(function(e){e.filterSensitiveLog=t=>o({},t)})(iK=d.SSESpecification||(d.SSESpecification={}));var sK;(function(e){e.filterSensitiveLog=t=>o({},t)})(sK=d.Tag||(d.Tag={}));var oK;(function(e){e.filterSensitiveLog=t=>o({},t)})(oK=d.CreateTableInput||(d.CreateTableInput={}));var aK;(function(e){e.filterSensitiveLog=t=>o({},t)})(aK=d.ProvisionedThroughputDescription||(d.ProvisionedThroughputDescription={}));var cK;(function(e){e.filterSensitiveLog=t=>o({},t)})(cK=d.GlobalSecondaryIndexDescription||(d.GlobalSecondaryIndexDescription={}));var lK;(function(e){e.filterSensitiveLog=t=>o({},t)})(lK=d.LocalSecondaryIndexDescription||(d.LocalSecondaryIndexDescription={}));var dK;(function(e){e.filterSensitiveLog=t=>o({},t)})(dK=d.RestoreSummary||(d.RestoreSummary={}));var uK;(function(e){e.filterSensitiveLog=t=>o({},t)})(uK=d.TableDescription||(d.TableDescription={}));var fK;(function(e){e.filterSensitiveLog=t=>o({},t)})(fK=d.CreateTableOutput||(d.CreateTableOutput={}));var _a=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"ResourceInUseException",$fault:"client"},t)),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,_a.prototype)}};d.ResourceInUseException=_a;var mK;(function(e){e.filterSensitiveLog=t=>o({},t)})(mK=d.DeleteBackupInput||(d.DeleteBackupInput={}));var pK;(function(e){e.filterSensitiveLog=t=>o({},t)})(pK=d.DeleteBackupOutput||(d.DeleteBackupOutput={}));var _K;(function(e){e.filterSensitiveLog=t=>o({},t)})(_K=d.DeleteGlobalSecondaryIndexAction||(d.DeleteGlobalSecondaryIndexAction={}));var ha=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"TransactionConflictException",$fault:"client"},t)),this.name="TransactionConflictException",this.$fault="client",Object.setPrototypeOf(this,ha.prototype)}};d.TransactionConflictException=ha;var hK;(function(e){e.filterSensitiveLog=t=>o({},t)})(hK=d.DeleteReplicaAction||(d.DeleteReplicaAction={}));var yK;(function(e){e.filterSensitiveLog=t=>o({},t)})(yK=d.DeleteReplicationGroupMemberAction||(d.DeleteReplicationGroupMemberAction={}));var gK;(function(e){e.filterSensitiveLog=t=>o({},t)})(gK=d.DeleteTableInput||(d.DeleteTableInput={}));var vK;(function(e){e.filterSensitiveLog=t=>o({},t)})(vK=d.DeleteTableOutput||(d.DeleteTableOutput={}));var SK;(function(e){e.filterSensitiveLog=t=>o({},t)})(SK=d.DescribeBackupInput||(d.DescribeBackupInput={}));var wK;(function(e){e.filterSensitiveLog=t=>o({},t)})(wK=d.DescribeBackupOutput||(d.DescribeBackupOutput={}));var EK;(function(e){e.filterSensitiveLog=t=>o({},t)})(EK=d.DescribeContinuousBackupsInput||(d.DescribeContinuousBackupsInput={}));var bK;(function(e){e.filterSensitiveLog=t=>o({},t)})(bK=d.DescribeContinuousBackupsOutput||(d.DescribeContinuousBackupsOutput={}));var AK;(function(e){e.filterSensitiveLog=t=>o({},t)})(AK=d.DescribeContributorInsightsInput||(d.DescribeContributorInsightsInput={}));var TK;(function(e){e.filterSensitiveLog=t=>o({},t)})(TK=d.FailureException||(d.FailureException={}));var CK;(function(e){e.filterSensitiveLog=t=>o({},t)})(CK=d.DescribeContributorInsightsOutput||(d.DescribeContributorInsightsOutput={}));var xK;(function(e){e.filterSensitiveLog=t=>o({},t)})(xK=d.DescribeEndpointsRequest||(d.DescribeEndpointsRequest={}));var IK;(function(e){e.filterSensitiveLog=t=>o({},t)})(IK=d.Endpoint||(d.Endpoint={}));var RK;(function(e){e.filterSensitiveLog=t=>o({},t)})(RK=d.DescribeEndpointsResponse||(d.DescribeEndpointsResponse={}));var NK;(function(e){e.filterSensitiveLog=t=>o({},t)})(NK=d.DescribeExportInput||(d.DescribeExportInput={}));var PK;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(PK=d.ExportFormat||(d.ExportFormat={}));var DK;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(DK=d.ExportStatus||(d.ExportStatus={}));var OK;(function(e){e.filterSensitiveLog=t=>o({},t)})(OK=d.ExportDescription||(d.ExportDescription={}));var LK;(function(e){e.filterSensitiveLog=t=>o({},t)})(LK=d.DescribeExportOutput||(d.DescribeExportOutput={}));var ya=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"ExportNotFoundException",$fault:"client"},t)),this.name="ExportNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ya.prototype)}};d.ExportNotFoundException=ya;var qK;(function(e){e.filterSensitiveLog=t=>o({},t)})(qK=d.DescribeGlobalTableInput||(d.DescribeGlobalTableInput={}));var MK;(function(e){e.filterSensitiveLog=t=>o({},t)})(MK=d.DescribeGlobalTableOutput||(d.DescribeGlobalTableOutput={}));var ga=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"GlobalTableNotFoundException",$fault:"client"},t)),this.name="GlobalTableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ga.prototype)}};d.GlobalTableNotFoundException=ga;var zK;(function(e){e.filterSensitiveLog=t=>o({},t)})(zK=d.DescribeGlobalTableSettingsInput||(d.DescribeGlobalTableSettingsInput={}));var jK;(function(e){e.filterSensitiveLog=t=>o({},t)})(jK=d.ReplicaGlobalSecondaryIndexSettingsDescription||(d.ReplicaGlobalSecondaryIndexSettingsDescription={}));var kK;(function(e){e.filterSensitiveLog=t=>o({},t)})(kK=d.ReplicaSettingsDescription||(d.ReplicaSettingsDescription={}));var FK;(function(e){e.filterSensitiveLog=t=>o({},t)})(FK=d.DescribeGlobalTableSettingsOutput||(d.DescribeGlobalTableSettingsOutput={}));var UK;(function(e){e.filterSensitiveLog=t=>o({},t)})(UK=d.DescribeKinesisStreamingDestinationInput||(d.DescribeKinesisStreamingDestinationInput={}));var BK;(function(e){e.filterSensitiveLog=t=>o({},t)})(BK=d.KinesisDataStreamDestination||(d.KinesisDataStreamDestination={}));var GK;(function(e){e.filterSensitiveLog=t=>o({},t)})(GK=d.DescribeKinesisStreamingDestinationOutput||(d.DescribeKinesisStreamingDestinationOutput={}));var $K;(function(e){e.filterSensitiveLog=t=>o({},t)})($K=d.DescribeLimitsInput||(d.DescribeLimitsInput={}));var VK;(function(e){e.filterSensitiveLog=t=>o({},t)})(VK=d.DescribeLimitsOutput||(d.DescribeLimitsOutput={}));var KK;(function(e){e.filterSensitiveLog=t=>o({},t)})(KK=d.DescribeTableInput||(d.DescribeTableInput={}));var HK;(function(e){e.filterSensitiveLog=t=>o({},t)})(HK=d.DescribeTableOutput||(d.DescribeTableOutput={}));var WK;(function(e){e.filterSensitiveLog=t=>o({},t)})(WK=d.DescribeTableReplicaAutoScalingInput||(d.DescribeTableReplicaAutoScalingInput={}));var JK;(function(e){e.filterSensitiveLog=t=>o({},t)})(JK=d.ReplicaGlobalSecondaryIndexAutoScalingDescription||(d.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var YK;(function(e){e.filterSensitiveLog=t=>o({},t)})(YK=d.ReplicaAutoScalingDescription||(d.ReplicaAutoScalingDescription={}));var QK;(function(e){e.filterSensitiveLog=t=>o({},t)})(QK=d.TableAutoScalingDescription||(d.TableAutoScalingDescription={}));var XK;(function(e){e.filterSensitiveLog=t=>o({},t)})(XK=d.DescribeTableReplicaAutoScalingOutput||(d.DescribeTableReplicaAutoScalingOutput={}));var ZK;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZK=d.DescribeTimeToLiveInput||(d.DescribeTimeToLiveInput={}));var eH;(function(e){e.filterSensitiveLog=t=>o({},t)})(eH=d.DescribeTimeToLiveOutput||(d.DescribeTimeToLiveOutput={}));var tH;(function(e){e.filterSensitiveLog=t=>o({},t)})(tH=d.KinesisStreamingDestinationInput||(d.KinesisStreamingDestinationInput={}));var rH;(function(e){e.filterSensitiveLog=t=>o({},t)})(rH=d.KinesisStreamingDestinationOutput||(d.KinesisStreamingDestinationOutput={}));var va=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"DuplicateItemException",$fault:"client"},t)),this.name="DuplicateItemException",this.$fault="client",Object.setPrototypeOf(this,va.prototype)}};d.DuplicateItemException=va;var Sa=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"IdempotentParameterMismatchException",$fault:"client"},t)),this.name="IdempotentParameterMismatchException",this.$fault="client",Object.setPrototypeOf(this,Sa.prototype),this.Message=t.Message}};d.IdempotentParameterMismatchException=Sa;var wa=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"TransactionInProgressException",$fault:"client"},t)),this.name="TransactionInProgressException",this.$fault="client",Object.setPrototypeOf(this,wa.prototype),this.Message=t.Message}};d.TransactionInProgressException=wa;var Ea=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"ExportConflictException",$fault:"client"},t)),this.name="ExportConflictException",this.$fault="client",Object.setPrototypeOf(this,Ea.prototype)}};d.ExportConflictException=Ea;var nH;(function(e){e.filterSensitiveLog=t=>o({},t)})(nH=d.ExportTableToPointInTimeInput||(d.ExportTableToPointInTimeInput={}));var iH;(function(e){e.filterSensitiveLog=t=>o({},t)})(iH=d.ExportTableToPointInTimeOutput||(d.ExportTableToPointInTimeOutput={}));var ba=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"InvalidExportTimeException",$fault:"client"},t)),this.name="InvalidExportTimeException",this.$fault="client",Object.setPrototypeOf(this,ba.prototype)}};d.InvalidExportTimeException=ba;var Aa=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"PointInTimeRecoveryUnavailableException",$fault:"client"},t)),this.name="PointInTimeRecoveryUnavailableException",this.$fault="client",Object.setPrototypeOf(this,Aa.prototype)}};d.PointInTimeRecoveryUnavailableException=Aa;var sH;(function(e){e.filterSensitiveLog=t=>o({},t)})(sH=d.ListBackupsInput||(d.ListBackupsInput={}));var oH;(function(e){e.filterSensitiveLog=t=>o({},t)})(oH=d.ListBackupsOutput||(d.ListBackupsOutput={}));var aH;(function(e){e.filterSensitiveLog=t=>o({},t)})(aH=d.ListContributorInsightsInput||(d.ListContributorInsightsInput={}));var cH;(function(e){e.filterSensitiveLog=t=>o({},t)})(cH=d.ListContributorInsightsOutput||(d.ListContributorInsightsOutput={}));var lH;(function(e){e.filterSensitiveLog=t=>o({},t)})(lH=d.ListExportsInput||(d.ListExportsInput={}));var dH;(function(e){e.filterSensitiveLog=t=>o({},t)})(dH=d.ExportSummary||(d.ExportSummary={}));var uH;(function(e){e.filterSensitiveLog=t=>o({},t)})(uH=d.ListExportsOutput||(d.ListExportsOutput={}));var fH;(function(e){e.filterSensitiveLog=t=>o({},t)})(fH=d.ListGlobalTablesInput||(d.ListGlobalTablesInput={}));var mH;(function(e){e.filterSensitiveLog=t=>o({},t)})(mH=d.GlobalTable||(d.GlobalTable={}));var pH;(function(e){e.filterSensitiveLog=t=>o({},t)})(pH=d.ListGlobalTablesOutput||(d.ListGlobalTablesOutput={}));var _H;(function(e){e.filterSensitiveLog=t=>o({},t)})(_H=d.ListTablesInput||(d.ListTablesInput={}));var hH;(function(e){e.filterSensitiveLog=t=>o({},t)})(hH=d.ListTablesOutput||(d.ListTablesOutput={}));var yH;(function(e){e.filterSensitiveLog=t=>o({},t)})(yH=d.ListTagsOfResourceInput||(d.ListTagsOfResourceInput={}));var gH;(function(e){e.filterSensitiveLog=t=>o({},t)})(gH=d.ListTagsOfResourceOutput||(d.ListTagsOfResourceOutput={}));var vH;(function(e){e.filterSensitiveLog=t=>o({},t)})(vH=d.RestoreTableFromBackupInput||(d.RestoreTableFromBackupInput={}));var SH;(function(e){e.filterSensitiveLog=t=>o({},t)})(SH=d.RestoreTableFromBackupOutput||(d.RestoreTableFromBackupOutput={}));var Ta=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"TableAlreadyExistsException",$fault:"client"},t)),this.name="TableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Ta.prototype)}};d.TableAlreadyExistsException=Ta;var Ca=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"InvalidRestoreTimeException",$fault:"client"},t)),this.name="InvalidRestoreTimeException",this.$fault="client",Object.setPrototypeOf(this,Ca.prototype)}};d.InvalidRestoreTimeException=Ca;var wH;(function(e){e.filterSensitiveLog=t=>o({},t)})(wH=d.RestoreTableToPointInTimeInput||(d.RestoreTableToPointInTimeInput={}));var EH;(function(e){e.filterSensitiveLog=t=>o({},t)})(EH=d.RestoreTableToPointInTimeOutput||(d.RestoreTableToPointInTimeOutput={}));var bH;(function(e){e.filterSensitiveLog=t=>o({},t)})(bH=d.TagResourceInput||(d.TagResourceInput={}));var AH;(function(e){e.filterSensitiveLog=t=>o({},t)})(AH=d.UntagResourceInput||(d.UntagResourceInput={}));var TH;(function(e){e.filterSensitiveLog=t=>o({},t)})(TH=d.PointInTimeRecoverySpecification||(d.PointInTimeRecoverySpecification={}));var CH;(function(e){e.filterSensitiveLog=t=>o({},t)})(CH=d.UpdateContinuousBackupsInput||(d.UpdateContinuousBackupsInput={}));var xH;(function(e){e.filterSensitiveLog=t=>o({},t)})(xH=d.UpdateContinuousBackupsOutput||(d.UpdateContinuousBackupsOutput={}));var IH;(function(e){e.filterSensitiveLog=t=>o({},t)})(IH=d.UpdateContributorInsightsInput||(d.UpdateContributorInsightsInput={}));var RH;(function(e){e.filterSensitiveLog=t=>o({},t)})(RH=d.UpdateContributorInsightsOutput||(d.UpdateContributorInsightsOutput={}));var xa=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"ReplicaAlreadyExistsException",$fault:"client"},t)),this.name="ReplicaAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,xa.prototype)}};d.ReplicaAlreadyExistsException=xa;var Ia=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"ReplicaNotFoundException",$fault:"client"},t)),this.name="ReplicaNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ia.prototype)}};d.ReplicaNotFoundException=Ia;var NH;(function(e){e.filterSensitiveLog=t=>o({},t)})(NH=d.ReplicaUpdate||(d.ReplicaUpdate={}));var PH;(function(e){e.filterSensitiveLog=t=>o({},t)})(PH=d.UpdateGlobalTableInput||(d.UpdateGlobalTableInput={}));var DH;(function(e){e.filterSensitiveLog=t=>o({},t)})(DH=d.UpdateGlobalTableOutput||(d.UpdateGlobalTableOutput={}));var Ra=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"IndexNotFoundException",$fault:"client"},t)),this.name="IndexNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ra.prototype)}};d.IndexNotFoundException=Ra;var OH;(function(e){e.filterSensitiveLog=t=>o({},t)})(OH=d.GlobalTableGlobalSecondaryIndexSettingsUpdate||(d.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var LH;(function(e){e.filterSensitiveLog=t=>o({},t)})(LH=d.ReplicaGlobalSecondaryIndexSettingsUpdate||(d.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var qH;(function(e){e.filterSensitiveLog=t=>o({},t)})(qH=d.ReplicaSettingsUpdate||(d.ReplicaSettingsUpdate={}));var MH;(function(e){e.filterSensitiveLog=t=>o({},t)})(MH=d.UpdateGlobalTableSettingsInput||(d.UpdateGlobalTableSettingsInput={}));var zH;(function(e){e.filterSensitiveLog=t=>o({},t)})(zH=d.UpdateGlobalTableSettingsOutput||(d.UpdateGlobalTableSettingsOutput={}));var jH;(function(e){e.filterSensitiveLog=t=>o({},t)})(jH=d.UpdateGlobalSecondaryIndexAction||(d.UpdateGlobalSecondaryIndexAction={}));var kH;(function(e){e.filterSensitiveLog=t=>o({},t)})(kH=d.GlobalSecondaryIndexUpdate||(d.GlobalSecondaryIndexUpdate={}));var FH;(function(e){e.filterSensitiveLog=t=>o({},t)})(FH=d.UpdateReplicationGroupMemberAction||(d.UpdateReplicationGroupMemberAction={}));var UH;(function(e){e.filterSensitiveLog=t=>o({},t)})(UH=d.ReplicationGroupUpdate||(d.ReplicationGroupUpdate={}));var BH;(function(e){e.filterSensitiveLog=t=>o({},t)})(BH=d.UpdateTableInput||(d.UpdateTableInput={}));var GH;(function(e){e.filterSensitiveLog=t=>o({},t)})(GH=d.UpdateTableOutput||(d.UpdateTableOutput={}));var $H;(function(e){e.filterSensitiveLog=t=>o({},t)})($H=d.GlobalSecondaryIndexAutoScalingUpdate||(d.GlobalSecondaryIndexAutoScalingUpdate={}));var VH;(function(e){e.filterSensitiveLog=t=>o({},t)})(VH=d.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(d.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var KH;(function(e){e.filterSensitiveLog=t=>o({},t)})(KH=d.ReplicaAutoScalingUpdate||(d.ReplicaAutoScalingUpdate={}));var HH;(function(e){e.filterSensitiveLog=t=>o({},t)})(HH=d.UpdateTableReplicaAutoScalingInput||(d.UpdateTableReplicaAutoScalingInput={}));var WH;(function(e){e.filterSensitiveLog=t=>o({},t)})(WH=d.UpdateTableReplicaAutoScalingOutput||(d.UpdateTableReplicaAutoScalingOutput={}));var JH;(function(e){e.filterSensitiveLog=t=>o({},t)})(JH=d.TimeToLiveSpecification||(d.TimeToLiveSpecification={}));var YH;(function(e){e.filterSensitiveLog=t=>o({},t)})(YH=d.UpdateTimeToLiveInput||(d.UpdateTimeToLiveInput={}));var QH;(function(e){e.filterSensitiveLog=t=>o({},t)})(QH=d.UpdateTimeToLiveOutput||(d.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])=>y(o({},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=d.AttributeValue||(d.AttributeValue={}));var Ex;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Value&&{Value:ae.filterSensitiveLog(t.Value)})})(Ex=d.AttributeValueUpdate||(d.AttributeValueUpdate={}));var bx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(r=>ae.filterSensitiveLog(r))})})(bx=d.BatchStatementRequest||(d.BatchStatementRequest={}));var Ax;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Ax=d.BatchStatementResponse||(d.BatchStatementResponse={}));var XH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(XH=d.CancellationReason||(d.CancellationReason={}));var _d;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(r=>ae.filterSensitiveLog(r))})})(_d=d.Condition||(d.Condition={}));var Tx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Tx=d.DeleteRequest||(d.DeleteRequest={}));var ZH;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(r=>ae.filterSensitiveLog(r))})})(ZH=d.ExecuteStatementInput||(d.ExecuteStatementInput={}));var Cx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Cx=d.Get||(d.Get={}));var e3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(e3=d.GetItemInput||(d.GetItemInput={}));var t3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(t3=d.GetItemOutput||(d.GetItemOutput={}));var Ds;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Ds=d.ItemCollectionMetrics||(d.ItemCollectionMetrics={}));var bv;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(bv=d.ItemResponse||(d.ItemResponse={}));var xx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(r=>ae.filterSensitiveLog(r))})})(xx=d.ParameterizedStatement||(d.ParameterizedStatement={}));var Ix;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Ix=d.PutRequest||(d.PutRequest={}));var Av;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Keys&&{Keys:t.Keys.map(r=>Object.entries(r).reduce((n,[i,s])=>y(o({},n),{[i]:ae.filterSensitiveLog(s)}),{}))})})(Av=d.KeysAndAttributes||(d.KeysAndAttributes={}));var Rx;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Get&&{Get:Cx.filterSensitiveLog(t.Get)})})(Rx=d.TransactGetItem||(d.TransactGetItem={}));var r3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Statements&&{Statements:t.Statements.map(r=>bx.filterSensitiveLog(r))})})(r3=d.BatchExecuteStatementInput||(d.BatchExecuteStatementInput={}));var n3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(r=>Ax.filterSensitiveLog(r))})})(n3=d.BatchExecuteStatementOutput||(d.BatchExecuteStatementOutput={}));var i3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactStatements&&{TransactStatements:t.TransactStatements.map(r=>xx.filterSensitiveLog(r))})})(i3=d.ExecuteTransactionInput||(d.ExecuteTransactionInput={}));var s3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(r=>bv.filterSensitiveLog(r))})})(s3=d.ExecuteTransactionOutput||(d.ExecuteTransactionOutput={}));var o3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(r=>bv.filterSensitiveLog(r))})})(o3=d.TransactGetItemsOutput||(d.TransactGetItemsOutput={}));var Na=class extends Te.DynamoDBServiceException{constructor(t){super(o({name:"TransactionCanceledException",$fault:"client"},t)),this.name="TransactionCanceledException",this.$fault="client",Object.setPrototypeOf(this,Na.prototype),this.Message=t.Message,this.CancellationReasons=t.CancellationReasons}};d.TransactionCanceledException=Na;var a3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((r,[n,i])=>y(o({},r),{[n]:Av.filterSensitiveLog(i)}),{})})})(a3=d.BatchGetItemInput||(d.BatchGetItemInput={}));var hd;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Value&&{Value:ae.filterSensitiveLog(t.Value)}),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(r=>ae.filterSensitiveLog(r))})})(hd=d.ExpectedAttributeValue||(d.ExpectedAttributeValue={}));var c3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(r=>Rx.filterSensitiveLog(r))})})(c3=d.TransactGetItemsInput||(d.TransactGetItemsInput={}));var l3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((r,[n,i])=>y(o({},r),{[n]:i.map(s=>Ds.filterSensitiveLog(s))}),{})})})(l3=d.TransactWriteItemsOutput||(d.TransactWriteItemsOutput={}));var Nx;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Nx=d.ConditionCheck||(d.ConditionCheck={}));var Px;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Px=d.Delete||(d.Delete={}));var Dx;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Dx=d.Put||(d.Put={}));var Ox;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(Ox=d.Update||(d.Update={}));var d3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Ds.filterSensitiveLog(t.ItemCollectionMetrics)})})(d3=d.DeleteItemOutput||(d.DeleteItemOutput={}));var u3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>y(o({},n),{[i]:ae.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(u3=d.ExecuteStatementOutput||(d.ExecuteStatementOutput={}));var f3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Ds.filterSensitiveLog(t.ItemCollectionMetrics)})})(f3=d.PutItemOutput||(d.PutItemOutput={}));var m3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>y(o({},n),{[i]:ae.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(m3=d.QueryOutput||(d.QueryOutput={}));var p3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>y(o({},n),{[i]:ae.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(p3=d.ScanOutput||(d.ScanOutput={}));var _3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Ds.filterSensitiveLog(t.ItemCollectionMetrics)})})(_3=d.UpdateItemOutput||(d.UpdateItemOutput={}));var Tv;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.PutRequest&&{PutRequest:Ix.filterSensitiveLog(t.PutRequest)}),t.DeleteRequest&&{DeleteRequest:Tx.filterSensitiveLog(t.DeleteRequest)})})(Tv=d.WriteRequest||(d.WriteRequest={}));var h3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Responses&&{Responses:Object.entries(t.Responses).reduce((r,[n,i])=>y(o({},r),{[n]:i.map(s=>Object.entries(s).reduce((a,[c,l])=>y(o({},a),{[c]:ae.filterSensitiveLog(l)}),{}))}),{})}),t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((r,[n,i])=>y(o({},r),{[n]:Av.filterSensitiveLog(i)}),{})})})(h3=d.BatchGetItemOutput||(d.BatchGetItemOutput={}));var y3;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((r,[n,i])=>y(o({},r),{[n]:_d.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(y3=d.ScanInput||(d.ScanInput={}));var g3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((r,[n,i])=>y(o({},r),{[n]:i.map(s=>Tv.filterSensitiveLog(s))}),{})})})(g3=d.BatchWriteItemInput||(d.BatchWriteItemInput={}));var v3;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>y(o({},r),{[n]:hd.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(v3=d.DeleteItemInput||(d.DeleteItemInput={}));var S3;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>y(o({},r),{[n]:hd.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(S3=d.PutItemInput||(d.PutItemInput={}));var w3;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((r,[n,i])=>y(o({},r),{[n]:_d.filterSensitiveLog(i)}),{})}),t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((r,[n,i])=>y(o({},r),{[n]:_d.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(w3=d.QueryInput||(d.QueryInput={}));var E3;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((r,[n,i])=>y(o({},r),{[n]:i.map(s=>Tv.filterSensitiveLog(s))}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((r,[n,i])=>y(o({},r),{[n]:i.map(s=>Ds.filterSensitiveLog(s))}),{})})})(E3=d.BatchWriteItemOutput||(d.BatchWriteItemOutput={}));var b3;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})}),t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((r,[n,i])=>y(o({},r),{[n]:Ex.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>y(o({},r),{[n]:hd.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>y(o({},r),{[n]:ae.filterSensitiveLog(i)}),{})})})(b3=d.UpdateItemInput||(d.UpdateItemInput={}));var Lx;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.ConditionCheck&&{ConditionCheck:Nx.filterSensitiveLog(t.ConditionCheck)}),t.Put&&{Put:Dx.filterSensitiveLog(t.Put)}),t.Delete&&{Delete:Px.filterSensitiveLog(t.Delete)}),t.Update&&{Update:Ox.filterSensitiveLog(t.Update)})})(Lx=d.TransactWriteItem||(d.TransactWriteItem={}));var A3;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(r=>Lx.filterSensitiveLog(r))})})(A3=d.TransactWriteItemsInput||(d.TransactWriteItemsInput={}))});var Mx=m(qx=>{"use strict";Object.defineProperty(qx,"__esModule",{value:!0})});var zx=m(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.HttpRequest=void 0;var Pa=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 Pa(y(o({},this),{headers:o({},this.headers)}));return t.query&&(t.query=T3(t.query)),t}};yd.HttpRequest=Pa;function T3(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return y(o({},t),{[r]:Array.isArray(n)?[...n]:n})},{})}});var jx=m(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.HttpResponse=void 0;var Cv=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"}};gd.HttpResponse=Cv});var kx=m(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.isValidHostname=void 0;function C3(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}vd.isValidHostname=C3});var It=m(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var Sd=$();Sd.__exportStar(Mx(),Os);Sd.__exportStar(zx(),Os);Sd.__exportStar(jx(),Os);Sd.__exportStar(kx(),Os)});var Iv=m(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.default=R3;var x3=I3(require("crypto"));function I3(e){return e&&e.__esModule?e:{default:e}}var Ed=new Uint8Array(256),wd=Ed.length;function R3(){return wd>Ed.length-16&&(x3.default.randomFillSync(Ed),wd=0),Ed.slice(wd,wd+=16)}});var Fx=m(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.default=void 0;var N3=/^(?:[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;bd.default=N3});var Da=m(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.default=void 0;var P3=D3(Fx());function D3(e){return e&&e.__esModule?e:{default:e}}function O3(e){return typeof e=="string"&&P3.default.test(e)}var L3=O3;Ad.default=L3});var Oa=m(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.default=void 0;var q3=M3(Da());function M3(e){return e&&e.__esModule?e:{default:e}}var dt=[];for(let e=0;e<256;++e)dt.push((e+256).toString(16).substr(1));function z3(e,t=0){let r=(dt[e[t+0]]+dt[e[t+1]]+dt[e[t+2]]+dt[e[t+3]]+"-"+dt[e[t+4]]+dt[e[t+5]]+"-"+dt[e[t+6]]+dt[e[t+7]]+"-"+dt[e[t+8]]+dt[e[t+9]]+"-"+dt[e[t+10]]+dt[e[t+11]]+dt[e[t+12]]+dt[e[t+13]]+dt[e[t+14]]+dt[e[t+15]]).toLowerCase();if(!(0,q3.default)(r))throw TypeError("Stringified UUID is invalid");return r}var j3=z3;Td.default=j3});var Gx=m(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.default=void 0;var k3=Bx(Iv()),F3=Bx(Oa());function Bx(e){return e&&e.__esModule?e:{default:e}}var Ux,Rv,Nv=0,Pv=0;function U3(e,t,r){let n=t&&r||0,i=t||new Array(16);e=e||{};let s=e.node||Ux,a=e.clockseq!==void 0?e.clockseq:Rv;if(s==null||a==null){let p=e.random||(e.rng||k3.default)();s==null&&(s=Ux=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),a==null&&(a=Rv=(p[6]<<8|p[7])&16383)}let c=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:Pv+1,u=c-Nv+(l-Pv)/1e4;if(u<0&&e.clockseq===void 0&&(a=a+1&16383),(u<0||c>Nv)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Nv=c,Pv=l,Rv=a,c+=122192928e5;let f=((c&268435455)*1e4+l)%4294967296;i[n++]=f>>>24&255,i[n++]=f>>>16&255,i[n++]=f>>>8&255,i[n++]=f&255;let h=c/4294967296*1e4&268435455;i[n++]=h>>>8&255,i[n++]=h&255,i[n++]=h>>>24&15|16,i[n++]=h>>>16&255,i[n++]=a>>>8|128,i[n++]=a&255;for(let p=0;p<6;++p)i[n+p]=s[p];return t||(0,F3.default)(i)}var B3=U3;Cd.default=B3});var Dv=m(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.default=void 0;var G3=$3(Da());function $3(e){return e&&e.__esModule?e:{default:e}}function V3(e){if(!(0,G3.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 K3=V3;xd.default=K3});var Ov=m(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.default=Y3;Pi.URL=Pi.DNS=void 0;var H3=$x(Oa()),W3=$x(Dv());function $x(e){return e&&e.__esModule?e:{default:e}}function J3(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var Vx="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Pi.DNS=Vx;var Kx="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Pi.URL=Kx;function Y3(e,t,r){function n(i,s,a,c){if(typeof i=="string"&&(i=J3(i)),typeof s=="string"&&(s=(0,W3.default)(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+i.length);if(l.set(s),l.set(i,s.length),l=r(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,a){c=c||0;for(let u=0;u<16;++u)a[c+u]=l[u];return a}return(0,H3.default)(l)}try{n.name=e}catch{}return n.DNS=Vx,n.URL=Kx,n}});var Hx=m(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.default=void 0;var Q3=X3(require("crypto"));function X3(e){return e&&e.__esModule?e:{default:e}}function Z3(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Q3.default.createHash("md5").update(e).digest()}var eW=Z3;Id.default=eW});var Jx=m(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.default=void 0;var tW=Wx(Ov()),rW=Wx(Hx());function Wx(e){return e&&e.__esModule?e:{default:e}}var nW=(0,tW.default)("v3",48,rW.default),iW=nW;Rd.default=iW});var Qx=m(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.default=void 0;var sW=Yx(Iv()),oW=Yx(Oa());function Yx(e){return e&&e.__esModule?e:{default:e}}function aW(e,t,r){e=e||{};let n=e.random||(e.rng||sW.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,oW.default)(n)}var cW=aW;Nd.default=cW});var Xx=m(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.default=void 0;var lW=dW(require("crypto"));function dW(e){return e&&e.__esModule?e:{default:e}}function uW(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),lW.default.createHash("sha1").update(e).digest()}var fW=uW;Pd.default=fW});var eI=m(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.default=void 0;var mW=Zx(Ov()),pW=Zx(Xx());function Zx(e){return e&&e.__esModule?e:{default:e}}var _W=(0,mW.default)("v5",80,pW.default),hW=_W;Dd.default=hW});var tI=m(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.default=void 0;var yW="00000000-0000-0000-0000-000000000000";Od.default=yW});var rI=m(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.default=void 0;var gW=vW(Da());function vW(e){return e&&e.__esModule?e:{default:e}}function SW(e){if(!(0,gW.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var wW=SW;Ld.default=wW});var Lv=m(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});Object.defineProperty(ar,"v1",{enumerable:!0,get:function(){return EW.default}});Object.defineProperty(ar,"v3",{enumerable:!0,get:function(){return bW.default}});Object.defineProperty(ar,"v4",{enumerable:!0,get:function(){return AW.default}});Object.defineProperty(ar,"v5",{enumerable:!0,get:function(){return TW.default}});Object.defineProperty(ar,"NIL",{enumerable:!0,get:function(){return CW.default}});Object.defineProperty(ar,"version",{enumerable:!0,get:function(){return xW.default}});Object.defineProperty(ar,"validate",{enumerable:!0,get:function(){return IW.default}});Object.defineProperty(ar,"stringify",{enumerable:!0,get:function(){return RW.default}});Object.defineProperty(ar,"parse",{enumerable:!0,get:function(){return NW.default}});var EW=dn(Gx()),bW=dn(Jx()),AW=dn(Qx()),TW=dn(eI()),CW=dn(tI()),xW=dn(rI()),IW=dn(Da()),RW=dn(Oa()),NW=dn(Dv());function dn(e){return e&&e.__esModule?e:{default:e}}});var Z=m(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.serializeAws_json1_0UpdateTimeToLiveCommand=w.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=w.serializeAws_json1_0UpdateTableCommand=w.serializeAws_json1_0UpdateItemCommand=w.serializeAws_json1_0UpdateGlobalTableSettingsCommand=w.serializeAws_json1_0UpdateGlobalTableCommand=w.serializeAws_json1_0UpdateContributorInsightsCommand=w.serializeAws_json1_0UpdateContinuousBackupsCommand=w.serializeAws_json1_0UntagResourceCommand=w.serializeAws_json1_0TransactWriteItemsCommand=w.serializeAws_json1_0TransactGetItemsCommand=w.serializeAws_json1_0TagResourceCommand=w.serializeAws_json1_0ScanCommand=w.serializeAws_json1_0RestoreTableToPointInTimeCommand=w.serializeAws_json1_0RestoreTableFromBackupCommand=w.serializeAws_json1_0QueryCommand=w.serializeAws_json1_0PutItemCommand=w.serializeAws_json1_0ListTagsOfResourceCommand=w.serializeAws_json1_0ListTablesCommand=w.serializeAws_json1_0ListGlobalTablesCommand=w.serializeAws_json1_0ListExportsCommand=w.serializeAws_json1_0ListContributorInsightsCommand=w.serializeAws_json1_0ListBackupsCommand=w.serializeAws_json1_0GetItemCommand=w.serializeAws_json1_0ExportTableToPointInTimeCommand=w.serializeAws_json1_0ExecuteTransactionCommand=w.serializeAws_json1_0ExecuteStatementCommand=w.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=w.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=w.serializeAws_json1_0DescribeTimeToLiveCommand=w.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=w.serializeAws_json1_0DescribeTableCommand=w.serializeAws_json1_0DescribeLimitsCommand=w.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=w.serializeAws_json1_0DescribeGlobalTableSettingsCommand=w.serializeAws_json1_0DescribeGlobalTableCommand=w.serializeAws_json1_0DescribeExportCommand=w.serializeAws_json1_0DescribeEndpointsCommand=w.serializeAws_json1_0DescribeContributorInsightsCommand=w.serializeAws_json1_0DescribeContinuousBackupsCommand=w.serializeAws_json1_0DescribeBackupCommand=w.serializeAws_json1_0DeleteTableCommand=w.serializeAws_json1_0DeleteItemCommand=w.serializeAws_json1_0DeleteBackupCommand=w.serializeAws_json1_0CreateTableCommand=w.serializeAws_json1_0CreateGlobalTableCommand=w.serializeAws_json1_0CreateBackupCommand=w.serializeAws_json1_0BatchWriteItemCommand=w.serializeAws_json1_0BatchGetItemCommand=w.serializeAws_json1_0BatchExecuteStatementCommand=void 0;w.deserializeAws_json1_0UpdateTimeToLiveCommand=w.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=w.deserializeAws_json1_0UpdateTableCommand=w.deserializeAws_json1_0UpdateItemCommand=w.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=w.deserializeAws_json1_0UpdateGlobalTableCommand=w.deserializeAws_json1_0UpdateContributorInsightsCommand=w.deserializeAws_json1_0UpdateContinuousBackupsCommand=w.deserializeAws_json1_0UntagResourceCommand=w.deserializeAws_json1_0TransactWriteItemsCommand=w.deserializeAws_json1_0TransactGetItemsCommand=w.deserializeAws_json1_0TagResourceCommand=w.deserializeAws_json1_0ScanCommand=w.deserializeAws_json1_0RestoreTableToPointInTimeCommand=w.deserializeAws_json1_0RestoreTableFromBackupCommand=w.deserializeAws_json1_0QueryCommand=w.deserializeAws_json1_0PutItemCommand=w.deserializeAws_json1_0ListTagsOfResourceCommand=w.deserializeAws_json1_0ListTablesCommand=w.deserializeAws_json1_0ListGlobalTablesCommand=w.deserializeAws_json1_0ListExportsCommand=w.deserializeAws_json1_0ListContributorInsightsCommand=w.deserializeAws_json1_0ListBackupsCommand=w.deserializeAws_json1_0GetItemCommand=w.deserializeAws_json1_0ExportTableToPointInTimeCommand=w.deserializeAws_json1_0ExecuteTransactionCommand=w.deserializeAws_json1_0ExecuteStatementCommand=w.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DescribeTimeToLiveCommand=w.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=w.deserializeAws_json1_0DescribeTableCommand=w.deserializeAws_json1_0DescribeLimitsCommand=w.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=w.deserializeAws_json1_0DescribeGlobalTableCommand=w.deserializeAws_json1_0DescribeExportCommand=w.deserializeAws_json1_0DescribeEndpointsCommand=w.deserializeAws_json1_0DescribeContributorInsightsCommand=w.deserializeAws_json1_0DescribeContinuousBackupsCommand=w.deserializeAws_json1_0DescribeBackupCommand=w.deserializeAws_json1_0DeleteTableCommand=w.deserializeAws_json1_0DeleteItemCommand=w.deserializeAws_json1_0DeleteBackupCommand=w.deserializeAws_json1_0CreateTableCommand=w.deserializeAws_json1_0CreateGlobalTableCommand=w.deserializeAws_json1_0CreateBackupCommand=w.deserializeAws_json1_0BatchWriteItemCommand=w.deserializeAws_json1_0BatchGetItemCommand=w.deserializeAws_json1_0BatchExecuteStatementCommand=void 0;var PW=It(),_=D(),qv=Lv(),te=pd(),Ee=Y(),DW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},n;return n=JSON.stringify(O6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0BatchExecuteStatementCommand=DW;var OW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},n;return n=JSON.stringify(L6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0BatchGetItemCommand=OW;var LW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},n;return n=JSON.stringify(z6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0BatchWriteItemCommand=LW;var qW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},n;return n=JSON.stringify(U6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0CreateBackupCommand=qW;var MW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},n;return n=JSON.stringify(G6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0CreateGlobalTableCommand=MW;var zW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},n;return n=JSON.stringify(K6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0CreateTableCommand=zW;var jW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},n;return n=JSON.stringify(W6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DeleteBackupCommand=jW;var kW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},n;return n=JSON.stringify(Y6(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DeleteItemCommand=kW;var FW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},n;return n=JSON.stringify(e5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DeleteTableCommand=FW;var UW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},n;return n=JSON.stringify(t5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeBackupCommand=UW;var BW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},n;return n=JSON.stringify(r5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeContinuousBackupsCommand=BW;var GW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},n;return n=JSON.stringify(n5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeContributorInsightsCommand=GW;var $W=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},n;return n=JSON.stringify(i5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeEndpointsCommand=$W;var VW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},n;return n=JSON.stringify(s5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeExportCommand=VW;var KW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},n;return n=JSON.stringify(o5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeGlobalTableCommand=KW;var HW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},n;return n=JSON.stringify(a5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeGlobalTableSettingsCommand=HW;var WW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},n;return n=JSON.stringify(c5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=WW;var JW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},n;return n=JSON.stringify(l5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeLimitsCommand=JW;var YW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},n;return n=JSON.stringify(d5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeTableCommand=YW;var QW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},n;return n=JSON.stringify(u5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=QW;var XW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},n;return n=JSON.stringify(f5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DescribeTimeToLiveCommand=XW;var ZW=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},n;return n=JSON.stringify(pI(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=ZW;var e8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},n;return n=JSON.stringify(pI(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=e8;var t8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},n;return n=JSON.stringify(m5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ExecuteStatementCommand=t8;var r8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},n;return n=JSON.stringify(p5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ExecuteTransactionCommand=r8;var n8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},n;return n=JSON.stringify(h5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ExportTableToPointInTimeCommand=n8;var i8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},n;return n=JSON.stringify(g5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0GetItemCommand=i8;var s8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},n;return n=JSON.stringify(P5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListBackupsCommand=s8;var o8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},n;return n=JSON.stringify(D5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListContributorInsightsCommand=o8;var a8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},n;return n=JSON.stringify(O5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListExportsCommand=a8;var c8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},n;return n=JSON.stringify(L5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListGlobalTablesCommand=c8;var l8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},n;return n=JSON.stringify(q5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListTablesCommand=l8;var d8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},n;return n=JSON.stringify(M5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ListTagsOfResourceCommand=d8;var u8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},n;return n=JSON.stringify(K5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0PutItemCommand=u8;var f8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},n;return n=JSON.stringify(W5(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0QueryCommand=f8;var m8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},n;return n=JSON.stringify(dJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0RestoreTableFromBackupCommand=m8;var p8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},n;return n=JSON.stringify(uJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0RestoreTableToPointInTimeCommand=p8;var _8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},n;return n=JSON.stringify(fJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0ScanCommand=_8;var h8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},n;return n=JSON.stringify(hJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0TagResourceCommand=h8;var y8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},n;return n=JSON.stringify(SJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0TransactGetItemsCommand=y8;var g8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},n;return n=JSON.stringify(bJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0TransactWriteItemsCommand=g8;var v8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},n;return n=JSON.stringify(AJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UntagResourceCommand=v8;var S8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},n;return n=JSON.stringify(CJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateContinuousBackupsCommand=S8;var w8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},n;return n=JSON.stringify(xJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateContributorInsightsCommand=w8;var E8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},n;return n=JSON.stringify(RJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateGlobalTableCommand=E8;var b8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},n;return n=JSON.stringify(NJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateGlobalTableSettingsCommand=b8;var A8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},n;return n=JSON.stringify(PJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateItemCommand=A8;var T8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},n;return n=JSON.stringify(OJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateTableCommand=T8;var C8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},n;return n=JSON.stringify(LJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=C8;var x8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},n;return n=JSON.stringify(qJ(e,t)),re(t,r,"/",void 0,n)};w.serializeAws_json1_0UpdateTimeToLiveCommand=x8;var I8=async(e,t)=>{if(e.statusCode>=300)return R8(e,t);let r=await O(e.body,t),n={};n=JJ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0BatchExecuteStatementCommand=I8;var R8=async(e,t)=>{let r=y(o({},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 Gt(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},N8=async(e,t)=>{if(e.statusCode>=300)return P8(e,t);let r=await O(e.body,t),n={};n=YJ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0BatchGetItemCommand=N8;var P8=async(e,t)=>{let r=y(o({},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 fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},D8=async(e,t)=>{if(e.statusCode>=300)return O8(e,t);let r=await O(e.body,t),n={};n=tY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0BatchWriteItemCommand=D8;var O8=async(e,t)=>{let r=y(o({},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 fe(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await La(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},L8=async(e,t)=>{if(e.statusCode>=300)return q8(e,t);let r=await O(e.body,t),n={};n=uY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0CreateBackupCommand=L8;var q8=async(e,t)=>{let r=y(o({},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 Mv(r,t);case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await iI(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await jv(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},M8=async(e,t)=>{if(e.statusCode>=300)return z8(e,t);let r=await O(e.body,t),n={};n=fY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0CreateGlobalTableCommand=M8;var z8=async(e,t)=>{let r=y(o({},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 b6(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},j8=async(e,t)=>{if(e.statusCode>=300)return k8(e,t);let r=await O(e.body,t),n={};n=mY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0CreateTableCommand=j8;var k8=async(e,t)=>{let r=y(o({},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 fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},F8=async(e,t)=>{if(e.statusCode>=300)return U8(e,t);let r=await O(e.body,t),n={};n=pY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteBackupCommand=F8;var U8=async(e,t)=>{let r=y(o({},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 Mv(r,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await zv(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},B8=async(e,t)=>{if(e.statusCode>=300)return G8(e,t);let r=await O(e.body,t),n={};n=_Y(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteItemCommand=B8;var G8=async(e,t)=>{let r=y(o({},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 qd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await La(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await zd(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},$8=async(e,t)=>{if(e.statusCode>=300)return V8(e,t);let r=await O(e.body,t),n={};n=yY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteTableCommand=$8;var V8=async(e,t)=>{let r=y(o({},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 fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},K8=async(e,t)=>{if(e.statusCode>=300)return H8(e,t);let r=await O(e.body,t),n={};n=gY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeBackupCommand=K8;var H8=async(e,t)=>{let r=y(o({},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 zv(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},W8=async(e,t)=>{if(e.statusCode>=300)return J8(e,t);let r=await O(e.body,t),n={};n=vY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeContinuousBackupsCommand=W8;var J8=async(e,t)=>{let r=y(o({},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 fe(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},Y8=async(e,t)=>{if(e.statusCode>=300)return Q8(e,t);let r=await O(e.body,t),n={};n=SY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeContributorInsightsCommand=Y8;var Q8=async(e,t)=>{let r=y(o({},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 Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},X8=async(e,t)=>{if(e.statusCode>=300)return Z8(e,t);let r=await O(e.body,t),n={};n=wY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeEndpointsCommand=X8;var Z8=async(e,t)=>{let r=y(o({},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:I(e)}),(0,_.decorateServiceException)(n,s)}},e4=async(e,t)=>{if(e.statusCode>=300)return t4(e,t);let r=await O(e.body,t),n={};n=EY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeExportCommand=e4;var t4=async(e,t)=>{let r=y(o({},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 E6(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},r4=async(e,t)=>{if(e.statusCode>=300)return n4(e,t);let r=await O(e.body,t),n={};n=bY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeGlobalTableCommand=r4;var n4=async(e,t)=>{let r=y(o({},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 Md(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},i4=async(e,t)=>{if(e.statusCode>=300)return s4(e,t);let r=await O(e.body,t),n={};n=AY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=i4;var s4=async(e,t)=>{let r=y(o({},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 Md(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},o4=async(e,t)=>{if(e.statusCode>=300)return a4(e,t);let r=await O(e.body,t),n={};n=TY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=o4;var a4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},c4=async(e,t)=>{if(e.statusCode>=300)return l4(e,t);let r=await O(e.body,t),n={};n=CY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeLimitsCommand=c4;var l4=async(e,t)=>{let r=y(o({},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 fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},d4=async(e,t)=>{if(e.statusCode>=300)return u4(e,t);let r=await O(e.body,t),n={};n=xY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTableCommand=d4;var u4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},f4=async(e,t)=>{if(e.statusCode>=300)return m4(e,t);let r=await O(e.body,t),n={};n=IY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=f4;var m4=async(e,t)=>{let r=y(o({},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 Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},p4=async(e,t)=>{if(e.statusCode>=300)return _4(e,t);let r=await O(e.body,t),n={};n=RY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTimeToLiveCommand=p4;var _4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},h4=async(e,t)=>{if(e.statusCode>=300)return y4(e,t);let r=await O(e.body,t),n={};n=CI(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=h4;var y4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},g4=async(e,t)=>{if(e.statusCode>=300)return v4(e,t);let r=await O(e.body,t),n={};n=CI(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=g4;var v4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},S4=async(e,t)=>{if(e.statusCode>=300)return w4(e,t);let r=await O(e.body,t),n={};n=OY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ExecuteStatementCommand=S4;var w4=async(e,t)=>{let r=y(o({},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 qd(r,t);case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":throw await S6(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await La(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await zd(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},E4=async(e,t)=>{if(e.statusCode>=300)return b4(e,t);let r=await O(e.body,t),n={};n=LY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ExecuteTransactionCommand=E4;var b4=async(e,t)=>{let r=y(o({},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 sI(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await kv(r,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await lI(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},A4=async(e,t)=>{if(e.statusCode>=300)return T4(e,t);let r=await O(e.body,t),n={};n=kY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ExportTableToPointInTimeCommand=A4;var T4=async(e,t)=>{let r=y(o({},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 w6(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":throw await T6(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await oI(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},C4=async(e,t)=>{if(e.statusCode>=300)return x4(e,t);let r=await O(e.body,t),n={};n=BY(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0GetItemCommand=C4;var x4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},I4=async(e,t)=>{if(e.statusCode>=300)return R4(e,t);let r=await O(e.body,t),n={};n=_9(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListBackupsCommand=I4;var R4=async(e,t)=>{let r=y(o({},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 fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},N4=async(e,t)=>{if(e.statusCode>=300)return P4(e,t);let r=await O(e.body,t),n={};n=h9(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListContributorInsightsCommand=N4;var P4=async(e,t)=>{let r=y(o({},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 Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},D4=async(e,t)=>{if(e.statusCode>=300)return O4(e,t);let r=await O(e.body,t),n={};n=y9(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListExportsCommand=D4;var O4=async(e,t)=>{let r=y(o({},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 tt(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},L4=async(e,t)=>{if(e.statusCode>=300)return q4(e,t);let r=await O(e.body,t),n={};n=g9(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListGlobalTablesCommand=L4;var q4=async(e,t)=>{let r=y(o({},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 fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},M4=async(e,t)=>{if(e.statusCode>=300)return z4(e,t);let r=await O(e.body,t),n={};n=v9(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListTablesCommand=M4;var z4=async(e,t)=>{let r=y(o({},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 fe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},j4=async(e,t)=>{if(e.statusCode>=300)return k4(e,t);let r=await O(e.body,t),n={};n=S9(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ListTagsOfResourceCommand=j4;var k4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},F4=async(e,t)=>{if(e.statusCode>=300)return U4(e,t);let r=await O(e.body,t),n={};n=O9(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0PutItemCommand=F4;var U4=async(e,t)=>{let r=y(o({},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 qd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await La(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await zd(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},B4=async(e,t)=>{if(e.statusCode>=300)return G4(e,t);let r=await O(e.body,t),n={};n=q9(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0QueryCommand=B4;var G4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},$4=async(e,t)=>{if(e.statusCode>=300)return V4(e,t);let r=await O(e.body,t),n={};n=eQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0RestoreTableFromBackupCommand=$4;var V4=async(e,t)=>{let r=y(o({},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 Mv(r,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await zv(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await cI(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await jv(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},K4=async(e,t)=>{if(e.statusCode>=300)return H4(e,t);let r=await O(e.body,t),n={};n=tQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0RestoreTableToPointInTimeCommand=K4;var H4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":throw await C6(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await oI(r,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await cI(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await jv(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},W4=async(e,t)=>{if(e.statusCode>=300)return J4(e,t);let r=await O(e.body,t),n={};n=rQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0ScanCommand=W4;var J4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},Y4=async(e,t)=>{if(e.statusCode>=300)return Q4(e,t);await Jv(e.body,t);let r={$metadata:I(e)};return Promise.resolve(r)};w.deserializeAws_json1_0TagResourceCommand=Y4;var Q4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},X4=async(e,t)=>{if(e.statusCode>=300)return Z4(e,t);let r=await O(e.body,t),n={};n=mQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0TransactGetItemsCommand=X4;var Z4=async(e,t)=>{let r=y(o({},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 fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await kv(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},e6=async(e,t)=>{if(e.statusCode>=300)return t6(e,t);let r=await O(e.body,t),n={};n=yQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0TransactWriteItemsCommand=e6;var t6=async(e,t)=>{let r=y(o({},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 sI(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await kv(r,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await lI(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},r6=async(e,t)=>{if(e.statusCode>=300)return n6(e,t);await Jv(e.body,t);let r={$metadata:I(e)};return Promise.resolve(r)};w.deserializeAws_json1_0UntagResourceCommand=r6;var n6=async(e,t)=>{let r=y(o({},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 fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},i6=async(e,t)=>{if(e.statusCode>=300)return s6(e,t);let r=await O(e.body,t),n={};n=gQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateContinuousBackupsCommand=i6;var s6=async(e,t)=>{let r=y(o({},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 iI(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},o6=async(e,t)=>{if(e.statusCode>=300)return a6(e,t);let r=await O(e.body,t),n={};n=vQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateContributorInsightsCommand=o6;var a6=async(e,t)=>{let r=y(o({},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 Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},c6=async(e,t)=>{if(e.statusCode>=300)return l6(e,t);let r=await O(e.body,t),n={};n=SQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateGlobalTableCommand=c6;var l6=async(e,t)=>{let r=y(o({},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 Md(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":throw await x6(r,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await aI(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},d6=async(e,t)=>{if(e.statusCode>=300)return u6(e,t);let r=await O(e.body,t),n={};n=wQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=d6;var u6=async(e,t)=>{let r=y(o({},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 Md(r,t);case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":throw await A6(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await aI(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},f6=async(e,t)=>{if(e.statusCode>=300)return m6(e,t);let r=await O(e.body,t),n={};n=EQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateItemCommand=f6;var m6=async(e,t)=>{let r=y(o({},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 qd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await se(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await fe(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await La(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Qt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Gt(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await zd(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},p6=async(e,t)=>{if(e.statusCode>=300)return _6(e,t);let r=await O(e.body,t),n={};n=bQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTableCommand=p6;var _6=async(e,t)=>{let r=y(o({},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 fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},h6=async(e,t)=>{if(e.statusCode>=300)return y6(e,t);let r=await O(e.body,t),n={};n=AQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=h6;var y6=async(e,t)=>{let r=y(o({},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 tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},g6=async(e,t)=>{if(e.statusCode>=300)return v6(e,t);let r=await O(e.body,t),n={};n=TQ(r,t);let i=o({$metadata:I(e)},n);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTimeToLiveCommand=g6;var v6=async(e,t)=>{let r=y(o({},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 fe(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await tt(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Pe(r,t);default:let s=r.body;throw n=new te.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:I(e)}),(0,_.decorateServiceException)(n,s)}},Mv=async(e,t)=>{let r=e.body,n=VJ(r,t),i=new Ee.BackupInUseException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},zv=async(e,t)=>{let r=e.body,n=KJ(r,t),i=new Ee.BackupNotFoundException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},qd=async(e,t)=>{let r=e.body,n=oY(r,t),i=new Ee.ConditionalCheckFailedException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},iI=async(e,t)=>{let r=e.body,n=aY(r,t),i=new Ee.ContinuousBackupsUnavailableException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},S6=async(e,t)=>{let r=e.body,n=NY(r,t),i=new Ee.DuplicateItemException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},w6=async(e,t)=>{let r=e.body,n=qY(r,t),i=new Ee.ExportConflictException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},E6=async(e,t)=>{let r=e.body,n=MY(r,t),i=new Ee.ExportNotFoundException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},b6=async(e,t)=>{let r=e.body,n=WY(r,t),i=new Ee.GlobalTableAlreadyExistsException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},Md=async(e,t)=>{let r=e.body,n=YY(r,t),i=new Ee.GlobalTableNotFoundException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},sI=async(e,t)=>{let r=e.body,n=QY(r,t),i=new Ee.IdempotentParameterMismatchException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},A6=async(e,t)=>{let r=e.body,n=XY(r,t),i=new Ee.IndexNotFoundException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},se=async(e,t)=>{let r=e.body,n=ZY(r,t),i=new Ee.InternalServerError(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},fe=async(e,t)=>{let r=e.body,n=e9(r,t),i=new Ee.InvalidEndpointException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},T6=async(e,t)=>{let r=e.body,n=t9(r,t),i=new Ee.InvalidExportTimeException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},C6=async(e,t)=>{let r=e.body,n=r9(r,t),i=new Ee.InvalidRestoreTimeException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},La=async(e,t)=>{let r=e.body,n=o9(r,t),i=new Ee.ItemCollectionSizeLimitExceededException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},tt=async(e,t)=>{let r=e.body,n=m9(r,t),i=new Ee.LimitExceededException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},oI=async(e,t)=>{let r=e.body,n=N9(r,t),i=new Ee.PointInTimeRecoveryUnavailableException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},Qt=async(e,t)=>{let r=e.body,n=P9(r,t),i=new Ee.ProvisionedThroughputExceededException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},x6=async(e,t)=>{let r=e.body,n=z9(r,t),i=new Ee.ReplicaAlreadyExistsException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},aI=async(e,t)=>{let r=e.body,n=W9(r,t),i=new Ee.ReplicaNotFoundException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},Gt=async(e,t)=>{let r=e.body,n=Y9(r,t),i=new Ee.RequestLimitExceeded(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},Er=async(e,t)=>{let r=e.body,n=Q9(r,t),i=new Ee.ResourceInUseException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},Pe=async(e,t)=>{let r=e.body,n=X9(r,t),i=new Ee.ResourceNotFoundException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},cI=async(e,t)=>{let r=e.body,n=oQ(r,t),i=new Ee.TableAlreadyExistsException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},jv=async(e,t)=>{let r=e.body,n=aQ(r,t),i=new Ee.TableInUseException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},Di=async(e,t)=>{let r=e.body,n=lQ(r,t),i=new Ee.TableNotFoundException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},kv=async(e,t)=>{let r=e.body,n=pQ(r,t),i=new Ee.TransactionCanceledException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},zd=async(e,t)=>{let r=e.body,n=_Q(r,t),i=new Ee.TransactionConflictException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},lI=async(e,t)=>{let r=e.body,n=hQ(r,t),i=new Ee.TransactionInProgressException(o({$metadata:I(e)},n));return(0,_.decorateServiceException)(i,r)},I6=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}),dI=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:I6(r,t)),jd=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),R6=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:N6(i,t)}),{}),un=(e,t)=>Ee.AttributeValue.visit(e,{B:r=>({B:t.base64Encoder(r)}),BOOL:r=>({BOOL:r}),BS:r=>({BS:k6(r,t)}),L:r=>({L:N5(r,t)}),M:r=>({M:j5(r,t)}),N:r=>({N:r}),NS:r=>({NS:F5(r,t)}),NULL:r=>({NULL:r}),S:r=>({S:r}),SS:r=>({SS:mJ(r,t)}),_:(r,n)=>({name:n})}),uI=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:un(r,t)),N6=(e,t)=>o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.Value!==void 0&&e.Value!==null&&{Value:un(e.Value,t)}),P6=(e,t)=>o(o({},e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName}),e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:D6(e.TargetTrackingScalingPolicyConfiguration,t)}),Wn=(e,t)=>o(o(o(o(o({},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:P6(e.ScalingPolicyUpdate,t)}),D6=(e,t)=>o(o(o(o({},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)}),O6=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.Statements!==void 0&&e.Statements!==null&&{Statements:G5(e.Statements,t)}),L6=(e,t)=>o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:q6(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),q6=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:I5(i,t)}),{}),M6=(e,t)=>o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Gv(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),z6=(e,t)=>o(o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:j6(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),j6=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:zJ(i,t)}),{}),k6=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:t.base64Encoder(r)),fI=(e,t)=>o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:uI(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),F6=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:fn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),U6=(e,t)=>o(o({},e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),B6=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:kd(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:$v(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Oi(e.ProvisionedThroughput,t)}),G6=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:nJ(e.ReplicationGroup,t)}),$6=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),V6=(e,t)=>o(o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:_I(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Vv(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}),K6=(e,t)=>o(o(o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:dI(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Uv(e.GlobalSecondaryIndexes,t)}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:kd(e.KeySchema,t)}),e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:Bv(e.LocalSecondaryIndexes,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Oi(e.ProvisionedThroughput,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:Fd(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:hI(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:yI(e.Tags,t)}),H6=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:fn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),W6=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),J6=(e,t)=>o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),Y6=(e,t)=>o(o(o(o(o(o(o(o(o(o({},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:Fv(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:fn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(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}),Q6=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),X6=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),Z6=(e,t)=>o({},e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e5=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),t5=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),r5=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),n5=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),i5=(e,t)=>({}),s5=(e,t)=>o({},e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}),o5=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),a5=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),c5=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),l5=(e,t)=>({}),d5=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),u5=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),f5=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),m5=(e,t)=>o(o(o(o(o(o({},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:Gv(e.Parameters,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),p5=(e,t)=>{var r;return o(o({ClientRequestToken:(r=e.ClientRequestToken)!==null&&r!==void 0?r:(0,qv.v4)()},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:B5(e.TransactStatements,t)})},Fv=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:_5(i,t)}),{}),_5=(e,t)=>o(o(o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:uI(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:un(e.Value,t)}),h5=(e,t)=>{var r;return o(o(o(o(o(o(o(o({ClientToken:(r=e.ClientToken)!==null&&r!==void 0?r:(0,qv.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})},Xt=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:i}),{}),fn=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:un(i,t)}),{}),mI=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:fI(i,t)}),{}),y5=(e,t)=>o(o(o(o({},e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),g5=(e,t)=>o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:jd(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(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}),v5=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:kd(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:$v(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Oi(e.ProvisionedThroughput,t)}),S5=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Wn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),w5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:S5(r,t)),Uv=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:v5(r,t)),E5=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:B6(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:J6(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:IJ(e.Update,t)}),b5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:E5(r,t)),A5=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Wn(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}),T5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:A5(r,t)),cr=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:un(i,t)}),{}),C5=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:fI(i,t)}),{}),x5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:cr(r,t)),I5=(e,t)=>o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:jd(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.Keys!==void 0&&e.Keys!==null&&{Keys:x5(e.Keys,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),kd=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:R5(r,t)),R5=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}),pI=(e,t)=>o(o({},e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),N5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:un(r,t)),P5=(e,t)=>o(o(o(o(o(o({},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)}),D5=(e,t)=>o(o(o({},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}),O5=(e,t)=>o(o(o({},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}),L5=(e,t)=>o(o(o({},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}),q5=(e,t)=>o(o({},e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),M5=(e,t)=>o(o({},e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),z5=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:kd(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:$v(e.Projection,t)}),Bv=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:z5(r,t)),j5=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:un(i,t)}),{}),k5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),F5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),U5=(e,t)=>o(o({},e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Gv(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),B5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:U5(r,t)),G5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:M6(r,t)),$5=(e,t)=>o({},e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}),Gv=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:un(r,t)),$v=(e,t)=>o(o({},e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:k5(e.NonKeyAttributes,t)}),e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}),Oi=(e,t)=>o(o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}),Vv=(e,t)=>o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),V5=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:fn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Kv(e.Item,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),K5=(e,t)=>o(o(o(o(o(o(o(o(o(o({},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:Fv(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:fn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Kv(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}),Kv=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:un(i,t)}),{}),H5=(e,t)=>o({},e.Item!==void 0&&e.Item!==null&&{Item:Kv(e.Item,t)}),W5=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:jd(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:cr(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:fn(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:C5(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:mI(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}),J5=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),Y5=(e,t)=>o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:eJ(e.ReplicaGlobalSecondaryIndexUpdates,t)}),e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Wn(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}),Q5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:Y5(r,t)),X5=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Vv(e.ProvisionedThroughputOverride,t)}),Z5=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Wn(e.ProvisionedReadCapacityAutoScalingUpdate,t)}),eJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:Z5(r,t)),_I=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:X5(r,t)),tJ=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Wn(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}),rJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:tJ(r,t)),nJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:J5(r,t)),iJ=(e,t)=>o(o(o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:rJ(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Wn(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits}),e.ReplicaTableClass!==void 0&&e.ReplicaTableClass!==null&&{ReplicaTableClass:e.ReplicaTableClass}),sJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:iJ(r,t)),oJ=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:V6(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:X6(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:DJ(e.Update,t)}),aJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:oJ(r,t)),cJ=(e,t)=>o(o({},e.Create!==void 0&&e.Create!==null&&{Create:$6(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:Q6(e.Delete,t)}),lJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:cJ(r,t)),dJ=(e,t)=>o(o(o(o(o(o(o({},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:Uv(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:Bv(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Oi(e.ProvisionedThroughputOverride,t)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:Fd(e.SSESpecificationOverride,t)}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),uJ=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride}),e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:Uv(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:Bv(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Oi(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:Fd(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}),fJ=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:jd(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:cr(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:fn(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:mI(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}),Fd=(e,t)=>o(o(o({},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}),hI=(e,t)=>o(o({},e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled}),e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}),mJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),pJ=(e,t)=>o(o({},e.Key!==void 0&&e.Key!==null&&{Key:e.Key}),e.Value!==void 0&&e.Value!==null&&{Value:e.Value}),_J=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),yI=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:pJ(r,t)),hJ=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.Tags!==void 0&&e.Tags!==null&&{Tags:yI(e.Tags,t)}),yJ=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),gJ=(e,t)=>o({},e.Get!==void 0&&e.Get!==null&&{Get:y5(e.Get,t)}),vJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:gJ(r,t)),SJ=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:vJ(e.TransactItems,t)}),wJ=(e,t)=>o(o(o(o({},e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:F6(e.ConditionCheck,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:H6(e.Delete,t)}),e.Put!==void 0&&e.Put!==null&&{Put:V5(e.Put,t)}),e.Update!==void 0&&e.Update!==null&&{Update:TJ(e.Update,t)}),EJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:wJ(r,t)),bJ=(e,t)=>{var r;return o(o(o({ClientRequestToken:(r=e.ClientRequestToken)!==null&&r!==void 0?r:(0,qv.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:EJ(e.TransactItems,t)})},AJ=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:_J(e.TagKeys,t)}),TJ=(e,t)=>o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:fn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(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}),CJ=(e,t)=>o(o({},e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:$5(e.PointInTimeRecoverySpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),xJ=(e,t)=>o(o(o({},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}),IJ=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Oi(e.ProvisionedThroughput,t)}),RJ=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:lJ(e.ReplicaUpdates,t)}),NJ=(e,t)=>o(o(o(o(o(o({},e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode}),e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:T5(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)}),e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Wn(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits}),e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:sJ(e.ReplicaSettingsUpdate,t)}),PJ=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:R6(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:Fv(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Xt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:fn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:cr(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}),DJ=(e,t)=>o(o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:_I(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Vv(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}),OJ=(e,t)=>o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:dI(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:b5(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Oi(e.ProvisionedThroughput,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:aJ(e.ReplicaUpdates,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:Fd(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:hI(e.StreamSpecification,t)}),e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),LJ=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:w5(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Wn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:Q5(e.ReplicaUpdates,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),qJ=(e,t)=>o(o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:yJ(e.TimeToLiveSpecification,t)}),MJ=(e,t)=>o(o({},e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:Z6(e.DeleteRequest,t)}),e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:H5(e.PutRequest,t)}),zJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:MJ(r,t)),jJ=(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)}),kJ=(e,t)=>({AttributeName:(0,_.expectString)(e.AttributeName),AttributeType:(0,_.expectString)(e.AttributeType)}),FJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:kJ(n,t)),Jn=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Ls((0,_.expectUnion)(i),t)}),{}),UJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),Ls=(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:nY(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:p9(e.L,t)}:e.M!==void 0&&e.M!==null?{M:T9(e.M,t)}:(0,_.expectString)(e.N)!==void 0?{N:(0,_.expectString)(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:x9(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:sQ(e.SS,t)}:{$unknown:Object.entries(e)[0]},BJ=(e,t)=>({PolicyName:(0,_.expectString)(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?$J(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),GJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:BJ(n,t)),Hn=(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?GJ(e.ScalingPolicies,t):void 0}),$J=(e,t)=>({DisableScaleIn:(0,_.expectBoolean)(e.DisableScaleIn),ScaleInCooldown:(0,_.expectInt32)(e.ScaleInCooldown),ScaleOutCooldown:(0,_.expectInt32)(e.ScaleOutCooldown),TargetValue:(0,_.limitedParseDouble)(e.TargetValue)}),gI=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?vI(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?nQ(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?iQ(e.SourceTableFeatureDetails,t):void 0}),vI=(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)}),VJ=(e,t)=>({message:(0,_.expectString)(e.message)}),KJ=(e,t)=>({message:(0,_.expectString)(e.message)}),HJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:WJ(n,t)),WJ=(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)}),JJ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?qs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?I9(e.Responses,t):void 0}),YJ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?qs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?XJ(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?QJ(e.UnprocessedKeys,t):void 0}),QJ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:l9(i,t)}),{}),XJ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Bd(i,t)}),{}),ZJ=(e,t)=>({Code:(0,_.expectString)(e.Code),Message:(0,_.expectString)(e.Message)}),eY=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?ZJ(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Jn(e.Item,t):void 0,TableName:(0,_.expectString)(e.TableName)}),tY=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?qs(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?AI(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?rY(e.UnprocessedItems,t):void 0}),rY=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:xQ(i,t)}),{}),SI=(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}),nY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),iY=(e,t)=>({Code:(0,_.expectString)(e.Code),Item:e.Item!==void 0&&e.Item!==null?Jn(e.Item,t):void 0,Message:(0,_.expectString)(e.Message)}),sY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:iY(n,t)),wI=(e,t)=>({CapacityUnits:(0,_.limitedParseDouble)(e.CapacityUnits),ReadCapacityUnits:(0,_.limitedParseDouble)(e.ReadCapacityUnits),WriteCapacityUnits:(0,_.limitedParseDouble)(e.WriteCapacityUnits)}),oY=(e,t)=>({message:(0,_.expectString)(e.message)}),Yn=(e,t)=>({CapacityUnits:(0,_.limitedParseDouble)(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?nI(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?nI(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:(0,_.limitedParseDouble)(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?wI(e.Table,t):void 0,TableName:(0,_.expectString)(e.TableName),WriteCapacityUnits:(0,_.limitedParseDouble)(e.WriteCapacityUnits)}),qs=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Yn(n,t)),EI=(e,t)=>({ContinuousBackupsStatus:(0,_.expectString)(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?R9(e.PointInTimeRecoveryDescription,t):void 0}),aY=(e,t)=>({message:(0,_.expectString)(e.message)}),cY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),lY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:dY(n,t)),dY=(e,t)=>({ContributorInsightsStatus:(0,_.expectString)(e.ContributorInsightsStatus),IndexName:(0,_.expectString)(e.IndexName),TableName:(0,_.expectString)(e.TableName)}),uY=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?vI(e.BackupDetails,t):void 0}),fY=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Hv(e.GlobalTableDescription,t):void 0}),mY=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?zs(e.TableDescription,t):void 0}),pY=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?gI(e.BackupDescription,t):void 0}),_Y=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Jn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Ud(e.ItemCollectionMetrics,t):void 0}),hY=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?qa(e.Key,t):void 0}),yY=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?zs(e.TableDescription,t):void 0}),gY=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?gI(e.BackupDescription,t):void 0}),vY=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?EI(e.ContinuousBackupsDescription,t):void 0}),SY=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?cY(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:(0,_.expectString)(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?UY(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)}),wY=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?DY(e.Endpoints,t):void 0}),EY=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?bI(e.ExportDescription,t):void 0}),bY=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Hv(e.GlobalTableDescription,t):void 0}),AY=(e,t)=>({GlobalTableName:(0,_.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?PI(e.ReplicaSettings,t):void 0}),TY=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?f9(e.KinesisDataStreamDestinations,t):void 0,TableName:(0,_.expectString)(e.TableName)}),CY=(e,t)=>({AccountMaxReadCapacityUnits:(0,_.expectLong)(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:(0,_.expectLong)(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:(0,_.expectLong)(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:(0,_.expectLong)(e.TableMaxWriteCapacityUnits)}),xY=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?zs(e.Table,t):void 0}),IY=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?LI(e.TableAutoScalingDescription,t):void 0}),RY=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?qI(e.TimeToLiveDescription,t):void 0}),NY=(e,t)=>({message:(0,_.expectString)(e.message)}),PY=(e,t)=>({Address:(0,_.expectString)(e.Address),CachePeriodInMinutes:(0,_.expectLong)(e.CachePeriodInMinutes)}),DY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:PY(n,t)),OY=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,Items:e.Items!==void 0&&e.Items!==null?Bd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?qa(e.LastEvaluatedKey,t):void 0,NextToken:(0,_.expectString)(e.NextToken)}),LY=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?qs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?TI(e.Responses,t):void 0}),qY=(e,t)=>({message:(0,_.expectString)(e.message)}),bI=(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)}),MY=(e,t)=>({message:(0,_.expectString)(e.message)}),zY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:jY(n,t)),jY=(e,t)=>({ExportArn:(0,_.expectString)(e.ExportArn),ExportStatus:(0,_.expectString)(e.ExportStatus)}),kY=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?bI(e.ExportDescription,t):void 0}),FY=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:(0,_.expectString)(i)}),{}),UY=(e,t)=>({ExceptionDescription:(0,_.expectString)(e.ExceptionDescription),ExceptionName:(0,_.expectString)(e.ExceptionName)}),BY=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Jn(e.Item,t):void 0}),GY=(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?Ms(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Gd(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?II(e.ProvisionedThroughput,t):void 0}),$Y=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:GY(n,t)),VY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:KY(n,t)),KY=(e,t)=>({IndexName:(0,_.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ms(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Gd(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?xI(e.ProvisionedThroughput,t):void 0}),HY=(e,t)=>({GlobalTableName:(0,_.expectString)(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?H9(e.ReplicationGroup,t):void 0}),WY=(e,t)=>({message:(0,_.expectString)(e.message)}),Hv=(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?NI(e.ReplicationGroup,t):void 0}),JY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:HY(n,t)),YY=(e,t)=>({message:(0,_.expectString)(e.message)}),QY=(e,t)=>({Message:(0,_.expectString)(e.Message)}),XY=(e,t)=>({message:(0,_.expectString)(e.message)}),ZY=(e,t)=>({message:(0,_.expectString)(e.message)}),e9=(e,t)=>({Message:(0,_.expectString)(e.Message)}),t9=(e,t)=>({message:(0,_.expectString)(e.message)}),r9=(e,t)=>({message:(0,_.expectString)(e.message)}),n9=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Ls((0,_.expectUnion)(i),t)}),{}),Ud=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?n9(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?s9(e.SizeEstimateRangeGB,t):void 0}),i9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Ud(n,t)),AI=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:i9(i,t)}),{}),s9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.limitedParseDouble)(n)),o9=(e,t)=>({message:(0,_.expectString)(e.message)}),Bd=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Jn(n,t)),a9=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?Jn(e.Item,t):void 0}),TI=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:a9(n,t)),qa=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Ls((0,_.expectUnion)(i),t)}),{}),c9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:qa(n,t)),l9=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?UJ(e.AttributesToGet,t):void 0,ConsistentRead:(0,_.expectBoolean)(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?FY(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?c9(e.Keys,t):void 0,ProjectionExpression:(0,_.expectString)(e.ProjectionExpression)}),Ms=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:d9(n,t)),d9=(e,t)=>({AttributeName:(0,_.expectString)(e.AttributeName),KeyType:(0,_.expectString)(e.KeyType)}),u9=(e,t)=>({DestinationStatus:(0,_.expectString)(e.DestinationStatus),DestinationStatusDescription:(0,_.expectString)(e.DestinationStatusDescription),StreamArn:(0,_.expectString)(e.StreamArn)}),f9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:u9(n,t)),CI=(e,t)=>({DestinationStatus:(0,_.expectString)(e.DestinationStatus),StreamArn:(0,_.expectString)(e.StreamArn),TableName:(0,_.expectString)(e.TableName)}),m9=(e,t)=>({message:(0,_.expectString)(e.message)}),p9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Ls((0,_.expectUnion)(n),t)),_9=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?HJ(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:(0,_.expectString)(e.LastEvaluatedBackupArn)}),h9=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?lY(e.ContributorInsightsSummaries,t):void 0,NextToken:(0,_.expectString)(e.NextToken)}),y9=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?zY(e.ExportSummaries,t):void 0,NextToken:(0,_.expectString)(e.NextToken)}),g9=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?JY(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:(0,_.expectString)(e.LastEvaluatedGlobalTableName)}),v9=(e,t)=>({LastEvaluatedTableName:(0,_.expectString)(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?cQ(e.TableNames,t):void 0}),S9=(e,t)=>({NextToken:(0,_.expectString)(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?uQ(e.Tags,t):void 0}),w9=(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?Ms(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Gd(e.Projection,t):void 0}),E9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w9(n,t)),b9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:A9(n,t)),A9=(e,t)=>({IndexName:(0,_.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ms(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Gd(e.Projection,t):void 0}),T9=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Ls((0,_.expectUnion)(i),t)}),{}),C9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),x9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),I9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:eY(n,t)),R9=(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)}),N9=(e,t)=>({message:(0,_.expectString)(e.message)}),Gd=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?C9(e.NonKeyAttributes,t):void 0,ProjectionType:(0,_.expectString)(e.ProjectionType)}),xI=(e,t)=>({ReadCapacityUnits:(0,_.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,_.expectLong)(e.WriteCapacityUnits)}),II=(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)}),P9=(e,t)=>({message:(0,_.expectString)(e.message)}),RI=(e,t)=>({ReadCapacityUnits:(0,_.expectLong)(e.ReadCapacityUnits)}),D9=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:Ls((0,_.expectUnion)(i),t)}),{}),O9=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Jn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Ud(e.ItemCollectionMetrics,t):void 0}),L9=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?D9(e.Item,t):void 0}),q9=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,Count:(0,_.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Bd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?qa(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,_.expectInt32)(e.ScannedCount)}),M9=(e,t)=>({RegionName:(0,_.expectString)(e.RegionName)}),z9=(e,t)=>({message:(0,_.expectString)(e.message)}),j9=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?B9(e.GlobalSecondaryIndexes,t):void 0,RegionName:(0,_.expectString)(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Hn(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Hn(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:(0,_.expectString)(e.ReplicaStatus)}),k9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:j9(n,t)),F9=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?$9(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:(0,_.expectString)(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?RI(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?Wv(e.ReplicaTableClassSummary,t):void 0}),NI=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:F9(n,t)),U9=(e,t)=>({IndexName:(0,_.expectString)(e.IndexName),IndexStatus:(0,_.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Hn(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Hn(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),B9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:U9(n,t)),G9=(e,t)=>({IndexName:(0,_.expectString)(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?RI(e.ProvisionedThroughputOverride,t):void 0}),$9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:G9(n,t)),V9=(e,t)=>({IndexName:(0,_.expectString)(e.IndexName),IndexStatus:(0,_.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Hn(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:(0,_.expectLong)(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Hn(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:(0,_.expectLong)(e.ProvisionedWriteCapacityUnits)}),K9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:V9(n,t)),H9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:M9(n,t)),W9=(e,t)=>({message:(0,_.expectString)(e.message)}),J9=(e,t)=>({RegionName:(0,_.expectString)(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?SI(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?K9(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Hn(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:(0,_.expectLong)(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Hn(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:(0,_.expectLong)(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:(0,_.expectString)(e.ReplicaStatus),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?Wv(e.ReplicaTableClassSummary,t):void 0}),PI=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:J9(n,t)),Y9=(e,t)=>({message:(0,_.expectString)(e.message)}),Q9=(e,t)=>({message:(0,_.expectString)(e.message)}),X9=(e,t)=>({message:(0,_.expectString)(e.message)}),Z9=(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)}),eQ=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?zs(e.TableDescription,t):void 0}),tQ=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?zs(e.TableDescription,t):void 0}),rQ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,Count:(0,_.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Bd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?qa(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,_.expectInt32)(e.ScannedCount)}),nI=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:y(o({},r),{[n]:wI(i,t)}),{}),nQ=(e,t)=>({BillingMode:(0,_.expectString)(e.BillingMode),ItemCount:(0,_.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ms(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?xI(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)}),iQ=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?VY(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?b9(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?DI(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?OI(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?qI(e.TimeToLiveDescription,t):void 0}),DI=(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)}),OI=(e,t)=>({StreamEnabled:(0,_.expectBoolean)(e.StreamEnabled),StreamViewType:(0,_.expectString)(e.StreamViewType)}),sQ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),oQ=(e,t)=>({message:(0,_.expectString)(e.message)}),LI=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?k9(e.Replicas,t):void 0,TableName:(0,_.expectString)(e.TableName),TableStatus:(0,_.expectString)(e.TableStatus)}),Wv=(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)}),zs=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?jJ(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?FJ(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?SI(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?$Y(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:(0,_.expectString)(e.GlobalTableVersion),ItemCount:(0,_.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ms(e.KeySchema,t):void 0,LatestStreamArn:(0,_.expectString)(e.LatestStreamArn),LatestStreamLabel:(0,_.expectString)(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?E9(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?II(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?NI(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?Z9(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?DI(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?OI(e.StreamSpecification,t):void 0,TableArn:(0,_.expectString)(e.TableArn),TableClassSummary:e.TableClassSummary!==void 0&&e.TableClassSummary!==null?Wv(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)}),aQ=(e,t)=>({message:(0,_.expectString)(e.message)}),cQ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,_.expectString)(n)),lQ=(e,t)=>({message:(0,_.expectString)(e.message)}),dQ=(e,t)=>({Key:(0,_.expectString)(e.Key),Value:(0,_.expectString)(e.Value)}),uQ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:dQ(n,t)),qI=(e,t)=>({AttributeName:(0,_.expectString)(e.AttributeName),TimeToLiveStatus:(0,_.expectString)(e.TimeToLiveStatus)}),fQ=(e,t)=>({AttributeName:(0,_.expectString)(e.AttributeName),Enabled:(0,_.expectBoolean)(e.Enabled)}),mQ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?qs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?TI(e.Responses,t):void 0}),pQ=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?sY(e.CancellationReasons,t):void 0,Message:(0,_.expectString)(e.Message)}),_Q=(e,t)=>({message:(0,_.expectString)(e.message)}),hQ=(e,t)=>({Message:(0,_.expectString)(e.Message)}),yQ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?qs(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?AI(e.ItemCollectionMetrics,t):void 0}),gQ=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?EI(e.ContinuousBackupsDescription,t):void 0}),vQ=(e,t)=>({ContributorInsightsStatus:(0,_.expectString)(e.ContributorInsightsStatus),IndexName:(0,_.expectString)(e.IndexName),TableName:(0,_.expectString)(e.TableName)}),SQ=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Hv(e.GlobalTableDescription,t):void 0}),wQ=(e,t)=>({GlobalTableName:(0,_.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?PI(e.ReplicaSettings,t):void 0}),EQ=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Jn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Ud(e.ItemCollectionMetrics,t):void 0}),bQ=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?zs(e.TableDescription,t):void 0}),AQ=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?LI(e.TableAutoScalingDescription,t):void 0}),TQ=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?fQ(e.TimeToLiveSpecification,t):void 0}),CQ=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?hY(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?L9(e.PutRequest,t):void 0}),xQ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:CQ(n,t)),I=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"]}},Jv=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),IQ=(e,t)=>Jv(e,t).then(r=>t.utf8Encoder(r)),re=async(e,t,r,n,i)=>{let{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint(),u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:t};return n!==void 0&&(u.hostname=n),i!==void 0&&(u.body=i),new PW.HttpRequest(u)},O=(e,t)=>IQ(e,t).then(r=>r.length?JSON.parse(r):{}),ne=(e,t)=>{let r=(s,a)=>Object.keys(s).find(c=>c.toLowerCase()===a.toLowerCase()),n=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},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 Qv=m($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.BatchExecuteStatementCommand=void 0;var RQ=G(),NQ=D(),MI=Y(),zI=Z(),Yv=class extends NQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,RQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:MI.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:MI.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,zI.serializeAws_json1_0BatchExecuteStatementCommand)(t,r)}deserialize(t,r){return(0,zI.deserializeAws_json1_0BatchExecuteStatementCommand)(t,r)}};$d.BatchExecuteStatementCommand=Yv});var Zv=m(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.BatchGetItemCommand=void 0;var PQ=G(),DQ=D(),jI=Y(),kI=Z(),Xv=class extends DQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,PQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:jI.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:jI.BatchGetItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,kI.serializeAws_json1_0BatchGetItemCommand)(t,r)}deserialize(t,r){return(0,kI.deserializeAws_json1_0BatchGetItemCommand)(t,r)}};Vd.BatchGetItemCommand=Xv});var tS=m(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.BatchWriteItemCommand=void 0;var OQ=G(),LQ=D(),FI=Y(),UI=Z(),eS=class extends LQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,OQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:FI.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:FI.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,UI.serializeAws_json1_0BatchWriteItemCommand)(t,r)}deserialize(t,r){return(0,UI.deserializeAws_json1_0BatchWriteItemCommand)(t,r)}};Kd.BatchWriteItemCommand=eS});var nS=m(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.CreateBackupCommand=void 0;var qQ=G(),MQ=D(),BI=Y(),GI=Z(),rS=class extends MQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,qQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:BI.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:BI.CreateBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,GI.serializeAws_json1_0CreateBackupCommand)(t,r)}deserialize(t,r){return(0,GI.deserializeAws_json1_0CreateBackupCommand)(t,r)}};Hd.CreateBackupCommand=rS});var sS=m(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.CreateGlobalTableCommand=void 0;var zQ=G(),jQ=D(),$I=Y(),VI=Z(),iS=class extends jQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,zQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:$I.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:$I.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,VI.serializeAws_json1_0CreateGlobalTableCommand)(t,r)}deserialize(t,r){return(0,VI.deserializeAws_json1_0CreateGlobalTableCommand)(t,r)}};Wd.CreateGlobalTableCommand=iS});var aS=m(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.CreateTableCommand=void 0;var kQ=G(),FQ=D(),KI=Y(),HI=Z(),oS=class extends FQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,kQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:KI.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:KI.CreateTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,HI.serializeAws_json1_0CreateTableCommand)(t,r)}deserialize(t,r){return(0,HI.deserializeAws_json1_0CreateTableCommand)(t,r)}};Jd.CreateTableCommand=oS});var lS=m(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.DeleteBackupCommand=void 0;var UQ=G(),BQ=D(),WI=Y(),JI=Z(),cS=class extends BQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,UQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:WI.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:WI.DeleteBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,JI.serializeAws_json1_0DeleteBackupCommand)(t,r)}deserialize(t,r){return(0,JI.deserializeAws_json1_0DeleteBackupCommand)(t,r)}};Yd.DeleteBackupCommand=cS});var uS=m(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.DeleteItemCommand=void 0;var GQ=G(),$Q=D(),YI=Y(),QI=Z(),dS=class extends $Q.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,GQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:YI.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:YI.DeleteItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,QI.serializeAws_json1_0DeleteItemCommand)(t,r)}deserialize(t,r){return(0,QI.deserializeAws_json1_0DeleteItemCommand)(t,r)}};Qd.DeleteItemCommand=dS});var mS=m(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.DeleteTableCommand=void 0;var VQ=G(),KQ=D(),XI=Y(),ZI=Z(),fS=class extends KQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,VQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:XI.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:XI.DeleteTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,ZI.serializeAws_json1_0DeleteTableCommand)(t,r)}deserialize(t,r){return(0,ZI.deserializeAws_json1_0DeleteTableCommand)(t,r)}};Xd.DeleteTableCommand=fS});var _S=m(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.DescribeBackupCommand=void 0;var HQ=G(),WQ=D(),e1=Y(),t1=Z(),pS=class extends WQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,HQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:e1.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:e1.DescribeBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,t1.serializeAws_json1_0DescribeBackupCommand)(t,r)}deserialize(t,r){return(0,t1.deserializeAws_json1_0DescribeBackupCommand)(t,r)}};Zd.DescribeBackupCommand=pS});var yS=m(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.DescribeContinuousBackupsCommand=void 0;var JQ=G(),YQ=D(),r1=Y(),n1=Z(),hS=class extends YQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,JQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:r1.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:r1.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,n1.serializeAws_json1_0DescribeContinuousBackupsCommand)(t,r)}deserialize(t,r){return(0,n1.deserializeAws_json1_0DescribeContinuousBackupsCommand)(t,r)}};eu.DescribeContinuousBackupsCommand=hS});var vS=m(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.DescribeContributorInsightsCommand=void 0;var QQ=G(),XQ=D(),i1=Y(),s1=Z(),gS=class extends XQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,QQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:i1.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:i1.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,s1.serializeAws_json1_0DescribeContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,s1.deserializeAws_json1_0DescribeContributorInsightsCommand)(t,r)}};tu.DescribeContributorInsightsCommand=gS});var nu=m(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.DescribeEndpointsCommand=void 0;var ZQ=G(),e7=D(),o1=Y(),a1=Z(),SS=class extends e7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ZQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:o1.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:o1.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,a1.serializeAws_json1_0DescribeEndpointsCommand)(t,r)}deserialize(t,r){return(0,a1.deserializeAws_json1_0DescribeEndpointsCommand)(t,r)}};ru.DescribeEndpointsCommand=SS});var ES=m(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.DescribeExportCommand=void 0;var t7=G(),r7=D(),c1=Y(),l1=Z(),wS=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,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:c1.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:c1.DescribeExportOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,l1.serializeAws_json1_0DescribeExportCommand)(t,r)}deserialize(t,r){return(0,l1.deserializeAws_json1_0DescribeExportCommand)(t,r)}};iu.DescribeExportCommand=wS});var AS=m(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.DescribeGlobalTableCommand=void 0;var n7=G(),i7=D(),d1=Y(),u1=Z(),bS=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,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:d1.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:d1.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,u1.serializeAws_json1_0DescribeGlobalTableCommand)(t,r)}deserialize(t,r){return(0,u1.deserializeAws_json1_0DescribeGlobalTableCommand)(t,r)}};su.DescribeGlobalTableCommand=bS});var CS=m(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.DescribeGlobalTableSettingsCommand=void 0;var s7=G(),o7=D(),f1=Y(),m1=Z(),TS=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,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:f1.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:f1.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,m1.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,r)}deserialize(t,r){return(0,m1.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,r)}};ou.DescribeGlobalTableSettingsCommand=TS});var IS=m(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.DescribeKinesisStreamingDestinationCommand=void 0;var a7=G(),c7=D(),p1=Y(),_1=Z(),xS=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,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:p1.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:p1.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,_1.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,_1.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,r)}};au.DescribeKinesisStreamingDestinationCommand=xS});var NS=m(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.DescribeLimitsCommand=void 0;var l7=G(),d7=D(),h1=Y(),y1=Z(),RS=class extends d7.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,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:h1.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:h1.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,y1.serializeAws_json1_0DescribeLimitsCommand)(t,r)}deserialize(t,r){return(0,y1.deserializeAws_json1_0DescribeLimitsCommand)(t,r)}};cu.DescribeLimitsCommand=RS});var Ma=m(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.DescribeTableCommand=void 0;var u7=G(),f7=D(),g1=Y(),v1=Z(),PS=class extends f7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,u7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:g1.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:g1.DescribeTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,v1.serializeAws_json1_0DescribeTableCommand)(t,r)}deserialize(t,r){return(0,v1.deserializeAws_json1_0DescribeTableCommand)(t,r)}};lu.DescribeTableCommand=PS});var OS=m(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.DescribeTableReplicaAutoScalingCommand=void 0;var m7=G(),p7=D(),S1=Y(),w1=Z(),DS=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,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:S1.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:S1.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,w1.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,r)}deserialize(t,r){return(0,w1.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,r)}};du.DescribeTableReplicaAutoScalingCommand=DS});var qS=m(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.DescribeTimeToLiveCommand=void 0;var _7=G(),h7=D(),E1=Y(),b1=Z(),LS=class extends h7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,_7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:E1.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:E1.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,b1.serializeAws_json1_0DescribeTimeToLiveCommand)(t,r)}deserialize(t,r){return(0,b1.deserializeAws_json1_0DescribeTimeToLiveCommand)(t,r)}};uu.DescribeTimeToLiveCommand=LS});var zS=m(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.DisableKinesisStreamingDestinationCommand=void 0;var y7=G(),g7=D(),A1=Y(),T1=Z(),MS=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,l={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:A1.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:A1.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,T1.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,T1.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,r)}};fu.DisableKinesisStreamingDestinationCommand=MS});var kS=m(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.EnableKinesisStreamingDestinationCommand=void 0;var v7=G(),S7=D(),C1=Y(),x1=Z(),jS=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,l={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:C1.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:C1.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,x1.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,x1.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,r)}};mu.EnableKinesisStreamingDestinationCommand=jS});var US=m(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.ExecuteStatementCommand=void 0;var w7=G(),E7=D(),I1=Y(),R1=Z(),FS=class extends E7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,w7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:I1.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:I1.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,R1.serializeAws_json1_0ExecuteStatementCommand)(t,r)}deserialize(t,r){return(0,R1.deserializeAws_json1_0ExecuteStatementCommand)(t,r)}};pu.ExecuteStatementCommand=FS});var GS=m(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.ExecuteTransactionCommand=void 0;var b7=G(),A7=D(),N1=Y(),P1=Z(),BS=class extends A7.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,l={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:N1.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:N1.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,P1.serializeAws_json1_0ExecuteTransactionCommand)(t,r)}deserialize(t,r){return(0,P1.deserializeAws_json1_0ExecuteTransactionCommand)(t,r)}};_u.ExecuteTransactionCommand=BS});var VS=m(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.ExportTableToPointInTimeCommand=void 0;var T7=G(),C7=D(),D1=Y(),O1=Z(),$S=class extends C7.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,l={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:D1.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:D1.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,O1.serializeAws_json1_0ExportTableToPointInTimeCommand)(t,r)}deserialize(t,r){return(0,O1.deserializeAws_json1_0ExportTableToPointInTimeCommand)(t,r)}};hu.ExportTableToPointInTimeCommand=$S});var HS=m(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.GetItemCommand=void 0;var x7=G(),I7=D(),L1=Y(),q1=Z(),KS=class extends I7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,x7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:L1.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:L1.GetItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,q1.serializeAws_json1_0GetItemCommand)(t,r)}deserialize(t,r){return(0,q1.deserializeAws_json1_0GetItemCommand)(t,r)}};yu.GetItemCommand=KS});var JS=m(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.ListBackupsCommand=void 0;var R7=G(),N7=D(),M1=Y(),z1=Z(),WS=class extends N7.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,l={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:M1.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:M1.ListBackupsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,z1.serializeAws_json1_0ListBackupsCommand)(t,r)}deserialize(t,r){return(0,z1.deserializeAws_json1_0ListBackupsCommand)(t,r)}};gu.ListBackupsCommand=WS});var Su=m(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.ListContributorInsightsCommand=void 0;var P7=G(),D7=D(),j1=Y(),k1=Z(),YS=class extends D7.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,l={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:j1.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:j1.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,k1.serializeAws_json1_0ListContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,k1.deserializeAws_json1_0ListContributorInsightsCommand)(t,r)}};vu.ListContributorInsightsCommand=YS});var Eu=m(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.ListExportsCommand=void 0;var O7=G(),L7=D(),F1=Y(),U1=Z(),QS=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,l={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:F1.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:F1.ListExportsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,U1.serializeAws_json1_0ListExportsCommand)(t,r)}deserialize(t,r){return(0,U1.deserializeAws_json1_0ListExportsCommand)(t,r)}};wu.ListExportsCommand=QS});var ZS=m(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.ListGlobalTablesCommand=void 0;var q7=G(),M7=D(),B1=Y(),G1=Z(),XS=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,l={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:B1.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:B1.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,G1.serializeAws_json1_0ListGlobalTablesCommand)(t,r)}deserialize(t,r){return(0,G1.deserializeAws_json1_0ListGlobalTablesCommand)(t,r)}};bu.ListGlobalTablesCommand=XS});var Tu=m(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.ListTablesCommand=void 0;var z7=G(),j7=D(),$1=Y(),V1=Z(),ew=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,l={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:$1.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:$1.ListTablesOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,V1.serializeAws_json1_0ListTablesCommand)(t,r)}deserialize(t,r){return(0,V1.deserializeAws_json1_0ListTablesCommand)(t,r)}};Au.ListTablesCommand=ew});var rw=m(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.ListTagsOfResourceCommand=void 0;var k7=G(),F7=D(),K1=Y(),H1=Z(),tw=class extends F7.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,l={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:K1.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:K1.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,H1.serializeAws_json1_0ListTagsOfResourceCommand)(t,r)}deserialize(t,r){return(0,H1.deserializeAws_json1_0ListTagsOfResourceCommand)(t,r)}};Cu.ListTagsOfResourceCommand=tw});var iw=m(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.PutItemCommand=void 0;var U7=G(),B7=D(),W1=Y(),J1=Z(),nw=class extends B7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,U7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:W1.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:W1.PutItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,J1.serializeAws_json1_0PutItemCommand)(t,r)}deserialize(t,r){return(0,J1.deserializeAws_json1_0PutItemCommand)(t,r)}};xu.PutItemCommand=nw});var Ru=m(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.QueryCommand=void 0;var G7=G(),$7=D(),Y1=Y(),Q1=Z(),sw=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,l={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:Y1.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:Y1.QueryOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,Q1.serializeAws_json1_0QueryCommand)(t,r)}deserialize(t,r){return(0,Q1.deserializeAws_json1_0QueryCommand)(t,r)}};Iu.QueryCommand=sw});var aw=m(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.RestoreTableFromBackupCommand=void 0;var V7=G(),K7=D(),X1=Y(),Z1=Z(),ow=class extends K7.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,l={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:X1.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:X1.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,Z1.serializeAws_json1_0RestoreTableFromBackupCommand)(t,r)}deserialize(t,r){return(0,Z1.deserializeAws_json1_0RestoreTableFromBackupCommand)(t,r)}};Nu.RestoreTableFromBackupCommand=ow});var lw=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.RestoreTableToPointInTimeCommand=void 0;var H7=G(),W7=D(),eR=Y(),tR=Z(),cw=class extends W7.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,l={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:eR.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:eR.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,tR.serializeAws_json1_0RestoreTableToPointInTimeCommand)(t,r)}deserialize(t,r){return(0,tR.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(t,r)}};Pu.RestoreTableToPointInTimeCommand=cw});var Ou=m(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.ScanCommand=void 0;var J7=G(),Y7=D(),rR=Y(),nR=Z(),dw=class extends Y7.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,J7.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:rR.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:rR.ScanOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,nR.serializeAws_json1_0ScanCommand)(t,r)}deserialize(t,r){return(0,nR.deserializeAws_json1_0ScanCommand)(t,r)}};Du.ScanCommand=dw});var fw=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.TagResourceCommand=void 0;var Q7=G(),X7=D(),Z7=Y(),iR=Z(),uw=class extends X7.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,l={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:Z7.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,iR.serializeAws_json1_0TagResourceCommand)(t,r)}deserialize(t,r){return(0,iR.deserializeAws_json1_0TagResourceCommand)(t,r)}};Lu.TagResourceCommand=uw});var pw=m(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.TransactGetItemsCommand=void 0;var eX=G(),tX=D(),sR=Y(),oR=Z(),mw=class extends tX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,eX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:sR.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:sR.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,oR.serializeAws_json1_0TransactGetItemsCommand)(t,r)}deserialize(t,r){return(0,oR.deserializeAws_json1_0TransactGetItemsCommand)(t,r)}};qu.TransactGetItemsCommand=mw});var hw=m(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.TransactWriteItemsCommand=void 0;var rX=G(),nX=D(),aR=Y(),cR=Z(),_w=class extends nX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,rX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:aR.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:aR.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,cR.serializeAws_json1_0TransactWriteItemsCommand)(t,r)}deserialize(t,r){return(0,cR.deserializeAws_json1_0TransactWriteItemsCommand)(t,r)}};Mu.TransactWriteItemsCommand=_w});var gw=m(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.UntagResourceCommand=void 0;var iX=G(),sX=D(),oX=Y(),lR=Z(),yw=class extends sX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,iX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:oX.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,lR.serializeAws_json1_0UntagResourceCommand)(t,r)}deserialize(t,r){return(0,lR.deserializeAws_json1_0UntagResourceCommand)(t,r)}};zu.UntagResourceCommand=yw});var Sw=m(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.UpdateContinuousBackupsCommand=void 0;var aX=G(),cX=D(),dR=Y(),uR=Z(),vw=class extends cX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,aX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:dR.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:dR.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,uR.serializeAws_json1_0UpdateContinuousBackupsCommand)(t,r)}deserialize(t,r){return(0,uR.deserializeAws_json1_0UpdateContinuousBackupsCommand)(t,r)}};ju.UpdateContinuousBackupsCommand=vw});var Ew=m(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.UpdateContributorInsightsCommand=void 0;var lX=G(),dX=D(),fR=Y(),mR=Z(),ww=class extends dX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,lX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:fR.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:fR.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,mR.serializeAws_json1_0UpdateContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,mR.deserializeAws_json1_0UpdateContributorInsightsCommand)(t,r)}};ku.UpdateContributorInsightsCommand=ww});var Aw=m(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.UpdateGlobalTableCommand=void 0;var uX=G(),fX=D(),pR=Y(),_R=Z(),bw=class extends fX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,uX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:pR.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:pR.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,_R.serializeAws_json1_0UpdateGlobalTableCommand)(t,r)}deserialize(t,r){return(0,_R.deserializeAws_json1_0UpdateGlobalTableCommand)(t,r)}};Fu.UpdateGlobalTableCommand=bw});var Cw=m(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.UpdateGlobalTableSettingsCommand=void 0;var mX=G(),pX=D(),hR=Y(),yR=Z(),Tw=class extends pX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,mX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:hR.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:hR.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,yR.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,r)}deserialize(t,r){return(0,yR.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,r)}};Uu.UpdateGlobalTableSettingsCommand=Tw});var Iw=m(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.UpdateItemCommand=void 0;var _X=G(),hX=D(),gR=Y(),vR=Z(),xw=class extends hX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,_X.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:gR.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:gR.UpdateItemOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,vR.serializeAws_json1_0UpdateItemCommand)(t,r)}deserialize(t,r){return(0,vR.deserializeAws_json1_0UpdateItemCommand)(t,r)}};Bu.UpdateItemCommand=xw});var Nw=m(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.UpdateTableCommand=void 0;var yX=G(),gX=D(),SR=Y(),wR=Z(),Rw=class extends gX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,yX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:SR.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:SR.UpdateTableOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,wR.serializeAws_json1_0UpdateTableCommand)(t,r)}deserialize(t,r){return(0,wR.deserializeAws_json1_0UpdateTableCommand)(t,r)}};Gu.UpdateTableCommand=Rw});var Dw=m($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.UpdateTableReplicaAutoScalingCommand=void 0;var vX=G(),SX=D(),ER=Y(),bR=Z(),Pw=class extends SX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,vX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:ER.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:ER.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,bR.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,r)}deserialize(t,r){return(0,bR.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,r)}};$u.UpdateTableReplicaAutoScalingCommand=Pw});var Lw=m(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.UpdateTimeToLiveCommand=void 0;var wX=G(),EX=D(),AR=Y(),TR=Z(),Ow=class extends EX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,wX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:AR.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:AR.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,TR.serializeAws_json1_0UpdateTimeToLiveCommand)(t,r)}deserialize(t,r){return(0,TR.deserializeAws_json1_0UpdateTimeToLiveCommand)(t,r)}};Vu.UpdateTimeToLiveCommand=Ow});var CR=m(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.booleanSelector=Li.SelectorType=void 0;var bX;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(bX=Li.SelectorType||(Li.SelectorType={}));var AX=(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]}.`)}};Li.booleanSelector=AX});var Mw=m(qw=>{"use strict";Object.defineProperty(qw,"__esModule",{value:!0});var TX=$();TX.__exportStar(CR(),qw)});var xR=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Zt.DEFAULT_USE_DUALSTACK_ENDPOINT=Zt.CONFIG_USE_DUALSTACK_ENDPOINT=Zt.ENV_USE_DUALSTACK_ENDPOINT=void 0;var Ku=Mw();Zt.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";Zt.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";Zt.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;Zt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Ku.booleanSelector)(e,Zt.ENV_USE_DUALSTACK_ENDPOINT,Ku.SelectorType.ENV),configFileSelector:e=>(0,Ku.booleanSelector)(e,Zt.CONFIG_USE_DUALSTACK_ENDPOINT,Ku.SelectorType.CONFIG),default:!1}});var IR=m(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=er.DEFAULT_USE_FIPS_ENDPOINT=er.CONFIG_USE_FIPS_ENDPOINT=er.ENV_USE_FIPS_ENDPOINT=void 0;var Hu=Mw();er.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";er.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";er.DEFAULT_USE_FIPS_ENDPOINT=!1;er.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Hu.booleanSelector)(e,er.ENV_USE_FIPS_ENDPOINT,Hu.SelectorType.ENV),configFileSelector:e=>(0,Hu.booleanSelector)(e,er.CONFIG_USE_FIPS_ENDPOINT,Hu.SelectorType.CONFIG),default:!1}});var RR=m(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.normalizeProvider=void 0;var CX=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};Wu.normalizeProvider=CX});var za=m(zw=>{"use strict";Object.defineProperty(zw,"__esModule",{value:!0});var xX=$();xX.__exportStar(RR(),zw)});var PR=m(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.resolveCustomEndpointsConfig=void 0;var NR=za(),IX=e=>{var t;let{endpoint:r,urlParser:n}=e;return y(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:(0,NR.normalizeProvider)(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:(0,NR.normalizeProvider)(e.useDualstackEndpoint)})};Ju.resolveCustomEndpointsConfig=IX});var DR=m(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.getEndpointFromRegion=void 0;var RX=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(),a=await e.useFipsEndpoint(),{hostname:c}=(t=await e.regionInfoProvider(n,{useDualstackEndpoint:s,useFipsEndpoint:a}))!==null&&t!==void 0?t:{};if(!c)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${r?"https:":"http:"}//${c}`)};Yu.getEndpointFromRegion=RX});var LR=m(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.resolveEndpointsConfig=void 0;var OR=za(),NX=DR(),PX=e=>{var t;let r=(0,OR.normalizeProvider)(e.useDualstackEndpoint),{endpoint:n,useFipsEndpoint:i,urlParser:s}=e;return y(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:n?(0,OR.normalizeProvider)(typeof n=="string"?s(n):n):()=>(0,NX.getEndpointFromRegion)(y(o({},e),{useDualstackEndpoint:r,useFipsEndpoint:i})),isCustomEndpoint:!!n,useDualstackEndpoint:r})};Qu.resolveEndpointsConfig=PX});var qR=m(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});var Xu=$();Xu.__exportStar(xR(),js);Xu.__exportStar(IR(),js);Xu.__exportStar(PR(),js);Xu.__exportStar(LR(),js)});var MR=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.NODE_REGION_CONFIG_FILE_OPTIONS=tr.NODE_REGION_CONFIG_OPTIONS=tr.REGION_INI_NAME=tr.REGION_ENV_NAME=void 0;tr.REGION_ENV_NAME="AWS_REGION";tr.REGION_INI_NAME="region";tr.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[tr.REGION_ENV_NAME],configFileSelector:e=>e[tr.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};tr.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var jw=m(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.isFipsRegion=void 0;var DX=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Zu.isFipsRegion=DX});var zR=m(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.getRealRegion=void 0;var OX=jw(),LX=e=>(0,OX.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;ef.getRealRegion=LX});var kR=m(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.resolveRegionConfig=void 0;var jR=zR(),qX=jw(),MX=e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return y(o({},e),{region:async()=>{if(typeof t=="string")return(0,jR.getRealRegion)(t);let n=await t();return(0,jR.getRealRegion)(n)},useFipsEndpoint:async()=>{let n=typeof t=="string"?t:await t();return(0,qX.isFipsRegion)(n)?!0:typeof r=="boolean"?Promise.resolve(r):r()}})};tf.resolveRegionConfig=MX});var UR=m(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var FR=$();FR.__exportStar(MR(),rf);FR.__exportStar(kR(),rf)});var GR=m(BR=>{"use strict";Object.defineProperty(BR,"__esModule",{value:!0})});var VR=m($R=>{"use strict";Object.defineProperty($R,"__esModule",{value:!0})});var KR=m(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.getHostnameFromVariants=void 0;var zX=(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};nf.getHostnameFromVariants=zX});var HR=m(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.getResolvedHostname=void 0;var jX=(e,{regionHostname:t,partitionHostname:r})=>t||(r?r.replace("{region}",e):void 0);sf.getResolvedHostname=jX});var WR=m(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.getResolvedPartition=void 0;var kX=(e,{partitionHash:t})=>{var r;return(r=Object.keys(t||{}).find(n=>t[n].regions.includes(e)))!==null&&r!==void 0?r:"aws"};of.getResolvedPartition=kX});var JR=m(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.getResolvedSigningRegion=void 0;var FX=(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)}};af.getResolvedSigningRegion=FX});var QR=m(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.getRegionInfo=void 0;var YR=KR(),UX=HR(),BX=WR(),GX=JR(),$X=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:i,partitionHash:s})=>{var a,c,l,u,f,h;let p=(0,BX.getResolvedPartition)(e,{partitionHash:s}),v=e in i?e:(c=(a=s[p])===null||a===void 0?void 0:a.endpoint)!==null&&c!==void 0?c:e,S={useFipsEndpoint:t,useDualstackEndpoint:r},g=(0,YR.getHostnameFromVariants)((l=i[v])===null||l===void 0?void 0:l.variants,S),C=(0,YR.getHostnameFromVariants)((u=s[p])===null||u===void 0?void 0:u.variants,S),P=(0,UX.getResolvedHostname)(v,{regionHostname:g,partitionHostname:C});if(P===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:v,useFipsEndpoint:t,useDualstackEndpoint:r}}`);let x=(0,GX.getResolvedSigningRegion)(P,{signingRegion:(f=i[v])===null||f===void 0?void 0:f.signingRegion,regionRegex:s[p].regionRegex,useFipsEndpoint:t});return o(o({partition:p,signingService:n,hostname:P},x&&{signingRegion:x}),((h=i[v])===null||h===void 0?void 0:h.signingService)&&{signingService:i[v].signingService})};cf.getRegionInfo=$X});var XR=m(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var kw=$();kw.__exportStar(GR(),ja);kw.__exportStar(VR(),ja);kw.__exportStar(QR(),ja)});var Rt=m(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var Fw=$();Fw.__exportStar(qR(),ka);Fw.__exportStar(UR(),ka);Fw.__exportStar(XR(),ka)});var Fa=m(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.getContentLengthPlugin=mn.contentLengthMiddlewareOptions=mn.contentLengthMiddleware=void 0;var VX=It(),ZR="content-length";function eN(e){return t=>async r=>{let n=r.request;if(VX.HttpRequest.isInstance(n)){let{body:i,headers:s}=n;if(i&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(ZR)===-1)try{let a=e(i);n.headers=y(o({},n.headers),{[ZR]:String(a)})}catch{}}return t(y(o({},r),{request:n}))}}mn.contentLengthMiddleware=eN;mn.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var KX=e=>({applyToStack:t=>{t.add(eN(e.bodyLengthChecker),mn.contentLengthMiddlewareOptions)}});mn.getContentLengthPlugin=KX});var nN=m(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var tN=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],Uw="endpoint_discovery_enabled",rN=e=>["false","0"].indexOf(e)>=0;lf.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!rN(n)}}},configFileSelector:e=>{if(Uw in e){let t=e[Uw];if(t===void 0)throw Error(`Shared config entry ${Uw} can't be undefined, got "${t}"`);return!rN(t)}},default:void 0}});var iN=m(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.getCacheKey=void 0;var HX=async(e,t,r)=>{let{accessKeyId:n}=await t.credentials(),{identifiers:i}=r;return JSON.stringify(o(o({},n&&{accessKeyId:n}),i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[a,c])=>y(o({},s),{[a]:c}),{})}))};df.getCacheKey=HX});var sN=m(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.updateDiscoveredEndpointInCache=void 0;var pn={},WX=async(e,t)=>new Promise((r,n)=>{let{endpointCache:i}=e,{cacheKey:s,commandName:a,identifiers:c}=t,l=i.get(s);if(l&&l.length===1&&l[0].Address==="")t.isDiscoveredEndpointRequired?(pn[s]||(pn[s]=[]),pn[s].push({resolve:r,reject:n})):r();else if(l&&l.length>0)r();else{let u=[{Address:"",CachePeriodInMinutes:1}];i.set(s,u);let f=new t.endpointDiscoveryCommandCtor({Operation:a.slice(0,-7),Identifiers:c});f.resolveMiddleware(t.clientStack,e,t.options)(f).then(p=>{i.set(s,p.output.Endpoints),pn[s]&&(pn[s].forEach(({resolve:v})=>{v()}),delete pn[s]),r()}).catch(p=>{var v;(p.name==="InvalidEndpointException"||((v=p.$metadata)===null||v===void 0?void 0:v.httpStatusCode)===421)&&i.delete(s);let S=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:p});pn[s]&&(pn[s].forEach(({reject:g})=>{g(S)}),delete pn[s]),t.isDiscoveredEndpointRequired?n(S):(i.set(s,u),r())})}});uf.updateDiscoveredEndpointInCache=WX});var aN=m(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.endpointDiscoveryMiddleware=void 0;var JX=It(),YX=iN(),oN=sN(),QX=(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:a,identifiers:c}=t,{clientName:l,commandName:u}=n,f=await e.endpointDiscoveryEnabled(),h=await(0,YX.getCacheKey)(u,e,{identifiers:c});if(a){if(f===!1)throw new Error(`Endpoint Discovery is disabled but ${u} on ${l} requires it. Please check your configurations.`);await(0,oN.updateDiscoveredEndpointInCache)(e,y(o({},t),{commandName:u,cacheKey:h,endpointDiscoveryCommandCtor:s}))}else f&&(0,oN.updateDiscoveredEndpointInCache)(e,y(o({},t),{commandName:u,cacheKey:h,endpointDiscoveryCommandCtor:s}));let{request:p}=i;if(h&&JX.HttpRequest.isInstance(p)){let v=e.endpointCache.getEndpoint(h);v&&(p.hostname=v)}return r(i)};ff.endpointDiscoveryMiddleware=QX});var cN=m($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.getEndpointDiscoveryOptionalPlugin=$t.getEndpointDiscoveryRequiredPlugin=$t.getEndpointDiscoveryPlugin=$t.endpointDiscoveryMiddlewareOptions=void 0;var Bw=aN();$t.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var XX=(e,t)=>({applyToStack:r=>{r.add((0,Bw.endpointDiscoveryMiddleware)(e,t),$t.endpointDiscoveryMiddlewareOptions)}});$t.getEndpointDiscoveryPlugin=XX;var ZX=(e,t)=>({applyToStack:r=>{r.add((0,Bw.endpointDiscoveryMiddleware)(e,y(o({},t),{isDiscoveredEndpointRequired:!0})),$t.endpointDiscoveryMiddlewareOptions)}});$t.getEndpointDiscoveryRequiredPlugin=ZX;var eZ=(e,t)=>({applyToStack:r=>{r.add((0,Bw.endpointDiscoveryMiddleware)(e,y(o({},t),{isDiscoveredEndpointRequired:!1})),$t.endpointDiscoveryMiddlewareOptions)}});$t.getEndpointDiscoveryOptionalPlugin=eZ});var dN=m(lN=>{"use strict";Object.defineProperty(lN,"__esModule",{value:!0})});var fN=m((yIe,uN)=>{function _n(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}_n.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(_n.prototype[Symbol.iterator]=function(){return this});_n.of=function(){var e=arguments,t=e.length,r=0;return new _n(function(){return r>=t?{done:!0}:{done:!1,value:e[r++]}})};_n.empty=function(){var e=new _n(null);return e.done=!0,e};_n.is=function(e){return e instanceof _n?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};uN.exports=_n});var Gw=m((gIe,hN)=>{var mN=typeof ArrayBuffer<"u",pN=typeof Symbol<"u";function _N(e,t){var r,n,i,s,a;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)||mN&&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(pN&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;a=r.next(),a.done!==!0;)t(a.value,i),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)}_N.forEachWithNullKeys=function(e,t){var r,n,i,s,a;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)||mN&&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(c){t(c,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(pN&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;a=r.next(),a.done!==!0;)t(a.value,null),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)};hN.exports=_N});var $w=m(br=>{var tZ=Math.pow(2,8)-1,rZ=Math.pow(2,16)-1,nZ=Math.pow(2,32)-1,iZ=Math.pow(2,7)-1,sZ=Math.pow(2,15)-1,oZ=Math.pow(2,31)-1;br.getPointerArray=function(e){var t=e-1;return t<=tZ?Uint8Array:t<=rZ?Uint16Array:t<=nZ?Uint32Array:Float64Array};br.getSignedPointerArray=function(e){var t=e-1;return t<=iZ?Int8Array:t<=sZ?Int16Array:t<=oZ?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 aZ={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,a,c,l;for(c=0,l=e.length;c<l;c++)a=t?t(e[c]):e[c],s=br.getNumberType(a),i=aZ[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 vN=m(Ua=>{var yN=Gw(),gN=$w();function cZ(e){return Array.isArray(e)||gN.isTypedArray(e)}function Vw(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function lZ(e){var t=Vw(e),r=typeof t=="number"?new Array(t):[],n=0;return yN(e,function(i){r[n++]=i}),r}function dZ(e){var t=Vw(e),r=typeof t=="number"?gN.getPointerArray(t):Array,n=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new r(t):[],s=0;return yN(e,function(a){n[s]=a,i[s]=s++}),[n,i]}Ua.isArrayLike=cZ;Ua.guessLength=Vw;Ua.toArray=lZ;Ua.toArrayWithIndices=dZ});var wN=m((wIe,SN)=>{var Kw=fN(),uZ=Gw(),fZ=$w(),mZ=vN();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=fZ.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,a=this.V,c=this.forward;r<n;)e.call(t,a[i],s[i],this),i=c[i],r++};He.prototype.keys=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.forward;return new Kw(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 Kw(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 Kw(function(){if(e>=t)return{done:!0};var a=n[r],c=i[r];return e++,e<t&&(r=s[r]),{done:!1,value:[a,c]}})};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=mZ.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 uZ(e,function(s,a){i.set(a,s)}),i};SN.exports=He});var EN=m(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.EndpointCache=void 0;var pZ=$(),_Z=pZ.__importDefault(wN()),Hw=class{constructor(t){this.cache=new _Z.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()}};mf.EndpointCache=Hw});var AN=m(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var bN=$();bN.__exportStar(dN(),pf);bN.__exportStar(EN(),pf)});var TN=m(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.resolveEndpointDiscoveryConfig=void 0;var hZ=AN(),yZ=(e,{endpointDiscoveryCommandCtor:t})=>{var r;return y(o({},e),{endpointDiscoveryCommandCtor:t,endpointCache:new hZ.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})};_f.resolveEndpointDiscoveryConfig=yZ});var Jw=m(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var Ww=$();Ww.__exportStar(nN(),Ba);Ww.__exportStar(cN(),Ba);Ww.__exportStar(TN(),Ba)});var Ga=m(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.getHostHeaderPlugin=rr.hostHeaderMiddlewareOptions=rr.hostHeaderMiddleware=rr.resolveHostHeaderConfig=void 0;var gZ=It();function vZ(e){return e}rr.resolveHostHeaderConfig=vZ;var SZ=e=>t=>async r=>{if(!gZ.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)};rr.hostHeaderMiddleware=SZ;rr.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var wZ=e=>({applyToStack:t=>{t.add((0,rr.hostHeaderMiddleware)(e),rr.hostHeaderMiddlewareOptions)}});rr.getHostHeaderPlugin=wZ});var CN=m(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.getLoggerPlugin=Ar.loggerMiddlewareOptions=Ar.loggerMiddleware=void 0;var EZ=()=>(e,t)=>async r=>{let{clientName:n,commandName:i,inputFilterSensitiveLog:s,logger:a,outputFilterSensitiveLog:c}=t,l=await e(r);if(!a)return l;if(typeof a.info=="function"){let u=l.output,{$metadata:f}=u,h=Gn(u,["$metadata"]);a.info({clientName:n,commandName:i,input:s(r.input),output:c(h),metadata:f})}return l};Ar.loggerMiddleware=EZ;Ar.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var bZ=e=>({applyToStack:t=>{t.add((0,Ar.loggerMiddleware)(),Ar.loggerMiddlewareOptions)}});Ar.getLoggerPlugin=bZ});var $a=m(Yw=>{"use strict";Object.defineProperty(Yw,"__esModule",{value:!0});var AZ=$();AZ.__exportStar(CN(),Yw)});var Va=m(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.DEFAULT_RETRY_MODE=hn.DEFAULT_MAX_ATTEMPTS=hn.RETRY_MODES=void 0;var xN;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(xN=hn.RETRY_MODES||(hn.RETRY_MODES={}));hn.DEFAULT_MAX_ATTEMPTS=3;hn.DEFAULT_RETRY_MODE=xN.STANDARD});var IN=m(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.TRANSIENT_ERROR_STATUS_CODES=Tr.TRANSIENT_ERROR_CODES=Tr.THROTTLING_ERROR_CODES=Tr.CLOCK_SKEW_ERROR_CODES=void 0;Tr.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];Tr.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];Tr.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];Tr.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var yf=m(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.isTransientError=Cr.isThrottlingError=Cr.isClockSkewError=Cr.isRetryableByTrait=void 0;var hf=IN(),TZ=e=>e.$retryable!==void 0;Cr.isRetryableByTrait=TZ;var CZ=e=>hf.CLOCK_SKEW_ERROR_CODES.includes(e.name);Cr.isClockSkewError=CZ;var xZ=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};Cr.isThrottlingError=xZ;var IZ=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)};Cr.isTransientError=IZ});var Xw=m(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.DefaultRateLimiter=void 0;var RZ=yf(),Qw=class{constructor(t){var r,n,i,s,a;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=(a=t==null?void 0:t.smooth)!==null&&a!==void 0?a:.8;let c=this.getCurrentTimeInSeconds();this.lastThrottleTime=c,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,RZ.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))}};gf.DefaultRateLimiter=Qw});var Ka=m(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.REQUEST_HEADER=We.INVOCATION_ID_HEADER=We.NO_RETRY_INCREMENT=We.TIMEOUT_RETRY_COST=We.RETRY_COST=We.INITIAL_RETRY_TOKENS=We.THROTTLING_RETRY_DELAY_BASE=We.MAXIMUM_RETRY_DELAY=We.DEFAULT_RETRY_DELAY_BASE=void 0;We.DEFAULT_RETRY_DELAY_BASE=100;We.MAXIMUM_RETRY_DELAY=20*1e3;We.THROTTLING_RETRY_DELAY_BASE=500;We.INITIAL_RETRY_TOKENS=500;We.RETRY_COST=5;We.TIMEOUT_RETRY_COST=10;We.NO_RETRY_INCREMENT=1;We.INVOCATION_ID_HEADER="amz-sdk-invocation-id";We.REQUEST_HEADER="amz-sdk-request"});var RN=m(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.getDefaultRetryQuota=void 0;var Zw=Ka(),NZ=(e,t)=>{var r,n,i;let s=e,a=(r=t==null?void 0:t.noRetryIncrement)!==null&&r!==void 0?r:Zw.NO_RETRY_INCREMENT,c=(n=t==null?void 0:t.retryCost)!==null&&n!==void 0?n:Zw.RETRY_COST,l=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:Zw.TIMEOUT_RETRY_COST,u=e,f=S=>S.name==="TimeoutError"?l:c,h=S=>f(S)<=u;return Object.freeze({hasRetryTokens:h,retrieveRetryTokens:S=>{if(!h(S))throw new Error("No retry token available");let g=f(S);return u-=g,g},releaseRetryTokens:S=>{u+=S??a,u=Math.min(u,s)}})};vf.getDefaultRetryQuota=NZ});var e0=m(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.defaultDelayDecider=void 0;var PZ=Ka(),DZ=(e,t)=>Math.floor(Math.min(PZ.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));Sf.defaultDelayDecider=DZ});var t0=m(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.defaultRetryDecider=void 0;var wf=yf(),OZ=e=>e?(0,wf.isRetryableByTrait)(e)||(0,wf.isClockSkewError)(e)||(0,wf.isThrottlingError)(e)||(0,wf.isTransientError)(e):!1;Ef.defaultRetryDecider=OZ});var Af=m(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.StandardRetryStrategy=void 0;var NN=It(),LZ=yf(),qZ=Lv(),PN=Va(),Ha=Ka(),MZ=RN(),zZ=e0(),jZ=t0(),r0=class{constructor(t,r){var n,i,s;this.maxAttemptsProvider=t,this.mode=PN.RETRY_MODES.STANDARD,this.retryDecider=(n=r==null?void 0:r.retryDecider)!==null&&n!==void 0?n:jZ.defaultRetryDecider,this.delayDecider=(i=r==null?void 0:r.delayDecider)!==null&&i!==void 0?i:zZ.defaultDelayDecider,this.retryQuota=(s=r==null?void 0:r.retryQuota)!==null&&s!==void 0?s:(0,MZ.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=PN.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,r,n){let i,s=0,a=0,c=await this.getMaxAttempts(),{request:l}=r;for(NN.HttpRequest.isInstance(l)&&(l.headers[Ha.INVOCATION_ID_HEADER]=(0,qZ.v4)());;)try{NN.HttpRequest.isInstance(l)&&(l.headers[Ha.REQUEST_HEADER]=`attempt=${s+1}; max=${c}`),n!=null&&n.beforeRequest&&await n.beforeRequest();let{response:u,output:f}=await t(r);return n!=null&&n.afterRequest&&n.afterRequest(u),this.retryQuota.releaseRetryTokens(i),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=a,{response:u,output:f}}catch(u){let f=kZ(u);if(s++,this.shouldRetry(f,s,c)){i=this.retryQuota.retrieveRetryTokens(f);let h=this.delayDecider((0,LZ.isThrottlingError)(f)?Ha.THROTTLING_RETRY_DELAY_BASE:Ha.DEFAULT_RETRY_DELAY_BASE,s);a+=h,await new Promise(p=>setTimeout(p,h));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=a,f}}};bf.StandardRetryStrategy=r0;var kZ=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 i0=m(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.AdaptiveRetryStrategy=void 0;var FZ=Va(),UZ=Xw(),BZ=Af(),n0=class extends BZ.StandardRetryStrategy{constructor(t,r){let s=r??{},{rateLimiter:n}=s,i=Gn(s,["rateLimiter"]);super(t,i),this.rateLimiter=n??new UZ.DefaultRateLimiter,this.mode=FZ.RETRY_MODES.ADAPTIVE}async retry(t,r){return super.retry(t,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}};Tf.AdaptiveRetryStrategy=n0});var ON=m(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.NODE_RETRY_MODE_CONFIG_OPTIONS=Be.CONFIG_RETRY_MODE=Be.ENV_RETRY_MODE=Be.resolveRetryConfig=Be.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Be.CONFIG_MAX_ATTEMPTS=Be.ENV_MAX_ATTEMPTS=void 0;var DN=za(),GZ=i0(),Cf=Va(),$Z=Af();Be.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";Be.CONFIG_MAX_ATTEMPTS="max_attempts";Be.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[Be.ENV_MAX_ATTEMPTS];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${Be.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return r},configFileSelector:e=>{let t=e[Be.CONFIG_MAX_ATTEMPTS];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${Be.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return r},default:Cf.DEFAULT_MAX_ATTEMPTS};var VZ=e=>{var t;let r=(0,DN.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:Cf.DEFAULT_MAX_ATTEMPTS);return y(o({},e),{maxAttempts:r,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:await(0,DN.normalizeProvider)(e.retryMode)()===Cf.RETRY_MODES.ADAPTIVE?new GZ.AdaptiveRetryStrategy(r):new $Z.StandardRetryStrategy(r)})};Be.resolveRetryConfig=VZ;Be.ENV_RETRY_MODE="AWS_RETRY_MODE";Be.CONFIG_RETRY_MODE="retry_mode";Be.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Be.ENV_RETRY_MODE],configFileSelector:e=>e[Be.CONFIG_RETRY_MODE],default:Cf.DEFAULT_RETRY_MODE}});var qN=m(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.getOmitRetryHeadersPlugin=xr.omitRetryHeadersMiddlewareOptions=xr.omitRetryHeadersMiddleware=void 0;var KZ=It(),LN=Ka(),HZ=()=>e=>async t=>{let{request:r}=t;return KZ.HttpRequest.isInstance(r)&&(delete r.headers[LN.INVOCATION_ID_HEADER],delete r.headers[LN.REQUEST_HEADER]),e(t)};xr.omitRetryHeadersMiddleware=HZ;xr.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var WZ=e=>({applyToStack:t=>{t.addRelativeTo((0,xr.omitRetryHeadersMiddleware)(),xr.omitRetryHeadersMiddlewareOptions)}});xr.getOmitRetryHeadersPlugin=WZ});var MN=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.getRetryPlugin=Ir.retryMiddlewareOptions=Ir.retryMiddleware=void 0;var JZ=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)};Ir.retryMiddleware=JZ;Ir.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var YZ=e=>({applyToStack:t=>{t.add((0,Ir.retryMiddleware)(e),Ir.retryMiddlewareOptions)}});Ir.getRetryPlugin=YZ});var jN=m(zN=>{"use strict";Object.defineProperty(zN,"__esModule",{value:!0})});var yn=m(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var Rr=$();Rr.__exportStar(i0(),nr);Rr.__exportStar(Xw(),nr);Rr.__exportStar(Af(),nr);Rr.__exportStar(Va(),nr);Rr.__exportStar(ON(),nr);Rr.__exportStar(e0(),nr);Rr.__exportStar(qN(),nr);Rr.__exportStar(t0(),nr);Rr.__exportStar(MN(),nr);Rr.__exportStar(jN(),nr)});var If=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.ProviderError=void 0;var Wa=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,Wa.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};xf.ProviderError=Wa});var kN=m(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.CredentialsProviderError=void 0;var QZ=If(),Ja=class extends QZ.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Ja.prototype)}};Rf.CredentialsProviderError=Ja});var FN=m(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.chain=void 0;var XZ=If();function ZZ(...e){return()=>{let t=Promise.reject(new XZ.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}}Nf.chain=ZZ});var UN=m(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.fromStatic=void 0;var eee=e=>()=>Promise.resolve(e);Pf.fromStatic=eee});var BN=m(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.memoize=void 0;var tee=(e,t,r)=>{let n,i,s,a=!1,c=async()=>{i||(i=e());try{n=await i,s=!0,a=!1}finally{i=void 0}return n};return t===void 0?async l=>((!s||(l==null?void 0:l.forceRefresh))&&(n=await c()),n):async l=>((!s||(l==null?void 0:l.forceRefresh))&&(n=await c()),a?n:r&&!r(n)?(a=!0,n):(t(n)&&await c(),n))};Df.memoize=tee});var be=m(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var Ya=$();Ya.__exportStar(kN(),qi);Ya.__exportStar(If(),qi);Ya.__exportStar(FN(),qi);Ya.__exportStar(UN(),qi);Ya.__exportStar(BN(),qi)});var Of=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.toHex=ks.fromHex=void 0;var GN={},s0={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),GN[e]=t,s0[t]=e}function ree(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 s0)t[r/2]=s0[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}ks.fromHex=ree;function nee(e){let t="";for(let r=0;r<e.byteLength;r++)t+=GN[e[r]];return t}ks.toHex=nee});var Mi=m(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.MAX_PRESIGNED_TTL=K.KEY_TYPE_IDENTIFIER=K.MAX_CACHE_SIZE=K.UNSIGNED_PAYLOAD=K.EVENT_ALGORITHM_IDENTIFIER=K.ALGORITHM_IDENTIFIER_V4A=K.ALGORITHM_IDENTIFIER=K.UNSIGNABLE_PATTERNS=K.SEC_HEADER_PATTERN=K.PROXY_HEADER_PATTERN=K.ALWAYS_UNSIGNABLE_HEADERS=K.HOST_HEADER=K.TOKEN_HEADER=K.SHA256_HEADER=K.SIGNATURE_HEADER=K.GENERATED_HEADERS=K.DATE_HEADER=K.AMZ_DATE_HEADER=K.AUTH_HEADER=K.REGION_SET_PARAM=K.TOKEN_QUERY_PARAM=K.SIGNATURE_QUERY_PARAM=K.EXPIRES_QUERY_PARAM=K.SIGNED_HEADERS_QUERY_PARAM=K.AMZ_DATE_QUERY_PARAM=K.CREDENTIAL_QUERY_PARAM=K.ALGORITHM_QUERY_PARAM=void 0;K.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";K.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";K.AMZ_DATE_QUERY_PARAM="X-Amz-Date";K.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";K.EXPIRES_QUERY_PARAM="X-Amz-Expires";K.SIGNATURE_QUERY_PARAM="X-Amz-Signature";K.TOKEN_QUERY_PARAM="X-Amz-Security-Token";K.REGION_SET_PARAM="X-Amz-Region-Set";K.AUTH_HEADER="authorization";K.AMZ_DATE_HEADER=K.AMZ_DATE_QUERY_PARAM.toLowerCase();K.DATE_HEADER="date";K.GENERATED_HEADERS=[K.AUTH_HEADER,K.AMZ_DATE_HEADER,K.DATE_HEADER];K.SIGNATURE_HEADER=K.SIGNATURE_QUERY_PARAM.toLowerCase();K.SHA256_HEADER="x-amz-content-sha256";K.TOKEN_HEADER=K.TOKEN_QUERY_PARAM.toLowerCase();K.HOST_HEADER="host";K.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};K.PROXY_HEADER_PATTERN=/^proxy-/;K.SEC_HEADER_PATTERN=/^sec-/;K.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];K.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";K.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";K.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";K.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";K.MAX_CACHE_SIZE=50;K.KEY_TYPE_IDENTIFIER="aws4_request";K.MAX_PRESIGNED_TTL=60*60*24*7});var a0=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.clearCredentialCache=Qn.getSigningKey=Qn.createScope=void 0;var iee=Of(),o0=Mi(),Fs={},Lf=[],see=(e,t,r)=>`${e}/${t}/${r}/${o0.KEY_TYPE_IDENTIFIER}`;Qn.createScope=see;var oee=async(e,t,r,n,i)=>{let s=await $N(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${i}:${(0,iee.toHex)(s)}:${t.sessionToken}`;if(a in Fs)return Fs[a];for(Lf.push(a);Lf.length>o0.MAX_CACHE_SIZE;)delete Fs[Lf.shift()];let c=`AWS4${t.secretAccessKey}`;for(let l of[r,n,i,o0.KEY_TYPE_IDENTIFIER])c=await $N(e,c,l);return Fs[a]=c};Qn.getSigningKey=oee;var aee=()=>{Lf.length=0,Object.keys(Fs).forEach(e=>{delete Fs[e]})};Qn.clearCredentialCache=aee;var $N=(e,t,r)=>{let n=new e(t);return n.update(r),n.digest()}});var l0=m(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.getCanonicalHeaders=void 0;var c0=Mi(),cee=({headers:e},t,r)=>{let n={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in c0.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||c0.PROXY_HEADER_PATTERN.test(s)||c0.SEC_HEADER_PATTERN.test(s))&&(!r||r&&!r.has(s))||(n[s]=e[i].trim().replace(/\s+/g," "))}return n};qf.getCanonicalHeaders=cee});var d0=m(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.escapeUri=void 0;var lee=e=>encodeURIComponent(e).replace(/[!'()*]/g,dee);Mf.escapeUri=lee;var dee=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var VN=m(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.escapeUriPath=void 0;var uee=d0(),fee=e=>e.split("/").map(uee.escapeUri).join("/");zf.escapeUriPath=fee});var u0=m(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var KN=$();KN.__exportStar(d0(),jf);KN.__exportStar(VN(),jf)});var f0=m(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.getCanonicalQuery=void 0;var kf=u0(),mee=Mi(),pee=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e).sort()){if(n.toLowerCase()===mee.SIGNATURE_HEADER)continue;t.push(n);let i=e[n];typeof i=="string"?r[n]=`${(0,kf.escapeUri)(n)}=${(0,kf.escapeUri)(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).sort().reduce((s,a)=>s.concat([`${(0,kf.escapeUri)(n)}=${(0,kf.escapeUri)(a)}`]),[]).join("&"))}return t.map(n=>r[n]).filter(n=>n).join("&")};Ff.getCanonicalQuery=pee});var m0=m(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.isArrayBuffer=void 0;var _ee=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";Uf.isArrayBuffer=_ee});var p0=m(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.getPayloadHash=void 0;var hee=m0(),yee=Of(),HN=Mi(),gee=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===HN.SHA256_HEADER)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,hee.isArrayBuffer)(t)){let n=new r;return n.update(t),(0,yee.toHex)(await n.digest())}return HN.UNSIGNED_PAYLOAD};Bf.getPayloadHash=gee});var WN=m(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.deleteHeader=Xn.getHeaderValue=Xn.hasHeader=void 0;var vee=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1};Xn.hasHeader=vee;var See=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return t[r]};Xn.getHeaderValue=See;var wee=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))e===r.toLowerCase()&&delete t[r]};Xn.deleteHeader=wee});var _0=m(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.cloneQuery=zi.cloneRequest=void 0;var Eee=n=>{var i=n,{headers:e,query:t}=i,r=Gn(i,["headers","query"]);return y(o({},r),{headers:o({},e),query:t?(0,zi.cloneQuery)(t):void 0})};zi.cloneRequest=Eee;var bee=e=>Object.keys(e).reduce((t,r)=>{let n=e[r];return y(o({},t),{[r]:Array.isArray(n)?[...n]:n})},{});zi.cloneQuery=bee});var h0=m(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.moveHeadersToQuery=void 0;var Aee=_0(),Tee=(e,t={})=>{var r;let{headers:n,query:i={}}=typeof e.clone=="function"?e.clone():(0,Aee.cloneRequest)(e);for(let s of Object.keys(n)){let a=s.toLowerCase();a.slice(0,6)==="x-amz-"&&!(!((r=t.unhoistableHeaders)===null||r===void 0)&&r.has(a))&&(i[s]=n[s],delete n[s])}return y(o({},e),{headers:n,query:i})};Gf.moveHeadersToQuery=Tee});var y0=m($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.prepareRequest=void 0;var Cee=_0(),xee=Mi(),Iee=e=>{e=typeof e.clone=="function"?e.clone():(0,Cee.cloneRequest)(e);for(let t of Object.keys(e.headers))xee.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};$f.prepareRequest=Iee});var JN=m(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.toDate=ji.iso8601=void 0;var Ree=e=>(0,ji.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");ji.iso8601=Ree;var Nee=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;ji.toDate=Nee});var eP=m(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.SignatureV4=void 0;var Vf=Of(),YN=za(),ut=Mi(),Kf=a0(),QN=l0(),Pee=f0(),g0=p0(),Dee=WN(),Oee=h0(),XN=y0(),Lee=JN(),v0=class{constructor({applyChecksum:t,credentials:r,region:n,service:i,sha256:s,uriEscapePath:a=!0}){this.service=i,this.sha256=s,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=(0,YN.normalizeProvider)(n),this.credentialProvider=(0,YN.normalizeProvider)(r)}async presign(t,r={}){let{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:c,signingRegion:l,signingService:u}=r,f=await this.credentialProvider(),h=l??await this.regionProvider(),{longDate:p,shortDate:v}=Hf(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 S=(0,Kf.createScope)(v,h,u??this.service),g=(0,Oee.moveHeadersToQuery)((0,XN.prepareRequest)(t),{unhoistableHeaders:a});f.sessionToken&&(g.query[ut.TOKEN_QUERY_PARAM]=f.sessionToken),g.query[ut.ALGORITHM_QUERY_PARAM]=ut.ALGORITHM_IDENTIFIER,g.query[ut.CREDENTIAL_QUERY_PARAM]=`${f.accessKeyId}/${S}`,g.query[ut.AMZ_DATE_QUERY_PARAM]=p,g.query[ut.EXPIRES_QUERY_PARAM]=i.toString(10);let C=(0,QN.getCanonicalHeaders)(g,s,c);return g.query[ut.SIGNED_HEADERS_QUERY_PARAM]=ZN(C),g.query[ut.SIGNATURE_QUERY_PARAM]=await this.getSignature(p,S,this.getSigningKey(f,h,v,u),this.createCanonicalRequest(g,C,await(0,g0.getPayloadHash)(t,this.sha256))),g}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:a}){let c=s??await this.regionProvider(),{shortDate:l,longDate:u}=Hf(n),f=(0,Kf.createScope)(l,c,a??this.service),h=await(0,g0.getPayloadHash)({headers:{},body:r},this.sha256),p=new this.sha256;p.update(t);let v=(0,Vf.toHex)(await p.digest()),S=[ut.EVENT_ALGORITHM_IDENTIFIER,u,f,i,v,h].join(`
|
|
10
|
-
`);return this.signString(
|
|
9
|
+
More information can be found at: https://a.co/1l6FLnu`,"NodeDeprecationWarning"))};Vc.emitWarningIfUnsupportedVersion=RF});var ZE=f(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.decorateServiceException=Hi.ServiceException=void 0;var uo=class extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,uo.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}};Hi.ServiceException=uo;var DF=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,i])=>{(e[r]==null||e[r]==="")&&(e[r]=i)});let n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e};Hi.decorateServiceException=DF});var eA=f(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.extendedEncodeURIComponent=void 0;function NF(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}Kc.extendedEncodeURIComponent=NF});var tA=f(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.getArrayIfSingleItem=void 0;var PF=e=>Array.isArray(e)?e:[e];Wc.getArrayIfSingleItem=PF});var nA=f(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.getValueFromTextNode=void 0;var OF=e=>{let t="#text";for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=(0,fo.getValueFromTextNode)(e[n]));return e};fo.getValueFromTextNode=OF});var rA=f(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.LazyJsonString=pn.StringWrapper=void 0;var LF=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};pn.StringWrapper=LF;pn.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:pn.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(pn.StringWrapper,String);var si=class extends pn.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof si?t:t instanceof String||typeof t=="string"?new si(t):new si(JSON.stringify(t))}};pn.LazyJsonString=si});var iA=f(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.serializeFloat=void 0;var qF=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};Hc.serializeFloat=qF});var sA=f(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.splitEvery=void 0;function MF(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");let r=e.split(t);if(n===1)return r;let i=[],s="";for(let o=0;o<r.length;o++)s===""?s=r[o]:s+=t+r[o],(o+1)%n===0&&(i.push(s),s="");return s!==""&&i.push(s),i}Yc.splitEvery=MF});var O=f(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});var St=K();St.__exportStar(VE(),lt);St.__exportStar(KE(),lt);St.__exportStar(WE(),lt);St.__exportStar(YE(),lt);St.__exportStar(JE(),lt);St.__exportStar(XE(),lt);St.__exportStar(ZE(),lt);St.__exportStar(eA(),lt);St.__exportStar(tA(),lt);St.__exportStar(nA(),lt);St.__exportStar(rA(),lt);St.__exportStar($_(),lt);St.__exportStar(iA(),lt);St.__exportStar(sA(),lt)});var Qc=f(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.DynamoDBServiceException=void 0;var zF=O(),mo=class extends zF.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,mo.prototype)}};Jc.DynamoDBServiceException=mo});var H=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=Qc(),jF;(function(e){e.filterSensitiveLog=t=>({...t})})(jF=l.ArchivalSummary||(l.ArchivalSummary={}));var kF;(function(e){e.filterSensitiveLog=t=>({...t})})(kF=l.AttributeDefinition||(l.AttributeDefinition={}));var FF;(function(e){e.filterSensitiveLog=t=>({...t})})(FF=l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var UF;(function(e){e.filterSensitiveLog=t=>({...t})})(UF=l.AutoScalingPolicyDescription||(l.AutoScalingPolicyDescription={}));var BF;(function(e){e.filterSensitiveLog=t=>({...t})})(BF=l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var GF;(function(e){e.filterSensitiveLog=t=>({...t})})(GF=l.AutoScalingPolicyUpdate||(l.AutoScalingPolicyUpdate={}));var $F;(function(e){e.filterSensitiveLog=t=>({...t})})($F=l.AutoScalingSettingsDescription||(l.AutoScalingSettingsDescription={}));var VF;(function(e){e.filterSensitiveLog=t=>({...t})})(VF=l.AutoScalingSettingsUpdate||(l.AutoScalingSettingsUpdate={}));var KF;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(KF=l.BackupType||(l.BackupType={}));var WF;(function(e){e.filterSensitiveLog=t=>({...t})})(WF=l.BackupDetails||(l.BackupDetails={}));var HF;(function(e){e.filterSensitiveLog=t=>({...t})})(HF=l.KeySchemaElement||(l.KeySchemaElement={}));var YF;(function(e){e.filterSensitiveLog=t=>({...t})})(YF=l.ProvisionedThroughput||(l.ProvisionedThroughput={}));var JF;(function(e){e.filterSensitiveLog=t=>({...t})})(JF=l.SourceTableDetails||(l.SourceTableDetails={}));var QF;(function(e){e.filterSensitiveLog=t=>({...t})})(QF=l.Projection||(l.Projection={}));var XF;(function(e){e.filterSensitiveLog=t=>({...t})})(XF=l.GlobalSecondaryIndexInfo||(l.GlobalSecondaryIndexInfo={}));var ZF;(function(e){e.filterSensitiveLog=t=>({...t})})(ZF=l.LocalSecondaryIndexInfo||(l.LocalSecondaryIndexInfo={}));var eU;(function(e){e.filterSensitiveLog=t=>({...t})})(eU=l.SSEDescription||(l.SSEDescription={}));var tU;(function(e){e.filterSensitiveLog=t=>({...t})})(tU=l.StreamSpecification||(l.StreamSpecification={}));var nU;(function(e){e.filterSensitiveLog=t=>({...t})})(nU=l.TimeToLiveDescription||(l.TimeToLiveDescription={}));var rU;(function(e){e.filterSensitiveLog=t=>({...t})})(rU=l.SourceTableFeatureDetails||(l.SourceTableFeatureDetails={}));var iU;(function(e){e.filterSensitiveLog=t=>({...t})})(iU=l.BackupDescription||(l.BackupDescription={}));var po=class extends we.DynamoDBServiceException{constructor(t){super({name:"BackupInUseException",$fault:"client",...t}),this.name="BackupInUseException",this.$fault="client",Object.setPrototypeOf(this,po.prototype)}};l.BackupInUseException=po;var ho=class extends we.DynamoDBServiceException{constructor(t){super({name:"BackupNotFoundException",$fault:"client",...t}),this.name="BackupNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ho.prototype)}};l.BackupNotFoundException=ho;var sU;(function(e){e.filterSensitiveLog=t=>({...t})})(sU=l.BackupSummary||(l.BackupSummary={}));var oU;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(oU=l.BackupTypeFilter||(l.BackupTypeFilter={}));var aU;(function(e){e.filterSensitiveLog=t=>({...t})})(aU=l.Capacity||(l.Capacity={}));var cU;(function(e){e.filterSensitiveLog=t=>({...t})})(cU=l.ConsumedCapacity||(l.ConsumedCapacity={}));var lU;(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"})(lU=l.BatchStatementErrorCodeEnum||(l.BatchStatementErrorCodeEnum={}));var uU;(function(e){e.filterSensitiveLog=t=>({...t})})(uU=l.BatchStatementError||(l.BatchStatementError={}));var _o=class extends we.DynamoDBServiceException{constructor(t){super({name:"InternalServerError",$fault:"server",...t}),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,_o.prototype)}};l.InternalServerError=_o;var yo=class extends we.DynamoDBServiceException{constructor(t){super({name:"RequestLimitExceeded",$fault:"client",...t}),this.name="RequestLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,yo.prototype)}};l.RequestLimitExceeded=yo;var go=class extends we.DynamoDBServiceException{constructor(t){super({name:"InvalidEndpointException",$fault:"client",...t}),this.name="InvalidEndpointException",this.$fault="client",Object.setPrototypeOf(this,go.prototype),this.Message=t.Message}};l.InvalidEndpointException=go;var vo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ProvisionedThroughputExceededException",$fault:"client",...t}),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,vo.prototype)}};l.ProvisionedThroughputExceededException=vo;var So=class extends we.DynamoDBServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,So.prototype)}};l.ResourceNotFoundException=So;var wo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...t}),this.name="ItemCollectionSizeLimitExceededException",this.$fault="client",Object.setPrototypeOf(this,wo.prototype)}};l.ItemCollectionSizeLimitExceededException=wo;var dU;(function(e){e.filterSensitiveLog=t=>({...t})})(dU=l.BillingModeSummary||(l.BillingModeSummary={}));var bo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ConditionalCheckFailedException",$fault:"client",...t}),this.name="ConditionalCheckFailedException",this.$fault="client",Object.setPrototypeOf(this,bo.prototype)}};l.ConditionalCheckFailedException=bo;var fU;(function(e){e.filterSensitiveLog=t=>({...t})})(fU=l.PointInTimeRecoveryDescription||(l.PointInTimeRecoveryDescription={}));var mU;(function(e){e.filterSensitiveLog=t=>({...t})})(mU=l.ContinuousBackupsDescription||(l.ContinuousBackupsDescription={}));var Eo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...t}),this.name="ContinuousBackupsUnavailableException",this.$fault="client",Object.setPrototypeOf(this,Eo.prototype)}};l.ContinuousBackupsUnavailableException=Eo;var pU;(function(e){e.filterSensitiveLog=t=>({...t})})(pU=l.ContributorInsightsSummary||(l.ContributorInsightsSummary={}));var hU;(function(e){e.filterSensitiveLog=t=>({...t})})(hU=l.CreateBackupInput||(l.CreateBackupInput={}));var _U;(function(e){e.filterSensitiveLog=t=>({...t})})(_U=l.CreateBackupOutput||(l.CreateBackupOutput={}));var Ao=class extends we.DynamoDBServiceException{constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,Ao.prototype)}};l.LimitExceededException=Ao;var To=class extends we.DynamoDBServiceException{constructor(t){super({name:"TableInUseException",$fault:"client",...t}),this.name="TableInUseException",this.$fault="client",Object.setPrototypeOf(this,To.prototype)}};l.TableInUseException=To;var Co=class extends we.DynamoDBServiceException{constructor(t){super({name:"TableNotFoundException",$fault:"client",...t}),this.name="TableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Co.prototype)}};l.TableNotFoundException=Co;var yU;(function(e){e.filterSensitiveLog=t=>({...t})})(yU=l.CreateGlobalSecondaryIndexAction||(l.CreateGlobalSecondaryIndexAction={}));var gU;(function(e){e.filterSensitiveLog=t=>({...t})})(gU=l.Replica||(l.Replica={}));var vU;(function(e){e.filterSensitiveLog=t=>({...t})})(vU=l.CreateGlobalTableInput||(l.CreateGlobalTableInput={}));var SU;(function(e){e.filterSensitiveLog=t=>({...t})})(SU=l.ProvisionedThroughputOverride||(l.ProvisionedThroughputOverride={}));var wU;(function(e){e.filterSensitiveLog=t=>({...t})})(wU=l.ReplicaGlobalSecondaryIndexDescription||(l.ReplicaGlobalSecondaryIndexDescription={}));var bU;(function(e){e.STANDARD="STANDARD",e.STANDARD_INFREQUENT_ACCESS="STANDARD_INFREQUENT_ACCESS"})(bU=l.TableClass||(l.TableClass={}));var EU;(function(e){e.filterSensitiveLog=t=>({...t})})(EU=l.TableClassSummary||(l.TableClassSummary={}));var AU;(function(e){e.filterSensitiveLog=t=>({...t})})(AU=l.ReplicaDescription||(l.ReplicaDescription={}));var TU;(function(e){e.filterSensitiveLog=t=>({...t})})(TU=l.GlobalTableDescription||(l.GlobalTableDescription={}));var CU;(function(e){e.filterSensitiveLog=t=>({...t})})(CU=l.CreateGlobalTableOutput||(l.CreateGlobalTableOutput={}));var xo=class extends we.DynamoDBServiceException{constructor(t){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...t}),this.name="GlobalTableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,xo.prototype)}};l.GlobalTableAlreadyExistsException=xo;var xU;(function(e){e.filterSensitiveLog=t=>({...t})})(xU=l.CreateReplicaAction||(l.CreateReplicaAction={}));var IU;(function(e){e.filterSensitiveLog=t=>({...t})})(IU=l.ReplicaGlobalSecondaryIndex||(l.ReplicaGlobalSecondaryIndex={}));var RU;(function(e){e.filterSensitiveLog=t=>({...t})})(RU=l.CreateReplicationGroupMemberAction||(l.CreateReplicationGroupMemberAction={}));var DU;(function(e){e.filterSensitiveLog=t=>({...t})})(DU=l.GlobalSecondaryIndex||(l.GlobalSecondaryIndex={}));var NU;(function(e){e.filterSensitiveLog=t=>({...t})})(NU=l.LocalSecondaryIndex||(l.LocalSecondaryIndex={}));var PU;(function(e){e.filterSensitiveLog=t=>({...t})})(PU=l.SSESpecification||(l.SSESpecification={}));var OU;(function(e){e.filterSensitiveLog=t=>({...t})})(OU=l.Tag||(l.Tag={}));var LU;(function(e){e.filterSensitiveLog=t=>({...t})})(LU=l.CreateTableInput||(l.CreateTableInput={}));var qU;(function(e){e.filterSensitiveLog=t=>({...t})})(qU=l.ProvisionedThroughputDescription||(l.ProvisionedThroughputDescription={}));var MU;(function(e){e.filterSensitiveLog=t=>({...t})})(MU=l.GlobalSecondaryIndexDescription||(l.GlobalSecondaryIndexDescription={}));var zU;(function(e){e.filterSensitiveLog=t=>({...t})})(zU=l.LocalSecondaryIndexDescription||(l.LocalSecondaryIndexDescription={}));var jU;(function(e){e.filterSensitiveLog=t=>({...t})})(jU=l.RestoreSummary||(l.RestoreSummary={}));var kU;(function(e){e.filterSensitiveLog=t=>({...t})})(kU=l.TableDescription||(l.TableDescription={}));var FU;(function(e){e.filterSensitiveLog=t=>({...t})})(FU=l.CreateTableOutput||(l.CreateTableOutput={}));var Io=class extends we.DynamoDBServiceException{constructor(t){super({name:"ResourceInUseException",$fault:"client",...t}),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,Io.prototype)}};l.ResourceInUseException=Io;var UU;(function(e){e.filterSensitiveLog=t=>({...t})})(UU=l.DeleteBackupInput||(l.DeleteBackupInput={}));var BU;(function(e){e.filterSensitiveLog=t=>({...t})})(BU=l.DeleteBackupOutput||(l.DeleteBackupOutput={}));var GU;(function(e){e.filterSensitiveLog=t=>({...t})})(GU=l.DeleteGlobalSecondaryIndexAction||(l.DeleteGlobalSecondaryIndexAction={}));var Ro=class extends we.DynamoDBServiceException{constructor(t){super({name:"TransactionConflictException",$fault:"client",...t}),this.name="TransactionConflictException",this.$fault="client",Object.setPrototypeOf(this,Ro.prototype)}};l.TransactionConflictException=Ro;var $U;(function(e){e.filterSensitiveLog=t=>({...t})})($U=l.DeleteReplicaAction||(l.DeleteReplicaAction={}));var VU;(function(e){e.filterSensitiveLog=t=>({...t})})(VU=l.DeleteReplicationGroupMemberAction||(l.DeleteReplicationGroupMemberAction={}));var KU;(function(e){e.filterSensitiveLog=t=>({...t})})(KU=l.DeleteTableInput||(l.DeleteTableInput={}));var WU;(function(e){e.filterSensitiveLog=t=>({...t})})(WU=l.DeleteTableOutput||(l.DeleteTableOutput={}));var HU;(function(e){e.filterSensitiveLog=t=>({...t})})(HU=l.DescribeBackupInput||(l.DescribeBackupInput={}));var YU;(function(e){e.filterSensitiveLog=t=>({...t})})(YU=l.DescribeBackupOutput||(l.DescribeBackupOutput={}));var JU;(function(e){e.filterSensitiveLog=t=>({...t})})(JU=l.DescribeContinuousBackupsInput||(l.DescribeContinuousBackupsInput={}));var QU;(function(e){e.filterSensitiveLog=t=>({...t})})(QU=l.DescribeContinuousBackupsOutput||(l.DescribeContinuousBackupsOutput={}));var XU;(function(e){e.filterSensitiveLog=t=>({...t})})(XU=l.DescribeContributorInsightsInput||(l.DescribeContributorInsightsInput={}));var ZU;(function(e){e.filterSensitiveLog=t=>({...t})})(ZU=l.FailureException||(l.FailureException={}));var eB;(function(e){e.filterSensitiveLog=t=>({...t})})(eB=l.DescribeContributorInsightsOutput||(l.DescribeContributorInsightsOutput={}));var tB;(function(e){e.filterSensitiveLog=t=>({...t})})(tB=l.DescribeEndpointsRequest||(l.DescribeEndpointsRequest={}));var nB;(function(e){e.filterSensitiveLog=t=>({...t})})(nB=l.Endpoint||(l.Endpoint={}));var rB;(function(e){e.filterSensitiveLog=t=>({...t})})(rB=l.DescribeEndpointsResponse||(l.DescribeEndpointsResponse={}));var iB;(function(e){e.filterSensitiveLog=t=>({...t})})(iB=l.DescribeExportInput||(l.DescribeExportInput={}));var sB;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(sB=l.ExportFormat||(l.ExportFormat={}));var oB;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(oB=l.ExportStatus||(l.ExportStatus={}));var aB;(function(e){e.filterSensitiveLog=t=>({...t})})(aB=l.ExportDescription||(l.ExportDescription={}));var cB;(function(e){e.filterSensitiveLog=t=>({...t})})(cB=l.DescribeExportOutput||(l.DescribeExportOutput={}));var Do=class extends we.DynamoDBServiceException{constructor(t){super({name:"ExportNotFoundException",$fault:"client",...t}),this.name="ExportNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Do.prototype)}};l.ExportNotFoundException=Do;var lB;(function(e){e.filterSensitiveLog=t=>({...t})})(lB=l.DescribeGlobalTableInput||(l.DescribeGlobalTableInput={}));var uB;(function(e){e.filterSensitiveLog=t=>({...t})})(uB=l.DescribeGlobalTableOutput||(l.DescribeGlobalTableOutput={}));var No=class extends we.DynamoDBServiceException{constructor(t){super({name:"GlobalTableNotFoundException",$fault:"client",...t}),this.name="GlobalTableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,No.prototype)}};l.GlobalTableNotFoundException=No;var dB;(function(e){e.filterSensitiveLog=t=>({...t})})(dB=l.DescribeGlobalTableSettingsInput||(l.DescribeGlobalTableSettingsInput={}));var fB;(function(e){e.filterSensitiveLog=t=>({...t})})(fB=l.ReplicaGlobalSecondaryIndexSettingsDescription||(l.ReplicaGlobalSecondaryIndexSettingsDescription={}));var mB;(function(e){e.filterSensitiveLog=t=>({...t})})(mB=l.ReplicaSettingsDescription||(l.ReplicaSettingsDescription={}));var pB;(function(e){e.filterSensitiveLog=t=>({...t})})(pB=l.DescribeGlobalTableSettingsOutput||(l.DescribeGlobalTableSettingsOutput={}));var hB;(function(e){e.filterSensitiveLog=t=>({...t})})(hB=l.DescribeKinesisStreamingDestinationInput||(l.DescribeKinesisStreamingDestinationInput={}));var _B;(function(e){e.filterSensitiveLog=t=>({...t})})(_B=l.KinesisDataStreamDestination||(l.KinesisDataStreamDestination={}));var yB;(function(e){e.filterSensitiveLog=t=>({...t})})(yB=l.DescribeKinesisStreamingDestinationOutput||(l.DescribeKinesisStreamingDestinationOutput={}));var gB;(function(e){e.filterSensitiveLog=t=>({...t})})(gB=l.DescribeLimitsInput||(l.DescribeLimitsInput={}));var vB;(function(e){e.filterSensitiveLog=t=>({...t})})(vB=l.DescribeLimitsOutput||(l.DescribeLimitsOutput={}));var SB;(function(e){e.filterSensitiveLog=t=>({...t})})(SB=l.DescribeTableInput||(l.DescribeTableInput={}));var wB;(function(e){e.filterSensitiveLog=t=>({...t})})(wB=l.DescribeTableOutput||(l.DescribeTableOutput={}));var bB;(function(e){e.filterSensitiveLog=t=>({...t})})(bB=l.DescribeTableReplicaAutoScalingInput||(l.DescribeTableReplicaAutoScalingInput={}));var EB;(function(e){e.filterSensitiveLog=t=>({...t})})(EB=l.ReplicaGlobalSecondaryIndexAutoScalingDescription||(l.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var AB;(function(e){e.filterSensitiveLog=t=>({...t})})(AB=l.ReplicaAutoScalingDescription||(l.ReplicaAutoScalingDescription={}));var TB;(function(e){e.filterSensitiveLog=t=>({...t})})(TB=l.TableAutoScalingDescription||(l.TableAutoScalingDescription={}));var CB;(function(e){e.filterSensitiveLog=t=>({...t})})(CB=l.DescribeTableReplicaAutoScalingOutput||(l.DescribeTableReplicaAutoScalingOutput={}));var xB;(function(e){e.filterSensitiveLog=t=>({...t})})(xB=l.DescribeTimeToLiveInput||(l.DescribeTimeToLiveInput={}));var IB;(function(e){e.filterSensitiveLog=t=>({...t})})(IB=l.DescribeTimeToLiveOutput||(l.DescribeTimeToLiveOutput={}));var RB;(function(e){e.filterSensitiveLog=t=>({...t})})(RB=l.KinesisStreamingDestinationInput||(l.KinesisStreamingDestinationInput={}));var DB;(function(e){e.filterSensitiveLog=t=>({...t})})(DB=l.KinesisStreamingDestinationOutput||(l.KinesisStreamingDestinationOutput={}));var Po=class extends we.DynamoDBServiceException{constructor(t){super({name:"DuplicateItemException",$fault:"client",...t}),this.name="DuplicateItemException",this.$fault="client",Object.setPrototypeOf(this,Po.prototype)}};l.DuplicateItemException=Po;var Oo=class extends we.DynamoDBServiceException{constructor(t){super({name:"IdempotentParameterMismatchException",$fault:"client",...t}),this.name="IdempotentParameterMismatchException",this.$fault="client",Object.setPrototypeOf(this,Oo.prototype),this.Message=t.Message}};l.IdempotentParameterMismatchException=Oo;var Lo=class extends we.DynamoDBServiceException{constructor(t){super({name:"TransactionInProgressException",$fault:"client",...t}),this.name="TransactionInProgressException",this.$fault="client",Object.setPrototypeOf(this,Lo.prototype),this.Message=t.Message}};l.TransactionInProgressException=Lo;var qo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ExportConflictException",$fault:"client",...t}),this.name="ExportConflictException",this.$fault="client",Object.setPrototypeOf(this,qo.prototype)}};l.ExportConflictException=qo;var NB;(function(e){e.filterSensitiveLog=t=>({...t})})(NB=l.ExportTableToPointInTimeInput||(l.ExportTableToPointInTimeInput={}));var PB;(function(e){e.filterSensitiveLog=t=>({...t})})(PB=l.ExportTableToPointInTimeOutput||(l.ExportTableToPointInTimeOutput={}));var Mo=class extends we.DynamoDBServiceException{constructor(t){super({name:"InvalidExportTimeException",$fault:"client",...t}),this.name="InvalidExportTimeException",this.$fault="client",Object.setPrototypeOf(this,Mo.prototype)}};l.InvalidExportTimeException=Mo;var zo=class extends we.DynamoDBServiceException{constructor(t){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...t}),this.name="PointInTimeRecoveryUnavailableException",this.$fault="client",Object.setPrototypeOf(this,zo.prototype)}};l.PointInTimeRecoveryUnavailableException=zo;var OB;(function(e){e.filterSensitiveLog=t=>({...t})})(OB=l.ListBackupsInput||(l.ListBackupsInput={}));var LB;(function(e){e.filterSensitiveLog=t=>({...t})})(LB=l.ListBackupsOutput||(l.ListBackupsOutput={}));var qB;(function(e){e.filterSensitiveLog=t=>({...t})})(qB=l.ListContributorInsightsInput||(l.ListContributorInsightsInput={}));var MB;(function(e){e.filterSensitiveLog=t=>({...t})})(MB=l.ListContributorInsightsOutput||(l.ListContributorInsightsOutput={}));var zB;(function(e){e.filterSensitiveLog=t=>({...t})})(zB=l.ListExportsInput||(l.ListExportsInput={}));var jB;(function(e){e.filterSensitiveLog=t=>({...t})})(jB=l.ExportSummary||(l.ExportSummary={}));var kB;(function(e){e.filterSensitiveLog=t=>({...t})})(kB=l.ListExportsOutput||(l.ListExportsOutput={}));var FB;(function(e){e.filterSensitiveLog=t=>({...t})})(FB=l.ListGlobalTablesInput||(l.ListGlobalTablesInput={}));var UB;(function(e){e.filterSensitiveLog=t=>({...t})})(UB=l.GlobalTable||(l.GlobalTable={}));var BB;(function(e){e.filterSensitiveLog=t=>({...t})})(BB=l.ListGlobalTablesOutput||(l.ListGlobalTablesOutput={}));var GB;(function(e){e.filterSensitiveLog=t=>({...t})})(GB=l.ListTablesInput||(l.ListTablesInput={}));var $B;(function(e){e.filterSensitiveLog=t=>({...t})})($B=l.ListTablesOutput||(l.ListTablesOutput={}));var VB;(function(e){e.filterSensitiveLog=t=>({...t})})(VB=l.ListTagsOfResourceInput||(l.ListTagsOfResourceInput={}));var KB;(function(e){e.filterSensitiveLog=t=>({...t})})(KB=l.ListTagsOfResourceOutput||(l.ListTagsOfResourceOutput={}));var WB;(function(e){e.filterSensitiveLog=t=>({...t})})(WB=l.RestoreTableFromBackupInput||(l.RestoreTableFromBackupInput={}));var HB;(function(e){e.filterSensitiveLog=t=>({...t})})(HB=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 ko=class extends we.DynamoDBServiceException{constructor(t){super({name:"InvalidRestoreTimeException",$fault:"client",...t}),this.name="InvalidRestoreTimeException",this.$fault="client",Object.setPrototypeOf(this,ko.prototype)}};l.InvalidRestoreTimeException=ko;var YB;(function(e){e.filterSensitiveLog=t=>({...t})})(YB=l.RestoreTableToPointInTimeInput||(l.RestoreTableToPointInTimeInput={}));var JB;(function(e){e.filterSensitiveLog=t=>({...t})})(JB=l.RestoreTableToPointInTimeOutput||(l.RestoreTableToPointInTimeOutput={}));var QB;(function(e){e.filterSensitiveLog=t=>({...t})})(QB=l.TagResourceInput||(l.TagResourceInput={}));var XB;(function(e){e.filterSensitiveLog=t=>({...t})})(XB=l.UntagResourceInput||(l.UntagResourceInput={}));var ZB;(function(e){e.filterSensitiveLog=t=>({...t})})(ZB=l.PointInTimeRecoverySpecification||(l.PointInTimeRecoverySpecification={}));var eG;(function(e){e.filterSensitiveLog=t=>({...t})})(eG=l.UpdateContinuousBackupsInput||(l.UpdateContinuousBackupsInput={}));var tG;(function(e){e.filterSensitiveLog=t=>({...t})})(tG=l.UpdateContinuousBackupsOutput||(l.UpdateContinuousBackupsOutput={}));var nG;(function(e){e.filterSensitiveLog=t=>({...t})})(nG=l.UpdateContributorInsightsInput||(l.UpdateContributorInsightsInput={}));var rG;(function(e){e.filterSensitiveLog=t=>({...t})})(rG=l.UpdateContributorInsightsOutput||(l.UpdateContributorInsightsOutput={}));var Fo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ReplicaAlreadyExistsException",$fault:"client",...t}),this.name="ReplicaAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Fo.prototype)}};l.ReplicaAlreadyExistsException=Fo;var Uo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ReplicaNotFoundException",$fault:"client",...t}),this.name="ReplicaNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Uo.prototype)}};l.ReplicaNotFoundException=Uo;var iG;(function(e){e.filterSensitiveLog=t=>({...t})})(iG=l.ReplicaUpdate||(l.ReplicaUpdate={}));var sG;(function(e){e.filterSensitiveLog=t=>({...t})})(sG=l.UpdateGlobalTableInput||(l.UpdateGlobalTableInput={}));var oG;(function(e){e.filterSensitiveLog=t=>({...t})})(oG=l.UpdateGlobalTableOutput||(l.UpdateGlobalTableOutput={}));var Bo=class extends we.DynamoDBServiceException{constructor(t){super({name:"IndexNotFoundException",$fault:"client",...t}),this.name="IndexNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Bo.prototype)}};l.IndexNotFoundException=Bo;var aG;(function(e){e.filterSensitiveLog=t=>({...t})})(aG=l.GlobalTableGlobalSecondaryIndexSettingsUpdate||(l.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var cG;(function(e){e.filterSensitiveLog=t=>({...t})})(cG=l.ReplicaGlobalSecondaryIndexSettingsUpdate||(l.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var lG;(function(e){e.filterSensitiveLog=t=>({...t})})(lG=l.ReplicaSettingsUpdate||(l.ReplicaSettingsUpdate={}));var uG;(function(e){e.filterSensitiveLog=t=>({...t})})(uG=l.UpdateGlobalTableSettingsInput||(l.UpdateGlobalTableSettingsInput={}));var dG;(function(e){e.filterSensitiveLog=t=>({...t})})(dG=l.UpdateGlobalTableSettingsOutput||(l.UpdateGlobalTableSettingsOutput={}));var fG;(function(e){e.filterSensitiveLog=t=>({...t})})(fG=l.UpdateGlobalSecondaryIndexAction||(l.UpdateGlobalSecondaryIndexAction={}));var mG;(function(e){e.filterSensitiveLog=t=>({...t})})(mG=l.GlobalSecondaryIndexUpdate||(l.GlobalSecondaryIndexUpdate={}));var pG;(function(e){e.filterSensitiveLog=t=>({...t})})(pG=l.UpdateReplicationGroupMemberAction||(l.UpdateReplicationGroupMemberAction={}));var hG;(function(e){e.filterSensitiveLog=t=>({...t})})(hG=l.ReplicationGroupUpdate||(l.ReplicationGroupUpdate={}));var _G;(function(e){e.filterSensitiveLog=t=>({...t})})(_G=l.UpdateTableInput||(l.UpdateTableInput={}));var yG;(function(e){e.filterSensitiveLog=t=>({...t})})(yG=l.UpdateTableOutput||(l.UpdateTableOutput={}));var gG;(function(e){e.filterSensitiveLog=t=>({...t})})(gG=l.GlobalSecondaryIndexAutoScalingUpdate||(l.GlobalSecondaryIndexAutoScalingUpdate={}));var vG;(function(e){e.filterSensitiveLog=t=>({...t})})(vG=l.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(l.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var SG;(function(e){e.filterSensitiveLog=t=>({...t})})(SG=l.ReplicaAutoScalingUpdate||(l.ReplicaAutoScalingUpdate={}));var wG;(function(e){e.filterSensitiveLog=t=>({...t})})(wG=l.UpdateTableReplicaAutoScalingInput||(l.UpdateTableReplicaAutoScalingInput={}));var bG;(function(e){e.filterSensitiveLog=t=>({...t})})(bG=l.UpdateTableReplicaAutoScalingOutput||(l.UpdateTableReplicaAutoScalingOutput={}));var EG;(function(e){e.filterSensitiveLog=t=>({...t})})(EG=l.TimeToLiveSpecification||(l.TimeToLiveSpecification={}));var AG;(function(e){e.filterSensitiveLog=t=>({...t})})(AG=l.UpdateTimeToLiveInput||(l.UpdateTimeToLiveInput={}));var TG;(function(e){e.filterSensitiveLog=t=>({...t})})(TG=l.UpdateTimeToLiveOutput||(l.UpdateTimeToLiveOutput={}));var se;(function(e){e.visit=(t,n)=>t.S!==void 0?n.S(t.S):t.N!==void 0?n.N(t.N):t.B!==void 0?n.B(t.B):t.SS!==void 0?n.SS(t.SS):t.NS!==void 0?n.NS(t.NS):t.BS!==void 0?n.BS(t.BS):t.M!==void 0?n.M(t.M):t.L!==void 0?n.L(t.L):t.NULL!==void 0?n.NULL(t.NULL):t.BOOL!==void 0?n.BOOL(t.BOOL):n._(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((n,[r,i])=>({...n,[r]:e.filterSensitiveLog(i)}),{})};if(t.L!==void 0)return{L:t.L.map(n=>e.filterSensitiveLog(n))};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"}}})(se=l.AttributeValue||(l.AttributeValue={}));var oA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Value&&{Value:se.filterSensitiveLog(t.Value)}})})(oA=l.AttributeValueUpdate||(l.AttributeValueUpdate={}));var aA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(n=>se.filterSensitiveLog(n))}})})(aA=l.BatchStatementRequest||(l.BatchStatementRequest={}));var cA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(cA=l.BatchStatementResponse||(l.BatchStatementResponse={}));var CG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(CG=l.CancellationReason||(l.CancellationReason={}));var Xc;(function(e){e.filterSensitiveLog=t=>({...t,...t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>se.filterSensitiveLog(n))}})})(Xc=l.Condition||(l.Condition={}));var lA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(lA=l.DeleteRequest||(l.DeleteRequest={}));var xG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(n=>se.filterSensitiveLog(n))}})})(xG=l.ExecuteStatementInput||(l.ExecuteStatementInput={}));var uA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(uA=l.Get||(l.Get={}));var IG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(IG=l.GetItemInput||(l.GetItemInput={}));var RG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(RG=l.GetItemOutput||(l.GetItemOutput={}));var Yi;(function(e){e.filterSensitiveLog=t=>({...t,...t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(Yi=l.ItemCollectionMetrics||(l.ItemCollectionMetrics={}));var W_;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(W_=l.ItemResponse||(l.ItemResponse={}));var dA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(n=>se.filterSensitiveLog(n))}})})(dA=l.ParameterizedStatement||(l.ParameterizedStatement={}));var fA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(fA=l.PutRequest||(l.PutRequest={}));var H_;(function(e){e.filterSensitiveLog=t=>({...t,...t.Keys&&{Keys:t.Keys.map(n=>Object.entries(n).reduce((r,[i,s])=>({...r,[i]:se.filterSensitiveLog(s)}),{}))}})})(H_=l.KeysAndAttributes||(l.KeysAndAttributes={}));var mA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Get&&{Get:uA.filterSensitiveLog(t.Get)}})})(mA=l.TransactGetItem||(l.TransactGetItem={}));var DG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Statements&&{Statements:t.Statements.map(n=>aA.filterSensitiveLog(n))}})})(DG=l.BatchExecuteStatementInput||(l.BatchExecuteStatementInput={}));var NG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(n=>cA.filterSensitiveLog(n))}})})(NG=l.BatchExecuteStatementOutput||(l.BatchExecuteStatementOutput={}));var PG;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactStatements&&{TransactStatements:t.TransactStatements.map(n=>dA.filterSensitiveLog(n))}})})(PG=l.ExecuteTransactionInput||(l.ExecuteTransactionInput={}));var OG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(n=>W_.filterSensitiveLog(n))}})})(OG=l.ExecuteTransactionOutput||(l.ExecuteTransactionOutput={}));var LG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(n=>W_.filterSensitiveLog(n))}})})(LG=l.TransactGetItemsOutput||(l.TransactGetItemsOutput={}));var Go=class extends we.DynamoDBServiceException{constructor(t){super({name:"TransactionCanceledException",$fault:"client",...t}),this.name="TransactionCanceledException",this.$fault="client",Object.setPrototypeOf(this,Go.prototype),this.Message=t.Message,this.CancellationReasons=t.CancellationReasons}};l.TransactionCanceledException=Go;var qG;(function(e){e.filterSensitiveLog=t=>({...t,...t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>({...n,[r]:H_.filterSensitiveLog(i)}),{})}})})(qG=l.BatchGetItemInput||(l.BatchGetItemInput={}));var Zc;(function(e){e.filterSensitiveLog=t=>({...t,...t.Value&&{Value:se.filterSensitiveLog(t.Value)},...t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>se.filterSensitiveLog(n))}})})(Zc=l.ExpectedAttributeValue||(l.ExpectedAttributeValue={}));var MG;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactItems&&{TransactItems:t.TransactItems.map(n=>mA.filterSensitiveLog(n))}})})(MG=l.TransactGetItemsInput||(l.TransactGetItemsInput={}));var zG;(function(e){e.filterSensitiveLog=t=>({...t,...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>({...n,[r]:i.map(s=>Yi.filterSensitiveLog(s))}),{})}})})(zG=l.TransactWriteItemsOutput||(l.TransactWriteItemsOutput={}));var pA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(pA=l.ConditionCheck||(l.ConditionCheck={}));var hA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(hA=l.Delete||(l.Delete={}));var _A;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(_A=l.Put||(l.Put={}));var yA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(yA=l.Update||(l.Update={}));var jG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Yi.filterSensitiveLog(t.ItemCollectionMetrics)}})})(jG=l.DeleteItemOutput||(l.DeleteItemOutput={}));var kG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>({...r,[i]:se.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(kG=l.ExecuteStatementOutput||(l.ExecuteStatementOutput={}));var FG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Yi.filterSensitiveLog(t.ItemCollectionMetrics)}})})(FG=l.PutItemOutput||(l.PutItemOutput={}));var UG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>({...r,[i]:se.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(UG=l.QueryOutput||(l.QueryOutput={}));var BG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>({...r,[i]:se.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(BG=l.ScanOutput||(l.ScanOutput={}));var GG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Yi.filterSensitiveLog(t.ItemCollectionMetrics)}})})(GG=l.UpdateItemOutput||(l.UpdateItemOutput={}));var Y_;(function(e){e.filterSensitiveLog=t=>({...t,...t.PutRequest&&{PutRequest:fA.filterSensitiveLog(t.PutRequest)},...t.DeleteRequest&&{DeleteRequest:lA.filterSensitiveLog(t.DeleteRequest)}})})(Y_=l.WriteRequest||(l.WriteRequest={}));var $G;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:Object.entries(t.Responses).reduce((n,[r,i])=>({...n,[r]:i.map(s=>Object.entries(s).reduce((o,[a,c])=>({...o,[a]:se.filterSensitiveLog(c)}),{}))}),{})},...t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((n,[r,i])=>({...n,[r]:H_.filterSensitiveLog(i)}),{})}})})($G=l.BatchGetItemOutput||(l.BatchGetItemOutput={}));var VG;(function(e){e.filterSensitiveLog=t=>({...t,...t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((n,[r,i])=>({...n,[r]:Xc.filterSensitiveLog(i)}),{})},...t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(VG=l.ScanInput||(l.ScanInput={}));var KG;(function(e){e.filterSensitiveLog=t=>({...t,...t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>({...n,[r]:i.map(s=>Y_.filterSensitiveLog(s))}),{})}})})(KG=l.BatchWriteItemInput||(l.BatchWriteItemInput={}));var WG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>({...n,[r]:Zc.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(WG=l.DeleteItemInput||(l.DeleteItemInput={}));var HG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>({...n,[r]:Zc.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(HG=l.PutItemInput||(l.PutItemInput={}));var YG;(function(e){e.filterSensitiveLog=t=>({...t,...t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((n,[r,i])=>({...n,[r]:Xc.filterSensitiveLog(i)}),{})},...t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((n,[r,i])=>({...n,[r]:Xc.filterSensitiveLog(i)}),{})},...t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(YG=l.QueryInput||(l.QueryInput={}));var JG;(function(e){e.filterSensitiveLog=t=>({...t,...t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((n,[r,i])=>({...n,[r]:i.map(s=>Y_.filterSensitiveLog(s))}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>({...n,[r]:i.map(s=>Yi.filterSensitiveLog(s))}),{})}})})(JG=l.BatchWriteItemOutput||(l.BatchWriteItemOutput={}));var QG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((n,[r,i])=>({...n,[r]:oA.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>({...n,[r]:Zc.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(QG=l.UpdateItemInput||(l.UpdateItemInput={}));var gA;(function(e){e.filterSensitiveLog=t=>({...t,...t.ConditionCheck&&{ConditionCheck:pA.filterSensitiveLog(t.ConditionCheck)},...t.Put&&{Put:_A.filterSensitiveLog(t.Put)},...t.Delete&&{Delete:hA.filterSensitiveLog(t.Delete)},...t.Update&&{Update:yA.filterSensitiveLog(t.Update)}})})(gA=l.TransactWriteItem||(l.TransactWriteItem={}));var XG;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactItems&&{TransactItems:t.TransactItems.map(n=>gA.filterSensitiveLog(n))}})})(XG=l.TransactWriteItemsInput||(l.TransactWriteItemsInput={}))});var SA=f(vA=>{"use strict";Object.defineProperty(vA,"__esModule",{value:!0})});var wA=f(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.HttpRequest=void 0;var $o=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 n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){let t=new $o({...this,headers:{...this.headers}});return t.query&&(t.query=ZG(t.query)),t}};el.HttpRequest=$o;function ZG(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}});var bA=f(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.HttpResponse=void 0;var J_=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}};tl.HttpResponse=J_});var EA=f(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.isValidHostname=void 0;function e$(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}nl.isValidHostname=e$});var Ot=f(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var rl=K();rl.__exportStar(SA(),Ji);rl.__exportStar(wA(),Ji);rl.__exportStar(bA(),Ji);rl.__exportStar(EA(),Ji)});var X_=f(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});Q_.default=r$;var t$=n$(require("crypto"));function n$(e){return e&&e.__esModule?e:{default:e}}var sl=new Uint8Array(256),il=sl.length;function r$(){return il>sl.length-16&&(t$.default.randomFillSync(sl),il=0),sl.slice(il,il+=16)}});var AA=f(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.default=void 0;var i$=/^(?:[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;ol.default=i$});var Vo=f(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.default=void 0;var s$=o$(AA());function o$(e){return e&&e.__esModule?e:{default:e}}function a$(e){return typeof e=="string"&&s$.default.test(e)}var c$=a$;al.default=c$});var Ko=f(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.default=void 0;var l$=u$(Vo());function u$(e){return e&&e.__esModule?e:{default:e}}var rt=[];for(let e=0;e<256;++e)rt.push((e+256).toString(16).substr(1));function d$(e,t=0){let n=(rt[e[t+0]]+rt[e[t+1]]+rt[e[t+2]]+rt[e[t+3]]+"-"+rt[e[t+4]]+rt[e[t+5]]+"-"+rt[e[t+6]]+rt[e[t+7]]+"-"+rt[e[t+8]]+rt[e[t+9]]+"-"+rt[e[t+10]]+rt[e[t+11]]+rt[e[t+12]]+rt[e[t+13]]+rt[e[t+14]]+rt[e[t+15]]).toLowerCase();if(!(0,l$.default)(n))throw TypeError("Stringified UUID is invalid");return n}var f$=d$;cl.default=f$});var xA=f(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.default=void 0;var m$=CA(X_()),p$=CA(Ko());function CA(e){return e&&e.__esModule?e:{default:e}}var TA,Z_,ey=0,ty=0;function h$(e,t,n){let r=t&&n||0,i=t||new Array(16);e=e||{};let s=e.node||TA,o=e.clockseq!==void 0?e.clockseq:Z_;if(s==null||o==null){let m=e.random||(e.rng||m$.default)();s==null&&(s=TA=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),o==null&&(o=Z_=(m[6]<<8|m[7])&16383)}let a=e.msecs!==void 0?e.msecs:Date.now(),c=e.nsecs!==void 0?e.nsecs:ty+1,u=a-ey+(c-ty)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||a>ey)&&e.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ey=a,ty=c,Z_=o,a+=122192928e5;let d=((a&268435455)*1e4+c)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;let h=a/4294967296*1e4&268435455;i[r++]=h>>>8&255,i[r++]=h&255,i[r++]=h>>>24&15|16,i[r++]=h>>>16&255,i[r++]=o>>>8|128,i[r++]=o&255;for(let m=0;m<6;++m)i[r+m]=s[m];return t||(0,p$.default)(i)}var _$=h$;ll.default=_$});var ny=f(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.default=void 0;var y$=g$(Vo());function g$(e){return e&&e.__esModule?e:{default:e}}function v$(e){if(!(0,y$.default)(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var S$=v$;ul.default=S$});var ry=f(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.default=A$;oi.URL=oi.DNS=void 0;var w$=IA(Ko()),b$=IA(ny());function IA(e){return e&&e.__esModule?e:{default:e}}function E$(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var RA="6ba7b810-9dad-11d1-80b4-00c04fd430c8";oi.DNS=RA;var DA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";oi.URL=DA;function A$(e,t,n){function r(i,s,o,a){if(typeof i=="string"&&(i=E$(i)),typeof s=="string"&&(s=(0,b$.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=n(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,w$.default)(c)}try{r.name=e}catch{}return r.DNS=RA,r.URL=DA,r}});var NA=f(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.default=void 0;var T$=C$(require("crypto"));function C$(e){return e&&e.__esModule?e:{default:e}}function x$(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),T$.default.createHash("md5").update(e).digest()}var I$=x$;dl.default=I$});var OA=f(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.default=void 0;var R$=PA(ry()),D$=PA(NA());function PA(e){return e&&e.__esModule?e:{default:e}}var N$=(0,R$.default)("v3",48,D$.default),P$=N$;fl.default=P$});var qA=f(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.default=void 0;var O$=LA(X_()),L$=LA(Ko());function LA(e){return e&&e.__esModule?e:{default:e}}function q$(e,t,n){e=e||{};let r=e.random||(e.rng||O$.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return(0,L$.default)(r)}var M$=q$;ml.default=M$});var MA=f(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.default=void 0;var z$=j$(require("crypto"));function j$(e){return e&&e.__esModule?e:{default:e}}function k$(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),z$.default.createHash("sha1").update(e).digest()}var F$=k$;pl.default=F$});var jA=f(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.default=void 0;var U$=zA(ry()),B$=zA(MA());function zA(e){return e&&e.__esModule?e:{default:e}}var G$=(0,U$.default)("v5",80,B$.default),$$=G$;hl.default=$$});var kA=f(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.default=void 0;var V$="00000000-0000-0000-0000-000000000000";_l.default=V$});var FA=f(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.default=void 0;var K$=W$(Vo());function W$(e){return e&&e.__esModule?e:{default:e}}function H$(e){if(!(0,K$.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var Y$=H$;yl.default=Y$});var iy=f(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Object.defineProperty(Xt,"v1",{enumerable:!0,get:function(){return J$.default}});Object.defineProperty(Xt,"v3",{enumerable:!0,get:function(){return Q$.default}});Object.defineProperty(Xt,"v4",{enumerable:!0,get:function(){return X$.default}});Object.defineProperty(Xt,"v5",{enumerable:!0,get:function(){return Z$.default}});Object.defineProperty(Xt,"NIL",{enumerable:!0,get:function(){return e2.default}});Object.defineProperty(Xt,"version",{enumerable:!0,get:function(){return t2.default}});Object.defineProperty(Xt,"validate",{enumerable:!0,get:function(){return n2.default}});Object.defineProperty(Xt,"stringify",{enumerable:!0,get:function(){return r2.default}});Object.defineProperty(Xt,"parse",{enumerable:!0,get:function(){return i2.default}});var J$=Vn(xA()),Q$=Vn(OA()),X$=Vn(qA()),Z$=Vn(jA()),e2=Vn(kA()),t2=Vn(FA()),n2=Vn(Vo()),r2=Vn(Ko()),i2=Vn(ny());function Vn(e){return e&&e.__esModule?e:{default:e}}});var Q=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 s2=Ot(),p=O(),sy=iy(),Z=Qc(),ve=H(),o2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},r;return r=JSON.stringify(a3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchExecuteStatementCommand=o2;var a2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},r;return r=JSON.stringify(c3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchGetItemCommand=a2;var c2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},r;return r=JSON.stringify(d3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchWriteItemCommand=c2;var l2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},r;return r=JSON.stringify(h3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateBackupCommand=l2;var u2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},r;return r=JSON.stringify(y3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateGlobalTableCommand=u2;var d2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},r;return r=JSON.stringify(S3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateTableCommand=d2;var f2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},r;return r=JSON.stringify(b3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteBackupCommand=f2;var m2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},r;return r=JSON.stringify(A3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteItemCommand=m2;var p2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},r;return r=JSON.stringify(I3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteTableCommand=p2;var h2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},r;return r=JSON.stringify(R3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeBackupCommand=h2;var _2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},r;return r=JSON.stringify(D3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContinuousBackupsCommand=_2;var y2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},r;return r=JSON.stringify(N3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContributorInsightsCommand=y2;var g2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},r;return r=JSON.stringify(P3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeEndpointsCommand=g2;var v2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},r;return r=JSON.stringify(O3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeExportCommand=v2;var S2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},r;return r=JSON.stringify(L3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableCommand=S2;var w2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},r;return r=JSON.stringify(q3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=w2;var b2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},r;return r=JSON.stringify(M3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=b2;var E2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},r;return r=JSON.stringify(z3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeLimitsCommand=E2;var A2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},r;return r=JSON.stringify(j3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableCommand=A2;var T2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},r;return r=JSON.stringify(k3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=T2;var C2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},r;return r=JSON.stringify(F3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTimeToLiveCommand=C2;var x2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},r;return r=JSON.stringify(XA(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=x2;var I2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},r;return r=JSON.stringify(XA(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=I2;var R2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},r;return r=JSON.stringify(U3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteStatementCommand=R2;var D2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},r;return r=JSON.stringify(B3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteTransactionCommand=D2;var N2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},r;return r=JSON.stringify($3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ExportTableToPointInTimeCommand=N2;var P2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},r;return r=JSON.stringify(K3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0GetItemCommand=P2;var O2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},r;return r=JSON.stringify(sW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListBackupsCommand=O2;var L2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},r;return r=JSON.stringify(oW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListContributorInsightsCommand=L2;var q2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},r;return r=JSON.stringify(aW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListExportsCommand=q2;var M2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},r;return r=JSON.stringify(cW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListGlobalTablesCommand=M2;var z2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},r;return r=JSON.stringify(lW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTablesCommand=z2;var j2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},r;return r=JSON.stringify(uW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTagsOfResourceCommand=j2;var k2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},r;return r=JSON.stringify(SW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0PutItemCommand=k2;var F2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},r;return r=JSON.stringify(bW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0QueryCommand=F2;var U2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},r;return r=JSON.stringify(jW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableFromBackupCommand=U2;var B2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},r;return r=JSON.stringify(kW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableToPointInTimeCommand=B2;var G2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},r;return r=JSON.stringify(FW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ScanCommand=G2;var $2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},r;return r=JSON.stringify($W(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0TagResourceCommand=$2;var V2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},r;return r=JSON.stringify(HW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactGetItemsCommand=V2;var K2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},r;return r=JSON.stringify(QW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactWriteItemsCommand=K2;var W2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},r;return r=JSON.stringify(XW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UntagResourceCommand=W2;var H2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},r;return r=JSON.stringify(eH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContinuousBackupsCommand=H2;var Y2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},r;return r=JSON.stringify(tH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContributorInsightsCommand=Y2;var J2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},r;return r=JSON.stringify(rH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableCommand=J2;var Q2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},r;return r=JSON.stringify(iH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=Q2;var X2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},r;return r=JSON.stringify(sH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateItemCommand=X2;var Z2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},r;return r=JSON.stringify(aH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableCommand=Z2;var eV=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},r;return r=JSON.stringify(cH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=eV;var tV=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},r;return r=JSON.stringify(lH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTimeToLiveCommand=tV;var nV=async(e,t)=>{if(e.statusCode>=300)return rV(e,t);let n=await D(e.body,t),r={};r=EH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0BatchExecuteStatementCommand=nV;var rV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},iV=async(e,t)=>{if(e.statusCode>=300)return sV(e,t);let n=await D(e.body,t),r={};r=AH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0BatchGetItemCommand=iV;var sV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},oV=async(e,t)=>{if(e.statusCode>=300)return aV(e,t);let n=await D(e.body,t),r={};r=RH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0BatchWriteItemCommand=oV;var aV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Wo(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},cV=async(e,t)=>{if(e.statusCode>=300)return lV(e,t);let n=await D(e.body,t),r={};r=kH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0CreateBackupCommand=cV;var lV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await oy(n,t);case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await BA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await cy(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},uV=async(e,t)=>{if(e.statusCode>=300)return dV(e,t);let n=await D(e.body,t),r={};r=FH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0CreateGlobalTableCommand=uV;var dV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":throw await QK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},fV=async(e,t)=>{if(e.statusCode>=300)return mV(e,t);let n=await D(e.body,t),r={};r=UH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0CreateTableCommand=fV;var mV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},pV=async(e,t)=>{if(e.statusCode>=300)return hV(e,t);let n=await D(e.body,t),r={};r=BH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteBackupCommand=pV;var hV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await oy(n,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await ay(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},_V=async(e,t)=>{if(e.statusCode>=300)return yV(e,t);let n=await D(e.body,t),r={};r=GH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteItemCommand=_V;var yV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Wo(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Sl(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},gV=async(e,t)=>{if(e.statusCode>=300)return vV(e,t);let n=await D(e.body,t),r={};r=VH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteTableCommand=gV;var vV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},SV=async(e,t)=>{if(e.statusCode>=300)return wV(e,t);let n=await D(e.body,t),r={};r=KH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeBackupCommand=SV;var wV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await ay(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},bV=async(e,t)=>{if(e.statusCode>=300)return EV(e,t);let n=await D(e.body,t),r={};r=WH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContinuousBackupsCommand=bV;var EV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},AV=async(e,t)=>{if(e.statusCode>=300)return TV(e,t);let n=await D(e.body,t),r={};r=HH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContributorInsightsCommand=AV;var TV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},CV=async(e,t)=>{if(e.statusCode>=300)return xV(e,t);let n=await D(e.body,t),r={};r=YH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeEndpointsCommand=CV;var xV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},IV=async(e,t)=>{if(e.statusCode>=300)return RV(e,t);let n=await D(e.body,t),r={};r=JH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeExportCommand=IV;var RV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":throw await JK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},DV=async(e,t)=>{if(e.statusCode>=300)return NV(e,t);let n=await D(e.body,t),r={};r=QH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableCommand=DV;var NV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await vl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},PV=async(e,t)=>{if(e.statusCode>=300)return OV(e,t);let n=await D(e.body,t),r={};r=XH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=PV;var OV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await vl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},LV=async(e,t)=>{if(e.statusCode>=300)return qV(e,t);let n=await D(e.body,t),r={};r=ZH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=LV;var qV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},MV=async(e,t)=>{if(e.statusCode>=300)return zV(e,t);let n=await D(e.body,t),r={};r=e8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeLimitsCommand=MV;var zV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},jV=async(e,t)=>{if(e.statusCode>=300)return kV(e,t);let n=await D(e.body,t),r={};r=t8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableCommand=jV;var kV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},FV=async(e,t)=>{if(e.statusCode>=300)return UV(e,t);let n=await D(e.body,t),r={};r=n8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=FV;var UV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},BV=async(e,t)=>{if(e.statusCode>=300)return GV(e,t);let n=await D(e.body,t),r={};r=r8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTimeToLiveCommand=BV;var GV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},$V=async(e,t)=>{if(e.statusCode>=300)return VV(e,t);let n=await D(e.body,t),r={};r=uT(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=$V;var VV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},KV=async(e,t)=>{if(e.statusCode>=300)return WV(e,t);let n=await D(e.body,t),r={};r=uT(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=KV;var WV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},HV=async(e,t)=>{if(e.statusCode>=300)return YV(e,t);let n=await D(e.body,t),r={};r=a8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteStatementCommand=HV;var YV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":throw await HK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Wo(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Sl(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},JV=async(e,t)=>{if(e.statusCode>=300)return QV(e,t);let n=await D(e.body,t),r={};r=c8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteTransactionCommand=JV;var QV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await GA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await ly(n,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await WA(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},XV=async(e,t)=>{if(e.statusCode>=300)return ZV(e,t);let n=await D(e.body,t),r={};r=m8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ExportTableToPointInTimeCommand=XV;var ZV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":throw await YK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":throw await ZK(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await $A(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},eK=async(e,t)=>{if(e.statusCode>=300)return tK(e,t);let n=await D(e.body,t),r={};r=_8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0GetItemCommand=eK;var tK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},nK=async(e,t)=>{if(e.statusCode>=300)return rK(e,t);let n=await D(e.body,t),r={};r=G8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListBackupsCommand=nK;var rK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},iK=async(e,t)=>{if(e.statusCode>=300)return sK(e,t);let n=await D(e.body,t),r={};r=$8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListContributorInsightsCommand=iK;var sK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},oK=async(e,t)=>{if(e.statusCode>=300)return aK(e,t);let n=await D(e.body,t),r={};r=V8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListExportsCommand=oK;var aK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},cK=async(e,t)=>{if(e.statusCode>=300)return lK(e,t);let n=await D(e.body,t),r={};r=K8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListGlobalTablesCommand=cK;var lK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},uK=async(e,t)=>{if(e.statusCode>=300)return dK(e,t);let n=await D(e.body,t),r={};r=W8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListTablesCommand=uK;var dK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},fK=async(e,t)=>{if(e.statusCode>=300)return mK(e,t);let n=await D(e.body,t),r={};r=H8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListTagsOfResourceCommand=fK;var mK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},pK=async(e,t)=>{if(e.statusCode>=300)return hK(e,t);let n=await D(e.body,t),r={};r=a4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0PutItemCommand=pK;var hK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Wo(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Sl(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},_K=async(e,t)=>{if(e.statusCode>=300)return yK(e,t);let n=await D(e.body,t),r={};r=l4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0QueryCommand=_K;var yK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},gK=async(e,t)=>{if(e.statusCode>=300)return vK(e,t);let n=await D(e.body,t),r={};r=I4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableFromBackupCommand=gK;var vK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await oy(n,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await ay(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await KA(n,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await cy(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},SK=async(e,t)=>{if(e.statusCode>=300)return wK(e,t);let n=await D(e.body,t),r={};r=R4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=SK;var wK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":throw await e3(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await $A(n,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await KA(n,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await cy(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},bK=async(e,t)=>{if(e.statusCode>=300)return EK(e,t);let n=await D(e.body,t),r={};r=D4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ScanCommand=bK;var EK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},AK=async(e,t)=>{if(e.statusCode>=300)return TK(e,t);await vy(e.body,t);let n={$metadata:C(e)};return Promise.resolve(n)};v.deserializeAws_json1_0TagResourceCommand=AK;var TK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},CK=async(e,t)=>{if(e.statusCode>=300)return xK(e,t);let n=await D(e.body,t),r={};r=U4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0TransactGetItemsCommand=CK;var xK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await ly(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},IK=async(e,t)=>{if(e.statusCode>=300)return RK(e,t);let n=await D(e.body,t),r={};r=V4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0TransactWriteItemsCommand=IK;var RK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await GA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await ly(n,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await WA(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},DK=async(e,t)=>{if(e.statusCode>=300)return NK(e,t);await vy(e.body,t);let n={$metadata:C(e)};return Promise.resolve(n)};v.deserializeAws_json1_0UntagResourceCommand=DK;var NK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},PK=async(e,t)=>{if(e.statusCode>=300)return OK(e,t);let n=await D(e.body,t),r={};r=K4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContinuousBackupsCommand=PK;var OK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await BA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},LK=async(e,t)=>{if(e.statusCode>=300)return qK(e,t);let n=await D(e.body,t),r={};r=W4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContributorInsightsCommand=LK;var qK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},MK=async(e,t)=>{if(e.statusCode>=300)return zK(e,t);let n=await D(e.body,t),r={};r=H4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableCommand=MK;var zK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await vl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":throw await t3(n,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await VA(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},jK=async(e,t)=>{if(e.statusCode>=300)return kK(e,t);let n=await D(e.body,t),r={};r=Y4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=jK;var kK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await vl(n,t);case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":throw await XK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await VA(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},FK=async(e,t)=>{if(e.statusCode>=300)return UK(e,t);let n=await D(e.body,t),r={};r=J4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateItemCommand=FK;var UK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Wo(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Sl(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},BK=async(e,t)=>{if(e.statusCode>=300)return GK(e,t);let n=await D(e.body,t),r={};r=Q4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableCommand=BK;var GK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},$K=async(e,t)=>{if(e.statusCode>=300)return VK(e,t);let n=await D(e.body,t),r={};r=X4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=$K;var VK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},KK=async(e,t)=>{if(e.statusCode>=300)return WK(e,t);let n=await D(e.body,t),r={};r=Z4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTimeToLiveCommand=KK;var WK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},oy=async(e,t)=>{let n=e.body,r=vH(n,t),i=new ve.BackupInUseException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},ay=async(e,t)=>{let n=e.body,r=SH(n,t),i=new ve.BackupNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},gl=async(e,t)=>{let n=e.body,r=LH(n,t),i=new ve.ConditionalCheckFailedException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},BA=async(e,t)=>{let n=e.body,r=qH(n,t),i=new ve.ContinuousBackupsUnavailableException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},HK=async(e,t)=>{let n=e.body,r=i8(n,t),i=new ve.DuplicateItemException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},YK=async(e,t)=>{let n=e.body,r=l8(n,t),i=new ve.ExportConflictException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},JK=async(e,t)=>{let n=e.body,r=u8(n,t),i=new ve.ExportNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},QK=async(e,t)=>{let n=e.body,r=b8(n,t),i=new ve.GlobalTableAlreadyExistsException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},vl=async(e,t)=>{let n=e.body,r=A8(n,t),i=new ve.GlobalTableNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},GA=async(e,t)=>{let n=e.body,r=T8(n,t),i=new ve.IdempotentParameterMismatchException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},XK=async(e,t)=>{let n=e.body,r=C8(n,t),i=new ve.IndexNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},re=async(e,t)=>{let n=e.body,r=x8(n,t),i=new ve.InternalServerError({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},le=async(e,t)=>{let n=e.body,r=I8(n,t),i=new ve.InvalidEndpointException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},ZK=async(e,t)=>{let n=e.body,r=R8(n,t),i=new ve.InvalidExportTimeException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},e3=async(e,t)=>{let n=e.body,r=D8(n,t),i=new ve.InvalidRestoreTimeException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Wo=async(e,t)=>{let n=e.body,r=L8(n,t),i=new ve.ItemCollectionSizeLimitExceededException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Qe=async(e,t)=>{let n=e.body,r=U8(n,t),i=new ve.LimitExceededException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},$A=async(e,t)=>{let n=e.body,r=i4(n,t),i=new ve.PointInTimeRecoveryUnavailableException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Bt=async(e,t)=>{let n=e.body,r=s4(n,t),i=new ve.ProvisionedThroughputExceededException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},t3=async(e,t)=>{let n=e.body,r=d4(n,t),i=new ve.ReplicaAlreadyExistsException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},VA=async(e,t)=>{let n=e.body,r=b4(n,t),i=new ve.ReplicaNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Lt=async(e,t)=>{let n=e.body,r=A4(n,t),i=new ve.RequestLimitExceeded({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},hn=async(e,t)=>{let n=e.body,r=T4(n,t),i=new ve.ResourceInUseException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Ce=async(e,t)=>{let n=e.body,r=C4(n,t),i=new ve.ResourceNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},KA=async(e,t)=>{let n=e.body,r=L4(n,t),i=new ve.TableAlreadyExistsException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},cy=async(e,t)=>{let n=e.body,r=q4(n,t),i=new ve.TableInUseException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},ai=async(e,t)=>{let n=e.body,r=z4(n,t),i=new ve.TableNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},ly=async(e,t)=>{let n=e.body,r=B4(n,t),i=new ve.TransactionCanceledException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Sl=async(e,t)=>{let n=e.body,r=G4(n,t),i=new ve.TransactionConflictException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},WA=async(e,t)=>{let n=e.body,r=$4(n,t),i=new ve.TransactionInProgressException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},n3=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}}),HA=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n3(n,t)),wl=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),r3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:i3(i,t)},{}),Kn=(e,t)=>ve.AttributeValue.visit(e,{B:n=>({B:t.base64Encoder(n)}),BOOL:n=>({BOOL:n}),BS:n=>({BS:m3(n,t)}),L:n=>({L:iW(n,t)}),M:n=>({M:fW(n,t)}),N:n=>({N:n}),NS:n=>({NS:pW(n,t)}),NULL:n=>({NULL:n}),S:n=>({S:n}),SS:n=>({SS:UW(n,t)}),_:(n,r)=>({name:r})}),YA=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Kn(n,t)),i3=(e,t)=>({...e.Action!==void 0&&e.Action!==null&&{Action:e.Action},...e.Value!==void 0&&e.Value!==null&&{Value:Kn(e.Value,t)}}),s3=(e,t)=>({...e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName},...e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:o3(e.TargetTrackingScalingPolicyConfiguration,t)}}),Er=(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:s3(e.ScalingPolicyUpdate,t)}}),o3=(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,p.serializeFloat)(e.TargetValue)}}),a3=(e,t)=>({...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.Statements!==void 0&&e.Statements!==null&&{Statements:yW(e.Statements,t)}}),c3=(e,t)=>({...e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:l3(e.RequestItems,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}}),l3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:nW(i,t)},{}),u3=(e,t)=>({...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:my(e.Parameters,t)},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),d3=(e,t)=>({...e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:f3(e.RequestItems,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}}),f3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:dH(i,t)},{}),m3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t.base64Encoder(n)),JA=(e,t)=>({...e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:YA(e.AttributeValueList,t)},...e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}}),p3=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),h3=(e,t)=>({...e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),_3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:py(e.Projection,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:ci(e.ProvisionedThroughput,t)}}),y3=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:NW(e.ReplicationGroup,t)}}),g3=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),v3=(e,t)=>({...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:ZA(e.GlobalSecondaryIndexes,t)},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:hy(e.ProvisionedThroughputOverride,t)},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}}),S3=(e,t)=>({...e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:HA(e.AttributeDefinitions,t)},...e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode},...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:dy(e.GlobalSecondaryIndexes,t)},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)},...e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:fy(e.LocalSecondaryIndexes,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:ci(e.ProvisionedThroughput,t)},...e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:El(e.SSESpecification,t)},...e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:eT(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:tT(e.Tags,t)}}),w3=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),b3=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}}),E3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}}),A3=(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:uy(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(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}}),T3=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),C3=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),x3=(e,t)=>({...e.Key!==void 0&&e.Key!==null&&{Key:Zt(e.Key,t)}}),I3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),R3=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}}),D3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),N3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),P3=(e,t)=>({}),O3=(e,t)=>({...e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}}),L3=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}}),q3=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}}),M3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),z3=(e,t)=>({}),j3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),k3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),F3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),U3=(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:my(e.Parameters,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),B3=(e,t)=>{var n;return{ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:(0,sy.v4)(),...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:_W(e.TransactStatements,t)}}},uy=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:G3(i,t)},{}),G3=(e,t)=>({...e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:YA(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:Kn(e.Value,t)}}),$3=(e,t)=>{var n;return{ClientToken:(n=e.ClientToken)!==null&&n!==void 0?n:(0,sy.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}}},Gt=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:i},{}),Wn=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Kn(i,t)},{}),QA=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:JA(i,t)},{}),V3=(e,t)=>({...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(e.Key,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),K3=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(e.AttributesToGet,t)},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(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}}),W3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:py(e.Projection,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:ci(e.ProvisionedThroughput,t)}}),H3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Er(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}}),Y3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:H3(n,t)),dy=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:W3(n,t)),J3=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:_3(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:E3(e.Delete,t)},...e.Update!==void 0&&e.Update!==null&&{Update:nH(e.Update,t)}}),Q3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:J3(n,t)),X3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Er(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)},...e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}}),Z3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:X3(n,t)),Zt=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Kn(i,t)},{}),eW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:JA(i,t)},{}),tW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Zt(n,t)),nW=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(e.AttributesToGet,t)},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.Keys!==void 0&&e.Keys!==null&&{Keys:tW(e.Keys,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}}),bl=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:rW(n,t)),rW=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}}),XA=(e,t)=>({...e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),iW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Kn(n,t)),sW=(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)}}),oW=(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}}),aW=(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}}),cW=(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}}),lW=(e,t)=>({...e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}}),uW=(e,t)=>({...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}}),dW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:py(e.Projection,t)}}),fy=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:dW(n,t)),fW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Kn(i,t)},{}),mW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),pW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),hW=(e,t)=>({...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:my(e.Parameters,t)},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),_W=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:hW(n,t)),yW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:u3(n,t)),gW=(e,t)=>({...e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}}),my=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Kn(n,t)),py=(e,t)=>({...e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:mW(e.NonKeyAttributes,t)},...e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}}),ci=(e,t)=>({...e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits},...e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}}),hy=(e,t)=>({...e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}}),vW=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Item!==void 0&&e.Item!==null&&{Item:_y(e.Item,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),SW=(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:uy(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Item!==void 0&&e.Item!==null&&{Item:_y(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}}),_y=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Kn(i,t)},{}),wW=(e,t)=>({...e.Item!==void 0&&e.Item!==null&&{Item:_y(e.Item,t)}}),bW=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(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:Zt(e.ExclusiveStartKey,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(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:eW(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:QA(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}}),EW=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),AW=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:IW(e.ReplicaGlobalSecondaryIndexUpdates,t)},...e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Er(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}}),TW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:AW(n,t)),CW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:hy(e.ProvisionedThroughputOverride,t)}}),xW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Er(e.ProvisionedReadCapacityAutoScalingUpdate,t)}}),IW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:xW(n,t)),ZA=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:CW(n,t)),RW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Er(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)},...e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}}),DW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:RW(n,t)),NW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:EW(n,t)),PW=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:DW(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)},...e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Er(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)},...e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits},...e.ReplicaTableClass!==void 0&&e.ReplicaTableClass!==null&&{ReplicaTableClass:e.ReplicaTableClass}}),OW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:PW(n,t)),LW=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:v3(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:C3(e.Delete,t)},...e.Update!==void 0&&e.Update!==null&&{Update:oH(e.Update,t)}}),qW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:LW(n,t)),MW=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:g3(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:T3(e.Delete,t)}}),zW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:MW(n,t)),jW=(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:dy(e.GlobalSecondaryIndexOverride,t)},...e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:fy(e.LocalSecondaryIndexOverride,t)},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:ci(e.ProvisionedThroughputOverride,t)},...e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:El(e.SSESpecificationOverride,t)},...e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}}),kW=(e,t)=>({...e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride},...e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:dy(e.GlobalSecondaryIndexOverride,t)},...e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:fy(e.LocalSecondaryIndexOverride,t)},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:ci(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:El(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}}),FW=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(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:Zt(e.ExclusiveStartKey,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(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:QA(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}}),El=(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}}),eT=(e,t)=>({...e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled},...e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}}),UW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),BW=(e,t)=>({...e.Key!==void 0&&e.Key!==null&&{Key:e.Key},...e.Value!==void 0&&e.Value!==null&&{Value:e.Value}}),GW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),tT=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:BW(n,t)),$W=(e,t)=>({...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn},...e.Tags!==void 0&&e.Tags!==null&&{Tags:tT(e.Tags,t)}}),VW=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}}),KW=(e,t)=>({...e.Get!==void 0&&e.Get!==null&&{Get:V3(e.Get,t)}}),WW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:KW(n,t)),HW=(e,t)=>({...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:WW(e.TransactItems,t)}}),YW=(e,t)=>({...e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:p3(e.ConditionCheck,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:w3(e.Delete,t)},...e.Put!==void 0&&e.Put!==null&&{Put:vW(e.Put,t)},...e.Update!==void 0&&e.Update!==null&&{Update:ZW(e.Update,t)}}),JW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:YW(n,t)),QW=(e,t)=>{var n;return{ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:(0,sy.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:JW(e.TransactItems,t)}}},XW=(e,t)=>({...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn},...e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:GW(e.TagKeys,t)}}),ZW=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(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}}),eH=(e,t)=>({...e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:gW(e.PointInTimeRecoverySpecification,t)},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),tH=(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}}),nH=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:ci(e.ProvisionedThroughput,t)}}),rH=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:zW(e.ReplicaUpdates,t)}}),iH=(e,t)=>({...e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode},...e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:Z3(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)},...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Er(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)},...e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits},...e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:OW(e.ReplicaSettingsUpdate,t)}}),sH=(e,t)=>({...e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:r3(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:uy(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(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}}),oH=(e,t)=>({...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:ZA(e.GlobalSecondaryIndexes,t)},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:hy(e.ProvisionedThroughputOverride,t)},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}}),aH=(e,t)=>({...e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:HA(e.AttributeDefinitions,t)},...e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode},...e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:Q3(e.GlobalSecondaryIndexUpdates,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:ci(e.ProvisionedThroughput,t)},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:qW(e.ReplicaUpdates,t)},...e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:El(e.SSESpecification,t)},...e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:eT(e.StreamSpecification,t)},...e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),cH=(e,t)=>({...e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:Y3(e.GlobalSecondaryIndexUpdates,t)},...e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Er(e.ProvisionedWriteCapacityAutoScalingUpdate,t)},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:TW(e.ReplicaUpdates,t)},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),lH=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:VW(e.TimeToLiveSpecification,t)}}),uH=(e,t)=>({...e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:x3(e.DeleteRequest,t)},...e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:wW(e.PutRequest,t)}}),dH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:uH(n,t)),fH=(e,t)=>({ArchivalBackupArn:(0,p.expectString)(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ArchivalDateTime))):void 0,ArchivalReason:(0,p.expectString)(e.ArchivalReason)}),mH=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),AttributeType:(0,p.expectString)(e.AttributeType)}),pH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:mH(r,t)),Ar=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Qi((0,p.expectUnion)(i),t)},{}),hH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),Qi=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:(0,p.expectBoolean)(e.BOOL)!==void 0?{BOOL:(0,p.expectBoolean)(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:NH(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:B8(e.L,t)}:e.M!==void 0&&e.M!==null?{M:Z8(e.M,t)}:(0,p.expectString)(e.N)!==void 0?{N:(0,p.expectString)(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:t4(e.NS,t)}:(0,p.expectBoolean)(e.NULL)!==void 0?{NULL:(0,p.expectBoolean)(e.NULL)}:(0,p.expectString)(e.S)!==void 0?{S:(0,p.expectString)(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:O4(e.SS,t)}:{$unknown:Object.entries(e)[0]},_H=(e,t)=>({PolicyName:(0,p.expectString)(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?gH(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),yH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:_H(r,t)),br=(e,t)=>({AutoScalingDisabled:(0,p.expectBoolean)(e.AutoScalingDisabled),AutoScalingRoleArn:(0,p.expectString)(e.AutoScalingRoleArn),MaximumUnits:(0,p.expectLong)(e.MaximumUnits),MinimumUnits:(0,p.expectLong)(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?yH(e.ScalingPolicies,t):void 0}),gH=(e,t)=>({DisableScaleIn:(0,p.expectBoolean)(e.DisableScaleIn),ScaleInCooldown:(0,p.expectInt32)(e.ScaleInCooldown),ScaleOutCooldown:(0,p.expectInt32)(e.ScaleOutCooldown),TargetValue:(0,p.limitedParseDouble)(e.TargetValue)}),nT=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?rT(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?N4(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?P4(e.SourceTableFeatureDetails,t):void 0}),rT=(e,t)=>({BackupArn:(0,p.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,p.expectString)(e.BackupName),BackupSizeBytes:(0,p.expectLong)(e.BackupSizeBytes),BackupStatus:(0,p.expectString)(e.BackupStatus),BackupType:(0,p.expectString)(e.BackupType)}),vH=(e,t)=>({message:(0,p.expectString)(e.message)}),SH=(e,t)=>({message:(0,p.expectString)(e.message)}),wH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:bH(r,t)),bH=(e,t)=>({BackupArn:(0,p.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,p.expectString)(e.BackupName),BackupSizeBytes:(0,p.expectLong)(e.BackupSizeBytes),BackupStatus:(0,p.expectString)(e.BackupStatus),BackupType:(0,p.expectString)(e.BackupType),TableArn:(0,p.expectString)(e.TableArn),TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName)}),EH=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?n4(e.Responses,t):void 0}),AH=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?CH(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?TH(e.UnprocessedKeys,t):void 0}),TH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:z8(i,t)},{}),CH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Tl(i,t)},{}),xH=(e,t)=>({Code:(0,p.expectString)(e.Code),Message:(0,p.expectString)(e.Message)}),IH=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?xH(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Ar(e.Item,t):void 0,TableName:(0,p.expectString)(e.TableName)}),RH=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?cT(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?DH(e.UnprocessedItems,t):void 0}),DH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:t6(i,t)},{}),iT=(e,t)=>({BillingMode:(0,p.expectString)(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateToPayPerRequestDateTime))):void 0}),NH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:t.base64Decoder(r)),PH=(e,t)=>({Code:(0,p.expectString)(e.Code),Item:e.Item!==void 0&&e.Item!==null?Ar(e.Item,t):void 0,Message:(0,p.expectString)(e.Message)}),OH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:PH(r,t)),sT=(e,t)=>({CapacityUnits:(0,p.limitedParseDouble)(e.CapacityUnits),ReadCapacityUnits:(0,p.limitedParseDouble)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.limitedParseDouble)(e.WriteCapacityUnits)}),LH=(e,t)=>({message:(0,p.expectString)(e.message)}),Tr=(e,t)=>({CapacityUnits:(0,p.limitedParseDouble)(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?UA(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?UA(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:(0,p.limitedParseDouble)(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?sT(e.Table,t):void 0,TableName:(0,p.expectString)(e.TableName),WriteCapacityUnits:(0,p.limitedParseDouble)(e.WriteCapacityUnits)}),Xi=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Tr(r,t)),oT=(e,t)=>({ContinuousBackupsStatus:(0,p.expectString)(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?r4(e.PointInTimeRecoveryDescription,t):void 0}),qH=(e,t)=>({message:(0,p.expectString)(e.message)}),MH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),zH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:jH(r,t)),jH=(e,t)=>({ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),IndexName:(0,p.expectString)(e.IndexName),TableName:(0,p.expectString)(e.TableName)}),kH=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?rT(e.BackupDetails,t):void 0}),FH=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?yy(e.GlobalTableDescription,t):void 0}),UH=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),BH=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?nT(e.BackupDescription,t):void 0}),GH=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Ar(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Al(e.ItemCollectionMetrics,t):void 0}),$H=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?Ho(e.Key,t):void 0}),VH=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),KH=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?nT(e.BackupDescription,t):void 0}),WH=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?oT(e.ContinuousBackupsDescription,t):void 0}),HH=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?MH(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?h8(e.FailureException,t):void 0,IndexName:(0,p.expectString)(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateDateTime))):void 0,TableName:(0,p.expectString)(e.TableName)}),YH=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?o8(e.Endpoints,t):void 0}),JH=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?aT(e.ExportDescription,t):void 0}),QH=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?yy(e.GlobalTableDescription,t):void 0}),XH=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?hT(e.ReplicaSettings,t):void 0}),ZH=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?F8(e.KinesisDataStreamDestinations,t):void 0,TableName:(0,p.expectString)(e.TableName)}),e8=(e,t)=>({AccountMaxReadCapacityUnits:(0,p.expectLong)(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:(0,p.expectLong)(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:(0,p.expectLong)(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:(0,p.expectLong)(e.TableMaxWriteCapacityUnits)}),t8=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?es(e.Table,t):void 0}),n8=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?gT(e.TableAutoScalingDescription,t):void 0}),r8=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?vT(e.TimeToLiveDescription,t):void 0}),i8=(e,t)=>({message:(0,p.expectString)(e.message)}),s8=(e,t)=>({Address:(0,p.expectString)(e.Address),CachePeriodInMinutes:(0,p.expectLong)(e.CachePeriodInMinutes)}),o8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:s8(r,t)),a8=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,Items:e.Items!==void 0&&e.Items!==null?Tl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Ho(e.LastEvaluatedKey,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),c8=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?lT(e.Responses,t):void 0}),l8=(e,t)=>({message:(0,p.expectString)(e.message)}),aT=(e,t)=>({BilledSizeBytes:(0,p.expectLong)(e.BilledSizeBytes),ClientToken:(0,p.expectString)(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.EndTime))):void 0,ExportArn:(0,p.expectString)(e.ExportArn),ExportFormat:(0,p.expectString)(e.ExportFormat),ExportManifest:(0,p.expectString)(e.ExportManifest),ExportStatus:(0,p.expectString)(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ExportTime))):void 0,FailureCode:(0,p.expectString)(e.FailureCode),FailureMessage:(0,p.expectString)(e.FailureMessage),ItemCount:(0,p.expectLong)(e.ItemCount),S3Bucket:(0,p.expectString)(e.S3Bucket),S3BucketOwner:(0,p.expectString)(e.S3BucketOwner),S3Prefix:(0,p.expectString)(e.S3Prefix),S3SseAlgorithm:(0,p.expectString)(e.S3SseAlgorithm),S3SseKmsKeyId:(0,p.expectString)(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.StartTime))):void 0,TableArn:(0,p.expectString)(e.TableArn),TableId:(0,p.expectString)(e.TableId)}),u8=(e,t)=>({message:(0,p.expectString)(e.message)}),d8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:f8(r,t)),f8=(e,t)=>({ExportArn:(0,p.expectString)(e.ExportArn),ExportStatus:(0,p.expectString)(e.ExportStatus)}),m8=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?aT(e.ExportDescription,t):void 0}),p8=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:(0,p.expectString)(i)},{}),h8=(e,t)=>({ExceptionDescription:(0,p.expectString)(e.ExceptionDescription),ExceptionName:(0,p.expectString)(e.ExceptionName)}),_8=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Ar(e.Item,t):void 0}),y8=(e,t)=>({Backfilling:(0,p.expectBoolean)(e.Backfilling),IndexArn:(0,p.expectString)(e.IndexArn),IndexName:(0,p.expectString)(e.IndexName),IndexSizeBytes:(0,p.expectLong)(e.IndexSizeBytes),IndexStatus:(0,p.expectString)(e.IndexStatus),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?fT(e.ProvisionedThroughput,t):void 0}),g8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:y8(r,t)),v8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:S8(r,t)),S8=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?dT(e.ProvisionedThroughput,t):void 0}),w8=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?w4(e.ReplicationGroup,t):void 0}),b8=(e,t)=>({message:(0,p.expectString)(e.message)}),yy=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.CreationDateTime))):void 0,GlobalTableArn:(0,p.expectString)(e.GlobalTableArn),GlobalTableName:(0,p.expectString)(e.GlobalTableName),GlobalTableStatus:(0,p.expectString)(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?pT(e.ReplicationGroup,t):void 0}),E8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:w8(r,t)),A8=(e,t)=>({message:(0,p.expectString)(e.message)}),T8=(e,t)=>({Message:(0,p.expectString)(e.Message)}),C8=(e,t)=>({message:(0,p.expectString)(e.message)}),x8=(e,t)=>({message:(0,p.expectString)(e.message)}),I8=(e,t)=>({Message:(0,p.expectString)(e.Message)}),R8=(e,t)=>({message:(0,p.expectString)(e.message)}),D8=(e,t)=>({message:(0,p.expectString)(e.message)}),N8=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Qi((0,p.expectUnion)(i),t)},{}),Al=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?N8(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?O8(e.SizeEstimateRangeGB,t):void 0}),P8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Al(r,t)),cT=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:P8(i,t)},{}),O8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.limitedParseDouble)(r)),L8=(e,t)=>({message:(0,p.expectString)(e.message)}),Tl=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Ar(r,t)),q8=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?Ar(e.Item,t):void 0}),lT=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:q8(r,t)),Ho=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Qi((0,p.expectUnion)(i),t)},{}),M8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Ho(r,t)),z8=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?hH(e.AttributesToGet,t):void 0,ConsistentRead:(0,p.expectBoolean)(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?p8(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?M8(e.Keys,t):void 0,ProjectionExpression:(0,p.expectString)(e.ProjectionExpression)}),Zi=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:j8(r,t)),j8=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),KeyType:(0,p.expectString)(e.KeyType)}),k8=(e,t)=>({DestinationStatus:(0,p.expectString)(e.DestinationStatus),DestinationStatusDescription:(0,p.expectString)(e.DestinationStatusDescription),StreamArn:(0,p.expectString)(e.StreamArn)}),F8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:k8(r,t)),uT=(e,t)=>({DestinationStatus:(0,p.expectString)(e.DestinationStatus),StreamArn:(0,p.expectString)(e.StreamArn),TableName:(0,p.expectString)(e.TableName)}),U8=(e,t)=>({message:(0,p.expectString)(e.message)}),B8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Qi((0,p.expectUnion)(r),t)),G8=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?wH(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:(0,p.expectString)(e.LastEvaluatedBackupArn)}),$8=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?zH(e.ContributorInsightsSummaries,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),V8=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?d8(e.ExportSummaries,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),K8=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?E8(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:(0,p.expectString)(e.LastEvaluatedGlobalTableName)}),W8=(e,t)=>({LastEvaluatedTableName:(0,p.expectString)(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?M4(e.TableNames,t):void 0}),H8=(e,t)=>({NextToken:(0,p.expectString)(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?k4(e.Tags,t):void 0}),Y8=(e,t)=>({IndexArn:(0,p.expectString)(e.IndexArn),IndexName:(0,p.expectString)(e.IndexName),IndexSizeBytes:(0,p.expectLong)(e.IndexSizeBytes),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0}),J8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Y8(r,t)),Q8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:X8(r,t)),X8=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0}),Z8=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Qi((0,p.expectUnion)(i),t)},{}),e4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),t4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),n4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:IH(r,t)),r4=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.EarliestRestorableDateTime))):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LatestRestorableDateTime))):void 0,PointInTimeRecoveryStatus:(0,p.expectString)(e.PointInTimeRecoveryStatus)}),i4=(e,t)=>({message:(0,p.expectString)(e.message)}),Cl=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?e4(e.NonKeyAttributes,t):void 0,ProjectionType:(0,p.expectString)(e.ProjectionType)}),dT=(e,t)=>({ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.expectLong)(e.WriteCapacityUnits)}),fT=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastDecreaseDateTime))):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastIncreaseDateTime))):void 0,NumberOfDecreasesToday:(0,p.expectLong)(e.NumberOfDecreasesToday),ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.expectLong)(e.WriteCapacityUnits)}),s4=(e,t)=>({message:(0,p.expectString)(e.message)}),mT=(e,t)=>({ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits)}),o4=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Qi((0,p.expectUnion)(i),t)},{}),a4=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Ar(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Al(e.ItemCollectionMetrics,t):void 0}),c4=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?o4(e.Item,t):void 0}),l4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,Count:(0,p.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Tl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Ho(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,p.expectInt32)(e.ScannedCount)}),u4=(e,t)=>({RegionName:(0,p.expectString)(e.RegionName)}),d4=(e,t)=>({message:(0,p.expectString)(e.message)}),f4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?_4(e.GlobalSecondaryIndexes,t):void 0,RegionName:(0,p.expectString)(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?br(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?br(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:(0,p.expectString)(e.ReplicaStatus)}),m4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:f4(r,t)),p4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?g4(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:(0,p.expectString)(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?mT(e.ProvisionedThroughputOverride,t):void 0,RegionName:(0,p.expectString)(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ReplicaInaccessibleDateTime))):void 0,ReplicaStatus:(0,p.expectString)(e.ReplicaStatus),ReplicaStatusDescription:(0,p.expectString)(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:(0,p.expectString)(e.ReplicaStatusPercentProgress),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?gy(e.ReplicaTableClassSummary,t):void 0}),pT=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:p4(r,t)),h4=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),IndexStatus:(0,p.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?br(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?br(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),_4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:h4(r,t)),y4=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?mT(e.ProvisionedThroughputOverride,t):void 0}),g4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:y4(r,t)),v4=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),IndexStatus:(0,p.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?br(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:(0,p.expectLong)(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?br(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:(0,p.expectLong)(e.ProvisionedWriteCapacityUnits)}),S4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:v4(r,t)),w4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:u4(r,t)),b4=(e,t)=>({message:(0,p.expectString)(e.message)}),E4=(e,t)=>({RegionName:(0,p.expectString)(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?iT(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?S4(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?br(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:(0,p.expectLong)(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?br(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:(0,p.expectLong)(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:(0,p.expectString)(e.ReplicaStatus),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?gy(e.ReplicaTableClassSummary,t):void 0}),hT=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:E4(r,t)),A4=(e,t)=>({message:(0,p.expectString)(e.message)}),T4=(e,t)=>({message:(0,p.expectString)(e.message)}),C4=(e,t)=>({message:(0,p.expectString)(e.message)}),x4=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.RestoreDateTime))):void 0,RestoreInProgress:(0,p.expectBoolean)(e.RestoreInProgress),SourceBackupArn:(0,p.expectString)(e.SourceBackupArn),SourceTableArn:(0,p.expectString)(e.SourceTableArn)}),I4=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),R4=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),D4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,Count:(0,p.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Tl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Ho(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,p.expectInt32)(e.ScannedCount)}),UA=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:sT(i,t)},{}),N4=(e,t)=>({BillingMode:(0,p.expectString)(e.BillingMode),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?dT(e.ProvisionedThroughput,t):void 0,TableArn:(0,p.expectString)(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.TableCreationDateTime))):void 0,TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName),TableSizeBytes:(0,p.expectLong)(e.TableSizeBytes)}),P4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?v8(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?Q8(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?_T(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?yT(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?vT(e.TimeToLiveDescription,t):void 0}),_T=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.InaccessibleEncryptionDateTime))):void 0,KMSMasterKeyArn:(0,p.expectString)(e.KMSMasterKeyArn),SSEType:(0,p.expectString)(e.SSEType),Status:(0,p.expectString)(e.Status)}),yT=(e,t)=>({StreamEnabled:(0,p.expectBoolean)(e.StreamEnabled),StreamViewType:(0,p.expectString)(e.StreamViewType)}),O4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),L4=(e,t)=>({message:(0,p.expectString)(e.message)}),gT=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?m4(e.Replicas,t):void 0,TableName:(0,p.expectString)(e.TableName),TableStatus:(0,p.expectString)(e.TableStatus)}),gy=(e,t)=>({LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateDateTime))):void 0,TableClass:(0,p.expectString)(e.TableClass)}),es=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?fH(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?pH(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?iT(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.CreationDateTime))):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?g8(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:(0,p.expectString)(e.GlobalTableVersion),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,LatestStreamArn:(0,p.expectString)(e.LatestStreamArn),LatestStreamLabel:(0,p.expectString)(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?J8(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?fT(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?pT(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?x4(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?_T(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?yT(e.StreamSpecification,t):void 0,TableArn:(0,p.expectString)(e.TableArn),TableClassSummary:e.TableClassSummary!==void 0&&e.TableClassSummary!==null?gy(e.TableClassSummary,t):void 0,TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName),TableSizeBytes:(0,p.expectLong)(e.TableSizeBytes),TableStatus:(0,p.expectString)(e.TableStatus)}),q4=(e,t)=>({message:(0,p.expectString)(e.message)}),M4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),z4=(e,t)=>({message:(0,p.expectString)(e.message)}),j4=(e,t)=>({Key:(0,p.expectString)(e.Key),Value:(0,p.expectString)(e.Value)}),k4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:j4(r,t)),vT=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),TimeToLiveStatus:(0,p.expectString)(e.TimeToLiveStatus)}),F4=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),Enabled:(0,p.expectBoolean)(e.Enabled)}),U4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?lT(e.Responses,t):void 0}),B4=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?OH(e.CancellationReasons,t):void 0,Message:(0,p.expectString)(e.Message)}),G4=(e,t)=>({message:(0,p.expectString)(e.message)}),$4=(e,t)=>({Message:(0,p.expectString)(e.Message)}),V4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?cT(e.ItemCollectionMetrics,t):void 0}),K4=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?oT(e.ContinuousBackupsDescription,t):void 0}),W4=(e,t)=>({ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),IndexName:(0,p.expectString)(e.IndexName),TableName:(0,p.expectString)(e.TableName)}),H4=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?yy(e.GlobalTableDescription,t):void 0}),Y4=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?hT(e.ReplicaSettings,t):void 0}),J4=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Ar(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Al(e.ItemCollectionMetrics,t):void 0}),Q4=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),X4=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?gT(e.TableAutoScalingDescription,t):void 0}),Z4=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?F4(e.TimeToLiveSpecification,t):void 0}),e6=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?$H(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?c4(e.PutRequest,t):void 0}),t6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:e6(r,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"]}},vy=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),n6=(e,t)=>vy(e,t).then(n=>t.utf8Encoder(n)),ee=async(e,t,n,r,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)+n:c+n,headers:t};return r!==void 0&&(u.hostname=r),i!==void 0&&(u.body=i),new s2.HttpRequest(u)},D=(e,t)=>n6(e,t).then(n=>n.length?JSON.parse(n):{}),te=(e,t)=>{let n=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),r=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=n(e.headers,"x-amzn-errortype");return i!==void 0?r(e.headers[i]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var wy=f(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.BatchExecuteStatementCommand=void 0;var r6=U(),i6=O(),ST=H(),wT=Q(),Sy=class extends i6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,r6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:ST.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:ST.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,wT.serializeAws_json1_0BatchExecuteStatementCommand)(t,n)}deserialize(t,n){return(0,wT.deserializeAws_json1_0BatchExecuteStatementCommand)(t,n)}};xl.BatchExecuteStatementCommand=Sy});var Ey=f(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.BatchGetItemCommand=void 0;var s6=U(),o6=O(),bT=H(),ET=Q(),by=class extends o6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,s6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:bT.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:bT.BatchGetItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,ET.serializeAws_json1_0BatchGetItemCommand)(t,n)}deserialize(t,n){return(0,ET.deserializeAws_json1_0BatchGetItemCommand)(t,n)}};Il.BatchGetItemCommand=by});var Ty=f(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.BatchWriteItemCommand=void 0;var a6=U(),c6=O(),AT=H(),TT=Q(),Ay=class extends c6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,a6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:AT.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:AT.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,TT.serializeAws_json1_0BatchWriteItemCommand)(t,n)}deserialize(t,n){return(0,TT.deserializeAws_json1_0BatchWriteItemCommand)(t,n)}};Rl.BatchWriteItemCommand=Ay});var xy=f(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.CreateBackupCommand=void 0;var l6=U(),u6=O(),CT=H(),xT=Q(),Cy=class extends u6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,l6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:CT.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:CT.CreateBackupOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,xT.serializeAws_json1_0CreateBackupCommand)(t,n)}deserialize(t,n){return(0,xT.deserializeAws_json1_0CreateBackupCommand)(t,n)}};Dl.CreateBackupCommand=Cy});var Ry=f(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.CreateGlobalTableCommand=void 0;var d6=U(),f6=O(),IT=H(),RT=Q(),Iy=class extends f6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,d6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:IT.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:IT.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,RT.serializeAws_json1_0CreateGlobalTableCommand)(t,n)}deserialize(t,n){return(0,RT.deserializeAws_json1_0CreateGlobalTableCommand)(t,n)}};Nl.CreateGlobalTableCommand=Iy});var Ny=f(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.CreateTableCommand=void 0;var m6=U(),p6=O(),DT=H(),NT=Q(),Dy=class extends p6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,m6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:DT.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:DT.CreateTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,NT.serializeAws_json1_0CreateTableCommand)(t,n)}deserialize(t,n){return(0,NT.deserializeAws_json1_0CreateTableCommand)(t,n)}};Pl.CreateTableCommand=Dy});var Oy=f(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.DeleteBackupCommand=void 0;var h6=U(),_6=O(),PT=H(),OT=Q(),Py=class extends _6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,h6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:PT.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:PT.DeleteBackupOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,OT.serializeAws_json1_0DeleteBackupCommand)(t,n)}deserialize(t,n){return(0,OT.deserializeAws_json1_0DeleteBackupCommand)(t,n)}};Ol.DeleteBackupCommand=Py});var qy=f(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.DeleteItemCommand=void 0;var y6=U(),g6=O(),LT=H(),qT=Q(),Ly=class extends g6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,y6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:LT.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:LT.DeleteItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,qT.serializeAws_json1_0DeleteItemCommand)(t,n)}deserialize(t,n){return(0,qT.deserializeAws_json1_0DeleteItemCommand)(t,n)}};Ll.DeleteItemCommand=Ly});var zy=f(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.DeleteTableCommand=void 0;var v6=U(),S6=O(),MT=H(),zT=Q(),My=class extends S6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:MT.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:MT.DeleteTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,zT.serializeAws_json1_0DeleteTableCommand)(t,n)}deserialize(t,n){return(0,zT.deserializeAws_json1_0DeleteTableCommand)(t,n)}};ql.DeleteTableCommand=My});var ky=f(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.DescribeBackupCommand=void 0;var w6=U(),b6=O(),jT=H(),kT=Q(),jy=class extends b6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,w6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:jT.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:jT.DescribeBackupOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,kT.serializeAws_json1_0DescribeBackupCommand)(t,n)}deserialize(t,n){return(0,kT.deserializeAws_json1_0DescribeBackupCommand)(t,n)}};Ml.DescribeBackupCommand=jy});var Uy=f(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.DescribeContinuousBackupsCommand=void 0;var E6=U(),A6=O(),FT=H(),UT=Q(),Fy=class extends A6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,E6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:FT.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:FT.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,UT.serializeAws_json1_0DescribeContinuousBackupsCommand)(t,n)}deserialize(t,n){return(0,UT.deserializeAws_json1_0DescribeContinuousBackupsCommand)(t,n)}};zl.DescribeContinuousBackupsCommand=Fy});var Gy=f(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.DescribeContributorInsightsCommand=void 0;var T6=U(),C6=O(),BT=H(),GT=Q(),By=class extends C6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,T6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:BT.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:BT.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,GT.serializeAws_json1_0DescribeContributorInsightsCommand)(t,n)}deserialize(t,n){return(0,GT.deserializeAws_json1_0DescribeContributorInsightsCommand)(t,n)}};jl.DescribeContributorInsightsCommand=By});var Fl=f(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.DescribeEndpointsCommand=void 0;var x6=U(),I6=O(),$T=H(),VT=Q(),$y=class extends I6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,x6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:$T.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:$T.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,VT.serializeAws_json1_0DescribeEndpointsCommand)(t,n)}deserialize(t,n){return(0,VT.deserializeAws_json1_0DescribeEndpointsCommand)(t,n)}};kl.DescribeEndpointsCommand=$y});var Ky=f(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.DescribeExportCommand=void 0;var R6=U(),D6=O(),KT=H(),WT=Q(),Vy=class extends D6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,R6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:KT.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:KT.DescribeExportOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,WT.serializeAws_json1_0DescribeExportCommand)(t,n)}deserialize(t,n){return(0,WT.deserializeAws_json1_0DescribeExportCommand)(t,n)}};Ul.DescribeExportCommand=Vy});var Hy=f(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.DescribeGlobalTableCommand=void 0;var N6=U(),P6=O(),HT=H(),YT=Q(),Wy=class extends P6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,N6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:HT.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:HT.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,YT.serializeAws_json1_0DescribeGlobalTableCommand)(t,n)}deserialize(t,n){return(0,YT.deserializeAws_json1_0DescribeGlobalTableCommand)(t,n)}};Bl.DescribeGlobalTableCommand=Wy});var Jy=f(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.DescribeGlobalTableSettingsCommand=void 0;var O6=U(),L6=O(),JT=H(),QT=Q(),Yy=class extends L6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,O6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:JT.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:JT.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,QT.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,n)}deserialize(t,n){return(0,QT.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,n)}};Gl.DescribeGlobalTableSettingsCommand=Yy});var Xy=f($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.DescribeKinesisStreamingDestinationCommand=void 0;var q6=U(),M6=O(),XT=H(),ZT=Q(),Qy=class extends M6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,q6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:XT.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:XT.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,ZT.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,n)}deserialize(t,n){return(0,ZT.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,n)}};$l.DescribeKinesisStreamingDestinationCommand=Qy});var eg=f(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.DescribeLimitsCommand=void 0;var z6=U(),j6=O(),eC=H(),tC=Q(),Zy=class extends j6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,z6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:eC.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:eC.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,tC.serializeAws_json1_0DescribeLimitsCommand)(t,n)}deserialize(t,n){return(0,tC.deserializeAws_json1_0DescribeLimitsCommand)(t,n)}};Vl.DescribeLimitsCommand=Zy});var Yo=f(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.DescribeTableCommand=void 0;var k6=U(),F6=O(),nC=H(),rC=Q(),tg=class extends F6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,k6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:nC.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:nC.DescribeTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,rC.serializeAws_json1_0DescribeTableCommand)(t,n)}deserialize(t,n){return(0,rC.deserializeAws_json1_0DescribeTableCommand)(t,n)}};Kl.DescribeTableCommand=tg});var rg=f(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.DescribeTableReplicaAutoScalingCommand=void 0;var U6=U(),B6=O(),iC=H(),sC=Q(),ng=class extends B6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,U6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:iC.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:iC.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,sC.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,n)}deserialize(t,n){return(0,sC.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,n)}};Wl.DescribeTableReplicaAutoScalingCommand=ng});var sg=f(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.DescribeTimeToLiveCommand=void 0;var G6=U(),$6=O(),oC=H(),aC=Q(),ig=class extends $6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,G6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:oC.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:oC.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,aC.serializeAws_json1_0DescribeTimeToLiveCommand)(t,n)}deserialize(t,n){return(0,aC.deserializeAws_json1_0DescribeTimeToLiveCommand)(t,n)}};Hl.DescribeTimeToLiveCommand=ig});var ag=f(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.DisableKinesisStreamingDestinationCommand=void 0;var V6=U(),K6=O(),cC=H(),lC=Q(),og=class extends K6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,V6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:cC.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:cC.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,lC.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,n)}deserialize(t,n){return(0,lC.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,n)}};Yl.DisableKinesisStreamingDestinationCommand=og});var lg=f(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.EnableKinesisStreamingDestinationCommand=void 0;var W6=U(),H6=O(),uC=H(),dC=Q(),cg=class extends H6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,W6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:uC.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:uC.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,dC.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,n)}deserialize(t,n){return(0,dC.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,n)}};Jl.EnableKinesisStreamingDestinationCommand=cg});var dg=f(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.ExecuteStatementCommand=void 0;var Y6=U(),J6=O(),fC=H(),mC=Q(),ug=class extends J6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Y6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:fC.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:fC.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,mC.serializeAws_json1_0ExecuteStatementCommand)(t,n)}deserialize(t,n){return(0,mC.deserializeAws_json1_0ExecuteStatementCommand)(t,n)}};Ql.ExecuteStatementCommand=ug});var mg=f(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.ExecuteTransactionCommand=void 0;var Q6=U(),X6=O(),pC=H(),hC=Q(),fg=class extends X6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Q6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:pC.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:pC.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,hC.serializeAws_json1_0ExecuteTransactionCommand)(t,n)}deserialize(t,n){return(0,hC.deserializeAws_json1_0ExecuteTransactionCommand)(t,n)}};Xl.ExecuteTransactionCommand=fg});var hg=f(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.ExportTableToPointInTimeCommand=void 0;var Z6=U(),e5=O(),_C=H(),yC=Q(),pg=class extends e5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Z6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:_C.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:_C.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,yC.serializeAws_json1_0ExportTableToPointInTimeCommand)(t,n)}deserialize(t,n){return(0,yC.deserializeAws_json1_0ExportTableToPointInTimeCommand)(t,n)}};Zl.ExportTableToPointInTimeCommand=pg});var yg=f(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.GetItemCommand=void 0;var t5=U(),n5=O(),gC=H(),vC=Q(),_g=class extends n5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,t5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:gC.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:gC.GetItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,vC.serializeAws_json1_0GetItemCommand)(t,n)}deserialize(t,n){return(0,vC.deserializeAws_json1_0GetItemCommand)(t,n)}};eu.GetItemCommand=_g});var vg=f(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.ListBackupsCommand=void 0;var r5=U(),i5=O(),SC=H(),wC=Q(),gg=class extends i5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,r5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:SC.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:SC.ListBackupsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,wC.serializeAws_json1_0ListBackupsCommand)(t,n)}deserialize(t,n){return(0,wC.deserializeAws_json1_0ListBackupsCommand)(t,n)}};tu.ListBackupsCommand=gg});var ru=f(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.ListContributorInsightsCommand=void 0;var s5=U(),o5=O(),bC=H(),EC=Q(),Sg=class extends o5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,s5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:bC.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:bC.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,EC.serializeAws_json1_0ListContributorInsightsCommand)(t,n)}deserialize(t,n){return(0,EC.deserializeAws_json1_0ListContributorInsightsCommand)(t,n)}};nu.ListContributorInsightsCommand=Sg});var su=f(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.ListExportsCommand=void 0;var a5=U(),c5=O(),AC=H(),TC=Q(),wg=class extends c5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,a5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:AC.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:AC.ListExportsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,TC.serializeAws_json1_0ListExportsCommand)(t,n)}deserialize(t,n){return(0,TC.deserializeAws_json1_0ListExportsCommand)(t,n)}};iu.ListExportsCommand=wg});var Eg=f(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.ListGlobalTablesCommand=void 0;var l5=U(),u5=O(),CC=H(),xC=Q(),bg=class extends u5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,l5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:CC.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:CC.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,xC.serializeAws_json1_0ListGlobalTablesCommand)(t,n)}deserialize(t,n){return(0,xC.deserializeAws_json1_0ListGlobalTablesCommand)(t,n)}};ou.ListGlobalTablesCommand=bg});var cu=f(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.ListTablesCommand=void 0;var d5=U(),f5=O(),IC=H(),RC=Q(),Ag=class extends f5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,d5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:IC.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:IC.ListTablesOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,RC.serializeAws_json1_0ListTablesCommand)(t,n)}deserialize(t,n){return(0,RC.deserializeAws_json1_0ListTablesCommand)(t,n)}};au.ListTablesCommand=Ag});var Cg=f(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.ListTagsOfResourceCommand=void 0;var m5=U(),p5=O(),DC=H(),NC=Q(),Tg=class extends p5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,m5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:DC.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:DC.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,NC.serializeAws_json1_0ListTagsOfResourceCommand)(t,n)}deserialize(t,n){return(0,NC.deserializeAws_json1_0ListTagsOfResourceCommand)(t,n)}};lu.ListTagsOfResourceCommand=Tg});var Ig=f(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.PutItemCommand=void 0;var h5=U(),_5=O(),PC=H(),OC=Q(),xg=class extends _5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,h5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:PC.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:PC.PutItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,OC.serializeAws_json1_0PutItemCommand)(t,n)}deserialize(t,n){return(0,OC.deserializeAws_json1_0PutItemCommand)(t,n)}};uu.PutItemCommand=xg});var fu=f(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.QueryCommand=void 0;var y5=U(),g5=O(),LC=H(),qC=Q(),Rg=class extends g5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,y5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:LC.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:LC.QueryOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,qC.serializeAws_json1_0QueryCommand)(t,n)}deserialize(t,n){return(0,qC.deserializeAws_json1_0QueryCommand)(t,n)}};du.QueryCommand=Rg});var Ng=f(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.RestoreTableFromBackupCommand=void 0;var v5=U(),S5=O(),MC=H(),zC=Q(),Dg=class extends S5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:MC.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:MC.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,zC.serializeAws_json1_0RestoreTableFromBackupCommand)(t,n)}deserialize(t,n){return(0,zC.deserializeAws_json1_0RestoreTableFromBackupCommand)(t,n)}};mu.RestoreTableFromBackupCommand=Dg});var Og=f(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.RestoreTableToPointInTimeCommand=void 0;var w5=U(),b5=O(),jC=H(),kC=Q(),Pg=class extends b5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,w5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:jC.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:jC.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,kC.serializeAws_json1_0RestoreTableToPointInTimeCommand)(t,n)}deserialize(t,n){return(0,kC.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(t,n)}};pu.RestoreTableToPointInTimeCommand=Pg});var _u=f(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.ScanCommand=void 0;var E5=U(),A5=O(),FC=H(),UC=Q(),Lg=class extends A5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,E5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:FC.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:FC.ScanOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,UC.serializeAws_json1_0ScanCommand)(t,n)}deserialize(t,n){return(0,UC.deserializeAws_json1_0ScanCommand)(t,n)}};hu.ScanCommand=Lg});var Mg=f(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.TagResourceCommand=void 0;var T5=U(),C5=O(),x5=H(),BC=Q(),qg=class extends C5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,T5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:x5.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:d=>d},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,BC.serializeAws_json1_0TagResourceCommand)(t,n)}deserialize(t,n){return(0,BC.deserializeAws_json1_0TagResourceCommand)(t,n)}};yu.TagResourceCommand=qg});var jg=f(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.TransactGetItemsCommand=void 0;var I5=U(),R5=O(),GC=H(),$C=Q(),zg=class extends R5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,I5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:GC.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:GC.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,$C.serializeAws_json1_0TransactGetItemsCommand)(t,n)}deserialize(t,n){return(0,$C.deserializeAws_json1_0TransactGetItemsCommand)(t,n)}};gu.TransactGetItemsCommand=zg});var Fg=f(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.TransactWriteItemsCommand=void 0;var D5=U(),N5=O(),VC=H(),KC=Q(),kg=class extends N5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,D5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:VC.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:VC.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,KC.serializeAws_json1_0TransactWriteItemsCommand)(t,n)}deserialize(t,n){return(0,KC.deserializeAws_json1_0TransactWriteItemsCommand)(t,n)}};vu.TransactWriteItemsCommand=kg});var Bg=f(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.UntagResourceCommand=void 0;var P5=U(),O5=O(),L5=H(),WC=Q(),Ug=class extends O5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,P5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:L5.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:d=>d},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,WC.serializeAws_json1_0UntagResourceCommand)(t,n)}deserialize(t,n){return(0,WC.deserializeAws_json1_0UntagResourceCommand)(t,n)}};Su.UntagResourceCommand=Ug});var $g=f(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.UpdateContinuousBackupsCommand=void 0;var q5=U(),M5=O(),HC=H(),YC=Q(),Gg=class extends M5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,q5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:HC.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:HC.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,YC.serializeAws_json1_0UpdateContinuousBackupsCommand)(t,n)}deserialize(t,n){return(0,YC.deserializeAws_json1_0UpdateContinuousBackupsCommand)(t,n)}};wu.UpdateContinuousBackupsCommand=Gg});var Kg=f(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.UpdateContributorInsightsCommand=void 0;var z5=U(),j5=O(),JC=H(),QC=Q(),Vg=class extends j5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,z5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:JC.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:JC.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,QC.serializeAws_json1_0UpdateContributorInsightsCommand)(t,n)}deserialize(t,n){return(0,QC.deserializeAws_json1_0UpdateContributorInsightsCommand)(t,n)}};bu.UpdateContributorInsightsCommand=Vg});var Hg=f(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.UpdateGlobalTableCommand=void 0;var k5=U(),F5=O(),XC=H(),ZC=Q(),Wg=class extends F5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,k5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:XC.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:XC.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,ZC.serializeAws_json1_0UpdateGlobalTableCommand)(t,n)}deserialize(t,n){return(0,ZC.deserializeAws_json1_0UpdateGlobalTableCommand)(t,n)}};Eu.UpdateGlobalTableCommand=Wg});var Jg=f(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.UpdateGlobalTableSettingsCommand=void 0;var U5=U(),B5=O(),ex=H(),tx=Q(),Yg=class extends B5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,U5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:ex.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:ex.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,tx.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,n)}deserialize(t,n){return(0,tx.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,n)}};Au.UpdateGlobalTableSettingsCommand=Yg});var Xg=f(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.UpdateItemCommand=void 0;var G5=U(),$5=O(),nx=H(),rx=Q(),Qg=class extends $5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,G5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:nx.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:nx.UpdateItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,rx.serializeAws_json1_0UpdateItemCommand)(t,n)}deserialize(t,n){return(0,rx.deserializeAws_json1_0UpdateItemCommand)(t,n)}};Tu.UpdateItemCommand=Qg});var ev=f(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.UpdateTableCommand=void 0;var V5=U(),K5=O(),ix=H(),sx=Q(),Zg=class extends K5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,V5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:ix.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:ix.UpdateTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,sx.serializeAws_json1_0UpdateTableCommand)(t,n)}deserialize(t,n){return(0,sx.deserializeAws_json1_0UpdateTableCommand)(t,n)}};Cu.UpdateTableCommand=Zg});var nv=f(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.UpdateTableReplicaAutoScalingCommand=void 0;var W5=U(),H5=O(),ox=H(),ax=Q(),tv=class extends H5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,W5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:ox.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:ox.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,ax.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,n)}deserialize(t,n){return(0,ax.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,n)}};xu.UpdateTableReplicaAutoScalingCommand=tv});var iv=f(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.UpdateTimeToLiveCommand=void 0;var Y5=U(),J5=O(),cx=H(),lx=Q(),rv=class extends J5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Y5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:cx.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:cx.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,lx.serializeAws_json1_0UpdateTimeToLiveCommand)(t,n)}deserialize(t,n){return(0,lx.deserializeAws_json1_0UpdateTimeToLiveCommand)(t,n)}};Iu.UpdateTimeToLiveCommand=rv});var ux=f(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.booleanSelector=li.SelectorType=void 0;var Q5;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(Q5=li.SelectorType||(li.SelectorType={}));var X5=(e,t,n)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}};li.booleanSelector=X5});var ov=f(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});var Z5=K();Z5.__exportStar(ux(),sv)});var dx=f($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=$t.DEFAULT_USE_DUALSTACK_ENDPOINT=$t.CONFIG_USE_DUALSTACK_ENDPOINT=$t.ENV_USE_DUALSTACK_ENDPOINT=void 0;var Ru=ov();$t.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";$t.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";$t.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;$t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Ru.booleanSelector)(e,$t.ENV_USE_DUALSTACK_ENDPOINT,Ru.SelectorType.ENV),configFileSelector:e=>(0,Ru.booleanSelector)(e,$t.CONFIG_USE_DUALSTACK_ENDPOINT,Ru.SelectorType.CONFIG),default:!1}});var fx=f(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Vt.DEFAULT_USE_FIPS_ENDPOINT=Vt.CONFIG_USE_FIPS_ENDPOINT=Vt.ENV_USE_FIPS_ENDPOINT=void 0;var Du=ov();Vt.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";Vt.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";Vt.DEFAULT_USE_FIPS_ENDPOINT=!1;Vt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Du.booleanSelector)(e,Vt.ENV_USE_FIPS_ENDPOINT,Du.SelectorType.ENV),configFileSelector:e=>(0,Du.booleanSelector)(e,Vt.CONFIG_USE_FIPS_ENDPOINT,Du.SelectorType.CONFIG),default:!1}});var mx=f(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.normalizeProvider=void 0;var eY=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};Nu.normalizeProvider=eY});var Jo=f(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});var tY=K();tY.__exportStar(mx(),av)});var hx=f(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.resolveCustomEndpointsConfig=void 0;var px=Jo(),nY=e=>{var t;let{endpoint:n,urlParser:r}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:(0,px.normalizeProvider)(typeof n=="string"?r(n):n),isCustomEndpoint:!0,useDualstackEndpoint:(0,px.normalizeProvider)(e.useDualstackEndpoint)}};Pu.resolveCustomEndpointsConfig=nY});var _x=f(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.getEndpointFromRegion=void 0;var rY=async e=>{var t;let{tls:n=!0}=e,r=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(r))throw new Error("Invalid region in client config");let s=await e.useDualstackEndpoint(),o=await e.useFipsEndpoint(),{hostname:a}=(t=await e.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:o}))!==null&&t!==void 0?t:{};if(!a)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${a}`)};Ou.getEndpointFromRegion=rY});var gx=f(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.resolveEndpointsConfig=void 0;var yx=Jo(),iY=_x(),sY=e=>{var t;let n=(0,yx.normalizeProvider)(e.useDualstackEndpoint),{endpoint:r,useFipsEndpoint:i,urlParser:s}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:r?(0,yx.normalizeProvider)(typeof r=="string"?s(r):r):()=>(0,iY.getEndpointFromRegion)({...e,useDualstackEndpoint:n,useFipsEndpoint:i}),isCustomEndpoint:!!r,useDualstackEndpoint:n}};Lu.resolveEndpointsConfig=sY});var vx=f(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var qu=K();qu.__exportStar(dx(),ts);qu.__exportStar(fx(),ts);qu.__exportStar(hx(),ts);qu.__exportStar(gx(),ts)});var Sx=f(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.NODE_REGION_CONFIG_FILE_OPTIONS=Kt.NODE_REGION_CONFIG_OPTIONS=Kt.REGION_INI_NAME=Kt.REGION_ENV_NAME=void 0;Kt.REGION_ENV_NAME="AWS_REGION";Kt.REGION_INI_NAME="region";Kt.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Kt.REGION_ENV_NAME],configFileSelector:e=>e[Kt.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};Kt.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var cv=f(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.isFipsRegion=void 0;var oY=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Mu.isFipsRegion=oY});var wx=f(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.getRealRegion=void 0;var aY=cv(),cY=e=>(0,aY.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;zu.getRealRegion=cY});var Ex=f(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.resolveRegionConfig=void 0;var bx=wx(),lY=cv(),uY=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof t=="string")return(0,bx.getRealRegion)(t);let r=await t();return(0,bx.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return(0,lY.isFipsRegion)(r)?!0:typeof n=="boolean"?Promise.resolve(n):n()}}};ju.resolveRegionConfig=uY});var Tx=f(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var Ax=K();Ax.__exportStar(Sx(),ku);Ax.__exportStar(Ex(),ku)});var xx=f(Cx=>{"use strict";Object.defineProperty(Cx,"__esModule",{value:!0})});var Rx=f(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0})});var Dx=f(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.getHostnameFromVariants=void 0;var dY=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>{var r;return(r=e.find(({tags:i})=>t===i.includes("fips")&&n===i.includes("dualstack")))===null||r===void 0?void 0:r.hostname};Fu.getHostnameFromVariants=dY});var Nx=f(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.getResolvedHostname=void 0;var fY=(e,{regionHostname:t,partitionHostname:n})=>t||(n?n.replace("{region}",e):void 0);Uu.getResolvedHostname=fY});var Px=f(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.getResolvedPartition=void 0;var mY=(e,{partitionHash:t})=>{var n;return(n=Object.keys(t||{}).find(r=>t[r].regions.includes(e)))!==null&&n!==void 0?n:"aws"};Bu.getResolvedPartition=mY});var Ox=f(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.getResolvedSigningRegion=void 0;var pY=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:r})=>{if(t)return t;if(r){let i=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(i);if(s)return s[0].slice(1,-1)}};Gu.getResolvedSigningRegion=pY});var qx=f($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.getRegionInfo=void 0;var Lx=Dx(),hY=Nx(),_Y=Px(),yY=Ox(),gY=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:n=!1,signingService:r,regionHash:i,partitionHash:s})=>{var o,a,c,u,d,h;let m=(0,_Y.getResolvedPartition)(e,{partitionHash:s}),y=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:n},_=(0,Lx.getHostnameFromVariants)((c=i[y])===null||c===void 0?void 0:c.variants,g),A=(0,Lx.getHostnameFromVariants)((u=s[m])===null||u===void 0?void 0:u.variants,g),R=(0,hY.getResolvedHostname)(y,{regionHostname:_,partitionHostname:A});if(R===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:y,useFipsEndpoint:t,useDualstackEndpoint:n}}`);let T=(0,yY.getResolvedSigningRegion)(R,{signingRegion:(d=i[y])===null||d===void 0?void 0:d.signingRegion,regionRegex:s[m].regionRegex,useFipsEndpoint:t});return{partition:m,signingService:r,hostname:R,...T&&{signingRegion:T},...((h=i[y])===null||h===void 0?void 0:h.signingService)&&{signingService:i[y].signingService}}};$u.getRegionInfo=gY});var Mx=f(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});var lv=K();lv.__exportStar(xx(),Qo);lv.__exportStar(Rx(),Qo);lv.__exportStar(qx(),Qo)});var en=f(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});var uv=K();uv.__exportStar(vx(),Xo);uv.__exportStar(Tx(),Xo);uv.__exportStar(Mx(),Xo)});var Vu=f(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.getContentLengthPlugin=Hn.contentLengthMiddlewareOptions=Hn.contentLengthMiddleware=void 0;var vY=Ot(),zx="content-length";function jx(e){return t=>async n=>{let r=n.request;if(vY.HttpRequest.isInstance(r)){let{body:i,headers:s}=r;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(zx)===-1)try{let o=e(i);r.headers={...r.headers,[zx]:String(o)}}catch{}}return t({...n,request:r})}}Hn.contentLengthMiddleware=jx;Hn.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var SY=e=>({applyToStack:t=>{t.add(jx(e.bodyLengthChecker),Hn.contentLengthMiddlewareOptions)}});Hn.getContentLengthPlugin=SY});var Ux=f(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var kx=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],dv="endpoint_discovery_enabled",Fx=e=>["false","0"].indexOf(e)>=0;Ku.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<kx.length;t++){let n=kx[t];if(n in e){let r=e[n];if(r==="")throw Error(`Environment variable ${n} can't be empty of undefined, got "${r}"`);return!Fx(r)}}},configFileSelector:e=>{if(dv in e){let t=e[dv];if(t===void 0)throw Error(`Shared config entry ${dv} can't be undefined, got "${t}"`);return!Fx(t)}},default:void 0}});var Bx=f(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.getCacheKey=void 0;var wY=async(e,t,n)=>{let{accessKeyId:r}=await t.credentials(),{identifiers:i}=n;return JSON.stringify({...r&&{accessKeyId:r},...i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[o,a])=>({...s,[o]:a}),{})}})};Wu.getCacheKey=wY});var Gx=f(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.updateDiscoveredEndpointInCache=void 0;var Yn={},bY=async(e,t)=>new Promise((n,r)=>{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?(Yn[s]||(Yn[s]=[]),Yn[s].push({resolve:n,reject:r})):n();else if(c&&c.length>0)n();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),Yn[s]&&(Yn[s].forEach(({resolve:y})=>{y()}),delete Yn[s]),n()}).catch(m=>{var y;(m.name==="InvalidEndpointException"||((y=m.$metadata)===null||y===void 0?void 0:y.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});Yn[s]&&(Yn[s].forEach(({reject:_})=>{_(g)}),delete Yn[s]),t.isDiscoveredEndpointRequired?r(g):(i.set(s,u),n())})}});Hu.updateDiscoveredEndpointInCache=bY});var Vx=f(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.endpointDiscoveryMiddleware=void 0;var EY=Ot(),AY=Bx(),$x=Gx(),TY=(e,t)=>(n,r)=>async i=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled)throw new Error("Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.");return n(i)}let{endpointDiscoveryCommandCtor:s}=e,{isDiscoveredEndpointRequired:o,identifiers:a}=t,{clientName:c,commandName:u}=r,d=await e.endpointDiscoveryEnabled(),h=await(0,AY.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,$x.updateDiscoveredEndpointInCache)(e,{...t,commandName:u,cacheKey:h,endpointDiscoveryCommandCtor:s})}else d&&(0,$x.updateDiscoveredEndpointInCache)(e,{...t,commandName:u,cacheKey:h,endpointDiscoveryCommandCtor:s});let{request:m}=i;if(h&&EY.HttpRequest.isInstance(m)){let y=e.endpointCache.getEndpoint(h);y&&(m.hostname=y)}return n(i)};Yu.endpointDiscoveryMiddleware=TY});var Kx=f(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getEndpointDiscoveryOptionalPlugin=qt.getEndpointDiscoveryRequiredPlugin=qt.getEndpointDiscoveryPlugin=qt.endpointDiscoveryMiddlewareOptions=void 0;var fv=Vx();qt.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var CY=(e,t)=>({applyToStack:n=>{n.add((0,fv.endpointDiscoveryMiddleware)(e,t),qt.endpointDiscoveryMiddlewareOptions)}});qt.getEndpointDiscoveryPlugin=CY;var xY=(e,t)=>({applyToStack:n=>{n.add((0,fv.endpointDiscoveryMiddleware)(e,{...t,isDiscoveredEndpointRequired:!0}),qt.endpointDiscoveryMiddlewareOptions)}});qt.getEndpointDiscoveryRequiredPlugin=xY;var IY=(e,t)=>({applyToStack:n=>{n.add((0,fv.endpointDiscoveryMiddleware)(e,{...t,isDiscoveredEndpointRequired:!1}),qt.endpointDiscoveryMiddlewareOptions)}});qt.getEndpointDiscoveryOptionalPlugin=IY});var Hx=f(Wx=>{"use strict";Object.defineProperty(Wx,"__esModule",{value:!0})});var Jx=f((Kge,Yx)=>{function Jn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}Jn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(Jn.prototype[Symbol.iterator]=function(){return this});Jn.of=function(){var e=arguments,t=e.length,n=0;return new Jn(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};Jn.empty=function(){var e=new Jn(null);return e.done=!0,e};Jn.is=function(e){return e instanceof Jn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};Yx.exports=Jn});var mv=f((Wge,eI)=>{var Qx=typeof ArrayBuffer<"u",Xx=typeof Symbol<"u";function Zx(e,t){var n,r,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)||Qx&&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(Xx&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;o=n.next(),o.done!==!0;)t(o.value,i),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)}Zx.forEachWithNullKeys=function(e,t){var n,r,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)||Qx&&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(Xx&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;o=n.next(),o.done!==!0;)t(o.value,null),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)};eI.exports=Zx});var pv=f(_n=>{var RY=Math.pow(2,8)-1,DY=Math.pow(2,16)-1,NY=Math.pow(2,32)-1,PY=Math.pow(2,7)-1,OY=Math.pow(2,15)-1,LY=Math.pow(2,31)-1;_n.getPointerArray=function(e){var t=e-1;return t<=RY?Uint8Array:t<=DY?Uint16Array:t<=NY?Uint32Array:Float64Array};_n.getSignedPointerArray=function(e){var t=e-1;return t<=PY?Int8Array:t<=OY?Int16Array:t<=LY?Int32Array:Float64Array};_n.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 qY={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};_n.getMinimalRepresentation=function(e,t){var n=null,r=0,i,s,o,a,c;for(a=0,c=e.length;a<c;a++)o=t?t(e[a]):e[a],s=_n.getNumberType(o),i=qY[s.name],i>r&&(r=i,n=s);return n};_n.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};_n.concat=function(){var e=0,t,n,r;for(t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,n=0;t<r;t++)i.set(arguments[t],n),n+=arguments[t].length;return i};_n.indices=function(e){for(var t=_n.getPointerArray(e),n=new t(e),r=0;r<e;r++)n[r]=r;return n}});var rI=f(Zo=>{var tI=mv(),nI=pv();function MY(e){return Array.isArray(e)||nI.isTypedArray(e)}function hv(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function zY(e){var t=hv(e),n=typeof t=="number"?new Array(t):[],r=0;return tI(e,function(i){n[r++]=i}),n}function jY(e){var t=hv(e),n=typeof t=="number"?nI.getPointerArray(t):Array,r=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new n(t):[],s=0;return tI(e,function(o){r[s]=o,i[s]=s++}),[r,i]}Zo.isArrayLike=MY;Zo.guessLength=hv;Zo.toArray=zY;Zo.toArrayWithIndices=jY});var sI=f((Jge,iI)=>{var _v=Jx(),kY=mv(),FY=pv(),UY=rI();function Ge(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var r=FY.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K=typeof e=="function"?new e(n):new Array(n),this.V=typeof t=="function"?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}Ge.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};Ge.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this};Ge.prototype.set=function(e,t){var n=this.items[e];if(typeof n<"u"){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n};Ge.prototype.setpop=function(e,t){var n=null,r=null,i=this.items[e];return typeof i<"u"?(this.splayOnTop(i),n=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],n=this.V[i],r=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,r?{evicted:!0,key:r,value:n}:null)};Ge.prototype.has=function(e){return e in this.items};Ge.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};Ge.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};Ge.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,i=this.head,s=this.K,o=this.V,a=this.forward;n<r;)e.call(t,o[i],s[i],this),i=a[i],n++};Ge.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.forward;return new _v(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};Ge.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,i=this.forward;return new _v(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};Ge.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.V,s=this.forward;return new _v(function(){if(e>=t)return{done:!0};var o=r[n],a=i[n];return e++,e<t&&(n=s[n]),{done:!1,value:[o,a]}})};typeof Symbol<"u"&&(Ge.prototype[Symbol.iterator]=Ge.prototype.entries);Ge.prototype.inspect=function(){for(var e=new Map,t=this.entries(),n;n=t.next(),!n.done;)e.set(n.value[0],n.value[1]);return Object.defineProperty(e,"constructor",{value:Ge,enumerable:!1}),e};typeof Symbol<"u"&&(Ge.prototype[Symbol.for("nodejs.util.inspect.custom")]=Ge.prototype.inspect);Ge.from=function(e,t,n,r){if(arguments.length<2){if(r=UY.guessLength(e),typeof r!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(r=t,t=null,n=null);var i=new Ge(t,n,r);return kY(e,function(s,o){i.set(o,s)}),i};iI.exports=Ge});var oI=f(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.EndpointCache=void 0;var BY=K(),GY=BY.__importDefault(sI()),yv=class{constructor(t){this.cache=new GY.default(t)}getEndpoint(t){let n=this.get(t);if(!n||n.length===0)return;let r=n.map(i=>i.Address);return r[Math.floor(Math.random()*r.length)]}get(t){if(!this.has(t))return;let n=this.cache.get(t);if(!n)return;let r=Date.now(),i=n.filter(s=>r<s.Expires);if(i.length===0){this.delete(t);return}return i}set(t,n){let r=Date.now();this.cache.set(t,n.map(({Address:i,CachePeriodInMinutes:s})=>({Address:i,Expires:r+s*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let n=this.cache.peek(t);return n?n.length>0:!1}clear(){this.cache.clear()}};Ju.EndpointCache=yv});var cI=f(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var aI=K();aI.__exportStar(Hx(),Qu);aI.__exportStar(oI(),Qu)});var lI=f(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.resolveEndpointDiscoveryConfig=void 0;var $Y=cI(),VY=(e,{endpointDiscoveryCommandCtor:t})=>{var n;return{...e,endpointDiscoveryCommandCtor:t,endpointCache:new $Y.EndpointCache((n=e.endpointCacheSize)!==null&&n!==void 0?n:1e3),endpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0?()=>Promise.resolve(e.endpointDiscoveryEnabled):e.endpointDiscoveryEnabledProvider,isClientEndpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0}};Xu.resolveEndpointDiscoveryConfig=VY});var vv=f(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var gv=K();gv.__exportStar(Ux(),ea);gv.__exportStar(Kx(),ea);gv.__exportStar(lI(),ea)});var Zu=f(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getHostHeaderPlugin=Wt.hostHeaderMiddlewareOptions=Wt.hostHeaderMiddleware=Wt.resolveHostHeaderConfig=void 0;var KY=Ot();function WY(e){return e}Wt.resolveHostHeaderConfig=WY;var HY=e=>t=>async n=>{if(!KY.HttpRequest.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};return i.indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),t(n)};Wt.hostHeaderMiddleware=HY;Wt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var YY=e=>({applyToStack:t=>{t.add((0,Wt.hostHeaderMiddleware)(e),Wt.hostHeaderMiddlewareOptions)}});Wt.getHostHeaderPlugin=YY});var uI=f(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.getLoggerPlugin=yn.loggerMiddlewareOptions=yn.loggerMiddleware=void 0;var JY=()=>(e,t)=>async n=>{let{clientName:r,commandName:i,inputFilterSensitiveLog:s,logger:o,outputFilterSensitiveLog:a}=t,c=await e(n);if(!o)return c;if(typeof o.info=="function"){let{$metadata:u,...d}=c.output;o.info({clientName:r,commandName:i,input:s(n.input),output:a(d),metadata:u})}return c};yn.loggerMiddleware=JY;yn.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var QY=e=>({applyToStack:t=>{t.add((0,yn.loggerMiddleware)(),yn.loggerMiddlewareOptions)}});yn.getLoggerPlugin=QY});var ed=f(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});var XY=K();XY.__exportStar(uI(),Sv)});var ta=f(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.DEFAULT_RETRY_MODE=Qn.DEFAULT_MAX_ATTEMPTS=Qn.RETRY_MODES=void 0;var dI;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(dI=Qn.RETRY_MODES||(Qn.RETRY_MODES={}));Qn.DEFAULT_MAX_ATTEMPTS=3;Qn.DEFAULT_RETRY_MODE=dI.STANDARD});var fI=f(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.TRANSIENT_ERROR_STATUS_CODES=gn.TRANSIENT_ERROR_CODES=gn.THROTTLING_ERROR_CODES=gn.CLOCK_SKEW_ERROR_CODES=void 0;gn.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];gn.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];gn.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];gn.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var nd=f(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.isTransientError=vn.isThrottlingError=vn.isClockSkewError=vn.isRetryableByTrait=void 0;var td=fI(),ZY=e=>e.$retryable!==void 0;vn.isRetryableByTrait=ZY;var eJ=e=>td.CLOCK_SKEW_ERROR_CODES.includes(e.name);vn.isClockSkewError=eJ;var tJ=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||td.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==!0};vn.isThrottlingError=tJ;var nJ=e=>{var t;return td.TRANSIENT_ERROR_CODES.includes(e.name)||td.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};vn.isTransientError=nJ});var bv=f(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.DefaultRateLimiter=void 0;var rJ=nd(),wv=class{constructor(t){var n,r,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=(n=t==null?void 0:t.beta)!==null&&n!==void 0?n:.7,this.minCapacity=(r=t==null?void 0:t.minCapacity)!==null&&r!==void 0?r: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 n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),(0,rJ.isThrottlingError)(t)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}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(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){let r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}};rd.DefaultRateLimiter=wv});var na=f($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.REQUEST_HEADER=$e.INVOCATION_ID_HEADER=$e.NO_RETRY_INCREMENT=$e.TIMEOUT_RETRY_COST=$e.RETRY_COST=$e.INITIAL_RETRY_TOKENS=$e.THROTTLING_RETRY_DELAY_BASE=$e.MAXIMUM_RETRY_DELAY=$e.DEFAULT_RETRY_DELAY_BASE=void 0;$e.DEFAULT_RETRY_DELAY_BASE=100;$e.MAXIMUM_RETRY_DELAY=20*1e3;$e.THROTTLING_RETRY_DELAY_BASE=500;$e.INITIAL_RETRY_TOKENS=500;$e.RETRY_COST=5;$e.TIMEOUT_RETRY_COST=10;$e.NO_RETRY_INCREMENT=1;$e.INVOCATION_ID_HEADER="amz-sdk-invocation-id";$e.REQUEST_HEADER="amz-sdk-request"});var mI=f(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.getDefaultRetryQuota=void 0;var Ev=na(),iJ=(e,t)=>{var n,r,i;let s=e,o=(n=t==null?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:Ev.NO_RETRY_INCREMENT,a=(r=t==null?void 0:t.retryCost)!==null&&r!==void 0?r:Ev.RETRY_COST,c=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:Ev.TIMEOUT_RETRY_COST,u=e,d=g=>g.name==="TimeoutError"?c:a,h=g=>d(g)<=u;return Object.freeze({hasRetryTokens:h,retrieveRetryTokens:g=>{if(!h(g))throw new Error("No retry token available");let _=d(g);return u-=_,_},releaseRetryTokens:g=>{u+=g??o,u=Math.min(u,s)}})};id.getDefaultRetryQuota=iJ});var Av=f(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.defaultDelayDecider=void 0;var sJ=na(),oJ=(e,t)=>Math.floor(Math.min(sJ.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));sd.defaultDelayDecider=oJ});var Tv=f(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.defaultRetryDecider=void 0;var od=nd(),aJ=e=>e?(0,od.isRetryableByTrait)(e)||(0,od.isClockSkewError)(e)||(0,od.isThrottlingError)(e)||(0,od.isTransientError)(e):!1;ad.defaultRetryDecider=aJ});var ld=f(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.StandardRetryStrategy=void 0;var pI=Ot(),cJ=nd(),lJ=iy(),hI=ta(),ra=na(),uJ=mI(),dJ=Av(),fJ=Tv(),Cv=class{constructor(t,n){var r,i,s;this.maxAttemptsProvider=t,this.mode=hI.RETRY_MODES.STANDARD,this.retryDecider=(r=n==null?void 0:n.retryDecider)!==null&&r!==void 0?r:fJ.defaultRetryDecider,this.delayDecider=(i=n==null?void 0:n.delayDecider)!==null&&i!==void 0?i:dJ.defaultDelayDecider,this.retryQuota=(s=n==null?void 0:n.retryQuota)!==null&&s!==void 0?s:(0,uJ.getDefaultRetryQuota)(ra.INITIAL_RETRY_TOKENS)}shouldRetry(t,n,r){return n<r&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch{t=hI.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,n,r){let i,s=0,o=0,a=await this.getMaxAttempts(),{request:c}=n;for(pI.HttpRequest.isInstance(c)&&(c.headers[ra.INVOCATION_ID_HEADER]=(0,lJ.v4)());;)try{pI.HttpRequest.isInstance(c)&&(c.headers[ra.REQUEST_HEADER]=`attempt=${s+1}; max=${a}`),r!=null&&r.beforeRequest&&await r.beforeRequest();let{response:u,output:d}=await t(n);return r!=null&&r.afterRequest&&r.afterRequest(u),this.retryQuota.releaseRetryTokens(i),d.$metadata.attempts=s+1,d.$metadata.totalRetryDelay=o,{response:u,output:d}}catch(u){let d=mJ(u);if(s++,this.shouldRetry(d,s,a)){i=this.retryQuota.retrieveRetryTokens(d);let h=this.delayDecider((0,cJ.isThrottlingError)(d)?ra.THROTTLING_RETRY_DELAY_BASE:ra.DEFAULT_RETRY_DELAY_BASE,s);o+=h,await new Promise(m=>setTimeout(m,h));continue}throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=s,d.$metadata.totalRetryDelay=o,d}}};cd.StandardRetryStrategy=Cv;var mJ=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 Iv=f(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.AdaptiveRetryStrategy=void 0;var pJ=ta(),hJ=bv(),_J=ld(),xv=class extends _J.StandardRetryStrategy{constructor(t,n){let{rateLimiter:r,...i}=n??{};super(t,i),this.rateLimiter=r??new hJ.DefaultRateLimiter,this.mode=pJ.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};ud.AdaptiveRetryStrategy=xv});var yI=f(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.NODE_RETRY_MODE_CONFIG_OPTIONS=ze.CONFIG_RETRY_MODE=ze.ENV_RETRY_MODE=ze.resolveRetryConfig=ze.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=ze.CONFIG_MAX_ATTEMPTS=ze.ENV_MAX_ATTEMPTS=void 0;var _I=Jo(),yJ=Iv(),dd=ta(),gJ=ld();ze.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";ze.CONFIG_MAX_ATTEMPTS="max_attempts";ze.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[ze.ENV_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${ze.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[ze.CONFIG_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${ze.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},default:dd.DEFAULT_MAX_ATTEMPTS};var vJ=e=>{var t;let n=(0,_I.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:dd.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:n,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:await(0,_I.normalizeProvider)(e.retryMode)()===dd.RETRY_MODES.ADAPTIVE?new yJ.AdaptiveRetryStrategy(n):new gJ.StandardRetryStrategy(n)}};ze.resolveRetryConfig=vJ;ze.ENV_RETRY_MODE="AWS_RETRY_MODE";ze.CONFIG_RETRY_MODE="retry_mode";ze.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[ze.ENV_RETRY_MODE],configFileSelector:e=>e[ze.CONFIG_RETRY_MODE],default:dd.DEFAULT_RETRY_MODE}});var vI=f(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.getOmitRetryHeadersPlugin=Sn.omitRetryHeadersMiddlewareOptions=Sn.omitRetryHeadersMiddleware=void 0;var SJ=Ot(),gI=na(),wJ=()=>e=>async t=>{let{request:n}=t;return SJ.HttpRequest.isInstance(n)&&(delete n.headers[gI.INVOCATION_ID_HEADER],delete n.headers[gI.REQUEST_HEADER]),e(t)};Sn.omitRetryHeadersMiddleware=wJ;Sn.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var bJ=e=>({applyToStack:t=>{t.addRelativeTo((0,Sn.omitRetryHeadersMiddleware)(),Sn.omitRetryHeadersMiddlewareOptions)}});Sn.getOmitRetryHeadersPlugin=bJ});var SI=f(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getRetryPlugin=wn.retryMiddlewareOptions=wn.retryMiddleware=void 0;var EJ=e=>(t,n)=>async r=>{let i=await e.retryStrategy();return i!=null&&i.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)};wn.retryMiddleware=EJ;wn.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var AJ=e=>({applyToStack:t=>{t.add((0,wn.retryMiddleware)(e),wn.retryMiddlewareOptions)}});wn.getRetryPlugin=AJ});var bI=f(wI=>{"use strict";Object.defineProperty(wI,"__esModule",{value:!0})});var ui=f(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});var bn=K();bn.__exportStar(Iv(),Ht);bn.__exportStar(bv(),Ht);bn.__exportStar(ld(),Ht);bn.__exportStar(ta(),Ht);bn.__exportStar(yI(),Ht);bn.__exportStar(Av(),Ht);bn.__exportStar(vI(),Ht);bn.__exportStar(Tv(),Ht);bn.__exportStar(SI(),Ht);bn.__exportStar(bI(),Ht)});var md=f(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.ProviderError=void 0;var ia=class extends Error{constructor(t,n=!0){super(t),this.tryNextLink=n,this.name="ProviderError",Object.setPrototypeOf(this,ia.prototype)}static from(t,n=!0){return Object.assign(new this(t.message,n),t)}};fd.ProviderError=ia});var EI=f(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.CredentialsProviderError=void 0;var TJ=md(),sa=class extends TJ.ProviderError{constructor(t,n=!0){super(t,n),this.tryNextLink=n,this.name="CredentialsProviderError",Object.setPrototypeOf(this,sa.prototype)}};pd.CredentialsProviderError=sa});var AI=f(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.chain=void 0;var CJ=md();function xJ(...e){return()=>{let t=Promise.reject(new CJ.ProviderError("No providers in chain"));for(let n of e)t=t.catch(r=>{if(r!=null&&r.tryNextLink)return n();throw r});return t}}hd.chain=xJ});var TI=f(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.fromStatic=void 0;var IJ=e=>()=>Promise.resolve(e);_d.fromStatic=IJ});var CI=f(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.memoize=void 0;var RJ=(e,t,n)=>{let r,i,s,o=!1,a=async()=>{i||(i=e());try{r=await i,s=!0,o=!1}finally{i=void 0}return r};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(r=await a()),r):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(r=await a()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await a(),r))};yd.memoize=RJ});var je=f(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var oa=K();oa.__exportStar(EI(),di);oa.__exportStar(md(),di);oa.__exportStar(AI(),di);oa.__exportStar(TI(),di);oa.__exportStar(CI(),di)});var gd=f(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.toHex=ns.fromHex=void 0;var xI={},Rv={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),xI[e]=t,Rv[t]=e}function DJ(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 n=0;n<e.length;n+=2){let r=e.slice(n,n+2).toLowerCase();if(r in Rv)t[n/2]=Rv[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}ns.fromHex=DJ;function NJ(e){let t="";for(let n=0;n<e.byteLength;n++)t+=xI[e[n]];return t}ns.toHex=NJ});var fi=f(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MAX_PRESIGNED_TTL=B.KEY_TYPE_IDENTIFIER=B.MAX_CACHE_SIZE=B.UNSIGNED_PAYLOAD=B.EVENT_ALGORITHM_IDENTIFIER=B.ALGORITHM_IDENTIFIER_V4A=B.ALGORITHM_IDENTIFIER=B.UNSIGNABLE_PATTERNS=B.SEC_HEADER_PATTERN=B.PROXY_HEADER_PATTERN=B.ALWAYS_UNSIGNABLE_HEADERS=B.HOST_HEADER=B.TOKEN_HEADER=B.SHA256_HEADER=B.SIGNATURE_HEADER=B.GENERATED_HEADERS=B.DATE_HEADER=B.AMZ_DATE_HEADER=B.AUTH_HEADER=B.REGION_SET_PARAM=B.TOKEN_QUERY_PARAM=B.SIGNATURE_QUERY_PARAM=B.EXPIRES_QUERY_PARAM=B.SIGNED_HEADERS_QUERY_PARAM=B.AMZ_DATE_QUERY_PARAM=B.CREDENTIAL_QUERY_PARAM=B.ALGORITHM_QUERY_PARAM=void 0;B.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";B.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";B.AMZ_DATE_QUERY_PARAM="X-Amz-Date";B.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";B.EXPIRES_QUERY_PARAM="X-Amz-Expires";B.SIGNATURE_QUERY_PARAM="X-Amz-Signature";B.TOKEN_QUERY_PARAM="X-Amz-Security-Token";B.REGION_SET_PARAM="X-Amz-Region-Set";B.AUTH_HEADER="authorization";B.AMZ_DATE_HEADER=B.AMZ_DATE_QUERY_PARAM.toLowerCase();B.DATE_HEADER="date";B.GENERATED_HEADERS=[B.AUTH_HEADER,B.AMZ_DATE_HEADER,B.DATE_HEADER];B.SIGNATURE_HEADER=B.SIGNATURE_QUERY_PARAM.toLowerCase();B.SHA256_HEADER="x-amz-content-sha256";B.TOKEN_HEADER=B.TOKEN_QUERY_PARAM.toLowerCase();B.HOST_HEADER="host";B.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};B.PROXY_HEADER_PATTERN=/^proxy-/;B.SEC_HEADER_PATTERN=/^sec-/;B.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];B.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";B.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";B.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";B.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";B.MAX_CACHE_SIZE=50;B.KEY_TYPE_IDENTIFIER="aws4_request";B.MAX_PRESIGNED_TTL=60*60*24*7});var Nv=f(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.clearCredentialCache=Cr.getSigningKey=Cr.createScope=void 0;var PJ=gd(),Dv=fi(),rs={},vd=[],OJ=(e,t,n)=>`${e}/${t}/${n}/${Dv.KEY_TYPE_IDENTIFIER}`;Cr.createScope=OJ;var LJ=async(e,t,n,r,i)=>{let s=await II(e,t.secretAccessKey,t.accessKeyId),o=`${n}:${r}:${i}:${(0,PJ.toHex)(s)}:${t.sessionToken}`;if(o in rs)return rs[o];for(vd.push(o);vd.length>Dv.MAX_CACHE_SIZE;)delete rs[vd.shift()];let a=`AWS4${t.secretAccessKey}`;for(let c of[n,r,i,Dv.KEY_TYPE_IDENTIFIER])a=await II(e,a,c);return rs[o]=a};Cr.getSigningKey=LJ;var qJ=()=>{vd.length=0,Object.keys(rs).forEach(e=>{delete rs[e]})};Cr.clearCredentialCache=qJ;var II=(e,t,n)=>{let r=new e(t);return r.update(n),r.digest()}});var Ov=f(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.getCanonicalHeaders=void 0;var Pv=fi(),MJ=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in Pv.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||Pv.PROXY_HEADER_PATTERN.test(s)||Pv.SEC_HEADER_PATTERN.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[i].trim().replace(/\s+/g," "))}return r};Sd.getCanonicalHeaders=MJ});var Lv=f(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.escapeUri=void 0;var zJ=e=>encodeURIComponent(e).replace(/[!'()*]/g,jJ);wd.escapeUri=zJ;var jJ=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var RI=f(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.escapeUriPath=void 0;var kJ=Lv(),FJ=e=>e.split("/").map(kJ.escapeUri).join("/");bd.escapeUriPath=FJ});var qv=f(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var DI=K();DI.__exportStar(Lv(),Ed);DI.__exportStar(RI(),Ed)});var Mv=f(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.getCanonicalQuery=void 0;var Ad=qv(),UJ=fi(),BJ=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===UJ.SIGNATURE_HEADER)continue;t.push(r);let i=e[r];typeof i=="string"?n[r]=`${(0,Ad.escapeUri)(r)}=${(0,Ad.escapeUri)(i)}`:Array.isArray(i)&&(n[r]=i.slice(0).sort().reduce((s,o)=>s.concat([`${(0,Ad.escapeUri)(r)}=${(0,Ad.escapeUri)(o)}`]),[]).join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")};Td.getCanonicalQuery=BJ});var zv=f(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.isArrayBuffer=void 0;var GJ=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";Cd.isArrayBuffer=GJ});var jv=f(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.getPayloadHash=void 0;var $J=zv(),VJ=gd(),NI=fi(),KJ=async({headers:e,body:t},n)=>{for(let r of Object.keys(e))if(r.toLowerCase()===NI.SHA256_HEADER)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,$J.isArrayBuffer)(t)){let r=new n;return r.update(t),(0,VJ.toHex)(await r.digest())}return NI.UNSIGNED_PAYLOAD};xd.getPayloadHash=KJ});var PI=f(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.deleteHeader=xr.getHeaderValue=xr.hasHeader=void 0;var WJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1};xr.hasHeader=WJ;var HJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return t[n]};xr.getHeaderValue=HJ;var YJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))e===n.toLowerCase()&&delete t[n]};xr.deleteHeader=YJ});var kv=f(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.cloneQuery=mi.cloneRequest=void 0;var JJ=({headers:e,query:t,...n})=>({...n,headers:{...e},query:t?(0,mi.cloneQuery)(t):void 0});mi.cloneRequest=JJ;var QJ=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{});mi.cloneQuery=QJ});var Fv=f(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.moveHeadersToQuery=void 0;var XJ=kv(),ZJ=(e,t={})=>{var n;let{headers:r,query:i={}}=typeof e.clone=="function"?e.clone():(0,XJ.cloneRequest)(e);for(let s of Object.keys(r)){let o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!(!((n=t.unhoistableHeaders)===null||n===void 0)&&n.has(o))&&(i[s]=r[s],delete r[s])}return{...e,headers:r,query:i}};Id.moveHeadersToQuery=ZJ});var Uv=f(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.prepareRequest=void 0;var e9=kv(),t9=fi(),n9=e=>{e=typeof e.clone=="function"?e.clone():(0,e9.cloneRequest)(e);for(let t of Object.keys(e.headers))t9.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};Rd.prepareRequest=n9});var OI=f(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.toDate=pi.iso8601=void 0;var r9=e=>(0,pi.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");pi.iso8601=r9;var i9=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;pi.toDate=i9});var jI=f(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.SignatureV4=void 0;var Dd=gd(),LI=Jo(),it=fi(),Nd=Nv(),qI=Ov(),s9=Mv(),Bv=jv(),o9=PI(),a9=Fv(),MI=Uv(),c9=OI(),Gv=class{constructor({applyChecksum:t,credentials:n,region:r,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,LI.normalizeProvider)(r),this.credentialProvider=(0,LI.normalizeProvider)(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:c,signingService:u}=n,d=await this.credentialProvider(),h=c??await this.regionProvider(),{longDate:m,shortDate:y}=Pd(r);if(i>it.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,Nd.createScope)(y,h,u??this.service),_=(0,a9.moveHeadersToQuery)((0,MI.prepareRequest)(t),{unhoistableHeaders:o});d.sessionToken&&(_.query[it.TOKEN_QUERY_PARAM]=d.sessionToken),_.query[it.ALGORITHM_QUERY_PARAM]=it.ALGORITHM_IDENTIFIER,_.query[it.CREDENTIAL_QUERY_PARAM]=`${d.accessKeyId}/${g}`,_.query[it.AMZ_DATE_QUERY_PARAM]=m,_.query[it.EXPIRES_QUERY_PARAM]=i.toString(10);let A=(0,qI.getCanonicalHeaders)(_,s,a);return _.query[it.SIGNED_HEADERS_QUERY_PARAM]=zI(A),_.query[it.SIGNATURE_QUERY_PARAM]=await this.getSignature(m,g,this.getSigningKey(d,h,y,u),this.createCanonicalRequest(_,A,await(0,Bv.getPayloadHash)(t,this.sha256))),_}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:i,signingRegion:s,signingService:o}){let a=s??await this.regionProvider(),{shortDate:c,longDate:u}=Pd(r),d=(0,Nd.createScope)(c,a,o??this.service),h=await(0,Bv.getPayloadHash)({headers:{},body:n},this.sha256),m=new this.sha256;m.update(t);let y=(0,Dd.toHex)(await m.digest()),g=[it.EVENT_ALGORITHM_IDENTIFIER,u,d,i,y,h].join(`
|
|
10
|
+
`);return this.signString(g,{signingDate:r,signingRegion:a,signingService:o})}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){let s=await this.credentialProvider(),o=r??await this.regionProvider(),{shortDate:a}=Pd(n),c=new this.sha256(await this.getSigningKey(s,o,a,i));return c.update(t),(0,Dd.toHex)(await c.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider(),c=s??await this.regionProvider(),u=(0,MI.prepareRequest)(t),{longDate:d,shortDate:h}=Pd(n),m=(0,Nd.createScope)(h,c,o??this.service);u.headers[it.AMZ_DATE_HEADER]=d,a.sessionToken&&(u.headers[it.TOKEN_HEADER]=a.sessionToken);let y=await(0,Bv.getPayloadHash)(u,this.sha256);!(0,o9.hasHeader)(it.SHA256_HEADER,u.headers)&&this.applyChecksum&&(u.headers[it.SHA256_HEADER]=y);let g=(0,qI.getCanonicalHeaders)(u,i,r),_=await this.getSignature(d,m,this.getSigningKey(a,c,h,o),this.createCanonicalRequest(u,g,y));return u.headers[it.AUTH_HEADER]=`${it.ALGORITHM_IDENTIFIER} Credential=${a.accessKeyId}/${m}, SignedHeaders=${zI(g)}, Signature=${_}`,u}createCanonicalRequest(t,n,r){let i=Object.keys(n).sort();return`${t.method}
|
|
11
11
|
${this.getCanonicalPath(t)}
|
|
12
|
-
${(0,
|
|
13
|
-
${i.map(s=>`${s}:${
|
|
12
|
+
${(0,s9.getCanonicalQuery)(t)}
|
|
13
|
+
${i.map(s=>`${s}:${n[s]}`).join(`
|
|
14
14
|
`)}
|
|
15
15
|
|
|
16
16
|
${i.join(";")}
|
|
17
|
-
${
|
|
17
|
+
${r}`}async createStringToSign(t,n,r){let i=new this.sha256;i.update(r);let s=await i.digest();return`${it.ALGORITHM_IDENTIFIER}
|
|
18
18
|
${t}
|
|
19
|
-
${
|
|
20
|
-
${(0,Vf.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),a=new this.sha256(await n);return a.update(s),(0,Vf.toHex)(await a.digest())}getSigningKey(t,r,n,i){return(0,Kf.getSigningKey)(this.sha256,t,n,r,i||this.service)}};Wf.SignatureV4=v0;var Hf=e=>{let t=(0,Lee.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},ZN=e=>Object.keys(e).sort().join(";")});var rP=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.prepareRequest=Nt.moveHeadersToQuery=Nt.getPayloadHash=Nt.getCanonicalQuery=Nt.getCanonicalHeaders=void 0;var tP=$();tP.__exportStar(eP(),Nt);var qee=l0();Object.defineProperty(Nt,"getCanonicalHeaders",{enumerable:!0,get:function(){return qee.getCanonicalHeaders}});var Mee=f0();Object.defineProperty(Nt,"getCanonicalQuery",{enumerable:!0,get:function(){return Mee.getCanonicalQuery}});var zee=p0();Object.defineProperty(Nt,"getPayloadHash",{enumerable:!0,get:function(){return zee.getPayloadHash}});var jee=h0();Object.defineProperty(Nt,"moveHeadersToQuery",{enumerable:!0,get:function(){return jee.moveHeadersToQuery}});var kee=y0();Object.defineProperty(Nt,"prepareRequest",{enumerable:!0,get:function(){return kee.prepareRequest}});tP.__exportStar(a0(),Nt)});var sP=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.resolveSigV4AuthConfig=Us.resolveAwsAuthConfig=void 0;var Fee=be(),nP=rP(),Uee=3e5,Bee=e=>{let t=e.credentials?iP(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=Qa(e.signer):s=()=>Qa(e.region)().then(async a=>[await e.regionInfoProvider(a,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},a]).then(([a,c])=>{let{signingRegion:l,signingService:u}=a;e.signingRegion=e.signingRegion||l||c,e.signingName=e.signingName||u||e.serviceId;let f=y(o({},e),{credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r}),h=e.signerConstructor||nP.SignatureV4;return new h(f)}),y(o({},e),{systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s})};Us.resolveAwsAuthConfig=Bee;var Gee=e=>{let t=e.credentials?iP(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=Qa(e.signer):s=Qa(new nP.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:r})),y(o({},e),{systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s})};Us.resolveSigV4AuthConfig=Gee;var Qa=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},iP=e=>typeof e=="function"?(0,Fee.memoize)(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<Uee,t=>t.expiration!==void 0):Qa(e)});var S0=m(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.getSkewCorrectedDate=void 0;var $ee=e=>new Date(Date.now()+e);Jf.getSkewCorrectedDate=$ee});var oP=m(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.isClockSkewed=void 0;var Vee=S0(),Kee=(e,t)=>Math.abs((0,Vee.getSkewCorrectedDate)(t).getTime()-e)>=3e5;Yf.isClockSkewed=Kee});var aP=m(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.getUpdatedSystemClockOffset=void 0;var Hee=oP(),Wee=(e,t)=>{let r=Date.parse(e);return(0,Hee.isClockSkewed)(r,t)?r-Date.now():t};Qf.getUpdatedSystemClockOffset=Wee});var uP=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.getSigV4AuthPlugin=Vt.getAwsAuthPlugin=Vt.awsAuthMiddlewareOptions=Vt.awsAuthMiddleware=void 0;var dP=It(),Jee=S0(),cP=aP(),Yee=e=>(t,r)=>async function(n){if(!dP.HttpRequest.isInstance(n.request))return t(n);let i=await e.signer(),s=await t(y(o({},n),{request:await i.sign(n.request,{signingDate:(0,Jee.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:r.signing_region,signingService:r.signing_service})})).catch(c=>{var l;let u=(l=c.ServerTime)!==null&&l!==void 0?l:lP(c.$response);throw u&&(e.systemClockOffset=(0,cP.getUpdatedSystemClockOffset)(u,e.systemClockOffset)),c}),a=lP(s.response);return a&&(e.systemClockOffset=(0,cP.getUpdatedSystemClockOffset)(a,e.systemClockOffset)),s};Vt.awsAuthMiddleware=Yee;var lP=e=>{var t,r,n;return dP.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};Vt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var Qee=e=>({applyToStack:t=>{t.addRelativeTo((0,Vt.awsAuthMiddleware)(e),Vt.awsAuthMiddlewareOptions)}});Vt.getAwsAuthPlugin=Qee;Vt.getSigV4AuthPlugin=Vt.getAwsAuthPlugin});var gn=m(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var fP=$();fP.__exportStar(sP(),Xf);fP.__exportStar(uP(),Xf)});var mP=m(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.resolveUserAgentConfig=void 0;function Xee(e){return y(o({},e),{customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent})}Zf.resolveUserAgentConfig=Xee});var pP=m(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.UA_ESCAPE_REGEX=Nr.SPACE=Nr.X_AMZ_USER_AGENT=Nr.USER_AGENT=void 0;Nr.USER_AGENT="user-agent";Nr.X_AMZ_USER_AGENT="x-amz-user-agent";Nr.SPACE=" ";Nr.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var _P=m(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getUserAgentPlugin=Pr.getUserAgentMiddlewareOptions=Pr.userAgentMiddleware=void 0;var Zee=It(),Zn=pP(),ete=e=>(t,r)=>async n=>{var i,s;let{request:a}=n;if(!Zee.HttpRequest.isInstance(a))return t(n);let{headers:c}=a,l=((i=r==null?void 0:r.userAgent)===null||i===void 0?void 0:i.map(w0))||[],u=(await e.defaultUserAgentProvider()).map(w0),f=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(w0))||[],h=[...u,...l,...f].join(Zn.SPACE),p=[...u.filter(v=>v.startsWith("aws-sdk-")),...f].join(Zn.SPACE);return e.runtime!=="browser"?(p&&(c[Zn.X_AMZ_USER_AGENT]=c[Zn.X_AMZ_USER_AGENT]?`${c[Zn.USER_AGENT]} ${p}`:p),c[Zn.USER_AGENT]=h):c[Zn.X_AMZ_USER_AGENT]=h,t(y(o({},n),{request:a}))};Pr.userAgentMiddleware=ete;var w0=([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(Zn.UA_ESCAPE_REGEX,"_")).join("/")};Pr.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var tte=e=>({applyToStack:t=>{t.add((0,Pr.userAgentMiddleware)(e),Pr.getUserAgentMiddlewareOptions)}});Pr.getUserAgentPlugin=tte});var Xa=m(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var hP=$();hP.__exportStar(mP(),em);hP.__exportStar(_P(),em)});var yP=m((b1e,rte)=>{rte.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.95.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.95.0","@aws-sdk/config-resolver":"3.80.0","@aws-sdk/credential-provider-node":"3.95.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.80.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.80.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.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.85.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.85.0","@aws-sdk/util-defaults-mode-node":"3.85.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.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 rm=m(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.STSServiceException=void 0;var nte=D(),Za=class extends nte.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Za.prototype)}};tm.STSServiceException=Za});var lr=m(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.GetSessionTokenResponse=M.GetSessionTokenRequest=M.GetFederationTokenResponse=M.FederatedUser=M.GetFederationTokenRequest=M.GetCallerIdentityResponse=M.GetCallerIdentityRequest=M.GetAccessKeyInfoResponse=M.GetAccessKeyInfoRequest=M.InvalidAuthorizationMessageException=M.DecodeAuthorizationMessageResponse=M.DecodeAuthorizationMessageRequest=M.IDPCommunicationErrorException=M.AssumeRoleWithWebIdentityResponse=M.AssumeRoleWithWebIdentityRequest=M.InvalidIdentityTokenException=M.IDPRejectedClaimException=M.AssumeRoleWithSAMLResponse=M.AssumeRoleWithSAMLRequest=M.RegionDisabledException=M.PackedPolicyTooLargeException=M.MalformedPolicyDocumentException=M.ExpiredTokenException=M.AssumeRoleResponse=M.Credentials=M.AssumeRoleRequest=M.Tag=M.PolicyDescriptorType=M.AssumedRoleUser=void 0;var ei=rm(),ite;(function(e){e.filterSensitiveLog=t=>o({},t)})(ite=M.AssumedRoleUser||(M.AssumedRoleUser={}));var ste;(function(e){e.filterSensitiveLog=t=>o({},t)})(ste=M.PolicyDescriptorType||(M.PolicyDescriptorType={}));var ote;(function(e){e.filterSensitiveLog=t=>o({},t)})(ote=M.Tag||(M.Tag={}));var ate;(function(e){e.filterSensitiveLog=t=>o({},t)})(ate=M.AssumeRoleRequest||(M.AssumeRoleRequest={}));var cte;(function(e){e.filterSensitiveLog=t=>o({},t)})(cte=M.Credentials||(M.Credentials={}));var lte;(function(e){e.filterSensitiveLog=t=>o({},t)})(lte=M.AssumeRoleResponse||(M.AssumeRoleResponse={}));var ec=class extends ei.STSServiceException{constructor(t){super(o({name:"ExpiredTokenException",$fault:"client"},t)),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,ec.prototype)}};M.ExpiredTokenException=ec;var tc=class extends ei.STSServiceException{constructor(t){super(o({name:"MalformedPolicyDocumentException",$fault:"client"},t)),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,tc.prototype)}};M.MalformedPolicyDocumentException=tc;var rc=class extends ei.STSServiceException{constructor(t){super(o({name:"PackedPolicyTooLargeException",$fault:"client"},t)),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,rc.prototype)}};M.PackedPolicyTooLargeException=rc;var nc=class extends ei.STSServiceException{constructor(t){super(o({name:"RegionDisabledException",$fault:"client"},t)),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,nc.prototype)}};M.RegionDisabledException=nc;var dte;(function(e){e.filterSensitiveLog=t=>o({},t)})(dte=M.AssumeRoleWithSAMLRequest||(M.AssumeRoleWithSAMLRequest={}));var ute;(function(e){e.filterSensitiveLog=t=>o({},t)})(ute=M.AssumeRoleWithSAMLResponse||(M.AssumeRoleWithSAMLResponse={}));var ic=class extends ei.STSServiceException{constructor(t){super(o({name:"IDPRejectedClaimException",$fault:"client"},t)),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,ic.prototype)}};M.IDPRejectedClaimException=ic;var sc=class extends ei.STSServiceException{constructor(t){super(o({name:"InvalidIdentityTokenException",$fault:"client"},t)),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,sc.prototype)}};M.InvalidIdentityTokenException=sc;var fte;(function(e){e.filterSensitiveLog=t=>o({},t)})(fte=M.AssumeRoleWithWebIdentityRequest||(M.AssumeRoleWithWebIdentityRequest={}));var mte;(function(e){e.filterSensitiveLog=t=>o({},t)})(mte=M.AssumeRoleWithWebIdentityResponse||(M.AssumeRoleWithWebIdentityResponse={}));var oc=class extends ei.STSServiceException{constructor(t){super(o({name:"IDPCommunicationErrorException",$fault:"client"},t)),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,oc.prototype)}};M.IDPCommunicationErrorException=oc;var pte;(function(e){e.filterSensitiveLog=t=>o({},t)})(pte=M.DecodeAuthorizationMessageRequest||(M.DecodeAuthorizationMessageRequest={}));var _te;(function(e){e.filterSensitiveLog=t=>o({},t)})(_te=M.DecodeAuthorizationMessageResponse||(M.DecodeAuthorizationMessageResponse={}));var ac=class extends ei.STSServiceException{constructor(t){super(o({name:"InvalidAuthorizationMessageException",$fault:"client"},t)),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,ac.prototype)}};M.InvalidAuthorizationMessageException=ac;var hte;(function(e){e.filterSensitiveLog=t=>o({},t)})(hte=M.GetAccessKeyInfoRequest||(M.GetAccessKeyInfoRequest={}));var yte;(function(e){e.filterSensitiveLog=t=>o({},t)})(yte=M.GetAccessKeyInfoResponse||(M.GetAccessKeyInfoResponse={}));var gte;(function(e){e.filterSensitiveLog=t=>o({},t)})(gte=M.GetCallerIdentityRequest||(M.GetCallerIdentityRequest={}));var vte;(function(e){e.filterSensitiveLog=t=>o({},t)})(vte=M.GetCallerIdentityResponse||(M.GetCallerIdentityResponse={}));var Ste;(function(e){e.filterSensitiveLog=t=>o({},t)})(Ste=M.GetFederationTokenRequest||(M.GetFederationTokenRequest={}));var wte;(function(e){e.filterSensitiveLog=t=>o({},t)})(wte=M.FederatedUser||(M.FederatedUser={}));var Ete;(function(e){e.filterSensitiveLog=t=>o({},t)})(Ete=M.GetFederationTokenResponse||(M.GetFederationTokenResponse={}));var bte;(function(e){e.filterSensitiveLog=t=>o({},t)})(bte=M.GetSessionTokenRequest||(M.GetSessionTokenRequest={}));var Ate;(function(e){e.filterSensitiveLog=t=>o({},t)})(Ate=M.GetSessionTokenResponse||(M.GetSessionTokenResponse={}))});var E0=m((C1e,Tte)=>{Tte.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 gP=m((x1e,Cte)=>{Cte.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 b0=m((I1e,xte)=>{xte.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var vP=m((R1e,Ite)=>{Ite.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 wP=m(cc=>{"use strict";var Rte=cc&&cc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cc,"__esModule",{value:!0});var SP=Rte(vP()),Nte=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 Pte(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in SP.default&&(e=SP.default[e]),Nte(e))}cc.default=Pte});var T0=m(Dr=>{"use strict";var nm=Dr&&Dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.decodeHTML=Dr.decodeHTMLStrict=Dr.decodeXML=void 0;var A0=nm(E0()),Dte=nm(gP()),Ote=nm(b0()),EP=nm(wP()),Lte=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Dr.decodeXML=AP(Ote.default);Dr.decodeHTMLStrict=AP(A0.default);function AP(e){var t=TP(e);return function(r){return String(r).replace(Lte,t)}}var bP=function(e,t){return e<t?1:-1};Dr.decodeHTML=function(){for(var e=Object.keys(Dte.default).sort(bP),t=Object.keys(A0.default).sort(bP),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=TP(A0.default);function a(c){return c.substr(-1)!==";"&&(c+=";"),s(c)}return function(c){return String(c).replace(i,a)}}();function TP(e){return function(r){if(r.charAt(1)==="#"){var n=r.charAt(2);return n==="X"||n==="x"?EP.default(parseInt(r.substr(3),16)):EP.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}});var x0=m(Pt=>{"use strict";var CP=Pt&&Pt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.escapeUTF8=Pt.escape=Pt.encodeNonAsciiHTML=Pt.encodeHTML=Pt.encodeXML=void 0;var qte=CP(b0()),xP=RP(qte.default),IP=NP(xP);Pt.encodeXML=OP(xP);var Mte=CP(E0()),C0=RP(Mte.default),zte=NP(C0);Pt.encodeHTML=kte(C0,zte);Pt.encodeNonAsciiHTML=OP(C0);function RP(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function NP(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 a=0;a<t.length-1;a++){for(var c=a;c<t.length-1&&t[c].charCodeAt(1)+1===t[c+1].charCodeAt(1);)c+=1;var l=1+c-a;l<3||t.splice(a,l,t[a]+"-"+t[c])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var PP=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,jte=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function im(e){return"&#x"+(e.length>1?jte(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function kte(e,t){return function(r){return r.replace(t,function(n){return e[n]}).replace(PP,im)}}var DP=new RegExp(IP.source+"|"+PP.source,"g");function Fte(e){return e.replace(DP,im)}Pt.escape=Fte;function Ute(e){return e.replace(IP,im)}Pt.escapeUTF8=Ute;function OP(e){return function(t){return t.replace(DP,function(r){return e[r]||im(r)})}}});var qP=m(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.decodeXMLStrict=me.decodeHTML5Strict=me.decodeHTML4Strict=me.decodeHTML5=me.decodeHTML4=me.decodeHTMLStrict=me.decodeHTML=me.decodeXML=me.encodeHTML5=me.encodeHTML4=me.escapeUTF8=me.escape=me.encodeNonAsciiHTML=me.encodeHTML=me.encodeXML=me.encode=me.decodeStrict=me.decode=void 0;var sm=T0(),LP=x0();function Bte(e,t){return(!t||t<=0?sm.decodeXML:sm.decodeHTML)(e)}me.decode=Bte;function Gte(e,t){return(!t||t<=0?sm.decodeXML:sm.decodeHTMLStrict)(e)}me.decodeStrict=Gte;function $te(e,t){return(!t||t<=0?LP.encodeXML:LP.encodeHTML)(e)}me.encode=$te;var ki=x0();Object.defineProperty(me,"encodeXML",{enumerable:!0,get:function(){return ki.encodeXML}});Object.defineProperty(me,"encodeHTML",{enumerable:!0,get:function(){return ki.encodeHTML}});Object.defineProperty(me,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return ki.encodeNonAsciiHTML}});Object.defineProperty(me,"escape",{enumerable:!0,get:function(){return ki.escape}});Object.defineProperty(me,"escapeUTF8",{enumerable:!0,get:function(){return ki.escapeUTF8}});Object.defineProperty(me,"encodeHTML4",{enumerable:!0,get:function(){return ki.encodeHTML}});Object.defineProperty(me,"encodeHTML5",{enumerable:!0,get:function(){return ki.encodeHTML}});var ti=T0();Object.defineProperty(me,"decodeXML",{enumerable:!0,get:function(){return ti.decodeXML}});Object.defineProperty(me,"decodeHTML",{enumerable:!0,get:function(){return ti.decodeHTML}});Object.defineProperty(me,"decodeHTMLStrict",{enumerable:!0,get:function(){return ti.decodeHTMLStrict}});Object.defineProperty(me,"decodeHTML4",{enumerable:!0,get:function(){return ti.decodeHTML}});Object.defineProperty(me,"decodeHTML5",{enumerable:!0,get:function(){return ti.decodeHTML}});Object.defineProperty(me,"decodeHTML4Strict",{enumerable:!0,get:function(){return ti.decodeHTMLStrict}});Object.defineProperty(me,"decodeHTML5Strict",{enumerable:!0,get:function(){return ti.decodeHTMLStrict}});Object.defineProperty(me,"decodeXMLStrict",{enumerable:!0,get:function(){return ti.decodeXML}})});var Or=m(dr=>{"use strict";var MP=":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",Vte=MP+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",zP="["+MP+"]["+Vte+"]*",Kte=new RegExp("^"+zP+"$"),Hte=function(e,t){let r=[],n=t.exec(e);for(;n;){let i=[],s=n.length;for(let a=0;a<s;a++)i.push(n[a]);r.push(i),n=t.exec(e)}return r},Wte=function(e){let t=Kte.exec(e);return!(t===null||typeof t>"u")};dr.isExist=function(e){return typeof e<"u"};dr.isEmptyObject=function(e){return Object.keys(e).length===0};dr.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]]}};dr.getValue=function(e){return dr.isExist(e)?e:""};dr.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};dr.isTagNameInArrayMode=function(e,t,r){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,r):t==="strict"};dr.isName=Wte;dr.getAllMatches=Hte;dr.nameRegexp=zP});var kP=m(jP=>{"use strict";var Fi=Or(),I0=function(e,t,r){let n={};if((!e.child||Fi.isEmptyObject(e.child))&&(!e.attrsMap||Fi.isEmptyObject(e.attrsMap)))return Fi.isExist(e.val)?e.val:"";if(Fi.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=Fi.isTagNameInArrayMode(e.tagname,t.arrayMode,r);n[t.textNodeName]=s?[e.val]:e.val}Fi.merge(n,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let s=0;s<i.length;s++){let a=i[s];if(e.child[a]&&e.child[a].length>1){n[a]=[];for(let c in e.child[a])e.child[a].hasOwnProperty(c)&&n[a].push(I0(e.child[a][c],t,a))}else{let c=I0(e.child[a][0],t,a),l=t.arrayMode===!0&&typeof c=="object"||Fi.isTagNameInArrayMode(a,t.arrayMode,r);n[a]=l?[c]:c}}return n};jP.convertToJson=I0});var UP=m((M1e,FP)=>{"use strict";FP.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 dc=m(cm=>{"use strict";var Ui=Or(),Jte=Or().buildOptions,om=UP(),z1e="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,Ui.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var GP={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:[]};cm.defaultOptions=GP;var $P=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];cm.props=$P;function am(e,t,r){return t&&(r.trimValues&&(t=t.trim()),t=r.tagValueProcessor(t,e),t=VP(t,r.parseNodeValue,r.parseTrueNumberOnly)),t}function Yte(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 VP(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 Ui.isExist(e)?e:""}var Qte=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function BP(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let r=Ui.getAllMatches(e,Qte),n=r.length,i={};for(let s=0;s<n;s++){let a=Yte(r[s][1],t);a.length&&(r[s][4]!==void 0?(t.trimValues&&(r[s][4]=r[s][4].trim()),r[s][4]=t.attrValueProcessor(r[s][4],a),i[t.attributeNamePrefix+a]=VP(r[s][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+a]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let s={};return s[t.attrNodeName]=i,s}return i}}var Xte=function(e,t){e=e.replace(/\r\n?/g,`
|
|
22
|
-
`),t=
|
|
23
|
-
`&&e[s]!=="\r";s++)
|
|
24
|
-
`||e[s]==="\r")continue;return
|
|
19
|
+
${n}
|
|
20
|
+
${(0,Dd.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let n=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?n.pop():n.push(s));let r=`${t!=null&&t.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&(t==null?void 0:t.endsWith("/"))?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return t}async getSignature(t,n,r,i){let s=await this.createStringToSign(t,n,i),o=new this.sha256(await r);return o.update(s),(0,Dd.toHex)(await o.digest())}getSigningKey(t,n,r,i){return(0,Nd.getSigningKey)(this.sha256,t,r,n,i||this.service)}};Od.SignatureV4=Gv;var Pd=e=>{let t=(0,c9.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},zI=e=>Object.keys(e).sort().join(";")});var FI=f(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.prepareRequest=wt.moveHeadersToQuery=wt.getPayloadHash=wt.getCanonicalQuery=wt.getCanonicalHeaders=void 0;var kI=K();kI.__exportStar(jI(),wt);var l9=Ov();Object.defineProperty(wt,"getCanonicalHeaders",{enumerable:!0,get:function(){return l9.getCanonicalHeaders}});var u9=Mv();Object.defineProperty(wt,"getCanonicalQuery",{enumerable:!0,get:function(){return u9.getCanonicalQuery}});var d9=jv();Object.defineProperty(wt,"getPayloadHash",{enumerable:!0,get:function(){return d9.getPayloadHash}});var f9=Fv();Object.defineProperty(wt,"moveHeadersToQuery",{enumerable:!0,get:function(){return f9.moveHeadersToQuery}});var m9=Uv();Object.defineProperty(wt,"prepareRequest",{enumerable:!0,get:function(){return m9.prepareRequest}});kI.__exportStar(Nv(),wt)});var GI=f(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.resolveSigV4AuthConfig=is.resolveAwsAuthConfig=void 0;var p9=je(),UI=FI(),h9=3e5,_9=e=>{let t=e.credentials?BI(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=aa(e.signer):s=()=>aa(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:n},h=e.signerConstructor||UI.SignatureV4;return new h(d)}),{...e,systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s}};is.resolveAwsAuthConfig=_9;var y9=e=>{let t=e.credentials?BI(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=aa(e.signer):s=aa(new UI.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:n})),{...e,systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s}};is.resolveSigV4AuthConfig=y9;var aa=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},BI=e=>typeof e=="function"?(0,p9.memoize)(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<h9,t=>t.expiration!==void 0):aa(e)});var $v=f(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.getSkewCorrectedDate=void 0;var g9=e=>new Date(Date.now()+e);Ld.getSkewCorrectedDate=g9});var $I=f(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.isClockSkewed=void 0;var v9=$v(),S9=(e,t)=>Math.abs((0,v9.getSkewCorrectedDate)(t).getTime()-e)>=3e5;qd.isClockSkewed=S9});var VI=f(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getUpdatedSystemClockOffset=void 0;var w9=$I(),b9=(e,t)=>{let n=Date.parse(e);return(0,w9.isClockSkewed)(n,t)?n-Date.now():t};Md.getUpdatedSystemClockOffset=b9});var YI=f(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.getSigV4AuthPlugin=Mt.getAwsAuthPlugin=Mt.awsAuthMiddlewareOptions=Mt.awsAuthMiddleware=void 0;var HI=Ot(),E9=$v(),KI=VI(),A9=e=>(t,n)=>async function(r){if(!HI.HttpRequest.isInstance(r.request))return t(r);let i=await e.signer(),s=await t({...r,request:await i.sign(r.request,{signingDate:(0,E9.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})}).catch(a=>{var c;let u=(c=a.ServerTime)!==null&&c!==void 0?c:WI(a.$response);throw u&&(e.systemClockOffset=(0,KI.getUpdatedSystemClockOffset)(u,e.systemClockOffset)),a}),o=WI(s.response);return o&&(e.systemClockOffset=(0,KI.getUpdatedSystemClockOffset)(o,e.systemClockOffset)),s};Mt.awsAuthMiddleware=A9;var WI=e=>{var t,n,r;return HI.HttpResponse.isInstance(e)?(n=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&n!==void 0?n:(r=e.headers)===null||r===void 0?void 0:r.Date:void 0};Mt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var T9=e=>({applyToStack:t=>{t.addRelativeTo((0,Mt.awsAuthMiddleware)(e),Mt.awsAuthMiddlewareOptions)}});Mt.getAwsAuthPlugin=T9;Mt.getSigV4AuthPlugin=Mt.getAwsAuthPlugin});var Xn=f(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var JI=K();JI.__exportStar(GI(),zd);JI.__exportStar(YI(),zd)});var QI=f(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.resolveUserAgentConfig=void 0;function C9(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}jd.resolveUserAgentConfig=C9});var XI=f(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.UA_ESCAPE_REGEX=En.SPACE=En.X_AMZ_USER_AGENT=En.USER_AGENT=void 0;En.USER_AGENT="user-agent";En.X_AMZ_USER_AGENT="x-amz-user-agent";En.SPACE=" ";En.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var ZI=f(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.getUserAgentPlugin=An.getUserAgentMiddlewareOptions=An.userAgentMiddleware=void 0;var x9=Ot(),Ir=XI(),I9=e=>(t,n)=>async r=>{var i,s;let{request:o}=r;if(!x9.HttpRequest.isInstance(o))return t(r);let{headers:a}=o,c=((i=n==null?void 0:n.userAgent)===null||i===void 0?void 0:i.map(Vv))||[],u=(await e.defaultUserAgentProvider()).map(Vv),d=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Vv))||[],h=[...u,...c,...d].join(Ir.SPACE),m=[...u.filter(y=>y.startsWith("aws-sdk-")),...d].join(Ir.SPACE);return e.runtime!=="browser"?(m&&(a[Ir.X_AMZ_USER_AGENT]=a[Ir.X_AMZ_USER_AGENT]?`${a[Ir.USER_AGENT]} ${m}`:m),a[Ir.USER_AGENT]=h):a[Ir.X_AMZ_USER_AGENT]=h,t({...r,request:o})};An.userAgentMiddleware=I9;var Vv=([e,t])=>{let n=e.indexOf("/"),r=e.substring(0,n),i=e.substring(n+1);return r==="api"&&(i=i.toLowerCase()),[r,i,t].filter(s=>s&&s.length>0).map(s=>s==null?void 0:s.replace(Ir.UA_ESCAPE_REGEX,"_")).join("/")};An.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var R9=e=>({applyToStack:t=>{t.add((0,An.userAgentMiddleware)(e),An.getUserAgentMiddlewareOptions)}});An.getUserAgentPlugin=R9});var Fd=f(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var e1=K();e1.__exportStar(QI(),kd);e1.__exportStar(ZI(),kd)});var t1=f((Xve,D9)=>{D9.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 Bd=f(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.STSServiceException=void 0;var N9=O(),ca=class extends N9.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,ca.prototype)}};Ud.STSServiceException=ca});var tn=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 Rr=Bd(),P9;(function(e){e.filterSensitiveLog=t=>({...t})})(P9=L.AssumedRoleUser||(L.AssumedRoleUser={}));var O9;(function(e){e.filterSensitiveLog=t=>({...t})})(O9=L.PolicyDescriptorType||(L.PolicyDescriptorType={}));var L9;(function(e){e.filterSensitiveLog=t=>({...t})})(L9=L.Tag||(L.Tag={}));var q9;(function(e){e.filterSensitiveLog=t=>({...t})})(q9=L.AssumeRoleRequest||(L.AssumeRoleRequest={}));var M9;(function(e){e.filterSensitiveLog=t=>({...t})})(M9=L.Credentials||(L.Credentials={}));var z9;(function(e){e.filterSensitiveLog=t=>({...t})})(z9=L.AssumeRoleResponse||(L.AssumeRoleResponse={}));var la=class extends Rr.STSServiceException{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,la.prototype)}};L.ExpiredTokenException=la;var ua=class extends Rr.STSServiceException{constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,ua.prototype)}};L.MalformedPolicyDocumentException=ua;var da=class extends Rr.STSServiceException{constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,da.prototype)}};L.PackedPolicyTooLargeException=da;var fa=class extends Rr.STSServiceException{constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,fa.prototype)}};L.RegionDisabledException=fa;var j9;(function(e){e.filterSensitiveLog=t=>({...t})})(j9=L.AssumeRoleWithSAMLRequest||(L.AssumeRoleWithSAMLRequest={}));var k9;(function(e){e.filterSensitiveLog=t=>({...t})})(k9=L.AssumeRoleWithSAMLResponse||(L.AssumeRoleWithSAMLResponse={}));var ma=class extends Rr.STSServiceException{constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,ma.prototype)}};L.IDPRejectedClaimException=ma;var pa=class extends Rr.STSServiceException{constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,pa.prototype)}};L.InvalidIdentityTokenException=pa;var F9;(function(e){e.filterSensitiveLog=t=>({...t})})(F9=L.AssumeRoleWithWebIdentityRequest||(L.AssumeRoleWithWebIdentityRequest={}));var U9;(function(e){e.filterSensitiveLog=t=>({...t})})(U9=L.AssumeRoleWithWebIdentityResponse||(L.AssumeRoleWithWebIdentityResponse={}));var ha=class extends Rr.STSServiceException{constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,ha.prototype)}};L.IDPCommunicationErrorException=ha;var B9;(function(e){e.filterSensitiveLog=t=>({...t})})(B9=L.DecodeAuthorizationMessageRequest||(L.DecodeAuthorizationMessageRequest={}));var G9;(function(e){e.filterSensitiveLog=t=>({...t})})(G9=L.DecodeAuthorizationMessageResponse||(L.DecodeAuthorizationMessageResponse={}));var _a=class extends Rr.STSServiceException{constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,_a.prototype)}};L.InvalidAuthorizationMessageException=_a;var $9;(function(e){e.filterSensitiveLog=t=>({...t})})($9=L.GetAccessKeyInfoRequest||(L.GetAccessKeyInfoRequest={}));var V9;(function(e){e.filterSensitiveLog=t=>({...t})})(V9=L.GetAccessKeyInfoResponse||(L.GetAccessKeyInfoResponse={}));var K9;(function(e){e.filterSensitiveLog=t=>({...t})})(K9=L.GetCallerIdentityRequest||(L.GetCallerIdentityRequest={}));var W9;(function(e){e.filterSensitiveLog=t=>({...t})})(W9=L.GetCallerIdentityResponse||(L.GetCallerIdentityResponse={}));var H9;(function(e){e.filterSensitiveLog=t=>({...t})})(H9=L.GetFederationTokenRequest||(L.GetFederationTokenRequest={}));var Y9;(function(e){e.filterSensitiveLog=t=>({...t})})(Y9=L.FederatedUser||(L.FederatedUser={}));var J9;(function(e){e.filterSensitiveLog=t=>({...t})})(J9=L.GetFederationTokenResponse||(L.GetFederationTokenResponse={}));var Q9;(function(e){e.filterSensitiveLog=t=>({...t})})(Q9=L.GetSessionTokenRequest||(L.GetSessionTokenRequest={}));var X9;(function(e){e.filterSensitiveLog=t=>({...t})})(X9=L.GetSessionTokenResponse||(L.GetSessionTokenResponse={}))});var Kv=f((tSe,Z9)=>{Z9.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 n1=f((nSe,e7)=>{e7.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 Wv=f((rSe,t7)=>{t7.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var r1=f((iSe,n7)=>{n7.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 s1=f(ya=>{"use strict";var r7=ya&&ya.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ya,"__esModule",{value:!0});var i1=r7(r1()),i7=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 s7(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in i1.default&&(e=i1.default[e]),i7(e))}ya.default=s7});var Yv=f(Tn=>{"use strict";var Gd=Tn&&Tn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.decodeHTML=Tn.decodeHTMLStrict=Tn.decodeXML=void 0;var Hv=Gd(Kv()),o7=Gd(n1()),a7=Gd(Wv()),o1=Gd(s1()),c7=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Tn.decodeXML=c1(a7.default);Tn.decodeHTMLStrict=c1(Hv.default);function c1(e){var t=l1(e);return function(n){return String(n).replace(c7,t)}}var a1=function(e,t){return e<t?1:-1};Tn.decodeHTML=function(){for(var e=Object.keys(o7.default).sort(a1),t=Object.keys(Hv.default).sort(a1),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var i=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=l1(Hv.default);function o(a){return a.substr(-1)!==";"&&(a+=";"),s(a)}return function(a){return String(a).replace(i,o)}}();function l1(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?o1.default(parseInt(n.substr(3),16)):o1.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}});var Qv=f(bt=>{"use strict";var u1=bt&&bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bt,"__esModule",{value:!0});bt.escapeUTF8=bt.escape=bt.encodeNonAsciiHTML=bt.encodeHTML=bt.encodeXML=void 0;var l7=u1(Wv()),d1=m1(l7.default),f1=p1(d1);bt.encodeXML=y1(d1);var u7=u1(Kv()),Jv=m1(u7.default),d7=p1(Jv);bt.encodeHTML=m7(Jv,d7);bt.encodeNonAsciiHTML=y1(Jv);function m1(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function p1(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var s=i[r];s.length===1?t.push("\\"+s):n.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 n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var h1=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,f7=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function $d(e){return"&#x"+(e.length>1?f7(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function m7(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(h1,$d)}}var _1=new RegExp(f1.source+"|"+h1.source,"g");function p7(e){return e.replace(_1,$d)}bt.escape=p7;function h7(e){return e.replace(f1,$d)}bt.escapeUTF8=h7;function y1(e){return function(t){return t.replace(_1,function(n){return e[n]||$d(n)})}}});var v1=f(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.decodeXMLStrict=ue.decodeHTML5Strict=ue.decodeHTML4Strict=ue.decodeHTML5=ue.decodeHTML4=ue.decodeHTMLStrict=ue.decodeHTML=ue.decodeXML=ue.encodeHTML5=ue.encodeHTML4=ue.escapeUTF8=ue.escape=ue.encodeNonAsciiHTML=ue.encodeHTML=ue.encodeXML=ue.encode=ue.decodeStrict=ue.decode=void 0;var Vd=Yv(),g1=Qv();function _7(e,t){return(!t||t<=0?Vd.decodeXML:Vd.decodeHTML)(e)}ue.decode=_7;function y7(e,t){return(!t||t<=0?Vd.decodeXML:Vd.decodeHTMLStrict)(e)}ue.decodeStrict=y7;function g7(e,t){return(!t||t<=0?g1.encodeXML:g1.encodeHTML)(e)}ue.encode=g7;var hi=Qv();Object.defineProperty(ue,"encodeXML",{enumerable:!0,get:function(){return hi.encodeXML}});Object.defineProperty(ue,"encodeHTML",{enumerable:!0,get:function(){return hi.encodeHTML}});Object.defineProperty(ue,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return hi.encodeNonAsciiHTML}});Object.defineProperty(ue,"escape",{enumerable:!0,get:function(){return hi.escape}});Object.defineProperty(ue,"escapeUTF8",{enumerable:!0,get:function(){return hi.escapeUTF8}});Object.defineProperty(ue,"encodeHTML4",{enumerable:!0,get:function(){return hi.encodeHTML}});Object.defineProperty(ue,"encodeHTML5",{enumerable:!0,get:function(){return hi.encodeHTML}});var Dr=Yv();Object.defineProperty(ue,"decodeXML",{enumerable:!0,get:function(){return Dr.decodeXML}});Object.defineProperty(ue,"decodeHTML",{enumerable:!0,get:function(){return Dr.decodeHTML}});Object.defineProperty(ue,"decodeHTMLStrict",{enumerable:!0,get:function(){return Dr.decodeHTMLStrict}});Object.defineProperty(ue,"decodeHTML4",{enumerable:!0,get:function(){return Dr.decodeHTML}});Object.defineProperty(ue,"decodeHTML5",{enumerable:!0,get:function(){return Dr.decodeHTML}});Object.defineProperty(ue,"decodeHTML4Strict",{enumerable:!0,get:function(){return Dr.decodeHTMLStrict}});Object.defineProperty(ue,"decodeHTML5Strict",{enumerable:!0,get:function(){return Dr.decodeHTMLStrict}});Object.defineProperty(ue,"decodeXMLStrict",{enumerable:!0,get:function(){return Dr.decodeXML}})});var Cn=f(nn=>{"use strict";var S1=":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",v7=S1+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w1="["+S1+"]["+v7+"]*",S7=new RegExp("^"+w1+"$"),w7=function(e,t){let n=[],r=t.exec(e);for(;r;){let i=[],s=r.length;for(let o=0;o<s;o++)i.push(r[o]);n.push(i),r=t.exec(e)}return n},b7=function(e){let t=S7.exec(e);return!(t===null||typeof t>"u")};nn.isExist=function(e){return typeof e<"u"};nn.isEmptyObject=function(e){return Object.keys(e).length===0};nn.merge=function(e,t,n){if(t){let r=Object.keys(t),i=r.length;for(let s=0;s<i;s++)n==="strict"?e[r[s]]=[t[r[s]]]:e[r[s]]=t[r[s]]}};nn.getValue=function(e){return nn.isExist(e)?e:""};nn.buildOptions=function(e,t,n){var r={};if(!e)return t;for(let i=0;i<n.length;i++)e[n[i]]!==void 0?r[n[i]]=e[n[i]]:r[n[i]]=t[n[i]];return r};nn.isTagNameInArrayMode=function(e,t,n){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,n):t==="strict"};nn.isName=b7;nn.getAllMatches=w7;nn.nameRegexp=w1});var E1=f(b1=>{"use strict";var _i=Cn(),Xv=function(e,t,n){let r={};if((!e.child||_i.isEmptyObject(e.child))&&(!e.attrsMap||_i.isEmptyObject(e.attrsMap)))return _i.isExist(e.val)?e.val:"";if(_i.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=_i.isTagNameInArrayMode(e.tagname,t.arrayMode,n);r[t.textNodeName]=s?[e.val]:e.val}_i.merge(r,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){r[o]=[];for(let a in e.child[o])e.child[o].hasOwnProperty(a)&&r[o].push(Xv(e.child[o][a],t,o))}else{let a=Xv(e.child[o][0],t,o),c=t.arrayMode===!0&&typeof a=="object"||_i.isTagNameInArrayMode(o,t.arrayMode,n);r[o]=c?[a]:a}}return r};b1.convertToJson=Xv});var T1=f((dSe,A1)=>{"use strict";A1.exports=function(e,t,n){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=n,this.addChild=function(r){Array.isArray(this.child[r.tagname])?this.child[r.tagname].push(r):this.child[r.tagname]=[r]}}});var va=f(Hd=>{"use strict";var yi=Cn(),E7=Cn().buildOptions,Kd=T1(),fSe="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,yi.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var x1={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:[]};Hd.defaultOptions=x1;var I1=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];Hd.props=I1;function Wd(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=n.tagValueProcessor(t,e),t=R1(t,n.parseNodeValue,n.parseTrueNumberOnly)),t}function A7(e,t){if(t.ignoreNameSpace){let n=e.split(":"),r=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=r+n[1])}return e}function R1(e,t,n){if(t&&typeof e=="string"){let r;return e.trim()===""||isNaN(e)?r=e==="true"?!0:e==="false"?!1:e:(e.indexOf("0x")!==-1?r=Number.parseInt(e,16):e.indexOf(".")!==-1?(r=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):r=Number.parseInt(e,10),n&&(r=String(r)===e?r:e)),r}else return yi.isExist(e)?e:""}var T7=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function C1(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let n=yi.getAllMatches(e,T7),r=n.length,i={};for(let s=0;s<r;s++){let o=A7(n[s][1],t);o.length&&(n[s][4]!==void 0?(t.trimValues&&(n[s][4]=n[s][4].trim()),n[s][4]=t.attrValueProcessor(n[s][4],o),i[t.attributeNamePrefix+o]=R1(n[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 C7=function(e,t){e=e.replace(/\r\n?/g,`
|
|
22
|
+
`),t=E7(t,x1,I1);let n=new Kd("!xml"),r=n,i="";for(let s=0;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="/"){let a=ga(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))}r&&(r.val?r.val=yi.getValue(r.val)+""+Wd(c,i,t):r.val=Wd(c,i,t)),t.stopNodes.length&&t.stopNodes.includes(r.tagname)&&(r.child=[],r.attrsMap==null&&(r.attrsMap={}),r.val=e.substr(r.startIndex+1,s-r.startIndex-1)),r=r.parent,i="",s=a}else if(e[s+1]==="?")s=ga(e,"?>",s,"Pi Tag is not closed.");else if(e.substr(s+1,3)==="!--")s=ga(e,"-->",s,"Comment is not closed.");else if(e.substr(s+1,2)==="!D"){let a=ga(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=ga(e,"]]>",s,"CDATA is not closed.")-2,c=e.substring(s+9,a);if(i&&(r.val=yi.getValue(r.val)+""+Wd(r.tagname,i,t),i=""),t.cdataTagName){let u=new Kd(t.cdataTagName,r,c);r.addChild(u),r.val=yi.getValue(r.val)+t.cdataPositionChar,c&&(u.val=c)}else r.val=(r.val||"")+(c||"");s=a+2}else{let a=x7(e,s+1),c=a.data,u=a.index,d=c.indexOf(" "),h=c,m=!0;if(d!==-1&&(h=c.substr(0,d).replace(/\s\s*$/,""),c=c.substr(d+1)),t.ignoreNameSpace){let y=h.indexOf(":");y!==-1&&(h=h.substr(y+1),m=h!==a.data.substr(y+1))}if(r&&i&&r.tagname!=="!xml"&&(r.val=yi.getValue(r.val)+""+Wd(r.tagname,i,t)),c.length>0&&c.lastIndexOf("/")===c.length-1){h[h.length-1]==="/"?(h=h.substr(0,h.length-1),c=h):c=c.substr(0,c.length-1);let y=new Kd(h,r,"");h!==c&&(y.attrsMap=C1(c,t)),r.addChild(y)}else{let y=new Kd(h,r);t.stopNodes.length&&t.stopNodes.includes(y.tagname)&&(y.startIndex=u),h!==c&&m&&(y.attrsMap=C1(c,t)),r.addChild(y),r=y}i="",s=u}else i+=e[s];return n};function x7(e,t){let n,r="";for(let i=t;i<e.length;i++){let s=e[i];if(n)s===n&&(n="");else if(s==='"'||s==="'")n=s;else{if(s===">")return{data:r,index:i};s===" "&&(s=" ")}r+=s}}function ga(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw new Error(r);return i+t.length-1}Hd.getTraversalObj=C7});var L1=f(O1=>{"use strict";var Jd=Cn(),I7={allowBooleanAttributes:!1},R7=["allowBooleanAttributes"];O1.validate=function(e,t){t=Jd.buildOptions(t,I7,R7);let n=[],r=!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=D1(e,s),s.err)return s}else if(e[s]==="<")if(s++,e[s]==="!"){s=N1(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--),!z7(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.",st("InvalidTag",d,rn(e,s))}let c=P7(e,s);if(c===!1)return st("InvalidAttr","Attributes for '"+a+"' have open quote.",rn(e,s));let u=c.value;if(s=c.index,u[u.length-1]==="/"){u=u.substring(0,u.length-1);let d=P1(u,t);if(d===!0)r=!0;else return st(d.err.code,d.err.msg,rn(e,s-u.length+d.err.line))}else if(o)if(c.tagClosed){if(u.trim().length>0)return st("InvalidTag","Closing tag '"+a+"' can't have attributes or invalid starting.",rn(e,s));{let d=n.pop();if(a!==d)return st("InvalidTag","Closing tag '"+d+"' is expected inplace of '"+a+"'.",rn(e,s));n.length==0&&(i=!0)}}else return st("InvalidTag","Closing tag '"+a+"' doesn't have proper closing.",rn(e,s));else{let d=P1(u,t);if(d!==!0)return st(d.err.code,d.err.msg,rn(e,s-u.length+d.err.line));if(i===!0)return st("InvalidXml","Multiple possible root nodes found.",rn(e,s));n.push(a),r=!0}for(s++;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="!"){s++,s=N1(e,s);continue}else if(e[s+1]==="?"){if(s=D1(e,++s),s.err)return s}else break;else if(e[s]==="&"){let d=q7(e,s);if(d==-1)return st("InvalidChar","char '&' is not expected.",rn(e,s));s=d}e[s]==="<"&&s--}else{if(e[s]===" "||e[s]===" "||e[s]===`
|
|
24
|
+
`||e[s]==="\r")continue;return st("InvalidChar","char '"+e[s]+"' is not expected.",rn(e,s))}if(r){if(n.length>0)return st("InvalidXml","Invalid '"+JSON.stringify(n,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return st("InvalidXml","Start tag expected.",1);return!0};function D1(e,t){for(var n=t;t<e.length;t++)if(e[t]=="?"||e[t]==" "){var r=e.substr(n,t-n);if(t>5&&r==="xml")return st("InvalidXml","XML declaration allowed only at the start of the document.",rn(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function N1(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 n=1;for(t+=8;t<e.length;t++)if(e[t]==="<")n++;else if(e[t]===">"&&(n--,n===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 D7='"',N7="'";function P7(e,t){let n="",r="",i=!1;for(;t<e.length;t++){if(e[t]===D7||e[t]===N7)if(r==="")r=e[t];else{if(r!==e[t])continue;r=""}else if(e[t]===">"&&r===""){i=!0;break}n+=e[t]}return r!==""?!1:{value:n,index:t,tagClosed:i}}var O7=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function P1(e,t){let n=Jd.getAllMatches(e,O7),r={};for(let i=0;i<n.length;i++){if(n[i][1].length===0)return st("InvalidAttr","Attribute '"+n[i][2]+"' has no space in starting.",Yd(e,n[i][0]));if(n[i][3]===void 0&&!t.allowBooleanAttributes)return st("InvalidAttr","boolean attribute '"+n[i][2]+"' is not allowed.",Yd(e,n[i][0]));let s=n[i][2];if(!M7(s))return st("InvalidAttr","Attribute '"+s+"' is an invalid name.",Yd(e,n[i][0]));if(!r.hasOwnProperty(s))r[s]=1;else return st("InvalidAttr","Attribute '"+s+"' is repeated.",Yd(e,n[i][0]))}return!0}function L7(e,t){let n=/\d/;for(e[t]==="x"&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(n))break}return-1}function q7(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,L7(e,t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(e[t]===";")break;return-1}return t}function st(e,t,n){return{err:{code:e,msg:t,line:n}}}function M7(e){return Jd.isName(e)}function z7(e){return Jd.isName(e)}function rn(e,t){var n=e.substring(0,t).split(/\r?\n/);return n.length}function Yd(e,t){return e.indexOf(t)+t.length}});var j1=f(z1=>{"use strict";var xn=function(e){return String.fromCharCode(e)},Ve={nilChar:xn(176),missingChar:xn(201),nilPremitive:xn(175),missingPremitive:xn(200),emptyChar:xn(178),emptyValue:xn(177),boundryChar:xn(179),objStart:xn(198),arrStart:xn(204),arrayEnd:xn(185)},j7=[Ve.nilChar,Ve.nilPremitive,Ve.missingChar,Ve.missingPremitive,Ve.boundryChar,Ve.emptyChar,Ve.emptyValue,Ve.arrayEnd,Ve.objStart,Ve.arrStart],Sa=function(e,t,n){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?Zv(e[0].val,t):Zv(e,t);{let r=k7(e);if(r===!0){let i="";if(Array.isArray(t)){i+=Ve.arrStart;let s=t[0],o=e.length;if(typeof s=="string")for(let a=0;a<o;a++){let c=Zv(e[a].val,s);i=eS(i,c)}else for(let a=0;a<o;a++){let c=Sa(e[a],s,n);i=eS(i,c)}i+=Ve.arrayEnd}else{i+=Ve.objStart;let s=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let o in s){let a=s[o],c;!n.ignoreAttributes&&e.attrsMap&&e.attrsMap[a]?c=Sa(e.attrsMap[a],t[a],n):a===n.textNodeName?c=Sa(e.val,t[a],n):c=Sa(e.child[a],t[a],n),i=eS(i,c)}}return i}else return r}},Zv=function(e){switch(e){case void 0:return Ve.missingPremitive;case null:return Ve.nilPremitive;case"":return Ve.emptyValue;default:return e}},eS=function(e,t){return!q1(t[0])&&!q1(e[e.length-1])&&(e+=Ve.boundryChar),e+t},q1=function(e){return j7.indexOf(e)!==-1};function k7(e){return e===void 0?Ve.missingChar:e===null?Ve.nilChar:e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)?Ve.emptyChar:!0}var M1=va(),F7=Cn().buildOptions,U7=function(e,t,n){return n=F7(n,M1.defaultOptions,M1.props),Sa(e,t,n)};z1.convert2nimn=U7});var U1=f(F1=>{"use strict";var Qd=Cn(),B7=Cn().buildOptions,k1=va(),G7=function(e,t){return t=B7(t,k1.defaultOptions,k1.props),t.indentBy=t.indentBy||"",tS(e,t,0)},tS=function(e,t,n){let r="{",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){r+='"'+s+'" : [ ';for(var o in e.child[s])r+=tS(e.child[s][o],t)+" , ";r=r.substr(0,r.length-1)+" ] "}else r+='"'+s+'" : '+tS(e.child[s][0],t)+" ,"}return Qd.merge(r,e.attrsMap),Qd.isEmptyObject(r)?Qd.isExist(e.val)?e.val:"":(Qd.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(r+='"'+t.textNodeName+'" : '+$7(e.val))),r[r.length-1]===","&&(r=r.substr(0,r.length-2)),r+"}")};function $7(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}F1.convertToJsonString=G7});var V1=f((ySe,$1)=>{"use strict";var V7=Cn().buildOptions,K7={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}},W7=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function nS(e){this.options=V7(e,K7,W7),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Z7),this.options.cdataTagName?this.isCDATA=eQ:this.isCDATA=function(){return!1},this.replaceCDATAstr=H7,this.replaceCDATAarr=Y7,this.options.format?(this.indentate=X7,this.tagEndChar=`>
|
|
25
25
|
`,this.newLine=`
|
|
26
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=bre,this.buildObjNode=Ere):(this.buildTextNode=sD,this.buildObjNode=iD),this.buildTextValNode=sD,this.buildObjectNode=iD}D0.prototype.parse=function(e){return this.j2x(e,0).val};D0.prototype.j2x=function(e,t){let r="",n="",i=Object.keys(e),s=i.length;for(let a=0;a<s;a++){let c=i[a];if(!(typeof e[c]>"u"))if(e[c]===null)n+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(e[c]instanceof Date)n+=this.buildTextNode(e[c],c,"",t);else if(typeof e[c]!="object"){let l=this.isAttribute(c);l?r+=" "+l+'="'+this.options.attrValueProcessor(""+e[c])+'"':this.isCDATA(c)?e[this.options.textNodeName]?n+=this.replaceCDATAstr(e[this.options.textNodeName],e[c]):n+=this.replaceCDATAstr("",e[c]):c===this.options.textNodeName?e[this.options.cdataTagName]||(n+=this.options.tagValueProcessor(""+e[c])):n+=this.buildTextNode(e[c],c,"",t)}else if(Array.isArray(e[c]))if(this.isCDATA(c))n+=this.indentate(t),e[this.options.textNodeName]?n+=this.replaceCDATAarr(e[this.options.textNodeName],e[c]):n+=this.replaceCDATAarr("",e[c]);else{let l=e[c].length;for(let u=0;u<l;u++){let f=e[c][u];if(!(typeof f>"u"))if(f===null)n+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(typeof f=="object"){let h=this.j2x(f,t+1);n+=this.buildObjNode(h.val,c,h.attrStr,t)}else n+=this.buildTextNode(f,c,"",t)}}else if(this.options.attrNodeName&&c===this.options.attrNodeName){let l=Object.keys(e[c]),u=l.length;for(let f=0;f<u;f++)r+=" "+l[f]+'="'+this.options.attrValueProcessor(""+e[c][l[f]])+'"'}else{let l=this.j2x(e[c],t+1);n+=this.buildObjNode(l.val,c,l.attrStr,t)}}return{attrStr:r,val:n}};function Sre(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 wre(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 iD(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 Ere(e,t,r,n){return e!==""?this.buildObjectNode(e,t,r,n):this.indentate(n)+"<"+t+r+"/"+this.tagEndChar}function sD(e,t,r,n){return this.indentate(n)+"<"+t+r+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function bre(e,t,r,n){return e!==""?this.buildTextValNode(e,t,r,n):this.indentate(n)+"<"+t+r+"/"+this.tagEndChar}function Are(e){return this.options.indentBy.repeat(e)}function Tre(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function Cre(e){return e===this.options.cdataTagName}oD.exports=D0});var fD=m(fr=>{"use strict";var lD=kP(),dD=dc(),cD=dc(),xre=Or().buildOptions,uD=YP();fr.parse=function(e,t,r){if(r){r===!0&&(r={});let i=uD.validate(e,r);if(i!==!0)throw Error(i.err.msg)}t=xre(t,cD.defaultOptions,cD.props);let n=dD.getTraversalObj(e,t);return lD.convertToJson(n,t)};fr.convertTonimn=eD().convert2nimn;fr.getTraversalObj=dD.getTraversalObj;fr.convertToJson=lD.convertToJson;fr.convertToJsonString=nD().convertToJsonString;fr.validate=uD.validate;fr.j2xParser=aD();fr.parseToNimn=function(e,t,r){return fr.convertTonimn(fr.getTraversalObj(e,r),t,r)}});var vn=m(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.deserializeAws_queryGetSessionTokenCommand=ye.deserializeAws_queryGetFederationTokenCommand=ye.deserializeAws_queryGetCallerIdentityCommand=ye.deserializeAws_queryGetAccessKeyInfoCommand=ye.deserializeAws_queryDecodeAuthorizationMessageCommand=ye.deserializeAws_queryAssumeRoleWithWebIdentityCommand=ye.deserializeAws_queryAssumeRoleWithSAMLCommand=ye.deserializeAws_queryAssumeRoleCommand=ye.serializeAws_queryGetSessionTokenCommand=ye.serializeAws_queryGetFederationTokenCommand=ye.serializeAws_queryGetCallerIdentityCommand=ye.serializeAws_queryGetAccessKeyInfoCommand=ye.serializeAws_queryDecodeAuthorizationMessageCommand=ye.serializeAws_queryAssumeRoleWithWebIdentityCommand=ye.serializeAws_queryAssumeRoleWithSAMLCommand=ye.serializeAws_queryAssumeRoleCommand=void 0;var Ire=It(),H=D(),Rre=qP(),Nre=fD(),ri=lr(),ni=rm(),Pre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si(y(o({},nne(e,t)),{Action:"AssumeRole",Version:"2011-06-15"})),ii(t,r,"/",void 0,n)};ye.serializeAws_queryAssumeRoleCommand=Pre;var Dre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si(y(o({},ine(e,t)),{Action:"AssumeRoleWithSAML",Version:"2011-06-15"})),ii(t,r,"/",void 0,n)};ye.serializeAws_queryAssumeRoleWithSAMLCommand=Dre;var Ore=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si(y(o({},sne(e,t)),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"})),ii(t,r,"/",void 0,n)};ye.serializeAws_queryAssumeRoleWithWebIdentityCommand=Ore;var Lre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si(y(o({},one(e,t)),{Action:"DecodeAuthorizationMessage",Version:"2011-06-15"})),ii(t,r,"/",void 0,n)};ye.serializeAws_queryDecodeAuthorizationMessageCommand=Lre;var qre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si(y(o({},ane(e,t)),{Action:"GetAccessKeyInfo",Version:"2011-06-15"})),ii(t,r,"/",void 0,n)};ye.serializeAws_queryGetAccessKeyInfoCommand=qre;var Mre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si(y(o({},cne(e,t)),{Action:"GetCallerIdentity",Version:"2011-06-15"})),ii(t,r,"/",void 0,n)};ye.serializeAws_queryGetCallerIdentityCommand=Mre;var zre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si(y(o({},lne(e,t)),{Action:"GetFederationToken",Version:"2011-06-15"})),ii(t,r,"/",void 0,n)};ye.serializeAws_queryGetFederationTokenCommand=zre;var jre=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si(y(o({},dne(e,t)),{Action:"GetSessionToken",Version:"2011-06-15"})),ii(t,r,"/",void 0,n)};ye.serializeAws_queryGetSessionTokenCommand=jre;var kre=async(e,t)=>{if(e.statusCode>=300)return Fre(e,t);let r=await yt(e.body,t),n={};n=pne(r.AssumeRoleResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryAssumeRoleCommand=kre;var Fre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=oi(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await O0(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await fm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await mm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await fc(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Ure=async(e,t)=>{if(e.statusCode>=300)return Bre(e,t);let r=await yt(e.body,t),n={};n=_ne(r.AssumeRoleWithSAMLResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryAssumeRoleWithSAMLCommand=Ure;var Bre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=oi(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await O0(r,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await mD(r,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await pD(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await fm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await mm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await fc(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Gre=async(e,t)=>{if(e.statusCode>=300)return $re(e,t);let r=await yt(e.body,t),n={};n=hne(r.AssumeRoleWithWebIdentityResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryAssumeRoleWithWebIdentityCommand=Gre;var $re=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=oi(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await O0(r,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await tne(r,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await mD(r,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await pD(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await fm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await mm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await fc(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Vre=async(e,t)=>{if(e.statusCode>=300)return Kre(e,t);let r=await yt(e.body,t),n={};n=yne(r.DecodeAuthorizationMessageResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryDecodeAuthorizationMessageCommand=Vre;var Kre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=oi(e,r.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await rne(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Hre=async(e,t)=>{if(e.statusCode>=300)return Wre(e,t);let r=await yt(e.body,t),n={};n=Sne(r.GetAccessKeyInfoResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryGetAccessKeyInfoCommand=Hre;var Wre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=oi(e,r.body),i){default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Jre=async(e,t)=>{if(e.statusCode>=300)return Yre(e,t);let r=await yt(e.body,t),n={};n=wne(r.GetCallerIdentityResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryGetCallerIdentityCommand=Jre;var Yre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=oi(e,r.body),i){default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Qre=async(e,t)=>{if(e.statusCode>=300)return Xre(e,t);let r=await yt(e.body,t),n={};n=Ene(r.GetFederationTokenResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryGetFederationTokenCommand=Qre;var Xre=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=oi(e,r.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await fm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await mm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await fc(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},Zre=async(e,t)=>{if(e.statusCode>=300)return ene(e,t);let r=await yt(e.body,t),n={};n=bne(r.GetSessionTokenResult,t);let i=o({$metadata:je(e)},n);return Promise.resolve(i)};ye.deserializeAws_queryGetSessionTokenCommand=Zre;var ene=async(e,t)=>{let r=y(o({},e),{body:await yt(e.body,t)}),n,i="UnknownError";switch(i=oi(e,r.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await fc(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:je(e)}),(0,H.decorateServiceException)(n,s.Error)}},O0=async(e,t)=>{let r=e.body,n=gne(r.Error,t),i=new ri.ExpiredTokenException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},tne=async(e,t)=>{let r=e.body,n=Ane(r.Error,t),i=new ri.IDPCommunicationErrorException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},mD=async(e,t)=>{let r=e.body,n=Tne(r.Error,t),i=new ri.IDPRejectedClaimException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},rne=async(e,t)=>{let r=e.body,n=Cne(r.Error,t),i=new ri.InvalidAuthorizationMessageException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},pD=async(e,t)=>{let r=e.body,n=xne(r.Error,t),i=new ri.InvalidIdentityTokenException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},fm=async(e,t)=>{let r=e.body,n=Ine(r.Error,t),i=new ri.MalformedPolicyDocumentException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},mm=async(e,t)=>{let r=e.body,n=Rne(r.Error,t),i=new ri.PackedPolicyTooLargeException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},fc=async(e,t)=>{let r=e.body,n=Nne(r.Error,t),i=new ri.RegionDisabledException(o({$metadata:je(e)},n));return(0,H.decorateServiceException)(i,r)},nne=(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=pm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let a=`PolicyArns.${i}`;r[a]=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=_D(e.Tags,t);Object.entries(n).forEach(([i,s])=>{let a=`Tags.${i}`;r[a]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let n=mne(e.TransitiveTagKeys,t);Object.entries(n).forEach(([i,s])=>{let a=`TransitiveTagKeys.${i}`;r[a]=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},ine=(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=pm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let a=`PolicyArns.${i}`;r[a]=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},sne=(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=pm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let a=`PolicyArns.${i}`;r[a]=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},one=(e,t)=>{let r={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(r.EncodedMessage=e.EncodedMessage),r},ane=(e,t)=>{let r={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(r.AccessKeyId=e.AccessKeyId),r},cne=(e,t)=>({}),lne=(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=pm(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let a=`PolicyArns.${i}`;r[a]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let n=_D(e.Tags,t);Object.entries(n).forEach(([i,s])=>{let a=`Tags.${i}`;r[a]=s})}return r},dne=(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},pm=(e,t)=>{let r={},n=1;for(let i of e){if(i===null)continue;let s=une(i,t);Object.entries(s).forEach(([a,c])=>{r[`member.${n}.${a}`]=c}),n++}return r},une=(e,t)=>{let r={};return e.arn!==void 0&&e.arn!==null&&(r.arn=e.arn),r},fne=(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},mne=(e,t)=>{let r={},n=1;for(let i of e)i!==null&&(r[`member.${n}`]=i,n++);return r},_D=(e,t)=>{let r={},n=1;for(let i of e){if(i===null)continue;let s=fne(i,t);Object.entries(s).forEach(([a,c])=>{r[`member.${n}.${a}`]=c}),n++}return r},L0=(e,t)=>{let r={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(r.AssumedRoleId=(0,H.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(r.Arn=(0,H.expectString)(e.Arn)),r},pne=(e,t)=>{let r={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(r.Credentials=mc(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=L0(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,H.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,H.expectString)(e.SourceIdentity)),r},_ne=(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=mc(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=L0(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,H.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(r.Subject=(0,H.expectString)(e.Subject)),e.SubjectType!==void 0&&(r.SubjectType=(0,H.expectString)(e.SubjectType)),e.Issuer!==void 0&&(r.Issuer=(0,H.expectString)(e.Issuer)),e.Audience!==void 0&&(r.Audience=(0,H.expectString)(e.Audience)),e.NameQualifier!==void 0&&(r.NameQualifier=(0,H.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,H.expectString)(e.SourceIdentity)),r},hne=(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=mc(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(r.SubjectFromWebIdentityToken=(0,H.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=L0(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,H.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(r.Provider=(0,H.expectString)(e.Provider)),e.Audience!==void 0&&(r.Audience=(0,H.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,H.expectString)(e.SourceIdentity)),r},mc=(e,t)=>{let r={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(r.AccessKeyId=(0,H.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(r.SecretAccessKey=(0,H.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(r.SessionToken=(0,H.expectString)(e.SessionToken)),e.Expiration!==void 0&&(r.Expiration=(0,H.expectNonNull)((0,H.parseRfc3339DateTime)(e.Expiration))),r},yne=(e,t)=>{let r={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(r.DecodedMessage=(0,H.expectString)(e.DecodedMessage)),r},gne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},vne=(e,t)=>{let r={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(r.FederatedUserId=(0,H.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(r.Arn=(0,H.expectString)(e.Arn)),r},Sne=(e,t)=>{let r={Account:void 0};return e.Account!==void 0&&(r.Account=(0,H.expectString)(e.Account)),r},wne=(e,t)=>{let r={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(r.UserId=(0,H.expectString)(e.UserId)),e.Account!==void 0&&(r.Account=(0,H.expectString)(e.Account)),e.Arn!==void 0&&(r.Arn=(0,H.expectString)(e.Arn)),r},Ene=(e,t)=>{let r={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(r.Credentials=mc(e.Credentials,t)),e.FederatedUser!==void 0&&(r.FederatedUser=vne(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,H.strictParseInt32)(e.PackedPolicySize)),r},bne=(e,t)=>{let r={Credentials:void 0};return e.Credentials!==void 0&&(r.Credentials=mc(e.Credentials,t)),r},Ane=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},Tne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},Cne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},xne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},Ine=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},Rne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},Nne=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,H.expectString)(e.message)),r},je=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"]}},Pne=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Dne=(e,t)=>Pne(e,t).then(r=>t.utf8Encoder(r)),ii=async(e,t,r,n,i)=>{let{hostname:s,protocol:a="https",port:c,path:l}=await e.endpoint(),u={protocol:a,hostname:s,port:c,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:t};return n!==void 0&&(u.hostname=n),i!==void 0&&(u.body=i),new Ire.HttpRequest(u)},yt=(e,t)=>Dne(e,t).then(r=>{if(r.length){let n=(0,Nre.parse)(r,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:c=>c.trim()===""&&c.includes(`
|
|
27
|
-
`)?"":(0,Rre.decodeHTML)(c)}),i="#text",s=Object.keys(n)[0],a=n[s];return a[i]&&(a[s]=a[i],delete a[i]),(0,H.getValueFromTextNode)(a)}return{}}),si=e=>Object.entries(e).map(([t,r])=>(0,H.extendedEncodeURIComponent)(t)+"="+(0,H.extendedEncodeURIComponent)(r)).join("&"),oi=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var hm=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.AssumeRoleCommand=void 0;var One=G(),Lne=gn(),qne=D(),hD=lr(),yD=vn(),q0=class extends qne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,One.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lne.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:hD.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:hD.AssumeRoleResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,yD.serializeAws_queryAssumeRoleCommand)(t,r)}deserialize(t,r){return(0,yD.deserializeAws_queryAssumeRoleCommand)(t,r)}};_m.AssumeRoleCommand=q0});var z0=m(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.AssumeRoleWithSAMLCommand=void 0;var Mne=G(),zne=D(),gD=lr(),vD=vn(),M0=class extends zne.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,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:gD.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:gD.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,vD.serializeAws_queryAssumeRoleWithSAMLCommand)(t,r)}deserialize(t,r){return(0,vD.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,r)}};ym.AssumeRoleWithSAMLCommand=M0});var vm=m(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.AssumeRoleWithWebIdentityCommand=void 0;var jne=G(),kne=D(),SD=lr(),wD=vn(),j0=class extends kne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,jne.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:SD.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:SD.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,wD.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,r)}deserialize(t,r){return(0,wD.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,r)}};gm.AssumeRoleWithWebIdentityCommand=j0});var F0=m(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.DecodeAuthorizationMessageCommand=void 0;var Fne=G(),Une=gn(),Bne=D(),ED=lr(),bD=vn(),k0=class extends Bne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Fne.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Une.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:ED.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:ED.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,bD.serializeAws_queryDecodeAuthorizationMessageCommand)(t,r)}deserialize(t,r){return(0,bD.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,r)}};Sm.DecodeAuthorizationMessageCommand=k0});var B0=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.GetAccessKeyInfoCommand=void 0;var Gne=G(),$ne=gn(),Vne=D(),AD=lr(),TD=vn(),U0=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)),this.middlewareStack.use((0,$ne.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:AD.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:AD.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,TD.serializeAws_queryGetAccessKeyInfoCommand)(t,r)}deserialize(t,r){return(0,TD.deserializeAws_queryGetAccessKeyInfoCommand)(t,r)}};wm.GetAccessKeyInfoCommand=U0});var $0=m(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.GetCallerIdentityCommand=void 0;var Kne=G(),Hne=gn(),Wne=D(),CD=lr(),xD=vn(),G0=class extends Wne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Kne.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Hne.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:CD.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:CD.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,xD.serializeAws_queryGetCallerIdentityCommand)(t,r)}deserialize(t,r){return(0,xD.deserializeAws_queryGetCallerIdentityCommand)(t,r)}};Em.GetCallerIdentityCommand=G0});var K0=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.GetFederationTokenCommand=void 0;var Jne=G(),Yne=gn(),Qne=D(),ID=lr(),RD=vn(),V0=class extends Qne.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Jne.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Yne.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:ID.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:ID.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,RD.serializeAws_queryGetFederationTokenCommand)(t,r)}deserialize(t,r){return(0,RD.deserializeAws_queryGetFederationTokenCommand)(t,r)}};bm.GetFederationTokenCommand=V0});var W0=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.GetSessionTokenCommand=void 0;var Xne=G(),Zne=gn(),eie=D(),ND=lr(),PD=vn(),H0=class extends eie.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Xne.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Zne.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:ND.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:ND.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,PD.serializeAws_queryGetSessionTokenCommand)(t,r)}deserialize(t,r){return(0,PD.deserializeAws_queryGetSessionTokenCommand)(t,r)}};Am.GetSessionTokenCommand=H0});var DD=m(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.resolveStsAuthConfig=void 0;var tie=gn(),rie=(e,{stsClientCtor:t})=>(0,tie.resolveAwsAuthConfig)(y(o({},e),{stsClientCtor:t}));Tm.resolveStsAuthConfig=rie});var OD=m((eRe,nie)=>{nie.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.95.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.80.0","@aws-sdk/credential-provider-node":"3.95.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.80.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.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.85.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.85.0","@aws-sdk/util-defaults-mode-node":"3.85.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.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 J0=m(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.decorateDefaultCredentialProvider=qr.getDefaultRoleAssumerWithWebIdentity=qr.getDefaultRoleAssumer=void 0;var iie=hm(),sie=vm(),LD="us-east-1",qD=e=>typeof e!="function"?e===void 0?LD:e:async()=>{try{return await e()}catch{return LD}},oie=(e,t)=>{let r,n;return async(i,s)=>{if(n=i,!r){let{logger:c,region:l,requestHandler:u}=e;r=new t(o({logger:c,credentialDefaultProvider:()=>async()=>n,region:qD(l||e.region)},u?{requestHandler:u}:{}))}let{Credentials:a}=await r.send(new iie.AssumeRoleCommand(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};qr.getDefaultRoleAssumer=oie;var aie=(e,t)=>{let r;return async n=>{if(!r){let{logger:s,region:a,requestHandler:c}=e;r=new t(o({logger:s,region:qD(a||e.region)},c?{requestHandler:c}:{}))}let{Credentials:i}=await r.send(new sie.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}}};qr.getDefaultRoleAssumerWithWebIdentity=aie;var cie=e=>t=>e(o({roleAssumer:(0,qr.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,qr.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor)},t));qr.decorateDefaultCredentialProvider=cie});var MD=m(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.fromEnv=gt.ENV_EXPIRATION=gt.ENV_SESSION=gt.ENV_SECRET=gt.ENV_KEY=void 0;var lie=be();gt.ENV_KEY="AWS_ACCESS_KEY_ID";gt.ENV_SECRET="AWS_SECRET_ACCESS_KEY";gt.ENV_SESSION="AWS_SESSION_TOKEN";gt.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var die=()=>async()=>{let e=process.env[gt.ENV_KEY],t=process.env[gt.ENV_SECRET],r=process.env[gt.ENV_SESSION],n=process.env[gt.ENV_EXPIRATION];if(e&&t)return o(o({accessKeyId:e,secretAccessKey:t},r&&{sessionToken:r}),n&&{expiration:new Date(n)});throw new lie.CredentialsProviderError("Unable to find environment variable credentials.")};gt.fromEnv=die});var Q0=m(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});var uie=$();uie.__exportStar(MD(),Y0)});var pc=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.getHomeDir=void 0;var fie=require("os"),mie=require("path"),pie=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${mie.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,fie.homedir)())};Cm.getHomeDir=pie});var zD=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.getProfileName=Mr.DEFAULT_PROFILE=Mr.ENV_PROFILE=void 0;Mr.ENV_PROFILE="AWS_PROFILE";Mr.DEFAULT_PROFILE="default";var _ie=e=>e.profile||process.env[Mr.ENV_PROFILE]||Mr.DEFAULT_PROFILE;Mr.getProfileName=_ie});var X0=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.getSSOTokenFilepath=void 0;var hie=require("crypto"),yie=require("path"),gie=pc(),vie=e=>{let r=(0,hie.createHash)("sha1").update(e).digest("hex");return(0,yie.join)((0,gie.getHomeDir)(),".aws","sso","cache",`${r}.json`)};xm.getSSOTokenFilepath=vie});var jD=m(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.getSSOTokenFromFile=void 0;var Sie=require("fs"),wie=X0(),{readFile:Eie}=Sie.promises,bie=async e=>{let t=(0,wie.getSSOTokenFilepath)(e),r=await Eie(t,"utf8");return JSON.parse(r)};Im.getSSOTokenFromFile=bie});var kD=m(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.getConfigFilepath=Bi.ENV_CONFIG_PATH=void 0;var Aie=require("path"),Tie=pc();Bi.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var Cie=()=>process.env[Bi.ENV_CONFIG_PATH]||(0,Aie.join)((0,Tie.getHomeDir)(),".aws","config");Bi.getConfigFilepath=Cie});var FD=m(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.getCredentialsFilepath=Gi.ENV_CREDENTIALS_PATH=void 0;var xie=require("path"),Iie=pc();Gi.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var Rie=()=>process.env[Gi.ENV_CREDENTIALS_PATH]||(0,xie.join)((0,Iie.getHomeDir)(),".aws","credentials");Gi.getCredentialsFilepath=Rie});var BD=m(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.getProfileData=void 0;var UD=/^profile\s(["'])?([^\1]+)\1$/,Nie=e=>Object.entries(e).filter(([t])=>UD.test(t)).reduce((t,[r,n])=>y(o({},t),{[UD.exec(r)[2]]:n}),o({},e.default&&{default:e.default}));Rm.getProfileData=Nie});var GD=m(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.parseIni=void 0;var Pie=["__proto__","profile __proto__"],Die=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],Pie.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};Nm.parseIni=Die});var $D=m(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.slurpFile=void 0;var Oie=require("fs"),{readFile:Lie}=Oie.promises,Z0={},qie=e=>(Z0[e]||(Z0[e]=Lie(e,"utf8")),Z0[e]);Pm.slurpFile=qie});var eE=m(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.loadSharedConfigFiles=void 0;var Mie=kD(),zie=FD(),jie=BD(),VD=GD(),KD=$D(),HD=()=>({}),kie=async(e={})=>{let{filepath:t=(0,zie.getCredentialsFilepath)(),configFilepath:r=(0,Mie.getConfigFilepath)()}=e,n=await Promise.all([(0,KD.slurpFile)(r).then(VD.parseIni).then(jie.getProfileData).catch(HD),(0,KD.slurpFile)(t).then(VD.parseIni).catch(HD)]);return{configFile:n[0],credentialsFile:n[1]}};Dm.loadSharedConfigFiles=kie});var WD=m(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.parseKnownFiles=void 0;var Fie=eE(),Uie=async e=>{let t=await(0,Fie.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};Om.parseKnownFiles=Uie});var YD=m(JD=>{"use strict";Object.defineProperty(JD,"__esModule",{value:!0})});var _c=m(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});var $i=$();$i.__exportStar(pc(),Sn);$i.__exportStar(zD(),Sn);$i.__exportStar(X0(),Sn);$i.__exportStar(jD(),Sn);$i.__exportStar(eE(),Sn);$i.__exportStar(WD(),Sn);$i.__exportStar(YD(),Sn)});var qm=m(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});Lm.httpRequest=void 0;var tE=be(),Bie=require("buffer"),Gie=require("http");function $ie(e){return new Promise((t,r)=>{var n;let i=(0,Gie.request)(y(o({method:"GET"},e),{hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{r(Object.assign(new tE.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new tE.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:a=400}=s;(a<200||300<=a)&&(r(Object.assign(new tE.ProviderError("Error response received from instance metadata service"),{statusCode:a})),i.destroy());let c=[];s.on("data",l=>{c.push(l)}),s.on("end",()=>{t(Bie.Buffer.concat(c)),i.destroy()})}),i.end()})}Lm.httpRequest=$ie});var rE=m(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.fromImdsCredentials=Bs.isImdsCredentials=void 0;var Vie=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Bs.isImdsCredentials=Vie;var Kie=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Bs.fromImdsCredentials=Kie});var Mm=m(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 Hie=({maxRetries:e=zr.DEFAULT_MAX_RETRIES,timeout:t=zr.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});zr.providerConfigFromInit=Hie});var nE=m(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.retry=void 0;var Wie=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};zm.retry=Wie});var XD=m(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.fromContainerMetadata=rt.ENV_CMDS_AUTH_TOKEN=rt.ENV_CMDS_RELATIVE_URI=rt.ENV_CMDS_FULL_URI=void 0;var jm=be(),Jie=require("url"),Yie=qm(),QD=rE(),Qie=Mm(),Xie=nE();rt.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";rt.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";rt.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var Zie=(e={})=>{let{timeout:t,maxRetries:r}=(0,Qie.providerConfigFromInit)(e);return()=>(0,Xie.retry)(async()=>{let n=await ise(),i=JSON.parse(await ese(t,n));if(!(0,QD.isImdsCredentials)(i))throw new jm.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,QD.fromImdsCredentials)(i)},r)};rt.fromContainerMetadata=Zie;var ese=async(e,t)=>(process.env[rt.ENV_CMDS_AUTH_TOKEN]&&(t.headers=y(o({},t.headers),{Authorization:process.env[rt.ENV_CMDS_AUTH_TOKEN]})),(await(0,Yie.httpRequest)(y(o({},t),{timeout:e}))).toString()),tse="169.254.170.2",rse={localhost:!0,"127.0.0.1":!0},nse={"http:":!0,"https:":!0},ise=async()=>{if(process.env[rt.ENV_CMDS_RELATIVE_URI])return{hostname:tse,path:process.env[rt.ENV_CMDS_RELATIVE_URI]};if(process.env[rt.ENV_CMDS_FULL_URI]){let e=(0,Jie.parse)(process.env[rt.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in rse))throw new jm.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in nse))throw new jm.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return y(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new jm.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${rt.ENV_CMDS_RELATIVE_URI} or ${rt.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var ZD=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.fromEnv=void 0;var sse=be(),ose=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new sse.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};km.fromEnv=ose});var hc=m(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.getHomeDir=void 0;var ase=require("os"),cse=require("path"),lse=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${cse.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,ase.homedir)())};Fm.getHomeDir=lse});var eO=m(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.getProfileName=jr.DEFAULT_PROFILE=jr.ENV_PROFILE=void 0;jr.ENV_PROFILE="AWS_PROFILE";jr.DEFAULT_PROFILE="default";var dse=e=>e.profile||process.env[jr.ENV_PROFILE]||jr.DEFAULT_PROFILE;jr.getProfileName=dse});var iE=m(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.getSSOTokenFilepath=void 0;var use=require("crypto"),fse=require("path"),mse=hc(),pse=e=>{let r=(0,use.createHash)("sha1").update(e).digest("hex");return(0,fse.join)((0,mse.getHomeDir)(),".aws","sso","cache",`${r}.json`)};Um.getSSOTokenFilepath=pse});var tO=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.getSSOTokenFromFile=void 0;var _se=require("fs"),hse=iE(),{readFile:yse}=_se.promises,gse=async e=>{let t=(0,hse.getSSOTokenFilepath)(e),r=await yse(t,"utf8");return JSON.parse(r)};Bm.getSSOTokenFromFile=gse});var rO=m(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.getConfigFilepath=Vi.ENV_CONFIG_PATH=void 0;var vse=require("path"),Sse=hc();Vi.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var wse=()=>process.env[Vi.ENV_CONFIG_PATH]||(0,vse.join)((0,Sse.getHomeDir)(),".aws","config");Vi.getConfigFilepath=wse});var nO=m(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.getCredentialsFilepath=Ki.ENV_CREDENTIALS_PATH=void 0;var Ese=require("path"),bse=hc();Ki.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var Ase=()=>process.env[Ki.ENV_CREDENTIALS_PATH]||(0,Ese.join)((0,bse.getHomeDir)(),".aws","credentials");Ki.getCredentialsFilepath=Ase});var sO=m(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.getProfileData=void 0;var iO=/^profile\s(["'])?([^\1]+)\1$/,Tse=e=>Object.entries(e).filter(([t])=>iO.test(t)).reduce((t,[r,n])=>y(o({},t),{[iO.exec(r)[2]]:n}),o({},e.default&&{default:e.default}));Gm.getProfileData=Tse});var oO=m($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.parseIni=void 0;var Cse=["__proto__","profile __proto__"],xse=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],Cse.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};$m.parseIni=xse});var aO=m(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});Vm.slurpFile=void 0;var Ise=require("fs"),{readFile:Rse}=Ise.promises,sE={},Nse=e=>(sE[e]||(sE[e]=Rse(e,"utf8")),sE[e]);Vm.slurpFile=Nse});var oE=m(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.loadSharedConfigFiles=void 0;var Pse=rO(),Dse=nO(),Ose=sO(),cO=oO(),lO=aO(),dO=()=>({}),Lse=async(e={})=>{let{filepath:t=(0,Dse.getCredentialsFilepath)(),configFilepath:r=(0,Pse.getConfigFilepath)()}=e,n=await Promise.all([(0,lO.slurpFile)(r).then(cO.parseIni).then(Ose.getProfileData).catch(dO),(0,lO.slurpFile)(t).then(cO.parseIni).catch(dO)]);return{configFile:n[0],credentialsFile:n[1]}};Km.loadSharedConfigFiles=Lse});var uO=m(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.parseKnownFiles=void 0;var qse=oE(),Mse=async e=>{let t=await(0,qse.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};Hm.parseKnownFiles=Mse});var mO=m(fO=>{"use strict";Object.defineProperty(fO,"__esModule",{value:!0})});var pO=m(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});var Hi=$();Hi.__exportStar(hc(),wn);Hi.__exportStar(eO(),wn);Hi.__exportStar(iE(),wn);Hi.__exportStar(tO(),wn);Hi.__exportStar(oE(),wn);Hi.__exportStar(uO(),wn);Hi.__exportStar(mO(),wn)});var hO=m(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.fromSharedConfigFiles=void 0;var zse=be(),_O=pO(),jse=(e,n={})=>{var i=n,{preferredFile:t="config"}=i,r=Gn(i,["preferredFile"]);return async()=>{let s=(0,_O.getProfileName)(r),{configFile:a,credentialsFile:c}=await(0,_O.loadSharedConfigFiles)(r),l=c[s]||{},u=a[s]||{},f=t==="config"?o(o({},l),u):o(o({},u),l);try{let h=e(f);if(h===void 0)throw new Error;return h}catch(h){throw new zse.CredentialsProviderError(h.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}}};Wm.fromSharedConfigFiles=jse});var yO=m(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.fromStatic=void 0;var kse=be(),Fse=e=>typeof e=="function",Use=e=>Fse(e)?async()=>await e():(0,kse.fromStatic)(e);Jm.fromStatic=Use});var vO=m(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.loadConfig=void 0;var gO=be(),Bse=ZD(),Gse=hO(),$se=yO(),Vse=({environmentVariableSelector:e,configFileSelector:t,default:r},n={})=>(0,gO.memoize)((0,gO.chain)((0,Bse.fromEnv)(e),(0,Gse.fromSharedConfigFiles)(t,n),(0,$se.fromStatic)(r)));Ym.loadConfig=Vse});var kr=m(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});var Kse=$();Kse.__exportStar(vO(),aE)});var SO=m(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.parseQueryString=void 0;function Hse(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}Qm.parseQueryString=Hse});var ai=m(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.parseUrl=void 0;var Wse=SO(),Jse=e=>{let{hostname:t,pathname:r,port:n,protocol:i,search:s}=new URL(e),a;return s&&(a=(0,Wse.parseQueryString)(s)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:a}};Xm.parseUrl=Jse});var wO=m(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.Endpoint=void 0;var Yse;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(Yse=yc.Endpoint||(yc.Endpoint={}))});var EO=m(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.ENDPOINT_CONFIG_OPTIONS=Fr.CONFIG_ENDPOINT_NAME=Fr.ENV_ENDPOINT_NAME=void 0;Fr.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Fr.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Fr.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Fr.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Fr.CONFIG_ENDPOINT_NAME],default:void 0}});var cE=m(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.EndpointMode=void 0;var Qse;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(Qse=gc.EndpointMode||(gc.EndpointMode={}))});var bO=m(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.ENDPOINT_MODE_CONFIG_OPTIONS=Ur.CONFIG_ENDPOINT_MODE_NAME=Ur.ENV_ENDPOINT_MODE_NAME=void 0;var Xse=cE();Ur.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Ur.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Ur.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Ur.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Ur.CONFIG_ENDPOINT_MODE_NAME],default:Xse.EndpointMode.IPv4}});var dE=m(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.getInstanceMetadataEndpoint=void 0;var TO=kr(),Zse=ai(),AO=wO(),eoe=EO(),lE=cE(),toe=bO(),roe=async()=>(0,Zse.parseUrl)(await noe()||await ioe());Zm.getInstanceMetadataEndpoint=roe;var noe=async()=>(0,TO.loadConfig)(eoe.ENDPOINT_CONFIG_OPTIONS)(),ioe=async()=>{let e=await(0,TO.loadConfig)(toe.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case lE.EndpointMode.IPv4:return AO.Endpoint.IPv4;case lE.EndpointMode.IPv6:return AO.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(lE.EndpointMode)}`)}}});var CO=m(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.getExtendedInstanceMetadataCredentials=void 0;var soe=5*60,ooe=5*60,aoe="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",coe=(e,t)=>{var r;let n=soe+Math.floor(Math.random()*ooe),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: "+aoe);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return y(o(o({},e),s?{originalExpiration:s}:{}),{expiration:i})};ep.getExtendedInstanceMetadataCredentials=coe});var IO=m(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.staticStabilityProvider=void 0;var xO=CO(),loe=(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,xO.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,xO.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};tp.staticStabilityProvider=loe});var DO=m(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.fromInstanceMetadata=void 0;var doe=be(),uE=qm(),RO=rE(),uoe=Mm(),NO=nE(),foe=dE(),moe=IO(),PO="/latest/meta-data/iam/security-credentials/",poe="/latest/api/token",_oe=(e={})=>(0,moe.staticStabilityProvider)(hoe(e),{logger:e.logger});rp.fromInstanceMetadata=_oe;var hoe=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,uoe.providerConfigFromInit)(e),i=async(s,a)=>{let c=(await(0,NO.retry)(async()=>{let l;try{l=await goe(a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)).trim();return(0,NO.retry)(async()=>{let l;try{l=await voe(c,a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)};return async()=>{let s=await(0,foe.getInstanceMetadataEndpoint)();if(t)return i(n,y(o({},s),{timeout:r}));{let a;try{a=(await yoe(y(o({},s),{timeout:r}))).toString()}catch(c){if((c==null?void 0:c.statusCode)===400)throw Object.assign(c,{message:"EC2 Metadata token request returned error"});return(c.message==="TimeoutError"||[403,404,405].includes(c.statusCode))&&(t=!0),i(n,y(o({},s),{timeout:r}))}return i(n,y(o({},s),{headers:{"x-aws-ec2-metadata-token":a},timeout:r}))}}},yoe=async e=>(0,uE.httpRequest)(y(o({},e),{path:poe,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),goe=async e=>(await(0,uE.httpRequest)(y(o({},e),{path:PO}))).toString(),voe=async(e,t)=>{let r=JSON.parse((await(0,uE.httpRequest)(y(o({},t),{path:PO+e}))).toString());if(!(0,RO.isImdsCredentials)(r))throw new doe.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,RO.fromImdsCredentials)(r)}});var LO=m(OO=>{"use strict";Object.defineProperty(OO,"__esModule",{value:!0})});var qO=m(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.getInstanceMetadataEndpoint=Br.httpRequest=void 0;var np=$();np.__exportStar(XD(),Br);np.__exportStar(DO(),Br);np.__exportStar(Mm(),Br);np.__exportStar(LO(),Br);var Soe=qm();Object.defineProperty(Br,"httpRequest",{enumerable:!0,get:function(){return Soe.httpRequest}});var woe=dE();Object.defineProperty(Br,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return woe.getInstanceMetadataEndpoint}})});var zO=m(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.resolveCredentialSource=void 0;var Eoe=Q0(),MO=qO(),boe=be(),Aoe=(e,t)=>{let r={EcsContainer:MO.fromContainerMetadata,Ec2InstanceMetadata:MO.fromInstanceMetadata,Environment:Eoe.fromEnv};if(e in r)return r[e]();throw new boe.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};ip.resolveCredentialSource=Aoe});var jO=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.resolveAssumeRoleCredentials=Gs.isAssumeRoleProfile=void 0;var fE=be(),Toe=_c(),Coe=zO(),xoe=mE(),Ioe=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&&(Roe(e)||Noe(e));Gs.isAssumeRoleProfile=Ioe;var Roe=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",Noe=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",Poe=async(e,t,r,n={})=>{let i=t[e];if(!r.roleAssumer)throw new fE.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 fE.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,Toe.getProfileName)(r)}. Profiles visited: `+Object.keys(n).join(", "),!1);let a=s?(0,xoe.resolveProfileData)(s,t,r,y(o({},n),{[s]:!0})):(0,Coe.resolveCredentialSource)(i.credential_source,e)(),c={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id},{mfa_serial:l}=i;if(l){if(!r.mfaCodeProvider)throw new fE.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);c.SerialNumber=l,c.TokenCode=await r.mfaCodeProvider(l)}let u=await a;return r.roleAssumer(u,c)};Gs.resolveAssumeRoleCredentials=Poe});var pE=m(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.isSsoProfile=void 0;var Doe=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");sp.isSsoProfile=Doe});var ap=m(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.SSOServiceException=void 0;var Ooe=D(),vc=class extends Ooe.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,vc.prototype)}};op.SSOServiceException=vc});var Wi=m(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 $s=D(),cp=ap(),Loe;(function(e){e.filterSensitiveLog=t=>o({},t)})(Loe=le.AccountInfo||(le.AccountInfo={}));var qoe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:$s.SENSITIVE_STRING})})(qoe=le.GetRoleCredentialsRequest||(le.GetRoleCredentialsRequest={}));var kO;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:$s.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:$s.SENSITIVE_STRING})})(kO=le.RoleCredentials||(le.RoleCredentials={}));var Moe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:kO.filterSensitiveLog(t.roleCredentials)})})(Moe=le.GetRoleCredentialsResponse||(le.GetRoleCredentialsResponse={}));var Sc=class extends cp.SSOServiceException{constructor(t){super(o({name:"InvalidRequestException",$fault:"client"},t)),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Sc.prototype)}};le.InvalidRequestException=Sc;var wc=class extends cp.SSOServiceException{constructor(t){super(o({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,wc.prototype)}};le.ResourceNotFoundException=wc;var Ec=class extends cp.SSOServiceException{constructor(t){super(o({name:"TooManyRequestsException",$fault:"client"},t)),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Ec.prototype)}};le.TooManyRequestsException=Ec;var bc=class extends cp.SSOServiceException{constructor(t){super(o({name:"UnauthorizedException",$fault:"client"},t)),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,bc.prototype)}};le.UnauthorizedException=bc;var zoe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:$s.SENSITIVE_STRING})})(zoe=le.ListAccountRolesRequest||(le.ListAccountRolesRequest={}));var joe;(function(e){e.filterSensitiveLog=t=>o({},t)})(joe=le.RoleInfo||(le.RoleInfo={}));var koe;(function(e){e.filterSensitiveLog=t=>o({},t)})(koe=le.ListAccountRolesResponse||(le.ListAccountRolesResponse={}));var Foe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:$s.SENSITIVE_STRING})})(Foe=le.ListAccountsRequest||(le.ListAccountsRequest={}));var Uoe;(function(e){e.filterSensitiveLog=t=>o({},t)})(Uoe=le.ListAccountsResponse||(le.ListAccountsResponse={}));var Boe;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:$s.SENSITIVE_STRING})})(Boe=le.LogoutRequest||(le.LogoutRequest={}))});var Ac=m(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.deserializeAws_restJson1LogoutCommand=nt.deserializeAws_restJson1ListAccountsCommand=nt.deserializeAws_restJson1ListAccountRolesCommand=nt.deserializeAws_restJson1GetRoleCredentialsCommand=nt.serializeAws_restJson1LogoutCommand=nt.serializeAws_restJson1ListAccountsCommand=nt.serializeAws_restJson1ListAccountRolesCommand=nt.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var lp=It(),Ce=D(),dp=Wi(),up=ap(),Goe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},_p(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,l=o(o({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),u;return new lp.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};nt.serializeAws_restJson1GetRoleCredentialsCommand=Goe;var $oe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},_p(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,l=o(o(o({},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 lp.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};nt.serializeAws_restJson1ListAccountRolesCommand=$oe;var Voe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},_p(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,l=o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),u;return new lp.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};nt.serializeAws_restJson1ListAccountsCommand=Voe;var Koe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},_p(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,l;return new lp.HttpRequest({protocol:n,hostname:r,port:i,method:"POST",headers:a,path:c,body:l})};nt.serializeAws_restJson1LogoutCommand=Koe;var Hoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Woe(e,t);let r={$metadata:ir(e),roleCredentials:void 0},n=(0,Ce.expectNonNull)((0,Ce.expectObject)(await Ji(e.body,t)),"body");return n.roleCredentials!==void 0&&n.roleCredentials!==null&&(r.roleCredentials=nae(n.roleCredentials,t)),Promise.resolve(r)};nt.deserializeAws_restJson1GetRoleCredentialsCommand=Hoe;var Woe=async(e,t)=>{let r=y(o({},e),{body:await Ji(e.body,t)}),n,i="UnknownError";switch(i=hp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await fp(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await _E(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await mp(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await pp(r,t);default:let s=r.body;throw n=new up.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Ce.decorateServiceException)(n,s)}},Joe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Yoe(e,t);let r={$metadata:ir(e),nextToken:void 0,roleList:void 0},n=(0,Ce.expectNonNull)((0,Ce.expectObject)(await Ji(e.body,t)),"body");return n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Ce.expectString)(n.nextToken)),n.roleList!==void 0&&n.roleList!==null&&(r.roleList=sae(n.roleList,t)),Promise.resolve(r)};nt.deserializeAws_restJson1ListAccountRolesCommand=Joe;var Yoe=async(e,t)=>{let r=y(o({},e),{body:await Ji(e.body,t)}),n,i="UnknownError";switch(i=hp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await fp(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await _E(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await mp(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await pp(r,t);default:let s=r.body;throw n=new up.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Ce.decorateServiceException)(n,s)}},Qoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Xoe(e,t);let r={$metadata:ir(e),accountList:void 0,nextToken:void 0},n=(0,Ce.expectNonNull)((0,Ce.expectObject)(await Ji(e.body,t)),"body");return n.accountList!==void 0&&n.accountList!==null&&(r.accountList=rae(n.accountList,t)),n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Ce.expectString)(n.nextToken)),Promise.resolve(r)};nt.deserializeAws_restJson1ListAccountsCommand=Qoe;var Xoe=async(e,t)=>{let r=y(o({},e),{body:await Ji(e.body,t)}),n,i="UnknownError";switch(i=hp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await fp(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await _E(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await mp(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await pp(r,t);default:let s=r.body;throw n=new up.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Ce.decorateServiceException)(n,s)}},Zoe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return eae(e,t);let r={$metadata:ir(e)};return await FO(e.body,t),Promise.resolve(r)};nt.deserializeAws_restJson1LogoutCommand=Zoe;var eae=async(e,t)=>{let r=y(o({},e),{body:await Ji(e.body,t)}),n,i="UnknownError";switch(i=hp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await fp(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await mp(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await pp(r,t);default:let s=r.body;throw n=new up.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Ce.decorateServiceException)(n,s)}},fp=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ce.expectString)(n.message));let i=new dp.InvalidRequestException(o({$metadata:ir(e)},r));return(0,Ce.decorateServiceException)(i,e.body)},_E=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ce.expectString)(n.message));let i=new dp.ResourceNotFoundException(o({$metadata:ir(e)},r));return(0,Ce.decorateServiceException)(i,e.body)},mp=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ce.expectString)(n.message));let i=new dp.TooManyRequestsException(o({$metadata:ir(e)},r));return(0,Ce.decorateServiceException)(i,e.body)},pp=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ce.expectString)(n.message));let i=new dp.UnauthorizedException(o({$metadata:ir(e)},r));return(0,Ce.decorateServiceException)(i,e.body)},tae=(e,t)=>({accountId:(0,Ce.expectString)(e.accountId),accountName:(0,Ce.expectString)(e.accountName),emailAddress:(0,Ce.expectString)(e.emailAddress)}),rae=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:tae(n,t)),nae=(e,t)=>({accessKeyId:(0,Ce.expectString)(e.accessKeyId),expiration:(0,Ce.expectLong)(e.expiration),secretAccessKey:(0,Ce.expectString)(e.secretAccessKey),sessionToken:(0,Ce.expectString)(e.sessionToken)}),iae=(e,t)=>({accountId:(0,Ce.expectString)(e.accountId),roleName:(0,Ce.expectString)(e.roleName)}),sae=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:iae(n,t)),ir=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"]}},FO=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),oae=(e,t)=>FO(e,t).then(r=>t.utf8Encoder(r)),_p=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Ji=(e,t)=>oae(e,t).then(r=>r.length?JSON.parse(r):{}),hp=(e,t)=>{let r=(s,a)=>Object.keys(s).find(c=>c.toLowerCase()===a.toLowerCase()),n=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},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 yE=m(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.GetRoleCredentialsCommand=void 0;var aae=G(),cae=D(),UO=Wi(),BO=Ac(),hE=class extends cae.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,aae.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:UO.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:UO.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,BO.serializeAws_restJson1GetRoleCredentialsCommand)(t,r)}deserialize(t,r){return(0,BO.deserializeAws_restJson1GetRoleCredentialsCommand)(t,r)}};yp.GetRoleCredentialsCommand=hE});var vp=m(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.ListAccountRolesCommand=void 0;var lae=G(),dae=D(),GO=Wi(),$O=Ac(),gE=class extends dae.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,lae.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:GO.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:GO.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,$O.serializeAws_restJson1ListAccountRolesCommand)(t,r)}deserialize(t,r){return(0,$O.deserializeAws_restJson1ListAccountRolesCommand)(t,r)}};gp.ListAccountRolesCommand=gE});var wp=m(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.ListAccountsCommand=void 0;var uae=G(),fae=D(),VO=Wi(),KO=Ac(),vE=class extends fae.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,uae.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:VO.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:VO.ListAccountsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,KO.serializeAws_restJson1ListAccountsCommand)(t,r)}deserialize(t,r){return(0,KO.deserializeAws_restJson1ListAccountsCommand)(t,r)}};Sp.ListAccountsCommand=vE});var wE=m(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.LogoutCommand=void 0;var mae=G(),pae=D(),_ae=Wi(),HO=Ac(),SE=class extends pae.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,mae.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:_ae.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,HO.serializeAws_restJson1LogoutCommand)(t,r)}deserialize(t,r){return(0,HO.deserializeAws_restJson1LogoutCommand)(t,r)}};Ep.LogoutCommand=SE});var WO=m((cNe,hae)=>{hae.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.95.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.80.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.80.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.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.85.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.85.0","@aws-sdk/util-defaults-mode-node":"3.85.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.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 bp=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.fromString=Vs.fromArrayBuffer=void 0;var yae=m0(),EE=require("buffer"),gae=(e,t=0,r=e.byteLength-t)=>{if(!(0,yae.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return EE.Buffer.from(e,t,r)};Vs.fromArrayBuffer=gae;var vae=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?EE.Buffer.from(e,t):EE.Buffer.from(e)};Vs.fromString=vae});var Tc=m(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.Hash=void 0;var bE=bp(),Sae=require("buffer"),JO=require("crypto"),AE=class{constructor(t,r){this.hash=r?(0,JO.createHmac)(t,YO(r)):(0,JO.createHash)(t)}update(t,r){this.hash.update(YO(t,r))}digest(){return Promise.resolve(this.hash.digest())}};Ap.Hash=AE;function YO(e,t){return Sae.Buffer.isBuffer(e)?e:typeof e=="string"?(0,bE.fromString)(e,t):ArrayBuffer.isView(e)?(0,bE.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,bE.fromArrayBuffer)(e)}});var CE=m(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.buildQueryString=void 0;var TE=u0();function wae(e){let t=[];for(let r of Object.keys(e).sort()){let n=e[r];if(r=(0,TE.escapeUri)(r),Array.isArray(n))for(let i=0,s=n.length;i<s;i++)t.push(`${r}=${(0,TE.escapeUri)(n[i])}`);else{let i=r;(n||typeof n=="string")&&(i+=`=${(0,TE.escapeUri)(n)}`),t.push(i)}}return t.join("&")}Tp.buildQueryString=wae});var QO=m(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.NODEJS_TIMEOUT_ERROR_CODES=void 0;Cp.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var xE=m(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.getTransformedHeaders=void 0;var Eae=e=>{let t={};for(let r of Object.keys(e)){let n=e[r];t[r]=Array.isArray(n)?n.join(","):n}return t};xp.getTransformedHeaders=Eae});var XO=m(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.setConnectionTimeout=void 0;var bae=(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)})}})};Ip.setConnectionTimeout=bae});var ZO=m(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.setSocketTimeout=void 0;var Aae=(e,t,r=0)=>{e.setTimeout(r,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))})};Rp.setSocketTimeout=Aae});var IE=m(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.writeRequestBody=void 0;var Tae=require("stream");function Cae(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{eL(e,t.body)}):eL(e,t.body)}Np.writeRequestBody=Cae;function eL(e,t){t instanceof Tae.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var nL=m(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.NodeHttpHandler=void 0;var xae=It(),Iae=CE(),tL=require("http"),rL=require("https"),Rae=QO(),Nae=xE(),Pae=XO(),Dae=ZO(),Oae=IE(),RE=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||{},a=!0,c=50;return{connectionTimeout:r,socketTimeout:n,httpAgent:i||new tL.Agent({keepAlive:a,maxSockets:c}),httpsAgent:s||new rL.Agent({keepAlive:a,maxSockets:c})}}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 f=new Error("Request aborted");f.name="AbortError",i(f);return}let s=t.protocol==="https:",a=(0,Iae.buildQueryString)(t.query||{}),c={headers:t.headers,host:t.hostname,method:t.method,path:a?`${t.path}?${a}`:t.path,port:t.port,agent:s?this.config.httpsAgent:this.config.httpAgent},u=(s?rL.request:tL.request)(c,f=>{let h=new xae.HttpResponse({statusCode:f.statusCode||-1,headers:(0,Nae.getTransformedHeaders)(f.headers),body:f});n({response:h})});u.on("error",f=>{Rae.NODEJS_TIMEOUT_ERROR_CODES.includes(f.code)?i(Object.assign(f,{name:"TimeoutError"})):i(f)}),(0,Pae.setConnectionTimeout)(u,i,this.config.connectionTimeout),(0,Dae.setSocketTimeout)(u,i,this.config.socketTimeout),r&&(r.onabort=()=>{u.abort();let f=new Error("Request aborted");f.name="AbortError",i(f)}),(0,Oae.writeRequestBody)(u,t)})}};Pp.NodeHttpHandler=RE});var iL=m(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.NodeHttp2Handler=void 0;var Lae=It(),qae=CE(),NE=require("http2"),Mae=xE(),zae=IE(),PE=class{constructor(t){this.metadata={handlerProtocol:"h2"},this.configProvider=new Promise((r,n)=>{typeof t=="function"?t().then(i=>{r(i||{})}).catch(n):r(t||{})}),this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(r=>this.destroySession(r));this.sessionCache.clear()}async handle(t,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);let{requestTimeout:n,disableConcurrentStreams:i}=this.config;return new Promise((s,a)=>{let c=!1;if(r!=null&&r.aborted){c=!0;let k=new Error("Request aborted");k.name="AbortError",a(k);return}let{hostname:l,method:u,port:f,protocol:h,path:p,query:v}=t,S=`${h}//${l}${f?`:${f}`:""}`,g=this.getSession(S,i||!1),C=k=>{i&&this.destroySession(g),c=!0,a(k)},P=(0,qae.buildQueryString)(v||{}),x=g.request(y(o({},t.headers),{[NE.constants.HTTP2_HEADER_PATH]:P?`${p}?${P}`:p,[NE.constants.HTTP2_HEADER_METHOD]:u}));g.ref(),x.on("response",k=>{let _e=new Lae.HttpResponse({statusCode:k[":status"]||-1,headers:(0,Mae.getTransformedHeaders)(k),body:x});c=!0,s({response:_e}),i&&(g.close(),this.deleteSessionFromCache(S,g))}),n&&x.setTimeout(n,()=>{x.close();let k=new Error(`Stream timed out because of no activity for ${n} ms`);k.name="TimeoutError",C(k)}),r&&(r.onabort=()=>{x.close();let k=new Error("Request aborted");k.name="AbortError",C(k)}),x.on("frameError",(k,_e,Ut)=>{C(new Error(`Frame type id ${k} in stream id ${Ut} has failed with code ${_e}.`))}),x.on("error",C),x.on("aborted",()=>{C(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${x.rstCode}.`))}),x.on("close",()=>{g.unref(),i&&g.destroy(),c||C(new Error("Unexpected error: http2 request did not get a response"))}),(0,zae.writeRequestBody)(x,t)})}getSession(t,r){var n;let i=this.sessionCache,s=i.get(t)||[];if(s.length>0&&!r)return s[0];let a=(0,NE.connect)(t);a.unref();let c=()=>{this.destroySession(a),this.deleteSessionFromCache(t,a)};return a.on("goaway",c),a.on("error",c),a.on("frameError",c),a.on("close",()=>this.deleteSessionFromCache(t,a)),!((n=this.config)===null||n===void 0)&&n.sessionTimeout&&a.setTimeout(this.config.sessionTimeout,c),s.push(a),i.set(t,s),a}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))}};Dp.NodeHttp2Handler=PE});var sL=m(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.Collector=void 0;var jae=require("stream"),DE=class extends jae.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,r,n){this.bufferedBytes.push(t),n()}};Op.Collector=DE});var oL=m(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.streamCollector=void 0;var kae=sL(),Fae=e=>new Promise((t,r)=>{let n=new kae.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)})});Lp.streamCollector=Fae});var xc=m(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var OE=$();OE.__exportStar(nL(),Cc);OE.__exportStar(iL(),Cc);OE.__exportStar(oL(),Cc)});var Ic=m(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.toBase64=Ks.fromBase64=void 0;var aL=bp(),Uae=/^[A-Za-z0-9+/]*={0,2}$/;function Bae(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Uae.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,aL.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}Ks.fromBase64=Bae;function Gae(e){return(0,aL.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")}Ks.toBase64=Gae});var lL=m(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.calculateBodyLength=void 0;var cL=require("fs"),$ae=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,cL.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,cL.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};qp.calculateBodyLength=$ae});var Rc=m(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});var Vae=$();Vae.__exportStar(lL(),LE)});var dL=m((Mp,qE)=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.isCrtAvailable=void 0;var Kae=()=>{try{return typeof require=="function"&&typeof qE<"u"&&qE.require&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};Mp.isCrtAvailable=Kae});var Nc=m(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.defaultUserAgent=Gr.UA_APP_ID_INI_NAME=Gr.UA_APP_ID_ENV_NAME=void 0;var Hae=kr(),uL=require("os"),ME=require("process"),Wae=dL();Gr.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";Gr.UA_APP_ID_INI_NAME="sdk-ua-app-id";var Jae=({serviceId:e,clientVersion:t})=>{let r=[["aws-sdk-js",t],[`os/${(0,uL.platform)()}`,(0,uL.release)()],["lang/js"],["md/nodejs",`${ME.versions.node}`]],n=(0,Wae.isCrtAvailable)();n&&r.push(n),e&&r.push([`api/${e}`,t]),ME.env.AWS_EXECUTION_ENV&&r.push([`exec-env/${ME.env.AWS_EXECUTION_ENV}`]);let i=(0,Hae.loadConfig)({environmentVariableSelector:a=>a[Gr.UA_APP_ID_ENV_NAME],configFileSelector:a=>a[Gr.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let a=await i;s=a?[...r,[`app/${a}`]]:[...r]}return s}};Gr.defaultUserAgent=Jae});var Pc=m(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.toUtf8=Hs.fromUtf8=void 0;var fL=bp(),Yae=e=>{let t=(0,fL.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};Hs.fromUtf8=Yae;var Qae=e=>(0,fL.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");Hs.toUtf8=Qae});var mL=m(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.defaultRegionInfoProvider=void 0;var Xae=Rt(),Zae={"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"}},ece={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"]}]}},tce=async(e,t)=>(0,Xae.getRegionInfo)(e,y(o({},t),{signingService:"awsssoportal",regionHash:Zae,partitionHash:ece}));zp.defaultRegionInfoProvider=tce});var pL=m(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.getRuntimeConfig=void 0;var rce=ai(),nce=mL(),ice=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:nce.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:rce.parseUrl}};jp.getRuntimeConfig=ice});var Fp=m(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.httpRequest=void 0;var zE=be(),sce=require("buffer"),oce=require("http");function ace(e){return new Promise((t,r)=>{var n;let i=(0,oce.request)(y(o({method:"GET"},e),{hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{r(Object.assign(new zE.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new zE.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:a=400}=s;(a<200||300<=a)&&(r(Object.assign(new zE.ProviderError("Error response received from instance metadata service"),{statusCode:a})),i.destroy());let c=[];s.on("data",l=>{c.push(l)}),s.on("end",()=>{t(sce.Buffer.concat(c)),i.destroy()})}),i.end()})}kp.httpRequest=ace});var jE=m(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.fromImdsCredentials=Ws.isImdsCredentials=void 0;var cce=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Ws.isImdsCredentials=cce;var lce=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Ws.fromImdsCredentials=lce});var Up=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.providerConfigFromInit=$r.DEFAULT_MAX_RETRIES=$r.DEFAULT_TIMEOUT=void 0;$r.DEFAULT_TIMEOUT=1e3;$r.DEFAULT_MAX_RETRIES=0;var dce=({maxRetries:e=$r.DEFAULT_MAX_RETRIES,timeout:t=$r.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});$r.providerConfigFromInit=dce});var kE=m(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.retry=void 0;var uce=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};Bp.retry=uce});var hL=m(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.fromContainerMetadata=it.ENV_CMDS_AUTH_TOKEN=it.ENV_CMDS_RELATIVE_URI=it.ENV_CMDS_FULL_URI=void 0;var Gp=be(),fce=require("url"),mce=Fp(),_L=jE(),pce=Up(),_ce=kE();it.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";it.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";it.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var hce=(e={})=>{let{timeout:t,maxRetries:r}=(0,pce.providerConfigFromInit)(e);return()=>(0,_ce.retry)(async()=>{let n=await wce(),i=JSON.parse(await yce(t,n));if(!(0,_L.isImdsCredentials)(i))throw new Gp.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,_L.fromImdsCredentials)(i)},r)};it.fromContainerMetadata=hce;var yce=async(e,t)=>(process.env[it.ENV_CMDS_AUTH_TOKEN]&&(t.headers=y(o({},t.headers),{Authorization:process.env[it.ENV_CMDS_AUTH_TOKEN]})),(await(0,mce.httpRequest)(y(o({},t),{timeout:e}))).toString()),gce="169.254.170.2",vce={localhost:!0,"127.0.0.1":!0},Sce={"http:":!0,"https:":!0},wce=async()=>{if(process.env[it.ENV_CMDS_RELATIVE_URI])return{hostname:gce,path:process.env[it.ENV_CMDS_RELATIVE_URI]};if(process.env[it.ENV_CMDS_FULL_URI]){let e=(0,fce.parse)(process.env[it.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in vce))throw new Gp.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in Sce))throw new Gp.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return y(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new Gp.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${it.ENV_CMDS_RELATIVE_URI} or ${it.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var yL=m(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.Endpoint=void 0;var Ece;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(Ece=Dc.Endpoint||(Dc.Endpoint={}))});var gL=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.ENDPOINT_CONFIG_OPTIONS=Vr.CONFIG_ENDPOINT_NAME=Vr.ENV_ENDPOINT_NAME=void 0;Vr.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Vr.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Vr.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Vr.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Vr.CONFIG_ENDPOINT_NAME],default:void 0}});var FE=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.EndpointMode=void 0;var bce;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(bce=Oc.EndpointMode||(Oc.EndpointMode={}))});var vL=m(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 Ace=FE();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:Ace.EndpointMode.IPv4}});var BE=m($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.getInstanceMetadataEndpoint=void 0;var wL=kr(),Tce=ai(),SL=yL(),Cce=gL(),UE=FE(),xce=vL(),Ice=async()=>(0,Tce.parseUrl)(await Rce()||await Nce());$p.getInstanceMetadataEndpoint=Ice;var Rce=async()=>(0,wL.loadConfig)(Cce.ENDPOINT_CONFIG_OPTIONS)(),Nce=async()=>{let e=await(0,wL.loadConfig)(xce.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case UE.EndpointMode.IPv4:return SL.Endpoint.IPv4;case UE.EndpointMode.IPv6:return SL.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(UE.EndpointMode)}`)}}});var EL=m(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.getExtendedInstanceMetadataCredentials=void 0;var Pce=5*60,Dce=5*60,Oce="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Lce=(e,t)=>{var r;let n=Pce+Math.floor(Math.random()*Dce),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: "+Oce);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return y(o(o({},e),s?{originalExpiration:s}:{}),{expiration:i})};Vp.getExtendedInstanceMetadataCredentials=Lce});var AL=m(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.staticStabilityProvider=void 0;var bL=EL(),qce=(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,bL.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,bL.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};Kp.staticStabilityProvider=qce});var IL=m(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.fromInstanceMetadata=void 0;var Mce=be(),GE=Fp(),TL=jE(),zce=Up(),CL=kE(),jce=BE(),kce=AL(),xL="/latest/meta-data/iam/security-credentials/",Fce="/latest/api/token",Uce=(e={})=>(0,kce.staticStabilityProvider)(Bce(e),{logger:e.logger});Hp.fromInstanceMetadata=Uce;var Bce=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,zce.providerConfigFromInit)(e),i=async(s,a)=>{let c=(await(0,CL.retry)(async()=>{let l;try{l=await $ce(a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)).trim();return(0,CL.retry)(async()=>{let l;try{l=await Vce(c,a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)};return async()=>{let s=await(0,jce.getInstanceMetadataEndpoint)();if(t)return i(n,y(o({},s),{timeout:r}));{let a;try{a=(await Gce(y(o({},s),{timeout:r}))).toString()}catch(c){if((c==null?void 0:c.statusCode)===400)throw Object.assign(c,{message:"EC2 Metadata token request returned error"});return(c.message==="TimeoutError"||[403,404,405].includes(c.statusCode))&&(t=!0),i(n,y(o({},s),{timeout:r}))}return i(n,y(o({},s),{headers:{"x-aws-ec2-metadata-token":a},timeout:r}))}}},Gce=async e=>(0,GE.httpRequest)(y(o({},e),{path:Fce,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),$ce=async e=>(await(0,GE.httpRequest)(y(o({},e),{path:xL}))).toString(),Vce=async(e,t)=>{let r=JSON.parse((await(0,GE.httpRequest)(y(o({},t),{path:xL+e}))).toString());if(!(0,TL.isImdsCredentials)(r))throw new Mce.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,TL.fromImdsCredentials)(r)}});var NL=m(RL=>{"use strict";Object.defineProperty(RL,"__esModule",{value:!0})});var PL=m(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.getInstanceMetadataEndpoint=Hr.httpRequest=void 0;var Wp=$();Wp.__exportStar(hL(),Hr);Wp.__exportStar(IL(),Hr);Wp.__exportStar(Up(),Hr);Wp.__exportStar(NL(),Hr);var Kce=Fp();Object.defineProperty(Hr,"httpRequest",{enumerable:!0,get:function(){return Kce.httpRequest}});var Hce=BE();Object.defineProperty(Hr,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return Hce.getInstanceMetadataEndpoint}})});var DL=m(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.IMDS_REGION_PATH=Dt.DEFAULTS_MODE_OPTIONS=Dt.ENV_IMDS_DISABLED=Dt.AWS_DEFAULT_REGION_ENV=Dt.AWS_REGION_ENV=Dt.AWS_EXECUTION_ENV=void 0;Dt.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";Dt.AWS_REGION_ENV="AWS_REGION";Dt.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";Dt.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";Dt.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];Dt.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var OL=m(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var Wce="AWS_DEFAULTS_MODE",Jce="defaults_mode";Jp.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Wce],configFileSelector:e=>e[Jce],default:"legacy"}});var ML=m(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.resolveDefaultsModeConfig=void 0;var Yce=Rt(),LL=PL(),qL=kr(),Qce=be(),ci=DL(),Xce=OL(),Zce=({region:e=(0,qL.loadConfig)(Yce.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,qL.loadConfig)(Xce.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,Qce.memoize)(async()=>{let r=typeof t=="function"?await t():t;switch(r==null?void 0:r.toLowerCase()){case"auto":return ele(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 ${ci.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${r}`)}});Yp.resolveDefaultsModeConfig=Zce;var ele=async e=>{if(e){let t=typeof e=="function"?await e():e,r=await tle();return r?t===r?"in-region":"cross-region":"standard"}return"standard"},tle=async()=>{var e;if(process.env[ci.AWS_EXECUTION_ENV]&&(process.env[ci.AWS_REGION_ENV]||process.env[ci.AWS_DEFAULT_REGION_ENV]))return(e=process.env[ci.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[ci.AWS_DEFAULT_REGION_ENV];if(!process.env[ci.ENV_IMDS_DISABLED])try{let t=await(0,LL.getInstanceMetadataEndpoint)();return(await(0,LL.httpRequest)(y(o({},t),{path:ci.IMDS_REGION_PATH}))).toString()}catch{}}});var Lc=m($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});var rle=$();rle.__exportStar(ML(),$E)});var FL=m(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.getRuntimeConfig=void 0;var nle=$(),ile=nle.__importDefault(WO()),Qp=Rt(),sle=Tc(),VE=yn(),qc=kr(),zL=xc(),jL=Ic(),ole=Rc(),ale=Nc(),kL=Pc(),cle=pL(),lle=D(),dle=Lc(),ule=e=>{var t,r,n,i,s,a,c,l,u,f,h,p,v,S;let g=(0,dle.resolveDefaultsModeConfig)(e),C=()=>g().then(lle.loadConfigsForDefaultMode),P=(0,cle.getRuntimeConfig)(e);return y(o(o({},P),e),{runtime:"node",defaultsMode:g,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:jL.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:jL.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:ole.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,ale.defaultUserAgent)({serviceId:P.serviceId,clientVersion:ile.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,qc.loadConfig)(VE.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,qc.loadConfig)(Qp.NODE_REGION_CONFIG_OPTIONS,Qp.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new zL.NodeHttpHandler(C),retryMode:(l=e==null?void 0:e.retryMode)!==null&&l!==void 0?l:(0,qc.loadConfig)(y(o({},VE.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await C()).retryMode||VE.DEFAULT_RETRY_MODE})),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:sle.Hash.bind(null,"sha256"),streamCollector:(f=e==null?void 0:e.streamCollector)!==null&&f!==void 0?f:zL.streamCollector,useDualstackEndpoint:(h=e==null?void 0:e.useDualstackEndpoint)!==null&&h!==void 0?h:(0,qc.loadConfig)(Qp.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(p=e==null?void 0:e.useFipsEndpoint)!==null&&p!==void 0?p:(0,qc.loadConfig)(Qp.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(v=e==null?void 0:e.utf8Decoder)!==null&&v!==void 0?v:kL.fromUtf8,utf8Encoder:(S=e==null?void 0:e.utf8Encoder)!==null&&S!==void 0?S:kL.toUtf8})};Xp.getRuntimeConfig=ule});var Mc=m(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.SSOClient=void 0;var UL=Rt(),fle=Fa(),BL=Ga(),mle=$a(),GL=yn(),$L=Xa(),ple=D(),_le=FL(),KE=class extends ple.Client{constructor(t){let r=(0,_le.getRuntimeConfig)(t),n=(0,UL.resolveRegionConfig)(r),i=(0,UL.resolveEndpointsConfig)(n),s=(0,GL.resolveRetryConfig)(i),a=(0,BL.resolveHostHeaderConfig)(s),c=(0,$L.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,GL.getRetryPlugin)(this.config)),this.middlewareStack.use((0,fle.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,BL.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,mle.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,$L.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Zp.SSOClient=KE});var t_=m(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0});e_.SSO=void 0;var hle=yE(),yle=vp(),gle=wp(),vle=wE(),Sle=Mc(),HE=class extends Sle.SSOClient{getRoleCredentials(t,r,n){let i=new hle.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 yle.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 gle.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 vle.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)}};e_.SSO=HE});var VL=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var r_=$();r_.__exportStar(yE(),Js);r_.__exportStar(vp(),Js);r_.__exportStar(wp(),Js);r_.__exportStar(wE(),Js)});var KL=m(WE=>{"use strict";Object.defineProperty(WE,"__esModule",{value:!0});var wle=$();wle.__exportStar(Wi(),WE)});var WL=m(HL=>{"use strict";Object.defineProperty(HL,"__esModule",{value:!0})});var JL=m(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0});n_.paginateListAccountRoles=void 0;var Ele=vp(),ble=t_(),Ale=Mc(),Tle=async(e,t,...r)=>await e.send(new Ele.ListAccountRolesCommand(t),...r),Cle=async(e,t,...r)=>await e.listAccountRoles(t,...r);async function*xle(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 ble.SSO)s=await Cle(e.client,t,...r);else if(e.client instanceof Ale.SSOClient)s=await Tle(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}n_.paginateListAccountRoles=xle});var YL=m(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0});i_.paginateListAccounts=void 0;var Ile=wp(),Rle=t_(),Nle=Mc(),Ple=async(e,t,...r)=>await e.send(new Ile.ListAccountsCommand(t),...r),Dle=async(e,t,...r)=>await e.listAccounts(t,...r);async function*Ole(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 Rle.SSO)s=await Dle(e.client,t,...r);else if(e.client instanceof Nle.SSOClient)s=await Ple(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}i_.paginateListAccounts=Ole});var QL=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});var JE=$();JE.__exportStar(WL(),zc);JE.__exportStar(JL(),zc);JE.__exportStar(YL(),zc)});var XL=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.SSOServiceException=void 0;var jc=$();jc.__exportStar(t_(),En);jc.__exportStar(Mc(),En);jc.__exportStar(VL(),En);jc.__exportStar(KL(),En);jc.__exportStar(QL(),En);var Lle=ap();Object.defineProperty(En,"SSOServiceException",{enumerable:!0,get:function(){return Lle.SSOServiceException}})});var eq=m(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.resolveSSOCredentials=void 0;var ZL=XL(),s_=be(),qle=_c(),Mle=15*60*1e3,o_=!1,zle=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:r,ssoRoleName:n,ssoClient:i})=>{let s,a="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,qle.getSSOTokenFromFile)(e)}catch{throw new s_.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${a}`,o_)}if(new Date(s.expiresAt).getTime()-Date.now()<=Mle)throw new s_.CredentialsProviderError(`The SSO session associated with this profile has expired. ${a}`,o_);let{accessToken:c}=s,l=i||new ZL.SSOClient({region:r}),u;try{u=await l.send(new ZL.GetRoleCredentialsCommand({accountId:t,roleName:n,accessToken:c}))}catch(S){throw s_.CredentialsProviderError.from(S,o_)}let{roleCredentials:{accessKeyId:f,secretAccessKey:h,sessionToken:p,expiration:v}={}}=u;if(!f||!h||!p||!v)throw new s_.CredentialsProviderError("SSO returns an invalid temporary credential.",o_);return{accessKeyId:f,secretAccessKey:h,sessionToken:p,expiration:new Date(v)}};a_.resolveSSOCredentials=zle});var YE=m(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.validateSsoProfile=void 0;var jle=be(),kle=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 jle.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};c_.validateSsoProfile=kle});var iq=m(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0});l_.fromSSO=void 0;var tq=be(),rq=_c(),Fle=pE(),nq=eq(),Ule=YE(),Ble=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s}=e;if(!t&&!r&&!n&&!i){let a=await(0,rq.parseKnownFiles)(e),c=(0,rq.getProfileName)(e),l=a[c];if(!(0,Fle.isSsoProfile)(l))throw new tq.CredentialsProviderError(`Profile ${c} is not configured with SSO credentials.`);let{sso_start_url:u,sso_account_id:f,sso_region:h,sso_role_name:p}=(0,Ule.validateSsoProfile)(l);return(0,nq.resolveSSOCredentials)({ssoStartUrl:u,ssoAccountId:f,ssoRegion:h,ssoRoleName:p,ssoClient:s})}else{if(!t||!r||!n||!i)throw new tq.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,nq.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s})}};l_.fromSSO=Ble});var oq=m(sq=>{"use strict";Object.defineProperty(sq,"__esModule",{value:!0})});var QE=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var d_=$();d_.__exportStar(iq(),Ys);d_.__exportStar(pE(),Ys);d_.__exportStar(oq(),Ys);d_.__exportStar(YE(),Ys)});var cq=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.resolveSsoCredentials=Qs.isSsoProfile=void 0;var aq=QE(),Gle=QE();Object.defineProperty(Qs,"isSsoProfile",{enumerable:!0,get:function(){return Gle.isSsoProfile}});var $le=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=(0,aq.validateSsoProfile)(e);return(0,aq.fromSSO)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i})()};Qs.resolveSsoCredentials=$le});var lq=m(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.resolveStaticCredentials=Xs.isStaticCredsProfile=void 0;var Vle=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;Xs.isStaticCredsProfile=Vle;var Kle=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});Xs.resolveStaticCredentials=Kle});var XE=m(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.fromWebToken=void 0;var Hle=be(),Wle=e=>()=>{let{roleArn:t,roleSessionName:r,webIdentityToken:n,providerId:i,policyArns:s,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l)throw new Hle.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:i,PolicyArns:s,Policy:a,DurationSeconds:c})};u_.fromWebToken=Wle});var dq=m(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.fromTokenFile=void 0;var Jle=be(),Yle=require("fs"),Qle=XE(),Xle="AWS_WEB_IDENTITY_TOKEN_FILE",Zle="AWS_ROLE_ARN",ede="AWS_ROLE_SESSION_NAME",tde=(e={})=>async()=>rde(e);f_.fromTokenFile=tde;var rde=e=>{var t,r,n;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[Xle],s=(r=e==null?void 0:e.roleArn)!==null&&r!==void 0?r:process.env[Zle],a=(n=e==null?void 0:e.roleSessionName)!==null&&n!==void 0?n:process.env[ede];if(!i||!s)throw new Jle.CredentialsProviderError("Web identity configuration not specified");return(0,Qle.fromWebToken)(y(o({},e),{webIdentityToken:(0,Yle.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:a}))()}});var ZE=m(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});var uq=$();uq.__exportStar(dq(),m_);uq.__exportStar(XE(),m_)});var fq=m(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.resolveWebIdentityCredentials=Zs.isWebIdentityProfile=void 0;var nde=ZE(),ide=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;Zs.isWebIdentityProfile=ide;var sde=async(e,t)=>(0,nde.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();Zs.resolveWebIdentityCredentials=sde});var mE=m(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});__.resolveProfileData=void 0;var ode=be(),mq=jO(),pq=cq(),p_=lq(),_q=fq(),ade=async(e,t,r,n={})=>{let i=t[e];if(Object.keys(n).length>0&&(0,p_.isStaticCredsProfile)(i))return(0,p_.resolveStaticCredentials)(i);if((0,mq.isAssumeRoleProfile)(i))return(0,mq.resolveAssumeRoleCredentials)(e,t,r,n);if((0,p_.isStaticCredsProfile)(i))return(0,p_.resolveStaticCredentials)(i);if((0,_q.isWebIdentityProfile)(i))return(0,_q.resolveWebIdentityCredentials)(i,r);if((0,pq.isSsoProfile)(i))return(0,pq.resolveSsoCredentials)(i);throw new ode.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};__.resolveProfileData=ade});var yq=m(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.fromIni=void 0;var hq=_c(),cde=mE(),lde=(e={})=>async()=>{let t=await(0,hq.parseKnownFiles)(e);return(0,cde.resolveProfileData)((0,hq.getProfileName)(e),t,e)};h_.fromIni=lde});var gq=m(eb=>{"use strict";Object.defineProperty(eb,"__esModule",{value:!0});var dde=$();dde.__exportStar(yq(),eb)});var kc=m(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0});y_.getHomeDir=void 0;var ude=require("os"),fde=require("path"),mde=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${fde.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,ude.homedir)())};y_.getHomeDir=mde});var vq=m(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.getProfileName=Wr.DEFAULT_PROFILE=Wr.ENV_PROFILE=void 0;Wr.ENV_PROFILE="AWS_PROFILE";Wr.DEFAULT_PROFILE="default";var pde=e=>e.profile||process.env[Wr.ENV_PROFILE]||Wr.DEFAULT_PROFILE;Wr.getProfileName=pde});var tb=m(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.getSSOTokenFilepath=void 0;var _de=require("crypto"),hde=require("path"),yde=kc(),gde=e=>{let r=(0,_de.createHash)("sha1").update(e).digest("hex");return(0,hde.join)((0,yde.getHomeDir)(),".aws","sso","cache",`${r}.json`)};g_.getSSOTokenFilepath=gde});var Sq=m(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.getSSOTokenFromFile=void 0;var vde=require("fs"),Sde=tb(),{readFile:wde}=vde.promises,Ede=async e=>{let t=(0,Sde.getSSOTokenFilepath)(e),r=await wde(t,"utf8");return JSON.parse(r)};v_.getSSOTokenFromFile=Ede});var wq=m(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.getConfigFilepath=Yi.ENV_CONFIG_PATH=void 0;var bde=require("path"),Ade=kc();Yi.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var Tde=()=>process.env[Yi.ENV_CONFIG_PATH]||(0,bde.join)((0,Ade.getHomeDir)(),".aws","config");Yi.getConfigFilepath=Tde});var Eq=m(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.getCredentialsFilepath=Qi.ENV_CREDENTIALS_PATH=void 0;var Cde=require("path"),xde=kc();Qi.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var Ide=()=>process.env[Qi.ENV_CREDENTIALS_PATH]||(0,Cde.join)((0,xde.getHomeDir)(),".aws","credentials");Qi.getCredentialsFilepath=Ide});var Aq=m(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.getProfileData=void 0;var bq=/^profile\s(["'])?([^\1]+)\1$/,Rde=e=>Object.entries(e).filter(([t])=>bq.test(t)).reduce((t,[r,n])=>y(o({},t),{[bq.exec(r)[2]]:n}),o({},e.default&&{default:e.default}));S_.getProfileData=Rde});var Tq=m(w_=>{"use strict";Object.defineProperty(w_,"__esModule",{value:!0});w_.parseIni=void 0;var Nde=["__proto__","profile __proto__"],Pde=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};w_.parseIni=Pde});var Cq=m(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0});E_.slurpFile=void 0;var Dde=require("fs"),{readFile:Ode}=Dde.promises,rb={},Lde=e=>(rb[e]||(rb[e]=Ode(e,"utf8")),rb[e]);E_.slurpFile=Lde});var nb=m(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0});b_.loadSharedConfigFiles=void 0;var qde=wq(),Mde=Eq(),zde=Aq(),xq=Tq(),Iq=Cq(),Rq=()=>({}),jde=async(e={})=>{let{filepath:t=(0,Mde.getCredentialsFilepath)(),configFilepath:r=(0,qde.getConfigFilepath)()}=e,n=await Promise.all([(0,Iq.slurpFile)(r).then(xq.parseIni).then(zde.getProfileData).catch(Rq),(0,Iq.slurpFile)(t).then(xq.parseIni).catch(Rq)]);return{configFile:n[0],credentialsFile:n[1]}};b_.loadSharedConfigFiles=jde});var Nq=m(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0});A_.parseKnownFiles=void 0;var kde=nb(),Fde=async e=>{let t=await(0,kde.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};A_.parseKnownFiles=Fde});var Dq=m(Pq=>{"use strict";Object.defineProperty(Pq,"__esModule",{value:!0})});var Oq=m(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});var Xi=$();Xi.__exportStar(kc(),bn);Xi.__exportStar(vq(),bn);Xi.__exportStar(tb(),bn);Xi.__exportStar(Sq(),bn);Xi.__exportStar(nb(),bn);Xi.__exportStar(Nq(),bn);Xi.__exportStar(Dq(),bn)});var Lq=m(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0});T_.getValidatedProcessCredentials=void 0;var Ude=(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 o(o({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey},t.SessionToken&&{sessionToken:t.SessionToken}),t.Expiration&&{expiration:new Date(t.Expiration)})};T_.getValidatedProcessCredentials=Ude});var qq=m(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.resolveProcessCredentials=void 0;var ib=be(),Bde=require("child_process"),Gde=require("util"),$de=Lq(),Vde=async(e,t)=>{let r=t[e];if(t[e]){let n=r.credential_process;if(n!==void 0){let i=(0,Gde.promisify)(Bde.exec);try{let{stdout:s}=await i(n),a;try{a=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,$de.getValidatedProcessCredentials)(e,a)}catch(s){throw new ib.CredentialsProviderError(s.message)}}else throw new ib.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new ib.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};C_.resolveProcessCredentials=Vde});var zq=m(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0});x_.fromProcess=void 0;var Mq=Oq(),Kde=qq(),Hde=(e={})=>async()=>{let t=await(0,Mq.parseKnownFiles)(e);return(0,Kde.resolveProcessCredentials)((0,Mq.getProfileName)(e),t)};x_.fromProcess=Hde});var jq=m(sb=>{"use strict";Object.defineProperty(sb,"__esModule",{value:!0});var Wde=$();Wde.__exportStar(zq(),sb)});var Fc=m(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.getHomeDir=void 0;var Jde=require("os"),Yde=require("path"),Qde=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${Yde.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,Jde.homedir)())};I_.getHomeDir=Qde});var kq=m(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.getProfileName=Jr.DEFAULT_PROFILE=Jr.ENV_PROFILE=void 0;Jr.ENV_PROFILE="AWS_PROFILE";Jr.DEFAULT_PROFILE="default";var Xde=e=>e.profile||process.env[Jr.ENV_PROFILE]||Jr.DEFAULT_PROFILE;Jr.getProfileName=Xde});var ob=m(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0});R_.getSSOTokenFilepath=void 0;var Zde=require("crypto"),eue=require("path"),tue=Fc(),rue=e=>{let r=(0,Zde.createHash)("sha1").update(e).digest("hex");return(0,eue.join)((0,tue.getHomeDir)(),".aws","sso","cache",`${r}.json`)};R_.getSSOTokenFilepath=rue});var Fq=m(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.getSSOTokenFromFile=void 0;var nue=require("fs"),iue=ob(),{readFile:sue}=nue.promises,oue=async e=>{let t=(0,iue.getSSOTokenFilepath)(e),r=await sue(t,"utf8");return JSON.parse(r)};N_.getSSOTokenFromFile=oue});var Uq=m(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.getConfigFilepath=Zi.ENV_CONFIG_PATH=void 0;var aue=require("path"),cue=Fc();Zi.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var lue=()=>process.env[Zi.ENV_CONFIG_PATH]||(0,aue.join)((0,cue.getHomeDir)(),".aws","config");Zi.getConfigFilepath=lue});var Bq=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.getCredentialsFilepath=es.ENV_CREDENTIALS_PATH=void 0;var due=require("path"),uue=Fc();es.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var fue=()=>process.env[es.ENV_CREDENTIALS_PATH]||(0,due.join)((0,uue.getHomeDir)(),".aws","credentials");es.getCredentialsFilepath=fue});var $q=m(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.getProfileData=void 0;var Gq=/^profile\s(["'])?([^\1]+)\1$/,mue=e=>Object.entries(e).filter(([t])=>Gq.test(t)).reduce((t,[r,n])=>y(o({},t),{[Gq.exec(r)[2]]:n}),o({},e.default&&{default:e.default}));P_.getProfileData=mue});var Vq=m(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});D_.parseIni=void 0;var pue=["__proto__","profile __proto__"],_ue=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],pue.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};D_.parseIni=_ue});var Kq=m(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.slurpFile=void 0;var hue=require("fs"),{readFile:yue}=hue.promises,ab={},gue=e=>(ab[e]||(ab[e]=yue(e,"utf8")),ab[e]);O_.slurpFile=gue});var cb=m(L_=>{"use strict";Object.defineProperty(L_,"__esModule",{value:!0});L_.loadSharedConfigFiles=void 0;var vue=Uq(),Sue=Bq(),wue=$q(),Hq=Vq(),Wq=Kq(),Jq=()=>({}),Eue=async(e={})=>{let{filepath:t=(0,Sue.getCredentialsFilepath)(),configFilepath:r=(0,vue.getConfigFilepath)()}=e,n=await Promise.all([(0,Wq.slurpFile)(r).then(Hq.parseIni).then(wue.getProfileData).catch(Jq),(0,Wq.slurpFile)(t).then(Hq.parseIni).catch(Jq)]);return{configFile:n[0],credentialsFile:n[1]}};L_.loadSharedConfigFiles=Eue});var Yq=m(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});q_.parseKnownFiles=void 0;var bue=cb(),Aue=async e=>{let t=await(0,bue.loadSharedConfigFiles)(e);return o(o({},t.configFile),t.credentialsFile)};q_.parseKnownFiles=Aue});var Xq=m(Qq=>{"use strict";Object.defineProperty(Qq,"__esModule",{value:!0})});var M_=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});var ts=$();ts.__exportStar(Fc(),An);ts.__exportStar(kq(),An);ts.__exportStar(ob(),An);ts.__exportStar(Fq(),An);ts.__exportStar(cb(),An);ts.__exportStar(Yq(),An);ts.__exportStar(Xq(),An)});var lb=m(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.isSsoProfile=void 0;var Tue=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");z_.isSsoProfile=Tue});var k_=m(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});j_.SSOServiceException=void 0;var Cue=D(),Uc=class extends Cue.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Uc.prototype)}};j_.SSOServiceException=Uc});var rs=m(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 eo=D(),F_=k_(),xue;(function(e){e.filterSensitiveLog=t=>o({},t)})(xue=de.AccountInfo||(de.AccountInfo={}));var Iue;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:eo.SENSITIVE_STRING})})(Iue=de.GetRoleCredentialsRequest||(de.GetRoleCredentialsRequest={}));var Zq;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:eo.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:eo.SENSITIVE_STRING})})(Zq=de.RoleCredentials||(de.RoleCredentials={}));var Rue;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:Zq.filterSensitiveLog(t.roleCredentials)})})(Rue=de.GetRoleCredentialsResponse||(de.GetRoleCredentialsResponse={}));var Bc=class extends F_.SSOServiceException{constructor(t){super(o({name:"InvalidRequestException",$fault:"client"},t)),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Bc.prototype)}};de.InvalidRequestException=Bc;var Gc=class extends F_.SSOServiceException{constructor(t){super(o({name:"ResourceNotFoundException",$fault:"client"},t)),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Gc.prototype)}};de.ResourceNotFoundException=Gc;var $c=class extends F_.SSOServiceException{constructor(t){super(o({name:"TooManyRequestsException",$fault:"client"},t)),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,$c.prototype)}};de.TooManyRequestsException=$c;var Vc=class extends F_.SSOServiceException{constructor(t){super(o({name:"UnauthorizedException",$fault:"client"},t)),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Vc.prototype)}};de.UnauthorizedException=Vc;var Nue;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:eo.SENSITIVE_STRING})})(Nue=de.ListAccountRolesRequest||(de.ListAccountRolesRequest={}));var Pue;(function(e){e.filterSensitiveLog=t=>o({},t)})(Pue=de.RoleInfo||(de.RoleInfo={}));var Due;(function(e){e.filterSensitiveLog=t=>o({},t)})(Due=de.ListAccountRolesResponse||(de.ListAccountRolesResponse={}));var Oue;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:eo.SENSITIVE_STRING})})(Oue=de.ListAccountsRequest||(de.ListAccountsRequest={}));var Lue;(function(e){e.filterSensitiveLog=t=>o({},t)})(Lue=de.ListAccountsResponse||(de.ListAccountsResponse={}));var que;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:eo.SENSITIVE_STRING})})(que=de.LogoutRequest||(de.LogoutRequest={}))});var Kc=m(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.deserializeAws_restJson1LogoutCommand=st.deserializeAws_restJson1ListAccountsCommand=st.deserializeAws_restJson1ListAccountRolesCommand=st.deserializeAws_restJson1GetRoleCredentialsCommand=st.serializeAws_restJson1LogoutCommand=st.serializeAws_restJson1ListAccountsCommand=st.serializeAws_restJson1ListAccountRolesCommand=st.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var U_=It(),xe=D(),B_=rs(),G_=k_(),Mue=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},H_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,l=o(o({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),u;return new U_.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};st.serializeAws_restJson1GetRoleCredentialsCommand=Mue;var zue=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},H_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,l=o(o(o({},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 U_.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};st.serializeAws_restJson1ListAccountRolesCommand=zue;var jue=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},H_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,l=o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),u;return new U_.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:a,path:c,query:l,body:u})};st.serializeAws_restJson1ListAccountsCommand=jue;var kue=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),a=o({},H_(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,l;return new U_.HttpRequest({protocol:n,hostname:r,port:i,method:"POST",headers:a,path:c,body:l})};st.serializeAws_restJson1LogoutCommand=kue;var Fue=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uue(e,t);let r={$metadata:sr(e),roleCredentials:void 0},n=(0,xe.expectNonNull)((0,xe.expectObject)(await ns(e.body,t)),"body");return n.roleCredentials!==void 0&&n.roleCredentials!==null&&(r.roleCredentials=Yue(n.roleCredentials,t)),Promise.resolve(r)};st.deserializeAws_restJson1GetRoleCredentialsCommand=Fue;var Uue=async(e,t)=>{let r=y(o({},e),{body:await ns(e.body,t)}),n,i="UnknownError";switch(i=W_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await $_(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await db(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await V_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await K_(r,t);default:let s=r.body;throw n=new G_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:sr(e)}),(0,xe.decorateServiceException)(n,s)}},Bue=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gue(e,t);let r={$metadata:sr(e),nextToken:void 0,roleList:void 0},n=(0,xe.expectNonNull)((0,xe.expectObject)(await ns(e.body,t)),"body");return n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,xe.expectString)(n.nextToken)),n.roleList!==void 0&&n.roleList!==null&&(r.roleList=Xue(n.roleList,t)),Promise.resolve(r)};st.deserializeAws_restJson1ListAccountRolesCommand=Bue;var Gue=async(e,t)=>{let r=y(o({},e),{body:await ns(e.body,t)}),n,i="UnknownError";switch(i=W_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await $_(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await db(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await V_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await K_(r,t);default:let s=r.body;throw n=new G_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:sr(e)}),(0,xe.decorateServiceException)(n,s)}},$ue=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vue(e,t);let r={$metadata:sr(e),accountList:void 0,nextToken:void 0},n=(0,xe.expectNonNull)((0,xe.expectObject)(await ns(e.body,t)),"body");return n.accountList!==void 0&&n.accountList!==null&&(r.accountList=Jue(n.accountList,t)),n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,xe.expectString)(n.nextToken)),Promise.resolve(r)};st.deserializeAws_restJson1ListAccountsCommand=$ue;var Vue=async(e,t)=>{let r=y(o({},e),{body:await ns(e.body,t)}),n,i="UnknownError";switch(i=W_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await $_(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await db(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await V_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await K_(r,t);default:let s=r.body;throw n=new G_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:sr(e)}),(0,xe.decorateServiceException)(n,s)}},Kue=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hue(e,t);let r={$metadata:sr(e)};return await eM(e.body,t),Promise.resolve(r)};st.deserializeAws_restJson1LogoutCommand=Kue;var Hue=async(e,t)=>{let r=y(o({},e),{body:await ns(e.body,t)}),n,i="UnknownError";switch(i=W_(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await $_(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await V_(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await K_(r,t);default:let s=r.body;throw n=new G_.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:sr(e)}),(0,xe.decorateServiceException)(n,s)}},$_=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,xe.expectString)(n.message));let i=new B_.InvalidRequestException(o({$metadata:sr(e)},r));return(0,xe.decorateServiceException)(i,e.body)},db=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,xe.expectString)(n.message));let i=new B_.ResourceNotFoundException(o({$metadata:sr(e)},r));return(0,xe.decorateServiceException)(i,e.body)},V_=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,xe.expectString)(n.message));let i=new B_.TooManyRequestsException(o({$metadata:sr(e)},r));return(0,xe.decorateServiceException)(i,e.body)},K_=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,xe.expectString)(n.message));let i=new B_.UnauthorizedException(o({$metadata:sr(e)},r));return(0,xe.decorateServiceException)(i,e.body)},Wue=(e,t)=>({accountId:(0,xe.expectString)(e.accountId),accountName:(0,xe.expectString)(e.accountName),emailAddress:(0,xe.expectString)(e.emailAddress)}),Jue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Wue(n,t)),Yue=(e,t)=>({accessKeyId:(0,xe.expectString)(e.accessKeyId),expiration:(0,xe.expectLong)(e.expiration),secretAccessKey:(0,xe.expectString)(e.secretAccessKey),sessionToken:(0,xe.expectString)(e.sessionToken)}),Que=(e,t)=>({accountId:(0,xe.expectString)(e.accountId),roleName:(0,xe.expectString)(e.roleName)}),Xue=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Que(n,t)),sr=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"]}},eM=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Zue=(e,t)=>eM(e,t).then(r=>t.utf8Encoder(r)),H_=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),ns=(e,t)=>Zue(e,t).then(r=>r.length?JSON.parse(r):{}),W_=(e,t)=>{let r=(s,a)=>Object.keys(s).find(c=>c.toLowerCase()===a.toLowerCase()),n=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},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 fb=m(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.GetRoleCredentialsCommand=void 0;var efe=G(),tfe=D(),tM=rs(),rM=Kc(),ub=class extends tfe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,efe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:tM.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:tM.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,rM.serializeAws_restJson1GetRoleCredentialsCommand)(t,r)}deserialize(t,r){return(0,rM.deserializeAws_restJson1GetRoleCredentialsCommand)(t,r)}};J_.GetRoleCredentialsCommand=ub});var Q_=m(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.ListAccountRolesCommand=void 0;var rfe=G(),nfe=D(),nM=rs(),iM=Kc(),mb=class extends nfe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,rfe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:nM.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:nM.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,iM.serializeAws_restJson1ListAccountRolesCommand)(t,r)}deserialize(t,r){return(0,iM.deserializeAws_restJson1ListAccountRolesCommand)(t,r)}};Y_.ListAccountRolesCommand=mb});var Z_=m(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.ListAccountsCommand=void 0;var ife=G(),sfe=D(),sM=rs(),oM=Kc(),pb=class extends sfe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ife.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:sM.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:sM.ListAccountsResponse.filterSensitiveLog},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,oM.serializeAws_restJson1ListAccountsCommand)(t,r)}deserialize(t,r){return(0,oM.deserializeAws_restJson1ListAccountsCommand)(t,r)}};X_.ListAccountsCommand=pb});var hb=m(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.LogoutCommand=void 0;var ofe=G(),afe=D(),cfe=rs(),aM=Kc(),_b=class extends afe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ofe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:cfe.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:u}=r;return i.resolve(f=>u.handle(f.request,n||{}),l)}serialize(t,r){return(0,aM.serializeAws_restJson1LogoutCommand)(t,r)}deserialize(t,r){return(0,aM.deserializeAws_restJson1LogoutCommand)(t,r)}};eh.LogoutCommand=_b});var cM=m((rDe,lfe)=>{lfe.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.95.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.80.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.80.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.80.0","@aws-sdk/node-http-handler":"3.94.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.85.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.85.0","@aws-sdk/util-defaults-mode-node":"3.85.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.80.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 lM=m(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.defaultRegionInfoProvider=void 0;var dfe=Rt(),ufe={"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"}},ffe={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"]}]}},mfe=async(e,t)=>(0,dfe.getRegionInfo)(e,y(o({},t),{signingService:"awsssoportal",regionHash:ufe,partitionHash:ffe}));th.defaultRegionInfoProvider=mfe});var dM=m(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.getRuntimeConfig=void 0;var pfe=ai(),_fe=lM(),hfe=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:_fe.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:pfe.parseUrl}};rh.getRuntimeConfig=hfe});var pM=m(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.getRuntimeConfig=void 0;var yfe=$(),gfe=yfe.__importDefault(cM()),nh=Rt(),vfe=Tc(),yb=yn(),Hc=kr(),uM=xc(),fM=Ic(),Sfe=Rc(),wfe=Nc(),mM=Pc(),Efe=dM(),bfe=D(),Afe=Lc(),Tfe=e=>{var t,r,n,i,s,a,c,l,u,f,h,p,v,S;let g=(0,Afe.resolveDefaultsModeConfig)(e),C=()=>g().then(bfe.loadConfigsForDefaultMode),P=(0,Efe.getRuntimeConfig)(e);return y(o(o({},P),e),{runtime:"node",defaultsMode:g,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:fM.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:fM.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:Sfe.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,wfe.defaultUserAgent)({serviceId:P.serviceId,clientVersion:gfe.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Hc.loadConfig)(yb.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,Hc.loadConfig)(nh.NODE_REGION_CONFIG_OPTIONS,nh.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new uM.NodeHttpHandler(C),retryMode:(l=e==null?void 0:e.retryMode)!==null&&l!==void 0?l:(0,Hc.loadConfig)(y(o({},yb.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await C()).retryMode||yb.DEFAULT_RETRY_MODE})),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:vfe.Hash.bind(null,"sha256"),streamCollector:(f=e==null?void 0:e.streamCollector)!==null&&f!==void 0?f:uM.streamCollector,useDualstackEndpoint:(h=e==null?void 0:e.useDualstackEndpoint)!==null&&h!==void 0?h:(0,Hc.loadConfig)(nh.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(p=e==null?void 0:e.useFipsEndpoint)!==null&&p!==void 0?p:(0,Hc.loadConfig)(nh.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(v=e==null?void 0:e.utf8Decoder)!==null&&v!==void 0?v:mM.fromUtf8,utf8Encoder:(S=e==null?void 0:e.utf8Encoder)!==null&&S!==void 0?S:mM.toUtf8})};ih.getRuntimeConfig=Tfe});var Wc=m(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.SSOClient=void 0;var _M=Rt(),Cfe=Fa(),hM=Ga(),xfe=$a(),yM=yn(),gM=Xa(),Ife=D(),Rfe=pM(),gb=class extends Ife.Client{constructor(t){let r=(0,Rfe.getRuntimeConfig)(t),n=(0,_M.resolveRegionConfig)(r),i=(0,_M.resolveEndpointsConfig)(n),s=(0,yM.resolveRetryConfig)(i),a=(0,hM.resolveHostHeaderConfig)(s),c=(0,gM.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,yM.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Cfe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,hM.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,xfe.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,gM.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};sh.SSOClient=gb});var ah=m(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.SSO=void 0;var Nfe=fb(),Pfe=Q_(),Dfe=Z_(),Ofe=hb(),Lfe=Wc(),vb=class extends Lfe.SSOClient{getRoleCredentials(t,r,n){let i=new Nfe.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 Pfe.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 Dfe.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 Ofe.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)}};oh.SSO=vb});var vM=m(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});var ch=$();ch.__exportStar(fb(),to);ch.__exportStar(Q_(),to);ch.__exportStar(Z_(),to);ch.__exportStar(hb(),to)});var SM=m(Sb=>{"use strict";Object.defineProperty(Sb,"__esModule",{value:!0});var qfe=$();qfe.__exportStar(rs(),Sb)});var EM=m(wM=>{"use strict";Object.defineProperty(wM,"__esModule",{value:!0})});var bM=m(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.paginateListAccountRoles=void 0;var Mfe=Q_(),zfe=ah(),jfe=Wc(),kfe=async(e,t,...r)=>await e.send(new Mfe.ListAccountRolesCommand(t),...r),Ffe=async(e,t,...r)=>await e.listAccountRoles(t,...r);async function*Ufe(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 zfe.SSO)s=await Ffe(e.client,t,...r);else if(e.client instanceof jfe.SSOClient)s=await kfe(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}lh.paginateListAccountRoles=Ufe});var AM=m(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.paginateListAccounts=void 0;var Bfe=Z_(),Gfe=ah(),$fe=Wc(),Vfe=async(e,t,...r)=>await e.send(new Bfe.ListAccountsCommand(t),...r),Kfe=async(e,t,...r)=>await e.listAccounts(t,...r);async function*Hfe(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 Gfe.SSO)s=await Kfe(e.client,t,...r);else if(e.client instanceof $fe.SSOClient)s=await Vfe(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let a=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}dh.paginateListAccounts=Hfe});var TM=m(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var wb=$();wb.__exportStar(EM(),Jc);wb.__exportStar(bM(),Jc);wb.__exportStar(AM(),Jc)});var CM=m(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.SSOServiceException=void 0;var Yc=$();Yc.__exportStar(ah(),Tn);Yc.__exportStar(Wc(),Tn);Yc.__exportStar(vM(),Tn);Yc.__exportStar(SM(),Tn);Yc.__exportStar(TM(),Tn);var Wfe=k_();Object.defineProperty(Tn,"SSOServiceException",{enumerable:!0,get:function(){return Wfe.SSOServiceException}})});var IM=m(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.resolveSSOCredentials=void 0;var xM=CM(),uh=be(),Jfe=M_(),Yfe=15*60*1e3,fh=!1,Qfe=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:r,ssoRoleName:n,ssoClient:i})=>{let s,a="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,Jfe.getSSOTokenFromFile)(e)}catch{throw new uh.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${a}`,fh)}if(new Date(s.expiresAt).getTime()-Date.now()<=Yfe)throw new uh.CredentialsProviderError(`The SSO session associated with this profile has expired. ${a}`,fh);let{accessToken:c}=s,l=i||new xM.SSOClient({region:r}),u;try{u=await l.send(new xM.GetRoleCredentialsCommand({accountId:t,roleName:n,accessToken:c}))}catch(S){throw uh.CredentialsProviderError.from(S,fh)}let{roleCredentials:{accessKeyId:f,secretAccessKey:h,sessionToken:p,expiration:v}={}}=u;if(!f||!h||!p||!v)throw new uh.CredentialsProviderError("SSO returns an invalid temporary credential.",fh);return{accessKeyId:f,secretAccessKey:h,sessionToken:p,expiration:new Date(v)}};mh.resolveSSOCredentials=Qfe});var Eb=m(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.validateSsoProfile=void 0;var Xfe=be(),Zfe=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 Xfe.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};ph.validateSsoProfile=Zfe});var DM=m(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.fromSSO=void 0;var RM=be(),NM=M_(),eme=lb(),PM=IM(),tme=Eb(),rme=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s}=e;if(!t&&!r&&!n&&!i){let a=await(0,NM.parseKnownFiles)(e),c=(0,NM.getProfileName)(e),l=a[c];if(!(0,eme.isSsoProfile)(l))throw new RM.CredentialsProviderError(`Profile ${c} is not configured with SSO credentials.`);let{sso_start_url:u,sso_account_id:f,sso_region:h,sso_role_name:p}=(0,tme.validateSsoProfile)(l);return(0,PM.resolveSSOCredentials)({ssoStartUrl:u,ssoAccountId:f,ssoRegion:h,ssoRoleName:p,ssoClient:s})}else{if(!t||!r||!n||!i)throw new RM.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,PM.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s})}};_h.fromSSO=rme});var LM=m(OM=>{"use strict";Object.defineProperty(OM,"__esModule",{value:!0})});var qM=m(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});var hh=$();hh.__exportStar(DM(),ro);hh.__exportStar(lb(),ro);hh.__exportStar(LM(),ro);hh.__exportStar(Eb(),ro)});var gh=m(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.httpRequest=void 0;var bb=be(),nme=require("buffer"),ime=require("http");function sme(e){return new Promise((t,r)=>{var n;let i=(0,ime.request)(y(o({method:"GET"},e),{hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{r(Object.assign(new bb.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new bb.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:a=400}=s;(a<200||300<=a)&&(r(Object.assign(new bb.ProviderError("Error response received from instance metadata service"),{statusCode:a})),i.destroy());let c=[];s.on("data",l=>{c.push(l)}),s.on("end",()=>{t(nme.Buffer.concat(c)),i.destroy()})}),i.end()})}yh.httpRequest=sme});var Ab=m(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.fromImdsCredentials=no.isImdsCredentials=void 0;var ome=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";no.isImdsCredentials=ome;var ame=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});no.fromImdsCredentials=ame});var vh=m(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.providerConfigFromInit=Yr.DEFAULT_MAX_RETRIES=Yr.DEFAULT_TIMEOUT=void 0;Yr.DEFAULT_TIMEOUT=1e3;Yr.DEFAULT_MAX_RETRIES=0;var cme=({maxRetries:e=Yr.DEFAULT_MAX_RETRIES,timeout:t=Yr.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Yr.providerConfigFromInit=cme});var Tb=m(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});Sh.retry=void 0;var lme=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};Sh.retry=lme});var zM=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.fromContainerMetadata=ot.ENV_CMDS_AUTH_TOKEN=ot.ENV_CMDS_RELATIVE_URI=ot.ENV_CMDS_FULL_URI=void 0;var wh=be(),dme=require("url"),ume=gh(),MM=Ab(),fme=vh(),mme=Tb();ot.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";ot.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";ot.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var pme=(e={})=>{let{timeout:t,maxRetries:r}=(0,fme.providerConfigFromInit)(e);return()=>(0,mme.retry)(async()=>{let n=await vme(),i=JSON.parse(await _me(t,n));if(!(0,MM.isImdsCredentials)(i))throw new wh.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,MM.fromImdsCredentials)(i)},r)};ot.fromContainerMetadata=pme;var _me=async(e,t)=>(process.env[ot.ENV_CMDS_AUTH_TOKEN]&&(t.headers=y(o({},t.headers),{Authorization:process.env[ot.ENV_CMDS_AUTH_TOKEN]})),(await(0,ume.httpRequest)(y(o({},t),{timeout:e}))).toString()),hme="169.254.170.2",yme={localhost:!0,"127.0.0.1":!0},gme={"http:":!0,"https:":!0},vme=async()=>{if(process.env[ot.ENV_CMDS_RELATIVE_URI])return{hostname:hme,path:process.env[ot.ENV_CMDS_RELATIVE_URI]};if(process.env[ot.ENV_CMDS_FULL_URI]){let e=(0,dme.parse)(process.env[ot.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in yme))throw new wh.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in gme))throw new wh.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return y(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new wh.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${ot.ENV_CMDS_RELATIVE_URI} or ${ot.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var jM=m(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.Endpoint=void 0;var Sme;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(Sme=Qc.Endpoint||(Qc.Endpoint={}))});var kM=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.ENDPOINT_CONFIG_OPTIONS=Qr.CONFIG_ENDPOINT_NAME=Qr.ENV_ENDPOINT_NAME=void 0;Qr.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Qr.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Qr.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Qr.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Qr.CONFIG_ENDPOINT_NAME],default:void 0}});var Cb=m(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.EndpointMode=void 0;var wme;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(wme=Xc.EndpointMode||(Xc.EndpointMode={}))});var FM=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.ENDPOINT_MODE_CONFIG_OPTIONS=Xr.CONFIG_ENDPOINT_MODE_NAME=Xr.ENV_ENDPOINT_MODE_NAME=void 0;var Eme=Cb();Xr.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Xr.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Xr.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Xr.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Xr.CONFIG_ENDPOINT_MODE_NAME],default:Eme.EndpointMode.IPv4}});var Ib=m(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.getInstanceMetadataEndpoint=void 0;var BM=kr(),bme=ai(),UM=jM(),Ame=kM(),xb=Cb(),Tme=FM(),Cme=async()=>(0,bme.parseUrl)(await xme()||await Ime());Eh.getInstanceMetadataEndpoint=Cme;var xme=async()=>(0,BM.loadConfig)(Ame.ENDPOINT_CONFIG_OPTIONS)(),Ime=async()=>{let e=await(0,BM.loadConfig)(Tme.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case xb.EndpointMode.IPv4:return UM.Endpoint.IPv4;case xb.EndpointMode.IPv6:return UM.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(xb.EndpointMode)}`)}}});var GM=m(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.getExtendedInstanceMetadataCredentials=void 0;var Rme=5*60,Nme=5*60,Pme="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Dme=(e,t)=>{var r;let n=Rme+Math.floor(Math.random()*Nme),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: "+Pme);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return y(o(o({},e),s?{originalExpiration:s}:{}),{expiration:i})};bh.getExtendedInstanceMetadataCredentials=Dme});var VM=m(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.staticStabilityProvider=void 0;var $M=GM(),Ome=(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,$M.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,$M.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};Ah.staticStabilityProvider=Ome});var JM=m(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.fromInstanceMetadata=void 0;var Lme=be(),Rb=gh(),KM=Ab(),qme=vh(),HM=Tb(),Mme=Ib(),zme=VM(),WM="/latest/meta-data/iam/security-credentials/",jme="/latest/api/token",kme=(e={})=>(0,zme.staticStabilityProvider)(Fme(e),{logger:e.logger});Th.fromInstanceMetadata=kme;var Fme=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,qme.providerConfigFromInit)(e),i=async(s,a)=>{let c=(await(0,HM.retry)(async()=>{let l;try{l=await Bme(a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)).trim();return(0,HM.retry)(async()=>{let l;try{l=await Gme(c,a)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},s)};return async()=>{let s=await(0,Mme.getInstanceMetadataEndpoint)();if(t)return i(n,y(o({},s),{timeout:r}));{let a;try{a=(await Ume(y(o({},s),{timeout:r}))).toString()}catch(c){if((c==null?void 0:c.statusCode)===400)throw Object.assign(c,{message:"EC2 Metadata token request returned error"});return(c.message==="TimeoutError"||[403,404,405].includes(c.statusCode))&&(t=!0),i(n,y(o({},s),{timeout:r}))}return i(n,y(o({},s),{headers:{"x-aws-ec2-metadata-token":a},timeout:r}))}}},Ume=async e=>(0,Rb.httpRequest)(y(o({},e),{path:jme,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),Bme=async e=>(await(0,Rb.httpRequest)(y(o({},e),{path:WM}))).toString(),Gme=async(e,t)=>{let r=JSON.parse((await(0,Rb.httpRequest)(y(o({},t),{path:WM+e}))).toString());if(!(0,KM.isImdsCredentials)(r))throw new Lme.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,KM.fromImdsCredentials)(r)}});var QM=m(YM=>{"use strict";Object.defineProperty(YM,"__esModule",{value:!0})});var XM=m(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.getInstanceMetadataEndpoint=Zr.httpRequest=void 0;var Ch=$();Ch.__exportStar(zM(),Zr);Ch.__exportStar(JM(),Zr);Ch.__exportStar(vh(),Zr);Ch.__exportStar(QM(),Zr);var $me=gh();Object.defineProperty(Zr,"httpRequest",{enumerable:!0,get:function(){return $me.httpRequest}});var Vme=Ib();Object.defineProperty(Zr,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return Vme.getInstanceMetadataEndpoint}})});var ZM=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.remoteProvider=is.ENV_IMDS_DISABLED=void 0;var xh=XM(),Kme=be();is.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Hme=e=>process.env[xh.ENV_CMDS_RELATIVE_URI]||process.env[xh.ENV_CMDS_FULL_URI]?(0,xh.fromContainerMetadata)(e):process.env[is.ENV_IMDS_DISABLED]?async()=>{throw new Kme.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,xh.fromInstanceMetadata)(e);is.remoteProvider=Hme});var ez=m(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.defaultProvider=void 0;var Wme=Q0(),Jme=gq(),Yme=jq(),Qme=qM(),Xme=ZE(),Nb=be(),Zme=M_(),epe=ZM(),tpe=(e={})=>(0,Nb.memoize)((0,Nb.chain)(...e.profile||process.env[Zme.ENV_PROFILE]?[]:[(0,Wme.fromEnv)()],(0,Qme.fromSSO)(e),(0,Jme.fromIni)(e),(0,Yme.fromProcess)(e),(0,Xme.fromTokenFile)(e),(0,epe.remoteProvider)(e),async()=>{throw new Nb.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);Ih.defaultProvider=tpe});var Db=m(Pb=>{"use strict";Object.defineProperty(Pb,"__esModule",{value:!0});var rpe=$();rpe.__exportStar(ez(),Pb)});var tz=m(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.defaultRegionInfoProvider=void 0;var npe=Rt(),ipe={"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"]}]}},spe={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"]}]}},ope=async(e,t)=>(0,npe.getRegionInfo)(e,y(o({},t),{signingService:"sts",regionHash:ipe,partitionHash:spe}));Rh.defaultRegionInfoProvider=ope});var rz=m(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.getRuntimeConfig=void 0;var ape=ai(),cpe=tz(),lpe=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:cpe.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:ape.parseUrl}};Nh.getRuntimeConfig=lpe});var oz=m(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.getRuntimeConfig=void 0;var dpe=$(),upe=dpe.__importDefault(OD()),fpe=J0(),Ph=Rt(),mpe=Db(),ppe=Tc(),Ob=yn(),Zc=kr(),nz=xc(),iz=Ic(),_pe=Rc(),hpe=Nc(),sz=Pc(),ype=rz(),gpe=D(),vpe=Lc(),Spe=e=>{var t,r,n,i,s,a,c,l,u,f,h,p,v,S,g;let C=(0,vpe.resolveDefaultsModeConfig)(e),P=()=>C().then(gpe.loadConfigsForDefaultMode),x=(0,ype.getRuntimeConfig)(e);return y(o(o({},x),e),{runtime:"node",defaultsMode:C,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:iz.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:iz.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:_pe.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,fpe.decorateDefaultCredentialProvider)(mpe.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,hpe.defaultUserAgent)({serviceId:x.serviceId,clientVersion:upe.default.version}),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:(0,Zc.loadConfig)(Ob.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:(0,Zc.loadConfig)(Ph.NODE_REGION_CONFIG_OPTIONS,Ph.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(l=e==null?void 0:e.requestHandler)!==null&&l!==void 0?l:new nz.NodeHttpHandler(P),retryMode:(u=e==null?void 0:e.retryMode)!==null&&u!==void 0?u:(0,Zc.loadConfig)(y(o({},Ob.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await P()).retryMode||Ob.DEFAULT_RETRY_MODE})),sha256:(f=e==null?void 0:e.sha256)!==null&&f!==void 0?f:ppe.Hash.bind(null,"sha256"),streamCollector:(h=e==null?void 0:e.streamCollector)!==null&&h!==void 0?h:nz.streamCollector,useDualstackEndpoint:(p=e==null?void 0:e.useDualstackEndpoint)!==null&&p!==void 0?p:(0,Zc.loadConfig)(Ph.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(v=e==null?void 0:e.useFipsEndpoint)!==null&&v!==void 0?v:(0,Zc.loadConfig)(Ph.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(S=e==null?void 0:e.utf8Decoder)!==null&&S!==void 0?S:sz.fromUtf8,utf8Encoder:(g=e==null?void 0:e.utf8Encoder)!==null&&g!==void 0?g:sz.toUtf8})};Dh.getRuntimeConfig=Spe});var Lh=m(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.STSClient=void 0;var az=Rt(),wpe=Fa(),cz=Ga(),Epe=$a(),lz=yn(),bpe=DD(),dz=Xa(),Ape=D(),Tpe=oz(),el=class extends Ape.Client{constructor(t){let r=(0,Tpe.getRuntimeConfig)(t),n=(0,az.resolveRegionConfig)(r),i=(0,az.resolveEndpointsConfig)(n),s=(0,lz.resolveRetryConfig)(i),a=(0,cz.resolveHostHeaderConfig)(s),c=(0,bpe.resolveStsAuthConfig)(a,{stsClientCtor:el}),l=(0,dz.resolveUserAgentConfig)(c);super(l),this.config=l,this.middlewareStack.use((0,lz.getRetryPlugin)(this.config)),this.middlewareStack.use((0,wpe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,cz.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Epe.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,dz.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Oh.STSClient=el});var uz=m(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.STS=void 0;var Cpe=hm(),xpe=z0(),Ipe=vm(),Rpe=F0(),Npe=B0(),Ppe=$0(),Dpe=K0(),Ope=W0(),Lpe=Lh(),Lb=class extends Lpe.STSClient{assumeRole(t,r,n){let i=new Cpe.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 xpe.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 Ipe.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 Rpe.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 Npe.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 Ppe.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 Dpe.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 Ope.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)}};qh.STS=Lb});var fz=m(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});var li=$();li.__exportStar(hm(),en);li.__exportStar(z0(),en);li.__exportStar(vm(),en);li.__exportStar(F0(),en);li.__exportStar(B0(),en);li.__exportStar($0(),en);li.__exportStar(K0(),en);li.__exportStar(W0(),en)});var _z=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.decorateDefaultCredentialProvider=tn.getDefaultRoleAssumerWithWebIdentity=tn.getDefaultRoleAssumer=void 0;var mz=J0(),pz=Lh(),qpe=(e={})=>(0,mz.getDefaultRoleAssumer)(e,pz.STSClient);tn.getDefaultRoleAssumer=qpe;var Mpe=(e={})=>(0,mz.getDefaultRoleAssumerWithWebIdentity)(e,pz.STSClient);tn.getDefaultRoleAssumerWithWebIdentity=Mpe;var zpe=e=>t=>e(o({roleAssumer:(0,tn.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,tn.getDefaultRoleAssumerWithWebIdentity)(t)},t));tn.decorateDefaultCredentialProvider=zpe});var hz=m(qb=>{"use strict";Object.defineProperty(qb,"__esModule",{value:!0});var jpe=$();jpe.__exportStar(lr(),qb)});var yz=m(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.STSServiceException=void 0;var tl=$();tl.__exportStar(uz(),Cn);tl.__exportStar(Lh(),Cn);tl.__exportStar(fz(),Cn);tl.__exportStar(_z(),Cn);tl.__exportStar(hz(),Cn);var kpe=rm();Object.defineProperty(Cn,"STSServiceException",{enumerable:!0,get:function(){return kpe.STSServiceException}})});var gz=m(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.defaultRegionInfoProvider=void 0;var Fpe=Rt(),Upe={"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"]}]}},Bpe={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"]}]}},Gpe=async(e,t)=>(0,Fpe.getRegionInfo)(e,y(o({},t),{signingService:"dynamodb",regionHash:Upe,partitionHash:Bpe}));Mh.defaultRegionInfoProvider=Gpe});var vz=m(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.getRuntimeConfig=void 0;var $pe=ai(),Vpe=gz(),Kpe=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:Vpe.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:$pe.parseUrl}};zh.getRuntimeConfig=Kpe});var bz=m(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.getRuntimeConfig=void 0;var Hpe=$(),Wpe=Hpe.__importDefault(yP()),Jpe=yz(),jh=Rt(),Ype=Db(),Qpe=Tc(),Xpe=Jw(),Mb=yn(),io=kr(),Sz=xc(),wz=Ic(),Zpe=Rc(),e_e=Nc(),Ez=Pc(),t_e=vz(),r_e=D(),n_e=Lc(),i_e=e=>{var t,r,n,i,s,a,c,l,u,f,h,p,v,S,g,C;let P=(0,n_e.resolveDefaultsModeConfig)(e),x=()=>P().then(r_e.loadConfigsForDefaultMode),k=(0,t_e.getRuntimeConfig)(e);return y(o(o({},k),e),{runtime:"node",defaultsMode:P,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:wz.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:wz.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:Zpe.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,Jpe.decorateDefaultCredentialProvider)(Ype.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,e_e.defaultUserAgent)({serviceId:k.serviceId,clientVersion:Wpe.default.version}),endpointDiscoveryEnabledProvider:(a=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&a!==void 0?a:(0,io.loadConfig)(Xpe.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(c=e==null?void 0:e.maxAttempts)!==null&&c!==void 0?c:(0,io.loadConfig)(Mb.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(l=e==null?void 0:e.region)!==null&&l!==void 0?l:(0,io.loadConfig)(jh.NODE_REGION_CONFIG_OPTIONS,jh.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(u=e==null?void 0:e.requestHandler)!==null&&u!==void 0?u:new Sz.NodeHttpHandler(x),retryMode:(f=e==null?void 0:e.retryMode)!==null&&f!==void 0?f:(0,io.loadConfig)(y(o({},Mb.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await x()).retryMode||Mb.DEFAULT_RETRY_MODE})),sha256:(h=e==null?void 0:e.sha256)!==null&&h!==void 0?h:Qpe.Hash.bind(null,"sha256"),streamCollector:(p=e==null?void 0:e.streamCollector)!==null&&p!==void 0?p:Sz.streamCollector,useDualstackEndpoint:(v=e==null?void 0:e.useDualstackEndpoint)!==null&&v!==void 0?v:(0,io.loadConfig)(jh.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(S=e==null?void 0:e.useFipsEndpoint)!==null&&S!==void 0?S:(0,io.loadConfig)(jh.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(g=e==null?void 0:e.utf8Decoder)!==null&&g!==void 0?g:Ez.fromUtf8,utf8Encoder:(C=e==null?void 0:e.utf8Encoder)!==null&&C!==void 0?C:Ez.toUtf8})};kh.getRuntimeConfig=i_e});var di=m(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});Fh.DynamoDBClient=void 0;var Az=Rt(),s_e=Fa(),o_e=Jw(),Tz=Ga(),a_e=$a(),Cz=yn(),xz=gn(),Iz=Xa(),c_e=D(),l_e=nu(),d_e=bz(),zb=class extends c_e.Client{constructor(t){let r=(0,d_e.getRuntimeConfig)(t),n=(0,Az.resolveRegionConfig)(r),i=(0,Az.resolveEndpointsConfig)(n),s=(0,Cz.resolveRetryConfig)(i),a=(0,Tz.resolveHostHeaderConfig)(s),c=(0,xz.resolveAwsAuthConfig)(a),l=(0,Iz.resolveUserAgentConfig)(c),u=(0,o_e.resolveEndpointDiscoveryConfig)(l,{endpointDiscoveryCommandCtor:l_e.DescribeEndpointsCommand});super(u),this.config=u,this.middlewareStack.use((0,Cz.getRetryPlugin)(this.config)),this.middlewareStack.use((0,s_e.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Tz.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,a_e.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,xz.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Iz.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Fh.DynamoDBClient=zb});var ss=m(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.DynamoDB=void 0;var u_e=Qv(),f_e=Zv(),m_e=tS(),p_e=nS(),__e=sS(),h_e=aS(),y_e=lS(),g_e=uS(),v_e=mS(),S_e=_S(),w_e=yS(),E_e=vS(),b_e=nu(),A_e=ES(),T_e=AS(),C_e=CS(),x_e=IS(),I_e=NS(),R_e=Ma(),N_e=OS(),P_e=qS(),D_e=zS(),O_e=kS(),L_e=US(),q_e=GS(),M_e=VS(),z_e=HS(),j_e=JS(),k_e=Su(),F_e=Eu(),U_e=ZS(),B_e=Tu(),G_e=rw(),$_e=iw(),V_e=Ru(),K_e=aw(),H_e=lw(),W_e=Ou(),J_e=fw(),Y_e=pw(),Q_e=hw(),X_e=gw(),Z_e=Sw(),ehe=Ew(),the=Aw(),rhe=Cw(),nhe=Iw(),ihe=Nw(),she=Dw(),ohe=Lw(),ahe=di(),jb=class extends ahe.DynamoDBClient{batchExecuteStatement(t,r,n){let i=new u_e.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 f_e.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 m_e.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 p_e.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 __e.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 h_e.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 y_e.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 g_e.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 v_e.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 S_e.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 w_e.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 E_e.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 b_e.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 A_e.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 T_e.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 C_e.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 x_e.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 I_e.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 R_e.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 N_e.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 P_e.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 D_e.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 O_e.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 L_e.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 q_e.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 M_e.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 z_e.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 j_e.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 k_e.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 F_e.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 U_e.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 B_e.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 G_e.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 $_e.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 V_e.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 K_e.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 H_e.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 W_e.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 J_e.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 Y_e.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 Q_e.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 X_e.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 Z_e.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 ehe.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 the.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 rhe.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 nhe.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 ihe.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 she.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 ohe.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)}};Uh.DynamoDB=jb});var Rz=m(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var ie=$();ie.__exportStar(Qv(),Q);ie.__exportStar(Zv(),Q);ie.__exportStar(tS(),Q);ie.__exportStar(nS(),Q);ie.__exportStar(sS(),Q);ie.__exportStar(aS(),Q);ie.__exportStar(lS(),Q);ie.__exportStar(uS(),Q);ie.__exportStar(mS(),Q);ie.__exportStar(_S(),Q);ie.__exportStar(yS(),Q);ie.__exportStar(vS(),Q);ie.__exportStar(nu(),Q);ie.__exportStar(ES(),Q);ie.__exportStar(AS(),Q);ie.__exportStar(CS(),Q);ie.__exportStar(IS(),Q);ie.__exportStar(NS(),Q);ie.__exportStar(Ma(),Q);ie.__exportStar(OS(),Q);ie.__exportStar(qS(),Q);ie.__exportStar(zS(),Q);ie.__exportStar(kS(),Q);ie.__exportStar(US(),Q);ie.__exportStar(GS(),Q);ie.__exportStar(VS(),Q);ie.__exportStar(HS(),Q);ie.__exportStar(JS(),Q);ie.__exportStar(Su(),Q);ie.__exportStar(Eu(),Q);ie.__exportStar(ZS(),Q);ie.__exportStar(Tu(),Q);ie.__exportStar(rw(),Q);ie.__exportStar(iw(),Q);ie.__exportStar(Ru(),Q);ie.__exportStar(aw(),Q);ie.__exportStar(lw(),Q);ie.__exportStar(Ou(),Q);ie.__exportStar(fw(),Q);ie.__exportStar(pw(),Q);ie.__exportStar(hw(),Q);ie.__exportStar(gw(),Q);ie.__exportStar(Sw(),Q);ie.__exportStar(Ew(),Q);ie.__exportStar(Aw(),Q);ie.__exportStar(Cw(),Q);ie.__exportStar(Iw(),Q);ie.__exportStar(Nw(),Q);ie.__exportStar(Dw(),Q);ie.__exportStar(Lw(),Q)});var Nz=m(kb=>{"use strict";Object.defineProperty(kb,"__esModule",{value:!0});var che=$();che.__exportStar(Y(),kb)});var Dz=m(Pz=>{"use strict";Object.defineProperty(Pz,"__esModule",{value:!0})});var Oz=m(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});Bh.paginateListContributorInsights=void 0;var lhe=Su(),dhe=ss(),uhe=di(),fhe=async(e,t,...r)=>await e.send(new lhe.ListContributorInsightsCommand(t),...r),mhe=async(e,t,...r)=>await e.listContributorInsights(t,...r);async function*phe(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 dhe.DynamoDB)s=await mhe(e.client,t,...r);else if(e.client instanceof uhe.DynamoDBClient)s=await fhe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let a=n;n=s.NextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}Bh.paginateListContributorInsights=phe});var Lz=m(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});Gh.paginateListExports=void 0;var _he=Eu(),hhe=ss(),yhe=di(),ghe=async(e,t,...r)=>await e.send(new _he.ListExportsCommand(t),...r),vhe=async(e,t,...r)=>await e.listExports(t,...r);async function*She(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 hhe.DynamoDB)s=await vhe(e.client,t,...r);else if(e.client instanceof yhe.DynamoDBClient)s=await ghe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let a=n;n=s.NextToken,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}Gh.paginateListExports=She});var qz=m($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});$h.paginateListTables=void 0;var whe=Tu(),Ehe=ss(),bhe=di(),Ahe=async(e,t,...r)=>await e.send(new whe.ListTablesCommand(t),...r),The=async(e,t,...r)=>await e.listTables(t,...r);async function*Che(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 Ehe.DynamoDB)s=await The(e.client,t,...r);else if(e.client instanceof bhe.DynamoDBClient)s=await Ahe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let a=n;n=s.LastEvaluatedTableName,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}$h.paginateListTables=Che});var Mz=m(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.paginateQuery=void 0;var xhe=Ru(),Ihe=ss(),Rhe=di(),Nhe=async(e,t,...r)=>await e.send(new xhe.QueryCommand(t),...r),Phe=async(e,t,...r)=>await e.query(t,...r);async function*Dhe(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 Ihe.DynamoDB)s=await Phe(e.client,t,...r);else if(e.client instanceof Rhe.DynamoDBClient)s=await Nhe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let a=n;n=s.LastEvaluatedKey,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}Vh.paginateQuery=Dhe});var zz=m(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.paginateScan=void 0;var Ohe=Ou(),Lhe=ss(),qhe=di(),Mhe=async(e,t,...r)=>await e.send(new Ohe.ScanCommand(t),...r),zhe=async(e,t,...r)=>await e.scan(t,...r);async function*jhe(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 Lhe.DynamoDB)s=await zhe(e.client,t,...r);else if(e.client instanceof qhe.DynamoDBClient)s=await Mhe(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let a=n;n=s.LastEvaluatedKey,i=!!(n&&(!e.stopOnSameToken||n!==a))}return void 0}Kh.paginateScan=jhe});var jz=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var so=$();so.__exportStar(Dz(),ui);so.__exportStar(Oz(),ui);so.__exportStar(Lz(),ui);so.__exportStar(qz(),ui);so.__exportStar(Mz(),ui);so.__exportStar(zz(),ui)});var Fb=m(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});Hh.sleep=void 0;var khe=e=>new Promise(t=>setTimeout(t,e*1e3));Hh.sleep=khe});var Jh=m(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.checkExceptions=xn.WaiterState=xn.waiterServiceDefaults=void 0;xn.waiterServiceDefaults={minDelay:2,maxDelay:120};var Wh;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(Wh=xn.WaiterState||(xn.WaiterState={}));var Fhe=e=>{if(e.state===Wh.ABORTED){let t=new Error(`${JSON.stringify(y(o({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===Wh.TIMEOUT){let t=new Error(`${JSON.stringify(y(o({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==Wh.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};xn.checkExceptions=Fhe});var kz=m(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});Qh.runPolling=void 0;var Uhe=Fb(),Yh=Jh(),Bhe=(e,t,r,n)=>{if(n>r)return t;let i=e*2**(n-1);return Ghe(e,i)},Ghe=(e,t)=>e+Math.random()*(t-e),$he=async({minDelay:e,maxDelay:t,maxWaitTime:r,abortController:n,client:i,abortSignal:s},a,c)=>{var l;let{state:u}=await c(i,a);if(u!==Yh.WaiterState.RETRY)return{state:u};let f=1,h=Date.now()+r*1e3,p=Math.log(t/e)/Math.log(2)+1;for(;;){if(((l=n==null?void 0:n.signal)===null||l===void 0?void 0:l.aborted)||(s==null?void 0:s.aborted))return{state:Yh.WaiterState.ABORTED};let v=Bhe(e,t,p,f);if(Date.now()+v*1e3>h)return{state:Yh.WaiterState.TIMEOUT};await(0,Uhe.sleep)(v);let{state:S}=await c(i,a);if(S!==Yh.WaiterState.RETRY)return{state:S};f+=1}};Qh.runPolling=$he});var Fz=m(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});Xh.validateWaiterOptions=void 0;var Vhe=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`)};Xh.validateWaiterOptions=Vhe});var Bz=m(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var Uz=$();Uz.__exportStar(Fb(),Zh);Uz.__exportStar(Fz(),Zh)});var Vz=m(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});ey.createWaiter=void 0;var Khe=kz(),Hhe=Bz(),$z=Jh(),Gz=async e=>new Promise(t=>{e.onabort=()=>t({state:$z.WaiterState.ABORTED})}),Whe=async(e,t,r)=>{let n=o(o({},$z.waiterServiceDefaults),e);(0,Hhe.validateWaiterOptions)(n);let i=[(0,Khe.runPolling)(n,t,r)];return e.abortController&&i.push(Gz(e.abortController.signal)),e.abortSignal&&i.push(Gz(e.abortSignal)),Promise.race(i)};ey.createWaiter=Whe});var Ub=m(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var Kz=$();Kz.__exportStar(Vz(),ty);Kz.__exportStar(Jh(),ty)});var Wz=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.waitUntilTableExists=ao.waitForTableExists=void 0;var oo=Ub(),Jhe=Ma(),Hz=async(e,t)=>{let r;try{let n=await e.send(new Jhe.DescribeTableCommand(t));r=n;try{if((()=>n.Table.TableStatus)()==="ACTIVE")return{state:oo.WaiterState.SUCCESS,reason:r}}catch{}}catch(n){if(r=n,n.name&&n.name=="ResourceNotFoundException")return{state:oo.WaiterState.RETRY,reason:r}}return{state:oo.WaiterState.RETRY,reason:r}},Yhe=async(e,t)=>{let r={minDelay:20,maxDelay:120};return(0,oo.createWaiter)(o(o({},r),e),t,Hz)};ao.waitForTableExists=Yhe;var Qhe=async(e,t)=>{let r={minDelay:20,maxDelay:120},n=await(0,oo.createWaiter)(o(o({},r),e),t,Hz);return(0,oo.checkExceptions)(n)};ao.waitUntilTableExists=Qhe});var Yz=m(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.waitUntilTableNotExists=co.waitForTableNotExists=void 0;var rl=Ub(),Xhe=Ma(),Jz=async(e,t)=>{let r;try{r=await e.send(new Xhe.DescribeTableCommand(t))}catch(n){if(r=n,n.name&&n.name=="ResourceNotFoundException")return{state:rl.WaiterState.SUCCESS,reason:r}}return{state:rl.WaiterState.RETRY,reason:r}},Zhe=async(e,t)=>{let r={minDelay:20,maxDelay:120};return(0,rl.createWaiter)(o(o({},r),e),t,Jz)};co.waitForTableNotExists=Zhe;var eye=async(e,t)=>{let r={minDelay:20,maxDelay:120},n=await(0,rl.createWaiter)(o(o({},r),e),t,Jz);return(0,rl.checkExceptions)(n)};co.waitUntilTableNotExists=eye});var Xz=m(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var Qz=$();Qz.__exportStar(Wz(),ry);Qz.__exportStar(Yz(),ry)});var bt=m(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.DynamoDBServiceException=void 0;var lo=$();lo.__exportStar(ss(),rn);lo.__exportStar(di(),rn);lo.__exportStar(Rz(),rn);lo.__exportStar(Nz(),rn);lo.__exportStar(jz(),rn);lo.__exportStar(Xz(),rn);var tye=pd();Object.defineProperty(rn,"DynamoDBServiceException",{enumerable:!0,get:function(){return tye.DynamoDBServiceException}})});var Bb=m(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.convertToAttr=void 0;var rye=(e,t)=>{var r,n,i,s,a,c;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 ny();if(Array.isArray(e))return nye(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Set")return iye(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Map")return sye(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 Zz(e,t);if(sj(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?ny():tj(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"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="Number")return ij(e);if(typeof e=="bigint")return nj(e);if(typeof e=="string"||((c=e==null?void 0:e.constructor)===null||c===void 0?void 0:c.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?ny():rj(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return Zz(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};os.convertToAttr=rye;var nye=(e,t)=>({L:e.filter(r=>!(t!=null&&t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&r!==void 0).map(r=>(0,os.convertToAttr)(r,t))}),iye=(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 ny();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(ij).map(i=>i.N)};if(typeof n=="bigint")return{NS:Array.from(r).map(nj).map(i=>i.N)};if(typeof n=="string")return{SS:Array.from(r).map(rj).map(i=>i.S)};if(sj(n))return{BS:Array.from(r).map(tj).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},sye=(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,os.convertToAttr)(s,t));return n})(e)}),Zz=(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,os.convertToAttr)(s,t))}return n})(e)}),ny=()=>({NULL:!0}),tj=e=>({B:e}),rj=e=>({S:e.toString()}),nj=e=>({N:e.toString()}),ej=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},ij=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?ej(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&ej(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},sj=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 Gb=m(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.convertToNative=void 0;var oye=(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 oj(n,t);case"B":return cj(n);case"S":return aj(n);case"L":return aye(n,t);case"M":return cye(n,t);case"NS":return new Set(n.map(i=>oj(i,t)));case"BS":return new Set(n.map(cj));case"SS":return new Set(n.map(aj));default:throw new Error(`Unsupported type passed: ${r}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};uo.convertToNative=oye;var oj=(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},aj=e=>e,cj=e=>e,aye=(e,t)=>e.map(r=>(0,uo.convertToNative)(r,t)),cye=(e,t)=>Object.entries(e).reduce((r,[n,i])=>y(o({},r),{[n]:(0,uo.convertToNative)(i,t)}),{})});var lj=m(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.marshall=void 0;var lye=Bb();function dye(e,t){let r=(0,lye.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}}iy.marshall=dye});var uj=m(dj=>{"use strict";Object.defineProperty(dj,"__esModule",{value:!0})});var fj=m(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.unmarshall=void 0;var uye=Gb(),fye=(e,t)=>(0,uye.convertToNative)({M:e},t);sy.unmarshall=fye});var mj=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});var nl=$();nl.__exportStar(Bb(),as);nl.__exportStar(Gb(),as);nl.__exportStar(lj(),as);nl.__exportStar(uj(),as);nl.__exportStar(fj(),as)});var Ot=m(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.unmarshallOutput=fo.marshallInput=void 0;var _j=mj(),pj=(e,t,r)=>{if(e!==void 0)return!r||Array.isArray(r)&&r.length===0?t(e):Array.isArray(r)?$b(e,t,r):mye(e,t,r.children)},hj=(e,t,r)=>Array.isArray(e)?e.map(n=>pj(n,t,r)):pj(e,t,r),$b=(e,t,r)=>r.reduce((n,{key:i,children:s})=>y(o({},n),{[i]:hj(n[i],t,s)}),e),mye=(e,t,r)=>Object.entries(e).reduce((n,[i,s])=>y(o({},n),{[i]:hj(s,t,r)}),{}),pye=(e,t,r)=>$b(e,i=>(0,_j.marshall)(i,r),t);fo.marshallInput=pye;var _ye=(e,t,r)=>$b(e,i=>(0,_j.unmarshall)(i,r),t);fo.unmarshallOutput=_ye});var Kb=m(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});oy.BatchExecuteStatementCommand=void 0;var hye=bt(),yye=D(),yj=Ot(),Vb=class extends yye.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||{},a=new hye.BatchExecuteStatementCommand((0,yj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,yj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};oy.BatchExecuteStatementCommand=Vb});var Wb=m(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.BatchGetCommand=void 0;var gye=bt(),vye=D(),gj=Ot(),Hb=class extends vye.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||{},a=new gye.BatchGetItemCommand((0,gj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,gj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};ay.BatchGetCommand=Hb});var Yb=m(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});cy.BatchWriteCommand=void 0;var Sye=bt(),wye=D(),vj=Ot(),Jb=class extends wye.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||{},a=new Sye.BatchWriteItemCommand((0,vj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,vj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};cy.BatchWriteCommand=Jb});var Xb=m(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});ly.DeleteCommand=void 0;var Eye=bt(),bye=D(),Sj=Ot(),Qb=class extends bye.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||{},a=new Eye.DeleteItemCommand((0,Sj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,Sj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};ly.DeleteCommand=Qb});var eA=m(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.ExecuteStatementCommand=void 0;var Aye=bt(),Tye=D(),wj=Ot(),Zb=class extends Tye.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||{},a=new Aye.ExecuteStatementCommand((0,wj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,wj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};dy.ExecuteStatementCommand=Zb});var rA=m(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});uy.ExecuteTransactionCommand=void 0;var Cye=bt(),xye=D(),Ej=Ot(),tA=class extends xye.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||{},a=new Cye.ExecuteTransactionCommand((0,Ej.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,Ej.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};uy.ExecuteTransactionCommand=tA});var iA=m(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});fy.GetCommand=void 0;var Iye=bt(),Rye=D(),bj=Ot(),nA=class extends Rye.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||{},a=new Iye.GetItemCommand((0,bj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,bj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};fy.GetCommand=nA});var oA=m(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});my.PutCommand=void 0;var Nye=bt(),Pye=D(),Aj=Ot(),sA=class extends Pye.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||{},a=new Nye.PutItemCommand((0,Aj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,Aj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};my.PutCommand=sA});var _y=m(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});py.QueryCommand=void 0;var Dye=bt(),Oye=D(),Tj=Ot(),aA=class extends Oye.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||{},a=new Dye.QueryCommand((0,Tj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,Tj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};py.QueryCommand=aA});var yy=m(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.ScanCommand=void 0;var Lye=bt(),qye=D(),Cj=Ot(),cA=class extends qye.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||{},a=new Lye.ScanCommand((0,Cj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,Cj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};hy.ScanCommand=cA});var dA=m(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});gy.TransactGetCommand=void 0;var Mye=bt(),zye=D(),xj=Ot(),lA=class extends zye.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||{},a=new Mye.TransactGetItemsCommand((0,xj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,xj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};gy.TransactGetCommand=lA});var fA=m(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});vy.TransactWriteCommand=void 0;var jye=bt(),kye=D(),Ij=Ot(),uA=class extends kye.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||{},a=new jye.TransactWriteItemsCommand((0,Ij.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,Ij.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};vy.TransactWriteCommand=uA});var pA=m(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});Sy.UpdateCommand=void 0;var Fye=bt(),Uye=D(),Rj=Ot(),mA=class extends Uye.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||{},a=new Fye.UpdateItemCommand((0,Rj.marshallInput)(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,r,n);return async()=>{let l=await c(a);return y(o({},l),{output:(0,Rj.unmarshallOutput)(l.output,this.outputKeyNodes,s)})}}};Sy.UpdateCommand=mA});var sl=m(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.DynamoDBDocumentClient=void 0;var Bye=D(),il=class extends Bye.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 il(t,r)}destroy(){}};wy.DynamoDBDocumentClient=il});var by=m(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});Ey.DynamoDBDocument=void 0;var Gye=Kb(),$ye=Wb(),Vye=Yb(),Kye=Xb(),Hye=eA(),Wye=rA(),Jye=iA(),Yye=oA(),Qye=_y(),Xye=yy(),Zye=dA(),ege=fA(),tge=pA(),rge=sl(),ol=class extends rge.DynamoDBDocumentClient{static from(t,r){return new ol(t,r)}batchExecuteStatement(t,r,n){let i=new Gye.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 $ye.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 Vye.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 Kye.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 Hye.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 Wye.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 Jye.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 Yye.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 Qye.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 Xye.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 Zye.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 ege.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 tge.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)}};Ey.DynamoDBDocument=ol});var Nj=m(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});var Kt=$();Kt.__exportStar(Kb(),At);Kt.__exportStar(Wb(),At);Kt.__exportStar(Yb(),At);Kt.__exportStar(Xb(),At);Kt.__exportStar(eA(),At);Kt.__exportStar(rA(),At);Kt.__exportStar(iA(),At);Kt.__exportStar(oA(),At);Kt.__exportStar(_y(),At);Kt.__exportStar(yy(),At);Kt.__exportStar(dA(),At);Kt.__exportStar(fA(),At);Kt.__exportStar(pA(),At)});var Dj=m(Pj=>{"use strict";Object.defineProperty(Pj,"__esModule",{value:!0})});var Oj=m(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});Ay.paginateQuery=void 0;var nge=_y(),ige=by(),sge=sl(),oge=async(e,t,...r)=>await e.send(new nge.QueryCommand(t),...r),age=async(e,t,...r)=>await e.query(t,...r);async function*cge(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 ige.DynamoDBDocument)s=await age(e.client,t,...r);else if(e.client instanceof sge.DynamoDBDocumentClient)s=await oge(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,n=s.LastEvaluatedKey,i=!!n}return void 0}Ay.paginateQuery=cge});var Lj=m(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});Ty.paginateScan=void 0;var lge=yy(),dge=by(),uge=sl(),fge=async(e,t,...r)=>await e.send(new lge.ScanCommand(t),...r),mge=async(e,t,...r)=>await e.scan(t,...r);async function*pge(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 dge.DynamoDBDocument)s=await mge(e.client,t,...r);else if(e.client instanceof uge.DynamoDBDocumentClient)s=await fge(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,n=s.LastEvaluatedKey,i=!!n}return void 0}Ty.paginateScan=pge});var qj=m(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var _A=$();_A.__exportStar(Dj(),al);_A.__exportStar(Oj(),al);_A.__exportStar(Lj(),al)});var Mj=m(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});var Cy=$();Cy.__exportStar(by(),mo);Cy.__exportStar(sl(),mo);Cy.__exportStar(Nj(),mo);Cy.__exportStar(qj(),mo)});var zj=m(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});xy.DBManager=void 0;var _ge=Mj(),hA=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=_ge.DynamoDBDocument.from(this._client)}get tableName(){return this._tableName}set tableName(t){this._tableName=t}};xy.DBManager=hA});var jj=m(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.TransformationType=void 0;var hge;(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"})(hge=cl.TransformationType||(cl.TransformationType={}))});var ll=m(cs=>{"use strict";var yge=cs&&cs.__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]}),gge=cs&&cs.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&yge(t,e,r)};Object.defineProperty(cs,"__esModule",{value:!0});gge(jj(),cs)});var kj=m(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});Iy.MetadataStorage=void 0;var In=ll(),yA=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===In.TransformationType.CLASS_TO_CLASS||n===In.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?n===In.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===In.TransformationType.CLASS_TO_CLASS||r===In.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===In.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===In.TransformationType.CLASS_TO_CLASS||r===In.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===In.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(a=>a.propertyName!==void 0));let s=[];for(let a of this.getAncestors(r)){let c=t.get(a);if(c){let l=Array.from(c.values()).filter(u=>u.propertyName!==void 0);s.push(...l)}}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 a=t.get(s);if(a){let c=a.get(n);if(c)return c}}}findMetadatas(t,r,n){let i=t.get(r),s;i&&(s=i.get(n));let a=[];for(let c of this.getAncestors(r)){let l=t.get(c);l&&l.has(n)&&a.push(...l.get(n))}return a.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)}};Iy.MetadataStorage=yA});var po=m(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});Ry.defaultMetadataStorage=void 0;var vge=kj();Ry.defaultMetadataStorage=new vge.MetadataStorage});var Fj=m(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});Ny.getGlobal=void 0;function Sge(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}Ny.getGlobal=Sge});var Uj=m(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});Py.isPromise=void 0;function wge(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}Py.isPromise=wge});var Gj=m(fi=>{"use strict";var Ege=fi&&fi.__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]}),Bj=fi&&fi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ege(t,e,r)};Object.defineProperty(fi,"__esModule",{value:!0});Bj(Fj(),fi);Bj(Uj(),fi)});var Vj=m(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.TransformOperationExecutor=void 0;var Lt=po(),$e=ll(),$j=Gj();function bge(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var gA=class{constructor(t,r){this.transformationType=t,this.options=r,this.recursionStack=new Set}transform(t,r,n,i,s,a=0){if(Array.isArray(r)||r instanceof Set){let c=i&&this.transformationType===$e.TransformationType.PLAIN_TO_CLASS?bge(i):[];return r.forEach((l,u)=>{let f=t?t[u]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(l)){let h;if(typeof n!="function"&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(this.transformationType===$e.TransformationType.PLAIN_TO_CLASS){h=n.options.discriminator.subTypes.find(g=>g.name===l[n.options.discriminator.property]);let v={newObject:c,object:l,property:void 0},S=n.typeFunction(v);h===void 0?h=S:h=h.value,n.options.keepDiscriminatorProperty||delete l[n.options.discriminator.property]}this.transformationType===$e.TransformationType.CLASS_TO_CLASS&&(h=l.constructor),this.transformationType===$e.TransformationType.CLASS_TO_PLAIN&&(l[n.options.discriminator.property]=n.options.discriminator.subTypes.find(v=>v.value===l.constructor).name)}else h=n;let p=this.transform(f,l,h,void 0,l instanceof Map,a+1);c instanceof Set?c.add(p):c.push(p)}else this.transformationType===$e.TransformationType.CLASS_TO_CLASS&&(c instanceof Set?c.add(l):c.push(l))}),c}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,$j.getGlobal)().Buffer&&(n===Buffer||r instanceof Buffer)&&!s)return r==null?r:Buffer.from(r);if((0,$j.isPromise)(r)&&!s)return new Promise((c,l)=>{r.then(u=>c(this.transform(void 0,u,n,void 0,void 0,a+1)),l)});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 c=this.getKeys(n,r,s),l=t||{};!t&&(this.transformationType===$e.TransformationType.PLAIN_TO_CLASS||this.transformationType===$e.TransformationType.CLASS_TO_CLASS)&&(s?l=new Map:n?l=new n:l={});for(let u of c){if(u==="__proto__"||u==="constructor")continue;let f=u,h=u,p=u;if(!this.options.ignoreDecorators&&n){if(this.transformationType===$e.TransformationType.PLAIN_TO_CLASS){let x=Lt.defaultMetadataStorage.findExposeMetadataByCustomName(n,u);x&&(p=x.propertyName,h=x.propertyName)}else if(this.transformationType===$e.TransformationType.CLASS_TO_PLAIN||this.transformationType===$e.TransformationType.CLASS_TO_CLASS){let x=Lt.defaultMetadataStorage.findExposeMetadata(n,u);x&&x.options&&x.options.name&&(h=x.options.name)}}let v;this.transformationType===$e.TransformationType.PLAIN_TO_CLASS?v=r[f]:r instanceof Map?v=r.get(f):r[f]instanceof Function?v=r[f]():v=r[f];let S,g=v instanceof Map;if(n&&s)S=n;else if(n){let x=Lt.defaultMetadataStorage.findTypeMetadata(n,p);if(x){let k={newObject:l,object:r,property:p},_e=x.typeFunction?x.typeFunction(k):x.reflectedType;x.options&&x.options.discriminator&&x.options.discriminator.property&&x.options.discriminator.subTypes?r[f]instanceof Array?S=x:(this.transformationType===$e.TransformationType.PLAIN_TO_CLASS&&(S=x.options.discriminator.subTypes.find(Ut=>{if(v&&v instanceof Object&&x.options.discriminator.property in v)return Ut.name===v[x.options.discriminator.property]}),S===void 0?S=_e:S=S.value,x.options.keepDiscriminatorProperty||v&&v instanceof Object&&x.options.discriminator.property in v&&delete v[x.options.discriminator.property]),this.transformationType===$e.TransformationType.CLASS_TO_CLASS&&(S=v.constructor),this.transformationType===$e.TransformationType.CLASS_TO_PLAIN&&v&&(v[x.options.discriminator.property]=x.options.discriminator.subTypes.find(Ut=>Ut.value===v.constructor).name)):S=_e,g=g||x.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(k=>k.target===n&&!!k.properties[p]).forEach(k=>S=k.properties[p]);else if(this.options.enableImplicitConversion&&this.transformationType===$e.TransformationType.PLAIN_TO_CLASS){let k=Reflect.getMetadata("design:type",n.prototype,p);k&&(S=k)}}let C=Array.isArray(r[f])?this.getReflectedType(n,p):void 0,P=t?t[f]:void 0;if(l.constructor.prototype){let x=Object.getOwnPropertyDescriptor(l.constructor.prototype,h);if((this.transformationType===$e.TransformationType.PLAIN_TO_CLASS||this.transformationType===$e.TransformationType.CLASS_TO_CLASS)&&(x&&!x.set||l[h]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(v)){let x=this.transformationType===$e.TransformationType.PLAIN_TO_CLASS?h:u,k;this.transformationType===$e.TransformationType.CLASS_TO_PLAIN?(k=r[x],k=this.applyCustomTransformations(k,n,x,r,this.transformationType),k=r[x]===k?v:k,k=this.transform(P,k,S,C,g,a+1)):v===void 0&&this.options.exposeDefaultValues?k=l[h]:(k=this.transform(P,v,S,C,g,a+1),k=this.applyCustomTransformations(k,n,x,r,this.transformationType)),(k!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(h,k):l[h]=k)}else if(this.transformationType===$e.TransformationType.CLASS_TO_CLASS){let x=v;x=this.applyCustomTransformations(x,n,u,r,this.transformationType),(x!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(h,x):l[h]=x)}}return this.options.enableCircularCheck&&this.recursionStack.delete(r),l}else return r}}applyCustomTransformations(t,r,n,i,s){let a=Lt.defaultMetadataStorage.findTransformMetadatas(r,n,this.transformationType);return this.options.version!==void 0&&(a=a.filter(c=>c.options?this.checkVersion(c.options.since,c.options.until):!0)),this.options.groups&&this.options.groups.length?a=a.filter(c=>c.options?this.checkGroups(c.options.groups):!0):a=a.filter(c=>!c.options||!c.options.groups||!c.options.groups.length),a.forEach(c=>{t=c.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=Lt.defaultMetadataStorage.findTypeMetadata(t,r);return n?n.reflectedType:void 0}getKeys(t,r,n){let i=Lt.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 a=Lt.defaultMetadataStorage.getExposedProperties(t,this.transformationType),c=Lt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);s=[...a,...c]}if(!this.options.ignoreDecorators&&t){let a=Lt.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===$e.TransformationType.PLAIN_TO_CLASS&&(a=a.map(l=>{let u=Lt.defaultMetadataStorage.findExposeMetadata(t,l);return u&&u.options&&u.options.name?u.options.name:l})),this.options.excludeExtraneousValues?s=a:s=s.concat(a);let c=Lt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);c.length>0&&(s=s.filter(l=>!c.includes(l))),this.options.version!==void 0&&(s=s.filter(l=>{let u=Lt.defaultMetadataStorage.findExposeMetadata(t,l);return!u||!u.options?!0:this.checkVersion(u.options.since,u.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(l=>{let u=Lt.defaultMetadataStorage.findExposeMetadata(t,l);return!u||!u.options?!0:this.checkGroups(u.options.groups)}):s=s.filter(l=>{let u=Lt.defaultMetadataStorage.findExposeMetadata(t,l);return!u||!u.options||!u.options.groups||!u.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(a=>this.options.excludePrefixes.every(c=>a.substr(0,c.length)!==c))),s=s.filter((a,c,l)=>l.indexOf(a)===c),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}};Dy.TransformOperationExecutor=gA});var Kj=m(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});Oy.defaultOptions=void 0;Oy.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 go=m(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});Ly.ClassTransformer=void 0;var _o=Vj(),ho=ll(),yo=Kj(),vA=class{instanceToPlain(t,r){return new _o.TransformOperationExecutor(ho.TransformationType.CLASS_TO_PLAIN,o(o({},yo.defaultOptions),r)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,r,n){return new _o.TransformOperationExecutor(ho.TransformationType.CLASS_TO_PLAIN,o(o({},yo.defaultOptions),n)).transform(r,t,void 0,void 0,void 0,void 0)}plainToInstance(t,r,n){return new _o.TransformOperationExecutor(ho.TransformationType.PLAIN_TO_CLASS,o(o({},yo.defaultOptions),n)).transform(void 0,r,t,void 0,void 0,void 0)}plainToClassFromExist(t,r,n){return new _o.TransformOperationExecutor(ho.TransformationType.PLAIN_TO_CLASS,o(o({},yo.defaultOptions),n)).transform(t,r,void 0,void 0,void 0,void 0)}instanceToInstance(t,r){return new _o.TransformOperationExecutor(ho.TransformationType.CLASS_TO_CLASS,o(o({},yo.defaultOptions),r)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,r,n){return new _o.TransformOperationExecutor(ho.TransformationType.CLASS_TO_CLASS,o(o({},yo.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)}};Ly.ClassTransformer=vA});var Hj=m(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});qy.Exclude=void 0;var Age=po();function Tge(e={}){return function(t,r){Age.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}qy.Exclude=Tge});var Wj=m(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});My.Expose=void 0;var Cge=po();function xge(e={}){return function(t,r){Cge.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}My.Expose=xge});var Jj=m(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.TransformInstanceToInstance=void 0;var Ige=go();function Rge(e){return function(t,r,n){let i=new Ige.ClassTransformer,s=n.value;n.value=function(...a){let c=s.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(u=>i.instanceToInstance(u,e)):i.instanceToInstance(c,e)}}}zy.TransformInstanceToInstance=Rge});var Yj=m(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});jy.TransformInstanceToPlain=void 0;var Nge=go();function Pge(e){return function(t,r,n){let i=new Nge.ClassTransformer,s=n.value;n.value=function(...a){let c=s.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(u=>i.instanceToPlain(u,e)):i.instanceToPlain(c,e)}}}jy.TransformInstanceToPlain=Pge});var Qj=m(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.TransformPlainToInstance=void 0;var Dge=go();function Oge(e,t){return function(r,n,i){let s=new Dge.ClassTransformer,a=i.value;i.value=function(...c){let l=a.apply(this,c);return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"?l.then(f=>s.plainToInstance(e,f,t)):s.plainToInstance(e,l,t)}}}ky.TransformPlainToInstance=Oge});var Xj=m(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.Transform=void 0;var Lge=po();function qge(e,t={}){return function(r,n){Lge.defaultMetadataStorage.addTransformMetadata({target:r.constructor,propertyName:n,transformFn:e,options:t})}}Fy.Transform=qge});var Zj=m(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.Type=void 0;var Mge=po();function zge(e,t={}){return function(r,n){let i=Reflect.getMetadata("design:type",r,n);Mge.defaultMetadataStorage.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:i,typeFunction:e,options:t})}}Uy.Type=zge});var ek=m(Ht=>{"use strict";var jge=Ht&&Ht.__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]}),ls=Ht&&Ht.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&jge(t,e,r)};Object.defineProperty(Ht,"__esModule",{value:!0});ls(Hj(),Ht);ls(Wj(),Ht);ls(Jj(),Ht);ls(Yj(),Ht);ls(Qj(),Ht);ls(Xj(),Ht);ls(Zj(),Ht)});var rk=m(tk=>{"use strict";Object.defineProperty(tk,"__esModule",{value:!0})});var ik=m(nk=>{"use strict";Object.defineProperty(nk,"__esModule",{value:!0})});var ok=m(sk=>{"use strict";Object.defineProperty(sk,"__esModule",{value:!0})});var ck=m(ak=>{"use strict";Object.defineProperty(ak,"__esModule",{value:!0})});var dk=m(lk=>{"use strict";Object.defineProperty(lk,"__esModule",{value:!0})});var fk=m(uk=>{"use strict";Object.defineProperty(uk,"__esModule",{value:!0})});var pk=m(mk=>{"use strict";Object.defineProperty(mk,"__esModule",{value:!0})});var hk=m(_k=>{"use strict";Object.defineProperty(_k,"__esModule",{value:!0})});var gk=m(yk=>{"use strict";Object.defineProperty(yk,"__esModule",{value:!0})});var Sk=m(vk=>{"use strict";Object.defineProperty(vk,"__esModule",{value:!0})});var Ek=m(wk=>{"use strict";Object.defineProperty(wk,"__esModule",{value:!0})});var Ak=m(bk=>{"use strict";Object.defineProperty(bk,"__esModule",{value:!0})});var Ck=m(Tk=>{"use strict";Object.defineProperty(Tk,"__esModule",{value:!0})});var Ik=m(xk=>{"use strict";Object.defineProperty(xk,"__esModule",{value:!0})});var Rk=m(Ye=>{"use strict";var kge=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]}),qt=Ye&&Ye.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&kge(t,e,r)};Object.defineProperty(Ye,"__esModule",{value:!0});qt(rk(),Ye);qt(ik(),Ye);qt(ok(),Ye);qt(ck(),Ye);qt(dk(),Ye);qt(fk(),Ye);qt(pk(),Ye);qt(hk(),Ye);qt(gk(),Ye);qt(Sk(),Ye);qt(Ek(),Ye);qt(Ak(),Ye);qt(Ck(),Ye);qt(Ik(),Ye)});var By=m(ge=>{"use strict";var Fge=ge&&ge.__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]}),SA=ge&&ge.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Fge(t,e,r)};Object.defineProperty(ge,"__esModule",{value:!0});ge.deserializeArray=ge.deserialize=ge.serialize=ge.classToClassFromExist=ge.instanceToInstance=ge.plainToClassFromExist=ge.plainToInstance=ge.plainToClass=ge.classToPlainFromExist=ge.instanceToPlain=ge.classToPlain=ge.ClassTransformer=void 0;var Uge=go(),Bge=go();Object.defineProperty(ge,"ClassTransformer",{enumerable:!0,get:function(){return Bge.ClassTransformer}});SA(ek(),ge);SA(Rk(),ge);SA(ll(),ge);var mr=new Uge.ClassTransformer;function Gge(e,t){return mr.instanceToPlain(e,t)}ge.classToPlain=Gge;function $ge(e,t){return mr.instanceToPlain(e,t)}ge.instanceToPlain=$ge;function Vge(e,t,r){return mr.classToPlainFromExist(e,t,r)}ge.classToPlainFromExist=Vge;function Kge(e,t,r){return mr.plainToInstance(e,t,r)}ge.plainToClass=Kge;function Hge(e,t,r){return mr.plainToInstance(e,t,r)}ge.plainToInstance=Hge;function Wge(e,t,r){return mr.plainToClassFromExist(e,t,r)}ge.plainToClassFromExist=Wge;function Jge(e,t){return mr.instanceToInstance(e,t)}ge.instanceToInstance=Jge;function Yge(e,t,r){return mr.classToClassFromExist(e,t,r)}ge.classToClassFromExist=Yge;function Qge(e,t){return mr.serialize(e,t)}ge.serialize=Qge;function Xge(e,t,r){return mr.deserialize(e,t,r)}ge.deserialize=Xge;function Zge(e,t,r){return mr.deserializeArray(e,t,r)}ge.deserializeArray=Zge});var wA=m(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});Gy.Rules=void 0;var eve=By(),dl=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,eve.plainToInstance)(dl,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}};Gy.Rules=dl});var EA=m($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.Version=void 0;var Nk=By(),vo;(function(e){e[e.AppName=0]="AppName"})(vo||(vo={}));var So=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 a of i){let c=(0,Nk.plainToInstance)(So,a);s.push(c)}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,Nk.plainToInstance)(So,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 vo.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}constructor(t){this._keyBy=vo.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=vo.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case vo.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}};$y.Version=So});var Ok=m(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});Vy.Application=void 0;var Pk=By(),Dk=wA(),tve=EA(),Rn;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(Rn||(Rn={}));var wo=class{static async UpdateDefaultRule(t){let{dbManager:r,key:n}=t,i=await Dk.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=tve.Version.LoadVersions({dbManager:n,key:r}),s=Dk.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,Pk.plainToInstance)(wo,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,Pk.plainToInstance)(wo,i);n.push(s)}return n}constructor(t){Object.assign(this,t),this._keyBy=Rn.AppName}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=Rn.AppName;let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=Rn.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 Rn.Applications:return"applications";case Rn.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case Rn.Applications:return`appName#${this.AppName}`.toLowerCase();case Rn.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}};Vy.Application=wo});var bA=m(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.Version=nn.Rules=nn.Application=nn.DBManager=void 0;var rve=zj();Object.defineProperty(nn,"DBManager",{enumerable:!0,get:function(){return rve.DBManager}});var nve=Ok();Object.defineProperty(nn,"Application",{enumerable:!0,get:function(){return nve.Application}});var ive=wA();Object.defineProperty(nn,"Rules",{enumerable:!0,get:function(){return ive.Rules}});var sve=EA();Object.defineProperty(nn,"Version",{enumerable:!0,get:function(){return sve.Version}})});var Mt=m(AA=>{"use strict";AA.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})};AA.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 qk=m((DLe,Lk)=>{var mi=require("constants"),ove=process.cwd,Ky=null,ave=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Ky||(Ky=ove.call(process)),Ky};try{process.cwd()}catch{}typeof process.chdir=="function"&&(TA=process.chdir,process.chdir=function(e){Ky=null,TA.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,TA));var TA;Lk.exports=cve;function cve(e){mi.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=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,h,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,h,p,v){v&&process.nextTick(v)},e.lchownSync=function(){}),ave==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function h(p,v,S){var g=Date.now(),C=0;f(p,v,function P(x){if(x&&(x.code==="EACCES"||x.code==="EPERM")&&Date.now()-g<6e4){setTimeout(function(){e.stat(v,function(k,_e){k&&k.code==="ENOENT"?f(p,v,P):S(x)})},C),C<100&&(C+=10);return}S&&S(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function h(p,v,S,g,C,P){var x;if(P&&typeof P=="function"){var k=0;x=function(_e,Ut,jn){if(_e&&_e.code==="EAGAIN"&&k<10)return k++,f.call(e,p,v,S,g,C,x);P.apply(this,arguments)}}return f.call(e,p,v,S,g,C,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(h,p,v,S,g){for(var C=0;;)try{return f.call(e,h,p,v,S,g)}catch(P){if(P.code==="EAGAIN"&&C<10){C++;continue}throw P}}}(e.readSync);function t(f){f.lchmod=function(h,p,v){f.open(h,mi.O_WRONLY|mi.O_SYMLINK,p,function(S,g){if(S){v&&v(S);return}f.fchmod(g,p,function(C){f.close(g,function(P){v&&v(C||P)})})})},f.lchmodSync=function(h,p){var v=f.openSync(h,mi.O_WRONLY|mi.O_SYMLINK,p),S=!0,g;try{g=f.fchmodSync(v,p),S=!1}finally{if(S)try{f.closeSync(v)}catch{}else f.closeSync(v)}return g}}function r(f){mi.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,p,v,S){f.open(h,mi.O_SYMLINK,function(g,C){if(g){S&&S(g);return}f.futimes(C,p,v,function(P){f.close(C,function(x){S&&S(P||x)})})})},f.lutimesSync=function(h,p,v){var S=f.openSync(h,mi.O_SYMLINK),g,C=!0;try{g=f.futimesSync(S,p,v),C=!1}finally{if(C)try{f.closeSync(S)}catch{}else f.closeSync(S)}return g}):f.futimes&&(f.lutimes=function(h,p,v,S){S&&process.nextTick(S)},f.lutimesSync=function(){})}function n(f){return f&&function(h,p,v){return f.call(e,h,p,function(S){u(S)&&(S=null),v&&v.apply(this,arguments)})}}function i(f){return f&&function(h,p){try{return f.call(e,h,p)}catch(v){if(!u(v))throw v}}}function s(f){return f&&function(h,p,v,S){return f.call(e,h,p,v,function(g){u(g)&&(g=null),S&&S.apply(this,arguments)})}}function a(f){return f&&function(h,p,v){try{return f.call(e,h,p,v)}catch(S){if(!u(S))throw S}}}function c(f){return f&&function(h,p,v){typeof p=="function"&&(v=p,p=null);function S(g,C){C&&(C.uid<0&&(C.uid+=4294967296),C.gid<0&&(C.gid+=4294967296)),v&&v.apply(this,arguments)}return p?f.call(e,h,p,S):f.call(e,h,S)}}function l(f){return f&&function(h,p){var v=p?f.call(e,h,p):f.call(e,h);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var jk=m((OLe,zk)=>{var Mk=require("stream").Stream;zk.exports=lve;function lve(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Mk.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 a=Object.keys(i),c=0,l=a.length;c<l;c++){var u=a[c];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(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Mk.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),a=0,c=s.length;a<c;a++){var l=s[a];this[l]=i[l]}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 Fk=m((LLe,kk)=>{"use strict";kk.exports=uve;var dve=Object.getPrototypeOf||function(e){return e.__proto__};function uve(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:dve(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var vt=m((qLe,IA)=>{var ke=require("fs"),fve=qk(),mve=jk(),pve=Fk(),Hy=require("util"),mt,Jy;typeof Symbol=="function"&&typeof Symbol.for=="function"?(mt=Symbol.for("graceful-fs.queue"),Jy=Symbol.for("graceful-fs.previous")):(mt="___graceful-fs.queue",Jy="___graceful-fs.previous");function _ve(){}function Gk(e,t){Object.defineProperty(e,mt,{get:function(){return t}})}var ds=_ve;Hy.debuglog?ds=Hy.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ds=function(){var e=Hy.format.apply(Hy,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
30
|
-
GFS4: `),console.error(e)});ke[mt]||(Uk=global[mt]||[],Gk(ke,Uk),ke.close=function(e){function t(r,n){return e.call(ke,r,function(i){i||Bk(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Jy,{value:e}),t}(ke.close),ke.closeSync=function(e){function t(r){e.apply(ke,arguments),Bk()}return Object.defineProperty(t,Jy,{value:e}),t}(ke.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ds(ke[mt]),require("assert").equal(ke[mt].length,0)}));var Uk;global[mt]||Gk(global,ke[mt]);IA.exports=CA(pve(ke));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ke.__patched&&(IA.exports=CA(ke),ke.__patched=!0);function CA(e){fve(e),e.gracefulify=CA,e.createReadStream=Ut,e.createWriteStream=jn;var t=e.readFile;e.readFile=r;function r(F,he,pe){return typeof he=="function"&&(pe=he,he=null),Ie(F,he,pe);function Ie(Fe,Le,Re,Ne){return t(Fe,Le,function(we){we&&(we.code==="EMFILE"||we.code==="ENFILE")?Eo([Ie,[Fe,Le,Re],we,Ne||Date.now(),Date.now()]):typeof Re=="function"&&Re.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(F,he,pe,Ie){return typeof pe=="function"&&(Ie=pe,pe=null),Fe(F,he,pe,Ie);function Fe(Le,Re,Ne,we,Ue){return n(Le,Re,Ne,function(Ae){Ae&&(Ae.code==="EMFILE"||Ae.code==="ENFILE")?Eo([Fe,[Le,Re,Ne,we],Ae,Ue||Date.now(),Date.now()]):typeof we=="function"&&we.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=a);function a(F,he,pe,Ie){return typeof pe=="function"&&(Ie=pe,pe=null),Fe(F,he,pe,Ie);function Fe(Le,Re,Ne,we,Ue){return s(Le,Re,Ne,function(Ae){Ae&&(Ae.code==="EMFILE"||Ae.code==="ENFILE")?Eo([Fe,[Le,Re,Ne,we],Ae,Ue||Date.now(),Date.now()]):typeof we=="function"&&we.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=l);function l(F,he,pe,Ie){return typeof pe=="function"&&(Ie=pe,pe=0),Fe(F,he,pe,Ie);function Fe(Le,Re,Ne,we,Ue){return c(Le,Re,Ne,function(Ae){Ae&&(Ae.code==="EMFILE"||Ae.code==="ENFILE")?Eo([Fe,[Le,Re,Ne,we],Ae,Ue||Date.now(),Date.now()]):typeof we=="function"&&we.apply(this,arguments)})}}var u=e.readdir;e.readdir=h;var f=/^v[0-5]\./;function h(F,he,pe){typeof he=="function"&&(pe=he,he=null);var Ie=f.test(process.version)?function(Re,Ne,we,Ue){return u(Re,Fe(Re,Ne,we,Ue))}:function(Re,Ne,we,Ue){return u(Re,Ne,Fe(Re,Ne,we,Ue))};return Ie(F,he,pe);function Fe(Le,Re,Ne,we){return function(Ue,Ae){Ue&&(Ue.code==="EMFILE"||Ue.code==="ENFILE")?Eo([Ie,[Le,Re,Ne],Ue,we||Date.now(),Date.now()]):(Ae&&Ae.sort&&Ae.sort(),typeof Ne=="function"&&Ne.call(this,Ue,Ae))}}}if(process.version.substr(0,4)==="v0.8"){var p=mve(e);P=p.ReadStream,k=p.WriteStream}var v=e.ReadStream;v&&(P.prototype=Object.create(v.prototype),P.prototype.open=x);var S=e.WriteStream;S&&(k.prototype=Object.create(S.prototype),k.prototype.open=_e),Object.defineProperty(e,"ReadStream",{get:function(){return P},set:function(F){P=F},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return k},set:function(F){k=F},enumerable:!0,configurable:!0});var g=P;Object.defineProperty(e,"FileReadStream",{get:function(){return g},set:function(F){g=F},enumerable:!0,configurable:!0});var C=k;Object.defineProperty(e,"FileWriteStream",{get:function(){return C},set:function(F){C=F},enumerable:!0,configurable:!0});function P(F,he){return this instanceof P?(v.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function x(){var F=this;hr(F.path,F.flags,F.mode,function(he,pe){he?(F.autoClose&&F.destroy(),F.emit("error",he)):(F.fd=pe,F.emit("open",pe),F.read())})}function k(F,he){return this instanceof k?(S.apply(this,arguments),this):k.apply(Object.create(k.prototype),arguments)}function _e(){var F=this;hr(F.path,F.flags,F.mode,function(he,pe){he?(F.destroy(),F.emit("error",he)):(F.fd=pe,F.emit("open",pe))})}function Ut(F,he){return new e.ReadStream(F,he)}function jn(F,he){return new e.WriteStream(F,he)}var kn=e.open;e.open=hr;function hr(F,he,pe,Ie){return typeof pe=="function"&&(Ie=pe,pe=null),Fe(F,he,pe,Ie);function Fe(Le,Re,Ne,we,Ue){return kn(Le,Re,Ne,function(Ae,cn){Ae&&(Ae.code==="EMFILE"||Ae.code==="ENFILE")?Eo([Fe,[Le,Re,Ne,we],Ae,Ue||Date.now(),Date.now()]):typeof we=="function"&&we.apply(this,arguments)})}}return e}function Eo(e){ds("ENQUEUE",e[0].name,e[1]),ke[mt].push(e),xA()}var Wy;function Bk(){for(var e=Date.now(),t=0;t<ke[mt].length;++t)ke[mt][t].length>2&&(ke[mt][t][3]=e,ke[mt][t][4]=e);xA()}function xA(){if(clearTimeout(Wy),Wy=void 0,ke[mt].length!==0){var e=ke[mt].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)ds("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){ds("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var c=Date.now()-s,l=Math.max(s-i,1),u=Math.min(l*1.2,100);c>=u?(ds("RETRY",t.name,r),t.apply(null,r.concat([i]))):ke[mt].push(e)}Wy===void 0&&(Wy=setTimeout(xA,0))}}});var ul=m(pi=>{"use strict";var $k=Mt().fromCallback,Tt=vt(),hve=["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 Tt[e]=="function");Object.keys(Tt).forEach(e=>{e!=="promises"&&(pi[e]=Tt[e])});hve.forEach(e=>{pi[e]=$k(Tt[e])});pi.exists=function(e,t){return typeof t=="function"?Tt.exists(e,t):new Promise(r=>Tt.exists(e,r))};pi.read=function(e,t,r,n,i,s){return typeof s=="function"?Tt.read(e,t,r,n,i,s):new Promise((a,c)=>{Tt.read(e,t,r,n,i,(l,u,f)=>{if(l)return c(l);a({bytesRead:u,buffer:f})})})};pi.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Tt.write(e,t,...r):new Promise((n,i)=>{Tt.write(e,t,...r,(s,a,c)=>{if(s)return i(s);n({bytesWritten:a,buffer:c})})})};typeof Tt.writev=="function"&&(pi.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Tt.writev(e,t,...r):new Promise((n,i)=>{Tt.writev(e,t,...r,(s,a,c)=>{if(s)return i(s);n({bytesWritten:a,buffers:c})})})});typeof Tt.realpath.native=="function"&&(pi.realpath.native=$k(Tt.realpath.native))});var RA=m((zLe,Vk)=>{Vk.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 Yk=m((jLe,NA)=>{"use strict";var bo=ul(),Nn=require("path"),yve=RA(),Kk=yve("10.12.0"),Hk=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Nn.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},Wk=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),o(o({},t),e)},Jk=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};NA.exports.makeDir=async(e,t)=>{if(Hk(e),t=Wk(t),Kk){let n=Nn.resolve(e);return bo.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await bo.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Nn.dirname(n)===n)throw Jk(n);if(i.message.includes("null bytes"))throw i;return await r(Nn.dirname(n)),r(n)}try{if(!(await bo.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Nn.resolve(e))};NA.exports.makeDirSync=(e,t)=>{if(Hk(e),t=Wk(t),Kk){let n=Nn.resolve(e);return bo.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{bo.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Nn.dirname(n)===n)throw Jk(n);if(i.message.includes("null bytes"))throw i;return r(Nn.dirname(n)),r(n)}try{if(!bo.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Nn.resolve(e))}});var pr=m((kLe,Qk)=>{"use strict";var gve=Mt().fromPromise,{makeDir:vve,makeDirSync:PA}=Yk(),DA=gve(vve);Qk.exports={mkdirs:DA,mkdirsSync:PA,mkdirp:DA,mkdirpSync:PA,ensureDir:DA,ensureDirSync:PA}});var OA=m((FLe,Xk)=>{"use strict";var Ao=vt();function Sve(e,t,r,n){Ao.open(e,"r+",(i,s)=>{if(i)return n(i);Ao.futimes(s,t,r,a=>{Ao.close(s,c=>{n&&n(a||c)})})})}function wve(e,t,r){let n=Ao.openSync(e,"r+");return Ao.futimesSync(n,t,r),Ao.closeSync(n)}Xk.exports={utimesMillis:Sve,utimesMillisSync:wve}});var fl=m((ULe,rF)=>{"use strict";var To=ul(),zt=require("path"),Eve=require("util"),bve=RA(),Yy=bve("10.5.0"),Zk=e=>Yy?To.stat(e,{bigint:!0}):To.stat(e),LA=e=>Yy?To.statSync(e,{bigint:!0}):To.statSync(e);function Ave(e,t){return Promise.all([Zk(e),Zk(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function Tve(e,t){let r,n=LA(e);try{r=LA(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Cve(e,t,r,n){Eve.callbackify(Ave)(e,t,(i,s)=>{if(i)return n(i);let{srcStat:a,destStat:c}=s;return c&&Qy(a,c)?n(new Error("Source and destination must not be the same.")):a.isDirectory()&&qA(e,t)?n(new Error(Xy(e,t,r))):n(null,{srcStat:a,destStat:c})})}function xve(e,t,r){let{srcStat:n,destStat:i}=Tve(e,t);if(i&&Qy(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&qA(e,t))throw new Error(Xy(e,t,r));return{srcStat:n,destStat:i}}function eF(e,t,r,n,i){let s=zt.resolve(zt.dirname(e)),a=zt.resolve(zt.dirname(r));if(a===s||a===zt.parse(a).root)return i();let c=(l,u)=>l?l.code==="ENOENT"?i():i(l):Qy(t,u)?i(new Error(Xy(e,r,n))):eF(e,t,a,n,i);Yy?To.stat(a,{bigint:!0},c):To.stat(a,c)}function tF(e,t,r,n){let i=zt.resolve(zt.dirname(e)),s=zt.resolve(zt.dirname(r));if(s===i||s===zt.parse(s).root)return;let a;try{a=LA(s)}catch(c){if(c.code==="ENOENT")return;throw c}if(Qy(t,a))throw new Error(Xy(e,r,n));return tF(e,t,s,n)}function Qy(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(Yy||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 qA(e,t){let r=zt.resolve(e).split(zt.sep).filter(i=>i),n=zt.resolve(t).split(zt.sep).filter(i=>i);return r.reduce((i,s,a)=>i&&n[a]===s,!0)}function Xy(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}rF.exports={checkPaths:Cve,checkPathsSync:xve,checkParentPaths:eF,checkParentPathsSync:tF,isSrcSubdir:qA}});var aF=m((BLe,oF)=>{"use strict";var St=vt(),ml=require("path"),Ive=pr().mkdirsSync,Rve=OA().utimesMillisSync,pl=fl();function Nve(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=Q7,this.buildObjNode=J7):(this.buildTextNode=G1,this.buildObjNode=B1),this.buildTextValNode=G1,this.buildObjectNode=B1}nS.prototype.parse=function(e){return this.j2x(e,0).val};nS.prototype.j2x=function(e,t){let n="",r="",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)r+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)r+=this.buildTextNode(e[a],a,"",t);else if(typeof e[a]!="object"){let c=this.isAttribute(a);c?n+=" "+c+'="'+this.options.attrValueProcessor(""+e[a])+'"':this.isCDATA(a)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[a]):r+=this.replaceCDATAstr("",e[a]):a===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[a])):r+=this.buildTextNode(e[a],a,"",t)}else if(Array.isArray(e[a]))if(this.isCDATA(a))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[a]):r+=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)r+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object"){let h=this.j2x(d,t+1);r+=this.buildObjNode(h.val,a,h.attrStr,t)}else r+=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++)n+=" "+c[d]+'="'+this.options.attrValueProcessor(""+e[a][c[d]])+'"'}else{let c=this.j2x(e[a],t+1);r+=this.buildObjNode(c.val,a,c.attrStr,t)}}return{attrStr:n,val:r}};function H7(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 Y7(e,t){if(e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e==="")return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let n in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[n]+"]]>");return e+this.newLine}function B1(e,t,n,r){return n&&!e.includes("<")?this.indentate(r)+"<"+t+n+">"+e+"</"+t+this.tagEndChar:this.indentate(r)+"<"+t+n+this.tagEndChar+e+this.indentate(r)+"</"+t+this.tagEndChar}function J7(e,t,n,r){return e!==""?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function G1(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function Q7(e,t,n,r){return e!==""?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function X7(e){return this.options.indentBy.repeat(e)}function Z7(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function eQ(e){return e===this.options.cdataTagName}$1.exports=nS});var J1=f(sn=>{"use strict";var W1=E1(),H1=va(),K1=va(),tQ=Cn().buildOptions,Y1=L1();sn.parse=function(e,t,n){if(n){n===!0&&(n={});let i=Y1.validate(e,n);if(i!==!0)throw Error(i.err.msg)}t=tQ(t,K1.defaultOptions,K1.props);let r=H1.getTraversalObj(e,t);return W1.convertToJson(r,t)};sn.convertTonimn=j1().convert2nimn;sn.getTraversalObj=H1.getTraversalObj;sn.convertToJson=W1.convertToJson;sn.convertToJsonString=U1().convertToJsonString;sn.validate=Y1.validate;sn.j2xParser=V1();sn.parseToNimn=function(e,t,n){return sn.convertTonimn(sn.getTraversalObj(e,n),t,n)}});var Zn=f(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.deserializeAws_queryGetSessionTokenCommand=me.deserializeAws_queryGetFederationTokenCommand=me.deserializeAws_queryGetCallerIdentityCommand=me.deserializeAws_queryGetAccessKeyInfoCommand=me.deserializeAws_queryDecodeAuthorizationMessageCommand=me.deserializeAws_queryAssumeRoleWithWebIdentityCommand=me.deserializeAws_queryAssumeRoleWithSAMLCommand=me.deserializeAws_queryAssumeRoleCommand=me.serializeAws_queryGetSessionTokenCommand=me.serializeAws_queryGetFederationTokenCommand=me.serializeAws_queryGetCallerIdentityCommand=me.serializeAws_queryGetAccessKeyInfoCommand=me.serializeAws_queryDecodeAuthorizationMessageCommand=me.serializeAws_queryAssumeRoleWithWebIdentityCommand=me.serializeAws_queryAssumeRoleWithSAMLCommand=me.serializeAws_queryAssumeRoleCommand=void 0;var nQ=Ot(),$=O(),rQ=v1(),iQ=J1(),Nr=tn(),Pr=Bd(),sQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...NQ(e,t),Action:"AssumeRole",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleCommand=sQ;var oQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...PQ(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleWithSAMLCommand=oQ;var aQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...OQ(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleWithWebIdentityCommand=aQ;var cQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...LQ(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryDecodeAuthorizationMessageCommand=cQ;var lQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...qQ(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryGetAccessKeyInfoCommand=lQ;var uQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...MQ(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryGetCallerIdentityCommand=uQ;var dQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...zQ(e,t),Action:"GetFederationToken",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryGetFederationTokenCommand=dQ;var fQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...jQ(e,t),Action:"GetSessionToken",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryGetSessionTokenCommand=fQ;var mQ=async(e,t)=>{if(e.statusCode>=300)return pQ(e,t);let n=await ut(e.body,t),r={};r=BQ(n.AssumeRoleResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryAssumeRoleCommand=mQ;var pQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await rS(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await wa(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},hQ=async(e,t)=>{if(e.statusCode>=300)return _Q(e,t);let n=await ut(e.body,t),r={};r=GQ(n.AssumeRoleWithSAMLResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryAssumeRoleWithSAMLCommand=hQ;var _Q=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await rS(n,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Q1(n,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await X1(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await wa(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},yQ=async(e,t)=>{if(e.statusCode>=300)return gQ(e,t);let n=await ut(e.body,t),r={};r=$Q(n.AssumeRoleWithWebIdentityResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryAssumeRoleWithWebIdentityCommand=yQ;var gQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await rS(n,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await RQ(n,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Q1(n,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await X1(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await wa(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},vQ=async(e,t)=>{if(e.statusCode>=300)return SQ(e,t);let n=await ut(e.body,t),r={};r=VQ(n.DecodeAuthorizationMessageResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryDecodeAuthorizationMessageCommand=vQ;var SQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await DQ(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},wQ=async(e,t)=>{if(e.statusCode>=300)return bQ(e,t);let n=await ut(e.body,t),r={};r=HQ(n.GetAccessKeyInfoResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryGetAccessKeyInfoCommand=wQ;var bQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},EQ=async(e,t)=>{if(e.statusCode>=300)return AQ(e,t);let n=await ut(e.body,t),r={};r=YQ(n.GetCallerIdentityResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryGetCallerIdentityCommand=EQ;var AQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},TQ=async(e,t)=>{if(e.statusCode>=300)return CQ(e,t);let n=await ut(e.body,t),r={};r=JQ(n.GetFederationTokenResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryGetFederationTokenCommand=TQ;var CQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await wa(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},xQ=async(e,t)=>{if(e.statusCode>=300)return IQ(e,t);let n=await ut(e.body,t),r={};r=QQ(n.GetSessionTokenResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryGetSessionTokenCommand=xQ;var IQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await wa(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},rS=async(e,t)=>{let n=e.body,r=KQ(n.Error,t),i=new Nr.ExpiredTokenException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},RQ=async(e,t)=>{let n=e.body,r=XQ(n.Error,t),i=new Nr.IDPCommunicationErrorException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},Q1=async(e,t)=>{let n=e.body,r=ZQ(n.Error,t),i=new Nr.IDPRejectedClaimException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},DQ=async(e,t)=>{let n=e.body,r=eX(n.Error,t),i=new Nr.InvalidAuthorizationMessageException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},X1=async(e,t)=>{let n=e.body,r=tX(n.Error,t),i=new Nr.InvalidIdentityTokenException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},Xd=async(e,t)=>{let n=e.body,r=nX(n.Error,t),i=new Nr.MalformedPolicyDocumentException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},Zd=async(e,t)=>{let n=e.body,r=rX(n.Error,t),i=new Nr.PackedPolicyTooLargeException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},wa=async(e,t)=>{let n=e.body,r=iX(n.Error,t),i=new Nr.RegionDisabledException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},NQ=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(n.RoleSessionName=e.RoleSessionName),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=s})}if(e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=Z1(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let o=`Tags.${i}`;n[o]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let r=UQ(e.TransitiveTagKeys,t);Object.entries(r).forEach(([i,s])=>{let o=`TransitiveTagKeys.${i}`;n[o]=s})}return e.ExternalId!==void 0&&e.ExternalId!==null&&(n.ExternalId=e.ExternalId),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(n.TokenCode=e.TokenCode),e.SourceIdentity!==void 0&&e.SourceIdentity!==null&&(n.SourceIdentity=e.SourceIdentity),n},PQ=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.PrincipalArn!==void 0&&e.PrincipalArn!==null&&(n.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!==void 0&&e.SAMLAssertion!==null&&(n.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=s})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},OQ=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(n.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!==void 0&&e.WebIdentityToken!==null&&(n.WebIdentityToken=e.WebIdentityToken),e.ProviderId!==void 0&&e.ProviderId!==null&&(n.ProviderId=e.ProviderId),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=s})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},LQ=(e,t)=>{let n={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(n.EncodedMessage=e.EncodedMessage),n},qQ=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(n.AccessKeyId=e.AccessKeyId),n},MQ=(e,t)=>({}),zQ=(e,t)=>{let n={};if(e.Name!==void 0&&e.Name!==null&&(n.Name=e.Name),e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=Z1(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let o=`Tags.${i}`;n[o]=s})}return n},jQ=(e,t)=>{let n={};return e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(n.TokenCode=e.TokenCode),n},ef=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=kQ(i,t);Object.entries(s).forEach(([o,a])=>{n[`member.${r}.${o}`]=a}),r++}return n},kQ=(e,t)=>{let n={};return e.arn!==void 0&&e.arn!==null&&(n.arn=e.arn),n},FQ=(e,t)=>{let n={};return e.Key!==void 0&&e.Key!==null&&(n.Key=e.Key),e.Value!==void 0&&e.Value!==null&&(n.Value=e.Value),n},UQ=(e,t)=>{let n={},r=1;for(let i of e)i!==null&&(n[`member.${r}`]=i,r++);return n},Z1=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=FQ(i,t);Object.entries(s).forEach(([o,a])=>{n[`member.${r}.${o}`]=a}),r++}return n},iS=(e,t)=>{let n={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=(0,$.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=(0,$.expectString)(e.Arn)),n},BQ=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=ba(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=iS(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,$.expectString)(e.SourceIdentity)),n},GQ=(e,t)=>{let n={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&&(n.Credentials=ba(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=iS(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=(0,$.expectString)(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=(0,$.expectString)(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=(0,$.expectString)(e.Issuer)),e.Audience!==void 0&&(n.Audience=(0,$.expectString)(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=(0,$.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,$.expectString)(e.SourceIdentity)),n},$Q=(e,t)=>{let n={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&&(n.Credentials=ba(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=(0,$.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=iS(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=(0,$.expectString)(e.Provider)),e.Audience!==void 0&&(n.Audience=(0,$.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,$.expectString)(e.SourceIdentity)),n},ba=(e,t)=>{let n={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(n.AccessKeyId=(0,$.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=(0,$.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=(0,$.expectString)(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=(0,$.expectNonNull)((0,$.parseRfc3339DateTime)(e.Expiration))),n},VQ=(e,t)=>{let n={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(n.DecodedMessage=(0,$.expectString)(e.DecodedMessage)),n},KQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},WQ=(e,t)=>{let n={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(n.FederatedUserId=(0,$.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=(0,$.expectString)(e.Arn)),n},HQ=(e,t)=>{let n={Account:void 0};return e.Account!==void 0&&(n.Account=(0,$.expectString)(e.Account)),n},YQ=(e,t)=>{let n={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(n.UserId=(0,$.expectString)(e.UserId)),e.Account!==void 0&&(n.Account=(0,$.expectString)(e.Account)),e.Arn!==void 0&&(n.Arn=(0,$.expectString)(e.Arn)),n},JQ=(e,t)=>{let n={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(n.Credentials=ba(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=WQ(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),n},QQ=(e,t)=>{let n={Credentials:void 0};return e.Credentials!==void 0&&(n.Credentials=ba(e.Credentials,t)),n},XQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},ZQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},eX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},tX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},nX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},rX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},iX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},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"]}},sX=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),oX=(e,t)=>sX(e,t).then(n=>t.utf8Encoder(n)),Or=async(e,t,n,r,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)+n:c+n,headers:t};return r!==void 0&&(u.hostname=r),i!==void 0&&(u.body=i),new nQ.HttpRequest(u)},ut=(e,t)=>oX(e,t).then(n=>{if(n.length){let r=(0,iQ.parse)(n,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:a=>a.trim()===""&&a.includes(`
|
|
27
|
+
`)?"":(0,rQ.decodeHTML)(a)}),i="#text",s=Object.keys(r)[0],o=r[s];return o[i]&&(o[s]=o[i],delete o[i]),(0,$.getValueFromTextNode)(o)}return{}}),Lr=e=>Object.entries(e).map(([t,n])=>(0,$.extendedEncodeURIComponent)(t)+"="+(0,$.extendedEncodeURIComponent)(n)).join("&"),qr=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var nf=f(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.AssumeRoleCommand=void 0;var aX=U(),cX=Xn(),lX=O(),eR=tn(),tR=Zn(),sS=class extends lX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,aX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,cX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:eR.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:eR.AssumeRoleResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,tR.serializeAws_queryAssumeRoleCommand)(t,n)}deserialize(t,n){return(0,tR.deserializeAws_queryAssumeRoleCommand)(t,n)}};tf.AssumeRoleCommand=sS});var aS=f(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.AssumeRoleWithSAMLCommand=void 0;var uX=U(),dX=O(),nR=tn(),rR=Zn(),oS=class extends dX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,uX.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:nR.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:nR.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,rR.serializeAws_queryAssumeRoleWithSAMLCommand)(t,n)}deserialize(t,n){return(0,rR.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,n)}};rf.AssumeRoleWithSAMLCommand=oS});var of=f(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.AssumeRoleWithWebIdentityCommand=void 0;var fX=U(),mX=O(),iR=tn(),sR=Zn(),cS=class extends mX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,fX.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:iR.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:iR.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,sR.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,n)}deserialize(t,n){return(0,sR.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,n)}};sf.AssumeRoleWithWebIdentityCommand=cS});var uS=f(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.DecodeAuthorizationMessageCommand=void 0;var pX=U(),hX=Xn(),_X=O(),oR=tn(),aR=Zn(),lS=class extends _X.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,pX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,hX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:oR.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:oR.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,aR.serializeAws_queryDecodeAuthorizationMessageCommand)(t,n)}deserialize(t,n){return(0,aR.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,n)}};af.DecodeAuthorizationMessageCommand=lS});var fS=f(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.GetAccessKeyInfoCommand=void 0;var yX=U(),gX=Xn(),vX=O(),cR=tn(),lR=Zn(),dS=class extends vX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,yX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,gX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:cR.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:cR.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,lR.serializeAws_queryGetAccessKeyInfoCommand)(t,n)}deserialize(t,n){return(0,lR.deserializeAws_queryGetAccessKeyInfoCommand)(t,n)}};cf.GetAccessKeyInfoCommand=dS});var pS=f(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.GetCallerIdentityCommand=void 0;var SX=U(),wX=Xn(),bX=O(),uR=tn(),dR=Zn(),mS=class extends bX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,SX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,wX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:uR.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:uR.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,dR.serializeAws_queryGetCallerIdentityCommand)(t,n)}deserialize(t,n){return(0,dR.deserializeAws_queryGetCallerIdentityCommand)(t,n)}};lf.GetCallerIdentityCommand=mS});var _S=f(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.GetFederationTokenCommand=void 0;var EX=U(),AX=Xn(),TX=O(),fR=tn(),mR=Zn(),hS=class extends TX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,EX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,AX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:fR.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:fR.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,mR.serializeAws_queryGetFederationTokenCommand)(t,n)}deserialize(t,n){return(0,mR.deserializeAws_queryGetFederationTokenCommand)(t,n)}};uf.GetFederationTokenCommand=hS});var gS=f(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.GetSessionTokenCommand=void 0;var CX=U(),xX=Xn(),IX=O(),pR=tn(),hR=Zn(),yS=class extends IX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,CX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,xX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:pR.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:pR.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,hR.serializeAws_queryGetSessionTokenCommand)(t,n)}deserialize(t,n){return(0,hR.deserializeAws_queryGetSessionTokenCommand)(t,n)}};df.GetSessionTokenCommand=yS});var _R=f(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.resolveStsAuthConfig=void 0;var RX=Xn(),DX=(e,{stsClientCtor:t})=>(0,RX.resolveAwsAuthConfig)({...e,stsClientCtor:t});ff.resolveStsAuthConfig=DX});var yR=f((RSe,NX)=>{NX.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 vS=f(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.decorateDefaultCredentialProvider=In.getDefaultRoleAssumerWithWebIdentity=In.getDefaultRoleAssumer=void 0;var PX=nf(),OX=of(),gR="us-east-1",vR=e=>typeof e!="function"?e===void 0?gR:e:async()=>{try{return await e()}catch{return gR}},LX=(e,t)=>{let n,r;return async(i,s)=>{if(r=i,!n){let{logger:a,region:c,requestHandler:u}=e;n=new t({logger:a,credentialDefaultProvider:()=>async()=>r,region:vR(c||e.region),...u?{requestHandler:u}:{}})}let{Credentials:o}=await n.send(new PX.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}}};In.getDefaultRoleAssumer=LX;var qX=(e,t)=>{let n;return async r=>{if(!n){let{logger:s,region:o,requestHandler:a}=e;n=new t({logger:s,region:vR(o||e.region),...a?{requestHandler:a}:{}})}let{Credentials:i}=await n.send(new OX.AssumeRoleWithWebIdentityCommand(r));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration}}};In.getDefaultRoleAssumerWithWebIdentity=qX;var MX=e=>t=>e({roleAssumer:(0,In.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,In.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor),...t});In.decorateDefaultCredentialProvider=MX});var SR=f(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.fromEnv=dt.ENV_EXPIRATION=dt.ENV_SESSION=dt.ENV_SECRET=dt.ENV_KEY=void 0;var zX=je();dt.ENV_KEY="AWS_ACCESS_KEY_ID";dt.ENV_SECRET="AWS_SECRET_ACCESS_KEY";dt.ENV_SESSION="AWS_SESSION_TOKEN";dt.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var jX=()=>async()=>{let e=process.env[dt.ENV_KEY],t=process.env[dt.ENV_SECRET],n=process.env[dt.ENV_SESSION],r=process.env[dt.ENV_EXPIRATION];if(e&&t)return{accessKeyId:e,secretAccessKey:t,...n&&{sessionToken:n},...r&&{expiration:new Date(r)}};throw new zX.CredentialsProviderError("Unable to find environment variable credentials.")};dt.fromEnv=jX});var wS=f(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});var kX=K();kX.__exportStar(SR(),SS)});var pf=f(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.getHomeDir=void 0;var FX=require("os"),UX=require("path"),BX=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${UX.sep}`}=process.env;return e||t||(n?`${r}${n}`:(0,FX.homedir)())};mf.getHomeDir=BX});var wR=f(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.getProfileName=Rn.DEFAULT_PROFILE=Rn.ENV_PROFILE=void 0;Rn.ENV_PROFILE="AWS_PROFILE";Rn.DEFAULT_PROFILE="default";var GX=e=>e.profile||process.env[Rn.ENV_PROFILE]||Rn.DEFAULT_PROFILE;Rn.getProfileName=GX});var bS=f(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.getSSOTokenFilepath=void 0;var $X=require("crypto"),VX=require("path"),KX=pf(),WX=e=>{let n=(0,$X.createHash)("sha1").update(e).digest("hex");return(0,VX.join)((0,KX.getHomeDir)(),".aws","sso","cache",`${n}.json`)};hf.getSSOTokenFilepath=WX});var bR=f(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.getSSOTokenFromFile=void 0;var HX=require("fs"),YX=bS(),{readFile:JX}=HX.promises,QX=async e=>{let t=(0,YX.getSSOTokenFilepath)(e),n=await JX(t,"utf8");return JSON.parse(n)};_f.getSSOTokenFromFile=QX});var ER=f(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.normalizeConfigFile=void 0;var XX=/^profile\s(["'])?([^\1]+)\1$/,ZX=e=>{let t={};for(let n of Object.keys(e)){let r;if(n==="default")t.default=e.default;else if(r=XX.exec(n)){let[i,s,o]=r;o&&(t[o]=e[n])}}return t};yf.normalizeConfigFile=ZX});var AR=f(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.parseIni=void 0;var eZ=["__proto__","profile __proto__"],tZ=e=>{let t={},n;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0];let i=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(n=i[1],eZ.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(n){let s=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[n]=t[n]||{},t[n][s[1]]=s[2])}}return t};gf.parseIni=tZ});var TR=f(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.slurpFile=void 0;var nZ=require("fs"),{readFile:rZ}=nZ.promises,ES={},iZ=e=>(ES[e]||(ES[e]=rZ(e,"utf8")),ES[e]);vf.slurpFile=iZ});var AS=f(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.loadSharedConfigFiles=Dn.ENV_CONFIG_PATH=Dn.ENV_CREDENTIALS_PATH=void 0;var CR=require("path"),xR=pf(),sZ=ER(),IR=AR(),RR=TR();Dn.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";Dn.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var DR=()=>({}),oZ=async(e={})=>{let{filepath:t=process.env[Dn.ENV_CREDENTIALS_PATH]||(0,CR.join)((0,xR.getHomeDir)(),".aws","credentials"),configFilepath:n=process.env[Dn.ENV_CONFIG_PATH]||(0,CR.join)((0,xR.getHomeDir)(),".aws","config")}=e,r=await Promise.all([(0,RR.slurpFile)(n).then(IR.parseIni).then(sZ.normalizeConfigFile).catch(DR),(0,RR.slurpFile)(t).then(IR.parseIni).catch(DR)]);return{configFile:r[0],credentialsFile:r[1]}};Dn.loadSharedConfigFiles=oZ});var NR=f(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.parseKnownFiles=void 0;var aZ=AS(),cZ=async e=>{let t=await(0,aZ.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};Sf.parseKnownFiles=cZ});var OR=f(PR=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0})});var Mr=f(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});var gi=K();gi.__exportStar(pf(),er);gi.__exportStar(wR(),er);gi.__exportStar(bS(),er);gi.__exportStar(bR(),er);gi.__exportStar(AS(),er);gi.__exportStar(NR(),er);gi.__exportStar(OR(),er)});var bf=f(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.httpRequest=void 0;var TS=je(),lZ=require("buffer"),uZ=require("http");function dZ(e){return new Promise((t,n)=>{var r;let i=(0,uZ.request)({method:"GET",...e,hostname:(r=e.hostname)===null||r===void 0?void 0:r.replace(/^\[(.+)\]$/,"$1")});i.on("error",s=>{n(Object.assign(new TS.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{n(new TS.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(n(Object.assign(new TS.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(lZ.Buffer.concat(a)),i.destroy()})}),i.end()})}wf.httpRequest=dZ});var CS=f(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.fromImdsCredentials=ss.isImdsCredentials=void 0;var fZ=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";ss.isImdsCredentials=fZ;var mZ=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});ss.fromImdsCredentials=mZ});var Ef=f(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.providerConfigFromInit=Nn.DEFAULT_MAX_RETRIES=Nn.DEFAULT_TIMEOUT=void 0;Nn.DEFAULT_TIMEOUT=1e3;Nn.DEFAULT_MAX_RETRIES=0;var pZ=({maxRetries:e=Nn.DEFAULT_MAX_RETRIES,timeout:t=Nn.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Nn.providerConfigFromInit=pZ});var xS=f(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.retry=void 0;var hZ=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};Af.retry=hZ});var qR=f(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.fromContainerMetadata=Xe.ENV_CMDS_AUTH_TOKEN=Xe.ENV_CMDS_RELATIVE_URI=Xe.ENV_CMDS_FULL_URI=void 0;var Tf=je(),_Z=require("url"),yZ=bf(),LR=CS(),gZ=Ef(),vZ=xS();Xe.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";Xe.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";Xe.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var SZ=(e={})=>{let{timeout:t,maxRetries:n}=(0,gZ.providerConfigFromInit)(e);return()=>(0,vZ.retry)(async()=>{let r=await TZ(),i=JSON.parse(await wZ(t,r));if(!(0,LR.isImdsCredentials)(i))throw new Tf.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,LR.fromImdsCredentials)(i)},n)};Xe.fromContainerMetadata=SZ;var wZ=async(e,t)=>(process.env[Xe.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[Xe.ENV_CMDS_AUTH_TOKEN]}),(await(0,yZ.httpRequest)({...t,timeout:e})).toString()),bZ="169.254.170.2",EZ={localhost:!0,"127.0.0.1":!0},AZ={"http:":!0,"https:":!0},TZ=async()=>{if(process.env[Xe.ENV_CMDS_RELATIVE_URI])return{hostname:bZ,path:process.env[Xe.ENV_CMDS_RELATIVE_URI]};if(process.env[Xe.ENV_CMDS_FULL_URI]){let e=(0,_Z.parse)(process.env[Xe.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in EZ))throw new Tf.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in AZ))throw new Tf.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 Tf.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${Xe.ENV_CMDS_RELATIVE_URI} or ${Xe.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var MR=f(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.fromEnv=void 0;var CZ=je(),xZ=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new CZ.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};Cf.fromEnv=xZ});var jR=f(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.fromSharedConfigFiles=void 0;var IZ=je(),zR=Mr(),RZ=(e,{preferredFile:t="config",...n}={})=>async()=>{let r=(0,zR.getProfileName)(n),{configFile:i,credentialsFile:s}=await(0,zR.loadSharedConfigFiles)(n),o=s[r]||{},a=i[r]||{},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 IZ.CredentialsProviderError(u.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}};xf.fromSharedConfigFiles=RZ});var kR=f(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.fromStatic=void 0;var DZ=je(),NZ=e=>typeof e=="function",PZ=e=>NZ(e)?async()=>await e():(0,DZ.fromStatic)(e);If.fromStatic=PZ});var UR=f(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.loadConfig=void 0;var FR=je(),OZ=MR(),LZ=jR(),qZ=kR(),MZ=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>(0,FR.memoize)((0,FR.chain)((0,OZ.fromEnv)(e),(0,LZ.fromSharedConfigFiles)(t,r),(0,qZ.fromStatic)(n)));Rf.loadConfig=MZ});var vi=f(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});var zZ=K();zZ.__exportStar(UR(),IS)});var BR=f(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.parseQueryString=void 0;function jZ(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}Df.parseQueryString=jZ});var Ea=f(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.parseUrl=void 0;var kZ=BR(),FZ=e=>{let{hostname:t,pathname:n,port:r,protocol:i,search:s}=new URL(e),o;return s&&(o=(0,kZ.parseQueryString)(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}};Nf.parseUrl=FZ});var GR=f(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.Endpoint=void 0;var UZ;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(UZ=Aa.Endpoint||(Aa.Endpoint={}))});var $R=f(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ENDPOINT_CONFIG_OPTIONS=Pn.CONFIG_ENDPOINT_NAME=Pn.ENV_ENDPOINT_NAME=void 0;Pn.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Pn.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Pn.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Pn.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Pn.CONFIG_ENDPOINT_NAME],default:void 0}});var RS=f(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.EndpointMode=void 0;var BZ;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(BZ=Ta.EndpointMode||(Ta.EndpointMode={}))});var VR=f(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.ENDPOINT_MODE_CONFIG_OPTIONS=On.CONFIG_ENDPOINT_MODE_NAME=On.ENV_ENDPOINT_MODE_NAME=void 0;var GZ=RS();On.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";On.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";On.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[On.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[On.CONFIG_ENDPOINT_MODE_NAME],default:GZ.EndpointMode.IPv4}});var NS=f(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.getInstanceMetadataEndpoint=void 0;var WR=vi(),$Z=Ea(),KR=GR(),VZ=$R(),DS=RS(),KZ=VR(),WZ=async()=>(0,$Z.parseUrl)(await HZ()||await YZ());Pf.getInstanceMetadataEndpoint=WZ;var HZ=async()=>(0,WR.loadConfig)(VZ.ENDPOINT_CONFIG_OPTIONS)(),YZ=async()=>{let e=await(0,WR.loadConfig)(KZ.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case DS.EndpointMode.IPv4:return KR.Endpoint.IPv4;case DS.EndpointMode.IPv6:return KR.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(DS.EndpointMode)}`)}}});var HR=f(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.getExtendedInstanceMetadataCredentials=void 0;var JZ=15*60,QZ=5*60,XZ="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",ZZ=(e,t)=>{var n;let r=JZ+Math.floor(Math.random()*QZ),i=new Date(Date.now()+r*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: "+XZ);let s=(n=e.originalExpiration)!==null&&n!==void 0?n:e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:i}};Of.getExtendedInstanceMetadataCredentials=ZZ});var JR=f(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.staticStabilityProvider=void 0;var YR=HR(),eee=(e,t={})=>{let n=(t==null?void 0:t.logger)||console,r;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,YR.getExtendedInstanceMetadataCredentials)(i,n))}catch(s){if(r)n.warn("Credential renew failed: ",s),i=(0,YR.getExtendedInstanceMetadataCredentials)(r,n);else throw s}return r=i,i}};Lf.staticStabilityProvider=eee});var eD=f(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.fromInstanceMetadata=void 0;var tee=je(),PS=bf(),QR=CS(),nee=Ef(),XR=xS(),ree=NS(),iee=JR(),ZR="/latest/meta-data/iam/security-credentials/",see="/latest/api/token",oee=(e={})=>(0,iee.staticStabilityProvider)(aee(e),{logger:e.logger});qf.fromInstanceMetadata=oee;var aee=e=>{let t=!1,{timeout:n,maxRetries:r}=(0,nee.providerConfigFromInit)(e),i=async(s,o)=>{let a=(await(0,XR.retry)(async()=>{let c;try{c=await lee(o)}catch(u){throw u.statusCode===401&&(t=!1),u}return c},s)).trim();return(0,XR.retry)(async()=>{let c;try{c=await uee(a,o)}catch(u){throw u.statusCode===401&&(t=!1),u}return c},s)};return async()=>{let s=await(0,ree.getInstanceMetadataEndpoint)();if(t)return i(r,{...s,timeout:n});{let o;try{o=(await cee({...s,timeout:n})).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(r,{...s,timeout:n})}return i(r,{...s,headers:{"x-aws-ec2-metadata-token":o},timeout:n})}}},cee=async e=>(0,PS.httpRequest)({...e,path:see,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),lee=async e=>(await(0,PS.httpRequest)({...e,path:ZR})).toString(),uee=async(e,t)=>{let n=JSON.parse((await(0,PS.httpRequest)({...t,path:ZR+e})).toString());if(!(0,QR.isImdsCredentials)(n))throw new tee.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,QR.fromImdsCredentials)(n)}});var nD=f(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0})});var zf=f(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.getInstanceMetadataEndpoint=Ln.httpRequest=void 0;var Mf=K();Mf.__exportStar(qR(),Ln);Mf.__exportStar(eD(),Ln);Mf.__exportStar(Ef(),Ln);Mf.__exportStar(nD(),Ln);var dee=bf();Object.defineProperty(Ln,"httpRequest",{enumerable:!0,get:function(){return dee.httpRequest}});var fee=NS();Object.defineProperty(Ln,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return fee.getInstanceMetadataEndpoint}})});var iD=f(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.resolveCredentialSource=void 0;var mee=wS(),rD=zf(),pee=je(),hee=(e,t)=>{let n={EcsContainer:rD.fromContainerMetadata,Ec2InstanceMetadata:rD.fromInstanceMetadata,Environment:mee.fromEnv};if(e in n)return n[e]();throw new pee.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};jf.resolveCredentialSource=hee});var sD=f(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.resolveAssumeRoleCredentials=os.isAssumeRoleProfile=void 0;var OS=je(),_ee=Mr(),yee=iD(),gee=LS(),vee=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&&(See(e)||wee(e));os.isAssumeRoleProfile=vee;var See=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",wee=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",bee=async(e,t,n,r={})=>{let i=t[e];if(!n.roleAssumer)throw new OS.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 r)throw new OS.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,_ee.getProfileName)(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let o=s?(0,gee.resolveProfileData)(s,t,n,{...r,[s]:!0}):(0,yee.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(!n.mfaCodeProvider)throw new OS.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);a.SerialNumber=c,a.TokenCode=await n.mfaCodeProvider(c)}let u=await o;return n.roleAssumer(u,a)};os.resolveAssumeRoleCredentials=bee});var qS=f(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.isSsoProfile=void 0;var Eee=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");kf.isSsoProfile=Eee});var Uf=f(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.SSOServiceException=void 0;var Aee=O(),Ca=class extends Aee.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Ca.prototype)}};Ff.SSOServiceException=Ca});var Si=f(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.LogoutRequest=ae.ListAccountsResponse=ae.ListAccountsRequest=ae.ListAccountRolesResponse=ae.RoleInfo=ae.ListAccountRolesRequest=ae.UnauthorizedException=ae.TooManyRequestsException=ae.ResourceNotFoundException=ae.InvalidRequestException=ae.GetRoleCredentialsResponse=ae.RoleCredentials=ae.GetRoleCredentialsRequest=ae.AccountInfo=void 0;var as=O(),Bf=Uf(),Tee;(function(e){e.filterSensitiveLog=t=>({...t})})(Tee=ae.AccountInfo||(ae.AccountInfo={}));var Cee;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:as.SENSITIVE_STRING}})})(Cee=ae.GetRoleCredentialsRequest||(ae.GetRoleCredentialsRequest={}));var oD;(function(e){e.filterSensitiveLog=t=>({...t,...t.secretAccessKey&&{secretAccessKey:as.SENSITIVE_STRING},...t.sessionToken&&{sessionToken:as.SENSITIVE_STRING}})})(oD=ae.RoleCredentials||(ae.RoleCredentials={}));var xee;(function(e){e.filterSensitiveLog=t=>({...t,...t.roleCredentials&&{roleCredentials:oD.filterSensitiveLog(t.roleCredentials)}})})(xee=ae.GetRoleCredentialsResponse||(ae.GetRoleCredentialsResponse={}));var xa=class extends Bf.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,xa.prototype)}};ae.InvalidRequestException=xa;var Ia=class extends Bf.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ia.prototype)}};ae.ResourceNotFoundException=Ia;var Ra=class extends Bf.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Ra.prototype)}};ae.TooManyRequestsException=Ra;var Da=class extends Bf.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Da.prototype)}};ae.UnauthorizedException=Da;var Iee;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:as.SENSITIVE_STRING}})})(Iee=ae.ListAccountRolesRequest||(ae.ListAccountRolesRequest={}));var Ree;(function(e){e.filterSensitiveLog=t=>({...t})})(Ree=ae.RoleInfo||(ae.RoleInfo={}));var Dee;(function(e){e.filterSensitiveLog=t=>({...t})})(Dee=ae.ListAccountRolesResponse||(ae.ListAccountRolesResponse={}));var Nee;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:as.SENSITIVE_STRING}})})(Nee=ae.ListAccountsRequest||(ae.ListAccountsRequest={}));var Pee;(function(e){e.filterSensitiveLog=t=>({...t})})(Pee=ae.ListAccountsResponse||(ae.ListAccountsResponse={}));var Oee;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:as.SENSITIVE_STRING}})})(Oee=ae.LogoutRequest||(ae.LogoutRequest={}))});var Na=f(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.deserializeAws_restJson1LogoutCommand=Ze.deserializeAws_restJson1ListAccountsCommand=Ze.deserializeAws_restJson1ListAccountRolesCommand=Ze.deserializeAws_restJson1GetRoleCredentialsCommand=Ze.serializeAws_restJson1LogoutCommand=Ze.serializeAws_restJson1ListAccountsCommand=Ze.serializeAws_restJson1ListAccountRolesCommand=Ze.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var Gf=Ot(),be=O(),$f=Si(),Vf=Uf(),Lee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o={...Yf(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 Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:o,path:a,query:c,body:u})};Ze.serializeAws_restJson1GetRoleCredentialsCommand=Lee;var qee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o={...Yf(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 Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:o,path:a,query:c,body:u})};Ze.serializeAws_restJson1ListAccountRolesCommand=qee;var Mee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o={...Yf(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 Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:o,path:a,query:c,body:u})};Ze.serializeAws_restJson1ListAccountsCommand=Mee;var zee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o={...Yf(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,c;return new Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:o,path:a,body:c})};Ze.serializeAws_restJson1LogoutCommand=zee;var jee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return kee(e,t);let n={$metadata:Yt(e),roleCredentials:void 0},r=(0,be.expectNonNull)((0,be.expectObject)(await wi(e.body,t)),"body");return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=Hee(r.roleCredentials,t)),Promise.resolve(n)};Ze.deserializeAws_restJson1GetRoleCredentialsCommand=jee;var kee=async(e,t)=>{let n={...e,body:await wi(e.body,t)},r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await MS(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Wf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Hf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Yt(e)}),(0,be.decorateServiceException)(r,s)}},Fee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uee(e,t);let n={$metadata:Yt(e),nextToken:void 0,roleList:void 0},r=(0,be.expectNonNull)((0,be.expectObject)(await wi(e.body,t)),"body");return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=(0,be.expectString)(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=Jee(r.roleList,t)),Promise.resolve(n)};Ze.deserializeAws_restJson1ListAccountRolesCommand=Fee;var Uee=async(e,t)=>{let n={...e,body:await wi(e.body,t)},r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await MS(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Wf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Hf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Yt(e)}),(0,be.decorateServiceException)(r,s)}},Bee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gee(e,t);let n={$metadata:Yt(e),accountList:void 0,nextToken:void 0},r=(0,be.expectNonNull)((0,be.expectObject)(await wi(e.body,t)),"body");return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=Wee(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=(0,be.expectString)(r.nextToken)),Promise.resolve(n)};Ze.deserializeAws_restJson1ListAccountsCommand=Bee;var Gee=async(e,t)=>{let n={...e,body:await wi(e.body,t)},r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await MS(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Wf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Hf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Yt(e)}),(0,be.decorateServiceException)(r,s)}},$ee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vee(e,t);let n={$metadata:Yt(e)};return await aD(e.body,t),Promise.resolve(n)};Ze.deserializeAws_restJson1LogoutCommand=$ee;var Vee=async(e,t)=>{let n={...e,body:await wi(e.body,t)},r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Wf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Hf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Yt(e)}),(0,be.decorateServiceException)(r,s)}},Kf=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,be.expectString)(r.message));let i=new $f.InvalidRequestException({$metadata:Yt(e),...n});return(0,be.decorateServiceException)(i,e.body)},MS=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,be.expectString)(r.message));let i=new $f.ResourceNotFoundException({$metadata:Yt(e),...n});return(0,be.decorateServiceException)(i,e.body)},Wf=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,be.expectString)(r.message));let i=new $f.TooManyRequestsException({$metadata:Yt(e),...n});return(0,be.decorateServiceException)(i,e.body)},Hf=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,be.expectString)(r.message));let i=new $f.UnauthorizedException({$metadata:Yt(e),...n});return(0,be.decorateServiceException)(i,e.body)},Kee=(e,t)=>({accountId:(0,be.expectString)(e.accountId),accountName:(0,be.expectString)(e.accountName),emailAddress:(0,be.expectString)(e.emailAddress)}),Wee=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Kee(r,t)),Hee=(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)}),Yee=(e,t)=>({accountId:(0,be.expectString)(e.accountId),roleName:(0,be.expectString)(e.roleName)}),Jee=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Yee(r,t)),Yt=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"]}},aD=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Qee=(e,t)=>aD(e,t).then(n=>t.utf8Encoder(n)),Yf=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),wi=(e,t)=>Qee(e,t).then(n=>n.length?JSON.parse(n):{}),Jf=(e,t)=>{let n=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),r=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=n(e.headers,"x-amzn-errortype");return i!==void 0?r(e.headers[i]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var jS=f(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.GetRoleCredentialsCommand=void 0;var Xee=U(),Zee=O(),cD=Si(),lD=Na(),zS=class extends Zee.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Xee.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:cD.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:cD.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,lD.serializeAws_restJson1GetRoleCredentialsCommand)(t,n)}deserialize(t,n){return(0,lD.deserializeAws_restJson1GetRoleCredentialsCommand)(t,n)}};Qf.GetRoleCredentialsCommand=zS});var Zf=f(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.ListAccountRolesCommand=void 0;var ete=U(),tte=O(),uD=Si(),dD=Na(),kS=class extends tte.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ete.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:uD.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:uD.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,dD.serializeAws_restJson1ListAccountRolesCommand)(t,n)}deserialize(t,n){return(0,dD.deserializeAws_restJson1ListAccountRolesCommand)(t,n)}};Xf.ListAccountRolesCommand=kS});var tm=f(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.ListAccountsCommand=void 0;var nte=U(),rte=O(),fD=Si(),mD=Na(),FS=class extends rte.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,nte.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:fD.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:fD.ListAccountsResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,mD.serializeAws_restJson1ListAccountsCommand)(t,n)}deserialize(t,n){return(0,mD.deserializeAws_restJson1ListAccountsCommand)(t,n)}};em.ListAccountsCommand=FS});var BS=f(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.LogoutCommand=void 0;var ite=U(),ste=O(),ote=Si(),pD=Na(),US=class extends ste.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ite.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:ote.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:d=>d},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,pD.serializeAws_restJson1LogoutCommand)(t,n)}deserialize(t,n){return(0,pD.deserializeAws_restJson1LogoutCommand)(t,n)}};nm.LogoutCommand=US});var hD=f((bwe,ate)=>{ate.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 rm=f(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.fromString=cs.fromArrayBuffer=void 0;var cte=zv(),GS=require("buffer"),lte=(e,t=0,n=e.byteLength-t)=>{if(!(0,cte.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return GS.Buffer.from(e,t,n)};cs.fromArrayBuffer=lte;var ute=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?GS.Buffer.from(e,t):GS.Buffer.from(e)};cs.fromString=ute});var sm=f(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.Hash=void 0;var $S=rm(),dte=require("buffer"),_D=require("crypto"),VS=class{constructor(t,n){this.hash=n?(0,_D.createHmac)(t,yD(n)):(0,_D.createHash)(t)}update(t,n){this.hash.update(yD(t,n))}digest(){return Promise.resolve(this.hash.digest())}};im.Hash=VS;function yD(e,t){return dte.Buffer.isBuffer(e)?e:typeof e=="string"?(0,$S.fromString)(e,t):ArrayBuffer.isView(e)?(0,$S.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,$S.fromArrayBuffer)(e)}});var WS=f(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.buildQueryString=void 0;var KS=qv();function fte(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=(0,KS.escapeUri)(n),Array.isArray(r))for(let i=0,s=r.length;i<s;i++)t.push(`${n}=${(0,KS.escapeUri)(r[i])}`);else{let i=n;(r||typeof r=="string")&&(i+=`=${(0,KS.escapeUri)(r)}`),t.push(i)}}return t.join("&")}om.buildQueryString=fte});var gD=f(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.NODEJS_TIMEOUT_ERROR_CODES=void 0;am.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var HS=f(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.getTransformedHeaders=void 0;var mte=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};cm.getTransformedHeaders=mte});var vD=f(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.setConnectionTimeout=void 0;var pte=(e,t,n=0)=>{!n||e.on("socket",r=>{if(r.connecting){let i=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${n} ms`),{name:"TimeoutError"}))},n);r.on("connect",()=>{clearTimeout(i)})}})};lm.setConnectionTimeout=pte});var SD=f(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.setSocketTimeout=void 0;var hte=(e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})};um.setSocketTimeout=hte});var YS=f(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.writeRequestBody=void 0;var _te=require("stream");function yte(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{wD(e,t.body)}):wD(e,t.body)}dm.writeRequestBody=yte;function wD(e,t){t instanceof _te.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var AD=f(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.NodeHttpHandler=void 0;var gte=Ot(),vte=WS(),bD=require("http"),ED=require("https"),Ste=gD(),wte=HS(),bte=vD(),Ete=SD(),Ate=YS(),JS=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((n,r)=>{typeof t=="function"?t().then(i=>{n(this.resolveDefaultConfig(i))}).catch(r):n(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){let{connectionTimeout:n,socketTimeout:r,httpAgent:i,httpsAgent:s}=t||{},o=!0,a=50;return{connectionTimeout:n,socketTimeout:r,httpAgent:i||new bD.Agent({keepAlive:o,maxSockets:a}),httpsAgent:s||new ED.Agent({keepAlive:o,maxSockets:a})}}destroy(){var t,n,r,i;(n=(t=this.config)===null||t===void 0?void 0:t.httpAgent)===null||n===void 0||n.destroy(),(i=(r=this.config)===null||r===void 0?void 0:r.httpsAgent)===null||i===void 0||i.destroy()}async handle(t,{abortSignal:n}={}){return this.config||(this.config=await this.configProvider),new Promise((r,i)=>{if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(n!=null&&n.aborted){let d=new Error("Request aborted");d.name="AbortError",i(d);return}let s=t.protocol==="https:",o=(0,vte.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?ED.request:bD.request)(a,d=>{let h=new gte.HttpResponse({statusCode:d.statusCode||-1,headers:(0,wte.getTransformedHeaders)(d.headers),body:d});r({response:h})});u.on("error",d=>{Ste.NODEJS_TIMEOUT_ERROR_CODES.includes(d.code)?i(Object.assign(d,{name:"TimeoutError"})):i(d)}),(0,bte.setConnectionTimeout)(u,i,this.config.connectionTimeout),(0,Ete.setSocketTimeout)(u,i,this.config.socketTimeout),n&&(n.onabort=()=>{u.abort();let d=new Error("Request aborted");d.name="AbortError",i(d)}),(0,Ate.writeRequestBody)(u,t)})}};fm.NodeHttpHandler=JS});var TD=f(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.NodeHttp2Handler=void 0;var Tte=Ot(),Cte=WS(),QS=require("http2"),xte=HS(),Ite=YS(),XS=class{constructor({requestTimeout:t,sessionTimeout:n,disableConcurrentStreams:r}={}){this.metadata={handlerProtocol:"h2"},this.requestTimeout=t,this.sessionTimeout=n,this.disableConcurrentStreams=r,this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(n=>this.destroySession(n));this.sessionCache.clear()}handle(t,{abortSignal:n}={}){return new Promise((r,i)=>{let s=!1;if(n!=null&&n.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:h}=t,m=`${u}//${o}${c?`:${c}`:""}`,y=this.getSession(m,this.disableConcurrentStreams||!1),g=T=>{this.disableConcurrentStreams&&this.destroySession(y),s=!0,i(T)},_=(0,Cte.buildQueryString)(h||{}),A=y.request({...t.headers,[QS.constants.HTTP2_HEADER_PATH]:_?`${d}?${_}`:d,[QS.constants.HTTP2_HEADER_METHOD]:a});y.ref(),A.on("response",T=>{let G=new Tte.HttpResponse({statusCode:T[":status"]||-1,headers:(0,xte.getTransformedHeaders)(T),body:A});s=!0,r({response:G}),this.disableConcurrentStreams&&(y.close(),this.deleteSessionFromCache(m,y))});let R=this.requestTimeout;R&&A.setTimeout(R,()=>{A.close();let T=new Error(`Stream timed out because of no activity for ${R} ms`);T.name="TimeoutError",g(T)}),n&&(n.onabort=()=>{A.close();let T=new Error("Request aborted");T.name="AbortError",g(T)}),A.on("frameError",(T,G,he)=>{g(new Error(`Frame type id ${T} in stream id ${he} has failed with code ${G}.`))}),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",()=>{y.unref(),this.disableConcurrentStreams&&y.destroy(),s||g(new Error("Unexpected error: http2 request did not get a response"))}),(0,Ite.writeRequestBody)(A,t)})}getSession(t,n){let r=this.sessionCache,i=r.get(t)||[];if(i.length>0&&!n)return i[0];let s=(0,QS.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),r.set(t,i),s}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,n){let r=this.sessionCache.get(t)||[];!r.includes(n)||this.sessionCache.set(t,r.filter(i=>i!==n))}};mm.NodeHttp2Handler=XS});var CD=f(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.Collector=void 0;var Rte=require("stream"),ZS=class extends Rte.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};pm.Collector=ZS});var xD=f(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.streamCollector=void 0;var Dte=CD(),Nte=e=>new Promise((t,n)=>{let r=new Dte.Collector;e.pipe(r),e.on("error",i=>{r.end(),n(i)}),r.on("error",n),r.on("finish",function(){let i=new Uint8Array(Buffer.concat(this.bufferedBytes));t(i)})});hm.streamCollector=Nte});var _m=f(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var ew=K();ew.__exportStar(AD(),Pa);ew.__exportStar(TD(),Pa);ew.__exportStar(xD(),Pa)});var ym=f(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.toBase64=ls.fromBase64=void 0;var ID=rm(),Pte=/^[A-Za-z0-9+/]*={0,2}$/;function Ote(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Pte.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,ID.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}ls.fromBase64=Ote;function Lte(e){return(0,ID.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")}ls.toBase64=Lte});var DD=f(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.calculateBodyLength=void 0;var RD=require("fs"),qte=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,RD.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,RD.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};gm.calculateBodyLength=qte});var vm=f(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0});var Mte=K();Mte.__exportStar(DD(),tw)});var ND=f((Sm,nw)=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.isCrtAvailable=void 0;var zte=()=>{try{return typeof require=="function"&&typeof nw<"u"&&nw.require&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};Sm.isCrtAvailable=zte});var wm=f(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.defaultUserAgent=qn.UA_APP_ID_INI_NAME=qn.UA_APP_ID_ENV_NAME=void 0;var jte=vi(),PD=require("os"),rw=require("process"),kte=ND();qn.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";qn.UA_APP_ID_INI_NAME="sdk-ua-app-id";var Fte=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],[`os/${(0,PD.platform)()}`,(0,PD.release)()],["lang/js"],["md/nodejs",`${rw.versions.node}`]],r=(0,kte.isCrtAvailable)();r&&n.push(r),e&&n.push([`api/${e}`,t]),rw.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${rw.env.AWS_EXECUTION_ENV}`]);let i=(0,jte.loadConfig)({environmentVariableSelector:o=>o[qn.UA_APP_ID_ENV_NAME],configFileSelector:o=>o[qn.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let o=await i;s=o?[...n,[`app/${o}`]]:[...n]}return s}};qn.defaultUserAgent=Fte});var bm=f(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.toUtf8=us.fromUtf8=void 0;var OD=rm(),Ute=e=>{let t=(0,OD.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};us.fromUtf8=Ute;var Bte=e=>(0,OD.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");us.toUtf8=Bte});var LD=f(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.defaultRegionInfoProvider=void 0;var Gte=en(),$te={"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"}},Vte={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"]}]}},Kte=async(e,t)=>(0,Gte.getRegionInfo)(e,{...t,signingService:"awsssoportal",regionHash:$te,partitionHash:Vte});Em.defaultRegionInfoProvider=Kte});var qD=f(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getRuntimeConfig=void 0;var Wte=Ea(),Hte=LD(),Yte=e=>{var t,n,r,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:Hte.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:Wte.parseUrl}};Am.getRuntimeConfig=Yte});var MD=f(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.IMDS_REGION_PATH=Et.DEFAULTS_MODE_OPTIONS=Et.ENV_IMDS_DISABLED=Et.AWS_DEFAULT_REGION_ENV=Et.AWS_REGION_ENV=Et.AWS_EXECUTION_ENV=void 0;Et.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";Et.AWS_REGION_ENV="AWS_REGION";Et.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";Et.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";Et.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];Et.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var zD=f(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var Jte="AWS_DEFAULTS_MODE",Qte="defaults_mode";Tm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Jte],configFileSelector:e=>e[Qte],default:"legacy"}});var FD=f(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.resolveDefaultsModeConfig=void 0;var Xte=en(),jD=zf(),kD=vi(),Zte=je(),zr=MD(),ene=zD(),tne=({region:e=(0,kD.loadConfig)(Xte.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,kD.loadConfig)(ene.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,Zte.memoize)(async()=>{let n=typeof t=="function"?await t():t;switch(n==null?void 0:n.toLowerCase()){case"auto":return nne(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n==null?void 0:n.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${zr.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${n}`)}});Cm.resolveDefaultsModeConfig=tne;var nne=async e=>{if(e){let t=typeof e=="function"?await e():e,n=await rne();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},rne=async()=>{var e;if(process.env[zr.AWS_EXECUTION_ENV]&&(process.env[zr.AWS_REGION_ENV]||process.env[zr.AWS_DEFAULT_REGION_ENV]))return(e=process.env[zr.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[zr.AWS_DEFAULT_REGION_ENV];if(!process.env[zr.ENV_IMDS_DISABLED])try{let t=await(0,jD.getInstanceMetadataEndpoint)();return(await(0,jD.httpRequest)({...t,path:zr.IMDS_REGION_PATH})).toString()}catch{}}});var xm=f(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});var ine=K();ine.__exportStar(FD(),iw)});var $D=f(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.getRuntimeConfig=void 0;var sne=K(),one=sne.__importDefault(hD()),Im=en(),ane=sm(),sw=ui(),Oa=vi(),UD=_m(),BD=ym(),cne=vm(),lne=wm(),GD=bm(),une=qD(),dne=O(),fne=xm(),mne=e=>{var t,n,r,i,s,o,a,c,u,d,h,m,y,g;let _=(0,fne.resolveDefaultsModeConfig)(e),A=()=>_().then(dne.loadConfigsForDefaultMode),R=(0,une.getRuntimeConfig)(e);return{...R,...e,runtime:"node",defaultsMode:_,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:BD.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:BD.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:cne.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,lne.defaultUserAgent)({serviceId:R.serviceId,clientVersion:one.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Oa.loadConfig)(sw.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,Oa.loadConfig)(Im.NODE_REGION_CONFIG_OPTIONS,Im.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(a=e==null?void 0:e.requestHandler)!==null&&a!==void 0?a:new UD.NodeHttpHandler(A),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,Oa.loadConfig)({...sw.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await A()).retryMode||sw.DEFAULT_RETRY_MODE}),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:ane.Hash.bind(null,"sha256"),streamCollector:(d=e==null?void 0:e.streamCollector)!==null&&d!==void 0?d:UD.streamCollector,useDualstackEndpoint:(h=e==null?void 0:e.useDualstackEndpoint)!==null&&h!==void 0?h:(0,Oa.loadConfig)(Im.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(m=e==null?void 0:e.useFipsEndpoint)!==null&&m!==void 0?m:(0,Oa.loadConfig)(Im.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(y=e==null?void 0:e.utf8Decoder)!==null&&y!==void 0?y:GD.fromUtf8,utf8Encoder:(g=e==null?void 0:e.utf8Encoder)!==null&&g!==void 0?g:GD.toUtf8}};Rm.getRuntimeConfig=mne});var La=f(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.SSOClient=void 0;var VD=en(),pne=Vu(),KD=Zu(),hne=ed(),WD=ui(),HD=Fd(),_ne=O(),yne=$D(),ow=class extends _ne.Client{constructor(t){let n=(0,yne.getRuntimeConfig)(t),r=(0,VD.resolveRegionConfig)(n),i=(0,VD.resolveEndpointsConfig)(r),s=(0,WD.resolveRetryConfig)(i),o=(0,KD.resolveHostHeaderConfig)(s),a=(0,HD.resolveUserAgentConfig)(o);super(a),this.config=a,this.middlewareStack.use((0,WD.getRetryPlugin)(this.config)),this.middlewareStack.use((0,pne.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,KD.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,hne.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,HD.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Dm.SSOClient=ow});var Pm=f(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.SSO=void 0;var gne=jS(),vne=Zf(),Sne=tm(),wne=BS(),bne=La(),aw=class extends bne.SSOClient{getRoleCredentials(t,n,r){let i=new gne.GetRoleCredentialsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listAccountRoles(t,n,r){let i=new vne.ListAccountRolesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listAccounts(t,n,r){let i=new Sne.ListAccountsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}logout(t,n,r){let i=new wne.LogoutCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};Nm.SSO=aw});var YD=f(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});var Om=K();Om.__exportStar(jS(),ds);Om.__exportStar(Zf(),ds);Om.__exportStar(tm(),ds);Om.__exportStar(BS(),ds)});var JD=f(cw=>{"use strict";Object.defineProperty(cw,"__esModule",{value:!0});var Ene=K();Ene.__exportStar(Si(),cw)});var XD=f(QD=>{"use strict";Object.defineProperty(QD,"__esModule",{value:!0})});var ZD=f(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});Lm.paginateListAccountRoles=void 0;var Ane=Zf(),Tne=Pm(),Cne=La(),xne=async(e,t,...n)=>await e.send(new Ane.ListAccountRolesCommand(t),...n),Ine=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*Rne(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof Tne.SSO)s=await Ine(e.client,t,...n);else if(e.client instanceof Cne.SSOClient)s=await xne(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=r;r=s.nextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}Lm.paginateListAccountRoles=Rne});var eN=f(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.paginateListAccounts=void 0;var Dne=tm(),Nne=Pm(),Pne=La(),One=async(e,t,...n)=>await e.send(new Dne.ListAccountsCommand(t),...n),Lne=async(e,t,...n)=>await e.listAccounts(t,...n);async function*qne(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof Nne.SSO)s=await Lne(e.client,t,...n);else if(e.client instanceof Pne.SSOClient)s=await One(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=r;r=s.nextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}qm.paginateListAccounts=qne});var tN=f(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var lw=K();lw.__exportStar(XD(),qa);lw.__exportStar(ZD(),qa);lw.__exportStar(eN(),qa)});var nN=f(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.SSOServiceException=void 0;var Ma=K();Ma.__exportStar(Pm(),tr);Ma.__exportStar(La(),tr);Ma.__exportStar(YD(),tr);Ma.__exportStar(JD(),tr);Ma.__exportStar(tN(),tr);var Mne=Uf();Object.defineProperty(tr,"SSOServiceException",{enumerable:!0,get:function(){return Mne.SSOServiceException}})});var iN=f(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.resolveSSOCredentials=void 0;var rN=nN(),Mm=je(),zne=Mr(),jne=15*60*1e3,zm=!1,kne=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:n,ssoRoleName:r,ssoClient:i})=>{let s,o="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,zne.getSSOTokenFromFile)(e)}catch{throw new Mm.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${o}`,zm)}if(new Date(s.expiresAt).getTime()-Date.now()<=jne)throw new Mm.CredentialsProviderError(`The SSO session associated with this profile has expired. ${o}`,zm);let{accessToken:a}=s,c=i||new rN.SSOClient({region:n}),u;try{u=await c.send(new rN.GetRoleCredentialsCommand({accountId:t,roleName:r,accessToken:a}))}catch(g){throw Mm.CredentialsProviderError.from(g,zm)}let{roleCredentials:{accessKeyId:d,secretAccessKey:h,sessionToken:m,expiration:y}={}}=u;if(!d||!h||!m||!y)throw new Mm.CredentialsProviderError("SSO returns an invalid temporary credential.",zm);return{accessKeyId:d,secretAccessKey:h,sessionToken:m,expiration:new Date(y)}};jm.resolveSSOCredentials=kne});var uw=f(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.validateSsoProfile=void 0;var Fne=je(),Une=e=>{let{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=e;if(!t||!n||!r||!i)throw new Fne.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};km.validateSsoProfile=Une});var cN=f(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.fromSSO=void 0;var sN=je(),oN=Mr(),Bne=qS(),aN=iN(),Gne=uw(),$ne=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s}=e;if(!t&&!n&&!r&&!i){let o=await(0,oN.parseKnownFiles)(e),a=(0,oN.getProfileName)(e),c=o[a];if(!(0,Bne.isSsoProfile)(c))throw new sN.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`);let{sso_start_url:u,sso_account_id:d,sso_region:h,sso_role_name:m}=(0,Gne.validateSsoProfile)(c);return(0,aN.resolveSSOCredentials)({ssoStartUrl:u,ssoAccountId:d,ssoRegion:h,ssoRoleName:m,ssoClient:s})}else{if(!t||!n||!r||!i)throw new sN.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,aN.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s})}};Fm.fromSSO=$ne});var uN=f(lN=>{"use strict";Object.defineProperty(lN,"__esModule",{value:!0})});var Bm=f(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var Um=K();Um.__exportStar(cN(),fs);Um.__exportStar(qS(),fs);Um.__exportStar(uN(),fs);Um.__exportStar(uw(),fs)});var fN=f(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.resolveSsoCredentials=ms.isSsoProfile=void 0;var dN=Bm(),Vne=Bm();Object.defineProperty(ms,"isSsoProfile",{enumerable:!0,get:function(){return Vne.isSsoProfile}});var Kne=e=>{let{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=(0,dN.validateSsoProfile)(e);return(0,dN.fromSSO)({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i})()};ms.resolveSsoCredentials=Kne});var mN=f(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.resolveStaticCredentials=ps.isStaticCredsProfile=void 0;var Wne=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;ps.isStaticCredsProfile=Wne;var Hne=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});ps.resolveStaticCredentials=Hne});var dw=f(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.fromWebToken=void 0;var Yne=je(),Jne=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:i,policyArns:s,policy:o,durationSeconds:a,roleAssumerWithWebIdentity:c}=e;if(!c)throw new Yne.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return c({RoleArn:t,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:i,PolicyArns:s,Policy:o,DurationSeconds:a})};Gm.fromWebToken=Jne});var pN=f($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.fromTokenFile=void 0;var Qne=je(),Xne=require("fs"),Zne=dw(),ere="AWS_WEB_IDENTITY_TOKEN_FILE",tre="AWS_ROLE_ARN",nre="AWS_ROLE_SESSION_NAME",rre=(e={})=>async()=>ire(e);$m.fromTokenFile=rre;var ire=e=>{var t,n,r;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[ere],s=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[tre],o=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[nre];if(!i||!s)throw new Qne.CredentialsProviderError("Web identity configuration not specified");return(0,Zne.fromWebToken)({...e,webIdentityToken:(0,Xne.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:o})()}});var fw=f(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var hN=K();hN.__exportStar(pN(),Vm);hN.__exportStar(dw(),Vm)});var _N=f(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.resolveWebIdentityCredentials=hs.isWebIdentityProfile=void 0;var sre=fw(),ore=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;hs.isWebIdentityProfile=ore;var are=async(e,t)=>(0,sre.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();hs.resolveWebIdentityCredentials=are});var LS=f(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.resolveProfileData=void 0;var cre=je(),yN=sD(),gN=fN(),Km=mN(),vN=_N(),lre=async(e,t,n,r={})=>{let i=t[e];if(Object.keys(r).length>0&&(0,Km.isStaticCredsProfile)(i))return(0,Km.resolveStaticCredentials)(i);if((0,yN.isAssumeRoleProfile)(i))return(0,yN.resolveAssumeRoleCredentials)(e,t,n,r);if((0,Km.isStaticCredsProfile)(i))return(0,Km.resolveStaticCredentials)(i);if((0,vN.isWebIdentityProfile)(i))return(0,vN.resolveWebIdentityCredentials)(i,n);if((0,gN.isSsoProfile)(i))return(0,gN.resolveSsoCredentials)(i);throw new cre.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};Wm.resolveProfileData=lre});var wN=f(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.fromIni=void 0;var SN=Mr(),ure=LS(),dre=(e={})=>async()=>{let t=await(0,SN.parseKnownFiles)(e);return(0,ure.resolveProfileData)((0,SN.getProfileName)(e),t,e)};Hm.fromIni=dre});var bN=f(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0});var fre=K();fre.__exportStar(wN(),mw)});var EN=f(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.getValidatedProcessCredentials=void 0;var mre=(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 n=new Date;if(new Date(t.Expiration)<n)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)}}};Ym.getValidatedProcessCredentials=mre});var AN=f(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.resolveProcessCredentials=void 0;var pw=je(),pre=require("child_process"),hre=require("util"),_re=EN(),yre=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0){let i=(0,hre.promisify)(pre.exec);try{let{stdout:s}=await i(r),o;try{o=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,_re.getValidatedProcessCredentials)(e,o)}catch(s){throw new pw.CredentialsProviderError(s.message)}}else throw new pw.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new pw.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};Jm.resolveProcessCredentials=yre});var CN=f(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.fromProcess=void 0;var TN=Mr(),gre=AN(),vre=(e={})=>async()=>{let t=await(0,TN.parseKnownFiles)(e);return(0,gre.resolveProcessCredentials)((0,TN.getProfileName)(e),t)};Qm.fromProcess=vre});var xN=f(hw=>{"use strict";Object.defineProperty(hw,"__esModule",{value:!0});var Sre=K();Sre.__exportStar(CN(),hw)});var IN=f(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.remoteProvider=bi.ENV_IMDS_DISABLED=void 0;var Xm=zf(),wre=je();bi.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var bre=e=>process.env[Xm.ENV_CMDS_RELATIVE_URI]||process.env[Xm.ENV_CMDS_FULL_URI]?(0,Xm.fromContainerMetadata)(e):process.env[bi.ENV_IMDS_DISABLED]?async()=>{throw new wre.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,Xm.fromInstanceMetadata)(e);bi.remoteProvider=bre});var RN=f(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.defaultProvider=void 0;var Ere=wS(),Are=bN(),Tre=xN(),Cre=Bm(),xre=fw(),_w=je(),Ire=Mr(),Rre=IN(),Dre=(e={})=>(0,_w.memoize)((0,_w.chain)(...e.profile||process.env[Ire.ENV_PROFILE]?[]:[(0,Ere.fromEnv)()],(0,Cre.fromSSO)(e),(0,Are.fromIni)(e),(0,Tre.fromProcess)(e),(0,xre.fromTokenFile)(e),(0,Rre.remoteProvider)(e),async()=>{throw new _w.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);Zm.defaultProvider=Dre});var gw=f(yw=>{"use strict";Object.defineProperty(yw,"__esModule",{value:!0});var Nre=K();Nre.__exportStar(RN(),yw)});var DN=f(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.defaultRegionInfoProvider=void 0;var Pre=en(),Ore={"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"]}]}},Lre={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"]}]}},qre=async(e,t)=>(0,Pre.getRegionInfo)(e,{...t,signingService:"sts",regionHash:Ore,partitionHash:Lre});ep.defaultRegionInfoProvider=qre});var NN=f(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.getRuntimeConfig=void 0;var Mre=Ea(),zre=DN(),jre=e=>{var t,n,r,i,s;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:zre.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:Mre.parseUrl}};tp.getRuntimeConfig=jre});var qN=f(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.getRuntimeConfig=void 0;var kre=K(),Fre=kre.__importDefault(yR()),Ure=vS(),np=en(),Bre=gw(),Gre=sm(),vw=ui(),za=vi(),PN=_m(),ON=ym(),$re=vm(),Vre=wm(),LN=bm(),Kre=NN(),Wre=O(),Hre=xm(),Yre=e=>{var t,n,r,i,s,o,a,c,u,d,h,m,y,g,_;let A=(0,Hre.resolveDefaultsModeConfig)(e),R=()=>A().then(Wre.loadConfigsForDefaultMode),T=(0,Kre.getRuntimeConfig)(e);return{...T,...e,runtime:"node",defaultsMode:A,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:ON.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:ON.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:$re.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,Ure.decorateDefaultCredentialProvider)(Bre.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,Vre.defaultUserAgent)({serviceId:T.serviceId,clientVersion:Fre.default.version}),maxAttempts:(o=e==null?void 0:e.maxAttempts)!==null&&o!==void 0?o:(0,za.loadConfig)(vw.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,za.loadConfig)(np.NODE_REGION_CONFIG_OPTIONS,np.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new PN.NodeHttpHandler(R),retryMode:(u=e==null?void 0:e.retryMode)!==null&&u!==void 0?u:(0,za.loadConfig)({...vw.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await R()).retryMode||vw.DEFAULT_RETRY_MODE}),sha256:(d=e==null?void 0:e.sha256)!==null&&d!==void 0?d:Gre.Hash.bind(null,"sha256"),streamCollector:(h=e==null?void 0:e.streamCollector)!==null&&h!==void 0?h:PN.streamCollector,useDualstackEndpoint:(m=e==null?void 0:e.useDualstackEndpoint)!==null&&m!==void 0?m:(0,za.loadConfig)(np.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(y=e==null?void 0:e.useFipsEndpoint)!==null&&y!==void 0?y:(0,za.loadConfig)(np.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(g=e==null?void 0:e.utf8Decoder)!==null&&g!==void 0?g:LN.fromUtf8,utf8Encoder:(_=e==null?void 0:e.utf8Encoder)!==null&&_!==void 0?_:LN.toUtf8}};rp.getRuntimeConfig=Yre});var sp=f(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.STSClient=void 0;var MN=en(),Jre=Vu(),zN=Zu(),Qre=ed(),jN=ui(),Xre=_R(),kN=Fd(),Zre=O(),eie=qN(),ja=class extends Zre.Client{constructor(t){let n=(0,eie.getRuntimeConfig)(t),r=(0,MN.resolveRegionConfig)(n),i=(0,MN.resolveEndpointsConfig)(r),s=(0,jN.resolveRetryConfig)(i),o=(0,zN.resolveHostHeaderConfig)(s),a=(0,Xre.resolveStsAuthConfig)(o,{stsClientCtor:ja}),c=(0,kN.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,jN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Jre.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,zN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Qre.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,kN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};ip.STSClient=ja});var FN=f(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.STS=void 0;var tie=nf(),nie=aS(),rie=of(),iie=uS(),sie=fS(),oie=pS(),aie=_S(),cie=gS(),lie=sp(),Sw=class extends lie.STSClient{assumeRole(t,n,r){let i=new tie.AssumeRoleCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}assumeRoleWithSAML(t,n,r){let i=new nie.AssumeRoleWithSAMLCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}assumeRoleWithWebIdentity(t,n,r){let i=new rie.AssumeRoleWithWebIdentityCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}decodeAuthorizationMessage(t,n,r){let i=new iie.DecodeAuthorizationMessageCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getAccessKeyInfo(t,n,r){let i=new sie.GetAccessKeyInfoCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getCallerIdentity(t,n,r){let i=new oie.GetCallerIdentityCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFederationToken(t,n,r){let i=new aie.GetFederationTokenCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getSessionToken(t,n,r){let i=new cie.GetSessionTokenCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};op.STS=Sw});var UN=f(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});var jr=K();jr.__exportStar(nf(),Mn);jr.__exportStar(aS(),Mn);jr.__exportStar(of(),Mn);jr.__exportStar(uS(),Mn);jr.__exportStar(fS(),Mn);jr.__exportStar(pS(),Mn);jr.__exportStar(_S(),Mn);jr.__exportStar(gS(),Mn)});var $N=f(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.decorateDefaultCredentialProvider=zn.getDefaultRoleAssumerWithWebIdentity=zn.getDefaultRoleAssumer=void 0;var BN=vS(),GN=sp(),uie=(e={})=>(0,BN.getDefaultRoleAssumer)(e,GN.STSClient);zn.getDefaultRoleAssumer=uie;var die=(e={})=>(0,BN.getDefaultRoleAssumerWithWebIdentity)(e,GN.STSClient);zn.getDefaultRoleAssumerWithWebIdentity=die;var fie=e=>t=>e({roleAssumer:(0,zn.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,zn.getDefaultRoleAssumerWithWebIdentity)(t),...t});zn.decorateDefaultCredentialProvider=fie});var VN=f(ww=>{"use strict";Object.defineProperty(ww,"__esModule",{value:!0});var mie=K();mie.__exportStar(tn(),ww)});var KN=f(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.STSServiceException=void 0;var ka=K();ka.__exportStar(FN(),nr);ka.__exportStar(sp(),nr);ka.__exportStar(UN(),nr);ka.__exportStar($N(),nr);ka.__exportStar(VN(),nr);var pie=Bd();Object.defineProperty(nr,"STSServiceException",{enumerable:!0,get:function(){return pie.STSServiceException}})});var WN=f(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.defaultRegionInfoProvider=void 0;var hie=en(),_ie={"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"]}]}},yie={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"]}]}},gie=async(e,t)=>(0,hie.getRegionInfo)(e,{...t,signingService:"dynamodb",regionHash:_ie,partitionHash:yie});ap.defaultRegionInfoProvider=gie});var HN=f(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.getRuntimeConfig=void 0;var vie=Ea(),Sie=WN(),wie=e=>{var t,n,r,i,s;return{apiVersion:"2012-08-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:Sie.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:vie.parseUrl}};cp.getRuntimeConfig=wie});var XN=f(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.getRuntimeConfig=void 0;var bie=K(),Eie=bie.__importDefault(t1()),Aie=KN(),lp=en(),Tie=gw(),Cie=sm(),xie=vv(),bw=ui(),_s=vi(),YN=_m(),JN=ym(),Iie=vm(),Rie=wm(),QN=bm(),Die=HN(),Nie=O(),Pie=xm(),Oie=e=>{var t,n,r,i,s,o,a,c,u,d,h,m,y,g,_,A;let R=(0,Pie.resolveDefaultsModeConfig)(e),T=()=>R().then(Nie.loadConfigsForDefaultMode),G=(0,Die.getRuntimeConfig)(e);return{...G,...e,runtime:"node",defaultsMode:R,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:JN.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:JN.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:Iie.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,Aie.decorateDefaultCredentialProvider)(Tie.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,Rie.defaultUserAgent)({serviceId:G.serviceId,clientVersion:Eie.default.version}),endpointDiscoveryEnabledProvider:(o=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&o!==void 0?o:(0,_s.loadConfig)(xie.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:(0,_s.loadConfig)(bw.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:(0,_s.loadConfig)(lp.NODE_REGION_CONFIG_OPTIONS,lp.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(u=e==null?void 0:e.requestHandler)!==null&&u!==void 0?u:new YN.NodeHttpHandler(T),retryMode:(d=e==null?void 0:e.retryMode)!==null&&d!==void 0?d:(0,_s.loadConfig)({...bw.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await T()).retryMode||bw.DEFAULT_RETRY_MODE}),sha256:(h=e==null?void 0:e.sha256)!==null&&h!==void 0?h:Cie.Hash.bind(null,"sha256"),streamCollector:(m=e==null?void 0:e.streamCollector)!==null&&m!==void 0?m:YN.streamCollector,useDualstackEndpoint:(y=e==null?void 0:e.useDualstackEndpoint)!==null&&y!==void 0?y:(0,_s.loadConfig)(lp.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(g=e==null?void 0:e.useFipsEndpoint)!==null&&g!==void 0?g:(0,_s.loadConfig)(lp.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(_=e==null?void 0:e.utf8Decoder)!==null&&_!==void 0?_:QN.fromUtf8,utf8Encoder:(A=e==null?void 0:e.utf8Encoder)!==null&&A!==void 0?A:QN.toUtf8}};up.getRuntimeConfig=Oie});var kr=f(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.DynamoDBClient=void 0;var ZN=en(),Lie=Vu(),qie=vv(),eP=Zu(),Mie=ed(),tP=ui(),nP=Xn(),rP=Fd(),zie=O(),jie=Fl(),kie=XN(),Ew=class extends zie.Client{constructor(t){let n=(0,kie.getRuntimeConfig)(t),r=(0,ZN.resolveRegionConfig)(n),i=(0,ZN.resolveEndpointsConfig)(r),s=(0,tP.resolveRetryConfig)(i),o=(0,eP.resolveHostHeaderConfig)(s),a=(0,nP.resolveAwsAuthConfig)(o),c=(0,rP.resolveUserAgentConfig)(a),u=(0,qie.resolveEndpointDiscoveryConfig)(c,{endpointDiscoveryCommandCtor:jie.DescribeEndpointsCommand});super(u),this.config=u,this.middlewareStack.use((0,tP.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Lie.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,eP.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Mie.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,nP.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,rP.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};dp.DynamoDBClient=Ew});var Ei=f(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.DynamoDB=void 0;var Fie=wy(),Uie=Ey(),Bie=Ty(),Gie=xy(),$ie=Ry(),Vie=Ny(),Kie=Oy(),Wie=qy(),Hie=zy(),Yie=ky(),Jie=Uy(),Qie=Gy(),Xie=Fl(),Zie=Ky(),ese=Hy(),tse=Jy(),nse=Xy(),rse=eg(),ise=Yo(),sse=rg(),ose=sg(),ase=ag(),cse=lg(),lse=dg(),use=mg(),dse=hg(),fse=yg(),mse=vg(),pse=ru(),hse=su(),_se=Eg(),yse=cu(),gse=Cg(),vse=Ig(),Sse=fu(),wse=Ng(),bse=Og(),Ese=_u(),Ase=Mg(),Tse=jg(),Cse=Fg(),xse=Bg(),Ise=$g(),Rse=Kg(),Dse=Hg(),Nse=Jg(),Pse=Xg(),Ose=ev(),Lse=nv(),qse=iv(),Mse=kr(),Aw=class extends Mse.DynamoDBClient{batchExecuteStatement(t,n,r){let i=new Fie.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchGetItem(t,n,r){let i=new Uie.BatchGetItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchWriteItem(t,n,r){let i=new Bie.BatchWriteItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createBackup(t,n,r){let i=new Gie.CreateBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createGlobalTable(t,n,r){let i=new $ie.CreateGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createTable(t,n,r){let i=new Vie.CreateTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteBackup(t,n,r){let i=new Kie.DeleteBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteItem(t,n,r){let i=new Wie.DeleteItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteTable(t,n,r){let i=new Hie.DeleteTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeBackup(t,n,r){let i=new Yie.DescribeBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeContinuousBackups(t,n,r){let i=new Jie.DescribeContinuousBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeContributorInsights(t,n,r){let i=new Qie.DescribeContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeEndpoints(t,n,r){let i=new Xie.DescribeEndpointsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeExport(t,n,r){let i=new Zie.DescribeExportCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeGlobalTable(t,n,r){let i=new ese.DescribeGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeGlobalTableSettings(t,n,r){let i=new tse.DescribeGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeKinesisStreamingDestination(t,n,r){let i=new nse.DescribeKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeLimits(t,n,r){let i=new rse.DescribeLimitsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTable(t,n,r){let i=new ise.DescribeTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTableReplicaAutoScaling(t,n,r){let i=new sse.DescribeTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTimeToLive(t,n,r){let i=new ose.DescribeTimeToLiveCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}disableKinesisStreamingDestination(t,n,r){let i=new ase.DisableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}enableKinesisStreamingDestination(t,n,r){let i=new cse.EnableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeStatement(t,n,r){let i=new lse.ExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeTransaction(t,n,r){let i=new use.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}exportTableToPointInTime(t,n,r){let i=new dse.ExportTableToPointInTimeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getItem(t,n,r){let i=new fse.GetItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listBackups(t,n,r){let i=new mse.ListBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listContributorInsights(t,n,r){let i=new pse.ListContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listExports(t,n,r){let i=new hse.ListExportsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listGlobalTables(t,n,r){let i=new _se.ListGlobalTablesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listTables(t,n,r){let i=new yse.ListTablesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listTagsOfResource(t,n,r){let i=new gse.ListTagsOfResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putItem(t,n,r){let i=new vse.PutItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}query(t,n,r){let i=new Sse.QueryCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}restoreTableFromBackup(t,n,r){let i=new wse.RestoreTableFromBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}restoreTableToPointInTime(t,n,r){let i=new bse.RestoreTableToPointInTimeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}scan(t,n,r){let i=new Ese.ScanCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}tagResource(t,n,r){let i=new Ase.TagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactGetItems(t,n,r){let i=new Tse.TransactGetItemsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactWriteItems(t,n,r){let i=new Cse.TransactWriteItemsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}untagResource(t,n,r){let i=new xse.UntagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateContinuousBackups(t,n,r){let i=new Ise.UpdateContinuousBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateContributorInsights(t,n,r){let i=new Rse.UpdateContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateGlobalTable(t,n,r){let i=new Dse.UpdateGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateGlobalTableSettings(t,n,r){let i=new Nse.UpdateGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateItem(t,n,r){let i=new Pse.UpdateItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTable(t,n,r){let i=new Ose.UpdateTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTableReplicaAutoScaling(t,n,r){let i=new Lse.UpdateTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTimeToLive(t,n,r){let i=new qse.UpdateTimeToLiveCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};fp.DynamoDB=Aw});var iP=f(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var ne=K();ne.__exportStar(wy(),Y);ne.__exportStar(Ey(),Y);ne.__exportStar(Ty(),Y);ne.__exportStar(xy(),Y);ne.__exportStar(Ry(),Y);ne.__exportStar(Ny(),Y);ne.__exportStar(Oy(),Y);ne.__exportStar(qy(),Y);ne.__exportStar(zy(),Y);ne.__exportStar(ky(),Y);ne.__exportStar(Uy(),Y);ne.__exportStar(Gy(),Y);ne.__exportStar(Fl(),Y);ne.__exportStar(Ky(),Y);ne.__exportStar(Hy(),Y);ne.__exportStar(Jy(),Y);ne.__exportStar(Xy(),Y);ne.__exportStar(eg(),Y);ne.__exportStar(Yo(),Y);ne.__exportStar(rg(),Y);ne.__exportStar(sg(),Y);ne.__exportStar(ag(),Y);ne.__exportStar(lg(),Y);ne.__exportStar(dg(),Y);ne.__exportStar(mg(),Y);ne.__exportStar(hg(),Y);ne.__exportStar(yg(),Y);ne.__exportStar(vg(),Y);ne.__exportStar(ru(),Y);ne.__exportStar(su(),Y);ne.__exportStar(Eg(),Y);ne.__exportStar(cu(),Y);ne.__exportStar(Cg(),Y);ne.__exportStar(Ig(),Y);ne.__exportStar(fu(),Y);ne.__exportStar(Ng(),Y);ne.__exportStar(Og(),Y);ne.__exportStar(_u(),Y);ne.__exportStar(Mg(),Y);ne.__exportStar(jg(),Y);ne.__exportStar(Fg(),Y);ne.__exportStar(Bg(),Y);ne.__exportStar($g(),Y);ne.__exportStar(Kg(),Y);ne.__exportStar(Hg(),Y);ne.__exportStar(Jg(),Y);ne.__exportStar(Xg(),Y);ne.__exportStar(ev(),Y);ne.__exportStar(nv(),Y);ne.__exportStar(iv(),Y)});var sP=f(Tw=>{"use strict";Object.defineProperty(Tw,"__esModule",{value:!0});var zse=K();zse.__exportStar(H(),Tw)});var aP=f(oP=>{"use strict";Object.defineProperty(oP,"__esModule",{value:!0})});var cP=f(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.paginateListContributorInsights=void 0;var jse=ru(),kse=Ei(),Fse=kr(),Use=async(e,t,...n)=>await e.send(new jse.ListContributorInsightsCommand(t),...n),Bse=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*Gse(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof kse.DynamoDB)s=await Bse(e.client,t,...n);else if(e.client instanceof Fse.DynamoDBClient)s=await Use(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.NextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}mp.paginateListContributorInsights=Gse});var lP=f(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.paginateListExports=void 0;var $se=su(),Vse=Ei(),Kse=kr(),Wse=async(e,t,...n)=>await e.send(new $se.ListExportsCommand(t),...n),Hse=async(e,t,...n)=>await e.listExports(t,...n);async function*Yse(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof Vse.DynamoDB)s=await Hse(e.client,t,...n);else if(e.client instanceof Kse.DynamoDBClient)s=await Wse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.NextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}pp.paginateListExports=Yse});var uP=f(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.paginateListTables=void 0;var Jse=cu(),Qse=Ei(),Xse=kr(),Zse=async(e,t,...n)=>await e.send(new Jse.ListTablesCommand(t),...n),eoe=async(e,t,...n)=>await e.listTables(t,...n);async function*toe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartTableName=r,t.Limit=e.pageSize,e.client instanceof Qse.DynamoDB)s=await eoe(e.client,t,...n);else if(e.client instanceof Xse.DynamoDBClient)s=await Zse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.LastEvaluatedTableName,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}hp.paginateListTables=toe});var dP=f(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.paginateQuery=void 0;var noe=fu(),roe=Ei(),ioe=kr(),soe=async(e,t,...n)=>await e.send(new noe.QueryCommand(t),...n),ooe=async(e,t,...n)=>await e.query(t,...n);async function*aoe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof roe.DynamoDB)s=await ooe(e.client,t,...n);else if(e.client instanceof ioe.DynamoDBClient)s=await soe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.LastEvaluatedKey,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}_p.paginateQuery=aoe});var fP=f(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.paginateScan=void 0;var coe=_u(),loe=Ei(),uoe=kr(),doe=async(e,t,...n)=>await e.send(new coe.ScanCommand(t),...n),foe=async(e,t,...n)=>await e.scan(t,...n);async function*moe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof loe.DynamoDB)s=await foe(e.client,t,...n);else if(e.client instanceof uoe.DynamoDBClient)s=await doe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.LastEvaluatedKey,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}yp.paginateScan=moe});var mP=f(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});var ys=K();ys.__exportStar(aP(),Fr);ys.__exportStar(cP(),Fr);ys.__exportStar(lP(),Fr);ys.__exportStar(uP(),Fr);ys.__exportStar(dP(),Fr);ys.__exportStar(fP(),Fr)});var Cw=f(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.sleep=void 0;var poe=e=>new Promise(t=>setTimeout(t,e*1e3));gp.sleep=poe});var Sp=f(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.checkExceptions=rr.WaiterState=rr.waiterServiceDefaults=void 0;rr.waiterServiceDefaults={minDelay:2,maxDelay:120};var vp;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(vp=rr.WaiterState||(rr.WaiterState={}));var hoe=e=>{if(e.state===vp.ABORTED){let t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw t.name="AbortError",t}else if(e.state===vp.TIMEOUT){let t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw t.name="TimeoutError",t}else if(e.state!==vp.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};rr.checkExceptions=hoe});var pP=f(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.runPolling=void 0;var _oe=Cw(),wp=Sp(),yoe=(e,t,n,r)=>{if(r>n)return t;let i=e*2**(r-1);return goe(e,i)},goe=(e,t)=>e+Math.random()*(t-e),voe=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:i,abortSignal:s},o,a)=>{var c;let{state:u}=await a(i,o);if(u!==wp.WaiterState.RETRY)return{state:u};let d=1,h=Date.now()+n*1e3,m=Math.log(t/e)/Math.log(2)+1;for(;;){if(((c=r==null?void 0:r.signal)===null||c===void 0?void 0:c.aborted)||(s==null?void 0:s.aborted))return{state:wp.WaiterState.ABORTED};let y=yoe(e,t,m,d);if(Date.now()+y*1e3>h)return{state:wp.WaiterState.TIMEOUT};await(0,_oe.sleep)(y);let{state:g}=await a(i,o);if(g!==wp.WaiterState.RETRY)return{state:g};d+=1}};bp.runPolling=voe});var hP=f(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.validateWaiterOptions=void 0;var Soe=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`)};Ep.validateWaiterOptions=Soe});var yP=f(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var _P=K();_P.__exportStar(Cw(),Ap);_P.__exportStar(hP(),Ap)});var SP=f(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.createWaiter=void 0;var woe=pP(),boe=yP(),vP=Sp(),gP=async e=>new Promise(t=>{e.onabort=()=>t({state:vP.WaiterState.ABORTED})}),Eoe=async(e,t,n)=>{let r={...vP.waiterServiceDefaults,...e};(0,boe.validateWaiterOptions)(r);let i=[(0,woe.runPolling)(r,t,n)];return e.abortController&&i.push(gP(e.abortController.signal)),e.abortSignal&&i.push(gP(e.abortSignal)),Promise.race(i)};Tp.createWaiter=Eoe});var xw=f(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var wP=K();wP.__exportStar(SP(),Cp);wP.__exportStar(Sp(),Cp)});var EP=f(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.waitUntilTableExists=vs.waitForTableExists=void 0;var gs=xw(),Aoe=Yo(),bP=async(e,t)=>{let n;try{let r=await e.send(new Aoe.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:gs.WaiterState.SUCCESS,reason:n}}catch{}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:gs.WaiterState.RETRY,reason:n}}return{state:gs.WaiterState.RETRY,reason:n}},Toe=async(e,t)=>{let n={minDelay:20,maxDelay:120};return(0,gs.createWaiter)({...n,...e},t,bP)};vs.waitForTableExists=Toe;var Coe=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await(0,gs.createWaiter)({...n,...e},t,bP);return(0,gs.checkExceptions)(r)};vs.waitUntilTableExists=Coe});var TP=f(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.waitUntilTableNotExists=Ss.waitForTableNotExists=void 0;var Fa=xw(),xoe=Yo(),AP=async(e,t)=>{let n;try{n=await e.send(new xoe.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Fa.WaiterState.SUCCESS,reason:n}}return{state:Fa.WaiterState.RETRY,reason:n}},Ioe=async(e,t)=>{let n={minDelay:20,maxDelay:120};return(0,Fa.createWaiter)({...n,...e},t,AP)};Ss.waitForTableNotExists=Ioe;var Roe=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await(0,Fa.createWaiter)({...n,...e},t,AP);return(0,Fa.checkExceptions)(r)};Ss.waitUntilTableNotExists=Roe});var xP=f(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var CP=K();CP.__exportStar(EP(),xp);CP.__exportStar(TP(),xp)});var _t=f(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.DynamoDBServiceException=void 0;var ws=K();ws.__exportStar(Ei(),jn);ws.__exportStar(kr(),jn);ws.__exportStar(iP(),jn);ws.__exportStar(sP(),jn);ws.__exportStar(mP(),jn);ws.__exportStar(xP(),jn);var Doe=Qc();Object.defineProperty(jn,"DynamoDBServiceException",{enumerable:!0,get:function(){return Doe.DynamoDBServiceException}})});var Iw=f(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.convertToAttr=void 0;var Noe=(e,t)=>{var n,r,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 Ip();if(Array.isArray(e))return Poe(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return Ooe(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return Loe(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 IP(e,t);if(LP(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Ip():DP(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 OP(e);if(typeof e=="bigint")return PP(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)?Ip():NP(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return IP(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};Ai.convertToAttr=Noe;var Poe=(e,t)=>({L:e.filter(n=>!(t!=null&&t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>(0,Ai.convertToAttr)(n,t))}),Ooe=(e,t)=>{let n=t!=null&&t.removeUndefinedValues?new Set([...e].filter(i=>i!==void 0)):e;if(!(t!=null&&t.removeUndefinedValues)&&n.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(n.size===0){if(t!=null&&t.convertEmptyValues)return Ip();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let r=n.values().next().value;if(typeof r=="number")return{NS:Array.from(n).map(OP).map(i=>i.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(PP).map(i=>i.N)};if(typeof r=="string")return{SS:Array.from(n).map(NP).map(i=>i.S)};if(LP(r))return{BS:Array.from(n).map(DP).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},Loe=(e,t)=>({M:(n=>{let r={};for(let[i,s]of n)typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(r[i]=(0,Ai.convertToAttr)(s,t));return r})(e)}),IP=(e,t)=>({M:(n=>{let r={};for(let i in n){let s=n[i];typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(r[i]=(0,Ai.convertToAttr)(s,t))}return r})(e)}),Ip=()=>({NULL:!0}),DP=e=>({B:e}),NP=e=>({S:e.toString()}),PP=e=>({N:e.toString()}),RP=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},OP=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?RP(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&RP(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},LP=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 Rw=f(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.convertToNative=void 0;var qoe=(e,t)=>{for(let[n,r]of Object.entries(e))if(r!==void 0)switch(n){case"NULL":return null;case"BOOL":return Boolean(r);case"N":return qP(r,t);case"B":return zP(r);case"S":return MP(r);case"L":return Moe(r,t);case"M":return zoe(r,t);case"NS":return new Set(r.map(i=>qP(i,t)));case"BS":return new Set(r.map(zP));case"SS":return new Set(r.map(MP));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};bs.convertToNative=qoe;var qP=(e,t)=>{if(t!=null&&t.wrapNumbers)return{value:e};let n=Number(e),r=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)&&!r.includes(n))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 n},MP=e=>e,zP=e=>e,Moe=(e,t)=>e.map(n=>(0,bs.convertToNative)(n,t)),zoe=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:(0,bs.convertToNative)(i,t)}),{})});var jP=f(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.marshall=void 0;var joe=Iw();function koe(e,t){let n=(0,joe.convertToAttr)(e,t),[r,i]=Object.entries(n)[0];switch(r){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 n}}Rp.marshall=koe});var FP=f(kP=>{"use strict";Object.defineProperty(kP,"__esModule",{value:!0})});var UP=f(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.unmarshall=void 0;var Foe=Rw(),Uoe=(e,t)=>(0,Foe.convertToNative)({M:e},t);Dp.unmarshall=Uoe});var BP=f(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var Ua=K();Ua.__exportStar(Iw(),Ti);Ua.__exportStar(Rw(),Ti);Ua.__exportStar(jP(),Ti);Ua.__exportStar(FP(),Ti);Ua.__exportStar(UP(),Ti)});var At=f(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.unmarshallOutput=Es.marshallInput=void 0;var $P=BP(),GP=(e,t,n)=>{if(e!==void 0)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?Dw(e,t,n):Boe(e,t,n.children)},VP=(e,t,n)=>Array.isArray(e)?e.map(r=>GP(r,t,n)):GP(e,t,n),Dw=(e,t,n)=>n.reduce((r,{key:i,children:s})=>({...r,[i]:VP(r[i],t,s)}),e),Boe=(e,t,n)=>Object.entries(e).reduce((r,[i,s])=>({...r,[i]:VP(s,t,n)}),{}),Goe=(e,t,n)=>Dw(e,i=>(0,$P.marshall)(i,n),t);Es.marshallInput=Goe;var $oe=(e,t,n)=>Dw(e,i=>(0,$P.unmarshall)(i,n),t);Es.unmarshallOutput=$oe});var Pw=f(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.BatchExecuteStatementCommand=void 0;var Voe=_t(),Koe=O(),KP=At(),Nw=class extends Koe.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Statements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new Voe.BatchExecuteStatementCommand((0,KP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,KP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Np.BatchExecuteStatementCommand=Nw});var Lw=f(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.BatchGetCommand=void 0;var Woe=_t(),Hoe=O(),WP=At(),Ow=class extends Hoe.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,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new Woe.BatchGetItemCommand((0,WP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,WP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Pp.BatchGetCommand=Ow});var Mw=f(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.BatchWriteCommand=void 0;var Yoe=_t(),Joe=O(),HP=At(),qw=class extends Joe.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,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new Yoe.BatchWriteItemCommand((0,HP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,HP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Op.BatchWriteCommand=qw});var jw=f(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.DeleteCommand=void 0;var Qoe=_t(),Xoe=O(),YP=At(),zw=class extends Xoe.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,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new Qoe.DeleteItemCommand((0,YP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,YP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Lp.DeleteCommand=zw});var Fw=f(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.ExecuteStatementCommand=void 0;var Zoe=_t(),eae=O(),JP=At(),kw=class extends eae.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new Zoe.ExecuteStatementCommand((0,JP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,JP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};qp.ExecuteStatementCommand=kw});var Bw=f(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.ExecuteTransactionCommand=void 0;var tae=_t(),nae=O(),QP=At(),Uw=class extends nae.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactStatements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new tae.ExecuteTransactionCommand((0,QP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,QP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Mp.ExecuteTransactionCommand=Uw});var $w=f(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.GetCommand=void 0;var rae=_t(),iae=O(),XP=At(),Gw=class extends iae.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new rae.GetItemCommand((0,XP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,XP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};zp.GetCommand=Gw});var Kw=f(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.PutCommand=void 0;var sae=_t(),oae=O(),ZP=At(),Vw=class extends oae.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,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new sae.PutItemCommand((0,ZP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,ZP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};jp.PutCommand=Vw});var Fp=f(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.QueryCommand=void 0;var aae=_t(),cae=O(),eO=At(),Ww=class extends cae.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,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new aae.QueryCommand((0,eO.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,eO.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};kp.QueryCommand=Ww});var Bp=f(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.ScanCommand=void 0;var lae=_t(),uae=O(),tO=At(),Hw=class extends uae.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,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new lae.ScanCommand((0,tO.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,tO.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Up.ScanCommand=Hw});var Jw=f(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.TransactGetCommand=void 0;var dae=_t(),fae=O(),nO=At(),Yw=class extends fae.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,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new dae.TransactGetItemsCommand((0,nO.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,nO.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Gp.TransactGetCommand=Yw});var Xw=f($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.TransactWriteCommand=void 0;var mae=_t(),pae=O(),rO=At(),Qw=class extends pae.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,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new mae.TransactWriteItemsCommand((0,rO.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,rO.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};$p.TransactWriteCommand=Qw});var e0=f(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.UpdateCommand=void 0;var hae=_t(),_ae=O(),iO=At(),Zw=class extends _ae.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,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new hae.UpdateItemCommand((0,iO.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,iO.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Vp.UpdateCommand=Zw});var Ga=f(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.DynamoDBDocumentClient=void 0;var yae=O(),Ba=class extends yae.Client{constructor(t,n){super(t.config),this.config=t.config,this.config.translateConfig=n,this.middlewareStack=t.middlewareStack}static from(t,n){return new Ba(t,n)}destroy(){}};Kp.DynamoDBDocumentClient=Ba});var Hp=f(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.DynamoDBDocument=void 0;var gae=Pw(),vae=Lw(),Sae=Mw(),wae=jw(),bae=Fw(),Eae=Bw(),Aae=$w(),Tae=Kw(),Cae=Fp(),xae=Bp(),Iae=Jw(),Rae=Xw(),Dae=e0(),Nae=Ga(),$a=class extends Nae.DynamoDBDocumentClient{static from(t,n){return new $a(t,n)}batchExecuteStatement(t,n,r){let i=new gae.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchGet(t,n,r){let i=new vae.BatchGetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchWrite(t,n,r){let i=new Sae.BatchWriteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}delete(t,n,r){let i=new wae.DeleteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeStatement(t,n,r){let i=new bae.ExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeTransaction(t,n,r){let i=new Eae.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}get(t,n,r){let i=new Aae.GetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}put(t,n,r){let i=new Tae.PutCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}query(t,n,r){let i=new Cae.QueryCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}scan(t,n,r){let i=new xae.ScanCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactGet(t,n,r){let i=new Iae.TransactGetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactWrite(t,n,r){let i=new Rae.TransactWriteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}update(t,n,r){let i=new Dae.UpdateCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};Wp.DynamoDBDocument=$a});var sO=f(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var zt=K();zt.__exportStar(Pw(),yt);zt.__exportStar(Lw(),yt);zt.__exportStar(Mw(),yt);zt.__exportStar(jw(),yt);zt.__exportStar(Fw(),yt);zt.__exportStar(Bw(),yt);zt.__exportStar($w(),yt);zt.__exportStar(Kw(),yt);zt.__exportStar(Fp(),yt);zt.__exportStar(Bp(),yt);zt.__exportStar(Jw(),yt);zt.__exportStar(Xw(),yt);zt.__exportStar(e0(),yt)});var aO=f(oO=>{"use strict";Object.defineProperty(oO,"__esModule",{value:!0})});var cO=f(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.paginateQuery=void 0;var Pae=Fp(),Oae=Hp(),Lae=Ga(),qae=async(e,t,...n)=>await e.send(new Pae.QueryCommand(t),...n),Mae=async(e,t,...n)=>await e.query(t,...n);async function*zae(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof Oae.DynamoDBDocument)s=await Mae(e.client,t,...n);else if(e.client instanceof Lae.DynamoDBDocumentClient)s=await qae(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}Yp.paginateQuery=zae});var lO=f(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.paginateScan=void 0;var jae=Bp(),kae=Hp(),Fae=Ga(),Uae=async(e,t,...n)=>await e.send(new jae.ScanCommand(t),...n),Bae=async(e,t,...n)=>await e.scan(t,...n);async function*Gae(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof kae.DynamoDBDocument)s=await Bae(e.client,t,...n);else if(e.client instanceof Fae.DynamoDBDocumentClient)s=await Uae(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}Jp.paginateScan=Gae});var uO=f(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var t0=K();t0.__exportStar(aO(),Va);t0.__exportStar(cO(),Va);t0.__exportStar(lO(),Va)});var dO=f(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Qp=K();Qp.__exportStar(Hp(),As);Qp.__exportStar(Ga(),As);Qp.__exportStar(sO(),As);Qp.__exportStar(uO(),As)});var fO=f(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.DBManager=void 0;var $ae=dO(),n0=class{get client(){return this._client}get ddbDocClient(){return this._ddbDocClient}constructor(t){let{dynamoClient:n,tableName:r}=t;this._tableName=r,this._client=n,this._ddbDocClient=$ae.DynamoDBDocument.from(this._client)}get tableName(){return this._tableName}set tableName(t){this._tableName=t}};Xp.DBManager=n0});var mO=f(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.TransformationType=void 0;var Vae;(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"})(Vae=Ka.TransformationType||(Ka.TransformationType={}))});var Wa=f(Ci=>{"use strict";var Kae=Ci&&Ci.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Wae=Ci&&Ci.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Kae(t,e,n)};Object.defineProperty(Ci,"__esModule",{value:!0});Wae(mO(),Ci)});var pO=f(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.MetadataStorage=void 0;var ir=Wa(),r0=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,n,r){return this.findMetadatas(this._transformMetadatas,t,n).filter(i=>!i.options||i.options.toClassOnly===!0&&i.options.toPlainOnly===!0?!0:i.options.toClassOnly===!0?r===ir.TransformationType.CLASS_TO_CLASS||r===ir.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?r===ir.TransformationType.CLASS_TO_PLAIN:!0)}findExcludeMetadata(t,n){return this.findMetadata(this._excludeMetadatas,t,n)}findExposeMetadata(t,n){return this.findMetadata(this._exposeMetadatas,t,n)}findExposeMetadataByCustomName(t,n){return this.getExposedMetadatas(t).find(r=>r.options&&r.options.name===n)}findTypeMetadata(t,n){return this.findMetadata(this._typeMetadatas,t,n)}getStrategy(t){let n=this._excludeMetadatas.get(t),r=n&&n.get(void 0),i=this._exposeMetadatas.get(t),s=i&&i.get(void 0);return r&&s||!r&&!s?"none":r?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,n){return this.getExposedMetadatas(t).filter(r=>!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?n===ir.TransformationType.CLASS_TO_CLASS||n===ir.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===ir.TransformationType.CLASS_TO_PLAIN:!0).map(r=>r.propertyName)}getExcludedProperties(t,n){return this.getExcludedMetadatas(t).filter(r=>!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?n===ir.TransformationType.CLASS_TO_CLASS||n===ir.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===ir.TransformationType.CLASS_TO_PLAIN:!0).map(r=>r.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,n){let r=t.get(n),i;r&&(i=Array.from(r.values()).filter(o=>o.propertyName!==void 0));let s=[];for(let o of this.getAncestors(n)){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,n,r){let i=t.get(n);if(i){let s=i.get(r);if(s)return s}for(let s of this.getAncestors(n)){let o=t.get(s);if(o){let a=o.get(r);if(a)return a}}}findMetadatas(t,n,r){let i=t.get(n),s;i&&(s=i.get(r));let o=[];for(let a of this.getAncestors(n)){let c=t.get(a);c&&c.has(r)&&o.push(...c.get(r))}return o.slice().reverse().concat((s||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let n=[];for(let r=Object.getPrototypeOf(t.prototype.constructor);typeof r.prototype<"u";r=Object.getPrototypeOf(r.prototype.constructor))n.push(r);this._ancestorsMap.set(t,n)}return this._ancestorsMap.get(t)}};Zp.MetadataStorage=r0});var Ts=f(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.defaultMetadataStorage=void 0;var Hae=pO();eh.defaultMetadataStorage=new Hae.MetadataStorage});var hO=f(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.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}th.getGlobal=Yae});var _O=f(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.isPromise=void 0;function Jae(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}nh.isPromise=Jae});var gO=f(Ur=>{"use strict";var Qae=Ur&&Ur.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),yO=Ur&&Ur.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Qae(t,e,n)};Object.defineProperty(Ur,"__esModule",{value:!0});yO(hO(),Ur);yO(_O(),Ur)});var SO=f(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.TransformOperationExecutor=void 0;var Tt=Ts(),Fe=Wa(),vO=gO();function Xae(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var i0=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,i,s,o=0){if(Array.isArray(n)||n instanceof Set){let a=i&&this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS?Xae(i):[];return n.forEach((c,u)=>{let d=t?t[u]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(c)){let h;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS){h=r.options.discriminator.subTypes.find(_=>_.name===c[r.options.discriminator.property]);let y={newObject:a,object:c,property:void 0},g=r.typeFunction(y);h===void 0?h=g:h=h.value,r.options.keepDiscriminatorProperty||delete c[r.options.discriminator.property]}this.transformationType===Fe.TransformationType.CLASS_TO_CLASS&&(h=c.constructor),this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN&&(c[r.options.discriminator.property]=r.options.discriminator.subTypes.find(y=>y.value===c.constructor).name)}else h=r;let m=this.transform(d,c,h,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(r===String&&!s)return n==null?n:String(n);if(r===Number&&!s)return n==null?n:Number(n);if(r===Boolean&&!s)return n==null?n:Boolean(n);if((r===Date||n instanceof Date)&&!s)return n instanceof Date?new Date(n.valueOf()):n==null?n:new Date(n);if(!!(0,vO.getGlobal)().Buffer&&(r===Buffer||n instanceof Buffer)&&!s)return n==null?n:Buffer.from(n);if((0,vO.isPromise)(n)&&!s)return new Promise((a,c)=>{n.then(u=>a(this.transform(void 0,u,r,void 0,void 0,o+1)),c)});if(!s&&n!==null&&typeof n=="object"&&typeof n.then=="function")return n;if(typeof n=="object"&&n!==null){!r&&n.constructor!==Object&&(!Array.isArray(n)&&n.constructor===Array||(r=n.constructor)),!r&&t&&(r=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);let a=this.getKeys(r,n,s),c=t||{};!t&&(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS||this.transformationType===Fe.TransformationType.CLASS_TO_CLASS)&&(s?c=new Map:r?c=new r:c={});for(let u of a){if(u==="__proto__"||u==="constructor")continue;let d=u,h=u,m=u;if(!this.options.ignoreDecorators&&r){if(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS){let T=Tt.defaultMetadataStorage.findExposeMetadataByCustomName(r,u);T&&(m=T.propertyName,h=T.propertyName)}else if(this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN||this.transformationType===Fe.TransformationType.CLASS_TO_CLASS){let T=Tt.defaultMetadataStorage.findExposeMetadata(r,u);T&&T.options&&T.options.name&&(h=T.options.name)}}let y;this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS?y=n[d]:n instanceof Map?y=n.get(d):n[d]instanceof Function?y=n[d]():y=n[d];let g,_=y instanceof Map;if(r&&s)g=r;else if(r){let T=Tt.defaultMetadataStorage.findTypeMetadata(r,m);if(T){let G={newObject:c,object:n,property:m},he=T.typeFunction?T.typeFunction(G):T.reflectedType;T.options&&T.options.discriminator&&T.options.discriminator.property&&T.options.discriminator.subTypes?n[d]instanceof Array?g=T:(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS&&(g=T.options.discriminator.subTypes.find(Jt=>{if(y&&y instanceof Object&&T.options.discriminator.property in y)return Jt.name===y[T.options.discriminator.property]}),g===void 0?g=he:g=g.value,T.options.keepDiscriminatorProperty||y&&y instanceof Object&&T.options.discriminator.property in y&&delete y[T.options.discriminator.property]),this.transformationType===Fe.TransformationType.CLASS_TO_CLASS&&(g=y.constructor),this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN&&y&&(y[T.options.discriminator.property]=T.options.discriminator.subTypes.find(Jt=>Jt.value===y.constructor).name)):g=he,_=_||T.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(G=>G.target===r&&!!G.properties[m]).forEach(G=>g=G.properties[m]);else if(this.options.enableImplicitConversion&&this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS){let G=Reflect.getMetadata("design:type",r.prototype,m);G&&(g=G)}}let A=Array.isArray(n[d])?this.getReflectedType(r,m):void 0,R=t?t[d]:void 0;if(c.constructor.prototype){let T=Object.getOwnPropertyDescriptor(c.constructor.prototype,h);if((this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS||this.transformationType===Fe.TransformationType.CLASS_TO_CLASS)&&(T&&!T.set||c[h]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(y)){let T=this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS?h:u,G;this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN?(G=n[T],G=this.applyCustomTransformations(G,r,T,n,this.transformationType),G=n[T]===G?y:G,G=this.transform(R,G,g,A,_,o+1)):y===void 0&&this.options.exposeDefaultValues?G=c[h]:(G=this.transform(R,y,g,A,_,o+1),G=this.applyCustomTransformations(G,r,T,n,this.transformationType)),(G!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(h,G):c[h]=G)}else if(this.transformationType===Fe.TransformationType.CLASS_TO_CLASS){let T=y;T=this.applyCustomTransformations(T,r,u,n,this.transformationType),(T!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(h,T):c[h]=T)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),c}else return n}}applyCustomTransformations(t,n,r,i,s){let o=Tt.defaultMetadataStorage.findTransformMetadatas(n,r,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:r,obj:i,type:s,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,n){if(!t)return;let r=Tt.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let i=Tt.defaultMetadataStorage.getStrategy(t);i==="none"&&(i=this.options.strategy||"exposeAll");let s=[];if((i==="exposeAll"||r)&&(n instanceof Map?s=Array.from(n.keys()):s=Object.keys(n)),r)return s;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){let o=Tt.defaultMetadataStorage.getExposedProperties(t,this.transformationType),a=Tt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);s=[...o,...a]}if(!this.options.ignoreDecorators&&t){let o=Tt.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS&&(o=o.map(c=>{let u=Tt.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=Tt.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=Tt.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=Tt.defaultMetadataStorage.findExposeMetadata(t,c);return!u||!u.options?!0:this.checkGroups(u.options.groups)}):s=s.filter(c=>{let u=Tt.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,n){let r=!0;return r&&t&&(r=this.options.version>=t),r&&n&&(r=this.options.version<n),r}checkGroups(t){return t?this.options.groups.some(n=>t.includes(n)):!0}};rh.TransformOperationExecutor=i0});var wO=f(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.defaultOptions=void 0;ih.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 Rs=f(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.ClassTransformer=void 0;var Cs=SO(),xs=Wa(),Is=wO(),s0=class{instanceToPlain(t,n){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_PLAIN,{...Is.defaultOptions,...n}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_PLAIN,{...Is.defaultOptions,...r}).transform(n,t,void 0,void 0,void 0,void 0)}plainToInstance(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.PLAIN_TO_CLASS,{...Is.defaultOptions,...r}).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.PLAIN_TO_CLASS,{...Is.defaultOptions,...r}).transform(t,n,void 0,void 0,void 0,void 0)}instanceToInstance(t,n){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_CLASS,{...Is.defaultOptions,...n}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_CLASS,{...Is.defaultOptions,...r}).transform(n,t,void 0,void 0,void 0,void 0)}serialize(t,n){return JSON.stringify(this.instanceToPlain(t,n))}deserialize(t,n,r){let i=JSON.parse(n);return this.plainToInstance(t,i,r)}deserializeArray(t,n,r){let i=JSON.parse(n);return this.plainToInstance(t,i,r)}};sh.ClassTransformer=s0});var bO=f(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.Exclude=void 0;var Zae=Ts();function ece(e={}){return function(t,n){Zae.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}oh.Exclude=ece});var EO=f(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.Expose=void 0;var tce=Ts();function nce(e={}){return function(t,n){tce.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}ah.Expose=nce});var AO=f(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.TransformInstanceToInstance=void 0;var rce=Rs();function ice(e){return function(t,n,r){let i=new rce.ClassTransformer,s=r.value;r.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)}}}ch.TransformInstanceToInstance=ice});var TO=f(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.TransformInstanceToPlain=void 0;var sce=Rs();function oce(e){return function(t,n,r){let i=new sce.ClassTransformer,s=r.value;r.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)}}}lh.TransformInstanceToPlain=oce});var CO=f(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.TransformPlainToInstance=void 0;var ace=Rs();function cce(e,t){return function(n,r,i){let s=new ace.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)}}}uh.TransformPlainToInstance=cce});var xO=f(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.Transform=void 0;var lce=Ts();function uce(e,t={}){return function(n,r){lce.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}dh.Transform=uce});var IO=f(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.Type=void 0;var dce=Ts();function fce(e,t={}){return function(n,r){let i=Reflect.getMetadata("design:type",n,r);dce.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}fh.Type=fce});var RO=f(jt=>{"use strict";var mce=jt&&jt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),xi=jt&&jt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&mce(t,e,n)};Object.defineProperty(jt,"__esModule",{value:!0});xi(bO(),jt);xi(EO(),jt);xi(AO(),jt);xi(TO(),jt);xi(CO(),jt);xi(xO(),jt);xi(IO(),jt)});var NO=f(DO=>{"use strict";Object.defineProperty(DO,"__esModule",{value:!0})});var OO=f(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0})});var qO=f(LO=>{"use strict";Object.defineProperty(LO,"__esModule",{value:!0})});var zO=f(MO=>{"use strict";Object.defineProperty(MO,"__esModule",{value:!0})});var kO=f(jO=>{"use strict";Object.defineProperty(jO,"__esModule",{value:!0})});var UO=f(FO=>{"use strict";Object.defineProperty(FO,"__esModule",{value:!0})});var GO=f(BO=>{"use strict";Object.defineProperty(BO,"__esModule",{value:!0})});var VO=f($O=>{"use strict";Object.defineProperty($O,"__esModule",{value:!0})});var WO=f(KO=>{"use strict";Object.defineProperty(KO,"__esModule",{value:!0})});var YO=f(HO=>{"use strict";Object.defineProperty(HO,"__esModule",{value:!0})});var QO=f(JO=>{"use strict";Object.defineProperty(JO,"__esModule",{value:!0})});var ZO=f(XO=>{"use strict";Object.defineProperty(XO,"__esModule",{value:!0})});var tL=f(eL=>{"use strict";Object.defineProperty(eL,"__esModule",{value:!0})});var rL=f(nL=>{"use strict";Object.defineProperty(nL,"__esModule",{value:!0})});var iL=f(Ke=>{"use strict";var pce=Ke&&Ke.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Ct=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&pce(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ct(NO(),Ke);Ct(OO(),Ke);Ct(qO(),Ke);Ct(zO(),Ke);Ct(kO(),Ke);Ct(UO(),Ke);Ct(GO(),Ke);Ct(VO(),Ke);Ct(WO(),Ke);Ct(YO(),Ke);Ct(QO(),Ke);Ct(ZO(),Ke);Ct(tL(),Ke);Ct(rL(),Ke)});var mh=f(pe=>{"use strict";var hce=pe&&pe.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),o0=pe&&pe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&hce(t,e,n)};Object.defineProperty(pe,"__esModule",{value:!0});pe.deserializeArray=pe.deserialize=pe.serialize=pe.classToClassFromExist=pe.instanceToInstance=pe.plainToClassFromExist=pe.plainToInstance=pe.plainToClass=pe.classToPlainFromExist=pe.instanceToPlain=pe.classToPlain=pe.ClassTransformer=void 0;var _ce=Rs(),yce=Rs();Object.defineProperty(pe,"ClassTransformer",{enumerable:!0,get:function(){return yce.ClassTransformer}});o0(RO(),pe);o0(iL(),pe);o0(Wa(),pe);var on=new _ce.ClassTransformer;function gce(e,t){return on.instanceToPlain(e,t)}pe.classToPlain=gce;function vce(e,t){return on.instanceToPlain(e,t)}pe.instanceToPlain=vce;function Sce(e,t,n){return on.classToPlainFromExist(e,t,n)}pe.classToPlainFromExist=Sce;function wce(e,t,n){return on.plainToInstance(e,t,n)}pe.plainToClass=wce;function bce(e,t,n){return on.plainToInstance(e,t,n)}pe.plainToInstance=bce;function Ece(e,t,n){return on.plainToClassFromExist(e,t,n)}pe.plainToClassFromExist=Ece;function Ace(e,t){return on.instanceToInstance(e,t)}pe.instanceToInstance=Ace;function Tce(e,t,n){return on.classToClassFromExist(e,t,n)}pe.classToClassFromExist=Tce;function Cce(e,t){return on.serialize(e,t)}pe.serialize=Cce;function xce(e,t,n){return on.deserialize(e,t,n)}pe.deserialize=xce;function Ice(e,t,n){return on.deserializeArray(e,t,n)}pe.deserializeArray=Ice});var a0=f(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.Rules=void 0;var Rce=mh(),Ha=class{static async Load(t){let{dbManager:n,key:r}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:"rules"}});return(0,Rce.plainToInstance)(Ha,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 n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct}),r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}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}};ph.Rules=Ha});var c0=f(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.Version=void 0;var sL=mh(),Ds;(function(e){e[e.AppName=0]="AppName"})(Ds||(Ds={}));var Ns=class{static async LoadVersions(t){let{dbManager:n,key:r}=t,{Items:i}=await n.ddbDocClient.query({TableName:n.tableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${r.AppName}`.toLowerCase(),":skval":"version"}}),s=[];if(i!==void 0)for(let o of i){let a=(0,sL.plainToInstance)(Ns,o);s.push(a)}return s}static async LoadVersion(t){let{dbManager:n,key:r}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:`version#${r.SemVer}`.toLowerCase()}});return(0,sL.plainToInstance)(Ns,i)}static async DeleteVersion(t){let{dbManager:n,key:r}=t;await n.ddbDocClient.delete({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:`version#${r.SemVer}`.toLowerCase()}})}get PK(){switch(this._keyBy){case Ds.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}constructor(t){this._keyBy=Ds.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=Ds.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case Ds.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=Ns});var cL=f(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.Application=void 0;var oL=mh(),aL=a0(),Dce=c0(),sr;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(sr||(sr={}));var Ps=class{static async UpdateDefaultRule(t){let{dbManager:n,key:r}=t,i=await aL.Rules.Load({dbManager:n,key:r}),s=i.RuleSet.default;s.SemVer=r.SemVer,await i.Save(n)}static async GetVersionsAndRules(t){let{key:n,dbManager:r}=t,i=Dce.Version.LoadVersions({dbManager:r,key:n}),s=aL.Rules.Load({dbManager:r,key:n});return await Promise.all([i,s]),{Versions:await i,Rules:await s}}static async Load(t){let{key:n,dbManager:r}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:"application"}});return(0,oL.plainToInstance)(Ps,i)}static async LoadAllApps(t){let{Items:n}=await t.ddbDocClient.query({TableName:t.tableName,KeyConditionExpression:"PK = :pkval",ExpressionAttributeValues:{":pkval":"applications"}}),r=[];if(n!==void 0)for(let i of n){let s=(0,oL.plainToInstance)(Ps,i);r.push(s)}return r}constructor(t){Object.assign(this,t),this._keyBy=sr.AppName}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=sr.AppName;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=sr.Applications;let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}get PK(){switch(this._keyBy){case sr.Applications:return"applications";case sr.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case sr.Applications:return`appName#${this.AppName}`.toLowerCase();case sr.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}};_h.Application=Ps});var l0=f(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.Version=kn.Rules=kn.Application=kn.DBManager=void 0;var Nce=fO();Object.defineProperty(kn,"DBManager",{enumerable:!0,get:function(){return Nce.DBManager}});var Pce=cL();Object.defineProperty(kn,"Application",{enumerable:!0,get:function(){return Pce.Application}});var Oce=a0();Object.defineProperty(kn,"Rules",{enumerable:!0,get:function(){return Oce.Rules}});var Lce=c0();Object.defineProperty(kn,"Version",{enumerable:!0,get:function(){return Lce.Version}})});var xt=f(u0=>{"use strict";u0.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((n,r)=>{e.call(this,...t,(i,s)=>i!=null?r(i):n(s))})},"name",{value:e.name})};u0.fromPromise=function(e){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>n(null,r),n)},"name",{value:e.name})}});var uL=f((gEe,lL)=>{var Br=require("constants"),qce=process.cwd,yh=null,Mce=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return yh||(yh=qce.call(process)),yh};try{process.cwd()}catch{}typeof process.chdir=="function"&&(d0=process.chdir,process.chdir=function(e){yh=null,d0.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,d0));var d0;lL.exports=zce;function zce(e){Br.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(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,h,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(d,h,m,y){y&&process.nextTick(y)},e.lchownSync=function(){}),Mce==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(d){function h(m,y,g){var _=Date.now(),A=0;d(m,y,function R(T){if(T&&(T.code==="EACCES"||T.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(y,function(G,he){G&&G.code==="ENOENT"?d(m,y,R):g(T)})},A),A<100&&(A+=10);return}g&&g(T)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,d),h}(e.rename)),e.read=typeof e.read!="function"?e.read:function(d){function h(m,y,g,_,A,R){var T;if(R&&typeof R=="function"){var G=0;T=function(he,Jt,pr){if(he&&he.code==="EAGAIN"&&G<10)return G++,d.call(e,m,y,g,_,A,T);R.apply(this,arguments)}}return d.call(e,m,y,g,_,A,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,d),h}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(d){return function(h,m,y,g,_){for(var A=0;;)try{return d.call(e,h,m,y,g,_)}catch(R){if(R.code==="EAGAIN"&&A<10){A++;continue}throw R}}}(e.readSync);function t(d){d.lchmod=function(h,m,y){d.open(h,Br.O_WRONLY|Br.O_SYMLINK,m,function(g,_){if(g){y&&y(g);return}d.fchmod(_,m,function(A){d.close(_,function(R){y&&y(A||R)})})})},d.lchmodSync=function(h,m){var y=d.openSync(h,Br.O_WRONLY|Br.O_SYMLINK,m),g=!0,_;try{_=d.fchmodSync(y,m),g=!1}finally{if(g)try{d.closeSync(y)}catch{}else d.closeSync(y)}return _}}function n(d){Br.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(h,m,y,g){d.open(h,Br.O_SYMLINK,function(_,A){if(_){g&&g(_);return}d.futimes(A,m,y,function(R){d.close(A,function(T){g&&g(R||T)})})})},d.lutimesSync=function(h,m,y){var g=d.openSync(h,Br.O_SYMLINK),_,A=!0;try{_=d.futimesSync(g,m,y),A=!1}finally{if(A)try{d.closeSync(g)}catch{}else d.closeSync(g)}return _}):d.futimes&&(d.lutimes=function(h,m,y,g){g&&process.nextTick(g)},d.lutimesSync=function(){})}function r(d){return d&&function(h,m,y){return d.call(e,h,m,function(g){u(g)&&(g=null),y&&y.apply(this,arguments)})}}function i(d){return d&&function(h,m){try{return d.call(e,h,m)}catch(y){if(!u(y))throw y}}}function s(d){return d&&function(h,m,y,g){return d.call(e,h,m,y,function(_){u(_)&&(_=null),g&&g.apply(this,arguments)})}}function o(d){return d&&function(h,m,y){try{return d.call(e,h,m,y)}catch(g){if(!u(g))throw g}}}function a(d){return d&&function(h,m,y){typeof m=="function"&&(y=m,m=null);function g(_,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),y&&y.apply(this,arguments)}return m?d.call(e,h,m,g):d.call(e,h,g)}}function c(d){return d&&function(h,m){var y=m?d.call(e,h,m):d.call(e,h);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function u(d){if(!d||d.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(d.code==="EINVAL"||d.code==="EPERM"))}}});var mL=f((vEe,fL)=>{var dL=require("stream").Stream;fL.exports=jce;function jce(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);dL.call(this);var s=this;this.path=r,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,h){if(d){s.emit("error",d),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);dL.call(this),this.path=r,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 hL=f((SEe,pL)=>{"use strict";pL.exports=Fce;var kce=Object.getPrototypeOf||function(e){return e.__proto__};function Fce(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:kce(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var ft=f((wEe,p0)=>{var Le=require("fs"),Uce=uL(),Bce=mL(),Gce=hL(),gh=require("util"),ot,Sh;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ot=Symbol.for("graceful-fs.queue"),Sh=Symbol.for("graceful-fs.previous")):(ot="___graceful-fs.queue",Sh="___graceful-fs.previous");function $ce(){}function gL(e,t){Object.defineProperty(e,ot,{get:function(){return t}})}var Ii=$ce;gh.debuglog?Ii=gh.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ii=function(){var e=gh.format.apply(gh,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
29
|
+
GFS4: `),console.error(e)});Le[ot]||(_L=global[ot]||[],gL(Le,_L),Le.close=function(e){function t(n,r){return e.call(Le,n,function(i){i||yL(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,Sh,{value:e}),t}(Le.close),Le.closeSync=function(e){function t(n){e.apply(Le,arguments),yL()}return Object.defineProperty(t,Sh,{value:e}),t}(Le.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ii(Le[ot]),require("assert").equal(Le[ot].length,0)}));var _L;global[ot]||gL(global,Le[ot]);p0.exports=f0(Gce(Le));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Le.__patched&&(p0.exports=f0(Le),Le.__patched=!0);function f0(e){Uce(e),e.gracefulify=f0,e.createReadStream=Jt,e.createWriteStream=pr;var t=e.readFile;e.readFile=n;function n(z,fe,de){return typeof fe=="function"&&(de=fe,fe=null),Ee(z,fe,de);function Ee(qe,Re,Ae,Te){return t(qe,Re,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Os([Ee,[qe,Re,Ae],ge,Te||Date.now(),Date.now()]):typeof Ae=="function"&&Ae.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=i;function i(z,fe,de,Ee){return typeof de=="function"&&(Ee=de,de=null),qe(z,fe,de,Ee);function qe(Re,Ae,Te,ge,Me){return r(Re,Ae,Te,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Os([qe,[Re,Ae,Te,ge],Se,Me||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(z,fe,de,Ee){return typeof de=="function"&&(Ee=de,de=null),qe(z,fe,de,Ee);function qe(Re,Ae,Te,ge,Me){return s(Re,Ae,Te,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Os([qe,[Re,Ae,Te,ge],Se,Me||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(z,fe,de,Ee){return typeof de=="function"&&(Ee=de,de=0),qe(z,fe,de,Ee);function qe(Re,Ae,Te,ge,Me){return a(Re,Ae,Te,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Os([qe,[Re,Ae,Te,ge],Se,Me||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var u=e.readdir;e.readdir=h;var d=/^v[0-5]\./;function h(z,fe,de){typeof fe=="function"&&(de=fe,fe=null);var Ee=d.test(process.version)?function(Ae,Te,ge,Me){return u(Ae,qe(Ae,Te,ge,Me))}:function(Ae,Te,ge,Me){return u(Ae,Te,qe(Ae,Te,ge,Me))};return Ee(z,fe,de);function qe(Re,Ae,Te,ge){return function(Me,Se){Me&&(Me.code==="EMFILE"||Me.code==="ENFILE")?Os([Ee,[Re,Ae,Te],Me,ge||Date.now(),Date.now()]):(Se&&Se.sort&&Se.sort(),typeof Te=="function"&&Te.call(this,Me,Se))}}}if(process.version.substr(0,4)==="v0.8"){var m=Bce(e);R=m.ReadStream,G=m.WriteStream}var y=e.ReadStream;y&&(R.prototype=Object.create(y.prototype),R.prototype.open=T);var g=e.WriteStream;g&&(G.prototype=Object.create(g.prototype),G.prototype.open=he),Object.defineProperty(e,"ReadStream",{get:function(){return R},set:function(z){R=z},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return G},set:function(z){G=z},enumerable:!0,configurable:!0});var _=R;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(z){_=z},enumerable:!0,configurable:!0});var A=G;Object.defineProperty(e,"FileWriteStream",{get:function(){return A},set:function(z){A=z},enumerable:!0,configurable:!0});function R(z,fe){return this instanceof R?(y.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}function T(){var z=this;ln(z.path,z.flags,z.mode,function(fe,de){fe?(z.autoClose&&z.destroy(),z.emit("error",fe)):(z.fd=de,z.emit("open",de),z.read())})}function G(z,fe){return this instanceof G?(g.apply(this,arguments),this):G.apply(Object.create(G.prototype),arguments)}function he(){var z=this;ln(z.path,z.flags,z.mode,function(fe,de){fe?(z.destroy(),z.emit("error",fe)):(z.fd=de,z.emit("open",de))})}function Jt(z,fe){return new e.ReadStream(z,fe)}function pr(z,fe){return new e.WriteStream(z,fe)}var hr=e.open;e.open=ln;function ln(z,fe,de,Ee){return typeof de=="function"&&(Ee=de,de=null),qe(z,fe,de,Ee);function qe(Re,Ae,Te,ge,Me){return hr(Re,Ae,Te,function(Se,Gn){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Os([qe,[Re,Ae,Te,ge],Se,Me||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}return e}function Os(e){Ii("ENQUEUE",e[0].name,e[1]),Le[ot].push(e),m0()}var vh;function yL(){for(var e=Date.now(),t=0;t<Le[ot].length;++t)Le[ot][t].length>2&&(Le[ot][t][3]=e,Le[ot][t][4]=e);m0()}function m0(){if(clearTimeout(vh),vh=void 0,Le[ot].length!==0){var e=Le[ot].shift(),t=e[0],n=e[1],r=e[2],i=e[3],s=e[4];if(i===void 0)Ii("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-i>=6e4){Ii("TIMEOUT",t.name,n);var o=n.pop();typeof o=="function"&&o.call(null,r)}else{var a=Date.now()-s,c=Math.max(s-i,1),u=Math.min(c*1.2,100);a>=u?(Ii("RETRY",t.name,n),t.apply(null,n.concat([i]))):Le[ot].push(e)}vh===void 0&&(vh=setTimeout(m0,0))}}});var Ya=f(Gr=>{"use strict";var vL=xt().fromCallback,gt=ft(),Vce=["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 gt[e]=="function");Object.keys(gt).forEach(e=>{e!=="promises"&&(Gr[e]=gt[e])});Vce.forEach(e=>{Gr[e]=vL(gt[e])});Gr.exists=function(e,t){return typeof t=="function"?gt.exists(e,t):new Promise(n=>gt.exists(e,n))};Gr.read=function(e,t,n,r,i,s){return typeof s=="function"?gt.read(e,t,n,r,i,s):new Promise((o,a)=>{gt.read(e,t,n,r,i,(c,u,d)=>{if(c)return a(c);o({bytesRead:u,buffer:d})})})};Gr.write=function(e,t,...n){return typeof n[n.length-1]=="function"?gt.write(e,t,...n):new Promise((r,i)=>{gt.write(e,t,...n,(s,o,a)=>{if(s)return i(s);r({bytesWritten:o,buffer:a})})})};typeof gt.writev=="function"&&(Gr.writev=function(e,t,...n){return typeof n[n.length-1]=="function"?gt.writev(e,t,...n):new Promise((r,i)=>{gt.writev(e,t,...n,(s,o,a)=>{if(s)return i(s);r({bytesWritten:o,buffers:a})})})});typeof gt.realpath.native=="function"&&(Gr.realpath.native=vL(gt.realpath.native))});var h0=f((EEe,SL)=>{SL.exports=e=>{let t=process.versions.node.split(".").map(n=>parseInt(n,10));return e=e.split(".").map(n=>parseInt(n,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var TL=f((AEe,_0)=>{"use strict";var Ls=Ya(),or=require("path"),Kce=h0(),wL=Kce("10.12.0"),bL=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(or.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},EL=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},AL=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};_0.exports.makeDir=async(e,t)=>{if(bL(e),t=EL(t),wL){let r=or.resolve(e);return Ls.mkdir(r,{mode:t.mode,recursive:!0})}let n=async r=>{try{await Ls.mkdir(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(or.dirname(r)===r)throw AL(r);if(i.message.includes("null bytes"))throw i;return await n(or.dirname(r)),n(r)}try{if(!(await Ls.stat(r)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(or.resolve(e))};_0.exports.makeDirSync=(e,t)=>{if(bL(e),t=EL(t),wL){let r=or.resolve(e);return Ls.mkdirSync(r,{mode:t.mode,recursive:!0})}let n=r=>{try{Ls.mkdirSync(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(or.dirname(r)===r)throw AL(r);if(i.message.includes("null bytes"))throw i;return n(or.dirname(r)),n(r)}try{if(!Ls.statSync(r).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(or.resolve(e))}});var an=f((TEe,CL)=>{"use strict";var Wce=xt().fromPromise,{makeDir:Hce,makeDirSync:y0}=TL(),g0=Wce(Hce);CL.exports={mkdirs:g0,mkdirsSync:y0,mkdirp:g0,mkdirpSync:y0,ensureDir:g0,ensureDirSync:y0}});var v0=f((CEe,xL)=>{"use strict";var qs=ft();function Yce(e,t,n,r){qs.open(e,"r+",(i,s)=>{if(i)return r(i);qs.futimes(s,t,n,o=>{qs.close(s,a=>{r&&r(o||a)})})})}function Jce(e,t,n){let r=qs.openSync(e,"r+");return qs.futimesSync(r,t,n),qs.closeSync(r)}xL.exports={utimesMillis:Yce,utimesMillisSync:Jce}});var Ja=f((xEe,NL)=>{"use strict";var Ms=Ya(),It=require("path"),Qce=require("util"),Xce=h0(),wh=Xce("10.5.0"),IL=e=>wh?Ms.stat(e,{bigint:!0}):Ms.stat(e),S0=e=>wh?Ms.statSync(e,{bigint:!0}):Ms.statSync(e);function Zce(e,t){return Promise.all([IL(e),IL(t).catch(n=>{if(n.code==="ENOENT")return null;throw n})]).then(([n,r])=>({srcStat:n,destStat:r}))}function ele(e,t){let n,r=S0(e);try{n=S0(t)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function tle(e,t,n,r){Qce.callbackify(Zce)(e,t,(i,s)=>{if(i)return r(i);let{srcStat:o,destStat:a}=s;return a&&bh(o,a)?r(new Error("Source and destination must not be the same.")):o.isDirectory()&&w0(e,t)?r(new Error(Eh(e,t,n))):r(null,{srcStat:o,destStat:a})})}function nle(e,t,n){let{srcStat:r,destStat:i}=ele(e,t);if(i&&bh(r,i))throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&w0(e,t))throw new Error(Eh(e,t,n));return{srcStat:r,destStat:i}}function RL(e,t,n,r,i){let s=It.resolve(It.dirname(e)),o=It.resolve(It.dirname(n));if(o===s||o===It.parse(o).root)return i();let a=(c,u)=>c?c.code==="ENOENT"?i():i(c):bh(t,u)?i(new Error(Eh(e,n,r))):RL(e,t,o,r,i);wh?Ms.stat(o,{bigint:!0},a):Ms.stat(o,a)}function DL(e,t,n,r){let i=It.resolve(It.dirname(e)),s=It.resolve(It.dirname(n));if(s===i||s===It.parse(s).root)return;let o;try{o=S0(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(bh(t,o))throw new Error(Eh(e,n,r));return DL(e,t,s,r)}function bh(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(wh||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 w0(e,t){let n=It.resolve(e).split(It.sep).filter(i=>i),r=It.resolve(t).split(It.sep).filter(i=>i);return n.reduce((i,s,o)=>i&&r[o]===s,!0)}function Eh(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}NL.exports={checkPaths:tle,checkPathsSync:nle,checkParentPaths:RL,checkParentPathsSync:DL,isSrcSubdir:w0}});var ML=f((IEe,qL)=>{"use strict";var mt=ft(),Qa=require("path"),rle=an().mkdirsSync,ile=v0().utimesMillisSync,Xa=Ja();function sle(e,t,n){typeof n=="function"&&(n={filter:n}),n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
31
30
|
|
|
32
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:
|
|
31
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:r,destStat:i}=Xa.checkPathsSync(e,t,"copy");return Xa.checkParentPathsSync(e,r,t,"copy"),ole(i,e,t,n)}function ole(e,t,n,r){if(r.filter&&!r.filter(t,n))return;let i=Qa.dirname(n);return mt.existsSync(i)||rle(i),PL(e,t,n,r)}function PL(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return ale(e,t,n,r)}function ale(e,t,n,r){let s=(r.dereference?mt.statSync:mt.lstatSync)(t);if(s.isDirectory())return ple(s,e,t,n,r);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return cle(s,e,t,n,r);if(s.isSymbolicLink())return yle(e,t,n,r)}function cle(e,t,n,r,i){return t?lle(e,n,r,i):OL(e,n,r,i)}function lle(e,t,n,r){if(r.overwrite)return mt.unlinkSync(n),OL(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}function OL(e,t,n,r){return mt.copyFileSync(t,n),r.preserveTimestamps&&ule(e.mode,t,n),b0(n,e.mode)}function ule(e,t,n){return dle(e)&&fle(n,e),mle(t,n)}function dle(e){return(e&128)===0}function fle(e,t){return b0(e,t|128)}function b0(e,t){return mt.chmodSync(e,t)}function mle(e,t){let n=mt.statSync(e);return ile(t,n.atime,n.mtime)}function ple(e,t,n,r,i){if(!t)return hle(e.mode,n,r,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`);return LL(n,r,i)}function hle(e,t,n,r){return mt.mkdirSync(n),LL(t,n,r),b0(n,e)}function LL(e,t,n){mt.readdirSync(e).forEach(r=>_le(r,e,t,n))}function _le(e,t,n,r){let i=Qa.join(t,e),s=Qa.join(n,e),{destStat:o}=Xa.checkPathsSync(i,s,"copy");return PL(o,i,s,r)}function yle(e,t,n,r){let i=mt.readlinkSync(t);if(r.dereference&&(i=Qa.resolve(process.cwd(),i)),e){let s;try{s=mt.readlinkSync(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return mt.symlinkSync(i,n);throw o}if(r.dereference&&(s=Qa.resolve(process.cwd(),s)),Xa.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(mt.statSync(n).isDirectory()&&Xa.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return gle(i,n)}else return mt.symlinkSync(i,n)}function gle(e,t){return mt.unlinkSync(t),mt.symlinkSync(e,t)}qL.exports=sle});var E0=f((REe,zL)=>{"use strict";zL.exports={copySync:ML()}});var $r=f((DEe,kL)=>{"use strict";var vle=xt().fromPromise,jL=Ya();function Sle(e){return jL.access(e).then(()=>!0).catch(()=>!1)}kL.exports={pathExists:vle(Sle),pathExistsSync:jL.existsSync}});var HL=f((NEe,WL)=>{"use strict";var Rt=ft(),Za=require("path"),wle=an().mkdirs,ble=$r().pathExists,Ele=v0().utimesMillis,ec=Ja();function Ale(e,t,n,r){typeof n=="function"&&!r?(r=n,n={}):typeof n=="function"&&(n={filter:n}),r=r||function(){},n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
33
32
|
|
|
34
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),hl.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);let{srcStat:a,destStat:c}=s;hl.checkParentPaths(e,a,t,"copy",l=>l?n(l):r.filter?pF(uF,c,e,t,r,n):uF(c,e,t,r,n))})}function uF(e,t,r,n,i){let s=_l.dirname(r);Hve(s,(a,c)=>{if(a)return i(a);if(c)return jA(e,t,r,n,i);Kve(s,l=>l?i(l):jA(e,t,r,n,i))})}function pF(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(a=>a?e(t,r,n,i,s):s(),a=>s(a))}function jA(e,t,r,n,i){return n.filter?pF(fF,e,t,r,n,i):fF(e,t,r,n,i)}function fF(e,t,r,n,i){(n.dereference?jt.stat:jt.lstat)(t,(a,c)=>{if(a)return i(a);if(c.isDirectory())return rSe(c,e,t,r,n,i);if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return Yve(c,e,t,r,n,i);if(c.isSymbolicLink())return sSe(e,t,r,n,i)})}function Yve(e,t,r,n,i,s){return t?Qve(e,r,n,i,s):_F(e,r,n,i,s)}function Qve(e,t,r,n,i){if(n.overwrite)jt.unlink(r,s=>s?i(s):_F(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function _F(e,t,r,n,i){jt.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?Xve(e.mode,t,r,i):Zy(r,e.mode,i))}function Xve(e,t,r,n){return Zve(e)?eSe(r,e,i=>i?n(i):mF(e,t,r,n)):mF(e,t,r,n)}function Zve(e){return(e&128)===0}function eSe(e,t,r){return Zy(e,t|128,r)}function mF(e,t,r,n){tSe(t,r,i=>i?n(i):Zy(r,e,n))}function Zy(e,t,r){return jt.chmod(e,t,r)}function tSe(e,t,r){jt.stat(e,(n,i)=>n?r(n):Wve(t,i.atime,i.mtime,r))}function rSe(e,t,r,n,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):hF(r,n,i,s):nSe(e.mode,r,n,i,s)}function nSe(e,t,r,n,i){jt.mkdir(r,s=>{if(s)return i(s);hF(t,r,n,a=>a?i(a):Zy(r,e,i))})}function hF(e,t,r,n){jt.readdir(e,(i,s)=>i?n(i):yF(s,e,t,r,n))}function yF(e,t,r,n,i){let s=e.pop();return s?iSe(e,s,t,r,n,i):i()}function iSe(e,t,r,n,i,s){let a=_l.join(r,t),c=_l.join(n,t);hl.checkPaths(a,c,"copy",(l,u)=>{if(l)return s(l);let{destStat:f}=u;jA(f,a,c,i,h=>h?s(h):yF(e,r,n,i,s))})}function sSe(e,t,r,n,i){jt.readlink(t,(s,a)=>{if(s)return i(s);if(n.dereference&&(a=_l.resolve(process.cwd(),a)),e)jt.readlink(r,(c,l)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?jt.symlink(a,r,i):i(c):(n.dereference&&(l=_l.resolve(process.cwd(),l)),hl.isSrcSubdir(a,l)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&hl.isSrcSubdir(l,a)?i(new Error(`Cannot overwrite '${l}' with '${a}'.`)):oSe(a,r,i)));else return jt.symlink(a,r,i)})}function oSe(e,t,r){jt.unlink(t,n=>n?r(n):jt.symlink(e,t,r))}gF.exports=Jve});var kA=m((KLe,SF)=>{"use strict";var aSe=Mt().fromCallback;SF.exports={copy:aSe(vF())}});var RF=m((HLe,IF)=>{"use strict";var wF=vt(),TF=require("path"),Oe=require("assert"),yl=process.platform==="win32";function CF(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||wF[r],r=r+"Sync",e[r]=e[r]||wF[r]}),e.maxBusyTries=e.maxBusyTries||3}function FA(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"),CF(t),EF(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let a=n*100;return setTimeout(()=>EF(e,t,i),a)}s.code==="ENOENT"&&(s=null)}r(s)})}function EF(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"&&yl)return bF(e,t,n,r);if(i&&i.isDirectory())return eg(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return yl?bF(e,t,s,r):eg(e,t,s,r);if(s.code==="EISDIR")return eg(e,t,s,r)}return r(s)})})}function bF(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,a)=>{s?n(s.code==="ENOENT"?null:r):a.isDirectory()?eg(e,t,r,n):t.unlink(e,n)})})}function AF(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()?tg(e,t,r):t.unlinkSync(e)}function eg(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")?cSe(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function cSe(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,a;if(s===0)return t.rmdir(e,r);i.forEach(c=>{FA(TF.join(e,c),t,l=>{if(!a){if(l)return r(a=l);--s===0&&t.rmdir(e,r)}})})})}function xF(e,t){let r;t=t||{},CF(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"&&yl&&AF(e,t,n)}try{r&&r.isDirectory()?tg(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return yl?AF(e,t,n):tg(e,t,n);if(n.code!=="EISDIR")throw n;tg(e,t,n)}}function tg(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")lSe(e,t);else if(n.code!=="ENOENT")throw n}}function lSe(e,t){if(Oe(e),Oe(t),t.readdirSync(e).forEach(r=>xF(TF.join(e,r),t)),yl){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}IF.exports=FA;FA.sync=xF});var gl=m((WLe,PF)=>{"use strict";var dSe=Mt().fromCallback,NF=RF();PF.exports={remove:dSe(NF),removeSync:NF.sync}});var kF=m((JLe,jF)=>{"use strict";var uSe=Mt().fromCallback,LF=vt(),qF=require("path"),MF=pr(),zF=gl(),DF=uSe(function(t,r){r=r||function(){},LF.readdir(t,(n,i)=>{if(n)return MF.mkdirs(t,r);i=i.map(a=>qF.join(t,a)),s();function s(){let a=i.pop();if(!a)return r();zF.remove(a,c=>{if(c)return r(c);s()})}})});function OF(e){let t;try{t=LF.readdirSync(e)}catch{return MF.mkdirsSync(e)}t.forEach(r=>{r=qF.join(e,r),zF.removeSync(r)})}jF.exports={emptyDirSync:OF,emptydirSync:OF,emptyDir:DF,emptydir:DF}});var GF=m((YLe,BF)=>{"use strict";var fSe=Mt().fromCallback,FF=require("path"),hi=vt(),UF=pr();function mSe(e,t){function r(){hi.writeFile(e,"",n=>{if(n)return t(n);t()})}hi.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=FF.dirname(e);hi.stat(s,(a,c)=>{if(a)return a.code==="ENOENT"?UF.mkdirs(s,l=>{if(l)return t(l);r()}):t(a);c.isDirectory()?r():hi.readdir(s,l=>{if(l)return t(l)})})})}function pSe(e){let t;try{t=hi.statSync(e)}catch{}if(t&&t.isFile())return;let r=FF.dirname(e);try{hi.statSync(r).isDirectory()||hi.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")UF.mkdirsSync(r);else throw n}hi.writeFileSync(e,"")}BF.exports={createFile:fSe(mSe),createFileSync:pSe}});var WF=m((QLe,HF)=>{"use strict";var _Se=Mt().fromCallback,VF=require("path"),us=vt(),KF=pr(),$F=_i().pathExists;function hSe(e,t,r){function n(i,s){us.link(i,s,a=>{if(a)return r(a);r(null)})}$F(t,(i,s)=>{if(i)return r(i);if(s)return r(null);us.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);let c=VF.dirname(t);$F(c,(l,u)=>{if(l)return r(l);if(u)return n(e,t);KF.mkdirs(c,f=>{if(f)return r(f);n(e,t)})})})})}function ySe(e,t){if(us.existsSync(t))return;try{us.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=VF.dirname(t);return us.existsSync(n)||KF.mkdirsSync(n),us.linkSync(e,t)}HF.exports={createLink:_Se(hSe),createLinkSync:ySe}});var YF=m((XLe,JF)=>{"use strict";var yi=require("path"),vl=vt(),gSe=_i().pathExists;function vSe(e,t,r){if(yi.isAbsolute(e))return vl.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=yi.dirname(t),i=yi.join(n,e);return gSe(i,(s,a)=>s?r(s):a?r(null,{toCwd:i,toDst:e}):vl.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),r(c)):r(null,{toCwd:e,toDst:yi.relative(n,e)})))}}function SSe(e,t){let r;if(yi.isAbsolute(e)){if(r=vl.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=yi.dirname(t),i=yi.join(n,e);if(r=vl.existsSync(i),r)return{toCwd:i,toDst:e};if(r=vl.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:yi.relative(n,e)}}}JF.exports={symlinkPaths:vSe,symlinkPathsSync:SSe}});var ZF=m((ZLe,XF)=>{"use strict";var QF=vt();function wSe(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);QF.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function ESe(e,t){let r;if(t)return t;try{r=QF.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}XF.exports={symlinkType:wSe,symlinkTypeSync:ESe}});var oU=m((eqe,sU)=>{"use strict";var bSe=Mt().fromCallback,tU=require("path"),Co=vt(),rU=pr(),ASe=rU.mkdirs,TSe=rU.mkdirsSync,nU=YF(),CSe=nU.symlinkPaths,xSe=nU.symlinkPathsSync,iU=ZF(),ISe=iU.symlinkType,RSe=iU.symlinkTypeSync,eU=_i().pathExists;function NSe(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,eU(t,(i,s)=>{if(i)return n(i);if(s)return n(null);CSe(e,t,(a,c)=>{if(a)return n(a);e=c.toDst,ISe(c.toCwd,r,(l,u)=>{if(l)return n(l);let f=tU.dirname(t);eU(f,(h,p)=>{if(h)return n(h);if(p)return Co.symlink(e,t,u,n);ASe(f,v=>{if(v)return n(v);Co.symlink(e,t,u,n)})})})})})}function PSe(e,t,r){if(Co.existsSync(t))return;let i=xSe(e,t);e=i.toDst,r=RSe(i.toCwd,r);let s=tU.dirname(t);return Co.existsSync(s)||TSe(s),Co.symlinkSync(e,t,r)}sU.exports={createSymlink:bSe(NSe),createSymlinkSync:PSe}});var cU=m((tqe,aU)=>{"use strict";var rg=GF(),ng=WF(),ig=oU();aU.exports={createFile:rg.createFile,createFileSync:rg.createFileSync,ensureFile:rg.createFile,ensureFileSync:rg.createFileSync,createLink:ng.createLink,createLinkSync:ng.createLinkSync,ensureLink:ng.createLink,ensureLinkSync:ng.createLinkSync,createSymlink:ig.createSymlink,createSymlinkSync:ig.createSymlinkSync,ensureSymlink:ig.createSymlink,ensureSymlinkSync:ig.createSymlinkSync}});var sg=m((rqe,lU)=>{function DSe(e,{EOL:t=`
|
|
35
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function OSe(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}lU.exports={stringify:DSe,stripBom:OSe}});var mU=m((nqe,fU)=>{var xo;try{xo=vt()}catch{xo=require("fs")}var og=Mt(),{stringify:dU,stripBom:uU}=sg();async function LSe(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||xo,n="throws"in t?t.throws:!0,i=await og.fromCallback(r.readFile)(e,t);i=uU(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(a){if(n)throw a.message=`${e}: ${a.message}`,a;return null}return s}var qSe=og.fromPromise(LSe);function MSe(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||xo,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=uU(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function zSe(e,t,r={}){let n=r.fs||xo,i=dU(t,r);await og.fromCallback(n.writeFile)(e,i,r)}var jSe=og.fromPromise(zSe);function kSe(e,t,r={}){let n=r.fs||xo,i=dU(t,r);return n.writeFileSync(e,i,r)}var FSe={readFile:qSe,readFileSync:MSe,writeFile:jSe,writeFileSync:kSe};fU.exports=FSe});var _U=m((iqe,pU)=>{"use strict";var ag=mU();pU.exports={readJson:ag.readFile,readJsonSync:ag.readFileSync,writeJson:ag.writeFile,writeJsonSync:ag.writeFileSync}});var cg=m((sqe,gU)=>{"use strict";var USe=Mt().fromCallback,Sl=vt(),hU=require("path"),yU=pr(),BSe=_i().pathExists;function GSe(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=hU.dirname(e);BSe(i,(s,a)=>{if(s)return n(s);if(a)return Sl.writeFile(e,t,r,n);yU.mkdirs(i,c=>{if(c)return n(c);Sl.writeFile(e,t,r,n)})})}function $Se(e,...t){let r=hU.dirname(e);if(Sl.existsSync(r))return Sl.writeFileSync(e,...t);yU.mkdirsSync(r),Sl.writeFileSync(e,...t)}gU.exports={outputFile:USe(GSe),outputFileSync:$Se}});var SU=m((oqe,vU)=>{"use strict";var{stringify:VSe}=sg(),{outputFile:KSe}=cg();async function HSe(e,t,r={}){let n=VSe(t,r);await KSe(e,n,r)}vU.exports=HSe});var EU=m((aqe,wU)=>{"use strict";var{stringify:WSe}=sg(),{outputFileSync:JSe}=cg();function YSe(e,t,r){let n=WSe(t,r);JSe(e,n,r)}wU.exports=YSe});var AU=m((cqe,bU)=>{"use strict";var QSe=Mt().fromPromise,Ct=_U();Ct.outputJson=QSe(SU());Ct.outputJsonSync=EU();Ct.outputJSON=Ct.outputJson;Ct.outputJSONSync=Ct.outputJsonSync;Ct.writeJSON=Ct.writeJson;Ct.writeJSONSync=Ct.writeJsonSync;Ct.readJSON=Ct.readJson;Ct.readJSONSync=Ct.readJsonSync;bU.exports=Ct});var NU=m((lqe,RU)=>{"use strict";var xU=vt(),XSe=require("path"),ZSe=zA().copySync,IU=gl().removeSync,ewe=pr().mkdirpSync,TU=fl();function twe(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=TU.checkPathsSync(e,t,"move");return TU.checkParentPathsSync(e,i,t,"move"),ewe(XSe.dirname(t)),rwe(e,t,n)}function rwe(e,t,r){if(r)return IU(t),CU(e,t,r);if(xU.existsSync(t))throw new Error("dest already exists.");return CU(e,t,r)}function CU(e,t,r){try{xU.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return nwe(e,t,r)}}function nwe(e,t,r){return ZSe(e,t,{overwrite:r,errorOnExist:!0}),IU(e)}RU.exports=twe});var DU=m((dqe,PU)=>{"use strict";PU.exports={moveSync:NU()}});var zU=m((uqe,MU)=>{"use strict";var iwe=vt(),swe=require("path"),owe=kA().copy,qU=gl().remove,awe=pr().mkdirp,cwe=_i().pathExists,OU=fl();function lwe(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;OU.checkPaths(e,t,"move",(s,a)=>{if(s)return n(s);let{srcStat:c}=a;OU.checkParentPaths(e,c,t,"move",l=>{if(l)return n(l);awe(swe.dirname(t),u=>u?n(u):dwe(e,t,i,n))})})}function dwe(e,t,r,n){if(r)return qU(t,i=>i?n(i):LU(e,t,r,n));cwe(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):LU(e,t,r,n))}function LU(e,t,r,n){iwe.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):uwe(e,t,r,n):n())}function uwe(e,t,r,n){owe(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):qU(e,n))}MU.exports=lwe});var kU=m((fqe,jU)=>{"use strict";var fwe=Mt().fromCallback;jU.exports={move:fwe(zU())}});var BA=m((mqe,UA)=>{"use strict";UA.exports=o(o(o(o(o(o(o(o(o(o(o(o({},ul()),zA()),kA()),kF()),cU()),AU()),pr()),DU()),kU()),cg()),_i()),gl());var FU=require("fs");Object.getOwnPropertyDescriptor(FU,"promises")&&Object.defineProperty(UA.exports,"promises",{get(){return FU.promises}})});var KU=m((pqe,VU)=>{VU.exports=wl;wl.default=wl;wl.stable=GU;wl.stableStringify=GU;var lg="[...]",UU="[Circular]",ms=[],fs=[];function BU(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function wl(e,t,r,n){typeof n>"u"&&(n=BU()),GA(e,"",0,[],void 0,0,n);var i;try{fs.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,$U(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;ms.length!==0;){var s=ms.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Io(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),ms.push([n,r,t,i])):fs.push([t,r,e]):(n[r]=e,ms.push([n,r,t]))}function GA(e,t,r,n,i,s,a){s+=1;var c;if(typeof e=="object"&&e!==null){for(c=0;c<n.length;c++)if(n[c]===e){Io(UU,e,t,i);return}if(typeof a.depthLimit<"u"&&s>a.depthLimit){Io(lg,e,t,i);return}if(typeof a.edgesLimit<"u"&&r+1>a.edgesLimit){Io(lg,e,t,i);return}if(n.push(e),Array.isArray(e))for(c=0;c<e.length;c++)GA(e[c],c,c,n,e,s,a);else{var l=Object.keys(e);for(c=0;c<l.length;c++){var u=l[c];GA(e[u],u,c,n,e,s,a)}}n.pop()}}function mwe(e,t){return e<t?-1:e>t?1:0}function GU(e,t,r,n){typeof n>"u"&&(n=BU());var i=$A(e,"",0,[],void 0,0,n)||e,s;try{fs.length===0?s=JSON.stringify(i,t,r):s=JSON.stringify(i,$U(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;ms.length!==0;){var a=ms.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return s}function $A(e,t,r,n,i,s,a){s+=1;var c;if(typeof e=="object"&&e!==null){for(c=0;c<n.length;c++)if(n[c]===e){Io(UU,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof a.depthLimit<"u"&&s>a.depthLimit){Io(lg,e,t,i);return}if(typeof a.edgesLimit<"u"&&r+1>a.edgesLimit){Io(lg,e,t,i);return}if(n.push(e),Array.isArray(e))for(c=0;c<e.length;c++)$A(e[c],c,c,n,e,s,a);else{var l={},u=Object.keys(e).sort(mwe);for(c=0;c<u.length;c++){var f=u[c];$A(e[f],f,c,n,e,s,a),l[f]=e[f]}if(typeof i<"u")ms.push([i,t,e]),i[t]=l;else return l}n.pop()}}function $U(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(fs.length>0)for(var n=0;n<fs.length;n++){var i=fs[n];if(i[1]===t&&i[0]===r){r=i[2],fs.splice(n,1);break}}return e.call(this,t,r)}}});var WU=m((_qe,HU)=>{var pwe=KU(),De={LOG:Symbol("log"),META:Symbol("meta"),ERROR:Symbol("error"),OPTS:Symbol("opts")},gi=class{constructor(t,r){this[De.LOG]=t,this[De.META]={},this[De.ERROR]=null,this[De.OPTS]=r;let{meta:n,tags:i}=this[De.LOG];if(n&&(typeof n!="object"||Array.isArray(n))&&(this[De.LOG].meta={meta:n}),n||(this[De.LOG].meta={}),i||(this[De.LOG].tags=[]),gi.isError(t.msg)){let s=t.msg;this[De.ERROR]=s,this[De.META].stack=s.stack,this[De.LOG].msg=s.message}}get level(){return this[De.LOG].level}get msg(){return this[De.LOG].msg}set msg(t){this[De.LOG].msg=t}get message(){return this.msg}set message(t){this.msg=t}get meta(){let t=this[De.OPTS],r=o(o(o({},this[De.META]),this[De.OPTS].meta),this[De.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"&&gi.isError(i)&&(r[n]=gi.stubError(i));return r}set meta(t){this[De.LOG].meta=o(o({},this[De.LOG].meta),t)}get tags(){let t=this[De.OPTS];return[].concat(t.tags,this[De.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[De.LOG].tags=this[De.LOG].tags.concat(t)}get value(){let t=this[De.OPTS];return y(o({[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[De.ERROR]||new Error(this.msg);throw t.log=this,t}toJSON(t){return pwe(this.value,this[De.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}};gi.symbols=De;HU.exports=gi});var YU=m((hqe,JU)=>{var _we=require("events"),hwe=WU(),Ro={LEVELS:Symbol("levels")},No=class extends _we{constructor(t={},r={}){super(),this.LambdaLog=No,this.LogMessage=hwe,this.options=o({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[Ro.LEVELS]=o({info:"info",warn:"warn",error:"error",debug(){return this.options.debug?"debug":!1}},r),this.console=this.options.logHandler;let n=this[Ro.LEVELS];for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&this.addLevel(i,n[i])}addLevel(t,r){return this[Ro.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[Ro.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),a=this[Ro.LEVELS][t];return typeof a=="function"&&(a=a.call(this,s)),a?(this.options.silent||this.console[a](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(a=>s(this.log("info",a,r,n))).catch(a=>s(this.log("error",a,r,n)))})}};No.symbols=Ro;JU.exports=No});var VA=m((yqe,QU)=>{var ywe=YU(),gwe=new ywe;QU.exports=gwe});var XU=m(KA=>{"use strict";Object.defineProperty(KA,"__esModule",{value:!0});var vwe=VA(),dg=class{};KA.default=dg;dg.Instance=new vwe.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0})});var rB=m(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.GetAppInfo=sn.GetRoute=sn.normalizePathPrefix=sn.loadAppFrame=void 0;var eB=$();dv();var HA=eB.__importDefault(require("path")),ZU=BA(),WA=bA(),Swe=eB.__importDefault(XU()),Pn=Swe.default.Instance;function wwe({basePath:e="."}){let t=[e,HA.default.join(e,".."),HA.default.join(e,"templates"),e,"/opt","/opt/templates"];for(let r of t){let n=HA.default.join(r,"appFrame.html");try{if((0,ZU.pathExistsSync)(n))return Pn.info("found html file",{fullPath:n}),(0,ZU.readFileSync)(n,"utf-8")}catch{}}throw Pn.error("appFrame.html not found"),new Error("appFrame.html not found")}sn.loadAppFrame=wwe;function Ewe(e){let t=e;return t!==""&&!t.startsWith("/")&&(t="/"+e),t.endsWith("/")&&t.substring(0,t.length-1),t}sn.normalizePathPrefix=Ewe;async function bwe(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:a,appName:c}=await tB({dbManager:t,appName:s.length>=2?s[1]:"[root]"}),l=c==="[root]",u=l?"":`${c}/`,h=(l?i:i.slice(c.length+1)).split("/"),p="";if(h.length>=2&&h[1]!==""&&(p=h.slice(1).join("/")),h.length===2||h.length===3&&!h[2]){let C=await Twe({dbManager:t,appName:c,normalizedPathPrefix:r,semVer:h[1],appNameOrRootTrailingSlash:u});if(C)return C}let v=h.length>=4?h[3]:"",S=h.length>=2?h[1]:"",g=Awe({dbManager:t,normalizedPathPrefix:r,event:e,appName:c,possibleSemVerPathNextData:v,possibleSemVerPathAfterApp:S,possibleSemVerQuery:(n==null?void 0:n.get("appver"))||"",additionalParts:p,versionsAndRules:a,appNameOrRootTrailingSlash:u});return g||{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, no matching route`}}catch(i){return Pn.error("unexpected exception - returning 599",{statusCode:599,error:i}),{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, ${i.message}`}}}sn.GetRoute=bwe;async function tB(e){let{dbManager:t,appName:r}=e,n;return n=await WA.Application.GetVersionsAndRules({dbManager:t,key:{AppName:r}}),n.Versions.length>0?{appName:r,versionsAndRules:n}:(n=await WA.Application.GetVersionsAndRules({dbManager:t,key:{AppName:"[root]"}}),{appName:"[root]",versionsAndRules:n})}sn.GetAppInfo=tB;function Awe(e){var t,r;let{event:n,normalizedPathPrefix:i="",appName:s,possibleSemVerPathNextData:a,possibleSemVerPathAfterApp:c,possibleSemVerQuery:l,additionalParts:u,versionsAndRules:f,appNameOrRootTrailingSlash:h}=e,p,v=c?f.Versions.find(P=>P.SemVer===c):void 0,S=a?f.Versions.find(P=>P.SemVer===a):void 0,g=l?f.Versions.find(P=>P.SemVer===l):void 0,C=v||S;if(C)return o(o({appName:s,semVer:C.SemVer},C!=null&&C.URL?{url:C==null?void 0:C.URL}:{}),C!=null&&C.Type?{type:(C==null?void 0:C.Type)==="lambda"?"apigwy":C==null?void 0:C.Type}:{});if(g)p=g;else{if(l)return Pn.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 P=(r=(t=f.Rules)===null||t===void 0?void 0:t.RuleSet.default)===null||r===void 0?void 0:r.SemVer;if(P==null)return Pn.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}`};p=f.Versions.find(k=>k.SemVer===P)}}if(!p)return Pn.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((p==null?void 0:p.StartupType)==="iframe"||!(p!=null&&p.StartupType)){let P;return(p==null?void 0:p.Type)!=="static"&&((p==null?void 0:p.DefaultFile)===void 0||(p==null?void 0:p.DefaultFile)===""||u!=="")?(P=`${i}/${h}${p.SemVer}`,u!==""&&(P+=`/${u}`)):P=`${i}/${h}${p.SemVer}/${p.DefaultFile}`,y(o(o({statusCode:200,appName:s,semVer:p.SemVer,startupType:"iframe"},p!=null&&p.URL?{url:p==null?void 0:p.URL}:{}),p!=null&&p.Type?{type:(p==null?void 0:p.Type)==="lambda"?"apigwy":p==null?void 0:p.Type}:{}),{iFrameAppVersionPath:P})}else{if((p==null?void 0:p.Type)==="lambda")throw new Error("Invalid type for direct app version");if(["apigwy","static"].includes((p==null?void 0:p.Type)||""))throw new Error("Invalid type for direct app version");return o(o({appName:s,semVer:p.SemVer,startupType:"direct"},p!=null&&p.URL?{url:p==null?void 0:p.URL}:{}),p!=null&&p.Type?{type:p==null?void 0:p.Type}:{})}}async function Twe(e){let{dbManager:t,normalizedPathPrefix:r="",appName:n,appNameOrRootTrailingSlash:i,semVer:s}=e,a;try{a=await WA.Version.LoadVersion({dbManager:t,key:{AppName:n,SemVer:s}})}catch(c){Pn.info(`LoadVersion threw for '${r}/${i}${s}' - falling through to app routing'`,{appName:n,semVer:s,error:c});return}if(a===void 0){Pn.info(`LoadVersion returned undefined for '${r}/${i}${s}', assuming not found - falling through to app routing'`,{appName:n,semVer:s});return}if(!!a.DefaultFile)return Pn.info(`found '${r}/${i}${s}' - returning 302 to ${r}/${i}${s}/${a.DefaultFile}`,{statusCode:302,routedPath:`${r}/${i}${s}/${a.DefaultFile}`}),{statusCode:302,redirectLocation:`${r}/${i}${s}/${a.DefaultFile}`}}});var Po=m((El,JA)=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.default=Cwe;function ug(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ug=function(r){return typeof r}:ug=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ug(e)}function Cwe(e){var t=typeof e=="string"||e instanceof String;if(!t){var r=ug(e);throw e===null?r="null":r==="object"&&(r=e.constructor.name),new TypeError("Expected a string but received a ".concat(r))}}JA.exports=El.default;JA.exports.default=El.default});var fg=m((bl,YA)=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.default=xwe;function xwe(){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}YA.exports=bl.default;YA.exports.default=bl.default});var nB=m((Al,QA)=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.default=Nwe;var Iwe=Rwe(Po());function Rwe(e){return e&&e.__esModule?e:{default:e}}function mg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mg=function(r){return typeof r}:mg=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mg(e)}function Nwe(e,t){(0,Iwe.default)(e);var r,n;mg(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)}QA.exports=Al.default;QA.exports.default=Al.default});var ZA=m((Tl,XA)=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=Lwe;var Pwe=iB(Po()),Dwe=iB(fg());function iB(e){return e&&e.__esModule?e:{default:e}}var Owe={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function Lwe(e,t){(0,Pwe.default)(e),t=(0,Dwe.default)(t,Owe),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))})}XA.exports=Tl.default;XA.exports.default=Tl.default});var pg=m((Cl,tT)=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=eT;var qwe=Mwe(Po());function Mwe(e){return e&&e.__esModule?e:{default:e}}var sB="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",vi="(".concat(sB,"[.]){3}").concat(sB),zwe=new RegExp("^".concat(vi,"$")),Qe="(?:[0-9a-fA-F]{1,4})",jwe=new RegExp("^("+"(?:".concat(Qe,":){7}(?:").concat(Qe,"|:)|")+"(?:".concat(Qe,":){6}(?:").concat(vi,"|:").concat(Qe,"|:)|")+"(?:".concat(Qe,":){5}(?::").concat(vi,"|(:").concat(Qe,"){1,2}|:)|")+"(?:".concat(Qe,":){4}(?:(:").concat(Qe,"){0,1}:").concat(vi,"|(:").concat(Qe,"){1,3}|:)|")+"(?:".concat(Qe,":){3}(?:(:").concat(Qe,"){0,2}:").concat(vi,"|(:").concat(Qe,"){1,4}|:)|")+"(?:".concat(Qe,":){2}(?:(:").concat(Qe,"){0,3}:").concat(vi,"|(:").concat(Qe,"){1,5}|:)|")+"(?:".concat(Qe,":){1}(?:(:").concat(Qe,"){0,4}:").concat(vi,"|(:").concat(Qe,"){1,6}|:)|")+"(?::((?::".concat(Qe,"){0,5}:").concat(vi,"|(?::").concat(Qe,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function eT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,qwe.default)(e),t=String(t),!t)return eT(e,4)||eT(e,6);if(t==="4"){if(!zwe.test(e))return!1;var r=e.split(".").sort(function(n,i){return n-i});return r[3]<=255}return t==="6"?!!jwe.test(e):!1}tT.exports=Cl.default;tT.exports.default=Cl.default});var aB=m((Il,nT)=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.default=Qwe;var kwe=xl(Po()),Fwe=xl(fg()),rT=xl(nB()),Uwe=xl(ZA()),oB=xl(pg());function xl(e){return e&&e.__esModule?e:{default:e}}var Bwe={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},Gwe=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,$we=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,Vwe=/^[a-z\d]+$/,Kwe=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,Hwe=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,Wwe=/^([\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,Jwe=254;function Ywe(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 Qwe(e,t){if((0,kwe.default)(e),t=(0,Fwe.default)(t,Bwe),t.require_display_name||t.allow_display_name){var r=e.match(Gwe);if(r){var n=r[1];if(e=e.replace(n,"").replace(/(^<|>$)/g,""),n.endsWith(" ")&&(n=n.substr(0,n.length-1)),!Ywe(n))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>Jwe)return!1;var i=e.split("@"),s=i.pop(),a=s.toLowerCase();if(t.host_blacklist.includes(a))return!1;var c=i.join("@");if(t.domain_specific_validation&&(a==="gmail.com"||a==="googlemail.com")){c=c.toLowerCase();var l=c.split("+")[0];if(!(0,rT.default)(l.replace(/\./g,""),{min:6,max:30}))return!1;for(var u=l.split("."),f=0;f<u.length;f++)if(!Vwe.test(u[f]))return!1}if(t.ignore_max_length===!1&&(!(0,rT.default)(c,{max:64})||!(0,rT.default)(s,{max:254})))return!1;if(!(0,Uwe.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,oB.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var h=s.substr(1,s.length-2);if(h.length===0||!(0,oB.default)(h))return!1}}if(c[0]==='"')return c=c.slice(1,c.length-1),t.allow_utf8_local_part?Wwe.test(c):Kwe.test(c);for(var p=t.allow_utf8_local_part?Hwe:$we,v=c.split("."),S=0;S<v.length;S++)if(!p.test(v[S]))return!1;return!(t.blacklisted_chars&&c.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}nT.exports=Il.default;nT.exports.default=Il.default});var uB=m((Rl,iT)=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=l0e;var Xwe=_g(Po()),Zwe=_g(ZA()),cB=_g(pg()),e0e=_g(fg());function _g(e){return e&&e.__esModule?e:{default:e}}function t0e(e,t){return s0e(e)||i0e(e,t)||n0e(e,t)||r0e()}function r0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
36
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n0e(e,t){if(!!e){if(typeof e=="string")return lB(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 lB(e,t)}}function lB(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 i0e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,s=void 0;try{for(var a=e[Symbol.iterator](),c;!(n=(c=a.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,s=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw s}}return r}}function s0e(e){if(Array.isArray(e))return e}var o0e={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},a0e=/^\[([^\]]+)\](?::([0-9]+))?$/;function c0e(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function dB(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||c0e(n)&&n.test(e))return!0}return!1}function l0e(e,t){if((0,Xwe.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,e0e.default)(t,o0e),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,a,c,l,u;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),l=e.split("://"),l.length>1){if(r=l.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;l[0]=e.substr(2)}}if(e=l.join("://"),e==="")return!1;if(l=e.split("/"),e=l.shift(),e===""&&!t.require_host)return!0;if(l=e.split("@"),l.length>1){if(t.disallow_auth||l[0]===""||(n=l.shift(),n.indexOf(":")>=0&&n.split(":").length>2))return!1;var f=n.split(":"),h=t0e(f,2),p=h[0],v=h[1];if(p===""&&v==="")return!1}s=l.join("@"),c=null,u=null;var S=s.match(a0e);if(S?(i="",u=S[1],c=S[2]||null):(l=s.split(":"),i=l.shift(),l.length&&(c=l.join(":"))),c!==null&&c.length>0){if(a=parseInt(c,10),!/^[0-9]+$/.test(c)||a<=0||a>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?dB(i,t.host_whitelist):!(!(0,cB.default)(i)&&!(0,Zwe.default)(i,t)&&(!u||!(0,cB.default)(u,6))||(i=i||u,t.host_blacklist&&dB(i,t.host_blacklist)))}iT.exports=Rl.default;iT.exports.default=Rl.default});var mB=m((Sqe,fB)=>{"use strict";var d0e=aB(),u0e=uB(),f0e=pg();function sT(e,t){if(!e)throw new Error(t)}var m0e={name:"email",coerce:e=>e.toString(),validate:function(e){sT(d0e(e),"must be an email address")}},p0e={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){sT(f0e(e),"must be an IP address")}},_0e={name:"url",coerce:e=>e.toString(),validate:function(e){sT(u0e(e,{require_tld:!1}),"must be a URL")}};fB.exports={email:m0e,ipaddress:p0e,url:_0e}});var rG=m(tG=>{"use strict";Object.defineProperty(tG,"__esModule",{value:!0})});var wT=m(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});var vT=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)||[]}};ST.default=new vT});var nG=m(Ei=>{"use strict";var kbe=Ei&&Ei.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.Property=Ei.Config=void 0;var Eg=kbe(wT());function Fbe(e={}){return t=>{Eg.default.setConvictMetaForClass(e,t)}}Ei.Config=Fbe;function Ube(e){return(t,r)=>{if(typeof e=="object"&&typeof e.format>"u"){let n=Eg.default.getTsType(t,r);n&&(e.format=n)}Eg.default.setConvictMetaForProperty(e,t,r),Eg.default.setPropertyForClass(t,r)}}Ei.Property=Ube});var uG=m((Rqe,dG)=>{"use strict";var Bbe=require("util"),Gbe=require("fs"),iG=require("path");function ql(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 a=e.charAt(s);n&&(n=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?n=!0:a!=="-"&&a!=="_"&&(r+=a)}return r}}function aG(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),a=e.charAt(i);s!==a&&i>0?n+=`${t}${r.charAt(i)}`:n+=a}return n}function cG(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 $be(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let a=0;a<e.length;a++){if(r=n,n=e.charAt(a),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var _r;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(_r||(_r={}));var On,bT=class{constructor(t){On=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=$be(t),s=Vbe(Object.assign(Object.create(null),n.alias)),a=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),c=Object.assign(Object.create(null),n.default),l=n.configObjects||[],u=n.envPrefix,f=a["populate--"],h=f?"--":"_",p=Object.create(null),v=Object.create(null),S=n.__||On.format,g={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:[]},C=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,P=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(E){let b=typeof E=="object"?E.key:E,q=Object.keys(E).map(function(R){return{boolean:"bools",string:"strings",number:"numbers"}[R]}).filter(Boolean).pop();q&&(g[q][b]=!0),g.arrays[b]=!0,g.keys.push(b)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(E){g.bools[E]=!0,g.keys.push(E)}),[].concat(n.string||[]).filter(Boolean).forEach(function(E){g.strings[E]=!0,g.keys.push(E)}),[].concat(n.number||[]).filter(Boolean).forEach(function(E){g.numbers[E]=!0,g.keys.push(E)}),[].concat(n.count||[]).filter(Boolean).forEach(function(E){g.counts[E]=!0,g.keys.push(E)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(E){g.normalize[E]=!0,g.keys.push(E)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([E,b])=>{typeof b=="number"&&(g.nargs[E]=b,g.keys.push(E))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([E,b])=>{typeof b=="function"&&(g.coercions[E]=b,g.keys.push(E))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(E){g.configs[E]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([E,b])=>{(typeof b=="boolean"||typeof b=="function")&&(g.configs[E]=b)})),Fn(n.key,s,n.default,g.arrays),Object.keys(c).forEach(function(E){(g.aliases[E]||[]).forEach(function(b){c[b]=c[E]})});let x=null;Fg();let k=[],_e=Object.assign(Object.create(null),{_:[]}),Ut={};for(let E=0;E<i.length;E++){let b=i[E],q=b.replace(/^-{3,}/,"---"),R,A,U,B,X,Ve;if(b!=="--"&&Ss(b))jn(b);else if(q.match(/---+(=|$)/)){jn(b);continue}else if(b.match(/^--.+=/)||!a["short-option-groups"]&&b.match(/^-.+=/))B=b.match(/^--?([^=]+)=([\s\S]*)$/),B!==null&&Array.isArray(B)&&B.length>=3&&(oe(B[1],g.arrays)?E=hr(E,B[1],i,B[2]):oe(B[1],g.nargs)!==!1?E=kn(E,B[1],i,B[2]):F(B[1],B[2]));else if(b.match(P)&&a["boolean-negation"])B=b.match(P),B!==null&&Array.isArray(B)&&B.length>=2&&(A=B[1],F(A,oe(A,g.arrays)?[!1]:!1));else if(b.match(/^--.+/)||!a["short-option-groups"]&&b.match(/^-[^-]+/))B=b.match(/^--?(.+)/),B!==null&&Array.isArray(B)&&B.length>=2&&(A=B[1],oe(A,g.arrays)?E=hr(E,A,i):oe(A,g.nargs)!==!1?E=kn(E,A,i):(X=i[E+1],X!==void 0&&(!X.match(/^-/)||X.match(C))&&!oe(A,g.bools)&&!oe(A,g.counts)||/^(true|false)$/.test(X)?(F(A,X),E++):F(A,pt(A))));else if(b.match(/^-.\..+=/))B=b.match(/^-([^=]+)=([\s\S]*)$/),B!==null&&Array.isArray(B)&&B.length>=3&&F(B[1],B[2]);else if(b.match(/^-.\..+/)&&!b.match(C))X=i[E+1],B=b.match(/^-(.\..+)/),B!==null&&Array.isArray(B)&&B.length>=2&&(A=B[1],X!==void 0&&!X.match(/^-/)&&!oe(A,g.bools)&&!oe(A,g.counts)?(F(A,X),E++):F(A,pt(A)));else if(b.match(/^-[^-]+/)&&!b.match(C)){U=b.slice(1,-1).split(""),R=!1;for(let Ze=0;Ze<U.length;Ze++){if(X=b.slice(Ze+2),U[Ze+1]&&U[Ze+1]==="="){Ve=b.slice(Ze+3),A=U[Ze],oe(A,g.arrays)?E=hr(E,A,i,Ve):oe(A,g.nargs)!==!1?E=kn(E,A,i,Ve):F(A,Ve),R=!0;break}if(X==="-"){F(U[Ze],X);continue}if(/[A-Za-z]/.test(U[Ze])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(X)&&oe(X,g.bools)===!1){F(U[Ze],X),R=!0;break}if(U[Ze+1]&&U[Ze+1].match(/\W/)){F(U[Ze],X),R=!0;break}else F(U[Ze],pt(U[Ze]))}A=b.slice(-1)[0],!R&&A!=="-"&&(oe(A,g.arrays)?E=hr(E,A,i):oe(A,g.nargs)!==!1?E=kn(E,A,i):(X=i[E+1],X!==void 0&&(!/^(-|--)[^-]/.test(X)||X.match(C))&&!oe(A,g.bools)&&!oe(A,g.counts)||/^(true|false)$/.test(X)?(F(A,X),E++):F(A,pt(A))))}else if(b.match(/^-[0-9]$/)&&b.match(C)&&oe(b.slice(1),g.bools))A=b.slice(1),F(A,pt(A));else if(b==="--"){k=i.slice(E+1);break}else if(a["halt-at-non-option"]){k=i.slice(E);break}else jn(b)}Ne(_e,!0),Ne(_e,!1),Fe(_e),Re(),Ae(_e,g.aliases,c,!0),we(_e),a["set-placeholder-key"]&&Ue(_e),Object.keys(g.counts).forEach(function(E){cn(_e,E.split("."))||F(E,0)}),f&&k.length&&(_e[h]=[]),k.forEach(function(E){_e[h].push(E)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(_e).filter(E=>E!=="--"&&E.includes("-")).forEach(E=>{delete _e[E]}),a["strip-aliased"]&&[].concat(...Object.keys(s).map(E=>s[E])).forEach(E=>{a["camel-case-expansion"]&&E.includes("-")&&delete _e[E.split(".").map(b=>ql(b)).join(".")],delete _e[E]});function jn(E){let b=Ie("_",E);(typeof b=="string"||typeof b=="number")&&_e._.push(b)}function kn(E,b,q,R){let A,U=oe(b,g.nargs);if(U=typeof U!="number"||isNaN(U)?1:U,U===0)return Jt(R)||(x=Error(S("Argument unexpected for: %s",b))),F(b,pt(b)),E;let B=Jt(R)?0:1;if(a["nargs-eats-options"])q.length-(E+1)+B<U&&(x=Error(S("Not enough arguments following: %s",b))),B=U;else{for(A=E+1;A<q.length&&(!q[A].match(/^-[^0-9]/)||q[A].match(C)||Ss(q[A]));A++)B++;B<U&&(x=Error(S("Not enough arguments following: %s",b)))}let X=Math.min(B,U);for(!Jt(R)&&X>0&&(F(b,R),X--),A=E+1;A<X+E+1;A++)F(b,q[A]);return E+X}function hr(E,b,q,R){let A=[],U=R||q[E+1],B=oe(b,g.nargs);if(oe(b,g.bools)&&!/^(true|false)$/.test(U))A.push(!0);else if(Jt(U)||Jt(R)&&/^-/.test(U)&&!C.test(U)&&!Ss(U)){if(c[b]!==void 0){let X=c[b];A=Array.isArray(X)?X:[X]}}else{Jt(R)||A.push(pe(b,R));for(let X=E+1;X<q.length&&!(!a["greedy-arrays"]&&A.length>0||B&&typeof B=="number"&&A.length>=B||(U=q[X],/^-/.test(U)&&!C.test(U)&&!Ss(U)));X++)E=X,A.push(pe(b,U))}return typeof B=="number"&&(B&&A.length<B||isNaN(B)&&A.length===0)&&(x=Error(S("Not enough arguments following: %s",b))),F(b,A),E}function F(E,b){if(/-/.test(E)&&a["camel-case-expansion"]){let A=E.split(".").map(function(U){return ql(U)}).join(".");he(E,A)}let q=pe(E,b),R=E.split(".");Me(_e,R,q),g.aliases[E]&&g.aliases[E].forEach(function(A){let U=A.split(".");Me(_e,U,q)}),R.length>1&&a["dot-notation"]&&(g.aliases[R[0]]||[]).forEach(function(A){let U=A.split("."),B=[].concat(R);B.shift(),U=U.concat(B),(g.aliases[E]||[]).includes(U.join("."))||Me(_e,U,q)}),oe(E,g.normalize)&&!oe(E,g.arrays)&&[E].concat(g.aliases[E]||[]).forEach(function(U){Object.defineProperty(Ut,U,{enumerable:!0,get(){return b},set(B){b=typeof B=="string"?On.normalize(B):B}})})}function he(E,b){g.aliases[E]&&g.aliases[E].length||(g.aliases[E]=[b],p[b]=!0),g.aliases[b]&&g.aliases[b].length||he(b,E)}function pe(E,b){typeof b=="string"&&(b[0]==="'"||b[0]==='"')&&b[b.length-1]===b[0]&&(b=b.substring(1,b.length-1)),(oe(E,g.bools)||oe(E,g.counts))&&typeof b=="string"&&(b=b==="true");let q=Array.isArray(b)?b.map(function(R){return Ie(E,R)}):Ie(E,b);return oe(E,g.counts)&&(Jt(q)||typeof q=="boolean")&&(q=ET()),oe(E,g.normalize)&&oe(E,g.arrays)&&(Array.isArray(b)?q=b.map(R=>On.normalize(R)):q=On.normalize(b)),q}function Ie(E,b){return!a["parse-positional-numbers"]&&E==="_"||!oe(E,g.strings)&&!oe(E,g.bools)&&!Array.isArray(b)&&(cG(b)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${b}`)))||!Jt(b)&&oe(E,g.numbers))&&(b=Number(b)),b}function Fe(E){let b=Object.create(null);Ae(b,g.aliases,c),Object.keys(g.configs).forEach(function(q){let R=E[q]||b[q];if(R)try{let A=null,U=On.resolve(On.cwd(),R),B=g.configs[q];if(typeof B=="function"){try{A=B(U)}catch(X){A=X}if(A instanceof Error){x=A;return}}else A=On.require(U);Le(A)}catch(A){A.name==="PermissionDenied"?x=A:E[q]&&(x=Error(S("Invalid JSON config file: %s",R)))}})}function Le(E,b){Object.keys(E).forEach(function(q){let R=E[q],A=b?b+"."+q:q;typeof R=="object"&&R!==null&&!Array.isArray(R)&&a["dot-notation"]?Le(R,A):(!cn(_e,A.split("."))||oe(A,g.arrays)&&a["combine-arrays"])&&F(A,R)})}function Re(){typeof l<"u"&&l.forEach(function(E){Le(E)})}function Ne(E,b){if(typeof u>"u")return;let q=typeof u=="string"?u:"",R=On.env();Object.keys(R).forEach(function(A){if(q===""||A.lastIndexOf(q,0)===0){let U=A.split("__").map(function(B,X){return X===0&&(B=B.substring(q.length)),ql(B)});(b&&g.configs[U.join(".")]||!b)&&!cn(E,U)&&F(U.join("."),R[A])}})}function we(E){let b,q=new Set;Object.keys(E).forEach(function(R){if(!q.has(R)&&(b=oe(R,g.coercions),typeof b=="function"))try{let A=Ie(R,b(E[R]));[].concat(g.aliases[R]||[],R).forEach(U=>{q.add(U),E[U]=A})}catch(A){x=A}})}function Ue(E){return g.keys.forEach(b=>{~b.indexOf(".")||typeof E[b]>"u"&&(E[b]=void 0)}),E}function Ae(E,b,q,R=!1){Object.keys(q).forEach(function(A){cn(E,A.split("."))||(Me(E,A.split("."),q[A]),R&&(v[A]=!0),(b[A]||[]).forEach(function(U){cn(E,U.split("."))||Me(E,U.split("."),q[A])}))})}function cn(E,b){let q=E;a["dot-notation"]||(b=[b.join(".")]),b.slice(0,-1).forEach(function(A){q=q[A]||{}});let R=b[b.length-1];return typeof q!="object"?!1:R in q}function Me(E,b,q){let R=E;a["dot-notation"]||(b=[b.join(".")]),b.slice(0,-1).forEach(function(Ve){Ve=sG(Ve),typeof R=="object"&&R[Ve]===void 0&&(R[Ve]={}),typeof R[Ve]!="object"||Array.isArray(R[Ve])?(Array.isArray(R[Ve])?R[Ve].push({}):R[Ve]=[R[Ve],{}],R=R[Ve][R[Ve].length-1]):R=R[Ve]});let A=sG(b[b.length-1]),U=oe(b.join("."),g.arrays),B=Array.isArray(q),X=a["duplicate-arguments-array"];!X&&oe(A,g.nargs)&&(X=!0,(!Jt(R[A])&&g.nargs[A]===1||Array.isArray(R[A])&&R[A].length===g.nargs[A])&&(R[A]=void 0)),q===ET()?R[A]=ET(R[A]):Array.isArray(R[A])?X&&U&&B?R[A]=a["flatten-duplicate-arrays"]?R[A].concat(q):(Array.isArray(R[A][0])?R[A]:[R[A]]).concat([q]):!X&&Boolean(U)===Boolean(B)?R[A]=q:R[A]=R[A].concat([q]):R[A]===void 0&&U?R[A]=B?q:[q]:X&&!(R[A]===void 0||oe(A,g.counts)||oe(A,g.bools))?R[A]=[R[A],q]:R[A]=q}function Fn(...E){E.forEach(function(b){Object.keys(b||{}).forEach(function(q){g.aliases[q]||(g.aliases[q]=[].concat(s[q]||[]),g.aliases[q].concat(q).forEach(function(R){if(/-/.test(R)&&a["camel-case-expansion"]){let A=ql(R);A!==q&&g.aliases[q].indexOf(A)===-1&&(g.aliases[q].push(A),p[A]=!0)}}),g.aliases[q].concat(q).forEach(function(R){if(R.length>1&&/[A-Z]/.test(R)&&a["camel-case-expansion"]){let A=aG(R,"-");A!==q&&g.aliases[q].indexOf(A)===-1&&(g.aliases[q].push(A),p[A]=!0)}}),g.aliases[q].forEach(function(R){g.aliases[R]=[q].concat(g.aliases[q].filter(function(A){return R!==A}))}))})})}function oe(E,b){let q=[].concat(g.aliases[E]||[],E),R=Object.keys(b),A=q.find(U=>R.includes(U));return A?b[A]:!1}function Ge(E){let b=Object.keys(g);return[].concat(b.map(R=>g[R])).some(function(R){return Array.isArray(R)?R.includes(E):R[E]})}function zg(E,...b){return[].concat(...b).some(function(R){let A=E.match(R);return A&&Ge(A[1])})}function jg(E){if(E.match(C)||!E.match(/^-[^-]+/))return!1;let b=!0,q,R=E.slice(1).split("");for(let A=0;A<R.length;A++){if(q=E.slice(A+2),!Ge(R[A])){b=!1;break}if(R[A+1]&&R[A+1]==="="||q==="-"||/[A-Za-z]/.test(R[A])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(q)||R[A+1]&&R[A+1].match(/\W/))break}return b}function Ss(E){return a["unknown-options-as-args"]&&kg(E)}function kg(E){return E=E.replace(/^-{3,}/,"--"),E.match(C)||jg(E)?!1:!zg(E,/^-+([^=]+?)=[\s\S]*$/,P,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function pt(E){return!oe(E,g.bools)&&!oe(E,g.counts)&&`${E}`in c?c[E]:$l(Un(E))}function $l(E){return{[_r.BOOLEAN]:!0,[_r.STRING]:"",[_r.NUMBER]:void 0,[_r.ARRAY]:[]}[E]}function Un(E){let b=_r.BOOLEAN;return oe(E,g.strings)?b=_r.STRING:oe(E,g.numbers)?b=_r.NUMBER:oe(E,g.bools)?b=_r.BOOLEAN:oe(E,g.arrays)&&(b=_r.ARRAY),b}function Jt(E){return E===void 0}function Fg(){Object.keys(g.counts).find(E=>oe(E,g.arrays)?(x=Error(S("Invalid configuration: %s, opts.count excludes opts.array.",E)),!0):oe(E,g.nargs)?(x=Error(S("Invalid configuration: %s, opts.count excludes opts.narg.",E)),!0):!1)}return{aliases:Object.assign({},g.aliases),argv:Object.assign(Ut,_e),configuration:a,defaulted:Object.assign({},v),error:x,newAliases:Object.assign({},p)}}};function Vbe(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(c){return t[s].indexOf(c)!==-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(a,c,l){return l.indexOf(a)===c});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function ET(e){return e!==void 0?e+1:1}function sG(e){return e==="__proto__"?"___proto___":e}var oG=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])<oG)throw Error(`yargs parser supports a minimum Node.js version of ${oG}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var Kbe=process?process.env:{},lG=new bT({cwd:process.cwd,env:()=>Kbe,format:Bbe.format,normalize:iG.normalize,resolve:iG.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return Gbe.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),Ml=function(t,r){return lG.parse(t.slice(),r).argv};Ml.detailed=function(e,t){return lG.parse(e.slice(),t)};Ml.camelCase=ql;Ml.decamelize=aG;Ml.looksLikeNumber=cG;dG.exports=Ml});var ZG=m((zl,Mo)=>{var Hbe=200,bG="__lodash_hash_undefined__",AG=9007199254740991,PT="[object Arguments]",Wbe="[object Array]",TG="[object Boolean]",CG="[object Date]",Jbe="[object Error]",DT="[object Function]",xG="[object GeneratorFunction]",bg="[object Map]",IG="[object Number]",OT="[object Object]",fG="[object Promise]",RG="[object RegExp]",Ag="[object Set]",NG="[object String]",PG="[object Symbol]",TT="[object WeakMap]",DG="[object ArrayBuffer]",Tg="[object DataView]",OG="[object Float32Array]",LG="[object Float64Array]",qG="[object Int8Array]",MG="[object Int16Array]",zG="[object Int32Array]",jG="[object Uint8Array]",kG="[object Uint8ClampedArray]",FG="[object Uint16Array]",UG="[object Uint32Array]",Ybe=/[\\^$.*+?()[\]{}|]/g,Qbe=/\w*$/,Xbe=/^\[object .+?Constructor\]$/,Zbe=/^(?:0|[1-9]\d*)$/,qe={};qe[PT]=qe[Wbe]=qe[DG]=qe[Tg]=qe[TG]=qe[CG]=qe[OG]=qe[LG]=qe[qG]=qe[MG]=qe[zG]=qe[bg]=qe[IG]=qe[OT]=qe[RG]=qe[Ag]=qe[NG]=qe[PG]=qe[jG]=qe[kG]=qe[FG]=qe[UG]=!0;qe[Jbe]=qe[DT]=qe[TT]=!1;var eAe=typeof global=="object"&&global&&global.Object===Object&&global,tAe=typeof self=="object"&&self&&self.Object===Object&&self,Ln=eAe||tAe||Function("return this")(),BG=typeof zl=="object"&&zl&&!zl.nodeType&&zl,mG=BG&&typeof Mo=="object"&&Mo&&!Mo.nodeType&&Mo,rAe=mG&&mG.exports===BG;function nAe(e,t){return e.set(t[0],t[1]),e}function iAe(e,t){return e.add(t),e}function sAe(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function oAe(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function GG(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 aAe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function cAe(e,t){return e==null?void 0:e[t]}function $G(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function pG(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function LT(e,t){return function(r){return e(t(r))}}function _G(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var lAe=Array.prototype,dAe=Function.prototype,Cg=Object.prototype,AT=Ln["__core-js_shared__"],hG=function(){var e=/[^.]+$/.exec(AT&&AT.keys&&AT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),VG=dAe.toString,bi=Cg.hasOwnProperty,xg=Cg.toString,uAe=RegExp("^"+VG.call(bi).replace(Ybe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yG=rAe?Ln.Buffer:void 0,gG=Ln.Symbol,vG=Ln.Uint8Array,fAe=LT(Object.getPrototypeOf,Object),mAe=Object.create,pAe=Cg.propertyIsEnumerable,_Ae=lAe.splice,SG=Object.getOwnPropertySymbols,hAe=yG?yG.isBuffer:void 0,yAe=LT(Object.keys,Object),CT=ko(Ln,"DataView"),jl=ko(Ln,"Map"),xT=ko(Ln,"Promise"),IT=ko(Ln,"Set"),RT=ko(Ln,"WeakMap"),kl=ko(Object,"create"),gAe=gs(CT),vAe=gs(jl),SAe=gs(xT),wAe=gs(IT),EAe=gs(RT),wG=gG?gG.prototype:void 0,EG=wG?wG.valueOf:void 0;function ys(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 bAe(){this.__data__=kl?kl(null):{}}function AAe(e){return this.has(e)&&delete this.__data__[e]}function TAe(e){var t=this.__data__;if(kl){var r=t[e];return r===bG?void 0:r}return bi.call(t,e)?t[e]:void 0}function CAe(e){var t=this.__data__;return kl?t[e]!==void 0:bi.call(t,e)}function xAe(e,t){var r=this.__data__;return r[e]=kl&&t===void 0?bG:t,this}ys.prototype.clear=bAe;ys.prototype.delete=AAe;ys.prototype.get=TAe;ys.prototype.has=CAe;ys.prototype.set=xAe;function qn(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 IAe(){this.__data__=[]}function RAe(e){var t=this.__data__,r=Ig(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():_Ae.call(t,r,1),!0}function NAe(e){var t=this.__data__,r=Ig(t,e);return r<0?void 0:t[r][1]}function PAe(e){return Ig(this.__data__,e)>-1}function DAe(e,t){var r=this.__data__,n=Ig(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}qn.prototype.clear=IAe;qn.prototype.delete=RAe;qn.prototype.get=NAe;qn.prototype.has=PAe;qn.prototype.set=DAe;function zo(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 OAe(){this.__data__={hash:new ys,map:new(jl||qn),string:new ys}}function LAe(e){return Rg(this,e).delete(e)}function qAe(e){return Rg(this,e).get(e)}function MAe(e){return Rg(this,e).has(e)}function zAe(e,t){return Rg(this,e).set(e,t),this}zo.prototype.clear=OAe;zo.prototype.delete=LAe;zo.prototype.get=qAe;zo.prototype.has=MAe;zo.prototype.set=zAe;function jo(e){this.__data__=new qn(e)}function jAe(){this.__data__=new qn}function kAe(e){return this.__data__.delete(e)}function FAe(e){return this.__data__.get(e)}function UAe(e){return this.__data__.has(e)}function BAe(e,t){var r=this.__data__;if(r instanceof qn){var n=r.__data__;if(!jl||n.length<Hbe-1)return n.push([e,t]),this;r=this.__data__=new zo(n)}return r.set(e,t),this}jo.prototype.clear=jAe;jo.prototype.delete=kAe;jo.prototype.get=FAe;jo.prototype.has=UAe;jo.prototype.set=BAe;function GAe(e,t){var r=MT(e)||mTe(e)?aAe(e.length,String):[],n=r.length,i=!!n;for(var s in e)(t||bi.call(e,s))&&!(i&&(s=="length"||lTe(s,n)))&&r.push(s);return r}function KG(e,t,r){var n=e[t];(!(bi.call(e,t)&&YG(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Ig(e,t){for(var r=e.length;r--;)if(YG(e[r][0],t))return r;return-1}function $Ae(e,t){return e&&HG(t,zT(t),e)}function NT(e,t,r,n,i,s,a){var c;if(n&&(c=s?n(e,i,s,a):n(e)),c!==void 0)return c;if(!Ng(e))return e;var l=MT(e);if(l){if(c=oTe(e),!t)return nTe(e,c)}else{var u=hs(e),f=u==DT||u==xG;if(_Te(e))return YAe(e,t);if(u==OT||u==PT||f&&!s){if($G(e))return s?e:{};if(c=aTe(f?{}:e),!t)return iTe(e,$Ae(c,e))}else{if(!qe[u])return s?e:{};c=cTe(e,u,NT,t)}}a||(a=new jo);var h=a.get(e);if(h)return h;if(a.set(e,c),!l)var p=r?sTe(e):zT(e);return sAe(p||e,function(v,S){p&&(S=v,v=e[S]),KG(c,S,NT(v,t,r,n,S,e,a))}),c}function VAe(e){return Ng(e)?mAe(e):{}}function KAe(e,t,r){var n=t(e);return MT(e)?n:oAe(n,r(e))}function HAe(e){return xg.call(e)}function WAe(e){if(!Ng(e)||uTe(e))return!1;var t=XG(e)||$G(e)?uAe:Xbe;return t.test(gs(e))}function JAe(e){if(!JG(e))return yAe(e);var t=[];for(var r in Object(e))bi.call(e,r)&&r!="constructor"&&t.push(r);return t}function YAe(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function qT(e){var t=new e.constructor(e.byteLength);return new vG(t).set(new vG(e)),t}function QAe(e,t){var r=t?qT(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function XAe(e,t,r){var n=t?r(pG(e),!0):pG(e);return GG(n,nAe,new e.constructor)}function ZAe(e){var t=new e.constructor(e.source,Qbe.exec(e));return t.lastIndex=e.lastIndex,t}function eTe(e,t,r){var n=t?r(_G(e),!0):_G(e);return GG(n,iAe,new e.constructor)}function tTe(e){return EG?Object(EG.call(e)):{}}function rTe(e,t){var r=t?qT(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function nTe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function HG(e,t,r,n){r||(r={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=n?n(r[a],e[a],a,r,e):void 0;KG(r,a,c===void 0?e[a]:c)}return r}function iTe(e,t){return HG(e,WG(e),t)}function sTe(e){return KAe(e,zT,WG)}function Rg(e,t){var r=e.__data__;return dTe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ko(e,t){var r=cAe(e,t);return WAe(r)?r:void 0}var WG=SG?LT(SG,Object):gTe,hs=HAe;(CT&&hs(new CT(new ArrayBuffer(1)))!=Tg||jl&&hs(new jl)!=bg||xT&&hs(xT.resolve())!=fG||IT&&hs(new IT)!=Ag||RT&&hs(new RT)!=TT)&&(hs=function(e){var t=xg.call(e),r=t==OT?e.constructor:void 0,n=r?gs(r):void 0;if(n)switch(n){case gAe:return Tg;case vAe:return bg;case SAe:return fG;case wAe:return Ag;case EAe:return TT}return t});function oTe(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&bi.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function aTe(e){return typeof e.constructor=="function"&&!JG(e)?VAe(fAe(e)):{}}function cTe(e,t,r,n){var i=e.constructor;switch(t){case DG:return qT(e);case TG:case CG:return new i(+e);case Tg:return QAe(e,n);case OG:case LG:case qG:case MG:case zG:case jG:case kG:case FG:case UG:return rTe(e,n);case bg:return XAe(e,n,r);case IG:case NG:return new i(e);case RG:return ZAe(e);case Ag:return eTe(e,n,r);case PG:return tTe(e)}}function lTe(e,t){return t=t??AG,!!t&&(typeof e=="number"||Zbe.test(e))&&e>-1&&e%1==0&&e<t}function dTe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function uTe(e){return!!hG&&hG in e}function JG(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Cg;return e===r}function gs(e){if(e!=null){try{return VG.call(e)}catch{}try{return e+""}catch{}}return""}function fTe(e){return NT(e,!0,!0)}function YG(e,t){return e===t||e!==e&&t!==t}function mTe(e){return pTe(e)&&bi.call(e,"callee")&&(!pAe.call(e,"callee")||xg.call(e)==PT)}var MT=Array.isArray;function QG(e){return e!=null&&hTe(e.length)&&!XG(e)}function pTe(e){return yTe(e)&&QG(e)}var _Te=hAe||vTe;function XG(e){var t=Ng(e)?xg.call(e):"";return t==DT||t==xG}function hTe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=AG}function Ng(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function yTe(e){return!!e&&typeof e=="object"}function zT(e){return QG(e)?GAe(e):JAe(e)}function gTe(){return[]}function vTe(){return!1}Mo.exports=fTe});var l$=m((Nqe,c$)=>{"use strict";var STe=require("fs"),wTe=uG(),Fo=ZG(),ETe=["__proto__.","this.constructor.prototype."],bTe="strict",e$="warn";function Ai(e,t){if(!e)throw new Error(t)}function t$(e){return Number.isInteger(e)&&e>=0&&e<=65535}function FT(e){return String(e).includes("\\\\.\\pipe\\")}var Fl={"*":function(){},int:function(e){Ai(Number.isInteger(e),"must be an integer")},nat:function(e){Ai(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){Ai(t$(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){Ai(FT(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){FT(e)||Ai(t$(e),"must be a windows named pipe or a number within range 0 - 65535")}};Fl.integer=Fl.int;var UT=new Map,BT={"*":JSON.parse};function r$(e,t){let r=Object.keys(e),n,i=[];for(;r.length;){n=r.shift();let a=Uo(e,n);if(typeof a=="object"&&!Array.isArray(a)&&a!=null){if(t)if("_cvtProperties"in a)a=a._cvtProperties,n=n+"._cvtProperties";else{i.push([n,a]);continue}let c=Object.keys(a);if(c.length>0){c.forEach(function(l){r.push(n+"."+l)});continue}}i.push([n,a])}let s={};return i.forEach(function(a){let c=a[0];t&&(c=c.replace(/\._cvtProperties/g,""));let l=a[1];s[c]=l}),s}function ATe(e,t,r){let n={undeclared:[],invalid_type:[],missing:[]},i=r$(e),s=r$(t._cvtProperties,!0);return Object.keys(s).forEach(function(a){let c=s[a],l=i[a];if(!(a in i))try{if(typeof c.default=="object"&&!Array.isArray(c.default))l=Uo(e,a);else throw new Error("missing")}catch{let f=new Error("configuration param '"+a+"' missing from config, did you override its parent?");n.missing.push(f);return}if(delete i[a],(c.format==="object"||typeof c.default=="object")&&Object.keys(i).filter(function(u){return u.lastIndexOf(a+".",0)===0}).forEach(function(u){delete i[u]}),!(typeof c.default>"u"&&l===c.default))try{c._format(l)}catch(u){n.invalid_type.push(u)}}),r&&Object.keys(i).forEach(function(a){let c=new Error("configuration param '"+a+"' not declared in the schema");n.undeclared.push(c)}),n}function TTe(e,t){Ai(e.indexOf(t)!==-1,"must be one of the possible values: "+JSON.stringify(e))}var $T={Object,Array,String,Number,Boolean,RegExp},s$=Object.keys($T),CTe=s$.map(function(e){return $T[e]});function o$(e,t,r,n,i,s,a){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(f){o$(f,t[f],r[e]._cvtProperties,n+"."+f,i,s,a)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let c=Fo(t);if(r[e]=c,c.env&&(i[c.env]||(i[c.env]=[]),i[c.env].push(n)),c.arg){if(s[c.arg])throw new Error("'"+n+"' reuses a command-line argument: "+c.arg);s[c.arg]=n}c.sensitive===!0&&a.add(n);let l=c.format,u;if(CTe.indexOf(l)>=0||s$.indexOf(l)>=0){let f=typeof l=="string"?$T[l]:l;u=function(h){Ai(Object.prototype.toString.call(h)==Object.prototype.toString.call(new f),"must be of type "+f.name)},c.format=f.name.toLowerCase()}else if(typeof l=="string"){if(!Fl[l])throw new Error("'"+n+"' uses an unknown format type: "+l);u=Fl[l]}else if(Array.isArray(l))u=TTe.bind(null,l);else if(typeof l=="function")u=l;else if(l&&typeof l!="function")throw new Error("'"+n+"': `format` must be a function or a known format type.");if(!u&&!l){let f=Object.prototype.toString.call(c.default);u=function(h){Ai(Object.prototype.toString.call(h)==f," should be of type "+f.replace(/\[.* |]/g,""))}}c._format=function(f){if(!(this.nullable&&f===null))try{u(f,this)}catch(h){throw h.fullName=n,h.value=f,h}}}function jT(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 kT(e){let t=wTe(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 a$(e,t,r){Object.keys(e._cvtProperties).forEach(function(n){let i=e._cvtProperties[n];if(i._cvtProperties){let s=t[n]||{};a$(i,s,r),t[n]=s}else t[n]=VT(n,Fo(i.default),e,r)})}function n$(e){return typeof e=="object"&&e!==null}function GT(e,t,r){Object.keys(e).forEach(function(n){Array.isArray(e[n])||!n$(e[n])||!r||r.format==="object"?t[n]=VT(n,e[n],r):(n$(t[n])||(t[n]={}),GT(e[n],t[n],r._cvtProperties[n]))})}function xTe(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 ITe(e,t){let r=xTe(e,t);return r==null?null:typeof r.format=="string"?r.format:r.default!=null?typeof r.default:null}function VT(e,t,r,n){let i=ITe(r,e);if(typeof t=="string"){if(UT.has(i))return UT.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=FT(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 i$(e){let t=e.split("."),r=t.length>1?t.pop():"";return(BT[r]||BT["*"])(STe.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 Ul=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 Fo(this._instance)},toString:function(){let i=Fo(this._instance);return this._sensitive.forEach(function(s){let a=s.split("."),c=a.pop(),l=a.join("."),u=Uo(i,l);u[c]="[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 Fo(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=Uo(this._schema._cvtProperties,i);return Fo(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 f of ETe)if(i.startsWith(f)||i.includes(`.${f}`))return this;s=VT(i,s,this._schema,this);let a=i.split("."),c=a.pop(),l=a.join("."),u=Uo(this._instance,l,!0);return u[c]=s,this},load:function(i){return GT(i,this._instance,this._schema),jT(n),kT(n),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(a){let c=i$(a);c&>(c,s._instance,s._schema)}),jT(n),kT(n),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||e$,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,a=ATe(this._instance,this._schema,i.allowed);if(a.invalid_type.length+a.undeclared.length+a.missing.length){let c=this._sensitive,l=function(S){let g="";for(let C=0;C<S.length;C++){g.length&&(g+=`
|
|
37
|
-
`);let
|
|
38
|
-
`);if(v.length)throw new Error(v)}return this}};return typeof t=="string"?n._def=i$(t):n._def=t,n._schema={_cvtProperties:{}},n._env={},n._argv={},n._sensitive=new Set,Object.keys(n._def).forEach(function(i){o$(i,n._def[i],n._schema._cvtProperties,i,n._env,n._argv,n._sensitive)}),n._instance={},a$(n._schema,n._instance,n),jT(n),kT(n),n};Ul.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.");Fl[e]=t,r&&UT.set(e,r)};Ul.addFormats=function(e){Object.keys(e).forEach(function(t){Ul.addFormat(t,e[t].validate,e[t].coerce)})};Ul.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");BT[n]=t.parse})})};c$.exports=Ul});var d$=m(Bo=>{"use strict";var Pg=Bo&&Bo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bo,"__esModule",{value:!0});Bo.TSConvict=void 0;var an=Pg(wT()),KT=Pg(l$()),RTe=Pg(require("fs")),NTe=Pg(require("path")),HT=class{constructor(t){if(this.opts={},!an.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let r=an.default.getConvictMetaForClass(t);r!==null&&(typeof r.parser<"u"&&KT.default.addParser(r.parser),typeof r.formats<"u"&&KT.default.addFormats(r.formats),this.opts=r),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=KT.default(this.schema)}load(t=null){let r=null;if(typeof this.opts.file<"u"&&RTe.default.existsSync(NTe.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 an.default.getClassProperties(t)){let i=an.default.getConvictMetaForProperty(t,n);if(an.default.isConstructor(i)&&an.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 an.default.getClassProperties(t)){let i=an.default.getConvictMetaForProperty(t,n);an.default.isConstructor(i)&&an.default.isConfigClass(i)?this.applyDataToModel(t[n],r[n]||{}):n in r&&(t[n]=r[n])}return t}};Bo.TSConvict=HT});var Dg=m(Mn=>{"use strict";var PTe=Mn&&Mn.__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]}),WT=Mn&&Mn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&PTe(t,e,r)};Object.defineProperty(Mn,"__esModule",{value:!0});WT(rG(),Mn);WT(nG(),Mn);WT(d$(),Mn)});var zTe={};S$(zTe,{handler:()=>LTe,overrideDBManager:()=>DTe});module.exports=w$(zTe);var Fqe=yr(dv());var qC;(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,a){return function(c,l){typeof s[c]!="function"&&Object.defineProperty(s,c,{configurable:!0,writable:!0,value:l}),a&&a(c,l)}}})(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",a=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!a&&!c,u={create:a?function(){return Ze(Object.create(null))}:c?function(){return Ze({__proto__:null})}:function(){return Ze({})},has:l?function(T,N){return r.call(T,N)}:function(T,N){return N in T},get:l?function(T,N){return r.call(T,N)?T[N]:void 0}:function(T,N){return T[N]}},f=Object.getPrototypeOf(Function),h=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",p=!h&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:B(),v=!h&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:X(),S=!h&&typeof WeakMap=="function"?WeakMap:Ve(),g=new S;function C(T,N,L,j){if(Me(L)){if(!$l(T))throw new TypeError;if(!Jt(N))throw new TypeError;return he(T,N)}else{if(!$l(T))throw new TypeError;if(!Ge(N))throw new TypeError;if(!Ge(j)&&!Me(j)&&!Fn(j))throw new TypeError;return Fn(j)&&(j=void 0),L=pt(L),pe(T,N,L,j)}}t("decorate",C);function P(T,N){function L(j,J){if(!Ge(j))throw new TypeError;if(!Me(J)&&!Fg(J))throw new TypeError;we(T,N,j,J)}return L}t("metadata",P);function x(T,N,L,j){if(!Ge(L))throw new TypeError;return Me(j)||(j=pt(j)),we(T,N,L,j)}t("defineMetadata",x);function k(T,N,L){if(!Ge(N))throw new TypeError;return Me(L)||(L=pt(L)),Fe(T,N,L)}t("hasMetadata",k);function _e(T,N,L){if(!Ge(N))throw new TypeError;return Me(L)||(L=pt(L)),Le(T,N,L)}t("hasOwnMetadata",_e);function Ut(T,N,L){if(!Ge(N))throw new TypeError;return Me(L)||(L=pt(L)),Re(T,N,L)}t("getMetadata",Ut);function jn(T,N,L){if(!Ge(N))throw new TypeError;return Me(L)||(L=pt(L)),Ne(T,N,L)}t("getOwnMetadata",jn);function kn(T,N){if(!Ge(T))throw new TypeError;return Me(N)||(N=pt(N)),Ue(T,N)}t("getMetadataKeys",kn);function hr(T,N){if(!Ge(T))throw new TypeError;return Me(N)||(N=pt(N)),Ae(T,N)}t("getOwnMetadataKeys",hr);function F(T,N,L){if(!Ge(N))throw new TypeError;Me(L)||(L=pt(L));var j=Ie(N,L,!1);if(Me(j)||!j.delete(T))return!1;if(j.size>0)return!0;var J=g.get(N);return J.delete(L),J.size>0||g.delete(N),!0}t("deleteMetadata",F);function he(T,N){for(var L=T.length-1;L>=0;--L){var j=T[L],J=j(N);if(!Me(J)&&!Fn(J)){if(!Jt(J))throw new TypeError;N=J}}return N}function pe(T,N,L,j){for(var J=T.length-1;J>=0;--J){var ct=T[J],ce=ct(N,L,j);if(!Me(ce)&&!Fn(ce)){if(!Ge(ce))throw new TypeError;j=ce}}return j}function Ie(T,N,L){var j=g.get(T);if(Me(j)){if(!L)return;j=new p,g.set(T,j)}var J=j.get(N);if(Me(J)){if(!L)return;J=new p,j.set(N,J)}return J}function Fe(T,N,L){var j=Le(T,N,L);if(j)return!0;var J=U(N);return Fn(J)?!1:Fe(T,J,L)}function Le(T,N,L){var j=Ie(N,L,!1);return Me(j)?!1:Ss(j.has(T))}function Re(T,N,L){var j=Le(T,N,L);if(j)return Ne(T,N,L);var J=U(N);if(!Fn(J))return Re(T,J,L)}function Ne(T,N,L){var j=Ie(N,L,!1);if(!Me(j))return j.get(T)}function we(T,N,L,j){var J=Ie(L,j,!0);J.set(T,N)}function Ue(T,N){var L=Ae(T,N),j=U(T);if(j===null)return L;var J=Ue(j,N);if(J.length<=0)return L;if(L.length<=0)return J;for(var ct=new v,ce=[],ue=0,ee=L;ue<ee.length;ue++){var ve=ee[ue],Se=ct.has(ve);Se||(ct.add(ve),ce.push(ve))}for(var Bn=0,YT=J;Bn<YT.length;Bn++){var ve=YT[Bn],Se=ct.has(ve);Se||(ct.add(ve),ce.push(ve))}return ce}function Ae(T,N){var L=[],j=Ie(T,N,!1);if(Me(j))return L;for(var J=j.keys(),ct=b(J),ce=0;;){var ue=R(ct);if(!ue)return L.length=ce,L;var ee=q(ue);try{L[ce]=ee}catch(ve){try{A(ct)}finally{throw ve}}ce++}}function cn(T){if(T===null)return 1;switch(typeof T){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return T===null?1:6;default:return 6}}function Me(T){return T===void 0}function Fn(T){return T===null}function oe(T){return typeof T=="symbol"}function Ge(T){return typeof T=="object"?T!==null:typeof T=="function"}function zg(T,N){switch(cn(T)){case 0:return T;case 1:return T;case 2:return T;case 3:return T;case 4:return T;case 5:return T}var L=N===3?"string":N===5?"number":"default",j=E(T,i);if(j!==void 0){var J=j.call(T,L);if(Ge(J))throw new TypeError;return J}return jg(T,L==="default"?"number":L)}function jg(T,N){if(N==="string"){var L=T.toString;if(Un(L)){var j=L.call(T);if(!Ge(j))return j}var J=T.valueOf;if(Un(J)){var j=J.call(T);if(!Ge(j))return j}}else{var J=T.valueOf;if(Un(J)){var j=J.call(T);if(!Ge(j))return j}var ct=T.toString;if(Un(ct)){var j=ct.call(T);if(!Ge(j))return j}}throw new TypeError}function Ss(T){return!!T}function kg(T){return""+T}function pt(T){var N=zg(T,3);return oe(N)?N:kg(N)}function $l(T){return Array.isArray?Array.isArray(T):T instanceof Object?T instanceof Array:Object.prototype.toString.call(T)==="[object Array]"}function Un(T){return typeof T=="function"}function Jt(T){return typeof T=="function"}function Fg(T){switch(cn(T)){case 3:return!0;case 4:return!0;default:return!1}}function E(T,N){var L=T[N];if(L!=null){if(!Un(L))throw new TypeError;return L}}function b(T){var N=E(T,s);if(!Un(N))throw new TypeError;var L=N.call(T);if(!Ge(L))throw new TypeError;return L}function q(T){return T.value}function R(T){var N=T.next();return N.done?!1:N}function A(T){var N=T.return;N&&N.call(T)}function U(T){var N=Object.getPrototypeOf(T);if(typeof T!="function"||T===f||N!==f)return N;var L=T.prototype,j=L&&Object.getPrototypeOf(L);if(j==null||j===Object.prototype)return N;var J=j.constructor;return typeof J!="function"||J===T?N:J}function B(){var T={},N=[],L=function(){function ce(ue,ee,ve){this._index=0,this._keys=ue,this._values=ee,this._selector=ve}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 ee=this._selector(this._keys[ue],this._values[ue]);return ue+1>=this._keys.length?(this._index=-1,this._keys=N,this._values=N):this._index++,{value:ee,done:!1}}return{value:void 0,done:!0}},ce.prototype.throw=function(ue){throw this._index>=0&&(this._index=-1,this._keys=N,this._values=N),ue},ce.prototype.return=function(ue){return this._index>=0&&(this._index=-1,this._keys=N,this._values=N),{value:ue,done:!0}},ce}();return function(){function ce(){this._keys=[],this._values=[],this._cacheKey=T,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 ee=this._find(ue,!1);return ee>=0?this._values[ee]:void 0},ce.prototype.set=function(ue,ee){var ve=this._find(ue,!0);return this._values[ve]=ee,this},ce.prototype.delete=function(ue){var ee=this._find(ue,!1);if(ee>=0){for(var ve=this._keys.length,Se=ee+1;Se<ve;Se++)this._keys[Se-1]=this._keys[Se],this._values[Se-1]=this._values[Se];return this._keys.length--,this._values.length--,ue===this._cacheKey&&(this._cacheKey=T,this._cacheIndex=-2),!0}return!1},ce.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=T,this._cacheIndex=-2},ce.prototype.keys=function(){return new L(this._keys,this._values,j)},ce.prototype.values=function(){return new L(this._keys,this._values,J)},ce.prototype.entries=function(){return new L(this._keys,this._values,ct)},ce.prototype["@@iterator"]=function(){return this.entries()},ce.prototype[s]=function(){return this.entries()},ce.prototype._find=function(ue,ee){return this._cacheKey!==ue&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=ue)),this._cacheIndex<0&&ee&&(this._cacheIndex=this._keys.length,this._keys.push(ue),this._values.push(void 0)),this._cacheIndex},ce}();function j(ce,ue){return ce}function J(ce,ue){return ue}function ct(ce,ue){return[ce,ue]}}function X(){return function(){function T(){this._map=new p}return Object.defineProperty(T.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),T.prototype.has=function(N){return this._map.has(N)},T.prototype.add=function(N){return this._map.set(N,N),this},T.prototype.delete=function(N){return this._map.delete(N)},T.prototype.clear=function(){this._map.clear()},T.prototype.keys=function(){return this._map.keys()},T.prototype.values=function(){return this._map.values()},T.prototype.entries=function(){return this._map.entries()},T.prototype["@@iterator"]=function(){return this.keys()},T.prototype[s]=function(){return this.keys()},T}()}function Ve(){var T=16,N=u.create(),L=j();return function(){function ee(){this._key=j()}return ee.prototype.has=function(ve){var Se=J(ve,!1);return Se!==void 0?u.has(Se,this._key):!1},ee.prototype.get=function(ve){var Se=J(ve,!1);return Se!==void 0?u.get(Se,this._key):void 0},ee.prototype.set=function(ve,Se){var Bn=J(ve,!0);return Bn[this._key]=Se,this},ee.prototype.delete=function(ve){var Se=J(ve,!1);return Se!==void 0?delete Se[this._key]:!1},ee.prototype.clear=function(){this._key=j()},ee}();function j(){var ee;do ee="@@WeakMap@@"+ue();while(u.has(N,ee));return N[ee]=!0,ee}function J(ee,ve){if(!r.call(ee,L)){if(!ve)return;Object.defineProperty(ee,L,{value:u.create()})}return ee[L]}function ct(ee,ve){for(var Se=0;Se<ve;++Se)ee[Se]=Math.random()*255|0;return ee}function ce(ee){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(ee)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(ee)):ct(new Uint8Array(ee),ee):ct(new Array(ee),ee)}function ue(){var ee=ce(T);ee[6]=ee[6]&79|64,ee[8]=ee[8]&191|128;for(var ve="",Se=0;Se<T;++Se){var Bn=ee[Se];(Se===4||Se===6||Se===8)&&(ve+="-"),Bn<16&&(ve+="0"),ve+=Bn.toString(16).toLowerCase()}return ve}}function Ze(T){return T.__=void 0,delete T.__,T}})})(qC||(qC={}));var p$=yr(bt()),vs=yr(bA()),Mg=yr(rB());var qg=yr(mB());function RB(e){return typeof e>"u"||e===null}function h0e(e){return typeof e=="object"&&e!==null}function y0e(e){return Array.isArray(e)?e:RB(e)?[]:[e]}function g0e(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 v0e(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function S0e(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var w0e=RB,E0e=h0e,b0e=y0e,A0e=v0e,T0e=S0e,C0e=g0e,et={isNothing:w0e,isObject:E0e,toArray:b0e,repeat:A0e,isNegativeZero:T0e,extend:C0e};function NB(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+=`
|
|
33
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),ec.checkPaths(e,t,"copy",(i,s)=>{if(i)return r(i);let{srcStat:o,destStat:a}=s;ec.checkParentPaths(e,o,t,"copy",c=>c?r(c):n.filter?GL(FL,a,e,t,n,r):FL(a,e,t,n,r))})}function FL(e,t,n,r,i){let s=Za.dirname(n);ble(s,(o,a)=>{if(o)return i(o);if(a)return A0(e,t,n,r,i);wle(s,c=>c?i(c):A0(e,t,n,r,i))})}function GL(e,t,n,r,i,s){Promise.resolve(i.filter(n,r)).then(o=>o?e(t,n,r,i,s):s(),o=>s(o))}function A0(e,t,n,r,i){return r.filter?GL(UL,e,t,n,r,i):UL(e,t,n,r,i)}function UL(e,t,n,r,i){(r.dereference?Rt.stat:Rt.lstat)(t,(o,a)=>{if(o)return i(o);if(a.isDirectory())return Nle(a,e,t,n,r,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return Tle(a,e,t,n,r,i);if(a.isSymbolicLink())return Lle(e,t,n,r,i)})}function Tle(e,t,n,r,i,s){return t?Cle(e,n,r,i,s):$L(e,n,r,i,s)}function Cle(e,t,n,r,i){if(r.overwrite)Rt.unlink(n,s=>s?i(s):$L(e,t,n,r,i));else return r.errorOnExist?i(new Error(`'${n}' already exists`)):i()}function $L(e,t,n,r,i){Rt.copyFile(t,n,s=>s?i(s):r.preserveTimestamps?xle(e.mode,t,n,i):Ah(n,e.mode,i))}function xle(e,t,n,r){return Ile(e)?Rle(n,e,i=>i?r(i):BL(e,t,n,r)):BL(e,t,n,r)}function Ile(e){return(e&128)===0}function Rle(e,t,n){return Ah(e,t|128,n)}function BL(e,t,n,r){Dle(t,n,i=>i?r(i):Ah(n,e,r))}function Ah(e,t,n){return Rt.chmod(e,t,n)}function Dle(e,t,n){Rt.stat(e,(r,i)=>r?n(r):Ele(t,i.atime,i.mtime,n))}function Nle(e,t,n,r,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):VL(n,r,i,s):Ple(e.mode,n,r,i,s)}function Ple(e,t,n,r,i){Rt.mkdir(n,s=>{if(s)return i(s);VL(t,n,r,o=>o?i(o):Ah(n,e,i))})}function VL(e,t,n,r){Rt.readdir(e,(i,s)=>i?r(i):KL(s,e,t,n,r))}function KL(e,t,n,r,i){let s=e.pop();return s?Ole(e,s,t,n,r,i):i()}function Ole(e,t,n,r,i,s){let o=Za.join(n,t),a=Za.join(r,t);ec.checkPaths(o,a,"copy",(c,u)=>{if(c)return s(c);let{destStat:d}=u;A0(d,o,a,i,h=>h?s(h):KL(e,n,r,i,s))})}function Lle(e,t,n,r,i){Rt.readlink(t,(s,o)=>{if(s)return i(s);if(r.dereference&&(o=Za.resolve(process.cwd(),o)),e)Rt.readlink(n,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?Rt.symlink(o,n,i):i(a):(r.dereference&&(c=Za.resolve(process.cwd(),c)),ec.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&ec.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):qle(o,n,i)));else return Rt.symlink(o,n,i)})}function qle(e,t,n){Rt.unlink(t,r=>r?n(r):Rt.symlink(e,t,n))}WL.exports=Ale});var T0=f((PEe,YL)=>{"use strict";var Mle=xt().fromCallback;YL.exports={copy:Mle(HL())}});var iq=f((OEe,rq)=>{"use strict";var JL=ft(),eq=require("path"),Ie=require("assert"),tc=process.platform==="win32";function tq(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{e[n]=e[n]||JL[n],n=n+"Sync",e[n]=e[n]||JL[n]}),e.maxBusyTries=e.maxBusyTries||3}function C0(e,t,n){let r=0;typeof t=="function"&&(n=t,t={}),Ie(e,"rimraf: missing path"),Ie.strictEqual(typeof e,"string","rimraf: path should be a string"),Ie.strictEqual(typeof n,"function","rimraf: callback function required"),Ie(t,"rimraf: invalid options argument provided"),Ie.strictEqual(typeof t,"object","rimraf: options should be object"),tq(t),QL(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&r<t.maxBusyTries){r++;let o=r*100;return setTimeout(()=>QL(e,t,i),o)}s.code==="ENOENT"&&(s=null)}n(s)})}function QL(e,t,n){Ie(e),Ie(t),Ie(typeof n=="function"),t.lstat(e,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&tc)return XL(e,t,r,n);if(i&&i.isDirectory())return Th(e,t,r,n);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return n(null);if(s.code==="EPERM")return tc?XL(e,t,s,n):Th(e,t,s,n);if(s.code==="EISDIR")return Th(e,t,s,n)}return n(s)})})}function XL(e,t,n,r){Ie(e),Ie(t),Ie(typeof r=="function"),t.chmod(e,438,i=>{i?r(i.code==="ENOENT"?null:n):t.stat(e,(s,o)=>{s?r(s.code==="ENOENT"?null:n):o.isDirectory()?Th(e,t,n,r):t.unlink(e,r)})})}function ZL(e,t,n){let r;Ie(e),Ie(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw n}try{r=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw n}r.isDirectory()?Ch(e,t,n):t.unlinkSync(e)}function Th(e,t,n,r){Ie(e),Ie(t),Ie(typeof r=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?zle(e,t,r):i&&i.code==="ENOTDIR"?r(n):r(i)})}function zle(e,t,n){Ie(e),Ie(t),Ie(typeof n=="function"),t.readdir(e,(r,i)=>{if(r)return n(r);let s=i.length,o;if(s===0)return t.rmdir(e,n);i.forEach(a=>{C0(eq.join(e,a),t,c=>{if(!o){if(c)return n(o=c);--s===0&&t.rmdir(e,n)}})})})}function nq(e,t){let n;t=t||{},tq(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{n=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;r.code==="EPERM"&&tc&&ZL(e,t,r)}try{n&&n.isDirectory()?Ch(e,t,null):t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return tc?ZL(e,t,r):Ch(e,t,r);if(r.code!=="EISDIR")throw r;Ch(e,t,r)}}function Ch(e,t,n){Ie(e),Ie(t);try{t.rmdirSync(e)}catch(r){if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")jle(e,t);else if(r.code!=="ENOENT")throw r}}function jle(e,t){if(Ie(e),Ie(t),t.readdirSync(e).forEach(n=>nq(eq.join(e,n),t)),tc){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}rq.exports=C0;C0.sync=nq});var nc=f((LEe,oq)=>{"use strict";var kle=xt().fromCallback,sq=iq();oq.exports={remove:kle(sq),removeSync:sq.sync}});var pq=f((qEe,mq)=>{"use strict";var Fle=xt().fromCallback,lq=ft(),uq=require("path"),dq=an(),fq=nc(),aq=Fle(function(t,n){n=n||function(){},lq.readdir(t,(r,i)=>{if(r)return dq.mkdirs(t,n);i=i.map(o=>uq.join(t,o)),s();function s(){let o=i.pop();if(!o)return n();fq.remove(o,a=>{if(a)return n(a);s()})}})});function cq(e){let t;try{t=lq.readdirSync(e)}catch{return dq.mkdirsSync(e)}t.forEach(n=>{n=uq.join(e,n),fq.removeSync(n)})}mq.exports={emptyDirSync:cq,emptydirSync:cq,emptyDir:aq,emptydir:aq}});var gq=f((MEe,yq)=>{"use strict";var Ule=xt().fromCallback,hq=require("path"),Vr=ft(),_q=an();function Ble(e,t){function n(){Vr.writeFile(e,"",r=>{if(r)return t(r);t()})}Vr.stat(e,(r,i)=>{if(!r&&i.isFile())return t();let s=hq.dirname(e);Vr.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?_q.mkdirs(s,c=>{if(c)return t(c);n()}):t(o);a.isDirectory()?n():Vr.readdir(s,c=>{if(c)return t(c)})})})}function Gle(e){let t;try{t=Vr.statSync(e)}catch{}if(t&&t.isFile())return;let n=hq.dirname(e);try{Vr.statSync(n).isDirectory()||Vr.readdirSync(n)}catch(r){if(r&&r.code==="ENOENT")_q.mkdirsSync(n);else throw r}Vr.writeFileSync(e,"")}yq.exports={createFile:Ule(Ble),createFileSync:Gle}});var Eq=f((zEe,bq)=>{"use strict";var $le=xt().fromCallback,Sq=require("path"),Ri=ft(),wq=an(),vq=$r().pathExists;function Vle(e,t,n){function r(i,s){Ri.link(i,s,o=>{if(o)return n(o);n(null)})}vq(t,(i,s)=>{if(i)return n(i);if(s)return n(null);Ri.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);let a=Sq.dirname(t);vq(a,(c,u)=>{if(c)return n(c);if(u)return r(e,t);wq.mkdirs(a,d=>{if(d)return n(d);r(e,t)})})})})}function Kle(e,t){if(Ri.existsSync(t))return;try{Ri.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let r=Sq.dirname(t);return Ri.existsSync(r)||wq.mkdirsSync(r),Ri.linkSync(e,t)}bq.exports={createLink:$le(Vle),createLinkSync:Kle}});var Tq=f((jEe,Aq)=>{"use strict";var Kr=require("path"),rc=ft(),Wle=$r().pathExists;function Hle(e,t,n){if(Kr.isAbsolute(e))return rc.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:e}));{let r=Kr.dirname(t),i=Kr.join(r,e);return Wle(i,(s,o)=>s?n(s):o?n(null,{toCwd:i,toDst:e}):rc.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),n(a)):n(null,{toCwd:e,toDst:Kr.relative(r,e)})))}}function Yle(e,t){let n;if(Kr.isAbsolute(e)){if(n=rc.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let r=Kr.dirname(t),i=Kr.join(r,e);if(n=rc.existsSync(i),n)return{toCwd:i,toDst:e};if(n=rc.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Kr.relative(r,e)}}}Aq.exports={symlinkPaths:Hle,symlinkPathsSync:Yle}});var Iq=f((kEe,xq)=>{"use strict";var Cq=ft();function Jle(e,t,n){if(n=typeof t=="function"?t:n,t=typeof t=="function"?!1:t,t)return n(null,t);Cq.lstat(e,(r,i)=>{if(r)return n(null,"file");t=i&&i.isDirectory()?"dir":"file",n(null,t)})}function Qle(e,t){let n;if(t)return t;try{n=Cq.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}xq.exports={symlinkType:Jle,symlinkTypeSync:Qle}});var qq=f((FEe,Lq)=>{"use strict";var Xle=xt().fromCallback,Dq=require("path"),zs=ft(),Nq=an(),Zle=Nq.mkdirs,eue=Nq.mkdirsSync,Pq=Tq(),tue=Pq.symlinkPaths,nue=Pq.symlinkPathsSync,Oq=Iq(),rue=Oq.symlinkType,iue=Oq.symlinkTypeSync,Rq=$r().pathExists;function sue(e,t,n,r){r=typeof n=="function"?n:r,n=typeof n=="function"?!1:n,Rq(t,(i,s)=>{if(i)return r(i);if(s)return r(null);tue(e,t,(o,a)=>{if(o)return r(o);e=a.toDst,rue(a.toCwd,n,(c,u)=>{if(c)return r(c);let d=Dq.dirname(t);Rq(d,(h,m)=>{if(h)return r(h);if(m)return zs.symlink(e,t,u,r);Zle(d,y=>{if(y)return r(y);zs.symlink(e,t,u,r)})})})})})}function oue(e,t,n){if(zs.existsSync(t))return;let i=nue(e,t);e=i.toDst,n=iue(i.toCwd,n);let s=Dq.dirname(t);return zs.existsSync(s)||eue(s),zs.symlinkSync(e,t,n)}Lq.exports={createSymlink:Xle(sue),createSymlinkSync:oue}});var zq=f((UEe,Mq)=>{"use strict";var xh=gq(),Ih=Eq(),Rh=qq();Mq.exports={createFile:xh.createFile,createFileSync:xh.createFileSync,ensureFile:xh.createFile,ensureFileSync:xh.createFileSync,createLink:Ih.createLink,createLinkSync:Ih.createLinkSync,ensureLink:Ih.createLink,ensureLinkSync:Ih.createLinkSync,createSymlink:Rh.createSymlink,createSymlinkSync:Rh.createSymlinkSync,ensureSymlink:Rh.createSymlink,ensureSymlinkSync:Rh.createSymlinkSync}});var Dh=f((BEe,jq)=>{function aue(e,{EOL:t=`
|
|
34
|
+
`,finalEOL:n=!0,replacer:r=null,spaces:i}={}){let s=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+s}function cue(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}jq.exports={stringify:aue,stripBom:cue}});var Bq=f((GEe,Uq)=>{var js;try{js=ft()}catch{js=require("fs")}var Nh=xt(),{stringify:kq,stripBom:Fq}=Dh();async function lue(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||js,r="throws"in t?t.throws:!0,i=await Nh.fromCallback(n.readFile)(e,t);i=Fq(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(r)throw o.message=`${e}: ${o.message}`,o;return null}return s}var uue=Nh.fromPromise(lue);function due(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||js,r="throws"in t?t.throws:!0;try{let i=n.readFileSync(e,t);return i=Fq(i),JSON.parse(i,t.reviver)}catch(i){if(r)throw i.message=`${e}: ${i.message}`,i;return null}}async function fue(e,t,n={}){let r=n.fs||js,i=kq(t,n);await Nh.fromCallback(r.writeFile)(e,i,n)}var mue=Nh.fromPromise(fue);function pue(e,t,n={}){let r=n.fs||js,i=kq(t,n);return r.writeFileSync(e,i,n)}var hue={readFile:uue,readFileSync:due,writeFile:mue,writeFileSync:pue};Uq.exports=hue});var $q=f(($Ee,Gq)=>{"use strict";var Ph=Bq();Gq.exports={readJson:Ph.readFile,readJsonSync:Ph.readFileSync,writeJson:Ph.writeFile,writeJsonSync:Ph.writeFileSync}});var Oh=f((VEe,Wq)=>{"use strict";var _ue=xt().fromCallback,ic=ft(),Vq=require("path"),Kq=an(),yue=$r().pathExists;function gue(e,t,n,r){typeof n=="function"&&(r=n,n="utf8");let i=Vq.dirname(e);yue(i,(s,o)=>{if(s)return r(s);if(o)return ic.writeFile(e,t,n,r);Kq.mkdirs(i,a=>{if(a)return r(a);ic.writeFile(e,t,n,r)})})}function vue(e,...t){let n=Vq.dirname(e);if(ic.existsSync(n))return ic.writeFileSync(e,...t);Kq.mkdirsSync(n),ic.writeFileSync(e,...t)}Wq.exports={outputFile:_ue(gue),outputFileSync:vue}});var Yq=f((KEe,Hq)=>{"use strict";var{stringify:Sue}=Dh(),{outputFile:wue}=Oh();async function bue(e,t,n={}){let r=Sue(t,n);await wue(e,r,n)}Hq.exports=bue});var Qq=f((WEe,Jq)=>{"use strict";var{stringify:Eue}=Dh(),{outputFileSync:Aue}=Oh();function Tue(e,t,n){let r=Eue(t,n);Aue(e,r,n)}Jq.exports=Tue});var Zq=f((HEe,Xq)=>{"use strict";var Cue=xt().fromPromise,vt=$q();vt.outputJson=Cue(Yq());vt.outputJsonSync=Qq();vt.outputJSON=vt.outputJson;vt.outputJSONSync=vt.outputJsonSync;vt.writeJSON=vt.writeJson;vt.writeJSONSync=vt.writeJsonSync;vt.readJSON=vt.readJson;vt.readJSONSync=vt.readJsonSync;Xq.exports=vt});var sM=f((YEe,iM)=>{"use strict";var nM=ft(),xue=require("path"),Iue=E0().copySync,rM=nc().removeSync,Rue=an().mkdirpSync,eM=Ja();function Due(e,t,n){n=n||{};let r=n.overwrite||n.clobber||!1,{srcStat:i}=eM.checkPathsSync(e,t,"move");return eM.checkParentPathsSync(e,i,t,"move"),Rue(xue.dirname(t)),Nue(e,t,r)}function Nue(e,t,n){if(n)return rM(t),tM(e,t,n);if(nM.existsSync(t))throw new Error("dest already exists.");return tM(e,t,n)}function tM(e,t,n){try{nM.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return Pue(e,t,n)}}function Pue(e,t,n){return Iue(e,t,{overwrite:n,errorOnExist:!0}),rM(e)}iM.exports=Due});var aM=f((JEe,oM)=>{"use strict";oM.exports={moveSync:sM()}});var fM=f((QEe,dM)=>{"use strict";var Oue=ft(),Lue=require("path"),que=T0().copy,uM=nc().remove,Mue=an().mkdirp,zue=$r().pathExists,cM=Ja();function jue(e,t,n,r){typeof n=="function"&&(r=n,n={});let i=n.overwrite||n.clobber||!1;cM.checkPaths(e,t,"move",(s,o)=>{if(s)return r(s);let{srcStat:a}=o;cM.checkParentPaths(e,a,t,"move",c=>{if(c)return r(c);Mue(Lue.dirname(t),u=>u?r(u):kue(e,t,i,r))})})}function kue(e,t,n,r){if(n)return uM(t,i=>i?r(i):lM(e,t,n,r));zue(t,(i,s)=>i?r(i):s?r(new Error("dest already exists.")):lM(e,t,n,r))}function lM(e,t,n,r){Oue.rename(e,t,i=>i?i.code!=="EXDEV"?r(i):Fue(e,t,n,r):r())}function Fue(e,t,n,r){que(e,t,{overwrite:n,errorOnExist:!0},s=>s?r(s):uM(e,r))}dM.exports=jue});var pM=f((XEe,mM)=>{"use strict";var Uue=xt().fromCallback;mM.exports={move:Uue(fM())}});var I0=f((ZEe,x0)=>{"use strict";x0.exports={...Ya(),...E0(),...T0(),...pq(),...zq(),...Zq(),...an(),...aM(),...pM(),...Oh(),...$r(),...nc()};var hM=require("fs");Object.getOwnPropertyDescriptor(hM,"promises")&&Object.defineProperty(x0.exports,"promises",{get(){return hM.promises}})});var wM=f((eAe,SM)=>{SM.exports=sc;sc.default=sc;sc.stable=gM;sc.stableStringify=gM;var Lh="[...]",_M="[Circular]",Ni=[],Di=[];function yM(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function sc(e,t,n,r){typeof r>"u"&&(r=yM()),R0(e,"",0,[],void 0,0,r);var i;try{Di.length===0?i=JSON.stringify(e,t,n):i=JSON.stringify(e,vM(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ni.length!==0;){var s=Ni.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function ks(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);i.get!==void 0?i.configurable?(Object.defineProperty(r,n,{value:e}),Ni.push([r,n,t,i])):Di.push([t,n,e]):(r[n]=e,Ni.push([r,n,t]))}function R0(e,t,n,r,i,s,o){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<r.length;a++)if(r[a]===e){ks(_M,e,t,i);return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){ks(Lh,e,t,i);return}if(typeof o.edgesLimit<"u"&&n+1>o.edgesLimit){ks(Lh,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;a<e.length;a++)R0(e[a],a,a,r,e,s,o);else{var c=Object.keys(e);for(a=0;a<c.length;a++){var u=c[a];R0(e[u],u,a,r,e,s,o)}}r.pop()}}function Bue(e,t){return e<t?-1:e>t?1:0}function gM(e,t,n,r){typeof r>"u"&&(r=yM());var i=D0(e,"",0,[],void 0,0,r)||e,s;try{Di.length===0?s=JSON.stringify(i,t,n):s=JSON.stringify(i,vM(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ni.length!==0;){var o=Ni.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function D0(e,t,n,r,i,s,o){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<r.length;a++)if(r[a]===e){ks(_M,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){ks(Lh,e,t,i);return}if(typeof o.edgesLimit<"u"&&n+1>o.edgesLimit){ks(Lh,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;a<e.length;a++)D0(e[a],a,a,r,e,s,o);else{var c={},u=Object.keys(e).sort(Bue);for(a=0;a<u.length;a++){var d=u[a];D0(e[d],d,a,r,e,s,o),c[d]=e[d]}if(typeof i<"u")Ni.push([i,t,e]),i[t]=c;else return c}r.pop()}}function vM(e){return e=typeof e<"u"?e:function(t,n){return n},function(t,n){if(Di.length>0)for(var r=0;r<Di.length;r++){var i=Di[r];if(i[1]===t&&i[0]===n){n=i[2],Di.splice(r,1);break}}return e.call(this,t,n)}}});var EM=f((tAe,bM)=>{var Gue=wM(),xe={LOG:Symbol("log"),META:Symbol("meta"),ERROR:Symbol("error"),OPTS:Symbol("opts")},Wr=class{constructor(t,n){this[xe.LOG]=t,this[xe.META]={},this[xe.ERROR]=null,this[xe.OPTS]=n;let{meta:r,tags:i}=this[xe.LOG];if(r&&(typeof r!="object"||Array.isArray(r))&&(this[xe.LOG].meta={meta:r}),r||(this[xe.LOG].meta={}),i||(this[xe.LOG].tags=[]),Wr.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],n={...this[xe.META],...this[xe.OPTS].meta,...this[xe.LOG].meta};if(t.dynamicMeta&&typeof t.dynamicMeta=="function"){let r=t.dynamicMeta.call(this,this,t);typeof r=="object"&&(n=Object.assign(n,r))}for(let[r,i]of Object.entries(n))typeof i=="object"&&Wr.isError(i)&&(n[r]=Wr.stubError(i));return n}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(r=>{if(typeof r=="function")return r.call(this,{level:this.level,meta:this.meta,options:t});let i=r.match(/(<<(.*)>>)/);return i&&i[2]==="level"?r.replace(i[1],this.level):r}).filter(r=>r!=null&&r!=="")}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 Gue(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((r,i)=>{if(i in t){let s=t[i];if(typeof s=="function")return r;r[i]=s}return r},{})}),t}};Wr.symbols=xe;bM.exports=Wr});var TM=f((nAe,AM)=>{var $ue=require("events"),Vue=EM(),Fs={LEVELS:Symbol("levels")},Us=class extends $ue{constructor(t={},n={}){super(),this.LambdaLog=Us,this.LogMessage=Vue,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[Fs.LEVELS]={info:"info",warn:"warn",error:"error",debug(){return this.options.debug?"debug":!1},...n},this.console=this.options.logHandler;let r=this[Fs.LEVELS];for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&this.addLevel(i,r[i])}addLevel(t,n){return this[Fs.LEVELS][t]=n,this[t]=(r,i={},s=[])=>this.log(t,r,i,s),this}log(t,n,r={},i=[]){if(!Object.prototype.hasOwnProperty.call(this[Fs.LEVELS],t))throw new Error(`"${t}" is not a valid log level`);let s=new this.LogMessage({level:t,msg:n,meta:r,tags:i},this.options),o=this[Fs.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,n,r={},i=[]){return t?!1:this.log("error",n,r,i)}result(t,n={},r=[]){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,n,r))).catch(o=>s(this.log("error",o,n,r)))})}};Us.symbols=Fs;AM.exports=Us});var N0=f((rAe,CM)=>{var Kue=TM(),Wue=new Kue;CM.exports=Wue});var xM=f(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var Hue=N0(),qh=class{};P0.default=qh;qh.Instance=new Hue.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0})});var NM=f(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.GetAppInfo=Fn.GetRoute=Fn.normalizePathPrefix=Fn.loadAppFrame=void 0;var RM=K();L_();var O0=RM.__importDefault(require("path")),IM=I0(),L0=l0(),Yue=RM.__importDefault(xM()),ar=Yue.default.Instance;function Jue({basePath:e="."}){let t=[e,O0.default.join(e,".."),O0.default.join(e,"templates"),e,"/opt","/opt/templates"];for(let n of t){let r=O0.default.join(n,"appFrame.html");try{if((0,IM.pathExistsSync)(r))return ar.info("found html file",{fullPath:r}),(0,IM.readFileSync)(r,"utf-8")}catch{}}throw ar.error("appFrame.html not found"),new Error("appFrame.html not found")}Fn.loadAppFrame=Jue;function Que(e){let t=e;return t!==""&&!t.startsWith("/")&&(t="/"+e),t.endsWith("/")&&t.substring(0,t.length-1),t}Fn.normalizePathPrefix=Que;async function Xue(e){let{dbManager:t,normalizedPathPrefix:n="",queryStringParameters:r}=e;try{if(n&&!e.rawPath.startsWith(n))return{statusCode:404,errorMessage:"Request not routable"};let i=n&&e.rawPath.startsWith(n)?e.rawPath.slice(n.length-1):e.rawPath,s=i.split("/"),{versionsAndRules:o,appName:a}=await DM({dbManager:t,appName:s.length>=2?s[1]:"[root]"}),c=a==="[root]",u=c?"":`${a}/`,h=(c?i:i.slice(a.length+1)).split("/"),m="";if(h.length>=2&&h[1]!==""&&(m=h.slice(1).join("/")),h.length===2||h.length===3&&!h[2]){let A=await ede({dbManager:t,appName:a,normalizedPathPrefix:n,semVer:h[1],appNameOrRootTrailingSlash:u});if(A)return A}let y=h.length>=4?h[3]:"",g=h.length>=2?h[1]:"",_=Zue({dbManager:t,normalizedPathPrefix:n,event:e,appName:a,possibleSemVerPathNextData:y,possibleSemVerPathAfterApp:g,possibleSemVerQuery:(r==null?void 0:r.get("appver"))||"",additionalParts:m,versionsAndRules:o,appNameOrRootTrailingSlash:u});return _||{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, no matching route`}}catch(i){return ar.error("unexpected exception - returning 599",{statusCode:599,error:i}),{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, ${i.message}`}}}Fn.GetRoute=Xue;async function DM(e){let{dbManager:t,appName:n}=e,r;return r=await L0.Application.GetVersionsAndRules({dbManager:t,key:{AppName:n}}),r.Versions.length>0?{appName:n,versionsAndRules:r}:(r=await L0.Application.GetVersionsAndRules({dbManager:t,key:{AppName:"[root]"}}),{appName:"[root]",versionsAndRules:r})}Fn.GetAppInfo=DM;function Zue(e){var t,n;let{event:r,normalizedPathPrefix:i="",appName:s,possibleSemVerPathNextData:o,possibleSemVerPathAfterApp:a,possibleSemVerQuery:c,additionalParts:u,versionsAndRules:d,appNameOrRootTrailingSlash:h}=e,m,y=a?d.Versions.find(R=>R.SemVer===a):void 0,g=o?d.Versions.find(R=>R.SemVer===o):void 0,_=c?d.Versions.find(R=>R.SemVer===c):void 0,A=y||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(_)m=_;else{if(c)return ar.error(`could not find app ${s}, for path ${r.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find app: ${r.rawPath}, ${s}`};{let R=(n=(t=d.Rules)===null||t===void 0?void 0:t.RuleSet.default)===null||n===void 0?void 0:n.SemVer;if(R==null)return ar.error(`could not find app ${s}, for path ${r.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find app: ${r.rawPath}, ${s}`};m=d.Versions.find(G=>G.SemVer===R)}}if(!m)return ar.error(`could not find version info for app ${s}, for path ${r.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find version info for app: ${r.rawPath}, ${s}`};if((m==null?void 0:m.StartupType)==="iframe"||!(m!=null&&m.StartupType)){let R;return(m==null?void 0:m.Type)!=="static"&&((m==null?void 0:m.DefaultFile)===void 0||(m==null?void 0:m.DefaultFile)===""||u!=="")?(R=`${i}/${h}${m.SemVer}`,u!==""&&(R+=`/${u}`)):R=`${i}/${h}${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:R}}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 ede(e){let{dbManager:t,normalizedPathPrefix:n="",appName:r,appNameOrRootTrailingSlash:i,semVer:s}=e,o;try{o=await L0.Version.LoadVersion({dbManager:t,key:{AppName:r,SemVer:s}})}catch(a){ar.info(`LoadVersion threw for '${n}/${i}${s}' - falling through to app routing'`,{appName:r,semVer:s,error:a});return}if(o===void 0){ar.info(`LoadVersion returned undefined for '${n}/${i}${s}', assuming not found - falling through to app routing'`,{appName:r,semVer:s});return}if(!!o.DefaultFile)return ar.info(`found '${n}/${i}${s}' - returning 302 to ${n}/${i}${s}/${o.DefaultFile}`,{statusCode:302,routedPath:`${n}/${i}${s}/${o.DefaultFile}`}),{statusCode:302,redirectLocation:`${n}/${i}${s}/${o.DefaultFile}`}}});var Bs=f((oc,q0)=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.default=tde;function Mh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mh=function(n){return typeof n}:Mh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mh(e)}function tde(e){var t=typeof e=="string"||e instanceof String;if(!t){var n=Mh(e);throw e===null?n="null":n==="object"&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}q0.exports=oc.default;q0.exports.default=oc.default});var zh=f((ac,M0)=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.default=nde;function nde(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)typeof e[n]>"u"&&(e[n]=t[n]);return e}M0.exports=ac.default;M0.exports.default=ac.default});var PM=f((cc,z0)=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.default=sde;var rde=ide(Bs());function ide(e){return e&&e.__esModule?e:{default:e}}function jh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jh=function(n){return typeof n}:jh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jh(e)}function sde(e,t){(0,rde.default)(e);var n,r;jh(t)==="object"?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=n&&(typeof r>"u"||i<=r)}z0.exports=cc.default;z0.exports.default=cc.default});var k0=f((lc,j0)=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.default=lde;var ode=OM(Bs()),ade=OM(zh());function OM(e){return e&&e.__esModule?e:{default:e}}var cde={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function lde(e,t){(0,ode.default)(e),t=(0,ade.default)(t,cde),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 n=e.split("."),r=n[n.length-1];return t.require_tld&&(n.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(r)||/\s/.test(r))||!t.allow_numeric_tld&&/^\d+$/.test(r)?!1:n.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))})}j0.exports=lc.default;j0.exports.default=lc.default});var kh=f((uc,U0)=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.default=F0;var ude=dde(Bs());function dde(e){return e&&e.__esModule?e:{default:e}}var LM="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",Hr="(".concat(LM,"[.]){3}").concat(LM),fde=new RegExp("^".concat(Hr,"$")),We="(?:[0-9a-fA-F]{1,4})",mde=new RegExp("^("+"(?:".concat(We,":){7}(?:").concat(We,"|:)|")+"(?:".concat(We,":){6}(?:").concat(Hr,"|:").concat(We,"|:)|")+"(?:".concat(We,":){5}(?::").concat(Hr,"|(:").concat(We,"){1,2}|:)|")+"(?:".concat(We,":){4}(?:(:").concat(We,"){0,1}:").concat(Hr,"|(:").concat(We,"){1,3}|:)|")+"(?:".concat(We,":){3}(?:(:").concat(We,"){0,2}:").concat(Hr,"|(:").concat(We,"){1,4}|:)|")+"(?:".concat(We,":){2}(?:(:").concat(We,"){0,3}:").concat(Hr,"|(:").concat(We,"){1,5}|:)|")+"(?:".concat(We,":){1}(?:(:").concat(We,"){0,4}:").concat(Hr,"|(:").concat(We,"){1,6}|:)|")+"(?::((?::".concat(We,"){0,5}:").concat(Hr,"|(?::").concat(We,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function F0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,ude.default)(e),t=String(t),!t)return F0(e,4)||F0(e,6);if(t==="4"){if(!fde.test(e))return!1;var n=e.split(".").sort(function(r,i){return r-i});return n[3]<=255}return t==="6"?!!mde.test(e):!1}U0.exports=uc.default;U0.exports.default=uc.default});var MM=f((fc,G0)=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.default=Cde;var pde=dc(Bs()),hde=dc(zh()),B0=dc(PM()),_de=dc(k0()),qM=dc(kh());function dc(e){return e&&e.__esModule?e:{default:e}}var yde={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},gde=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,vde=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,Sde=/^[a-z\d]+$/,wde=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,bde=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,Ede=/^([\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,Ade=254;function Tde(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var n=/[\.";<>]/.test(t);if(n){if(t===e)return!1;var r=t.split('"').length===t.split('\\"').length;if(!r)return!1}return!0}function Cde(e,t){if((0,pde.default)(e),t=(0,hde.default)(t,yde),t.require_display_name||t.allow_display_name){var n=e.match(gde);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!Tde(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>Ade)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,B0.default)(c.replace(/\./g,""),{min:6,max:30}))return!1;for(var u=c.split("."),d=0;d<u.length;d++)if(!Sde.test(u[d]))return!1}if(t.ignore_max_length===!1&&(!(0,B0.default)(a,{max:64})||!(0,B0.default)(s,{max:254})))return!1;if(!(0,_de.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,qM.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var h=s.substr(1,s.length-2);if(h.length===0||!(0,qM.default)(h))return!1}}if(a[0]==='"')return a=a.slice(1,a.length-1),t.allow_utf8_local_part?Ede.test(a):wde.test(a);for(var m=t.allow_utf8_local_part?bde:vde,y=a.split("."),g=0;g<y.length;g++)if(!m.test(y[g]))return!1;return!(t.blacklisted_chars&&a.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}G0.exports=fc.default;G0.exports.default=fc.default});var FM=f((mc,$0)=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.default=jde;var xde=Fh(Bs()),Ide=Fh(k0()),zM=Fh(kh()),Rde=Fh(zh());function Fh(e){return e&&e.__esModule?e:{default:e}}function Dde(e,t){return Lde(e)||Ode(e,t)||Pde(e,t)||Nde()}function Nde(){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 Pde(e,t){if(!!e){if(typeof e=="string")return jM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jM(e,t)}}function jM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ode(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,s=c}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw s}}return n}}function Lde(e){if(Array.isArray(e))return e}var qde={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},Mde=/^\[([^\]]+)\](?::([0-9]+))?$/;function zde(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function kM(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||zde(r)&&r.test(e))return!0}return!1}function jde(e,t){if((0,xde.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,Rde.default)(t,qde),t.validate_length&&e.length>=2083)||!t.allow_fragments&&e.includes("#")||!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,r,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(n=c.shift().toLowerCase(),t.require_valid_protocol&&t.protocols.indexOf(n)===-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]===""||(r=c.shift(),r.indexOf(":")>=0&&r.split(":").length>2))return!1;var d=r.split(":"),h=Dde(d,2),m=h[0],y=h[1];if(m===""&&y==="")return!1}s=c.join("@"),a=null,u=null;var g=s.match(Mde);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?kM(i,t.host_whitelist):!(!(0,zM.default)(i)&&!(0,Ide.default)(i,t)&&(!u||!(0,zM.default)(u,6))||(i=i||u,t.host_blacklist&&kM(i,t.host_blacklist)))}$0.exports=mc.default;$0.exports.default=mc.default});var BM=f((oAe,UM)=>{"use strict";var kde=MM(),Fde=FM(),Ude=kh();function V0(e,t){if(!e)throw new Error(t)}var Bde={name:"email",coerce:e=>e.toString(),validate:function(e){V0(kde(e),"must be an email address")}},Gde={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){V0(Ude(e),"must be an IP address")}},$de={name:"url",coerce:e=>e.toString(),validate:function(e){V0(Fde(e,{require_tld:!1}),"must be a URL")}};UM.exports={email:Bde,ipaddress:Gde,url:$de}});var Nz=f(Dz=>{"use strict";Object.defineProperty(Dz,"__esModule",{value:!0})});var ab=f(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0});var sb=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 n=this._reflect.hasMetadata("tsconvict:properties",t),r=this._reflect.hasMetadata("tsconvict:schema",t);return n||r}getTsType(t,n){return this._reflect.getMetadata("design:type",t,n)}getConvictMetaForProperty(t,n){return this._reflect.getMetadata("tsconvict:property",t,n)}setConvictMetaForProperty(t,n,r){return this._reflect.defineMetadata("tsconvict:property",t,n,r)}setConvictMetaForClass(t,n){return this._reflect.defineMetadata("tsconvict:schema",t,n)}getConvictMetaForClass(t){return this._reflect.getMetadata("tsconvict:schema",t)||null}setPropertyForClass(t,n){let r=this.getClassProperties(t);return r.length===0&&(this._reflect.defineMetadata("tsconvict:properties",[],t.constructor),r=this.getClassProperties(t)),r.push(n)}getClassProperties(t){return this._reflect.getMetadata("tsconvict:properties",t.constructor)||[]}};ob.default=new sb});var Pz=f(Qr=>{"use strict";var ppe=Qr&&Qr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.Property=Qr.Config=void 0;var Wh=ppe(ab());function hpe(e={}){return t=>{Wh.default.setConvictMetaForClass(e,t)}}Qr.Config=hpe;function _pe(e){return(t,n)=>{if(typeof e=="object"&&typeof e.format>"u"){let r=Wh.default.getTsType(t,n);r&&(e.format=r)}Wh.default.setConvictMetaForProperty(e,t,n),Wh.default.setPropertyForClass(t,n)}}Qr.Property=_pe});var Fz=f((hAe,kz)=>{"use strict";var ype=require("util"),gpe=require("fs"),Oz=require("path");function vc(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let n="",r=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);r&&(r=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?r=!0:o!=="-"&&o!=="_"&&(n+=o)}return n}}function Mz(e,t){let n=e.toLowerCase();t=t||"-";let r="";for(let i=0;i<e.length;i++){let s=n.charAt(i),o=e.charAt(i);s!==o&&i>0?r+=`${t}${n.charAt(i)}`:r+=o}return r}function zz(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 vpe(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,n=null,r=null,i=null,s=[];for(let o=0;o<e.length;o++){if(n=r,r=e.charAt(o),r===" "&&!i){n!==" "&&t++;continue}r===i?i=null:(r==="'"||r==='"')&&!i&&(i=r),s[t]||(s[t]=""),s[t]+=r}return s}var cn;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(cn||(cn={}));var lr,lb=class{constructor(t){lr=t}parse(t,n){let r=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},n),i=vpe(t),s=Spe(Object.assign(Object.create(null),r.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},r.configuration),a=Object.assign(Object.create(null),r.default),c=r.configObjects||[],u=r.envPrefix,d=o["populate--"],h=d?"--":"_",m=Object.create(null),y=Object.create(null),g=r.__||lr.format,_={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]+)$/,R=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach(function(S){let w=typeof S=="object"?S.key:S,P=Object.keys(S).map(function(x){return{boolean:"bools",string:"strings",number:"numbers"}[x]}).filter(Boolean).pop();P&&(_[P][w]=!0),_.arrays[w]=!0,_.keys.push(w)}),[].concat(r.boolean||[]).filter(Boolean).forEach(function(S){_.bools[S]=!0,_.keys.push(S)}),[].concat(r.string||[]).filter(Boolean).forEach(function(S){_.strings[S]=!0,_.keys.push(S)}),[].concat(r.number||[]).filter(Boolean).forEach(function(S){_.numbers[S]=!0,_.keys.push(S)}),[].concat(r.count||[]).filter(Boolean).forEach(function(S){_.counts[S]=!0,_.keys.push(S)}),[].concat(r.normalize||[]).filter(Boolean).forEach(function(S){_.normalize[S]=!0,_.keys.push(S)}),typeof r.narg=="object"&&Object.entries(r.narg).forEach(([S,w])=>{typeof w=="number"&&(_.nargs[S]=w,_.keys.push(S))}),typeof r.coerce=="object"&&Object.entries(r.coerce).forEach(([S,w])=>{typeof w=="function"&&(_.coercions[S]=w,_.keys.push(S))}),typeof r.config<"u"&&(Array.isArray(r.config)||typeof r.config=="string"?[].concat(r.config).filter(Boolean).forEach(function(S){_.configs[S]=!0}):typeof r.config=="object"&&Object.entries(r.config).forEach(([S,w])=>{(typeof w=="boolean"||typeof w=="function")&&(_.configs[S]=w)})),_r(r.key,s,r.default,_.arrays),Object.keys(a).forEach(function(S){(_.aliases[S]||[]).forEach(function(w){a[w]=a[S]})});let T=null;d_();let G=[],he=Object.assign(Object.create(null),{_:[]}),Jt={};for(let S=0;S<i.length;S++){let w=i[S],P=w.replace(/^-{3,}/,"---"),x,b,j,k,J,Ue;if(w!=="--"&&ji(w))pr(w);else if(P.match(/---+(=|$)/)){pr(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&&(ie(k[1],_.arrays)?S=ln(S,k[1],i,k[2]):ie(k[1],_.nargs)!==!1?S=hr(S,k[1],i,k[2]):z(k[1],k[2]));else if(w.match(R)&&o["boolean-negation"])k=w.match(R),k!==null&&Array.isArray(k)&&k.length>=2&&(b=k[1],z(b,ie(b,_.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],ie(b,_.arrays)?S=ln(S,b,i):ie(b,_.nargs)!==!1?S=hr(S,b,i):(J=i[S+1],J!==void 0&&(!J.match(/^-/)||J.match(A))&&!ie(b,_.bools)&&!ie(b,_.counts)||/^(true|false)$/.test(J)?(z(b,J),S++):z(b,at(b))));else if(w.match(/^-.\..+=/))k=w.match(/^-([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&z(k[1],k[2]);else if(w.match(/^-.\..+/)&&!w.match(A))J=i[S+1],k=w.match(/^-(.\..+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(b=k[1],J!==void 0&&!J.match(/^-/)&&!ie(b,_.bools)&&!ie(b,_.counts)?(z(b,J),S++):z(b,at(b)));else if(w.match(/^-[^-]+/)&&!w.match(A)){j=w.slice(1,-1).split(""),x=!1;for(let Ye=0;Ye<j.length;Ye++){if(J=w.slice(Ye+2),j[Ye+1]&&j[Ye+1]==="="){Ue=w.slice(Ye+3),b=j[Ye],ie(b,_.arrays)?S=ln(S,b,i,Ue):ie(b,_.nargs)!==!1?S=hr(S,b,i,Ue):z(b,Ue),x=!0;break}if(J==="-"){z(j[Ye],J);continue}if(/[A-Za-z]/.test(j[Ye])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(J)&&ie(J,_.bools)===!1){z(j[Ye],J),x=!0;break}if(j[Ye+1]&&j[Ye+1].match(/\W/)){z(j[Ye],J),x=!0;break}else z(j[Ye],at(j[Ye]))}b=w.slice(-1)[0],!x&&b!=="-"&&(ie(b,_.arrays)?S=ln(S,b,i):ie(b,_.nargs)!==!1?S=hr(S,b,i):(J=i[S+1],J!==void 0&&(!/^(-|--)[^-]/.test(J)||J.match(A))&&!ie(b,_.bools)&&!ie(b,_.counts)||/^(true|false)$/.test(J)?(z(b,J),S++):z(b,at(b))))}else if(w.match(/^-[0-9]$/)&&w.match(A)&&ie(w.slice(1),_.bools))b=w.slice(1),z(b,at(b));else if(w==="--"){G=i.slice(S+1);break}else if(o["halt-at-non-option"]){G=i.slice(S);break}else pr(w)}Te(he,!0),Te(he,!1),qe(he),Ae(),Se(he,_.aliases,a,!0),ge(he),o["set-placeholder-key"]&&Me(he),Object.keys(_.counts).forEach(function(S){Gn(he,S.split("."))||z(S,0)}),d&&G.length&&(he[h]=[]),G.forEach(function(S){he[h].push(S)}),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(he).filter(S=>S!=="--"&&S.includes("-")).forEach(S=>{delete he[S]}),o["strip-aliased"]&&[].concat(...Object.keys(s).map(S=>s[S])).forEach(S=>{o["camel-case-expansion"]&&S.includes("-")&&delete he[S.split(".").map(w=>vc(w)).join(".")],delete he[S]});function pr(S){let w=Ee("_",S);(typeof w=="string"||typeof w=="number")&&he._.push(w)}function hr(S,w,P,x){let b,j=ie(w,_.nargs);if(j=typeof j!="number"||isNaN(j)?1:j,j===0)return Ft(x)||(T=Error(g("Argument unexpected for: %s",w))),z(w,at(w)),S;let k=Ft(x)?0:1;if(o["nargs-eats-options"])P.length-(S+1)+k<j&&(T=Error(g("Not enough arguments following: %s",w))),k=j;else{for(b=S+1;b<P.length&&(!P[b].match(/^-[^0-9]/)||P[b].match(A)||ji(P[b]));b++)k++;k<j&&(T=Error(g("Not enough arguments following: %s",w)))}let J=Math.min(k,j);for(!Ft(x)&&J>0&&(z(w,x),J--),b=S+1;b<J+S+1;b++)z(w,P[b]);return S+J}function ln(S,w,P,x){let b=[],j=x||P[S+1],k=ie(w,_.nargs);if(ie(w,_.bools)&&!/^(true|false)$/.test(j))b.push(!0);else if(Ft(j)||Ft(x)&&/^-/.test(j)&&!A.test(j)&&!ji(j)){if(a[w]!==void 0){let J=a[w];b=Array.isArray(J)?J:[J]}}else{Ft(x)||b.push(de(w,x));for(let J=S+1;J<P.length&&!(!o["greedy-arrays"]&&b.length>0||k&&typeof k=="number"&&b.length>=k||(j=P[J],/^-/.test(j)&&!A.test(j)&&!ji(j)));J++)S=J,b.push(de(w,j))}return typeof k=="number"&&(k&&b.length<k||isNaN(k)&&b.length===0)&&(T=Error(g("Not enough arguments following: %s",w))),z(w,b),S}function z(S,w){if(/-/.test(S)&&o["camel-case-expansion"]){let b=S.split(".").map(function(j){return vc(j)}).join(".");fe(S,b)}let P=de(S,w),x=S.split(".");Ne(he,x,P),_.aliases[S]&&_.aliases[S].forEach(function(b){let j=b.split(".");Ne(he,j,P)}),x.length>1&&o["dot-notation"]&&(_.aliases[x[0]]||[]).forEach(function(b){let j=b.split("."),k=[].concat(x);k.shift(),j=j.concat(k),(_.aliases[S]||[]).includes(j.join("."))||Ne(he,j,P)}),ie(S,_.normalize)&&!ie(S,_.arrays)&&[S].concat(_.aliases[S]||[]).forEach(function(j){Object.defineProperty(Jt,j,{enumerable:!0,get(){return w},set(k){w=typeof k=="string"?lr.normalize(k):k}})})}function fe(S,w){_.aliases[S]&&_.aliases[S].length||(_.aliases[S]=[w],m[w]=!0),_.aliases[w]&&_.aliases[w].length||fe(w,S)}function de(S,w){typeof w=="string"&&(w[0]==="'"||w[0]==='"')&&w[w.length-1]===w[0]&&(w=w.substring(1,w.length-1)),(ie(S,_.bools)||ie(S,_.counts))&&typeof w=="string"&&(w=w==="true");let P=Array.isArray(w)?w.map(function(x){return Ee(S,x)}):Ee(S,w);return ie(S,_.counts)&&(Ft(P)||typeof P=="boolean")&&(P=cb()),ie(S,_.normalize)&&ie(S,_.arrays)&&(Array.isArray(w)?P=w.map(x=>lr.normalize(x)):P=lr.normalize(w)),P}function Ee(S,w){return!o["parse-positional-numbers"]&&S==="_"||!ie(S,_.strings)&&!ie(S,_.bools)&&!Array.isArray(w)&&(zz(w)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${w}`)))||!Ft(w)&&ie(S,_.numbers))&&(w=Number(w)),w}function qe(S){let w=Object.create(null);Se(w,_.aliases,a),Object.keys(_.configs).forEach(function(P){let x=S[P]||w[P];if(x)try{let b=null,j=lr.resolve(lr.cwd(),x),k=_.configs[P];if(typeof k=="function"){try{b=k(j)}catch(J){b=J}if(b instanceof Error){T=b;return}}else b=lr.require(j);Re(b)}catch(b){b.name==="PermissionDenied"?T=b:S[P]&&(T=Error(g("Invalid JSON config file: %s",x)))}})}function Re(S,w){Object.keys(S).forEach(function(P){let x=S[P],b=w?w+"."+P:P;typeof x=="object"&&x!==null&&!Array.isArray(x)&&o["dot-notation"]?Re(x,b):(!Gn(he,b.split("."))||ie(b,_.arrays)&&o["combine-arrays"])&&z(b,x)})}function Ae(){typeof c<"u"&&c.forEach(function(S){Re(S)})}function Te(S,w){if(typeof u>"u")return;let P=typeof u=="string"?u:"",x=lr.env();Object.keys(x).forEach(function(b){if(P===""||b.lastIndexOf(P,0)===0){let j=b.split("__").map(function(k,J){return J===0&&(k=k.substring(P.length)),vc(k)});(w&&_.configs[j.join(".")]||!w)&&!Gn(S,j)&&z(j.join("."),x[b])}})}function ge(S){let w,P=new Set;Object.keys(S).forEach(function(x){if(!P.has(x)&&(w=ie(x,_.coercions),typeof w=="function"))try{let b=Ee(x,w(S[x]));[].concat(_.aliases[x]||[],x).forEach(j=>{P.add(j),S[j]=b})}catch(b){T=b}})}function Me(S){return _.keys.forEach(w=>{~w.indexOf(".")||typeof S[w]>"u"&&(S[w]=void 0)}),S}function Se(S,w,P,x=!1){Object.keys(P).forEach(function(b){Gn(S,b.split("."))||(Ne(S,b.split("."),P[b]),x&&(y[b]=!0),(w[b]||[]).forEach(function(j){Gn(S,j.split("."))||Ne(S,j.split("."),P[b])}))})}function Gn(S,w){let P=S;o["dot-notation"]||(w=[w.join(".")]),w.slice(0,-1).forEach(function(b){P=P[b]||{}});let x=w[w.length-1];return typeof P!="object"?!1:x in P}function Ne(S,w,P){let x=S;o["dot-notation"]||(w=[w.join(".")]),w.slice(0,-1).forEach(function(Ue){Ue=Lz(Ue),typeof x=="object"&&x[Ue]===void 0&&(x[Ue]={}),typeof x[Ue]!="object"||Array.isArray(x[Ue])?(Array.isArray(x[Ue])?x[Ue].push({}):x[Ue]=[x[Ue],{}],x=x[Ue][x[Ue].length-1]):x=x[Ue]});let b=Lz(w[w.length-1]),j=ie(w.join("."),_.arrays),k=Array.isArray(P),J=o["duplicate-arguments-array"];!J&&ie(b,_.nargs)&&(J=!0,(!Ft(x[b])&&_.nargs[b]===1||Array.isArray(x[b])&&x[b].length===_.nargs[b])&&(x[b]=void 0)),P===cb()?x[b]=cb(x[b]):Array.isArray(x[b])?J&&j&&k?x[b]=o["flatten-duplicate-arrays"]?x[b].concat(P):(Array.isArray(x[b][0])?x[b]:[x[b]]).concat([P]):!J&&Boolean(j)===Boolean(k)?x[b]=P:x[b]=x[b].concat([P]):x[b]===void 0&&j?x[b]=k?P:[P]:J&&!(x[b]===void 0||ie(b,_.counts)||ie(b,_.bools))?x[b]=[x[b],P]:x[b]=P}function _r(...S){S.forEach(function(w){Object.keys(w||{}).forEach(function(P){_.aliases[P]||(_.aliases[P]=[].concat(s[P]||[]),_.aliases[P].concat(P).forEach(function(x){if(/-/.test(x)&&o["camel-case-expansion"]){let b=vc(x);b!==P&&_.aliases[P].indexOf(b)===-1&&(_.aliases[P].push(b),m[b]=!0)}}),_.aliases[P].concat(P).forEach(function(x){if(x.length>1&&/[A-Z]/.test(x)&&o["camel-case-expansion"]){let b=Mz(x,"-");b!==P&&_.aliases[P].indexOf(b)===-1&&(_.aliases[P].push(b),m[b]=!0)}}),_.aliases[P].forEach(function(x){_.aliases[x]=[P].concat(_.aliases[P].filter(function(b){return x!==b}))}))})})}function ie(S,w){let P=[].concat(_.aliases[S]||[],S),x=Object.keys(w),b=P.find(j=>x.includes(j));return b?w[b]:!1}function ke(S){let w=Object.keys(_);return[].concat(w.map(x=>_[x])).some(function(x){return Array.isArray(x)?x.includes(S):x[S]})}function c_(S,...w){return[].concat(...w).some(function(x){let b=S.match(x);return b&&ke(b[1])})}function l_(S){if(S.match(A)||!S.match(/^-[^-]+/))return!1;let w=!0,P,x=S.slice(1).split("");for(let b=0;b<x.length;b++){if(P=S.slice(b+2),!ke(x[b])){w=!1;break}if(x[b+1]&&x[b+1]==="="||P==="-"||/[A-Za-z]/.test(x[b])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(P)||x[b+1]&&x[b+1].match(/\W/))break}return w}function ji(S){return o["unknown-options-as-args"]&&u_(S)}function u_(S){return S=S.replace(/^-{3,}/,"--"),S.match(A)||l_(S)?!1:!c_(S,/^-+([^=]+?)=[\s\S]*$/,R,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function at(S){return!ie(S,_.bools)&&!ie(S,_.counts)&&`${S}`in a?a[S]:Ic(yr(S))}function Ic(S){return{[cn.BOOLEAN]:!0,[cn.STRING]:"",[cn.NUMBER]:void 0,[cn.ARRAY]:[]}[S]}function yr(S){let w=cn.BOOLEAN;return ie(S,_.strings)?w=cn.STRING:ie(S,_.numbers)?w=cn.NUMBER:ie(S,_.bools)?w=cn.BOOLEAN:ie(S,_.arrays)&&(w=cn.ARRAY),w}function Ft(S){return S===void 0}function d_(){Object.keys(_.counts).find(S=>ie(S,_.arrays)?(T=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",S)),!0):ie(S,_.nargs)?(T=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",S)),!0):!1)}return{aliases:Object.assign({},_.aliases),argv:Object.assign(Jt,he),configuration:o,defaulted:Object.assign({},y),error:T,newAliases:Object.assign({},m)}}};function Spe(e){let t=[],n=Object.create(null),r=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});r;){r=!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),r=!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"&&(n[s]=i)}),n}function cb(e){return e!==void 0?e+1:1}function Lz(e){return e==="__proto__"?"___proto___":e}var qz=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])<qz)throw Error(`yargs parser supports a minimum Node.js version of ${qz}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var wpe=process?process.env:{},jz=new lb({cwd:process.cwd,env:()=>wpe,format:ype.format,normalize:Oz.normalize,resolve:Oz.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return gpe.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),Sc=function(t,n){return jz.parse(t.slice(),n).argv};Sc.detailed=function(e,t){return jz.parse(e.slice(),t)};Sc.camelCase=vc;Sc.decamelize=Mz;Sc.looksLikeNumber=zz;kz.exports=Sc});var Ij=f((wc,Ws)=>{var bpe=200,Xz="__lodash_hash_undefined__",Zz=9007199254740991,yb="[object Arguments]",Epe="[object Array]",ej="[object Boolean]",tj="[object Date]",Ape="[object Error]",gb="[object Function]",nj="[object GeneratorFunction]",Hh="[object Map]",rj="[object Number]",vb="[object Object]",Uz="[object Promise]",ij="[object RegExp]",Yh="[object Set]",sj="[object String]",oj="[object Symbol]",db="[object WeakMap]",aj="[object ArrayBuffer]",Jh="[object DataView]",cj="[object Float32Array]",lj="[object Float64Array]",uj="[object Int8Array]",dj="[object Int16Array]",fj="[object Int32Array]",mj="[object Uint8Array]",pj="[object Uint8ClampedArray]",hj="[object Uint16Array]",_j="[object Uint32Array]",Tpe=/[\\^$.*+?()[\]{}|]/g,Cpe=/\w*$/,xpe=/^\[object .+?Constructor\]$/,Ipe=/^(?:0|[1-9]\d*)$/,De={};De[yb]=De[Epe]=De[aj]=De[Jh]=De[ej]=De[tj]=De[cj]=De[lj]=De[uj]=De[dj]=De[fj]=De[Hh]=De[rj]=De[vb]=De[ij]=De[Yh]=De[sj]=De[oj]=De[mj]=De[pj]=De[hj]=De[_j]=!0;De[Ape]=De[gb]=De[db]=!1;var Rpe=typeof global=="object"&&global&&global.Object===Object&&global,Dpe=typeof self=="object"&&self&&self.Object===Object&&self,ur=Rpe||Dpe||Function("return this")(),yj=typeof wc=="object"&&wc&&!wc.nodeType&&wc,Bz=yj&&typeof Ws=="object"&&Ws&&!Ws.nodeType&&Ws,Npe=Bz&&Bz.exports===yj;function Ppe(e,t){return e.set(t[0],t[1]),e}function Ope(e,t){return e.add(t),e}function Lpe(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function qpe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function gj(e,t,n,r){var i=-1,s=e?e.length:0;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function Mpe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function zpe(e,t){return e==null?void 0:e[t]}function vj(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Gz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Sb(e,t){return function(n){return e(t(n))}}function $z(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var jpe=Array.prototype,kpe=Function.prototype,Qh=Object.prototype,ub=ur["__core-js_shared__"],Vz=function(){var e=/[^.]+$/.exec(ub&&ub.keys&&ub.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Sj=kpe.toString,Xr=Qh.hasOwnProperty,Xh=Qh.toString,Fpe=RegExp("^"+Sj.call(Xr).replace(Tpe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kz=Npe?ur.Buffer:void 0,Wz=ur.Symbol,Hz=ur.Uint8Array,Upe=Sb(Object.getPrototypeOf,Object),Bpe=Object.create,Gpe=Qh.propertyIsEnumerable,$pe=jpe.splice,Yz=Object.getOwnPropertySymbols,Vpe=Kz?Kz.isBuffer:void 0,Kpe=Sb(Object.keys,Object),fb=Js(ur,"DataView"),bc=Js(ur,"Map"),mb=Js(ur,"Promise"),pb=Js(ur,"Set"),hb=Js(ur,"WeakMap"),Ec=Js(Object,"create"),Wpe=Mi(fb),Hpe=Mi(bc),Ype=Mi(mb),Jpe=Mi(pb),Qpe=Mi(hb),Jz=Wz?Wz.prototype:void 0,Qz=Jz?Jz.valueOf:void 0;function qi(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xpe(){this.__data__=Ec?Ec(null):{}}function Zpe(e){return this.has(e)&&delete this.__data__[e]}function ehe(e){var t=this.__data__;if(Ec){var n=t[e];return n===Xz?void 0:n}return Xr.call(t,e)?t[e]:void 0}function the(e){var t=this.__data__;return Ec?t[e]!==void 0:Xr.call(t,e)}function nhe(e,t){var n=this.__data__;return n[e]=Ec&&t===void 0?Xz:t,this}qi.prototype.clear=Xpe;qi.prototype.delete=Zpe;qi.prototype.get=ehe;qi.prototype.has=the;qi.prototype.set=nhe;function dr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function rhe(){this.__data__=[]}function ihe(e){var t=this.__data__,n=Zh(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$pe.call(t,n,1),!0}function she(e){var t=this.__data__,n=Zh(t,e);return n<0?void 0:t[n][1]}function ohe(e){return Zh(this.__data__,e)>-1}function ahe(e,t){var n=this.__data__,r=Zh(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}dr.prototype.clear=rhe;dr.prototype.delete=ihe;dr.prototype.get=she;dr.prototype.has=ohe;dr.prototype.set=ahe;function Hs(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function che(){this.__data__={hash:new qi,map:new(bc||dr),string:new qi}}function lhe(e){return e_(this,e).delete(e)}function uhe(e){return e_(this,e).get(e)}function dhe(e){return e_(this,e).has(e)}function fhe(e,t){return e_(this,e).set(e,t),this}Hs.prototype.clear=che;Hs.prototype.delete=lhe;Hs.prototype.get=uhe;Hs.prototype.has=dhe;Hs.prototype.set=fhe;function Ys(e){this.__data__=new dr(e)}function mhe(){this.__data__=new dr}function phe(e){return this.__data__.delete(e)}function hhe(e){return this.__data__.get(e)}function _he(e){return this.__data__.has(e)}function yhe(e,t){var n=this.__data__;if(n instanceof dr){var r=n.__data__;if(!bc||r.length<bpe-1)return r.push([e,t]),this;n=this.__data__=new Hs(r)}return n.set(e,t),this}Ys.prototype.clear=mhe;Ys.prototype.delete=phe;Ys.prototype.get=hhe;Ys.prototype.has=_he;Ys.prototype.set=yhe;function ghe(e,t){var n=bb(e)||Bhe(e)?Mpe(e.length,String):[],r=n.length,i=!!r;for(var s in e)(t||Xr.call(e,s))&&!(i&&(s=="length"||jhe(s,r)))&&n.push(s);return n}function wj(e,t,n){var r=e[t];(!(Xr.call(e,t)&&Tj(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Zh(e,t){for(var n=e.length;n--;)if(Tj(e[n][0],t))return n;return-1}function vhe(e,t){return e&&bj(t,Eb(t),e)}function _b(e,t,n,r,i,s,o){var a;if(r&&(a=s?r(e,i,s,o):r(e)),a!==void 0)return a;if(!t_(e))return e;var c=bb(e);if(c){if(a=qhe(e),!t)return Phe(e,a)}else{var u=Li(e),d=u==gb||u==nj;if($he(e))return The(e,t);if(u==vb||u==yb||d&&!s){if(vj(e))return s?e:{};if(a=Mhe(d?{}:e),!t)return Ohe(e,vhe(a,e))}else{if(!De[u])return s?e:{};a=zhe(e,u,_b,t)}}o||(o=new Ys);var h=o.get(e);if(h)return h;if(o.set(e,a),!c)var m=n?Lhe(e):Eb(e);return Lpe(m||e,function(y,g){m&&(g=y,y=e[g]),wj(a,g,_b(y,t,n,r,g,e,o))}),a}function She(e){return t_(e)?Bpe(e):{}}function whe(e,t,n){var r=t(e);return bb(e)?r:qpe(r,n(e))}function bhe(e){return Xh.call(e)}function Ehe(e){if(!t_(e)||Fhe(e))return!1;var t=xj(e)||vj(e)?Fpe:xpe;return t.test(Mi(e))}function Ahe(e){if(!Aj(e))return Kpe(e);var t=[];for(var n in Object(e))Xr.call(e,n)&&n!="constructor"&&t.push(n);return t}function The(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function wb(e){var t=new e.constructor(e.byteLength);return new Hz(t).set(new Hz(e)),t}function Che(e,t){var n=t?wb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function xhe(e,t,n){var r=t?n(Gz(e),!0):Gz(e);return gj(r,Ppe,new e.constructor)}function Ihe(e){var t=new e.constructor(e.source,Cpe.exec(e));return t.lastIndex=e.lastIndex,t}function Rhe(e,t,n){var r=t?n($z(e),!0):$z(e);return gj(r,Ope,new e.constructor)}function Dhe(e){return Qz?Object(Qz.call(e)):{}}function Nhe(e,t){var n=t?wb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Phe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function bj(e,t,n,r){n||(n={});for(var i=-1,s=t.length;++i<s;){var o=t[i],a=r?r(n[o],e[o],o,n,e):void 0;wj(n,o,a===void 0?e[o]:a)}return n}function Ohe(e,t){return bj(e,Ej(e),t)}function Lhe(e){return whe(e,Eb,Ej)}function e_(e,t){var n=e.__data__;return khe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Js(e,t){var n=zpe(e,t);return Ehe(n)?n:void 0}var Ej=Yz?Sb(Yz,Object):Whe,Li=bhe;(fb&&Li(new fb(new ArrayBuffer(1)))!=Jh||bc&&Li(new bc)!=Hh||mb&&Li(mb.resolve())!=Uz||pb&&Li(new pb)!=Yh||hb&&Li(new hb)!=db)&&(Li=function(e){var t=Xh.call(e),n=t==vb?e.constructor:void 0,r=n?Mi(n):void 0;if(r)switch(r){case Wpe:return Jh;case Hpe:return Hh;case Ype:return Uz;case Jpe:return Yh;case Qpe:return db}return t});function qhe(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&Xr.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Mhe(e){return typeof e.constructor=="function"&&!Aj(e)?She(Upe(e)):{}}function zhe(e,t,n,r){var i=e.constructor;switch(t){case aj:return wb(e);case ej:case tj:return new i(+e);case Jh:return Che(e,r);case cj:case lj:case uj:case dj:case fj:case mj:case pj:case hj:case _j:return Nhe(e,r);case Hh:return xhe(e,r,n);case rj:case sj:return new i(e);case ij:return Ihe(e);case Yh:return Rhe(e,r,n);case oj:return Dhe(e)}}function jhe(e,t){return t=t??Zz,!!t&&(typeof e=="number"||Ipe.test(e))&&e>-1&&e%1==0&&e<t}function khe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Fhe(e){return!!Vz&&Vz in e}function Aj(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Qh;return e===n}function Mi(e){if(e!=null){try{return Sj.call(e)}catch{}try{return e+""}catch{}}return""}function Uhe(e){return _b(e,!0,!0)}function Tj(e,t){return e===t||e!==e&&t!==t}function Bhe(e){return Ghe(e)&&Xr.call(e,"callee")&&(!Gpe.call(e,"callee")||Xh.call(e)==yb)}var bb=Array.isArray;function Cj(e){return e!=null&&Vhe(e.length)&&!xj(e)}function Ghe(e){return Khe(e)&&Cj(e)}var $he=Vpe||Hhe;function xj(e){var t=t_(e)?Xh.call(e):"";return t==gb||t==nj}function Vhe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Zz}function t_(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Khe(e){return!!e&&typeof e=="object"}function Eb(e){return Cj(e)?ghe(e):Ahe(e)}function Whe(){return[]}function Hhe(){return!1}Ws.exports=Uhe});var jj=f((_Ae,zj)=>{"use strict";var Yhe=require("fs"),Jhe=Fz(),Qs=Ij(),Qhe=["__proto__.","constructor.prototype."],Xhe="strict",Rj="warn";function Zr(e,t){if(!e)throw new Error(t)}function Dj(e){return Number.isInteger(e)&&e>=0&&e<=65535}function Cb(e){return String(e).includes("\\\\.\\pipe\\")}var Ac={"*":function(){},int:function(e){Zr(Number.isInteger(e),"must be an integer")},nat:function(e){Zr(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){Zr(Dj(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){Zr(Cb(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){Cb(e)||Zr(Dj(e),"must be a windows named pipe or a number within range 0 - 65535")}};Ac.integer=Ac.int;var xb=new Map,Ib={"*":JSON.parse};function Nj(e,t){let n=Object.keys(e),r,i=[];for(;n.length;){r=n.shift();let o=Xs(e,r);if(typeof o=="object"&&!Array.isArray(o)&&o!=null){if(t)if("_cvtProperties"in o)o=o._cvtProperties,r=`${r}._cvtProperties`;else{i.push([r,o]);continue}let a=Object.keys(o);if(a.length>0){a.forEach(function(c){n.push(`${r}.${c}`)});continue}}i.push([r,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 Zhe(e,t,n){let r={undeclared:[],invalid_type:[],missing:[]},i=Nj(e),s=Nj(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=Xs(e,o);else throw new Error("missing")}catch{let d=new Error(`configuration param '${o}' missing from config, did you override its parent?`);r.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){r.invalid_type.push(u)}}),n&&Object.keys(i).forEach(function(o){let a=new Error(`configuration param '${o}' not declared in the schema`);r.undeclared.push(a)}),r}function e_e(e,t){Zr(e.indexOf(t)!==-1,`must be one of the possible values: ${JSON.stringify(e)}`)}var Db={Object,Array,String,Number,Boolean,RegExp},Lj=Object.keys(Db),t_e=Lj.map(function(e){return Db[e]});function qj(e,t,n,r,i,s,o){if(e==="_cvtProperties")throw new Error(`'${r}': '_cvtProperties' is reserved word of convict.`);if(typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length>0&&!("default"in t)){n[e]={_cvtProperties:{}},Object.keys(t).forEach(function(d){qj(d,t[d],n[e]._cvtProperties,`${r}.${d}`,i,s,o)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let a=Qs(t);if(n[e]=a,a.env&&(i[a.env]||(i[a.env]=[]),i[a.env].push(r)),a.arg){if(s[a.arg])throw new Error(`'${r}' reuses a command-line argument: ${a.arg}`);s[a.arg]=r}a.sensitive===!0&&o.add(r);let c=a.format,u;if(t_e.indexOf(c)>=0||Lj.indexOf(c)>=0){let d=typeof c=="string"?Db[c]:c;u=function(h){Zr(Object.prototype.toString.call(h)==Object.prototype.toString.call(new d),`must be of type ${d.name}`)},a.format=d.name.toLowerCase()}else if(typeof c=="string"){if(!Ac[c])throw new Error(`'${r}' uses an unknown format type: ${c}`);u=Ac[c]}else if(Array.isArray(c))u=e_e.bind(null,c);else if(typeof c=="function")u=c;else if(c&&typeof c!="function")throw new Error(`'${r}': "format" must be a function or a known format type.`);if(!u&&!c){let d=Object.prototype.toString.call(a.default);u=function(h){Zr(Object.prototype.toString.call(h)==d," should be of type "+d.replace(/\[.* |]/g,""))}}a._format=function(d){if(!(this.nullable&&d===null))try{u(d,this)}catch(h){throw h.fullName=r,h.value=d,h}}}function Ab(e){let t=e.getEnv();Object.keys(e._env).forEach(function(n){t[n]!==void 0&&e._env[n].forEach(function(i){e.set(i,t[n])})})}function Tb(e){let t=Jhe(e.getArgs(),{configuration:{"dot-notation":!1}});Object.keys(e._argv).forEach(function(n){let r=e._argv[n];t[n]!==void 0&&e.set(r,String(t[n]))})}function Mj(e,t,n){Object.keys(e._cvtProperties).forEach(function(r){let i=e._cvtProperties[r];if(i._cvtProperties){let s=t[r]||{};Mj(i,s,n),t[r]=s}else t[r]=Nb(r,Qs(i.default),e,n)})}function Pj(e){return typeof e=="object"&&e!==null}function Rb(e,t,n){Object.keys(e).forEach(function(r){Array.isArray(e[r])||!Pj(e[r])||!n||n.format==="object"?t[r]=Nb(r,e[r],n):(Pj(t[r])||(t[r]={}),Rb(e[r],t[r],n._cvtProperties[r]))})}function n_e(e,t){let n=t.split("."),r=e;for(;n.length>0;){let i=n.shift();if(r&&r._cvtProperties&&r._cvtProperties[i])r=r._cvtProperties[i];else{r=null;break}}return r}function r_e(e,t){let n=n_e(e,t);return n==null?null:typeof n.format=="string"?n.format:n.default!=null?typeof n.default:null}function Nb(e,t,n,r){let i=r_e(n,e);if(typeof t=="string"){if(xb.has(i))return xb.get(i)(t,r,e);switch(i){case"port":case"nat":case"integer":case"int":t=parseInt(t,10);break;case"port_or_windows_named_pipe":t=Cb(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 Oj(e){let t=e.split("."),n=t.length>1?t.pop():"";return(Ib[n]||Ib["*"])(Yhe.readFileSync(e,"utf-8"))}function Xs(e,t,n){if(t){let r=t.split(".");for(;r.length;){let i=r.shift();if(n&&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 Tc=function(t,n){let r={getArgs:function(){return n&&n.args||process.argv.slice(2)},getEnv:function(){return n&&n.env||process.env},getProperties:function(){return Qs(this._instance)},toString:function(){let i=Qs(this._instance);return this._sensitive.forEach(function(s){let o=s.split("."),a=o.pop(),c=o.join("."),u=Xs(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=Xs(this._instance,i);return Qs(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=Xs(this._schema._cvtProperties,i);return Qs(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 Qhe)if(i.startsWith(d)||i.includes(`.${d}`))return this;s=Nb(i,s,this._schema,this);let o=i.split("."),a=o.pop(),c=o.join("."),u=Xs(this._instance,c,!0);return u[a]=s,this},load:function(i){return Rb(i,this._instance,this._schema),Ab(r),Tb(r),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(o){let a=Oj(o);a&&Rb(a,s._instance,s._schema)}),Ab(r),Tb(r),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||Rj,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=Zhe(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 _="";for(let A=0;A<g.length;A++){_.length&&(_+=`
|
|
36
|
+
`);let R=g[A];R.fullName&&(_+=R.fullName+": "),R.message&&(_+=R.message),R.value&&!a.has(R.fullName)&&(_+=": value was "+JSON.stringify(R.value))}return _},u=c(o.invalid_type),d=c(o.undeclared),h=c(o.missing),m=[u,h];if(i.allowed===Rj&&d.length){let g="Warning:";if(process.stdout.isTTY){let _="\x1B[33;1m",A="\x1B[0m";g=_+g+A}s(g+" "+d)}else i.allowed===Xhe&&m.push(d);let y=m.filter(function(g){return g.length}).join(`
|
|
37
|
+
`);if(y.length)throw new Error(y)}return this}};return typeof t=="string"?r._def=Oj(t):r._def=t,r._schema={_cvtProperties:{}},r._env={},r._argv={},r._sensitive=new Set,Object.keys(r._def).forEach(function(i){qj(i,r._def[i],r._schema._cvtProperties,i,r._env,r._argv,r._sensitive)}),r._instance={},Mj(r._schema,r._instance,r),Ab(r),Tb(r),r};Tc.addFormat=function(e,t,n){if(typeof e=="object"&&(t=e.validate,n=e.coerce,e=e.name),typeof t!="function")throw new Error(`Validation function for '${e}' must be a function.`);if(n&&typeof n!="function")throw new Error(`Coerce function for '${e}' must be a function.`);Ac[e]=t,n&&xb.set(e,n)};Tc.addFormats=function(e){Object.keys(e).forEach(function(t){Tc.addFormat(t,e[t].validate,e[t].coerce)})};Tc.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(r){if(typeof r!="string")throw new Error("Invalid parser.extension");Ib[r]=t.parse})})};zj.exports=Tc});var kj=f(Zs=>{"use strict";var n_=Zs&&Zs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.TSConvict=void 0;var Bn=n_(ab()),Pb=n_(jj()),i_e=n_(require("fs")),s_e=n_(require("path")),Ob=class{constructor(t){if(this.opts={},!Bn.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let n=Bn.default.getConvictMetaForClass(t);n!==null&&(typeof n.parser<"u"&&Pb.default.addParser(n.parser),typeof n.formats<"u"&&Pb.default.addFormats(n.formats),this.opts=n),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=Pb.default(this.schema)}load(t=null){let n=null;if(typeof this.opts.file<"u"&&i_e.default.existsSync(s_e.default.resolve(this.opts.file))&&(n=this.opts.file),typeof t=="string"||Array.isArray(t)){let s;Array.isArray(t)?s=t:s=[t],n!==null&&s.unshift(n),this.client.loadFile(s)}else if(t===null)n!==null?this.client.loadFile(n):this.client.load({});else if(typeof t=="object")n!==null&&this.client.loadFile(n),this.client.load(t);else throw new Error(`Could not load the config given: ${t}`);let r=this.opts.validationMethod===void 0?"strict":this.opts.validationMethod;this.client.validate({allowed:r});let i=this.client.getProperties();return this.applyDataToModel(this.baseModel,i)}getSchemaFor(t){let n={};for(let r of Bn.default.getClassProperties(t)){let i=Bn.default.getConvictMetaForProperty(t,r);if(Bn.default.isConstructor(i)&&Bn.default.isConfigClass(i))try{t[r]=new i,n[r]=this.getSchemaFor(t[r])}catch(s){throw console.error(s),new Error("Could not make a new class of "+i)}else n[r]=i}return n}applyDataToModel(t,n){for(let r of Bn.default.getClassProperties(t)){let i=Bn.default.getConvictMetaForProperty(t,r);Bn.default.isConstructor(i)&&Bn.default.isConfigClass(i)?this.applyDataToModel(t[r],n[r]||{}):r in n&&(t[r]=n[r])}return t}};Zs.TSConvict=Ob});var r_=f(fr=>{"use strict";var o_e=fr&&fr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Lb=fr&&fr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&o_e(t,e,n)};Object.defineProperty(fr,"__esModule",{value:!0});Lb(Nz(),fr);Lb(Pz(),fr);Lb(kj(),fr)});var f_e={};Hj(f_e,{handler:()=>l_e,overrideDBManager:()=>a_e});module.exports=Yj(f_e);var CAe=un(L_());var vE;(function(e){(function(t){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=i(e);typeof n.Reflect>"u"?n.Reflect=e:r=i(n.Reflect,r),t(r);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 n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",i=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",a={__proto__:[]}instanceof Array,c=!o&&!a,u={create:o?function(){return Ye(Object.create(null))}:a?function(){return Ye({__proto__:null})}:function(){return Ye({})},has:c?function(E,I){return n.call(E,I)}:function(E,I){return I in E},get:c?function(E,I){return n.call(E,I)?E[I]:void 0}:function(E,I){return E[I]}},d=Object.getPrototypeOf(Function),h=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",m=!h&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:k(),y=!h&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:J(),g=!h&&typeof WeakMap=="function"?WeakMap:Ue(),_=new g;function A(E,I,N,M){if(Ne(N)){if(!Ic(E))throw new TypeError;if(!Ft(I))throw new TypeError;return fe(E,I)}else{if(!Ic(E))throw new TypeError;if(!ke(I))throw new TypeError;if(!ke(M)&&!Ne(M)&&!_r(M))throw new TypeError;return _r(M)&&(M=void 0),N=at(N),de(E,I,N,M)}}t("decorate",A);function R(E,I){function N(M,W){if(!ke(M))throw new TypeError;if(!Ne(W)&&!d_(W))throw new TypeError;ge(E,I,M,W)}return N}t("metadata",R);function T(E,I,N,M){if(!ke(N))throw new TypeError;return Ne(M)||(M=at(M)),ge(E,I,N,M)}t("defineMetadata",T);function G(E,I,N){if(!ke(I))throw new TypeError;return Ne(N)||(N=at(N)),qe(E,I,N)}t("hasMetadata",G);function he(E,I,N){if(!ke(I))throw new TypeError;return Ne(N)||(N=at(N)),Re(E,I,N)}t("hasOwnMetadata",he);function Jt(E,I,N){if(!ke(I))throw new TypeError;return Ne(N)||(N=at(N)),Ae(E,I,N)}t("getMetadata",Jt);function pr(E,I,N){if(!ke(I))throw new TypeError;return Ne(N)||(N=at(N)),Te(E,I,N)}t("getOwnMetadata",pr);function hr(E,I){if(!ke(E))throw new TypeError;return Ne(I)||(I=at(I)),Me(E,I)}t("getMetadataKeys",hr);function ln(E,I){if(!ke(E))throw new TypeError;return Ne(I)||(I=at(I)),Se(E,I)}t("getOwnMetadataKeys",ln);function z(E,I,N){if(!ke(I))throw new TypeError;Ne(N)||(N=at(N));var M=Ee(I,N,!1);if(Ne(M)||!M.delete(E))return!1;if(M.size>0)return!0;var W=_.get(I);return W.delete(N),W.size>0||_.delete(I),!0}t("deleteMetadata",z);function fe(E,I){for(var N=E.length-1;N>=0;--N){var M=E[N],W=M(I);if(!Ne(W)&&!_r(W)){if(!Ft(W))throw new TypeError;I=W}}return I}function de(E,I,N,M){for(var W=E.length-1;W>=0;--W){var tt=E[W],oe=tt(I,N,M);if(!Ne(oe)&&!_r(oe)){if(!ke(oe))throw new TypeError;M=oe}}return M}function Ee(E,I,N){var M=_.get(E);if(Ne(M)){if(!N)return;M=new m,_.set(E,M)}var W=M.get(I);if(Ne(W)){if(!N)return;W=new m,M.set(I,W)}return W}function qe(E,I,N){var M=Re(E,I,N);if(M)return!0;var W=j(I);return _r(W)?!1:qe(E,W,N)}function Re(E,I,N){var M=Ee(I,N,!1);return Ne(M)?!1:ji(M.has(E))}function Ae(E,I,N){var M=Re(E,I,N);if(M)return Te(E,I,N);var W=j(I);if(!_r(W))return Ae(E,W,N)}function Te(E,I,N){var M=Ee(I,N,!1);if(!Ne(M))return M.get(E)}function ge(E,I,N,M){var W=Ee(N,M,!0);W.set(E,I)}function Me(E,I){var N=Se(E,I),M=j(E);if(M===null)return N;var W=Me(M,I);if(W.length<=0)return N;if(N.length<=0)return W;for(var tt=new y,oe=[],ce=0,X=N;ce<X.length;ce++){var _e=X[ce],ye=tt.has(_e);ye||(tt.add(_e),oe.push(_e))}for(var gr=0,Mb=W;gr<Mb.length;gr++){var _e=Mb[gr],ye=tt.has(_e);ye||(tt.add(_e),oe.push(_e))}return oe}function Se(E,I){var N=[],M=Ee(E,I,!1);if(Ne(M))return N;for(var W=M.keys(),tt=w(W),oe=0;;){var ce=x(tt);if(!ce)return N.length=oe,N;var X=P(ce);try{N[oe]=X}catch(_e){try{b(tt)}finally{throw _e}}oe++}}function Gn(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 Ne(E){return E===void 0}function _r(E){return E===null}function ie(E){return typeof E=="symbol"}function ke(E){return typeof E=="object"?E!==null:typeof E=="function"}function c_(E,I){switch(Gn(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 N=I===3?"string":I===5?"number":"default",M=S(E,i);if(M!==void 0){var W=M.call(E,N);if(ke(W))throw new TypeError;return W}return l_(E,N==="default"?"number":N)}function l_(E,I){if(I==="string"){var N=E.toString;if(yr(N)){var M=N.call(E);if(!ke(M))return M}var W=E.valueOf;if(yr(W)){var M=W.call(E);if(!ke(M))return M}}else{var W=E.valueOf;if(yr(W)){var M=W.call(E);if(!ke(M))return M}var tt=E.toString;if(yr(tt)){var M=tt.call(E);if(!ke(M))return M}}throw new TypeError}function ji(E){return!!E}function u_(E){return""+E}function at(E){var I=c_(E,3);return ie(I)?I:u_(I)}function Ic(E){return Array.isArray?Array.isArray(E):E instanceof Object?E instanceof Array:Object.prototype.toString.call(E)==="[object Array]"}function yr(E){return typeof E=="function"}function Ft(E){return typeof E=="function"}function d_(E){switch(Gn(E)){case 3:return!0;case 4:return!0;default:return!1}}function S(E,I){var N=E[I];if(N!=null){if(!yr(N))throw new TypeError;return N}}function w(E){var I=S(E,s);if(!yr(I))throw new TypeError;var N=I.call(E);if(!ke(N))throw new TypeError;return N}function P(E){return E.value}function x(E){var I=E.next();return I.done?!1:I}function b(E){var I=E.return;I&&I.call(E)}function j(E){var I=Object.getPrototypeOf(E);if(typeof E!="function"||E===d||I!==d)return I;var N=E.prototype,M=N&&Object.getPrototypeOf(N);if(M==null||M===Object.prototype)return I;var W=M.constructor;return typeof W!="function"||W===E?I:W}function k(){var E={},I=[],N=function(){function oe(ce,X,_e){this._index=0,this._keys=ce,this._values=X,this._selector=_e}return oe.prototype["@@iterator"]=function(){return this},oe.prototype[s]=function(){return this},oe.prototype.next=function(){var ce=this._index;if(ce>=0&&ce<this._keys.length){var X=this._selector(this._keys[ce],this._values[ce]);return ce+1>=this._keys.length?(this._index=-1,this._keys=I,this._values=I):this._index++,{value:X,done:!1}}return{value:void 0,done:!0}},oe.prototype.throw=function(ce){throw this._index>=0&&(this._index=-1,this._keys=I,this._values=I),ce},oe.prototype.return=function(ce){return this._index>=0&&(this._index=-1,this._keys=I,this._values=I),{value:ce,done:!0}},oe}();return function(){function oe(){this._keys=[],this._values=[],this._cacheKey=E,this._cacheIndex=-2}return Object.defineProperty(oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),oe.prototype.has=function(ce){return this._find(ce,!1)>=0},oe.prototype.get=function(ce){var X=this._find(ce,!1);return X>=0?this._values[X]:void 0},oe.prototype.set=function(ce,X){var _e=this._find(ce,!0);return this._values[_e]=X,this},oe.prototype.delete=function(ce){var X=this._find(ce,!1);if(X>=0){for(var _e=this._keys.length,ye=X+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--,ce===this._cacheKey&&(this._cacheKey=E,this._cacheIndex=-2),!0}return!1},oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=E,this._cacheIndex=-2},oe.prototype.keys=function(){return new N(this._keys,this._values,M)},oe.prototype.values=function(){return new N(this._keys,this._values,W)},oe.prototype.entries=function(){return new N(this._keys,this._values,tt)},oe.prototype["@@iterator"]=function(){return this.entries()},oe.prototype[s]=function(){return this.entries()},oe.prototype._find=function(ce,X){return this._cacheKey!==ce&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=ce)),this._cacheIndex<0&&X&&(this._cacheIndex=this._keys.length,this._keys.push(ce),this._values.push(void 0)),this._cacheIndex},oe}();function M(oe,ce){return oe}function W(oe,ce){return ce}function tt(oe,ce){return[oe,ce]}}function J(){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(I){return this._map.has(I)},E.prototype.add=function(I){return this._map.set(I,I),this},E.prototype.delete=function(I){return this._map.delete(I)},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 Ue(){var E=16,I=u.create(),N=M();return function(){function X(){this._key=M()}return X.prototype.has=function(_e){var ye=W(_e,!1);return ye!==void 0?u.has(ye,this._key):!1},X.prototype.get=function(_e){var ye=W(_e,!1);return ye!==void 0?u.get(ye,this._key):void 0},X.prototype.set=function(_e,ye){var gr=W(_e,!0);return gr[this._key]=ye,this},X.prototype.delete=function(_e){var ye=W(_e,!1);return ye!==void 0?delete ye[this._key]:!1},X.prototype.clear=function(){this._key=M()},X}();function M(){var X;do X="@@WeakMap@@"+ce();while(u.has(I,X));return I[X]=!0,X}function W(X,_e){if(!n.call(X,N)){if(!_e)return;Object.defineProperty(X,N,{value:u.create()})}return X[N]}function tt(X,_e){for(var ye=0;ye<_e;++ye)X[ye]=Math.random()*255|0;return X}function oe(X){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(X)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(X)):tt(new Uint8Array(X),X):tt(new Array(X),X)}function ce(){var X=oe(E);X[6]=X[6]&79|64,X[8]=X[8]&191|128;for(var _e="",ye=0;ye<E;++ye){var gr=X[ye];(ye===4||ye===6||ye===8)&&(_e+="-"),gr<16&&(_e+="0"),_e+=gr.toString(16).toLowerCase()}return _e}}function Ye(E){return E.__=void 0,delete E.__,E}})})(vE||(vE={}));var Gj=un(_t()),zi=un(l0()),a_=un(NM());var o_=un(BM());function iz(e){return typeof e>"u"||e===null}function Vde(e){return typeof e=="object"&&e!==null}function Kde(e){return Array.isArray(e)?e:iz(e)?[]:[e]}function Wde(e,t){var n,r,i,s;if(t)for(s=Object.keys(t),n=0,r=s.length;n<r;n+=1)i=s[n],e[i]=t[i];return e}function Hde(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Yde(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Jde=iz,Qde=Vde,Xde=Kde,Zde=Hde,efe=Yde,tfe=Wde,Je={isNothing:Jde,isObject:Qde,toArray:Xde,repeat:Zde,isNegativeZero:efe,extend:tfe};function sz(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
39
38
|
|
|
40
|
-
`+e.mark.snippet),
|
|
41
|
-
`+
|
|
42
|
-
`,
|
|
43
|
-
`,
|
|
44
|
-
`;return
|
|
45
|
-
\r`;function
|
|
46
|
-
`: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
|
|
47
|
-
`,t-1))}function
|
|
48
|
-
`,s?1+
|
|
49
|
-
`);break}for(
|
|
50
|
-
`,s?1+
|
|
51
|
-
`,
|
|
52
|
-
`,
|
|
53
|
-
`,s?1+
|
|
54
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var
|
|
55
|
-
`,
|
|
56
|
-
`&&(s+=
|
|
57
|
-
`+
|
|
58
|
-
`,i=
|
|
39
|
+
`+e.mark.snippet),r+" "+n):r}function hc(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=sz(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}hc.prototype=Object.create(Error.prototype);hc.prototype.constructor=hc;hc.prototype.toString=function(t){return this.name+": "+sz(this,t)};var Dt=hc;function K0(e,t,n,r,i){var s="",o="",a=Math.floor(i/2)-1;return r-t>a&&(s=" ... ",t=r-a+s.length),n-r>a&&(o=" ...",n=r+a-o.length),{str:s+e.slice(t,n).replace(/\t/g,"\u2192")+o,pos:r-t+s.length}}function W0(e,t){return Je.repeat(" ",t-e.length)+e}function nfe(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 n=/\r?\n|\r|\0/g,r=[0],i=[],s,o=-1;s=n.exec(e.buffer);)i.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var a="",c,u,d=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+d+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)u=K0(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),h),a=Je.repeat(" ",t.indent)+W0((e.line-c+1).toString(),d)+" | "+u.str+`
|
|
40
|
+
`+a;for(u=K0(e.buffer,r[o],i[o],e.position,h),a+=Je.repeat(" ",t.indent)+W0((e.line+1).toString(),d)+" | "+u.str+`
|
|
41
|
+
`,a+=Je.repeat("-",t.indent+d+3+u.pos)+`^
|
|
42
|
+
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=K0(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),h),a+=Je.repeat(" ",t.indent)+W0((e.line+c+1).toString(),d)+" | "+u.str+`
|
|
43
|
+
`;return a.replace(/\n$/,"")}var rfe=nfe,ife=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],sfe=["scalar","sequence","mapping"];function ofe(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function afe(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(ife.indexOf(n)===-1)throw new Dt('Unknown option "'+n+'" 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(n){return n},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=ofe(t.styleAliases||null),sfe.indexOf(this.kind)===-1)throw new Dt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var pt=afe;function GM(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(s,o){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(i=o)}),n[i]=r}),n}function cfe(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(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,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function Y0(e){return this.extend(e)}Y0.prototype.extend=function(t){var n=[],r=[];if(t instanceof pt)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Dt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(s){if(!(s instanceof pt))throw new Dt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Dt("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 Dt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof pt))throw new Dt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Y0.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=GM(i,"implicit"),i.compiledExplicit=GM(i,"explicit"),i.compiledTypeMap=cfe(i.compiledImplicit,i.compiledExplicit),i};var lfe=Y0,ufe=new pt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),dfe=new pt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),ffe=new pt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),mfe=new lfe({explicit:[ufe,dfe,ffe]});function pfe(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function hfe(){return null}function _fe(e){return e===null}var yfe=new pt("tag:yaml.org,2002:null",{kind:"scalar",resolve:pfe,construct:hfe,predicate:_fe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function gfe(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 vfe(e){return e==="true"||e==="True"||e==="TRUE"}function Sfe(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var wfe=new pt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:gfe,construct:vfe,predicate:Sfe,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 bfe(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Efe(e){return 48<=e&&e<=55}function Afe(e){return 48<=e&&e<=57}function Tfe(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!bfe(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!Efe(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!Afe(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function Cfe(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function xfe(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Je.isNegativeZero(e)}var Ife=new pt("tag:yaml.org,2002:int",{kind:"scalar",resolve:Tfe,construct:Cfe,predicate:xfe,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"]}}),Rfe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Dfe(e){return!(e===null||!Rfe.test(e)||e[e.length-1]==="_")}function Nfe(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var Pfe=/^[-+]?[0-9]+e/;function Ofe(e,t){var n;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(Je.isNegativeZero(e))return"-0.0";return n=e.toString(10),Pfe.test(n)?n.replace("e",".e"):n}function Lfe(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Je.isNegativeZero(e))}var qfe=new pt("tag:yaml.org,2002:float",{kind:"scalar",resolve:Dfe,construct:Nfe,predicate:Lfe,represent:Ofe,defaultStyle:"lowercase"}),Mfe=mfe.extend({implicit:[yfe,wfe,Ife,qfe]}),zfe=Mfe,oz=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),az=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 jfe(e){return e===null?!1:oz.exec(e)!==null||az.exec(e)!==null}function kfe(e){var t,n,r,i,s,o,a,c=0,u=null,d,h,m;if(t=oz.exec(e),t===null&&(t=az.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,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],h=+(t[11]||0),u=(d*60+h)*6e4,t[9]==="-"&&(u=-u)),m=new Date(Date.UTC(n,r,i,s,o,a,c)),u&&m.setTime(m.getTime()-u),m}function Ffe(e){return e.toISOString()}var Ufe=new pt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:jfe,construct:kfe,instanceOf:Date,represent:Ffe});function Bfe(e){return e==="<<"||e===null}var Gfe=new pt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Bfe}),eb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
44
|
+
\r`;function $fe(e){if(e===null)return!1;var t,n,r=0,i=e.length,s=eb;for(n=0;n<i;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function Vfe(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,s=eb,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(r.charAt(t));return n=i%4*6,n===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):n===18?(a.push(o>>10&255),a.push(o>>2&255)):n===12&&a.push(o>>4&255),new Uint8Array(a)}function Kfe(e){var t="",n=0,r,i,s=e.length,o=eb;for(r=0;r<s;r++)r%3===0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=s%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Wfe(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Hfe=new pt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:$fe,construct:Vfe,predicate:Wfe,represent:Kfe}),Yfe=Object.prototype.hasOwnProperty,Jfe=Object.prototype.toString;function Qfe(e){if(e===null)return!0;var t=[],n,r,i,s,o,a=e;for(n=0,r=a.length;n<r;n+=1){if(i=a[n],o=!1,Jfe.call(i)!=="[object Object]")return!1;for(s in i)if(Yfe.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 Xfe(e){return e!==null?e:[]}var Zfe=new pt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qfe,construct:Xfe}),eme=Object.prototype.toString;function tme(e){if(e===null)return!0;var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],eme.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;s[t]=[i[0],r[i[0]]]}return!0}function nme(e){if(e===null)return[];var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),s[t]=[i[0],r[i[0]]];return s}var rme=new pt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:tme,construct:nme}),ime=Object.prototype.hasOwnProperty;function sme(e){if(e===null)return!0;var t,n=e;for(t in n)if(ime.call(n,t)&&n[t]!==null)return!1;return!0}function ome(e){return e!==null?e:{}}var ame=new pt("tag:yaml.org,2002:set",{kind:"mapping",resolve:sme,construct:ome}),cz=zfe.extend({implicit:[Ufe,Gfe],explicit:[Hfe,Zfe,rme,ame]}),Jr=Object.prototype.hasOwnProperty,Uh=1,lz=2,uz=3,Bh=4,H0=1,cme=2,$M=3,lme=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ume=/[\x85\u2028\u2029]/,dme=/[,\[\]\{\}]/,dz=/^(?:!|!!|![a-z\-]+!)$/i,fz=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function VM(e){return Object.prototype.toString.call(e)}function Un(e){return e===10||e===13}function Oi(e){return e===9||e===32}function Nt(e){return e===9||e===32||e===10||e===13}function $s(e){return e===44||e===91||e===93||e===123||e===125}function fme(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function mme(e){return e===120?2:e===117?4:e===85?8:0}function pme(e){return 48<=e&&e<=57?e-48:-1}function KM(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 hme(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var mz=new Array(256),pz=new Array(256);for(Pi=0;Pi<256;Pi++)mz[Pi]=KM(Pi)?1:0,pz[Pi]=KM(Pi);var Pi;function _me(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||cz,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 hz(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=rfe(n),new Dt(t,n)}function V(e,t){throw hz(e,t)}function Gh(e,t){e.onWarning&&e.onWarning.call(null,hz(e,t))}var WM={YAML:function(t,n,r){var i,s,o;t.version!==null&&V(t,"duplication of %YAML directive"),r.length!==1&&V(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[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=r[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Gh(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,s;r.length!==2&&V(t,"TAG directive accepts exactly two arguments"),i=r[0],s=r[1],dz.test(i)||V(t,"ill-formed tag handle (first argument) of the TAG directive"),Jr.call(t.tagMap,i)&&V(t,'there is a previously declared suffix for "'+i+'" tag handle'),fz.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 Yr(e,t,n,r){var i,s,o,a;if(t<n){if(a=e.input.slice(t,n),r)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 lme.test(a)&&V(e,"the stream contains non-printable characters");e.result+=a}}function HM(e,t,n,r){var i,s,o,a;for(Je.isObject(n)||V(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,a=i.length;o<a;o+=1)s=i[o],Jr.call(t,s)||(t[s]=n[s],r[s]=!0)}function Vs(e,t,n,r,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"&&VM(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&VM(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,d=s.length;u<d;u+=1)HM(e,t,s[u],n);else HM(e,t,s,n);else!e.json&&!Jr.call(n,i)&&Jr.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 n[i];return t}function tb(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 He(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Oi(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(Un(i))for(tb(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Gh(e,"deficient indentation"),r}function Kh(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Nt(n)))}function nb(e,t){t===1?e.result+=" ":t>1&&(e.result+=Je.repeat(`
|
|
46
|
+
`,t-1))}function yme(e,t,n){var r,i,s,o,a,c,u,d,h=e.kind,m=e.result,y;if(y=e.input.charCodeAt(e.position),Nt(y)||$s(y)||y===35||y===38||y===42||y===33||y===124||y===62||y===39||y===34||y===37||y===64||y===96||(y===63||y===45)&&(i=e.input.charCodeAt(e.position+1),Nt(i)||n&&$s(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;y!==0;){if(y===58){if(i=e.input.charCodeAt(e.position+1),Nt(i)||n&&$s(i))break}else if(y===35){if(r=e.input.charCodeAt(e.position-1),Nt(r))break}else{if(e.position===e.lineStart&&Kh(e)||n&&$s(y))break;if(Un(y))if(c=e.line,u=e.lineStart,d=e.lineIndent,He(e,!1,-1),e.lineIndent>=t){a=!0,y=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=u,e.lineIndent=d;break}}a&&(Yr(e,s,o,!1),nb(e,e.line-c),s=o=e.position,a=!1),Oi(y)||(o=e.position+1),y=e.input.charCodeAt(++e.position)}return Yr(e,s,o,!1),e.result?!0:(e.kind=h,e.result=m,!1)}function gme(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Yr(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else Un(n)?(Yr(e,r,i,!0),nb(e,He(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Kh(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 vme(e,t){var n,r,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Yr(e,n,e.position,!0),e.position++,!0;if(a===92){if(Yr(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),Un(a))He(e,!1,t);else if(a<256&&mz[a])e.result+=pz[a],e.position++;else if((o=mme(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=fme(a))>=0?s=(s<<4)+o:V(e,"expected hexadecimal character");e.result+=hme(s),e.position++}else V(e,"unknown escape sequence");n=r=e.position}else Un(a)?(Yr(e,n,r,!0),nb(e,He(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Kh(e)?V(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}V(e,"unexpected end of the stream within a double quoted scalar")}function Sme(e,t){var n=!0,r,i,s,o=e.tag,a,c=e.anchor,u,d,h,m,y,g=Object.create(null),_,A,R,T;if(T=e.input.charCodeAt(e.position),T===91)d=93,y=!1,a=[];else if(T===123)d=125,y=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),T=e.input.charCodeAt(++e.position);T!==0;){if(He(e,!0,t),T=e.input.charCodeAt(e.position),T===d)return e.position++,e.tag=o,e.anchor=c,e.kind=y?"mapping":"sequence",e.result=a,!0;n?T===44&&V(e,"expected the node content, but found ','"):V(e,"missed comma between flow collection entries"),A=_=R=null,h=m=!1,T===63&&(u=e.input.charCodeAt(e.position+1),Nt(u)&&(h=m=!0,e.position++,He(e,!0,t))),r=e.line,i=e.lineStart,s=e.position,Ks(e,t,Uh,!1,!0),A=e.tag,_=e.result,He(e,!0,t),T=e.input.charCodeAt(e.position),(m||e.line===r)&&T===58&&(h=!0,T=e.input.charCodeAt(++e.position),He(e,!0,t),Ks(e,t,Uh,!1,!0),R=e.result),y?Vs(e,a,g,A,_,R,r,i,s):h?a.push(Vs(e,null,g,A,_,R,r,i,s)):a.push(_),He(e,!0,t),T=e.input.charCodeAt(e.position),T===44?(n=!0,T=e.input.charCodeAt(++e.position)):n=!1}V(e,"unexpected end of the stream within a flow collection")}function wme(e,t){var n,r,i=H0,s=!1,o=!1,a=t,c=0,u=!1,d,h;if(h=e.input.charCodeAt(e.position),h===124)r=!1;else if(h===62)r=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)H0===i?i=h===43?$M:cme:V(e,"repeat of a chomping mode identifier");else if((d=pme(h))>=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(Oi(h)){do h=e.input.charCodeAt(++e.position);while(Oi(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!Un(h)&&h!==0)}for(;h!==0;){for(tb(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Un(h)){c++;continue}if(e.lineIndent<a){i===$M?e.result+=Je.repeat(`
|
|
47
|
+
`,s?1+c:c):i===H0&&s&&(e.result+=`
|
|
48
|
+
`);break}for(r?Oi(h)?(u=!0,e.result+=Je.repeat(`
|
|
49
|
+
`,s?1+c:c)):u?(u=!1,e.result+=Je.repeat(`
|
|
50
|
+
`,c+1)):c===0?s&&(e.result+=" "):e.result+=Je.repeat(`
|
|
51
|
+
`,c):e.result+=Je.repeat(`
|
|
52
|
+
`,s?1+c:c),s=!0,o=!0,c=0,n=e.position;!Un(h)&&h!==0;)h=e.input.charCodeAt(++e.position);Yr(e,n,e.position,!1)}return!0}function YM(e,t){var n,r=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),!Nt(o))));){if(a=!0,e.position++,He(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,Ks(e,t,uz,!1,!0),s.push(e.result),He(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)V(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function bme(e,t,n){var r,i,s,o,a,c,u=e.tag,d=e.anchor,h={},m=Object.create(null),y=null,g=null,_=null,A=!1,R=!1,T;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),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")),r=e.input.charCodeAt(e.position+1),s=e.line,(T===63||T===58)&&Nt(r))T===63?(A&&(Vs(e,h,m,y,g,null,o,a,c),y=g=_=null),R=!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=r;else{if(o=e.line,a=e.lineStart,c=e.position,!Ks(e,n,lz,!1,!0))break;if(e.line===s){for(T=e.input.charCodeAt(e.position);Oi(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),Nt(T)||V(e,"a whitespace character is expected after the key-value separator within a block mapping"),A&&(Vs(e,h,m,y,g,null,o,a,c),y=g=_=null),R=!0,A=!1,i=!1,y=e.tag,g=e.result;else if(R)V(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=d,!0}else if(R)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),Ks(e,t,Bh,!0,i)&&(A?g=e.result:_=e.result),A||(Vs(e,h,m,y,g,_,o,a,c),y=g=_=null),He(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&&Vs(e,h,m,y,g,null,o,a,c),R&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=h),R}function Eme(e){var t,n=!1,r=!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?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){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&&!Nt(o);)o===33&&(r?V(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),dz.test(i)||V(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),dme.test(s)&&V(e,"tag suffix cannot contain flow indicator characters")}s&&!fz.test(s)&&V(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{V(e,"tag name is malformed: "+s)}return n?e.tag=s:Jr.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 Ame(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&V(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Nt(n)&&!$s(n);)n=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 Tme(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Nt(r)&&!$s(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&V(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Jr.call(e.anchorMap,n)||V(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],He(e,!0,-1),!0}function Ks(e,t,n,r,i){var s,o,a,c=1,u=!1,d=!1,h,m,y,g,_,A;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Bh===n||uz===n,r&&He(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;Eme(e)||Ame(e);)He(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||Bh===n)&&(Uh===n||lz===n?_=t:_=t+1,A=e.position-e.lineStart,c===1?a&&(YM(e,A)||bme(e,A,_))||Sme(e,_)?d=!0:(o&&wme(e,_)||gme(e,_)||vme(e,_)?d=!0:Tme(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&V(e,"alias node should not have any properties")):yme(e,_,Uh===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(d=a&&YM(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+'"'),h=0,m=e.implicitTypes.length;h<m;h+=1)if(g=e.implicitTypes[h],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(Jr.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,y=e.typeMap.multi[e.kind||"fallback"],h=0,m=y.length;h<m;h+=1)if(e.tag.slice(0,y[h].tag.length)===y[h].tag){g=y[h];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 Cme(e){var t=e.position,n,r,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&&(He(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!Nt(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&V(e,"directive name must not be less than one character in length");o!==0;){for(;Oi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Un(o));break}if(Un(o))break;for(n=e.position;o!==0&&!Nt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&tb(e),Jr.call(WM,r)?WM[r](e,r,i):Gh(e,'unknown document directive "'+r+'"')}if(He(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,He(e,!0,-1)):s&&V(e,"directives end mark is expected"),Ks(e,e.lineIndent-1,Bh,!1,!0),He(e,!0,-1),e.checkLineBreaks&&ume.test(e.input.slice(t,e.position))&&Gh(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Kh(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,He(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 _z(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 n=new _me(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,V(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Cme(n);return n.documents}function xme(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=_z(e,n);if(typeof t!="function")return r;for(var i=0,s=r.length;i<s;i+=1)t(r[i])}function Ime(e,t){var n=_z(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Dt("expected a single document in the stream, but found more")}}var Rme=xme,Dme=Ime,yz={loadAll:Rme,load:Dme},gz=Object.prototype.toString,vz=Object.prototype.hasOwnProperty,rb=65279,Nme=9,_c=10,Pme=13,Ome=32,Lme=33,qme=34,J0=35,Mme=37,zme=38,jme=39,kme=42,Sz=44,Fme=45,$h=58,Ume=61,Bme=62,Gme=63,$me=64,wz=91,bz=93,Vme=96,Ez=123,Kme=124,Az=125,ht={};ht[0]="\\0";ht[7]="\\a";ht[8]="\\b";ht[9]="\\t";ht[10]="\\n";ht[11]="\\v";ht[12]="\\f";ht[13]="\\r";ht[27]="\\e";ht[34]='\\"';ht[92]="\\\\";ht[133]="\\N";ht[160]="\\_";ht[8232]="\\L";ht[8233]="\\P";var Wme=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Hme=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Yme(e,t){var n,r,i,s,o,a,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,s=r.length;i<s;i+=1)o=r[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&vz.call(c.styleAliases,a)&&(a=c.styleAliases[a]),n[o]=a;return n}function Jme(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Dt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Je.repeat("0",r-t.length)+t}var Qme=1,yc=2;function Xme(e){this.schema=e.schema||cz,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Je.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Yme(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==='"'?yc:Qme,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 JM(e,t){for(var n=Je.repeat(" ",t),r=0,i=-1,s="",o,a=e.length;r<a;)i=e.indexOf(`
|
|
54
|
+
`,r),i===-1?(o=e.slice(r),r=a):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
|
|
55
|
+
`&&(s+=n),s+=o;return s}function Q0(e,t){return`
|
|
56
|
+
`+Je.repeat(" ",e.indent*t)}function Zme(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function Vh(e){return e===Ome||e===Nme}function gc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==rb||65536<=e&&e<=1114111}function QM(e){return gc(e)&&e!==rb&&e!==Pme&&e!==_c}function XM(e,t,n){var r=QM(e),i=r&&!Vh(e);return(n?r:r&&e!==Sz&&e!==wz&&e!==bz&&e!==Ez&&e!==Az)&&e!==J0&&!(t===$h&&!i)||QM(t)&&!Vh(t)&&e===J0||t===$h&&i}function epe(e){return gc(e)&&e!==rb&&!Vh(e)&&e!==Fme&&e!==Gme&&e!==$h&&e!==Sz&&e!==wz&&e!==bz&&e!==Ez&&e!==Az&&e!==J0&&e!==zme&&e!==kme&&e!==Lme&&e!==Kme&&e!==Ume&&e!==Bme&&e!==jme&&e!==qme&&e!==Mme&&e!==$me&&e!==Vme}function tpe(e){return!Vh(e)&&e!==$h}function pc(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Tz(e){var t=/^\n* /;return t.test(e)}var Cz=1,X0=2,xz=3,Iz=4,Gs=5;function npe(e,t,n,r,i,s,o,a){var c,u=0,d=null,h=!1,m=!1,y=r!==-1,g=-1,_=epe(pc(e,0))&&tpe(pc(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=pc(e,c),!gc(u))return Gs;_=_&&XM(u,d,a),d=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=pc(e,c),u===_c)h=!0,y&&(m=m||c-g-1>r&&e[g+1]!==" ",g=c);else if(!gc(u))return Gs;_=_&&XM(u,d,a),d=u}m=m||y&&c-g-1>r&&e[g+1]!==" "}return!h&&!m?_&&!o&&!i(e)?Cz:s===yc?Gs:X0:n>9&&Tz(e)?Gs:o?s===yc?Gs:X0:m?Iz:xz}function rpe(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===yc?'""':"''";if(!e.noCompatMode&&(Wme.indexOf(t)!==-1||Hme.test(t)))return e.quotingType===yc?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=r||e.flowLevel>-1&&n>=e.flowLevel;function c(u){return Zme(e,u)}switch(npe(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case Cz:return t;case X0:return"'"+t.replace(/'/g,"''")+"'";case xz:return"|"+ZM(t,e.indent)+ez(JM(t,s));case Iz:return">"+ZM(t,e.indent)+ez(JM(ipe(t,o),s));case Gs:return'"'+spe(t)+'"';default:throw new Dt("impossible error: invalid scalar style")}}()}function ZM(e,t){var n=Tz(e)?String(t):"",r=e[e.length-1]===`
|
|
57
|
+
`,i=r&&(e[e.length-2]===`
|
|
59
58
|
`||e===`
|
|
60
|
-
`),s=i?"+":
|
|
61
|
-
`}function
|
|
62
|
-
`?e.slice(0,-1):e}function
|
|
63
|
-
`);return u=u!==-1?u:e.length,
|
|
64
|
-
`||e[0]===" ",s,
|
|
65
|
-
`:"")+
|
|
66
|
-
`+e.slice(i,s),i=s+1),a
|
|
67
|
-
`,e.length-i>t&&
|
|
68
|
-
`+e.slice(
|
|
69
|
-
`:""}var
|
|
59
|
+
`),s=i?"+":r?"":"-";return n+s+`
|
|
60
|
+
`}function ez(e){return e[e.length-1]===`
|
|
61
|
+
`?e.slice(0,-1):e}function ipe(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var u=e.indexOf(`
|
|
62
|
+
`);return u=u!==-1?u:e.length,n.lastIndex=u,tz(e.slice(0,u),t)}(),i=e[0]===`
|
|
63
|
+
`||e[0]===" ",s,o;o=n.exec(e);){var a=o[1],c=o[2];s=c[0]===" ",r+=a+(!i&&!s&&c!==""?`
|
|
64
|
+
`:"")+tz(c,t),i=s}return r}function tz(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,s,o=0,a=0,c="";r=n.exec(e);)a=r.index,a-i>t&&(s=o>i?o:a,c+=`
|
|
65
|
+
`+e.slice(i,s),i=s+1),o=a;return c+=`
|
|
66
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
67
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function spe(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=pc(e,i),r=ht[n],!r&&gc(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||Jme(n);return t}function ope(e,t,n){var r="",i=e.tag,s,o,a;for(s=0,o=n.length;s<o;s+=1)a=n[s],e.replacer&&(a=e.replacer.call(n,String(s),a)),(cr(e,t,a,!1,!1)||typeof a>"u"&&cr(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function nz(e,t,n,r){var i="",s=e.tag,o,a,c;for(o=0,a=n.length;o<a;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(cr(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&cr(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=Q0(e,t)),e.dump&&_c===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function ape(e,t,n){var r="",i=e.tag,s=Object.keys(n),o,a,c,u,d;for(o=0,a=s.length;o<a;o+=1)d="",r!==""&&(d+=", "),e.condenseFlow&&(d+='"'),c=s[o],u=n[c],e.replacer&&(u=e.replacer.call(n,c,u)),cr(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),cr(e,t,u,!1,!1)&&(d+=e.dump,r+=d));e.tag=i,e.dump="{"+r+"}"}function cpe(e,t,n,r){var i="",s=e.tag,o=Object.keys(n),a,c,u,d,h,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new Dt("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)m="",(!r||i!=="")&&(m+=Q0(e,t)),u=o[a],d=n[u],e.replacer&&(d=e.replacer.call(n,u,d)),cr(e,t+1,u,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&_c===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,h&&(m+=Q0(e,t)),cr(e,t+1,d,!0,h)&&(e.dump&&_c===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,i+=m));e.tag=s,e.dump=i||"{}"}function rz(e,t,n){var r,i,s,o,a,c;for(i=n?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(n?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,gz.call(a.represent)==="[object Function]")r=a.represent(t,c);else if(vz.call(a.represent,c))r=a.represent[c](t,c);else throw new Dt("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function cr(e,t,n,r,i,s,o){e.tag=null,e.dump=n,rz(e,n,!1)||rz(e,n,!0);var a=gz.call(e.dump),c=r,u;r&&(r=e.flowLevel<0||e.flowLevel>t);var d=a==="[object Object]"||a==="[object Array]",h,m;if(d&&(h=e.duplicates.indexOf(n),m=h!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(i=!1),m&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(d&&m&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),a==="[object Object]")r&&Object.keys(e.dump).length!==0?(cpe(e,t,e.dump,i),m&&(e.dump="&ref_"+h+e.dump)):(ape(e,t,e.dump),m&&(e.dump="&ref_"+h+" "+e.dump));else if(a==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?nz(e,t-1,e.dump,i):nz(e,t,e.dump,i),m&&(e.dump="&ref_"+h+e.dump)):(ope(e,t,e.dump),m&&(e.dump="&ref_"+h+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&rpe(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Dt("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 lpe(e,t){var n=[],r=[],i,s;for(Z0(e,n,r),i=0,s=r.length;i<s;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(s)}function Z0(e,t,n){var r,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Z0(e[i],t,n);else for(r=Object.keys(e),i=0,s=r.length;i<s;i+=1)Z0(e[r[i]],t,n)}function upe(e,t){t=t||{};var n=new Xme(t);n.noRefs||lpe(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),cr(n,0,r,!0,!0)?n.dump+`
|
|
68
|
+
`:""}var dpe=upe,fpe={dump:dpe};function ib(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 Rz=yz.load,aAe=yz.loadAll,cAe=fpe.dump;var lAe=ib("safeLoad","load"),uAe=ib("safeLoadAll","loadAll"),dAe=ib("safeDump","dump");var xc=un(r_()),Uj=un(r_());var s_=un(I0()),i_=class{static async getExistingFiles(t){let n=[];for(let r of t)await(0,s_.pathExists)(r)&&n.push(r);return n}static getExistingFilesSync(t){let n=[];for(let r of t)(0,s_.pathExistsSync)(r)&&n.push(r);return n}};var Fj=un(r_());var Cc=class{};ki([(0,Fj.Property)({doc:"DynamoDB Table Name",default:"MicroApps",env:"DATABASE_TABLE_NAME"})],Cc.prototype,"tableName",2);var et=class{static configFiles(){let t=["./configs/config.yaml","./configs/config.yml",`./configs/config-${et.envLevel}.yaml`,`./configs/config-${et.envLevel}.yml`];return i_.getExistingFilesSync(t)}static get instance(){if(et._instance===void 0){let t=new Uj.TSConvict(et);et._instance=t.load(et.configFiles())}return et._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};ki([xc.Property(Cc)],et.prototype,"db",2),ki([xc.Property({doc:"Path prefix for this deployment",default:"",env:"ROOT_PATH_PREFIX"})],et.prototype,"rootPathPrefix",2),et=ki([xc.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:Rz},formats:{url:o_.url,ipaddress:o_.ipaddress}})],et);var Bj=un(N0()),eo=class{};eo.Instance=new Bj.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0});var mr=eo.Instance,to,qb=new Gj.DynamoDBClient({maxAttempts:8});function a_e(e){to=e.dbManager,qb=e.dynamoClient}to=new zi.DBManager({dynamoClient:qb,tableName:et.instance.db.tableName});var c_e=(0,a_.loadAppFrame)({basePath:__dirname}),kt=(0,a_.normalizePathPrefix)(et.instance.rootPathPrefix);async function l_e(e,t){mr.options.meta={source:"microapps-router",awsRequestId:t.awsRequestId,rawPath:e.rawPath},mr.info("received request",{event:e}),to===void 0&&(to=new zi.DBManager({dynamoClient:qb,tableName:et.instance.db.tableName}));let n={statusCode:200,headers:{},isBase64Encoded:!1};try{if(kt!==""&&!e.rawPath.startsWith(kt))return n.statusCode=404,n;let i=(kt!==""&&e.rawPath.startsWith(kt)?e.rawPath.slice(kt.length-1):e.rawPath).split("/"),s="";if(i.length>=3&&i[2]!==""&&(s=i.slice(2).join("/")),(i.length===3||i.length===4)&&await d_e({response:n,appName:i[1],semVer:i[2]}))return n;if(i.length>=2)await u_e({event:e,response:n,appName:i[1],additionalParts:s});else throw new Error("Unmatched route")}catch(r){mr.error("unexpected exception - returning 599",{statusCode:599,error:r}),n.statusCode=599,n.headers={},n.headers["Content-Type"]="text/plain",n.body=`Router - Could not route: ${e.rawPath}, ${r.message}`}return n}async function u_e(e){var d,h;let{event:t,response:n,appName:r,additionalParts:i}=e,s;if(n.headers===void 0)throw new Error("do not call me with undefined headers");try{s=await zi.Application.GetVersionsAndRules({dbManager:to,key:{AppName:r}})}catch(m){mr.info(`GetVersionsAndRules threw for '${r}', assuming not found - returning 404`,{appName:r,statusCode:404,error:m}),n.statusCode=404,n.headers["Cache-Control"]="private",n.headers["Content-Type"]="text/plain; charset=UTF-8",n.body=`Router - Could not find app: ${t.rawPath}, ${r}`;return}let o=(h=(d=s.Rules)==null?void 0:d.RuleSet.default)==null?void 0:h.SemVer;if(o==null){mr.error(`could not find app ${r}, for path ${t.rawPath} - returning 404`,{statusCode:404}),n.statusCode=404,n.headers["Cache-Control"]="private",n.headers["Content-Type"]="text/plain; charset=UTF-8",n.body=`Router - Could not find app: ${t.rawPath}, ${r}`;return}let a=s.Versions.find(m=>m.SemVer===o),c;(a==null?void 0:a.Type)!=="static"&&((a==null?void 0:a.DefaultFile)===void 0||(a==null?void 0:a.DefaultFile)===""||i!=="")?(c=`${kt}/${r}/${o}`,i!==""&&(c+=`/${i}`)):c=`${kt}/${r}/${o}/${a.DefaultFile}`;let u=c_e.replace("{{iframeSrc}}",c);n.headers["Cache-Control"]="private",n.headers["Content-Type"]="text/html; charset=UTF-8",n.statusCode=200,n.body=u,mr.info(`found app ${r}, for path ${t.rawPath} - returning 200`,{statusCode:200,routedPath:c})}async function d_e(e){let{response:t,appName:n,semVer:r}=e,i;if(t.headers===void 0)throw new Error("do not call me with undefined headers");try{i=await zi.Version.LoadVersion({dbManager:to,key:{AppName:n,SemVer:r}})}catch(s){return mr.info(`LoadVersion threw for '${kt}/${n}/${r}' - falling through to app routing'`,{appName:n,semVer:r,error:s}),!1}return i===void 0?(mr.info(`LoadVersion returned undefined for '${kt}/${n}/${r}', assuming not found - falling through to app routing'`,{appName:n,semVer:r}),!1):i.DefaultFile?(t.statusCode=302,t.headers["Cache-Control"]="private",t.headers.Location=`${kt}/${n}/${r}/${i.DefaultFile}`,mr.info(`found '${kt}/${n}/${r}' - returning 302 to ${kt}/${n}/${r}/${i.DefaultFile}`,{statusCode:302,routedPath:`${kt}/${n}/${r}/${i.DefaultFile}`}),!0):!1}0&&(module.exports={handler,overrideDBManager});
|
|
70
69
|
/*! *****************************************************************************
|
|
71
70
|
Copyright (C) Microsoft. All rights reserved.
|
|
72
71
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|