@pwrdrvr/microapps-cdk 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,63 +1,64 @@
1
- var kP=Object.create;var ei=Object.defineProperty,NP=Object.defineProperties,Jg=Object.getOwnPropertyDescriptor,PP=Object.getOwnPropertyDescriptors,LP=Object.getOwnPropertyNames,wa=Object.getOwnPropertySymbols,qP=Object.getPrototypeOf,Vm=Object.prototype.hasOwnProperty,Qg=Object.prototype.propertyIsEnumerable;var Xg=(e,t,n)=>t in e?ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t)=>{for(var n in t||(t={}))Vm.call(t,n)&&Xg(e,n,t[n]);if(wa)for(var n of wa(t))Qg.call(t,n)&&Xg(e,n,t[n]);return e},u=(e,t)=>NP(e,PP(t)),Zg=e=>ei(e,"__esModule",{value:!0});var Yn=(e,t)=>{var n={};for(var r in e)Vm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&wa)for(var r of wa(e))t.indexOf(r)<0&&Qg.call(e,r)&&(n[r]=e[r]);return n};var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),MP=(e,t)=>{Zg(e);for(var n in t)ei(e,n,{get:t[n],enumerable:!0})},OP=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of LP(t))!Vm.call(e,r)&&r!=="default"&&ei(e,r,{get:()=>t[r],enumerable:!(n=Jg(t,r))||n.enumerable});return e},Vt=e=>OP(Zg(ei(e!=null?kP(qP(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),ss=(e,t,n,r)=>{for(var i=r>1?void 0:r?Jg(t,n):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&ei(t,n,i),i};var t_=h(Wm=>{var e_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Wm.encode=function(e){if(0<=e&&e<e_.length)return e_[e];throw new TypeError("Must be between 0 and 63: "+e)};Wm.decode=function(e){var t=65,n=90,r=97,i=122,s=48,a=57,c=43,l=47,m=26,f=52;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+m:s<=e&&e<=a?e-s+f:e==c?62:e==l?63:-1}});var Jm=h(Ym=>{var n_=t_(),Hm=5,r_=1<<Hm,i_=r_-1,s_=r_;function zP(e){return e<0?(-e<<1)+1:(e<<1)+0}function jP(e){var t=(e&1)==1,n=e>>1;return t?-n:n}Ym.encode=function(t){var n="",r,i=zP(t);do r=i&i_,i>>>=Hm,i>0&&(r|=s_),n+=n_.encode(r);while(i>0);return n};Ym.decode=function(t,n,r){var i=t.length,s=0,a=0,c,l;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(l=n_.decode(t.charCodeAt(n++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));c=!!(l&s_),l&=i_,s=s+(l<<a),a+=Hm}while(c);r.value=jP(s),r.rest=n}});var ri=h(tt=>{function UP(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}tt.getArg=UP;var a_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,BP=/^data:.+\,.+$/;function as(e){var t=e.match(a_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}tt.urlParse=as;function ti(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}tt.urlGenerate=ti;function Qm(e){var t=e,n=as(e);if(n){if(!n.path)return e;t=n.path}for(var r=tt.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=r?"/":"."),n?(n.path=t,ti(n)):t}tt.normalize=Qm;function o_(e,t){e===""&&(e="."),t===""&&(t=".");var n=as(t),r=as(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),ti(n);if(n||t.match(BP))return t;if(r&&!r.host&&!r.path)return r.host=t,ti(r);var i=t.charAt(0)==="/"?t:Qm(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,ti(r)):i}tt.join=o_;tt.isAbsolute=function(e){return e.charAt(0)==="/"||a_.test(e)};function FP(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)}tt.relative=FP;var c_=function(){var e=Object.create(null);return!("__proto__"in e)}();function l_(e){return e}function GP(e){return d_(e)?"$"+e:e}tt.toSetString=c_?l_:GP;function $P(e){return d_(e)?e.slice(1):e}tt.fromSetString=c_?l_:$P;function d_(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 KP(e,t,n){var r=ni(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:ni(e.name,t.name)}tt.compareByOriginalPositions=KP;function VP(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=ni(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:ni(e.name,t.name)}tt.compareByGeneratedPositionsDeflated=VP;function ni(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function WP(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=ni(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:ni(e.name,t.name)}tt.compareByGeneratedPositionsInflated=WP;function HP(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}tt.parseSourceMapInput=HP;function YP(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=as(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=o_(ti(r),t)}return Qm(t)}tt.computeSourceURL=YP});var ef=h(u_=>{var Xm=ri(),Zm=Object.prototype.hasOwnProperty,Er=typeof Map!="undefined";function xn(){this._array=[],this._set=Er?new Map:Object.create(null)}xn.fromArray=function(t,n){for(var r=new xn,i=0,s=t.length;i<s;i++)r.add(t[i],n);return r};xn.prototype.size=function(){return Er?this._set.size:Object.getOwnPropertyNames(this._set).length};xn.prototype.add=function(t,n){var r=Er?t:Xm.toSetString(t),i=Er?this.has(t):Zm.call(this._set,r),s=this._array.length;(!i||n)&&this._array.push(t),i||(Er?this._set.set(t,s):this._set[r]=s)};xn.prototype.has=function(t){if(Er)return this._set.has(t);var n=Xm.toSetString(t);return Zm.call(this._set,n)};xn.prototype.indexOf=function(t){if(Er){var n=this._set.get(t);if(n>=0)return n}else{var r=Xm.toSetString(t);if(Zm.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};xn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};xn.prototype.toArray=function(){return this._array.slice()};u_.ArraySet=xn});var p_=h(f_=>{var m_=ri();function JP(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||m_.compareByGeneratedPositionsInflated(e,t)<=0}function ba(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}ba.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};ba.prototype.add=function(t){JP(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};ba.prototype.toArray=function(){return this._sorted||(this._array.sort(m_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};f_.MappingList=ba});var tf=h(h_=>{var os=Jm(),Le=ri(),Sa=ef().ArraySet,QP=p_().MappingList;function Ot(e){e||(e={}),this._file=Le.getArg(e,"file",null),this._sourceRoot=Le.getArg(e,"sourceRoot",null),this._skipValidation=Le.getArg(e,"skipValidation",!1),this._sources=new Sa,this._names=new Sa,this._mappings=new QP,this._sourcesContents=null}Ot.prototype._version=3;Ot.fromSourceMap=function(t){var n=t.sourceRoot,r=new Ot({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=Le.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=Le.relative(n,i)),r._sources.has(s)||r._sources.add(s);var a=t.sourceContentFor(i);a!=null&&r.setSourceContent(i,a)}),r};Ot.prototype.addMapping=function(t){var n=Le.getArg(t,"generated"),r=Le.getArg(t,"original",null),i=Le.getArg(t,"source",null),s=Le.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})};Ot.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=Le.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Le.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[Le.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Ot.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=Le.relative(s,i));var a=new Sa,c=new Sa;this._mappings.unsortedForEach(function(l){if(l.source===i&&l.originalLine!=null){var m=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});m.source!=null&&(l.source=m.source,r!=null&&(l.source=Le.join(r,l.source)),s!=null&&(l.source=Le.relative(s,l.source)),l.originalLine=m.line,l.originalColumn=m.column,m.name!=null&&(l.name=m.name))}var f=l.source;f!=null&&!a.has(f)&&a.add(f);var g=l.name;g!=null&&!c.has(g)&&c.add(g)},this),this._sources=a,this._names=c,t.sources.forEach(function(l){var m=t.sourceContentFor(l);m!=null&&(r!=null&&(l=Le.join(r,l)),s!=null&&(l=Le.relative(s,l)),this.setSourceContent(l,m))},this)};Ot.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}))}};Ot.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,i=0,s=0,a=0,c="",l,m,f,g,p=this._mappings.toArray(),_=0,S=p.length;_<S;_++){if(m=p[_],l="",m.generatedLine!==n)for(t=0;m.generatedLine!==n;)l+=";",n++;else if(_>0){if(!Le.compareByGeneratedPositionsInflated(m,p[_-1]))continue;l+=","}l+=os.encode(m.generatedColumn-t),t=m.generatedColumn,m.source!=null&&(g=this._sources.indexOf(m.source),l+=os.encode(g-a),a=g,l+=os.encode(m.originalLine-1-i),i=m.originalLine-1,l+=os.encode(m.originalColumn-r),r=m.originalColumn,m.name!=null&&(f=this._names.indexOf(m.name),l+=os.encode(f-s),s=f)),c+=l}return c};Ot.prototype._generateSourcesContent=function(t,n){return t.map(function(r){if(!this._sourcesContents)return null;n!=null&&(r=Le.relative(n,r));var i=Le.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Ot.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};Ot.prototype.toString=function(){return JSON.stringify(this.toJSON())};h_.SourceMapGenerator=Ot});var y_=h(Ar=>{Ar.GREATEST_LOWER_BOUND=1;Ar.LEAST_UPPER_BOUND=2;function nf(e,t,n,r,i,s){var a=Math.floor((t-e)/2)+e,c=i(n,r[a],!0);return c===0?a:c>0?t-a>1?nf(a,t,n,r,i,s):s==Ar.LEAST_UPPER_BOUND?t<r.length?t:-1:a:a-e>1?nf(e,a,n,r,i,s):s==Ar.LEAST_UPPER_BOUND?a:e<0?-1:e}Ar.search=function(t,n,r,i){if(n.length===0)return-1;var s=nf(-1,n.length,t,n,r,i||Ar.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(n[s],n[s-1],!0)===0;)--s;return s}});var __=h(g_=>{function rf(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function XP(e,t){return Math.round(e+Math.random()*(t-e))}function sf(e,t,n,r){if(n<r){var i=XP(n,r),s=n-1;rf(e,i,r);for(var a=e[r],c=n;c<r;c++)t(e[c],a)<=0&&(s+=1,rf(e,s,c));rf(e,s+1,c);var l=s+1;sf(e,t,n,l-1),sf(e,t,l+1,r)}}g_.quickSort=function(e,t){sf(e,t,0,e.length-1)}});var b_=h(va=>{var z=ri(),af=y_(),ii=ef().ArraySet,ZP=Jm(),cs=__().quickSort;function Ce(e,t){var n=e;return typeof e=="string"&&(n=z.parseSourceMapInput(e)),n.sections!=null?new Wt(n,t):new We(n,t)}Ce.fromSourceMap=function(e,t){return We.fromSourceMap(e,t)};Ce.prototype._version=3;Ce.prototype.__generatedMappings=null;Object.defineProperty(Ce.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Ce.prototype.__originalMappings=null;Object.defineProperty(Ce.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Ce.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};Ce.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Ce.GENERATED_ORDER=1;Ce.ORIGINAL_ORDER=2;Ce.GREATEST_LOWER_BOUND=1;Ce.LEAST_UPPER_BOUND=2;Ce.prototype.eachMapping=function(t,n,r){var i=n||null,s=r||Ce.GENERATED_ORDER,a;switch(s){case Ce.GENERATED_ORDER:a=this._generatedMappings;break;case Ce.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var m=l.source===null?null:this._sources.at(l.source);return m=z.computeSourceURL(c,m,this._sourceMapURL),{source:m,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)};Ce.prototype.allGeneratedPositionsFor=function(t){var n=z.getArg(t,"line"),r={source:z.getArg(t,"source"),originalLine:n,originalColumn:z.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",z.compareByOriginalPositions,af.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:z.getArg(a,"generatedLine",null),column:z.getArg(a,"generatedColumn",null),lastColumn:z.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var l=a.originalColumn;a&&a.originalLine===n&&a.originalColumn==l;)i.push({line:z.getArg(a,"generatedLine",null),column:z.getArg(a,"generatedColumn",null),lastColumn:z.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i};va.SourceMapConsumer=Ce;function We(e,t){var n=e;typeof e=="string"&&(n=z.parseSourceMapInput(e));var r=z.getArg(n,"version"),i=z.getArg(n,"sources"),s=z.getArg(n,"names",[]),a=z.getArg(n,"sourceRoot",null),c=z.getArg(n,"sourcesContent",null),l=z.getArg(n,"mappings"),m=z.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=z.normalize(a)),i=i.map(String).map(z.normalize).map(function(f){return a&&z.isAbsolute(a)&&z.isAbsolute(f)?z.relative(a,f):f}),this._names=ii.fromArray(s.map(String),!0),this._sources=ii.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return z.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=m}We.prototype=Object.create(Ce.prototype);We.prototype.consumer=Ce;We.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=z.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};We.fromSourceMap=function(t,n){var r=Object.create(We.prototype),i=r._names=ii.fromArray(t._names.toArray(),!0),s=r._sources=ii.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(_){return z.computeSourceURL(r.sourceRoot,_,n)});for(var a=t._mappings.toArray().slice(),c=r.__generatedMappings=[],l=r.__originalMappings=[],m=0,f=a.length;m<f;m++){var g=a[m],p=new w_;p.generatedLine=g.generatedLine,p.generatedColumn=g.generatedColumn,g.source&&(p.source=s.indexOf(g.source),p.originalLine=g.originalLine,p.originalColumn=g.originalColumn,g.name&&(p.name=i.indexOf(g.name)),l.push(p)),c.push(p)}return cs(r.__originalMappings,z.compareByOriginalPositions),r};We.prototype._version=3;Object.defineProperty(We.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function w_(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}We.prototype._parseMappings=function(t,n){for(var r=1,i=0,s=0,a=0,c=0,l=0,m=t.length,f=0,g={},p={},_=[],S=[],E,k,D,R,K;f<m;)if(t.charAt(f)===";")r++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(E=new w_,E.generatedLine=r,R=f;R<m&&!this._charIsMappingSeparator(t,R);R++);if(k=t.slice(f,R),D=g[k],D)f+=k.length;else{for(D=[];f<R;)ZP.decode(t,f,p),K=p.value,f=p.rest,D.push(K);if(D.length===2)throw new Error("Found a source, but no line and column");if(D.length===3)throw new Error("Found a source and line, but no column");g[k]=D}E.generatedColumn=i+D[0],i=E.generatedColumn,D.length>1&&(E.source=c+D[1],c+=D[1],E.originalLine=s+D[2],s=E.originalLine,E.originalLine+=1,E.originalColumn=a+D[3],a=E.originalColumn,D.length>4&&(E.name=l+D[4],l+=D[4])),S.push(E),typeof E.originalLine=="number"&&_.push(E)}cs(S,z.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,cs(_,z.compareByOriginalPositions),this.__originalMappings=_};We.prototype._findMapping=function(t,n,r,i,s,a){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 af.search(t,n,s,a)};We.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}};We.prototype.originalPositionFor=function(t){var n={generatedLine:z.getArg(t,"line"),generatedColumn:z.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",z.compareByGeneratedPositionsDeflated,z.getArg(t,"bias",Ce.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var s=z.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=z.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=z.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:z.getArg(i,"originalLine",null),column:z.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};We.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};We.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=z.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=z.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(n)return null;throw new Error('"'+i+'" is not in the SourceMap.')};We.prototype.generatedPositionFor=function(t){var n=z.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:z.getArg(t,"line"),originalColumn:z.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",z.compareByOriginalPositions,z.getArg(t,"bias",Ce.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:z.getArg(s,"generatedLine",null),column:z.getArg(s,"generatedColumn",null),lastColumn:z.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};va.BasicSourceMapConsumer=We;function Wt(e,t){var n=e;typeof e=="string"&&(n=z.parseSourceMapInput(e));var r=z.getArg(n,"version"),i=z.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new ii,this._names=new ii;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=z.getArg(a,"offset"),l=z.getArg(c,"line"),m=z.getArg(c,"column");if(l<s.line||l===s.line&&m<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=c,{generatedOffset:{generatedLine:l+1,generatedColumn:m+1},consumer:new Ce(z.getArg(a,"map"),t)}})}Wt.prototype=Object.create(Ce.prototype);Wt.prototype.constructor=Ce;Wt.prototype._version=3;Object.defineProperty(Wt.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}});Wt.prototype.originalPositionFor=function(t){var n={generatedLine:z.getArg(t,"line"),generatedColumn:z.getArg(t,"column")},r=af.search(n,this._sections,function(s,a){var c=s.generatedLine-a.generatedOffset.generatedLine;return c||s.generatedColumn-a.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}};Wt.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Wt.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.')};Wt.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(z.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}};Wt.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,a=0;a<s.length;a++){var c=s[a],l=i.consumer._sources.at(c.source);l=z.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var m=null;c.name&&(m=i.consumer._names.at(c.name),this._names.add(m),m=this._names.indexOf(m));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:m};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}cs(this.__generatedMappings,z.compareByGeneratedPositionsDeflated),cs(this.__originalMappings,z.compareByOriginalPositions)};va.IndexedSourceMapConsumer=Wt});var v_=h(S_=>{var eL=tf().SourceMapGenerator,Ea=ri(),tL=/(\r?\n)/,nL=10,si="$$$isSourceNode$$$";function Dt(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=n==null?null:n,this.name=i==null?null:i,this[si]=!0,r!=null&&this.add(r)}Dt.fromStringWithSourceMap=function(t,n,r){var i=new Dt,s=t.split(tL),a=0,c=function(){var p=S(),_=S()||"";return p+_;function S(){return a<s.length?s[a++]:void 0}},l=1,m=0,f=null;return n.eachMapping(function(p){if(f!==null)if(l<p.generatedLine)g(f,c()),l++,m=0;else{var _=s[a]||"",S=_.substr(0,p.generatedColumn-m);s[a]=_.substr(p.generatedColumn-m),m=p.generatedColumn,g(f,S),f=p;return}for(;l<p.generatedLine;)i.add(c()),l++;if(m<p.generatedColumn){var _=s[a]||"";i.add(_.substr(0,p.generatedColumn)),s[a]=_.substr(p.generatedColumn),m=p.generatedColumn}f=p},this),a<s.length&&(f&&g(f,c()),i.add(s.splice(a).join(""))),n.sources.forEach(function(p){var _=n.sourceContentFor(p);_!=null&&(r!=null&&(p=Ea.join(r,p)),i.setSourceContent(p,_))}),i;function g(p,_){if(p===null||p.source===void 0)i.add(_);else{var S=r?Ea.join(r,p.source):p.source;i.add(new Dt(p.originalLine,p.originalColumn,S,_,p.name))}}};Dt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[si]||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};Dt.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[si]||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};Dt.prototype.walk=function(t){for(var n,r=0,i=this.children.length;r<i;r++)n=this.children[r],n[si]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};Dt.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};Dt.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[si]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};Dt.prototype.setSourceContent=function(t,n){this.sourceContents[Ea.toSetString(t)]=n};Dt.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][si]&&this.children[n].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),n=0,r=i.length;n<r;n++)t(Ea.fromSetString(i[n]),this.sourceContents[i[n]])};Dt.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};Dt.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new eL(t),i=!1,s=null,a=null,c=null,l=null;return this.walk(function(m,f){n.code+=m,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||a!==f.line||c!==f.column||l!==f.name)&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name}),s=f.source,a=f.line,c=f.column,l=f.name,i=!0):i&&(r.addMapping({generated:{line:n.line,column:n.column}}),s=null,i=!1);for(var g=0,p=m.length;g<p;g++)m.charCodeAt(g)===nL?(n.line++,n.column=0,g+1===p?(s=null,i=!1):i&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name})):n.column++}),this.walkSourceContents(function(m,f){r.setSourceContent(m,f)}),{code:n.code,map:r}};S_.SourceNode=Dt});var E_=h(Aa=>{Aa.SourceMapGenerator=tf().SourceMapGenerator;Aa.SourceMapConsumer=b_().SourceMapConsumer;Aa.SourceNode=v_().SourceNode});var C_=h((Jce,A_)=>{var rL=Object.prototype.toString,of=typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function iL(e){return rL.call(e).slice(8,-1)==="ArrayBuffer"}function sL(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 of?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function aL(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return of?Buffer.from(e,t):new Buffer(e,t)}function oL(e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return iL(e)?sL(e,t,n):typeof e=="string"?aL(e,t):of?Buffer.from(e):new Buffer(e)}A_.exports=oL});var P_=h((Tr,hf)=>{var cL=E_().SourceMapConsumer,cf=require("path"),nn;try{nn=require("fs"),(!nn.existsSync||!nn.readFileSync)&&(nn=null)}catch(e){}var lL=C_();function T_(e,t){return e.require(t)}var x_=!1,I_=!1,lf=!1,ls="auto",Cr={},ds={},dL=/^data:application\/json[^,]+base64,/,Jn=[],Qn=[];function df(){return ls==="browser"?!0:ls==="node"?!1:typeof window!="undefined"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function uL(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function Ca(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var uf=Ca(Jn);Jn.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(r,i){return i?"":"/"})),e in Cr)return Cr[e];var t="";try{if(nn)nn.existsSync(e)&&(t=nn.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(r){}return Cr[e]=t});function mf(e,t){if(!e)return t;var n=cf.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),i=r?r[0]:"",s=n.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+cf.resolve(n.slice(i.length),t).replace(/\\/g,"/")):i+cf.resolve(n.slice(i.length),t)}function mL(e){var t;if(df())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(c){}t=uf(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 ff=Ca(Qn);Qn.push(function(e){var t=mL(e);if(!t)return null;var n;if(dL.test(t)){var r=t.slice(t.indexOf(",")+1);n=lL(r,"base64").toString(),t=e}else t=mf(e,t),n=uf(t);return n?{url:t,map:n}:null});function pf(e){var t=ds[e.source];if(!t){var n=ff(e.source);n?(t=ds[e.source]={url:n.url,map:new cL(n.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var a=t.map.sourcesContent[s];if(a){var c=mf(t.url,i);Cr[c]=a}})):t=ds[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=mf(t.url,r.source),r}return e}function R_(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=pf({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]+" ("+R_(t[2])+")":e}function fL(){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(),a=!0,c=this.isConstructor(),l=!(this.isToplevel()||c);if(l){var m=this.getTypeName();m==="[object Object]"&&(m="null");var f=this.getMethodName();s?(m&&s.indexOf(m)!=0&&(i+=m+"."),i+=s,f&&s.indexOf("."+f)!=s.length-f.length-1&&(i+=" [as "+f+"]")):i+=m+"."+(f||"<anonymous>")}else c?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,a=!1);return a&&(i+=" ("+t+")"),i}function D_(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=fL,t}function k_(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)/,a=s.test(process.version)?0:62;r===1&&i>a&&!df()&&!e.isEval()&&(i-=a);var c=pf({source:n,line:r,column:i});t.curPosition=c,e=D_(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 m=e.isEval()&&e.getEvalOrigin();return m&&(m=R_(m),e=D_(e),e.getEvalOrigin=function(){return m}),e}function pL(e,t){lf&&(Cr={},ds={});for(var n=e.name||"Error",r=e.message||"",i=n+": "+r,s={nextPosition:null,curPosition:null},a=[],c=t.length-1;c>=0;c--)a.push(`
2
- at `+k_(t[c],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,i+a.reverse().join("")}function N_(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],s=Cr[n];if(!s&&nn&&nn.existsSync(n))try{s=nn.readFileSync(n,"utf8")}catch(c){s=""}if(s){var a=s.split(/(?:\r\n|\r|\n)/)[r-1];if(a)return n+":"+r+`
1
+ var ZL=Object.create;var ts=Object.defineProperty,eP=Object.defineProperties,d_=Object.getOwnPropertyDescriptor,tP=Object.getOwnPropertyDescriptors,nP=Object.getOwnPropertyNames,Ea=Object.getOwnPropertySymbols,rP=Object.getPrototypeOf,Zm=Object.prototype.hasOwnProperty,u_=Object.prototype.propertyIsEnumerable;var m_=(e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t)=>{for(var n in t||(t={}))Zm.call(t,n)&&m_(e,n,t[n]);if(Ea)for(var n of Ea(t))u_.call(t,n)&&m_(e,n,t[n]);return e},u=(e,t)=>eP(e,tP(t)),f_=e=>ts(e,"__esModule",{value:!0});var Qn=(e,t)=>{var n={};for(var r in e)Zm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ea)for(var r of Ea(e))t.indexOf(r)<0&&u_.call(e,r)&&(n[r]=e[r]);return n};var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sP=(e,t)=>{f_(e);for(var n in t)ts(e,n,{get:t[n],enumerable:!0})},iP=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of nP(t))!Zm.call(e,r)&&r!=="default"&&ts(e,r,{get:()=>t[r],enumerable:!(n=d_(t,r))||n.enumerable});return e},Tn=e=>iP(f_(ts(e!=null?ZL(rP(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),ai=(e,t,n,r)=>{for(var s=r>1?void 0:r?d_(t,n):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(s=(r?a(t,n,s):a(s))||s);return r&&s&&ts(t,n,s),s};var h_=p(ef=>{var p_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ef.encode=function(e){if(0<=e&&e<p_.length)return p_[e];throw new TypeError("Must be between 0 and 63: "+e)};ef.decode=function(e){var t=65,n=90,r=97,s=122,i=48,a=57,c=43,l=47,m=26,f=52;return t<=e&&e<=n?e-t:r<=e&&e<=s?e-r+m:i<=e&&e<=a?e-i+f:e==c?62:e==l?63:-1}});var rf=p(nf=>{var y_=h_(),tf=5,g_=1<<tf,__=g_-1,w_=g_;function aP(e){return e<0?(-e<<1)+1:(e<<1)+0}function oP(e){var t=(e&1)==1,n=e>>1;return t?-n:n}nf.encode=function(t){var n="",r,s=aP(t);do r=s&__,s>>>=tf,s>0&&(r|=w_),n+=y_.encode(r);while(s>0);return n};nf.decode=function(t,n,r){var s=t.length,i=0,a=0,c,l;do{if(n>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=y_.decode(t.charCodeAt(n++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));c=!!(l&w_),l&=__,i=i+(l<<a),a+=tf}while(c);r.value=oP(i),r.rest=n}});var ss=p(nt=>{function cP(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}nt.getArg=cP;var b_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,lP=/^data:.+\,.+$/;function oi(e){var t=e.match(b_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}nt.urlParse=oi;function ns(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}nt.urlGenerate=ns;function sf(e){var t=e,n=oi(e);if(n){if(!n.path)return e;t=n.path}for(var r=nt.isAbsolute(t),s=t.split(/\/+/),i,a=0,c=s.length-1;c>=0;c--)i=s[c],i==="."?s.splice(c,1):i===".."?a++:a>0&&(i===""?(s.splice(c+1,a),a=0):(s.splice(c,2),a--));return t=s.join("/"),t===""&&(t=r?"/":"."),n?(n.path=t,ns(n)):t}nt.normalize=sf;function S_(e,t){e===""&&(e="."),t===""&&(t=".");var n=oi(t),r=oi(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),ns(n);if(n||t.match(lP))return t;if(r&&!r.host&&!r.path)return r.host=t,ns(r);var s=t.charAt(0)==="/"?t:sf(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=s,ns(r)):s}nt.join=S_;nt.isAbsolute=function(e){return e.charAt(0)==="/"||b_.test(e)};function dP(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)}nt.relative=dP;var v_=function(){var e=Object.create(null);return!("__proto__"in e)}();function E_(e){return e}function uP(e){return A_(e)?"$"+e:e}nt.toSetString=v_?E_:uP;function mP(e){return A_(e)?e.slice(1):e}nt.fromSetString=v_?E_:mP;function A_(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 fP(e,t,n){var r=rs(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:rs(e.name,t.name)}nt.compareByOriginalPositions=fP;function pP(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=rs(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:rs(e.name,t.name)}nt.compareByGeneratedPositionsDeflated=pP;function rs(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function hP(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=rs(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:rs(e.name,t.name)}nt.compareByGeneratedPositionsInflated=hP;function yP(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}nt.parseSourceMapInput=yP;function gP(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=oi(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var s=r.path.lastIndexOf("/");s>=0&&(r.path=r.path.substring(0,s+1))}t=S_(ns(r),t)}return sf(t)}nt.computeSourceURL=gP});var cf=p(C_=>{var af=ss(),of=Object.prototype.hasOwnProperty,Tr=typeof Map!="undefined";function xn(){this._array=[],this._set=Tr?new Map:Object.create(null)}xn.fromArray=function(t,n){for(var r=new xn,s=0,i=t.length;s<i;s++)r.add(t[s],n);return r};xn.prototype.size=function(){return Tr?this._set.size:Object.getOwnPropertyNames(this._set).length};xn.prototype.add=function(t,n){var r=Tr?t:af.toSetString(t),s=Tr?this.has(t):of.call(this._set,r),i=this._array.length;(!s||n)&&this._array.push(t),s||(Tr?this._set.set(t,i):this._set[r]=i)};xn.prototype.has=function(t){if(Tr)return this._set.has(t);var n=af.toSetString(t);return of.call(this._set,n)};xn.prototype.indexOf=function(t){if(Tr){var n=this._set.get(t);if(n>=0)return n}else{var r=af.toSetString(t);if(of.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};xn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};xn.prototype.toArray=function(){return this._array.slice()};C_.ArraySet=xn});var I_=p(x_=>{var T_=ss();function _P(e,t){var n=e.generatedLine,r=t.generatedLine,s=e.generatedColumn,i=t.generatedColumn;return r>n||r==n&&i>=s||T_.compareByGeneratedPositionsInflated(e,t)<=0}function Aa(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Aa.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Aa.prototype.add=function(t){_P(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Aa.prototype.toArray=function(){return this._sorted||(this._array.sort(T_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};x_.MappingList=Aa});var lf=p(R_=>{var ci=rf(),Pe=ss(),Ca=cf().ArraySet,wP=I_().MappingList;function Mt(e){e||(e={}),this._file=Pe.getArg(e,"file",null),this._sourceRoot=Pe.getArg(e,"sourceRoot",null),this._skipValidation=Pe.getArg(e,"skipValidation",!1),this._sources=new Ca,this._names=new Ca,this._mappings=new wP,this._sourcesContents=null}Mt.prototype._version=3;Mt.fromSourceMap=function(t){var n=t.sourceRoot,r=new Mt({file:t.file,sourceRoot:n});return t.eachMapping(function(s){var i={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(i.source=s.source,n!=null&&(i.source=Pe.relative(n,i.source)),i.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(i.name=s.name)),r.addMapping(i)}),t.sources.forEach(function(s){var i=s;n!==null&&(i=Pe.relative(n,s)),r._sources.has(i)||r._sources.add(i);var a=t.sourceContentFor(s);a!=null&&r.setSourceContent(s,a)}),r};Mt.prototype.addMapping=function(t){var n=Pe.getArg(t,"generated"),r=Pe.getArg(t,"original",null),s=Pe.getArg(t,"source",null),i=Pe.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,r,s,i),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:s,name:i})};Mt.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=Pe.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Pe.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[Pe.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Mt.prototype.applySourceMap=function(t,n,r){var s=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.`);s=t.file}var i=this._sourceRoot;i!=null&&(s=Pe.relative(i,s));var a=new Ca,c=new Ca;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var m=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});m.source!=null&&(l.source=m.source,r!=null&&(l.source=Pe.join(r,l.source)),i!=null&&(l.source=Pe.relative(i,l.source)),l.originalLine=m.line,l.originalColumn=m.column,m.name!=null&&(l.name=m.name))}var f=l.source;f!=null&&!a.has(f)&&a.add(f);var g=l.name;g!=null&&!c.has(g)&&c.add(g)},this),this._sources=a,this._names=c,t.sources.forEach(function(l){var m=t.sourceContentFor(l);m!=null&&(r!=null&&(l=Pe.join(r,l)),i!=null&&(l=Pe.relative(i,l)),this.setSourceContent(l,m))},this)};Mt.prototype._validateMapping=function(t,n,r,s){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&&!s)){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:s}))}};Mt.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,s=0,i=0,a=0,c="",l,m,f,g,h=this._mappings.toArray(),_=0,b=h.length;_<b;_++){if(m=h[_],l="",m.generatedLine!==n)for(t=0;m.generatedLine!==n;)l+=";",n++;else if(_>0){if(!Pe.compareByGeneratedPositionsInflated(m,h[_-1]))continue;l+=","}l+=ci.encode(m.generatedColumn-t),t=m.generatedColumn,m.source!=null&&(g=this._sources.indexOf(m.source),l+=ci.encode(g-a),a=g,l+=ci.encode(m.originalLine-1-s),s=m.originalLine-1,l+=ci.encode(m.originalColumn-r),r=m.originalColumn,m.name!=null&&(f=this._names.indexOf(m.name),l+=ci.encode(f-i),i=f)),c+=l}return c};Mt.prototype._generateSourcesContent=function(t,n){return t.map(function(r){if(!this._sourcesContents)return null;n!=null&&(r=Pe.relative(n,r));var s=Pe.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};Mt.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};Mt.prototype.toString=function(){return JSON.stringify(this.toJSON())};R_.SourceMapGenerator=Mt});var k_=p(xr=>{xr.GREATEST_LOWER_BOUND=1;xr.LEAST_UPPER_BOUND=2;function df(e,t,n,r,s,i){var a=Math.floor((t-e)/2)+e,c=s(n,r[a],!0);return c===0?a:c>0?t-a>1?df(a,t,n,r,s,i):i==xr.LEAST_UPPER_BOUND?t<r.length?t:-1:a:a-e>1?df(e,a,n,r,s,i):i==xr.LEAST_UPPER_BOUND?a:e<0?-1:e}xr.search=function(t,n,r,s){if(n.length===0)return-1;var i=df(-1,n.length,t,n,r,s||xr.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&r(n[i],n[i-1],!0)===0;)--i;return i}});var N_=p(D_=>{function uf(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function bP(e,t){return Math.round(e+Math.random()*(t-e))}function mf(e,t,n,r){if(n<r){var s=bP(n,r),i=n-1;uf(e,s,r);for(var a=e[r],c=n;c<r;c++)t(e[c],a)<=0&&(i+=1,uf(e,i,c));uf(e,i+1,c);var l=i+1;mf(e,t,n,l-1),mf(e,t,l+1,r)}}D_.quickSort=function(e,t){mf(e,t,0,e.length-1)}});var P_=p(Ta=>{var z=ss(),ff=k_(),is=cf().ArraySet,SP=rf(),li=N_().quickSort;function Ce(e,t){var n=e;return typeof e=="string"&&(n=z.parseSourceMapInput(e)),n.sections!=null?new Vt(n,t):new He(n,t)}Ce.fromSourceMap=function(e,t){return He.fromSourceMap(e,t)};Ce.prototype._version=3;Ce.prototype.__generatedMappings=null;Object.defineProperty(Ce.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Ce.prototype.__originalMappings=null;Object.defineProperty(Ce.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Ce.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};Ce.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Ce.GENERATED_ORDER=1;Ce.ORIGINAL_ORDER=2;Ce.GREATEST_LOWER_BOUND=1;Ce.LEAST_UPPER_BOUND=2;Ce.prototype.eachMapping=function(t,n,r){var s=n||null,i=r||Ce.GENERATED_ORDER,a;switch(i){case Ce.GENERATED_ORDER:a=this._generatedMappings;break;case Ce.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var m=l.source===null?null:this._sources.at(l.source);return m=z.computeSourceURL(c,m,this._sourceMapURL),{source:m,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,s)};Ce.prototype.allGeneratedPositionsFor=function(t){var n=z.getArg(t,"line"),r={source:z.getArg(t,"source"),originalLine:n,originalColumn:z.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var s=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",z.compareByOriginalPositions,ff.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)s.push({line:z.getArg(a,"generatedLine",null),column:z.getArg(a,"generatedColumn",null),lastColumn:z.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var l=a.originalColumn;a&&a.originalLine===n&&a.originalColumn==l;)s.push({line:z.getArg(a,"generatedLine",null),column:z.getArg(a,"generatedColumn",null),lastColumn:z.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return s};Ta.SourceMapConsumer=Ce;function He(e,t){var n=e;typeof e=="string"&&(n=z.parseSourceMapInput(e));var r=z.getArg(n,"version"),s=z.getArg(n,"sources"),i=z.getArg(n,"names",[]),a=z.getArg(n,"sourceRoot",null),c=z.getArg(n,"sourcesContent",null),l=z.getArg(n,"mappings"),m=z.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=z.normalize(a)),s=s.map(String).map(z.normalize).map(function(f){return a&&z.isAbsolute(a)&&z.isAbsolute(f)?z.relative(a,f):f}),this._names=is.fromArray(i.map(String),!0),this._sources=is.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(f){return z.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=m}He.prototype=Object.create(Ce.prototype);He.prototype.consumer=Ce;He.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=z.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};He.fromSourceMap=function(t,n){var r=Object.create(He.prototype),s=r._names=is.fromArray(t._names.toArray(),!0),i=r._sources=is.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(_){return z.computeSourceURL(r.sourceRoot,_,n)});for(var a=t._mappings.toArray().slice(),c=r.__generatedMappings=[],l=r.__originalMappings=[],m=0,f=a.length;m<f;m++){var g=a[m],h=new L_;h.generatedLine=g.generatedLine,h.generatedColumn=g.generatedColumn,g.source&&(h.source=i.indexOf(g.source),h.originalLine=g.originalLine,h.originalColumn=g.originalColumn,g.name&&(h.name=s.indexOf(g.name)),l.push(h)),c.push(h)}return li(r.__originalMappings,z.compareByOriginalPositions),r};He.prototype._version=3;Object.defineProperty(He.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function L_(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}He.prototype._parseMappings=function(t,n){for(var r=1,s=0,i=0,a=0,c=0,l=0,m=t.length,f=0,g={},h={},_=[],b=[],E,D,k,R,K;f<m;)if(t.charAt(f)===";")r++,f++,s=0;else if(t.charAt(f)===",")f++;else{for(E=new L_,E.generatedLine=r,R=f;R<m&&!this._charIsMappingSeparator(t,R);R++);if(D=t.slice(f,R),k=g[D],k)f+=D.length;else{for(k=[];f<R;)SP.decode(t,f,h),K=h.value,f=h.rest,k.push(K);if(k.length===2)throw new Error("Found a source, but no line and column");if(k.length===3)throw new Error("Found a source and line, but no column");g[D]=k}E.generatedColumn=s+k[0],s=E.generatedColumn,k.length>1&&(E.source=c+k[1],c+=k[1],E.originalLine=i+k[2],i=E.originalLine,E.originalLine+=1,E.originalColumn=a+k[3],a=E.originalColumn,k.length>4&&(E.name=l+k[4],l+=k[4])),b.push(E),typeof E.originalLine=="number"&&_.push(E)}li(b,z.compareByGeneratedPositionsDeflated),this.__generatedMappings=b,li(_,z.compareByOriginalPositions),this.__originalMappings=_};He.prototype._findMapping=function(t,n,r,s,i,a){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[s]);return ff.search(t,n,i,a)};He.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}};He.prototype.originalPositionFor=function(t){var n={generatedLine:z.getArg(t,"line"),generatedColumn:z.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",z.compareByGeneratedPositionsDeflated,z.getArg(t,"bias",Ce.GREATEST_LOWER_BOUND));if(r>=0){var s=this._generatedMappings[r];if(s.generatedLine===n.generatedLine){var i=z.getArg(s,"source",null);i!==null&&(i=this._sources.at(i),i=z.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=z.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:i,line:z.getArg(s,"originalLine",null),column:z.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};He.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};He.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var s=t;this.sourceRoot!=null&&(s=z.relative(this.sourceRoot,s));var i;if(this.sourceRoot!=null&&(i=z.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!i.path||i.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(n)return null;throw new Error('"'+s+'" is not in the SourceMap.')};He.prototype.generatedPositionFor=function(t){var n=z.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:z.getArg(t,"line"),originalColumn:z.getArg(t,"column")},s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",z.compareByOriginalPositions,z.getArg(t,"bias",Ce.GREATEST_LOWER_BOUND));if(s>=0){var i=this._originalMappings[s];if(i.source===r.source)return{line:z.getArg(i,"generatedLine",null),column:z.getArg(i,"generatedColumn",null),lastColumn:z.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ta.BasicSourceMapConsumer=He;function Vt(e,t){var n=e;typeof e=="string"&&(n=z.parseSourceMapInput(e));var r=z.getArg(n,"version"),s=z.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new is,this._names=new is;var i={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=z.getArg(a,"offset"),l=z.getArg(c,"line"),m=z.getArg(c,"column");if(l<i.line||l===i.line&&m<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=c,{generatedOffset:{generatedLine:l+1,generatedColumn:m+1},consumer:new Ce(z.getArg(a,"map"),t)}})}Vt.prototype=Object.create(Ce.prototype);Vt.prototype.constructor=Ce;Vt.prototype._version=3;Object.defineProperty(Vt.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}});Vt.prototype.originalPositionFor=function(t){var n={generatedLine:z.getArg(t,"line"),generatedColumn:z.getArg(t,"column")},r=ff.search(n,this._sections,function(i,a){var c=i.generatedLine-a.generatedOffset.generatedLine;return c||i.generatedColumn-a.generatedOffset.generatedColumn}),s=this._sections[r];return s?s.consumer.originalPositionFor({line:n.generatedLine-(s.generatedOffset.generatedLine-1),column:n.generatedColumn-(s.generatedOffset.generatedLine===n.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};Vt.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Vt.prototype.sourceContentFor=function(t,n){for(var r=0;r<this._sections.length;r++){var s=this._sections[r],i=s.consumer.sourceContentFor(t,!0);if(i)return i}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Vt.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(z.getArg(t,"source"))!==-1){var s=r.consumer.generatedPositionFor(t);if(s){var i={line:s.line+(r.generatedOffset.generatedLine-1),column:s.column+(r.generatedOffset.generatedLine===s.line?r.generatedOffset.generatedColumn-1:0)};return i}}}return{line:null,column:null}};Vt.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var s=this._sections[r],i=s.consumer._generatedMappings,a=0;a<i.length;a++){var c=i[a],l=s.consumer._sources.at(c.source);l=z.computeSourceURL(s.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var m=null;c.name&&(m=s.consumer._names.at(c.name),this._names.add(m),m=this._names.indexOf(m));var f={source:l,generatedLine:c.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(s.generatedOffset.generatedLine===c.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:m};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}li(this.__generatedMappings,z.compareByGeneratedPositionsDeflated),li(this.__originalMappings,z.compareByOriginalPositions)};Ta.IndexedSourceMapConsumer=Vt});var M_=p(q_=>{var vP=lf().SourceMapGenerator,xa=ss(),EP=/(\r?\n)/,AP=10,as="$$$isSourceNode$$$";function kt(e,t,n,r,s){this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=n==null?null:n,this.name=s==null?null:s,this[as]=!0,r!=null&&this.add(r)}kt.fromStringWithSourceMap=function(t,n,r){var s=new kt,i=t.split(EP),a=0,c=function(){var h=b(),_=b()||"";return h+_;function b(){return a<i.length?i[a++]:void 0}},l=1,m=0,f=null;return n.eachMapping(function(h){if(f!==null)if(l<h.generatedLine)g(f,c()),l++,m=0;else{var _=i[a]||"",b=_.substr(0,h.generatedColumn-m);i[a]=_.substr(h.generatedColumn-m),m=h.generatedColumn,g(f,b),f=h;return}for(;l<h.generatedLine;)s.add(c()),l++;if(m<h.generatedColumn){var _=i[a]||"";s.add(_.substr(0,h.generatedColumn)),i[a]=_.substr(h.generatedColumn),m=h.generatedColumn}f=h},this),a<i.length&&(f&&g(f,c()),s.add(i.splice(a).join(""))),n.sources.forEach(function(h){var _=n.sourceContentFor(h);_!=null&&(r!=null&&(h=xa.join(r,h)),s.setSourceContent(h,_))}),s;function g(h,_){if(h===null||h.source===void 0)s.add(_);else{var b=r?xa.join(r,h.source):h.source;s.add(new kt(h.originalLine,h.originalColumn,b,_,h.name))}}};kt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[as]||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};kt.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[as]||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};kt.prototype.walk=function(t){for(var n,r=0,s=this.children.length;r<s;r++)n=this.children[r],n[as]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};kt.prototype.join=function(t){var n,r,s=this.children.length;if(s>0){for(n=[],r=0;r<s-1;r++)n.push(this.children[r]),n.push(t);n.push(this.children[r]),this.children=n}return this};kt.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[as]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};kt.prototype.setSourceContent=function(t,n){this.sourceContents[xa.toSetString(t)]=n};kt.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][as]&&this.children[n].walkSourceContents(t);for(var s=Object.keys(this.sourceContents),n=0,r=s.length;n<r;n++)t(xa.fromSetString(s[n]),this.sourceContents[s[n]])};kt.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};kt.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new vP(t),s=!1,i=null,a=null,c=null,l=null;return this.walk(function(m,f){n.code+=m,f.source!==null&&f.line!==null&&f.column!==null?((i!==f.source||a!==f.line||c!==f.column||l!==f.name)&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name}),i=f.source,a=f.line,c=f.column,l=f.name,s=!0):s&&(r.addMapping({generated:{line:n.line,column:n.column}}),i=null,s=!1);for(var g=0,h=m.length;g<h;g++)m.charCodeAt(g)===AP?(n.line++,n.column=0,g+1===h?(i=null,s=!1):s&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name})):n.column++}),this.walkSourceContents(function(m,f){r.setSourceContent(m,f)}),{code:n.code,map:r}};q_.SourceNode=kt});var O_=p(Ia=>{Ia.SourceMapGenerator=lf().SourceMapGenerator;Ia.SourceMapConsumer=P_().SourceMapConsumer;Ia.SourceNode=M_().SourceNode});var j_=p((vle,z_)=>{var CP=Object.prototype.toString,pf=typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function TP(e){return CP.call(e).slice(8,-1)==="ArrayBuffer"}function xP(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 pf?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function IP(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return pf?Buffer.from(e,t):new Buffer(e,t)}function RP(e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return TP(e)?xP(e,t,n):typeof e=="string"?IP(e,t):pf?Buffer.from(e):new Buffer(e)}z_.exports=RP});var W_=p((Rr,vf)=>{var kP=O_().SourceMapConsumer,hf=require("path"),tn;try{tn=require("fs"),(!tn.existsSync||!tn.readFileSync)&&(tn=null)}catch(e){}var DP=j_();function U_(e,t){return e.require(t)}var B_=!1,F_=!1,yf=!1,di="auto",Ir={},ui={},NP=/^data:application\/json[^,]+base64,/,Xn=[],Zn=[];function gf(){return di==="browser"?!0:di==="node"?!1:typeof window!="undefined"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function LP(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function Ra(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var _f=Ra(Xn);Xn.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(r,s){return s?"":"/"})),e in Ir)return Ir[e];var t="";try{if(tn)tn.existsSync(e)&&(t=tn.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(r){}return Ir[e]=t});function wf(e,t){if(!e)return t;var n=hf.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),s=r?r[0]:"",i=n.slice(s.length);return s&&/^\/\w\:/.test(i)?(s+="/",s+hf.resolve(n.slice(s.length),t).replace(/\\/g,"/")):s+hf.resolve(n.slice(s.length),t)}function PP(e){var t;if(gf())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(c){}t=_f(e);for(var s=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,i,a;a=s.exec(t);)i=a;return i?i[1]:null}var bf=Ra(Zn);Zn.push(function(e){var t=PP(e);if(!t)return null;var n;if(NP.test(t)){var r=t.slice(t.indexOf(",")+1);n=DP(r,"base64").toString(),t=e}else t=wf(e,t),n=_f(t);return n?{url:t,map:n}:null});function Sf(e){var t=ui[e.source];if(!t){var n=bf(e.source);n?(t=ui[e.source]={url:n.url,map:new kP(n.map)},t.map.sourcesContent&&t.map.sources.forEach(function(s,i){var a=t.map.sourcesContent[i];if(a){var c=wf(t.url,s);Ir[c]=a}})):t=ui[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=wf(t.url,r.source),r}return e}function G_(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=Sf({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]+" ("+G_(t[2])+")":e}function qP(){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 s="",i=this.getFunctionName(),a=!0,c=this.isConstructor(),l=!(this.isToplevel()||c);if(l){var m=this.getTypeName();m==="[object Object]"&&(m="null");var f=this.getMethodName();i?(m&&i.indexOf(m)!=0&&(s+=m+"."),s+=i,f&&i.indexOf("."+f)!=i.length-f.length-1&&(s+=" [as "+f+"]")):s+=m+"."+(f||"<anonymous>")}else c?s+="new "+(i||"<anonymous>"):i?s+=i:(s+=t,a=!1);return a&&(s+=" ("+t+")"),s}function $_(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=qP,t}function K_(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(),s=e.getColumnNumber()-1,i=/^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=i.test(process.version)?0:62;r===1&&s>a&&!gf()&&!e.isEval()&&(s-=a);var c=Sf({source:n,line:r,column:s});t.curPosition=c,e=$_(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 m=e.isEval()&&e.getEvalOrigin();return m&&(m=G_(m),e=$_(e),e.getEvalOrigin=function(){return m}),e}function MP(e,t){yf&&(Ir={},ui={});for(var n=e.name||"Error",r=e.message||"",s=n+": "+r,i={nextPosition:null,curPosition:null},a=[],c=t.length-1;c>=0;c--)a.push(`
2
+ at `+K_(t[c],i)),i.nextPosition=i.curPosition;return i.curPosition=i.nextPosition=null,s+a.reverse().join("")}function V_(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],s=+t[3],i=Ir[n];if(!i&&tn&&tn.existsSync(n))try{i=tn.readFileSync(n,"utf8")}catch(c){i=""}if(i){var a=i.split(/(?:\r\n|\r|\n)/)[r-1];if(a)return n+":"+r+`
3
3
  `+a+`
4
- `+new Array(i).join(" ")+"^"}}return null}function hL(e){var t=N_(e);process.stderr._handle&&process.stderr._handle.setBlocking&&process.stderr._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1)}function yL(){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 hL(arguments[1])}return e.apply(this,arguments)}}var gL=Jn.slice(0),_L=Qn.slice(0);Tr.wrapCallSite=k_;Tr.getErrorSource=N_;Tr.mapSourcePosition=pf;Tr.retrieveSourceMap=ff;Tr.install=function(e){if(e=e||{},e.environment&&(ls=e.environment,["node","browser","auto"].indexOf(ls)===-1))throw new Error("environment "+ls+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Jn.length=0),Jn.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Qn.length=0),Qn.unshift(e.retrieveSourceMap)),e.hookRequire&&!df()){var t=T_(hf,"module"),n=t.prototype._compile;n.__sourceMapSupport||(t.prototype._compile=function(s,a){return Cr[a]=s,ds[a]=void 0,n.call(this,s,a)},t.prototype._compile.__sourceMapSupport=!0)}if(lf||(lf="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),x_||(x_=!0,Error.prepareStackTrace=pL),!I_){var r="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=T_(hf,"worker_threads");i.isMainThread===!1&&(r=!1)}catch(s){}r&&uL()&&(I_=!0,yL())}};Tr.resetRetrieveHandlers=function(){Jn.length=0,Qn.length=0,Jn=gL.slice(0),Qn=_L.slice(0),ff=Ca(Qn),uf=Ca(Jn)}});var he=h((Zce,Ia)=>{var q_,M_,O_,z_,j_,U_,B_,F_,G_,Ta,yf,$_,K_,V_,ai,W_,H_,Y_,J_,Q_,X_,Z_,ew,xa;(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 Ia=="object"&&typeof Ia.exports=="object"?e(n(t,n(Ia.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,a){return r[s]=i?i(s,a):a}}})(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])};q_=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)},M_=Object.assign||function(r){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)&&(r[c]=i[c])}return r},O_=function(r,i){var s={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.indexOf(a)<0&&(s[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(r);c<a.length;c++)i.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(r,a[c])&&(s[a[c]]=r[a[c]]);return s},z_=function(r,i,s,a){var c=arguments.length,l=c<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,s):a,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,i,s,a);else for(var f=r.length-1;f>=0;f--)(m=r[f])&&(l=(c<3?m(l):c>3?m(i,s,l):m(i,s))||l);return c>3&&l&&Object.defineProperty(i,s,l),l},j_=function(r,i){return function(s,a){i(s,a,r)}},U_=function(r,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,i)},B_=function(r,i,s,a){function c(l){return l instanceof s?l:new s(function(m){m(l)})}return new(s||(s=Promise))(function(l,m){function f(_){try{p(a.next(_))}catch(S){m(S)}}function g(_){try{p(a.throw(_))}catch(S){m(S)}}function p(_){_.done?l(_.value):c(_.value).then(f,g)}p((a=a.apply(r,i||[])).next())})},F_=function(r,i){var s={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,c,l,m;return m={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function f(p){return function(_){return g([p,_])}}function g(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(r,s)}catch(_){p=[6,_],c=0}finally{a=l=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},G_=function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&xa(i,r,s)},xa=Object.create?function(r,i,s,a){a===void 0&&(a=s),Object.defineProperty(r,a,{enumerable:!0,get:function(){return i[s]}})}:function(r,i,s,a){a===void 0&&(a=s),r[a]=i[s]},Ta=function(r){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&r[i],a=0;if(s)return s.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},yf=function(r,i){var s=typeof Symbol=="function"&&r[Symbol.iterator];if(!s)return r;var a=s.call(r),c,l=[],m;try{for(;(i===void 0||i-- >0)&&!(c=a.next()).done;)l.push(c.value)}catch(f){m={error:f}}finally{try{c&&!c.done&&(s=a.return)&&s.call(a)}finally{if(m)throw m.error}}return l},$_=function(){for(var r=[],i=0;i<arguments.length;i++)r=r.concat(yf(arguments[i]));return r},K_=function(){for(var r=0,i=0,s=arguments.length;i<s;i++)r+=arguments[i].length;for(var a=Array(r),c=0,i=0;i<s;i++)for(var l=arguments[i],m=0,f=l.length;m<f;m++,c++)a[c]=l[m];return a},V_=function(r,i){for(var s=0,a=i.length,c=r.length;s<a;s++,c++)r[c]=i[s];return r},ai=function(r){return this instanceof ai?(this.v=r,this):new ai(r)},W_=function(r,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=s.apply(r,i||[]),c,l=[];return c={},m("next"),m("throw"),m("return"),c[Symbol.asyncIterator]=function(){return this},c;function m(E){a[E]&&(c[E]=function(k){return new Promise(function(D,R){l.push([E,k,D,R])>1||f(E,k)})})}function f(E,k){try{g(a[E](k))}catch(D){S(l[0][3],D)}}function g(E){E.value instanceof ai?Promise.resolve(E.value.v).then(p,_):S(l[0][2],E)}function p(E){f("next",E)}function _(E){f("throw",E)}function S(E,k){E(k),l.shift(),l.length&&f(l[0][0],l[0][1])}},H_=function(r){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]=r[c]?function(m){return(s=!s)?{value:ai(r[c](m)),done:c==="return"}:l?l(m):m}:l}},Y_=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 Ta=="function"?Ta(r):r[Symbol.iterator](),s={},a("next"),a("throw"),a("return"),s[Symbol.asyncIterator]=function(){return this},s);function a(l){s[l]=r[l]&&function(m){return new Promise(function(f,g){m=r[l](m),c(f,g,m.done,m.value)})}}function c(l,m,f,g){Promise.resolve(g).then(function(p){l({value:p,done:f})},m)}},J_=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};Q_=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)&&xa(i,r,s);return n(i,r),i},X_=function(r){return r&&r.__esModule?r:{default:r}},Z_=function(r,i){if(!i.has(r))throw new TypeError("attempted to get private field on non-instance");return i.get(r)},ew=function(r,i,s){if(!i.has(r))throw new TypeError("attempted to set private field on non-instance");return i.set(r,s),s},e("__extends",q_),e("__assign",M_),e("__rest",O_),e("__decorate",z_),e("__param",j_),e("__metadata",U_),e("__awaiter",B_),e("__generator",F_),e("__exportStar",G_),e("__createBinding",xa),e("__values",Ta),e("__read",yf),e("__spread",$_),e("__spreadArrays",K_),e("__spreadArray",V_),e("__await",ai),e("__asyncGenerator",W_),e("__asyncDelegator",H_),e("__asyncValues",Y_),e("__makeTemplateObject",J_),e("__importStar",Q_),e("__importDefault",X_),e("__classPrivateFieldGet",Z_),e("__classPrivateFieldSet",ew)})});var W=h(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.ConsumedCapacity=d.Capacity=d.RequestLimitExceeded=d.InternalServerError=d.BatchStatementError=d.BatchStatementErrorCodeEnum=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.ReplicaSettingsDescription=d.ReplicaGlobalSecondaryIndexSettingsDescription=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.ReplicaGlobalSecondaryIndexDescription=void 0;d.UpdateContinuousBackupsOutput=d.UpdateContinuousBackupsInput=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=void 0;d.TransactGetItemsOutput=d.ExecuteTransactionOutput=d.ExecuteTransactionInput=d.BatchExecuteStatementOutput=d.BatchExecuteStatementInput=d.TransactGetItem=d.KeysAndAttributes=d.ExecuteStatementOutput=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=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.DeleteItemOutput=d.Update=d.Put=d.Delete=d.ConditionCheck=d.TransactWriteItemsOutput=d.TransactGetItemsInput=d.ExpectedAttributeValue=d.BatchGetItemInput=d.TransactionCanceledException=void 0;var wL;(function(e){e.filterSensitiveLog=t=>o({},t)})(wL=d.ArchivalSummary||(d.ArchivalSummary={}));var bL;(function(e){e.filterSensitiveLog=t=>o({},t)})(bL=d.AttributeDefinition||(d.AttributeDefinition={}));var SL;(function(e){e.filterSensitiveLog=t=>o({},t)})(SL=d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var vL;(function(e){e.filterSensitiveLog=t=>o({},t)})(vL=d.AutoScalingPolicyDescription||(d.AutoScalingPolicyDescription={}));var EL;(function(e){e.filterSensitiveLog=t=>o({},t)})(EL=d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var AL;(function(e){e.filterSensitiveLog=t=>o({},t)})(AL=d.AutoScalingPolicyUpdate||(d.AutoScalingPolicyUpdate={}));var CL;(function(e){e.filterSensitiveLog=t=>o({},t)})(CL=d.AutoScalingSettingsDescription||(d.AutoScalingSettingsDescription={}));var TL;(function(e){e.filterSensitiveLog=t=>o({},t)})(TL=d.AutoScalingSettingsUpdate||(d.AutoScalingSettingsUpdate={}));var xL;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(xL=d.BackupType||(d.BackupType={}));var IL;(function(e){e.filterSensitiveLog=t=>o({},t)})(IL=d.BackupDetails||(d.BackupDetails={}));var RL;(function(e){e.filterSensitiveLog=t=>o({},t)})(RL=d.KeySchemaElement||(d.KeySchemaElement={}));var DL;(function(e){e.filterSensitiveLog=t=>o({},t)})(DL=d.ProvisionedThroughput||(d.ProvisionedThroughput={}));var kL;(function(e){e.filterSensitiveLog=t=>o({},t)})(kL=d.SourceTableDetails||(d.SourceTableDetails={}));var NL;(function(e){e.filterSensitiveLog=t=>o({},t)})(NL=d.Projection||(d.Projection={}));var PL;(function(e){e.filterSensitiveLog=t=>o({},t)})(PL=d.GlobalSecondaryIndexInfo||(d.GlobalSecondaryIndexInfo={}));var LL;(function(e){e.filterSensitiveLog=t=>o({},t)})(LL=d.LocalSecondaryIndexInfo||(d.LocalSecondaryIndexInfo={}));var qL;(function(e){e.filterSensitiveLog=t=>o({},t)})(qL=d.SSEDescription||(d.SSEDescription={}));var ML;(function(e){e.filterSensitiveLog=t=>o({},t)})(ML=d.StreamSpecification||(d.StreamSpecification={}));var OL;(function(e){e.filterSensitiveLog=t=>o({},t)})(OL=d.TimeToLiveDescription||(d.TimeToLiveDescription={}));var zL;(function(e){e.filterSensitiveLog=t=>o({},t)})(zL=d.SourceTableFeatureDetails||(d.SourceTableFeatureDetails={}));var jL;(function(e){e.filterSensitiveLog=t=>o({},t)})(jL=d.BackupDescription||(d.BackupDescription={}));var UL;(function(e){e.filterSensitiveLog=t=>o({},t)})(UL=d.BackupInUseException||(d.BackupInUseException={}));var BL;(function(e){e.filterSensitiveLog=t=>o({},t)})(BL=d.BackupNotFoundException||(d.BackupNotFoundException={}));var FL;(function(e){e.filterSensitiveLog=t=>o({},t)})(FL=d.BackupSummary||(d.BackupSummary={}));var GL;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(GL=d.BackupTypeFilter||(d.BackupTypeFilter={}));var $L;(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"})($L=d.BatchStatementErrorCodeEnum||(d.BatchStatementErrorCodeEnum={}));var KL;(function(e){e.filterSensitiveLog=t=>o({},t)})(KL=d.BatchStatementError||(d.BatchStatementError={}));var VL;(function(e){e.filterSensitiveLog=t=>o({},t)})(VL=d.InternalServerError||(d.InternalServerError={}));var WL;(function(e){e.filterSensitiveLog=t=>o({},t)})(WL=d.RequestLimitExceeded||(d.RequestLimitExceeded={}));var HL;(function(e){e.filterSensitiveLog=t=>o({},t)})(HL=d.Capacity||(d.Capacity={}));var YL;(function(e){e.filterSensitiveLog=t=>o({},t)})(YL=d.ConsumedCapacity||(d.ConsumedCapacity={}));var JL;(function(e){e.filterSensitiveLog=t=>o({},t)})(JL=d.InvalidEndpointException||(d.InvalidEndpointException={}));var QL;(function(e){e.filterSensitiveLog=t=>o({},t)})(QL=d.ProvisionedThroughputExceededException||(d.ProvisionedThroughputExceededException={}));var XL;(function(e){e.filterSensitiveLog=t=>o({},t)})(XL=d.ResourceNotFoundException||(d.ResourceNotFoundException={}));var ZL;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZL=d.ItemCollectionSizeLimitExceededException||(d.ItemCollectionSizeLimitExceededException={}));var eq;(function(e){e.filterSensitiveLog=t=>o({},t)})(eq=d.BillingModeSummary||(d.BillingModeSummary={}));var tq;(function(e){e.filterSensitiveLog=t=>o({},t)})(tq=d.ConditionalCheckFailedException||(d.ConditionalCheckFailedException={}));var nq;(function(e){e.filterSensitiveLog=t=>o({},t)})(nq=d.PointInTimeRecoveryDescription||(d.PointInTimeRecoveryDescription={}));var rq;(function(e){e.filterSensitiveLog=t=>o({},t)})(rq=d.ContinuousBackupsDescription||(d.ContinuousBackupsDescription={}));var iq;(function(e){e.filterSensitiveLog=t=>o({},t)})(iq=d.ContinuousBackupsUnavailableException||(d.ContinuousBackupsUnavailableException={}));var sq;(function(e){e.filterSensitiveLog=t=>o({},t)})(sq=d.ContributorInsightsSummary||(d.ContributorInsightsSummary={}));var aq;(function(e){e.filterSensitiveLog=t=>o({},t)})(aq=d.CreateBackupInput||(d.CreateBackupInput={}));var oq;(function(e){e.filterSensitiveLog=t=>o({},t)})(oq=d.CreateBackupOutput||(d.CreateBackupOutput={}));var cq;(function(e){e.filterSensitiveLog=t=>o({},t)})(cq=d.LimitExceededException||(d.LimitExceededException={}));var lq;(function(e){e.filterSensitiveLog=t=>o({},t)})(lq=d.TableInUseException||(d.TableInUseException={}));var dq;(function(e){e.filterSensitiveLog=t=>o({},t)})(dq=d.TableNotFoundException||(d.TableNotFoundException={}));var uq;(function(e){e.filterSensitiveLog=t=>o({},t)})(uq=d.CreateGlobalSecondaryIndexAction||(d.CreateGlobalSecondaryIndexAction={}));var mq;(function(e){e.filterSensitiveLog=t=>o({},t)})(mq=d.Replica||(d.Replica={}));var fq;(function(e){e.filterSensitiveLog=t=>o({},t)})(fq=d.CreateGlobalTableInput||(d.CreateGlobalTableInput={}));var pq;(function(e){e.filterSensitiveLog=t=>o({},t)})(pq=d.ProvisionedThroughputOverride||(d.ProvisionedThroughputOverride={}));var hq;(function(e){e.filterSensitiveLog=t=>o({},t)})(hq=d.ReplicaGlobalSecondaryIndexDescription||(d.ReplicaGlobalSecondaryIndexDescription={}));var yq;(function(e){e.filterSensitiveLog=t=>o({},t)})(yq=d.ReplicaDescription||(d.ReplicaDescription={}));var gq;(function(e){e.filterSensitiveLog=t=>o({},t)})(gq=d.GlobalTableDescription||(d.GlobalTableDescription={}));var _q;(function(e){e.filterSensitiveLog=t=>o({},t)})(_q=d.CreateGlobalTableOutput||(d.CreateGlobalTableOutput={}));var wq;(function(e){e.filterSensitiveLog=t=>o({},t)})(wq=d.GlobalTableAlreadyExistsException||(d.GlobalTableAlreadyExistsException={}));var bq;(function(e){e.filterSensitiveLog=t=>o({},t)})(bq=d.CreateReplicaAction||(d.CreateReplicaAction={}));var Sq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Sq=d.ReplicaGlobalSecondaryIndex||(d.ReplicaGlobalSecondaryIndex={}));var vq;(function(e){e.filterSensitiveLog=t=>o({},t)})(vq=d.CreateReplicationGroupMemberAction||(d.CreateReplicationGroupMemberAction={}));var Eq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Eq=d.GlobalSecondaryIndex||(d.GlobalSecondaryIndex={}));var Aq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Aq=d.LocalSecondaryIndex||(d.LocalSecondaryIndex={}));var Cq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Cq=d.SSESpecification||(d.SSESpecification={}));var Tq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Tq=d.Tag||(d.Tag={}));var xq;(function(e){e.filterSensitiveLog=t=>o({},t)})(xq=d.CreateTableInput||(d.CreateTableInput={}));var Iq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Iq=d.ProvisionedThroughputDescription||(d.ProvisionedThroughputDescription={}));var Rq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Rq=d.GlobalSecondaryIndexDescription||(d.GlobalSecondaryIndexDescription={}));var Dq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Dq=d.LocalSecondaryIndexDescription||(d.LocalSecondaryIndexDescription={}));var kq;(function(e){e.filterSensitiveLog=t=>o({},t)})(kq=d.RestoreSummary||(d.RestoreSummary={}));var Nq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Nq=d.TableDescription||(d.TableDescription={}));var Pq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Pq=d.CreateTableOutput||(d.CreateTableOutput={}));var Lq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Lq=d.ResourceInUseException||(d.ResourceInUseException={}));var qq;(function(e){e.filterSensitiveLog=t=>o({},t)})(qq=d.DeleteBackupInput||(d.DeleteBackupInput={}));var Mq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Mq=d.DeleteBackupOutput||(d.DeleteBackupOutput={}));var Oq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Oq=d.DeleteGlobalSecondaryIndexAction||(d.DeleteGlobalSecondaryIndexAction={}));var zq;(function(e){e.filterSensitiveLog=t=>o({},t)})(zq=d.TransactionConflictException||(d.TransactionConflictException={}));var jq;(function(e){e.filterSensitiveLog=t=>o({},t)})(jq=d.DeleteReplicaAction||(d.DeleteReplicaAction={}));var Uq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Uq=d.DeleteReplicationGroupMemberAction||(d.DeleteReplicationGroupMemberAction={}));var Bq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Bq=d.DeleteTableInput||(d.DeleteTableInput={}));var Fq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Fq=d.DeleteTableOutput||(d.DeleteTableOutput={}));var Gq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Gq=d.DescribeBackupInput||(d.DescribeBackupInput={}));var $q;(function(e){e.filterSensitiveLog=t=>o({},t)})($q=d.DescribeBackupOutput||(d.DescribeBackupOutput={}));var Kq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Kq=d.DescribeContinuousBackupsInput||(d.DescribeContinuousBackupsInput={}));var Vq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Vq=d.DescribeContinuousBackupsOutput||(d.DescribeContinuousBackupsOutput={}));var Wq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Wq=d.DescribeContributorInsightsInput||(d.DescribeContributorInsightsInput={}));var Hq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Hq=d.FailureException||(d.FailureException={}));var Yq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Yq=d.DescribeContributorInsightsOutput||(d.DescribeContributorInsightsOutput={}));var Jq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Jq=d.DescribeEndpointsRequest||(d.DescribeEndpointsRequest={}));var Qq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Qq=d.Endpoint||(d.Endpoint={}));var Xq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Xq=d.DescribeEndpointsResponse||(d.DescribeEndpointsResponse={}));var Zq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Zq=d.DescribeExportInput||(d.DescribeExportInput={}));var eM;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(eM=d.ExportFormat||(d.ExportFormat={}));var tM;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(tM=d.ExportStatus||(d.ExportStatus={}));var nM;(function(e){e.filterSensitiveLog=t=>o({},t)})(nM=d.ExportDescription||(d.ExportDescription={}));var rM;(function(e){e.filterSensitiveLog=t=>o({},t)})(rM=d.DescribeExportOutput||(d.DescribeExportOutput={}));var iM;(function(e){e.filterSensitiveLog=t=>o({},t)})(iM=d.ExportNotFoundException||(d.ExportNotFoundException={}));var sM;(function(e){e.filterSensitiveLog=t=>o({},t)})(sM=d.DescribeGlobalTableInput||(d.DescribeGlobalTableInput={}));var aM;(function(e){e.filterSensitiveLog=t=>o({},t)})(aM=d.DescribeGlobalTableOutput||(d.DescribeGlobalTableOutput={}));var oM;(function(e){e.filterSensitiveLog=t=>o({},t)})(oM=d.GlobalTableNotFoundException||(d.GlobalTableNotFoundException={}));var cM;(function(e){e.filterSensitiveLog=t=>o({},t)})(cM=d.DescribeGlobalTableSettingsInput||(d.DescribeGlobalTableSettingsInput={}));var lM;(function(e){e.filterSensitiveLog=t=>o({},t)})(lM=d.ReplicaGlobalSecondaryIndexSettingsDescription||(d.ReplicaGlobalSecondaryIndexSettingsDescription={}));var dM;(function(e){e.filterSensitiveLog=t=>o({},t)})(dM=d.ReplicaSettingsDescription||(d.ReplicaSettingsDescription={}));var uM;(function(e){e.filterSensitiveLog=t=>o({},t)})(uM=d.DescribeGlobalTableSettingsOutput||(d.DescribeGlobalTableSettingsOutput={}));var mM;(function(e){e.filterSensitiveLog=t=>o({},t)})(mM=d.DescribeKinesisStreamingDestinationInput||(d.DescribeKinesisStreamingDestinationInput={}));var fM;(function(e){e.filterSensitiveLog=t=>o({},t)})(fM=d.KinesisDataStreamDestination||(d.KinesisDataStreamDestination={}));var pM;(function(e){e.filterSensitiveLog=t=>o({},t)})(pM=d.DescribeKinesisStreamingDestinationOutput||(d.DescribeKinesisStreamingDestinationOutput={}));var hM;(function(e){e.filterSensitiveLog=t=>o({},t)})(hM=d.DescribeLimitsInput||(d.DescribeLimitsInput={}));var yM;(function(e){e.filterSensitiveLog=t=>o({},t)})(yM=d.DescribeLimitsOutput||(d.DescribeLimitsOutput={}));var gM;(function(e){e.filterSensitiveLog=t=>o({},t)})(gM=d.DescribeTableInput||(d.DescribeTableInput={}));var _M;(function(e){e.filterSensitiveLog=t=>o({},t)})(_M=d.DescribeTableOutput||(d.DescribeTableOutput={}));var wM;(function(e){e.filterSensitiveLog=t=>o({},t)})(wM=d.DescribeTableReplicaAutoScalingInput||(d.DescribeTableReplicaAutoScalingInput={}));var bM;(function(e){e.filterSensitiveLog=t=>o({},t)})(bM=d.ReplicaGlobalSecondaryIndexAutoScalingDescription||(d.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var SM;(function(e){e.filterSensitiveLog=t=>o({},t)})(SM=d.ReplicaAutoScalingDescription||(d.ReplicaAutoScalingDescription={}));var vM;(function(e){e.filterSensitiveLog=t=>o({},t)})(vM=d.TableAutoScalingDescription||(d.TableAutoScalingDescription={}));var EM;(function(e){e.filterSensitiveLog=t=>o({},t)})(EM=d.DescribeTableReplicaAutoScalingOutput||(d.DescribeTableReplicaAutoScalingOutput={}));var AM;(function(e){e.filterSensitiveLog=t=>o({},t)})(AM=d.DescribeTimeToLiveInput||(d.DescribeTimeToLiveInput={}));var CM;(function(e){e.filterSensitiveLog=t=>o({},t)})(CM=d.DescribeTimeToLiveOutput||(d.DescribeTimeToLiveOutput={}));var TM;(function(e){e.filterSensitiveLog=t=>o({},t)})(TM=d.KinesisStreamingDestinationInput||(d.KinesisStreamingDestinationInput={}));var xM;(function(e){e.filterSensitiveLog=t=>o({},t)})(xM=d.KinesisStreamingDestinationOutput||(d.KinesisStreamingDestinationOutput={}));var IM;(function(e){e.filterSensitiveLog=t=>o({},t)})(IM=d.DuplicateItemException||(d.DuplicateItemException={}));var RM;(function(e){e.filterSensitiveLog=t=>o({},t)})(RM=d.IdempotentParameterMismatchException||(d.IdempotentParameterMismatchException={}));var DM;(function(e){e.filterSensitiveLog=t=>o({},t)})(DM=d.TransactionInProgressException||(d.TransactionInProgressException={}));var kM;(function(e){e.filterSensitiveLog=t=>o({},t)})(kM=d.ExportConflictException||(d.ExportConflictException={}));var NM;(function(e){e.filterSensitiveLog=t=>o({},t)})(NM=d.ExportTableToPointInTimeInput||(d.ExportTableToPointInTimeInput={}));var PM;(function(e){e.filterSensitiveLog=t=>o({},t)})(PM=d.ExportTableToPointInTimeOutput||(d.ExportTableToPointInTimeOutput={}));var LM;(function(e){e.filterSensitiveLog=t=>o({},t)})(LM=d.InvalidExportTimeException||(d.InvalidExportTimeException={}));var qM;(function(e){e.filterSensitiveLog=t=>o({},t)})(qM=d.PointInTimeRecoveryUnavailableException||(d.PointInTimeRecoveryUnavailableException={}));var MM;(function(e){e.filterSensitiveLog=t=>o({},t)})(MM=d.ListBackupsInput||(d.ListBackupsInput={}));var OM;(function(e){e.filterSensitiveLog=t=>o({},t)})(OM=d.ListBackupsOutput||(d.ListBackupsOutput={}));var zM;(function(e){e.filterSensitiveLog=t=>o({},t)})(zM=d.ListContributorInsightsInput||(d.ListContributorInsightsInput={}));var jM;(function(e){e.filterSensitiveLog=t=>o({},t)})(jM=d.ListContributorInsightsOutput||(d.ListContributorInsightsOutput={}));var UM;(function(e){e.filterSensitiveLog=t=>o({},t)})(UM=d.ListExportsInput||(d.ListExportsInput={}));var BM;(function(e){e.filterSensitiveLog=t=>o({},t)})(BM=d.ExportSummary||(d.ExportSummary={}));var FM;(function(e){e.filterSensitiveLog=t=>o({},t)})(FM=d.ListExportsOutput||(d.ListExportsOutput={}));var GM;(function(e){e.filterSensitiveLog=t=>o({},t)})(GM=d.ListGlobalTablesInput||(d.ListGlobalTablesInput={}));var $M;(function(e){e.filterSensitiveLog=t=>o({},t)})($M=d.GlobalTable||(d.GlobalTable={}));var KM;(function(e){e.filterSensitiveLog=t=>o({},t)})(KM=d.ListGlobalTablesOutput||(d.ListGlobalTablesOutput={}));var VM;(function(e){e.filterSensitiveLog=t=>o({},t)})(VM=d.ListTablesInput||(d.ListTablesInput={}));var WM;(function(e){e.filterSensitiveLog=t=>o({},t)})(WM=d.ListTablesOutput||(d.ListTablesOutput={}));var HM;(function(e){e.filterSensitiveLog=t=>o({},t)})(HM=d.ListTagsOfResourceInput||(d.ListTagsOfResourceInput={}));var YM;(function(e){e.filterSensitiveLog=t=>o({},t)})(YM=d.ListTagsOfResourceOutput||(d.ListTagsOfResourceOutput={}));var JM;(function(e){e.filterSensitiveLog=t=>o({},t)})(JM=d.RestoreTableFromBackupInput||(d.RestoreTableFromBackupInput={}));var QM;(function(e){e.filterSensitiveLog=t=>o({},t)})(QM=d.RestoreTableFromBackupOutput||(d.RestoreTableFromBackupOutput={}));var XM;(function(e){e.filterSensitiveLog=t=>o({},t)})(XM=d.TableAlreadyExistsException||(d.TableAlreadyExistsException={}));var ZM;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZM=d.InvalidRestoreTimeException||(d.InvalidRestoreTimeException={}));var eO;(function(e){e.filterSensitiveLog=t=>o({},t)})(eO=d.RestoreTableToPointInTimeInput||(d.RestoreTableToPointInTimeInput={}));var tO;(function(e){e.filterSensitiveLog=t=>o({},t)})(tO=d.RestoreTableToPointInTimeOutput||(d.RestoreTableToPointInTimeOutput={}));var nO;(function(e){e.filterSensitiveLog=t=>o({},t)})(nO=d.TagResourceInput||(d.TagResourceInput={}));var rO;(function(e){e.filterSensitiveLog=t=>o({},t)})(rO=d.UntagResourceInput||(d.UntagResourceInput={}));var iO;(function(e){e.filterSensitiveLog=t=>o({},t)})(iO=d.PointInTimeRecoverySpecification||(d.PointInTimeRecoverySpecification={}));var sO;(function(e){e.filterSensitiveLog=t=>o({},t)})(sO=d.UpdateContinuousBackupsInput||(d.UpdateContinuousBackupsInput={}));var aO;(function(e){e.filterSensitiveLog=t=>o({},t)})(aO=d.UpdateContinuousBackupsOutput||(d.UpdateContinuousBackupsOutput={}));var oO;(function(e){e.filterSensitiveLog=t=>o({},t)})(oO=d.UpdateContributorInsightsInput||(d.UpdateContributorInsightsInput={}));var cO;(function(e){e.filterSensitiveLog=t=>o({},t)})(cO=d.UpdateContributorInsightsOutput||(d.UpdateContributorInsightsOutput={}));var lO;(function(e){e.filterSensitiveLog=t=>o({},t)})(lO=d.ReplicaAlreadyExistsException||(d.ReplicaAlreadyExistsException={}));var dO;(function(e){e.filterSensitiveLog=t=>o({},t)})(dO=d.ReplicaNotFoundException||(d.ReplicaNotFoundException={}));var uO;(function(e){e.filterSensitiveLog=t=>o({},t)})(uO=d.ReplicaUpdate||(d.ReplicaUpdate={}));var mO;(function(e){e.filterSensitiveLog=t=>o({},t)})(mO=d.UpdateGlobalTableInput||(d.UpdateGlobalTableInput={}));var fO;(function(e){e.filterSensitiveLog=t=>o({},t)})(fO=d.UpdateGlobalTableOutput||(d.UpdateGlobalTableOutput={}));var pO;(function(e){e.filterSensitiveLog=t=>o({},t)})(pO=d.IndexNotFoundException||(d.IndexNotFoundException={}));var hO;(function(e){e.filterSensitiveLog=t=>o({},t)})(hO=d.GlobalTableGlobalSecondaryIndexSettingsUpdate||(d.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var yO;(function(e){e.filterSensitiveLog=t=>o({},t)})(yO=d.ReplicaGlobalSecondaryIndexSettingsUpdate||(d.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var gO;(function(e){e.filterSensitiveLog=t=>o({},t)})(gO=d.ReplicaSettingsUpdate||(d.ReplicaSettingsUpdate={}));var _O;(function(e){e.filterSensitiveLog=t=>o({},t)})(_O=d.UpdateGlobalTableSettingsInput||(d.UpdateGlobalTableSettingsInput={}));var wO;(function(e){e.filterSensitiveLog=t=>o({},t)})(wO=d.UpdateGlobalTableSettingsOutput||(d.UpdateGlobalTableSettingsOutput={}));var bO;(function(e){e.filterSensitiveLog=t=>o({},t)})(bO=d.UpdateGlobalSecondaryIndexAction||(d.UpdateGlobalSecondaryIndexAction={}));var SO;(function(e){e.filterSensitiveLog=t=>o({},t)})(SO=d.GlobalSecondaryIndexUpdate||(d.GlobalSecondaryIndexUpdate={}));var vO;(function(e){e.filterSensitiveLog=t=>o({},t)})(vO=d.UpdateReplicationGroupMemberAction||(d.UpdateReplicationGroupMemberAction={}));var EO;(function(e){e.filterSensitiveLog=t=>o({},t)})(EO=d.ReplicationGroupUpdate||(d.ReplicationGroupUpdate={}));var AO;(function(e){e.filterSensitiveLog=t=>o({},t)})(AO=d.UpdateTableInput||(d.UpdateTableInput={}));var CO;(function(e){e.filterSensitiveLog=t=>o({},t)})(CO=d.UpdateTableOutput||(d.UpdateTableOutput={}));var TO;(function(e){e.filterSensitiveLog=t=>o({},t)})(TO=d.GlobalSecondaryIndexAutoScalingUpdate||(d.GlobalSecondaryIndexAutoScalingUpdate={}));var xO;(function(e){e.filterSensitiveLog=t=>o({},t)})(xO=d.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(d.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var IO;(function(e){e.filterSensitiveLog=t=>o({},t)})(IO=d.ReplicaAutoScalingUpdate||(d.ReplicaAutoScalingUpdate={}));var RO;(function(e){e.filterSensitiveLog=t=>o({},t)})(RO=d.UpdateTableReplicaAutoScalingInput||(d.UpdateTableReplicaAutoScalingInput={}));var DO;(function(e){e.filterSensitiveLog=t=>o({},t)})(DO=d.UpdateTableReplicaAutoScalingOutput||(d.UpdateTableReplicaAutoScalingOutput={}));var kO;(function(e){e.filterSensitiveLog=t=>o({},t)})(kO=d.TimeToLiveSpecification||(d.TimeToLiveSpecification={}));var NO;(function(e){e.filterSensitiveLog=t=>o({},t)})(NO=d.UpdateTimeToLiveInput||(d.UpdateTimeToLiveInput={}));var PO;(function(e){e.filterSensitiveLog=t=>o({},t)})(PO=d.UpdateTimeToLiveOutput||(d.UpdateTimeToLiveOutput={}));var re;(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])=>u(o({},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"}}})(re=d.AttributeValue||(d.AttributeValue={}));var tw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Value&&{Value:re.filterSensitiveLog(t.Value)})})(tw=d.AttributeValueUpdate||(d.AttributeValueUpdate={}));var nw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(nw=d.BatchStatementRequest||(d.BatchStatementRequest={}));var rw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(rw=d.BatchStatementResponse||(d.BatchStatementResponse={}));var iw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(iw=d.CancellationReason||(d.CancellationReason={}));var Ra;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>re.filterSensitiveLog(n))})})(Ra=d.Condition||(d.Condition={}));var sw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(sw=d.DeleteRequest||(d.DeleteRequest={}));var LO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(LO=d.ExecuteStatementInput||(d.ExecuteStatementInput={}));var aw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(aw=d.Get||(d.Get={}));var qO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(qO=d.GetItemInput||(d.GetItemInput={}));var MO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(MO=d.GetItemOutput||(d.GetItemOutput={}));var oi;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(oi=d.ItemCollectionMetrics||(d.ItemCollectionMetrics={}));var gf;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(gf=d.ItemResponse||(d.ItemResponse={}));var ow;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(ow=d.ParameterizedStatement||(d.ParameterizedStatement={}));var cw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(cw=d.PutRequest||(d.PutRequest={}));var OO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>u(o({},r),{[i]:re.filterSensitiveLog(s)}),{}))})})(OO=d.ExecuteStatementOutput||(d.ExecuteStatementOutput={}));var _f;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Keys&&{Keys:t.Keys.map(n=>Object.entries(n).reduce((r,[i,s])=>u(o({},r),{[i]:re.filterSensitiveLog(s)}),{}))})})(_f=d.KeysAndAttributes||(d.KeysAndAttributes={}));var lw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Get&&{Get:aw.filterSensitiveLog(t.Get)})})(lw=d.TransactGetItem||(d.TransactGetItem={}));var zO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Statements&&{Statements:t.Statements.map(n=>nw.filterSensitiveLog(n))})})(zO=d.BatchExecuteStatementInput||(d.BatchExecuteStatementInput={}));var jO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>rw.filterSensitiveLog(n))})})(jO=d.BatchExecuteStatementOutput||(d.BatchExecuteStatementOutput={}));var UO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactStatements&&{TransactStatements:t.TransactStatements.map(n=>ow.filterSensitiveLog(n))})})(UO=d.ExecuteTransactionInput||(d.ExecuteTransactionInput={}));var BO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>gf.filterSensitiveLog(n))})})(BO=d.ExecuteTransactionOutput||(d.ExecuteTransactionOutput={}));var FO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>gf.filterSensitiveLog(n))})})(FO=d.TransactGetItemsOutput||(d.TransactGetItemsOutput={}));var GO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.CancellationReasons&&{CancellationReasons:t.CancellationReasons.map(n=>iw.filterSensitiveLog(n))})})(GO=d.TransactionCanceledException||(d.TransactionCanceledException={}));var $O;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>u(o({},n),{[r]:_f.filterSensitiveLog(i)}),{})})})($O=d.BatchGetItemInput||(d.BatchGetItemInput={}));var Da;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Value&&{Value:re.filterSensitiveLog(t.Value)}),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>re.filterSensitiveLog(n))})})(Da=d.ExpectedAttributeValue||(d.ExpectedAttributeValue={}));var KO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>lw.filterSensitiveLog(n))})})(KO=d.TransactGetItemsInput||(d.TransactGetItemsInput={}));var VO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>u(o({},n),{[r]:i.map(s=>oi.filterSensitiveLog(s))}),{})})})(VO=d.TransactWriteItemsOutput||(d.TransactWriteItemsOutput={}));var dw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(dw=d.ConditionCheck||(d.ConditionCheck={}));var uw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(uw=d.Delete||(d.Delete={}));var mw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(mw=d.Put||(d.Put={}));var fw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(fw=d.Update||(d.Update={}));var WO;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:oi.filterSensitiveLog(t.ItemCollectionMetrics)})})(WO=d.DeleteItemOutput||(d.DeleteItemOutput={}));var HO;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:oi.filterSensitiveLog(t.ItemCollectionMetrics)})})(HO=d.PutItemOutput||(d.PutItemOutput={}));var YO;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>u(o({},r),{[i]:re.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(YO=d.QueryOutput||(d.QueryOutput={}));var JO;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>u(o({},r),{[i]:re.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(JO=d.ScanOutput||(d.ScanOutput={}));var QO;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:oi.filterSensitiveLog(t.ItemCollectionMetrics)})})(QO=d.UpdateItemOutput||(d.UpdateItemOutput={}));var wf;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.PutRequest&&{PutRequest:cw.filterSensitiveLog(t.PutRequest)}),t.DeleteRequest&&{DeleteRequest:sw.filterSensitiveLog(t.DeleteRequest)})})(wf=d.WriteRequest||(d.WriteRequest={}));var XO;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Responses&&{Responses:Object.entries(t.Responses).reduce((n,[r,i])=>u(o({},n),{[r]:i.map(s=>Object.entries(s).reduce((a,[c,l])=>u(o({},a),{[c]:re.filterSensitiveLog(l)}),{}))}),{})}),t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((n,[r,i])=>u(o({},n),{[r]:_f.filterSensitiveLog(i)}),{})})})(XO=d.BatchGetItemOutput||(d.BatchGetItemOutput={}));var ZO;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((n,[r,i])=>u(o({},n),{[r]:Ra.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(ZO=d.ScanInput||(d.ScanInput={}));var ez;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>u(o({},n),{[r]:i.map(s=>wf.filterSensitiveLog(s))}),{})})})(ez=d.BatchWriteItemInput||(d.BatchWriteItemInput={}));var tz;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>u(o({},n),{[r]:Da.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(tz=d.DeleteItemInput||(d.DeleteItemInput={}));var nz;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>u(o({},n),{[r]:Da.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(nz=d.PutItemInput||(d.PutItemInput={}));var rz;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((n,[r,i])=>u(o({},n),{[r]:Ra.filterSensitiveLog(i)}),{})}),t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((n,[r,i])=>u(o({},n),{[r]:Ra.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(rz=d.QueryInput||(d.QueryInput={}));var iz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((n,[r,i])=>u(o({},n),{[r]:i.map(s=>wf.filterSensitiveLog(s))}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>u(o({},n),{[r]:i.map(s=>oi.filterSensitiveLog(s))}),{})})})(iz=d.BatchWriteItemOutput||(d.BatchWriteItemOutput={}));var sz;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})}),t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((n,[r,i])=>u(o({},n),{[r]:tw.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>u(o({},n),{[r]:Da.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>u(o({},n),{[r]:re.filterSensitiveLog(i)}),{})})})(sz=d.UpdateItemInput||(d.UpdateItemInput={}));var pw;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.ConditionCheck&&{ConditionCheck:dw.filterSensitiveLog(t.ConditionCheck)}),t.Put&&{Put:mw.filterSensitiveLog(t.Put)}),t.Delete&&{Delete:uw.filterSensitiveLog(t.Delete)}),t.Update&&{Update:fw.filterSensitiveLog(t.Update)})})(pw=d.TransactWriteItem||(d.TransactWriteItem={}));var az;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>pw.filterSensitiveLog(n))})})(az=d.TransactWriteItemsInput||(d.TransactWriteItemsInput={}))});var yw=h(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.HttpResponse=void 0;var hw=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"}};ka.HttpResponse=hw});var gw=h(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.HttpRequest=void 0;var Na=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.substr(-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 Na(u(o({},this),{headers:o({},this.headers)}));return t.query&&(t.query=oz(t.query)),t}};Pa.HttpRequest=Na;function oz(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return u(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var ww=h(_w=>{"use strict";Object.defineProperty(_w,"__esModule",{value:!0})});var bw=h(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.isValidHostname=void 0;function cz(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}La.isValidHostname=cz});var kt=h(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});var qa=he();qa.__exportStar(yw(),ci);qa.__exportStar(gw(),ci);qa.__exportStar(ww(),ci);qa.__exportStar(bw(),ci)});var Ew=h(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.constructStack=void 0;var lz=()=>{let e=[],t=[],n=new Set,r=f=>f.sort((g,p)=>Sw[p.step]-Sw[g.step]||vw[p.priority||"normal"]-vw[g.priority||"normal"]),i=f=>{let g=!1,p=_=>_.name&&_.name===f?(g=!0,n.delete(f),!1):!0;return e=e.filter(p),t=t.filter(p),g},s=f=>{let g=!1,p=_=>_.middleware===f?(g=!0,_.name&&n.delete(_.name),!1):!0;return e=e.filter(p),t=t.filter(p),g},a=f=>(e.forEach(g=>{f.add(g.middleware,o({},g))}),t.forEach(g=>{f.addRelativeTo(g.middleware,o({},g))}),f),c=f=>{let g=[];return f.before.forEach(p=>{p.before.length===0&&p.after.length===0?g.push(p):g.push(...c(p))}),g.push(f),f.after.reverse().forEach(p=>{p.before.length===0&&p.after.length===0?g.push(p):g.push(...c(p))}),g},l=()=>{let f=[],g=[],p={};return e.forEach(S=>{let E=u(o({},S),{before:[],after:[]});E.name&&(p[E.name]=E),f.push(E)}),t.forEach(S=>{let E=u(o({},S),{before:[],after:[]});E.name&&(p[E.name]=E),g.push(E)}),g.forEach(S=>{if(S.toMiddleware){let E=p[S.toMiddleware];if(E===void 0)throw new Error(`${S.toMiddleware} is not found when adding ${S.name||"anonymous"} middleware ${S.relation} ${S.toMiddleware}`);S.relation==="after"&&E.after.push(S),S.relation==="before"&&E.before.push(S)}}),r(f).map(c).reduce((S,E)=>(S.push(...E),S),[]).map(S=>S.middleware)},m={add:(f,g={})=>{let{name:p,override:_}=g,S=o({step:"initialize",priority:"normal",middleware:f},g);if(p){if(n.has(p)){if(!_)throw new Error(`Duplicate middleware name '${p}'`);let E=e.findIndex(D=>D.name===p),k=e[E];if(k.step!==S.step||k.priority!==S.priority)throw new Error(`"${p}" middleware with ${k.priority} priority in ${k.step} step cannot be overridden by same-name middleware with ${S.priority} priority in ${S.step} step.`);e.splice(E,1)}n.add(p)}e.push(S)},addRelativeTo:(f,g)=>{let{name:p,override:_}=g,S=o({middleware:f},g);if(p){if(n.has(p)){if(!_)throw new Error(`Duplicate middleware name '${p}'`);let E=t.findIndex(D=>D.name===p),k=t[E];if(k.toMiddleware!==S.toMiddleware||k.relation!==S.relation)throw new Error(`"${p}" middleware ${k.relation} "${k.toMiddleware}" middleware cannot be overridden by same-name middleware ${S.relation} "${S.toMiddleware}" middleware.`);t.splice(E,1)}n.add(p)}t.push(S)},clone:()=>a(li.constructStack()),use:f=>{f.applyToStack(m)},remove:f=>typeof f=="string"?i(f):s(f),removeByTag:f=>{let g=!1,p=_=>{let{tags:S,name:E}=_;return S&&S.includes(f)?(E&&n.delete(E),g=!0,!1):!0};return e=e.filter(p),t=t.filter(p),g},concat:f=>{let g=a(li.constructStack());return g.use(f),g},applyToStack:a,resolve:(f,g)=>{for(let p of l().reverse())f=p(f,g);return f}};return m};li.constructStack=lz;var Sw={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},vw={high:3,normal:2,low:1}});var Sf=h(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var dz=he();dz.__exportStar(Ew(),bf)});var Cw=h(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.Client=void 0;var uz=Sf(),Aw=class{constructor(t){this.middlewareStack=uz.constructStack(),this.config=t}send(t,n,r){let i=typeof n!="function"?n:void 0,s=typeof n=="function"?n:r,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()}};Ma.Client=Aw});var xw=h(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.Command=void 0;var mz=Sf(),Tw=class{constructor(){this.middlewareStack=mz.constructStack()}};Oa.Command=Tw});var Rw=h(Iw=>{"use strict";Object.defineProperty(Iw,"__esModule",{value:!0})});var kw=h(Dw=>{"use strict";Object.defineProperty(Dw,"__esModule",{value:!0})});var Nw=h(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.extendedEncodeURIComponent=void 0;function fz(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}za.extendedEncodeURIComponent=fz});var Pw=h(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.getArrayIfSingleItem=void 0;var pz=e=>Array.isArray(e)?e:[e];ja.getArrayIfSingleItem=pz});var Lw=h(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.getValueFromTextNode=void 0;var hz=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]=us.getValueFromTextNode(e[n]));return e};us.getValueFromTextNode=hz});var qw=h(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.LazyJsonString=rn.StringWrapper=void 0;var yz=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};rn.StringWrapper=yz;rn.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:rn.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(rn.StringWrapper,String);var di=class extends rn.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof di?t:t instanceof String||typeof t=="string"?new di(t):new di(JSON.stringify(t))}};rn.LazyJsonString=di});var Mw=h(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.handleFloat=Nt.expectString=Nt.expectNumber=Nt.expectBoolean=Nt.parseBoolean=void 0;var gz=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};Nt.parseBoolean=gz;var _z=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};Nt.expectBoolean=_z;var wz=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};Nt.expectNumber=wz;var bz=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};Nt.expectString=bz;var Sz=e=>{if(typeof e=="string")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}`)}return Nt.expectNumber(e)};Nt.handleFloat=Sz});var Ow=h(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.serializeFloat=void 0;var vz=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};Ua.serializeFloat=vz});var zw=h(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.dateToUtcString=void 0;var Ez=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Az=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Cz(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds(),l=i<10?`0${i}`:`${i}`,m=s<10?`0${s}`:`${s}`,f=a<10?`0${a}`:`${a}`,g=c<10?`0${c}`:`${c}`;return`${Ez[r]}, ${l} ${Az[n]} ${t} ${m}:${f}:${g} GMT`}Ba.dateToUtcString=Cz});var jw=h(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.splitEvery=void 0;function Tz(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 a=0;a<r.length;a++)s===""?s=r[a]:s+=t+r[a],(a+1)%n==0&&(i.push(s),s="");return s!==""&&i.push(s),i}Fa.splitEvery=Tz});var Uw=h(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.SENSITIVE_STRING=void 0;Ga.SENSITIVE_STRING="***SensitiveInformation***"});var Fw=h(Bw=>{"use strict";Object.defineProperty(Bw,"__esModule",{value:!0})});var $w=h(Gw=>{"use strict";Object.defineProperty(Gw,"__esModule",{value:!0})});var M=h(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});var lt=he();lt.__exportStar(Cw(),He);lt.__exportStar(xw(),He);lt.__exportStar(Rw(),He);lt.__exportStar(kw(),He);lt.__exportStar(Nw(),He);lt.__exportStar(Pw(),He);lt.__exportStar(Lw(),He);lt.__exportStar(qw(),He);lt.__exportStar(Mw(),He);lt.__exportStar(Ow(),He);lt.__exportStar(zw(),He);lt.__exportStar(jw(),He);lt.__exportStar(Uw(),He);lt.__exportStar(Fw(),He);lt.__exportStar($w(),He)});var Ef=h(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.default=Rz;var xz=Iz(require("crypto"));function Iz(e){return e&&e.__esModule?e:{default:e}}var $a=new Uint8Array(256),Ka=$a.length;function Rz(){return Ka>$a.length-16&&(xz.default.randomFillSync($a),Ka=0),$a.slice(Ka,Ka+=16)}});var Kw=h(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=void 0;var Dz=/^(?:[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;Va.default=Dz});var ms=h(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.default=void 0;var kz=Nz(Kw());function Nz(e){return e&&e.__esModule?e:{default:e}}function Pz(e){return typeof e=="string"&&kz.default.test(e)}var Lz=Pz;Wa.default=Lz});var fs=h(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=void 0;var qz=Mz(ms());function Mz(e){return e&&e.__esModule?e:{default:e}}var Ye=[];for(let e=0;e<256;++e)Ye.push((e+256).toString(16).substr(1));function Oz(e,t=0){let n=(Ye[e[t+0]]+Ye[e[t+1]]+Ye[e[t+2]]+Ye[e[t+3]]+"-"+Ye[e[t+4]]+Ye[e[t+5]]+"-"+Ye[e[t+6]]+Ye[e[t+7]]+"-"+Ye[e[t+8]]+Ye[e[t+9]]+"-"+Ye[e[t+10]]+Ye[e[t+11]]+Ye[e[t+12]]+Ye[e[t+13]]+Ye[e[t+14]]+Ye[e[t+15]]).toLowerCase();if(!(0,qz.default)(n))throw TypeError("Stringified UUID is invalid");return n}var zz=Oz;Ha.default=zz});var Hw=h(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=void 0;var jz=Vw(Ef()),Uz=Vw(fs());function Vw(e){return e&&e.__esModule?e:{default:e}}var Ww,Af,Cf=0,Tf=0;function Bz(e,t,n){let r=t&&n||0,i=t||new Array(16);e=e||{};let s=e.node||Ww,a=e.clockseq!==void 0?e.clockseq:Af;if(s==null||a==null){let p=e.random||(e.rng||jz.default)();s==null&&(s=Ww=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]),a==null&&(a=Af=(p[6]<<8|p[7])&16383)}let c=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:Tf+1,m=c-Cf+(l-Tf)/1e4;if(m<0&&e.clockseq===void 0&&(a=a+1&16383),(m<0||c>Cf)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Cf=c,Tf=l,Af=a,c+=122192928e5;let f=((c&268435455)*1e4+l)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=f&255;let g=c/4294967296*1e4&268435455;i[r++]=g>>>8&255,i[r++]=g&255,i[r++]=g>>>24&15|16,i[r++]=g>>>16&255,i[r++]=a>>>8|128,i[r++]=a&255;for(let p=0;p<6;++p)i[r+p]=s[p];return t||(0,Uz.default)(i)}var Fz=Bz;Ya.default=Fz});var xf=h(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.default=void 0;var Gz=$z(ms());function $z(e){return e&&e.__esModule?e:{default:e}}function Kz(e){if(!(0,Gz.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 Vz=Kz;Ja.default=Vz});var If=h(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.default=Jz;xr.URL=xr.DNS=void 0;var Wz=Yw(fs()),Hz=Yw(xf());function Yw(e){return e&&e.__esModule?e:{default:e}}function Yz(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var Jw="6ba7b810-9dad-11d1-80b4-00c04fd430c8";xr.DNS=Jw;var Qw="6ba7b811-9dad-11d1-80b4-00c04fd430c8";xr.URL=Qw;function Jz(e,t,n){function r(i,s,a,c){if(typeof i=="string"&&(i=Yz(i)),typeof s=="string"&&(s=(0,Hz.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=n(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,a){c=c||0;for(let m=0;m<16;++m)a[c+m]=l[m];return a}return(0,Wz.default)(l)}try{r.name=e}catch(i){}return r.DNS=Jw,r.URL=Qw,r}});var Xw=h(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=void 0;var Qz=Xz(require("crypto"));function Xz(e){return e&&e.__esModule?e:{default:e}}function Zz(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Qz.default.createHash("md5").update(e).digest()}var ej=Zz;Qa.default=ej});var eb=h(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=void 0;var tj=Zw(If()),nj=Zw(Xw());function Zw(e){return e&&e.__esModule?e:{default:e}}var rj=(0,tj.default)("v3",48,nj.default),ij=rj;Xa.default=ij});var nb=h(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.default=void 0;var sj=tb(Ef()),aj=tb(fs());function tb(e){return e&&e.__esModule?e:{default:e}}function oj(e,t,n){e=e||{};let r=e.random||(e.rng||sj.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,aj.default)(r)}var cj=oj;Za.default=cj});var rb=h(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var lj=dj(require("crypto"));function dj(e){return e&&e.__esModule?e:{default:e}}function uj(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),lj.default.createHash("sha1").update(e).digest()}var mj=uj;eo.default=mj});var sb=h(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.default=void 0;var fj=ib(If()),pj=ib(rb());function ib(e){return e&&e.__esModule?e:{default:e}}var hj=(0,fj.default)("v5",80,pj.default),yj=hj;to.default=yj});var ab=h(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=void 0;var gj="00000000-0000-0000-0000-000000000000";no.default=gj});var ob=h(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.default=void 0;var _j=wj(ms());function wj(e){return e&&e.__esModule?e:{default:e}}function bj(e){if(!(0,_j.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var Sj=bj;ro.default=Sj});var Rf=h(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Object.defineProperty(Ht,"v1",{enumerable:!0,get:function(){return vj.default}});Object.defineProperty(Ht,"v3",{enumerable:!0,get:function(){return Ej.default}});Object.defineProperty(Ht,"v4",{enumerable:!0,get:function(){return Aj.default}});Object.defineProperty(Ht,"v5",{enumerable:!0,get:function(){return Cj.default}});Object.defineProperty(Ht,"NIL",{enumerable:!0,get:function(){return Tj.default}});Object.defineProperty(Ht,"version",{enumerable:!0,get:function(){return xj.default}});Object.defineProperty(Ht,"validate",{enumerable:!0,get:function(){return Ij.default}});Object.defineProperty(Ht,"stringify",{enumerable:!0,get:function(){return Rj.default}});Object.defineProperty(Ht,"parse",{enumerable:!0,get:function(){return Dj.default}});var vj=In(Hw()),Ej=In(eb()),Aj=In(nb()),Cj=In(sb()),Tj=In(ab()),xj=In(ob()),Ij=In(ms()),Rj=In(fs()),Dj=In(xf());function In(e){return e&&e.__esModule?e:{default:e}}});var H=h(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 kj=W(),Nj=kt(),w=M(),Df=Rf(),Pj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},r;return r=JSON.stringify(LF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchExecuteStatementCommand=Pj;var Lj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},r;return r=JSON.stringify(qF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchGetItemCommand=Lj;var qj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},r;return r=JSON.stringify(zF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchWriteItemCommand=qj;var Mj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},r;return r=JSON.stringify(FF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateBackupCommand=Mj;var Oj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},r;return r=JSON.stringify($F(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateGlobalTableCommand=Oj;var zj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},r;return r=JSON.stringify(WF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateTableCommand=zj;var jj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},r;return r=JSON.stringify(YF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteBackupCommand=jj;var Uj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},r;return r=JSON.stringify(QF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteItemCommand=Uj;var Bj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},r;return r=JSON.stringify(tG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteTableCommand=Bj;var Fj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},r;return r=JSON.stringify(nG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeBackupCommand=Fj;var Gj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},r;return r=JSON.stringify(rG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContinuousBackupsCommand=Gj;var $j=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},r;return r=JSON.stringify(iG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContributorInsightsCommand=$j;var Kj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},r;return r=JSON.stringify(sG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeEndpointsCommand=Kj;var Vj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},r;return r=JSON.stringify(aG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeExportCommand=Vj;var Wj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},r;return r=JSON.stringify(oG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableCommand=Wj;var Hj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},r;return r=JSON.stringify(cG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=Hj;var Yj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},r;return r=JSON.stringify(lG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=Yj;var Jj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},r;return r=JSON.stringify(dG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeLimitsCommand=Jj;var Qj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},r;return r=JSON.stringify(uG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableCommand=Qj;var Xj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},r;return r=JSON.stringify(mG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=Xj;var Zj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},r;return r=JSON.stringify(fG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTimeToLiveCommand=Zj;var eU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},r;return r=JSON.stringify(_b(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=eU;var tU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},r;return r=JSON.stringify(_b(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=tU;var nU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},r;return r=JSON.stringify(pG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteStatementCommand=nU;var rU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},r;return r=JSON.stringify(hG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteTransactionCommand=rU;var iU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},r;return r=JSON.stringify(gG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExportTableToPointInTimeCommand=iU;var sU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},r;return r=JSON.stringify(wG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0GetItemCommand=sU;var aU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},r;return r=JSON.stringify(NG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListBackupsCommand=aU;var oU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},r;return r=JSON.stringify(PG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListContributorInsightsCommand=oU;var cU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},r;return r=JSON.stringify(LG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListExportsCommand=cU;var lU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},r;return r=JSON.stringify(qG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListGlobalTablesCommand=lU;var dU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},r;return r=JSON.stringify(MG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTablesCommand=dU;var uU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},r;return r=JSON.stringify(OG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTagsOfResourceCommand=uU;var mU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},r;return r=JSON.stringify(WG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0PutItemCommand=mU;var fU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},r;return r=JSON.stringify(YG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0QueryCommand=fU;var pU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},r;return r=JSON.stringify(u$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableFromBackupCommand=pU;var hU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},r;return r=JSON.stringify(m$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableToPointInTimeCommand=hU;var yU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},r;return r=JSON.stringify(f$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ScanCommand=yU;var gU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},r;return r=JSON.stringify(g$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TagResourceCommand=gU;var _U=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},r;return r=JSON.stringify(S$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactGetItemsCommand=_U;var wU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},r;return r=JSON.stringify(A$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactWriteItemsCommand=wU;var bU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},r;return r=JSON.stringify(C$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UntagResourceCommand=bU;var SU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},r;return r=JSON.stringify(x$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContinuousBackupsCommand=SU;var vU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},r;return r=JSON.stringify(I$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContributorInsightsCommand=vU;var EU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},r;return r=JSON.stringify(D$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableCommand=EU;var AU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},r;return r=JSON.stringify(k$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=AU;var CU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},r;return r=JSON.stringify(N$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateItemCommand=CU;var TU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},r;return r=JSON.stringify(L$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableCommand=TU;var xU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},r;return r=JSON.stringify(q$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=xU;var IU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},r;return r=JSON.stringify(M$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTimeToLiveCommand=IU;var RU=async(e,t)=>{if(e.statusCode>=300)return DU(e,t);let n=await P(e.body,t),r={};r=J$(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0BatchExecuteStatementCommand=RU;var DU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},kU=async(e,t)=>{if(e.statusCode>=300)return NU(e,t);let n=await P(e.body,t),r={};r=Q$(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0BatchGetItemCommand=kU;var NU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},PU=async(e,t)=>{if(e.statusCode>=300)return LU(e,t);let n=await P(e.body,t),r={};r=n2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0BatchWriteItemCommand=PU;var LU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await ps(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},qU=async(e,t)=>{if(e.statusCode>=300)return MU(e,t);let n=await P(e.body,t),r={};r=m2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0CreateBackupCommand=qU;var MU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await kf(n,t)),{name:i,$metadata:y(e)});break;case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=u(o({},await cb(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Pf(n,t)),{name:i,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Ir(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},OU=async(e,t)=>{if(e.statusCode>=300)return zU(e,t);let n=await P(e.body,t),r={};r=f2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0CreateGlobalTableCommand=OU;var zU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":r=u(o({},await AF(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Ir(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},jU=async(e,t)=>{if(e.statusCode>=300)return UU(e,t);let n=await P(e.body,t),r={};r=p2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0CreateTableCommand=jU;var UU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await sn(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},BU=async(e,t)=>{if(e.statusCode>=300)return FU(e,t);let n=await P(e.body,t),r={};r=h2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DeleteBackupCommand=BU;var FU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await kf(n,t)),{name:i,$metadata:y(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await Nf(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},GU=async(e,t)=>{if(e.statusCode>=300)return $U(e,t);let n=await P(e.body,t),r={};r=y2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DeleteItemCommand=GU;var $U=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await io(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await ps(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await ao(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},KU=async(e,t)=>{if(e.statusCode>=300)return VU(e,t);let n=await P(e.body,t),r={};r=_2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DeleteTableCommand=KU;var VU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await sn(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},WU=async(e,t)=>{if(e.statusCode>=300)return HU(e,t);let n=await P(e.body,t),r={};r=w2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeBackupCommand=WU;var HU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await Nf(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},YU=async(e,t)=>{if(e.statusCode>=300)return JU(e,t);let n=await P(e.body,t),r={};r=b2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContinuousBackupsCommand=YU;var JU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Ir(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},QU=async(e,t)=>{if(e.statusCode>=300)return XU(e,t);let n=await P(e.body,t),r={};r=S2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContributorInsightsCommand=QU;var XU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},ZU=async(e,t)=>{if(e.statusCode>=300)return eB(e,t);let n=await P(e.body,t),r={};r=v2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeEndpointsCommand=ZU;var eB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},tB=async(e,t)=>{if(e.statusCode>=300)return nB(e,t);let n=await P(e.body,t),r={};r=E2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeExportCommand=tB;var nB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":r=u(o({},await EF(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},rB=async(e,t)=>{if(e.statusCode>=300)return iB(e,t);let n=await P(e.body,t),r={};r=A2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableCommand=rB;var iB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await so(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},sB=async(e,t)=>{if(e.statusCode>=300)return aB(e,t);let n=await P(e.body,t),r={};r=C2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=sB;var aB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await so(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},oB=async(e,t)=>{if(e.statusCode>=300)return cB(e,t);let n=await P(e.body,t),r={};r=T2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=oB;var cB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},lB=async(e,t)=>{if(e.statusCode>=300)return dB(e,t);let n=await P(e.body,t),r={};r=x2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeLimitsCommand=lB;var dB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},uB=async(e,t)=>{if(e.statusCode>=300)return mB(e,t);let n=await P(e.body,t),r={};r=I2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableCommand=uB;var mB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},fB=async(e,t)=>{if(e.statusCode>=300)return pB(e,t);let n=await P(e.body,t),r={};r=R2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=fB;var pB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},hB=async(e,t)=>{if(e.statusCode>=300)return yB(e,t);let n=await P(e.body,t),r={};r=D2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTimeToLiveCommand=hB;var yB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},gB=async(e,t)=>{if(e.statusCode>=300)return _B(e,t);let n=await P(e.body,t),r={};r=Db(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=gB;var _B=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await sn(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},wB=async(e,t)=>{if(e.statusCode>=300)return bB(e,t);let n=await P(e.body,t),r={};r=Db(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=wB;var bB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await sn(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},SB=async(e,t)=>{if(e.statusCode>=300)return vB(e,t);let n=await P(e.body,t),r={};r=L2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteStatementCommand=SB;var vB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await io(n,t)),{name:i,$metadata:y(e)});break;case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":r=u(o({},await SF(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await ps(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await ao(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},EB=async(e,t)=>{if(e.statusCode>=300)return AB(e,t);let n=await P(e.body,t),r={};r=q2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteTransactionCommand=EB;var AB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=u(o({},await lb(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Lf(n,t)),{name:i,$metadata:y(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=u(o({},await fb(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},CB=async(e,t)=>{if(e.statusCode>=300)return TB(e,t);let n=await P(e.body,t),r={};r=U2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0ExportTableToPointInTimeCommand=CB;var TB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":r=u(o({},await vF(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":r=u(o({},await TF(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=u(o({},await db(n,t)),{name:i,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Ir(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},xB=async(e,t)=>{if(e.statusCode>=300)return IB(e,t);let n=await P(e.body,t),r={};r=G2(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0GetItemCommand=xB;var IB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},RB=async(e,t)=>{if(e.statusCode>=300)return DB(e,t);let n=await P(e.body,t),r={};r=yK(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0ListBackupsCommand=RB;var DB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},kB=async(e,t)=>{if(e.statusCode>=300)return NB(e,t);let n=await P(e.body,t),r={};r=gK(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0ListContributorInsightsCommand=kB;var NB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},PB=async(e,t)=>{if(e.statusCode>=300)return LB(e,t);let n=await P(e.body,t),r={};r=_K(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0ListExportsCommand=PB;var LB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},qB=async(e,t)=>{if(e.statusCode>=300)return MB(e,t);let n=await P(e.body,t),r={};r=wK(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0ListGlobalTablesCommand=qB;var MB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},OB=async(e,t)=>{if(e.statusCode>=300)return zB(e,t);let n=await P(e.body,t),r={};r=bK(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0ListTablesCommand=OB;var zB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},jB=async(e,t)=>{if(e.statusCode>=300)return UB(e,t);let n=await P(e.body,t),r={};r=SK(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0ListTagsOfResourceCommand=jB;var UB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},BB=async(e,t)=>{if(e.statusCode>=300)return FB(e,t);let n=await P(e.body,t),r={};r=LK(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0PutItemCommand=BB;var FB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await io(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await ps(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await ao(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},GB=async(e,t)=>{if(e.statusCode>=300)return $B(e,t);let n=await P(e.body,t),r={};r=MK(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0QueryCommand=GB;var $B=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},KB=async(e,t)=>{if(e.statusCode>=300)return VB(e,t);let n=await P(e.body,t),r={};r=tV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableFromBackupCommand=KB;var VB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await kf(n,t)),{name:i,$metadata:y(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await Nf(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=u(o({},await mb(n,t)),{name:i,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Pf(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},WB=async(e,t)=>{if(e.statusCode>=300)return HB(e,t);let n=await P(e.body,t),r={};r=nV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=WB;var HB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":r=u(o({},await xF(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=u(o({},await db(n,t)),{name:i,$metadata:y(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=u(o({},await mb(n,t)),{name:i,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Pf(n,t)),{name:i,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Ir(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},YB=async(e,t)=>{if(e.statusCode>=300)return JB(e,t);let n=await P(e.body,t),r={};r=rV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0ScanCommand=YB;var JB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},QB=async(e,t)=>{if(e.statusCode>=300)return XB(e,t);await Gf(e.body,t);let n={$metadata:y(e)};return Promise.resolve(n)};v.deserializeAws_json1_0TagResourceCommand=QB;var XB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await sn(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},ZB=async(e,t)=>{if(e.statusCode>=300)return eF(e,t);let n=await P(e.body,t),r={};r=pV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0TransactGetItemsCommand=ZB;var eF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Lf(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},tF=async(e,t)=>{if(e.statusCode>=300)return nF(e,t);let n=await P(e.body,t),r={};r=_V(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0TransactWriteItemsCommand=tF;var nF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=u(o({},await lb(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Lf(n,t)),{name:i,$metadata:y(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=u(o({},await fb(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},rF=async(e,t)=>{if(e.statusCode>=300)return iF(e,t);await Gf(e.body,t);let n={$metadata:y(e)};return Promise.resolve(n)};v.deserializeAws_json1_0UntagResourceCommand=rF;var iF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await sn(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},sF=async(e,t)=>{if(e.statusCode>=300)return aF(e,t);let n=await P(e.body,t),r={};r=wV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContinuousBackupsCommand=sF;var aF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=u(o({},await cb(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Ir(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},oF=async(e,t)=>{if(e.statusCode>=300)return cF(e,t);let n=await P(e.body,t),r={};r=bV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContributorInsightsCommand=oF;var cF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},lF=async(e,t)=>{if(e.statusCode>=300)return dF(e,t);let n=await P(e.body,t),r={};r=SV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableCommand=lF;var dF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await so(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":r=u(o({},await IF(n,t)),{name:i,$metadata:y(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=u(o({},await ub(n,t)),{name:i,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Ir(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},uF=async(e,t)=>{if(e.statusCode>=300)return mF(e,t);let n=await P(e.body,t),r={};r=vV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=uF;var mF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await so(n,t)),{name:i,$metadata:y(e)});break;case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":r=u(o({},await CF(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=u(o({},await ub(n,t)),{name:i,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await sn(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},fF=async(e,t)=>{if(e.statusCode>=300)return pF(e,t);let n=await P(e.body,t),r={};r=EV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0UpdateItemCommand=fF;var pF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await io(n,t)),{name:i,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await ps(n,t)),{name:i,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await zt(n,t)),{name:i,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await ao(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},hF=async(e,t)=>{if(e.statusCode>=300)return yF(e,t);let n=await P(e.body,t),r={};r=AV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableCommand=hF;var yF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await sn(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},gF=async(e,t)=>{if(e.statusCode>=300)return _F(e,t);let n=await P(e.body,t),r={};r=CV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=gF;var _F=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await sn(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},wF=async(e,t)=>{if(e.statusCode>=300)return bF(e,t);let n=await P(e.body,t),r={};r=TV(n,t);let i=o({$metadata:y(e)},r);return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTimeToLiveCommand=wF;var bF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=Z(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:i,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:i,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await Ge(n,t)),{name:i,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await sn(n,t)),{name:i,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:i,$metadata:y(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:y(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},kf=async(e,t)=>{let n=e.body,r=V$(n,t);return o({name:"BackupInUseException",$fault:"client",$metadata:y(e)},r)},Nf=async(e,t)=>{let n=e.body,r=W$(n,t);return o({name:"BackupNotFoundException",$fault:"client",$metadata:y(e)},r)},io=async(e,t)=>{let n=e.body,r=o2(n,t);return o({name:"ConditionalCheckFailedException",$fault:"client",$metadata:y(e)},r)},cb=async(e,t)=>{let n=e.body,r=c2(n,t);return o({name:"ContinuousBackupsUnavailableException",$fault:"client",$metadata:y(e)},r)},SF=async(e,t)=>{let n=e.body,r=k2(n,t);return o({name:"DuplicateItemException",$fault:"client",$metadata:y(e)},r)},vF=async(e,t)=>{let n=e.body,r=M2(n,t);return o({name:"ExportConflictException",$fault:"client",$metadata:y(e)},r)},EF=async(e,t)=>{let n=e.body,r=O2(n,t);return o({name:"ExportNotFoundException",$fault:"client",$metadata:y(e)},r)},AF=async(e,t)=>{let n=e.body,r=Y2(n,t);return o({name:"GlobalTableAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},so=async(e,t)=>{let n=e.body,r=Q2(n,t);return o({name:"GlobalTableNotFoundException",$fault:"client",$metadata:y(e)},r)},lb=async(e,t)=>{let n=e.body,r=X2(n,t);return o({name:"IdempotentParameterMismatchException",$fault:"client",$metadata:y(e)},r)},CF=async(e,t)=>{let n=e.body,r=Z2(n,t);return o({name:"IndexNotFoundException",$fault:"client",$metadata:y(e)},r)},ee=async(e,t)=>{let n=e.body,r=eK(n,t);return o({name:"InternalServerError",$fault:"server",$metadata:y(e)},r)},oe=async(e,t)=>{let n=e.body,r=tK(n,t);return o({name:"InvalidEndpointException",$fault:"client",$metadata:y(e)},r)},TF=async(e,t)=>{let n=e.body,r=nK(n,t);return o({name:"InvalidExportTimeException",$fault:"client",$metadata:y(e)},r)},xF=async(e,t)=>{let n=e.body,r=rK(n,t);return o({name:"InvalidRestoreTimeException",$fault:"client",$metadata:y(e)},r)},ps=async(e,t)=>{let n=e.body,r=oK(n,t);return o({name:"ItemCollectionSizeLimitExceededException",$fault:"client",$metadata:y(e)},r)},Ge=async(e,t)=>{let n=e.body,r=pK(n,t);return o({name:"LimitExceededException",$fault:"client",$metadata:y(e)},r)},db=async(e,t)=>{let n=e.body,r=kK(n,t);return o({name:"PointInTimeRecoveryUnavailableException",$fault:"client",$metadata:y(e)},r)},zt=async(e,t)=>{let n=e.body,r=NK(n,t);return o({name:"ProvisionedThroughputExceededException",$fault:"client",$metadata:y(e)},r)},IF=async(e,t)=>{let n=e.body,r=zK(n,t);return o({name:"ReplicaAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},ub=async(e,t)=>{let n=e.body,r=YK(n,t);return o({name:"ReplicaNotFoundException",$fault:"client",$metadata:y(e)},r)},Pt=async(e,t)=>{let n=e.body,r=QK(n,t);return o({name:"RequestLimitExceeded",$fault:"client",$metadata:y(e)},r)},sn=async(e,t)=>{let n=e.body,r=XK(n,t);return o({name:"ResourceInUseException",$fault:"client",$metadata:y(e)},r)},be=async(e,t)=>{let n=e.body,r=ZK(n,t);return o({name:"ResourceNotFoundException",$fault:"client",$metadata:y(e)},r)},mb=async(e,t)=>{let n=e.body,r=oV(n,t);return o({name:"TableAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},Pf=async(e,t)=>{let n=e.body,r=cV(n,t);return o({name:"TableInUseException",$fault:"client",$metadata:y(e)},r)},Ir=async(e,t)=>{let n=e.body,r=dV(n,t);return o({name:"TableNotFoundException",$fault:"client",$metadata:y(e)},r)},Lf=async(e,t)=>{let n=e.body,r=hV(n,t);return o({name:"TransactionCanceledException",$fault:"client",$metadata:y(e)},r)},ao=async(e,t)=>{let n=e.body,r=yV(n,t);return o({name:"TransactionConflictException",$fault:"client",$metadata:y(e)},r)},fb=async(e,t)=>{let n=e.body,r=gV(n,t);return o({name:"TransactionInProgressException",$fault:"client",$metadata:y(e)},r)},RF=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}),pb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:RF(n,t)),oo=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),DF=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:kF(i,t)}),{}),Rn=(e,t)=>kj.AttributeValue.visit(e,{B:n=>({B:t.base64Encoder(n)}),BOOL:n=>({BOOL:n}),BS:n=>({BS:UF(n,t)}),L:n=>({L:kG(n,t)}),M:n=>({M:jG(n,t)}),N:n=>({N:n}),NS:n=>({NS:BG(n,t)}),NULL:n=>({NULL:n}),S:n=>({S:n}),SS:n=>({SS:p$(n,t)}),_:(n,r)=>({name:r})}),hb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),kF=(e,t)=>o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.Value!==void 0&&e.Value!==null&&{Value:Rn(e.Value,t)}),NF=(e,t)=>o(o({},e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName}),e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:PF(e.TargetTrackingScalingPolicyConfiguration,t)}),Xn=(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:NF(e.ScalingPolicyUpdate,t)}),PF=(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:w.serializeFloat(e.TargetValue)}),LF=(e,t)=>o({},e.Statements!==void 0&&e.Statements!==null&&{Statements:$G(e.Statements,t)}),qF=(e,t)=>o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:MF(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),MF=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:RG(i,t)}),{}),OF=(e,t)=>o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:zf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),zF=(e,t)=>o(o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:jF(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),jF=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:z$(i,t)}),{}),UF=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t.base64Encoder(n)),yb=(e,t)=>o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:hb(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),BF=(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:jt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Dn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Yt(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),FF=(e,t)=>o(o({},e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),GF=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:co(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:jf(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Rr(e.ProvisionedThroughput,t)}),$F=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:i$(e.ReplicationGroup,t)}),KF=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),VF=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:wb(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Uf(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),WF=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:pb(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Mf(e.GlobalSecondaryIndexes,t)}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:co(e.KeySchema,t)}),e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:Of(e.LocalSecondaryIndexes,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Rr(e.ProvisionedThroughput,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:lo(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:bb(e.StreamSpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.Tags!==void 0&&e.Tags!==null&&{Tags:Sb(e.Tags,t)}),HF=(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:jt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Dn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Yt(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),YF=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),JF=(e,t)=>o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),QF=(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:qf(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:jt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Dn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Yt(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}),XF=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),ZF=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),eG=(e,t)=>o({},e.Key!==void 0&&e.Key!==null&&{Key:Yt(e.Key,t)}),tG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),nG=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),rG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),iG=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),sG=(e,t)=>({}),aG=(e,t)=>o({},e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}),oG=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),cG=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),lG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),dG=(e,t)=>({}),uG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),mG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),fG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),pG=(e,t)=>o(o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:zf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),hG=(e,t)=>{var n;return o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:Df.v4()},e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:GG(e.TransactStatements,t)})},qf=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:yG(i,t)}),{}),yG=(e,t)=>o(o(o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:hb(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:Rn(e.Value,t)}),gG=(e,t)=>{var n;return o(o(o(o(o(o(o(o({ClientToken:(n=e.ClientToken)!==null&&n!==void 0?n:Df.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})},jt=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:i}),{}),Dn=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:Rn(i,t)}),{}),gb=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:yb(i,t)}),{}),_G=(e,t)=>o(o(o(o({},e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:jt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Yt(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),wG=(e,t)=>o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:oo(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:jt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Yt(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}),bG=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:co(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:jf(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Rr(e.ProvisionedThroughput,t)}),SG=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Xn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),vG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:SG(n,t)),Mf=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:bG(n,t)),EG=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:GF(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:JF(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:R$(e.Update,t)}),AG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:EG(n,t)),CG=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Xn(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}),TG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:CG(n,t)),Yt=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:Rn(i,t)}),{}),xG=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:yb(i,t)}),{}),IG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Yt(n,t)),RG=(e,t)=>o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:oo(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:jt(e.ExpressionAttributeNames,t)}),e.Keys!==void 0&&e.Keys!==null&&{Keys:IG(e.Keys,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),co=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:DG(n,t)),DG=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}),_b=(e,t)=>o(o({},e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),kG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),NG=(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)}),PG=(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}),LG=(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}),qG=(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}),MG=(e,t)=>o(o({},e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),OG=(e,t)=>o(o({},e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),zG=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:co(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:jf(e.Projection,t)}),Of=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:zG(n,t)),jG=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:Rn(i,t)}),{}),UG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),BG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),FG=(e,t)=>o(o({},e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:zf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),GG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:FG(n,t)),$G=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:OF(n,t)),KG=(e,t)=>o({},e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}),zf=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),jf=(e,t)=>o(o({},e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:UG(e.NonKeyAttributes,t)}),e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}),Rr=(e,t)=>o(o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}),Uf=(e,t)=>o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),VG=(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:jt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Dn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Bf(e.Item,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),WG=(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:qf(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:jt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Dn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Bf(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}),Bf=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:Rn(i,t)}),{}),HG=(e,t)=>o({},e.Item!==void 0&&e.Item!==null&&{Item:Bf(e.Item,t)}),YG=(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:oo(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:Yt(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:jt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Dn(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:xG(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:gb(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}),JG=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),QG=(e,t)=>o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:t$(e.ReplicaGlobalSecondaryIndexUpdates,t)}),e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Xn(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}),XG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:QG(n,t)),ZG=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Uf(e.ProvisionedThroughputOverride,t)}),e$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Xn(e.ProvisionedReadCapacityAutoScalingUpdate,t)}),t$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:e$(n,t)),wb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:ZG(n,t)),n$=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Xn(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}),r$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n$(n,t)),i$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:JG(n,t)),s$=(e,t)=>o(o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:r$(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Xn(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits}),a$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:s$(n,t)),o$=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:VF(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:ZF(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:P$(e.Update,t)}),c$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:o$(n,t)),l$=(e,t)=>o(o({},e.Create!==void 0&&e.Create!==null&&{Create:KF(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:XF(e.Delete,t)}),d$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:l$(n,t)),u$=(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:Mf(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:Of(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Rr(e.ProvisionedThroughputOverride,t)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:lo(e.SSESpecificationOverride,t)}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),m$=(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:Mf(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:Of(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Rr(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:lo(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}),f$=(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:oo(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:Yt(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:jt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Dn(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:gb(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}),lo=(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}),bb=(e,t)=>o(o({},e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled}),e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}),p$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),h$=(e,t)=>o(o({},e.Key!==void 0&&e.Key!==null&&{Key:e.Key}),e.Value!==void 0&&e.Value!==null&&{Value:e.Value}),y$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),Sb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:h$(n,t)),g$=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.Tags!==void 0&&e.Tags!==null&&{Tags:Sb(e.Tags,t)}),_$=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),w$=(e,t)=>o({},e.Get!==void 0&&e.Get!==null&&{Get:_G(e.Get,t)}),b$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:w$(n,t)),S$=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:b$(e.TransactItems,t)}),v$=(e,t)=>o(o(o(o({},e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:BF(e.ConditionCheck,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:HF(e.Delete,t)}),e.Put!==void 0&&e.Put!==null&&{Put:VG(e.Put,t)}),e.Update!==void 0&&e.Update!==null&&{Update:T$(e.Update,t)}),E$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:v$(n,t)),A$=(e,t)=>{var n;return o(o(o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:Df.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:E$(e.TransactItems,t)})},C$=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:y$(e.TagKeys,t)}),T$=(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:jt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Dn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Yt(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}),x$=(e,t)=>o(o({},e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:KG(e.PointInTimeRecoverySpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),I$=(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}),R$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Rr(e.ProvisionedThroughput,t)}),D$=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:d$(e.ReplicaUpdates,t)}),k$=(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:TG(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)}),e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Xn(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits}),e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:a$(e.ReplicaSettingsUpdate,t)}),N$=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:DF(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:qf(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:jt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Dn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Yt(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}),P$=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:wb(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Uf(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),L$=(e,t)=>o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:pb(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:AG(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Rr(e.ProvisionedThroughput,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:c$(e.ReplicaUpdates,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:lo(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:bb(e.StreamSpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),q$=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:vG(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Xn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:XG(e.ReplicaUpdates,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),M$=(e,t)=>o(o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:_$(e.TimeToLiveSpecification,t)}),O$=(e,t)=>o(o({},e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:eG(e.DeleteRequest,t)}),e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:HG(e.PutRequest,t)}),z$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:O$(n,t)),j$=(e,t)=>({ArchivalBackupArn:w.expectString(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?new Date(Math.round(e.ArchivalDateTime*1e3)):void 0,ArchivalReason:w.expectString(e.ArchivalReason)}),U$=(e,t)=>({AttributeName:w.expectString(e.AttributeName),AttributeType:w.expectString(e.AttributeType)}),B$=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:U$(n,t)),Zn=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:ui(i,t)}),{}),F$=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),ui=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:w.expectBoolean(e.BOOL)!==void 0?{BOOL:w.expectBoolean(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:i2(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:hK(e.L,t)}:e.M!==void 0&&e.M!==null?{M:TK(e.M,t)}:w.expectString(e.N)!==void 0?{N:w.expectString(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:IK(e.NS,t)}:w.expectBoolean(e.NULL)!==void 0?{NULL:w.expectBoolean(e.NULL)}:w.expectString(e.S)!==void 0?{S:w.expectString(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:aV(e.SS,t)}:{$unknown:Object.entries(e)[0]},G$=(e,t)=>({PolicyName:w.expectString(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?K$(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),$$=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:G$(n,t)),er=(e,t)=>({AutoScalingDisabled:w.expectBoolean(e.AutoScalingDisabled),AutoScalingRoleArn:w.expectString(e.AutoScalingRoleArn),MaximumUnits:w.expectNumber(e.MaximumUnits),MinimumUnits:w.expectNumber(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?$$(e.ScalingPolicies,t):void 0}),K$=(e,t)=>({DisableScaleIn:w.expectBoolean(e.DisableScaleIn),ScaleInCooldown:w.expectNumber(e.ScaleInCooldown),ScaleOutCooldown:w.expectNumber(e.ScaleOutCooldown),TargetValue:w.handleFloat(e.TargetValue)}),vb=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?Eb(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?iV(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?sV(e.SourceTableFeatureDetails,t):void 0}),Eb=(e,t)=>({BackupArn:w.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?new Date(Math.round(e.BackupCreationDateTime*1e3)):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?new Date(Math.round(e.BackupExpiryDateTime*1e3)):void 0,BackupName:w.expectString(e.BackupName),BackupSizeBytes:w.expectNumber(e.BackupSizeBytes),BackupStatus:w.expectString(e.BackupStatus),BackupType:w.expectString(e.BackupType)}),V$=(e,t)=>({message:w.expectString(e.message)}),W$=(e,t)=>({message:w.expectString(e.message)}),H$=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Y$(n,t)),Y$=(e,t)=>({BackupArn:w.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?new Date(Math.round(e.BackupCreationDateTime*1e3)):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?new Date(Math.round(e.BackupExpiryDateTime*1e3)):void 0,BackupName:w.expectString(e.BackupName),BackupSizeBytes:w.expectNumber(e.BackupSizeBytes),BackupStatus:w.expectString(e.BackupStatus),BackupType:w.expectString(e.BackupType),TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName)}),J$=(e,t)=>({Responses:e.Responses!==void 0&&e.Responses!==null?RK(e.Responses,t):void 0}),Q$=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?uo(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?Z$(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?X$(e.UnprocessedKeys,t):void 0}),X$=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:dK(i,t)}),{}),Z$=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:fo(i,t)}),{}),e2=(e,t)=>({Code:w.expectString(e.Code),Message:w.expectString(e.Message)}),t2=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?e2(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Zn(e.Item,t):void 0,TableName:w.expectString(e.TableName)}),n2=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?uo(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Ib(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?r2(e.UnprocessedItems,t):void 0}),r2=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:IV(i,t)}),{}),Ab=(e,t)=>({BillingMode:w.expectString(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?new Date(Math.round(e.LastUpdateToPayPerRequestDateTime*1e3)):void 0}),i2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),s2=(e,t)=>({Code:w.expectString(e.Code),Item:e.Item!==void 0&&e.Item!==null?Zn(e.Item,t):void 0,Message:w.expectString(e.Message)}),a2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:s2(n,t)),Cb=(e,t)=>({CapacityUnits:w.handleFloat(e.CapacityUnits),ReadCapacityUnits:w.handleFloat(e.ReadCapacityUnits),WriteCapacityUnits:w.handleFloat(e.WriteCapacityUnits)}),o2=(e,t)=>({message:w.expectString(e.message)}),Dr=(e,t)=>({CapacityUnits:w.handleFloat(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?Mb(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?Mb(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:w.handleFloat(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?Cb(e.Table,t):void 0,TableName:w.expectString(e.TableName),WriteCapacityUnits:w.handleFloat(e.WriteCapacityUnits)}),uo=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Dr(n,t)),Tb=(e,t)=>({ContinuousBackupsStatus:w.expectString(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?DK(e.PointInTimeRecoveryDescription,t):void 0}),c2=(e,t)=>({message:w.expectString(e.message)}),l2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),d2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:u2(n,t)),u2=(e,t)=>({ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),IndexName:w.expectString(e.IndexName),TableName:w.expectString(e.TableName)}),m2=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?Eb(e.BackupDetails,t):void 0}),f2=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Ff(e.GlobalTableDescription,t):void 0}),p2=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?fi(e.TableDescription,t):void 0}),h2=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?vb(e.BackupDescription,t):void 0}),y2=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Zn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Dr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?mo(e.ItemCollectionMetrics,t):void 0}),g2=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?po(e.Key,t):void 0}),_2=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?fi(e.TableDescription,t):void 0}),w2=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?vb(e.BackupDescription,t):void 0}),b2=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?Tb(e.ContinuousBackupsDescription,t):void 0}),S2=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?l2(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?F2(e.FailureException,t):void 0,IndexName:w.expectString(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?new Date(Math.round(e.LastUpdateDateTime*1e3)):void 0,TableName:w.expectString(e.TableName)}),v2=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?P2(e.Endpoints,t):void 0}),E2=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?xb(e.ExportDescription,t):void 0}),A2=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Ff(e.GlobalTableDescription,t):void 0}),C2=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?qb(e.ReplicaSettings,t):void 0}),T2=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?fK(e.KinesisDataStreamDestinations,t):void 0,TableName:w.expectString(e.TableName)}),x2=(e,t)=>({AccountMaxReadCapacityUnits:w.expectNumber(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:w.expectNumber(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:w.expectNumber(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:w.expectNumber(e.TableMaxWriteCapacityUnits)}),I2=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?fi(e.Table,t):void 0}),R2=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?jb(e.TableAutoScalingDescription,t):void 0}),D2=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?Ub(e.TimeToLiveDescription,t):void 0}),k2=(e,t)=>({message:w.expectString(e.message)}),N2=(e,t)=>({Address:w.expectString(e.Address),CachePeriodInMinutes:w.expectNumber(e.CachePeriodInMinutes)}),P2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:N2(n,t)),L2=(e,t)=>({Items:e.Items!==void 0&&e.Items!==null?fo(e.Items,t):void 0,NextToken:w.expectString(e.NextToken)}),q2=(e,t)=>({Responses:e.Responses!==void 0&&e.Responses!==null?Rb(e.Responses,t):void 0}),M2=(e,t)=>({message:w.expectString(e.message)}),xb=(e,t)=>({BilledSizeBytes:w.expectNumber(e.BilledSizeBytes),ClientToken:w.expectString(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?new Date(Math.round(e.EndTime*1e3)):void 0,ExportArn:w.expectString(e.ExportArn),ExportFormat:w.expectString(e.ExportFormat),ExportManifest:w.expectString(e.ExportManifest),ExportStatus:w.expectString(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?new Date(Math.round(e.ExportTime*1e3)):void 0,FailureCode:w.expectString(e.FailureCode),FailureMessage:w.expectString(e.FailureMessage),ItemCount:w.expectNumber(e.ItemCount),S3Bucket:w.expectString(e.S3Bucket),S3BucketOwner:w.expectString(e.S3BucketOwner),S3Prefix:w.expectString(e.S3Prefix),S3SseAlgorithm:w.expectString(e.S3SseAlgorithm),S3SseKmsKeyId:w.expectString(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?new Date(Math.round(e.StartTime*1e3)):void 0,TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId)}),O2=(e,t)=>({message:w.expectString(e.message)}),z2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:j2(n,t)),j2=(e,t)=>({ExportArn:w.expectString(e.ExportArn),ExportStatus:w.expectString(e.ExportStatus)}),U2=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?xb(e.ExportDescription,t):void 0}),B2=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:w.expectString(i)}),{}),F2=(e,t)=>({ExceptionDescription:w.expectString(e.ExceptionDescription),ExceptionName:w.expectString(e.ExceptionName)}),G2=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Dr(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Zn(e.Item,t):void 0}),$2=(e,t)=>({Backfilling:w.expectBoolean(e.Backfilling),IndexArn:w.expectString(e.IndexArn),IndexName:w.expectString(e.IndexName),IndexSizeBytes:w.expectNumber(e.IndexSizeBytes),IndexStatus:w.expectString(e.IndexStatus),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?mi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?ho(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Nb(e.ProvisionedThroughput,t):void 0}),K2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:$2(n,t)),V2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:W2(n,t)),W2=(e,t)=>({IndexName:w.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?mi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?ho(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?kb(e.ProvisionedThroughput,t):void 0}),H2=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?HK(e.ReplicationGroup,t):void 0}),Y2=(e,t)=>({message:w.expectString(e.message)}),Ff=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?new Date(Math.round(e.CreationDateTime*1e3)):void 0,GlobalTableArn:w.expectString(e.GlobalTableArn),GlobalTableName:w.expectString(e.GlobalTableName),GlobalTableStatus:w.expectString(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?Lb(e.ReplicationGroup,t):void 0}),J2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:H2(n,t)),Q2=(e,t)=>({message:w.expectString(e.message)}),X2=(e,t)=>({Message:w.expectString(e.Message)}),Z2=(e,t)=>({message:w.expectString(e.message)}),eK=(e,t)=>({message:w.expectString(e.message)}),tK=(e,t)=>({Message:w.expectString(e.Message)}),nK=(e,t)=>({message:w.expectString(e.message)}),rK=(e,t)=>({message:w.expectString(e.message)}),iK=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:ui(i,t)}),{}),mo=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?iK(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?aK(e.SizeEstimateRangeGB,t):void 0}),sK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:mo(n,t)),Ib=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:sK(i,t)}),{}),aK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.handleFloat(n)),oK=(e,t)=>({message:w.expectString(e.message)}),fo=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Zn(n,t)),cK=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?Zn(e.Item,t):void 0}),Rb=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:cK(n,t)),po=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:ui(i,t)}),{}),lK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:po(n,t)),dK=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?F$(e.AttributesToGet,t):void 0,ConsistentRead:w.expectBoolean(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?B2(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?lK(e.Keys,t):void 0,ProjectionExpression:w.expectString(e.ProjectionExpression)}),mi=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:uK(n,t)),uK=(e,t)=>({AttributeName:w.expectString(e.AttributeName),KeyType:w.expectString(e.KeyType)}),mK=(e,t)=>({DestinationStatus:w.expectString(e.DestinationStatus),DestinationStatusDescription:w.expectString(e.DestinationStatusDescription),StreamArn:w.expectString(e.StreamArn)}),fK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:mK(n,t)),Db=(e,t)=>({DestinationStatus:w.expectString(e.DestinationStatus),StreamArn:w.expectString(e.StreamArn),TableName:w.expectString(e.TableName)}),pK=(e,t)=>({message:w.expectString(e.message)}),hK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ui(n,t)),yK=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?H$(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:w.expectString(e.LastEvaluatedBackupArn)}),gK=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?d2(e.ContributorInsightsSummaries,t):void 0,NextToken:w.expectString(e.NextToken)}),_K=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?z2(e.ExportSummaries,t):void 0,NextToken:w.expectString(e.NextToken)}),wK=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?J2(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:w.expectString(e.LastEvaluatedGlobalTableName)}),bK=(e,t)=>({LastEvaluatedTableName:w.expectString(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?lV(e.TableNames,t):void 0}),SK=(e,t)=>({NextToken:w.expectString(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?mV(e.Tags,t):void 0}),vK=(e,t)=>({IndexArn:w.expectString(e.IndexArn),IndexName:w.expectString(e.IndexName),IndexSizeBytes:w.expectNumber(e.IndexSizeBytes),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?mi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?ho(e.Projection,t):void 0}),EK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:vK(n,t)),AK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:CK(n,t)),CK=(e,t)=>({IndexName:w.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?mi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?ho(e.Projection,t):void 0}),TK=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:ui(i,t)}),{}),xK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),IK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),RK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t2(n,t)),DK=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?new Date(Math.round(e.EarliestRestorableDateTime*1e3)):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?new Date(Math.round(e.LatestRestorableDateTime*1e3)):void 0,PointInTimeRecoveryStatus:w.expectString(e.PointInTimeRecoveryStatus)}),kK=(e,t)=>({message:w.expectString(e.message)}),ho=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?xK(e.NonKeyAttributes,t):void 0,ProjectionType:w.expectString(e.ProjectionType)}),kb=(e,t)=>({ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits),WriteCapacityUnits:w.expectNumber(e.WriteCapacityUnits)}),Nb=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?new Date(Math.round(e.LastDecreaseDateTime*1e3)):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?new Date(Math.round(e.LastIncreaseDateTime*1e3)):void 0,NumberOfDecreasesToday:w.expectNumber(e.NumberOfDecreasesToday),ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits),WriteCapacityUnits:w.expectNumber(e.WriteCapacityUnits)}),NK=(e,t)=>({message:w.expectString(e.message)}),Pb=(e,t)=>({ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits)}),PK=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:ui(i,t)}),{}),LK=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Zn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Dr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?mo(e.ItemCollectionMetrics,t):void 0}),qK=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?PK(e.Item,t):void 0}),MK=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Dr(e.ConsumedCapacity,t):void 0,Count:w.expectNumber(e.Count),Items:e.Items!==void 0&&e.Items!==null?fo(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?po(e.LastEvaluatedKey,t):void 0,ScannedCount:w.expectNumber(e.ScannedCount)}),OK=(e,t)=>({RegionName:w.expectString(e.RegionName)}),zK=(e,t)=>({message:w.expectString(e.message)}),jK=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?GK(e.GlobalSecondaryIndexes,t):void 0,RegionName:w.expectString(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?er(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?er(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:w.expectString(e.ReplicaStatus)}),UK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:jK(n,t)),BK=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?KK(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:w.expectString(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?Pb(e.ProvisionedThroughputOverride,t):void 0,RegionName:w.expectString(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?new Date(Math.round(e.ReplicaInaccessibleDateTime*1e3)):void 0,ReplicaStatus:w.expectString(e.ReplicaStatus),ReplicaStatusDescription:w.expectString(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:w.expectString(e.ReplicaStatusPercentProgress)}),Lb=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:BK(n,t)),FK=(e,t)=>({IndexName:w.expectString(e.IndexName),IndexStatus:w.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?er(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?er(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),GK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:FK(n,t)),$K=(e,t)=>({IndexName:w.expectString(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?Pb(e.ProvisionedThroughputOverride,t):void 0}),KK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:$K(n,t)),VK=(e,t)=>({IndexName:w.expectString(e.IndexName),IndexStatus:w.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?er(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:w.expectNumber(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?er(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:w.expectNumber(e.ProvisionedWriteCapacityUnits)}),WK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:VK(n,t)),HK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:OK(n,t)),YK=(e,t)=>({message:w.expectString(e.message)}),JK=(e,t)=>({RegionName:w.expectString(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?Ab(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?WK(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?er(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:w.expectNumber(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?er(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:w.expectNumber(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:w.expectString(e.ReplicaStatus)}),qb=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:JK(n,t)),QK=(e,t)=>({message:w.expectString(e.message)}),XK=(e,t)=>({message:w.expectString(e.message)}),ZK=(e,t)=>({message:w.expectString(e.message)}),eV=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?new Date(Math.round(e.RestoreDateTime*1e3)):void 0,RestoreInProgress:w.expectBoolean(e.RestoreInProgress),SourceBackupArn:w.expectString(e.SourceBackupArn),SourceTableArn:w.expectString(e.SourceTableArn)}),tV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?fi(e.TableDescription,t):void 0}),nV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?fi(e.TableDescription,t):void 0}),rV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Dr(e.ConsumedCapacity,t):void 0,Count:w.expectNumber(e.Count),Items:e.Items!==void 0&&e.Items!==null?fo(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?po(e.LastEvaluatedKey,t):void 0,ScannedCount:w.expectNumber(e.ScannedCount)}),Mb=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:u(o({},n),{[r]:Cb(i,t)}),{}),iV=(e,t)=>({BillingMode:w.expectString(e.BillingMode),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?mi(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?kb(e.ProvisionedThroughput,t):void 0,TableArn:w.expectString(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?new Date(Math.round(e.TableCreationDateTime*1e3)):void 0,TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName),TableSizeBytes:w.expectNumber(e.TableSizeBytes)}),sV=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?V2(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?AK(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?Ob(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?zb(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?Ub(e.TimeToLiveDescription,t):void 0}),Ob=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?new Date(Math.round(e.InaccessibleEncryptionDateTime*1e3)):void 0,KMSMasterKeyArn:w.expectString(e.KMSMasterKeyArn),SSEType:w.expectString(e.SSEType),Status:w.expectString(e.Status)}),zb=(e,t)=>({StreamEnabled:w.expectBoolean(e.StreamEnabled),StreamViewType:w.expectString(e.StreamViewType)}),aV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),oV=(e,t)=>({message:w.expectString(e.message)}),jb=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?UK(e.Replicas,t):void 0,TableName:w.expectString(e.TableName),TableStatus:w.expectString(e.TableStatus)}),fi=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?j$(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?B$(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?Ab(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?new Date(Math.round(e.CreationDateTime*1e3)):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?K2(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:w.expectString(e.GlobalTableVersion),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?mi(e.KeySchema,t):void 0,LatestStreamArn:w.expectString(e.LatestStreamArn),LatestStreamLabel:w.expectString(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?EK(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Nb(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?Lb(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?eV(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?Ob(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?zb(e.StreamSpecification,t):void 0,TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName),TableSizeBytes:w.expectNumber(e.TableSizeBytes),TableStatus:w.expectString(e.TableStatus)}),cV=(e,t)=>({message:w.expectString(e.message)}),lV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),dV=(e,t)=>({message:w.expectString(e.message)}),uV=(e,t)=>({Key:w.expectString(e.Key),Value:w.expectString(e.Value)}),mV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:uV(n,t)),Ub=(e,t)=>({AttributeName:w.expectString(e.AttributeName),TimeToLiveStatus:w.expectString(e.TimeToLiveStatus)}),fV=(e,t)=>({AttributeName:w.expectString(e.AttributeName),Enabled:w.expectBoolean(e.Enabled)}),pV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?uo(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?Rb(e.Responses,t):void 0}),hV=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?a2(e.CancellationReasons,t):void 0,Message:w.expectString(e.Message)}),yV=(e,t)=>({message:w.expectString(e.message)}),gV=(e,t)=>({Message:w.expectString(e.Message)}),_V=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?uo(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Ib(e.ItemCollectionMetrics,t):void 0}),wV=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?Tb(e.ContinuousBackupsDescription,t):void 0}),bV=(e,t)=>({ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),IndexName:w.expectString(e.IndexName),TableName:w.expectString(e.TableName)}),SV=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Ff(e.GlobalTableDescription,t):void 0}),vV=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?qb(e.ReplicaSettings,t):void 0}),EV=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Zn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Dr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?mo(e.ItemCollectionMetrics,t):void 0}),AV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?fi(e.TableDescription,t):void 0}),CV=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?jb(e.TableAutoScalingDescription,t):void 0}),TV=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?fV(e.TimeToLiveSpecification,t):void 0}),xV=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?g2(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?qK(e.PutRequest,t):void 0}),IV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:xV(n,t)),y=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"]}},Gf=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),RV=(e,t)=>Gf(e,t).then(n=>t.utf8Encoder(n)),X=async(e,t,n,r,i)=>{let{hostname:s,protocol:a="https",port:c}=await e.endpoint(),l={protocol:a,hostname:s,port:c,method:"POST",path:n,headers:t};return r!==void 0&&(l.hostname=r),i!==void 0&&(l.body=i),new Nj.HttpRequest(l)},P=(e,t)=>RV(e,t).then(n=>n.length?JSON.parse(n):{}),Z=(e,t)=>{let n=(s,a)=>Object.keys(s).find(c=>c.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},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 $f=h(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.deserializerMiddleware=void 0;var DV=(e,t)=>(n,r)=>async i=>{let{response:s}=await n(i),a=await t(s,e);return{response:s,output:a}};yo.deserializerMiddleware=DV});var Kf=h(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.serializerMiddleware=void 0;var kV=(e,t)=>(n,r)=>async i=>{let s=await t(i.input,e);return n(u(o({},i),{request:s}))};go.serializerMiddleware=kV});var Bb=h(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.getSerdePlugin=an.serializerMiddlewareOption=an.deserializerMiddlewareOption=void 0;var NV=$f(),PV=Kf();an.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};an.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function LV(e,t,n){return{applyToStack:r=>{r.add(NV.deserializerMiddleware(e,n),an.deserializerMiddlewareOption),r.add(PV.serializerMiddleware(e,t),an.serializerMiddlewareOption)}}}an.getSerdePlugin=LV});var j=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});var Vf=he();Vf.__exportStar($f(),hs);Vf.__exportStar(Kf(),hs);Vf.__exportStar(Bb(),hs)});var wo=h(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.DescribeEndpointsCommand=void 0;var Fb=W(),Gb=H(),qV=j(),MV=M(),$b=class extends MV.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(qV.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:Fb.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:Fb.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Gb.serializeAws_json1_0DescribeEndpointsCommand(t,n)}deserialize(t,n){return Gb.deserializeAws_json1_0DescribeEndpointsCommand(t,n)}};_o.DescribeEndpointsCommand=$b});var Kb=h((Kle,OV)=>{OV.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/client-sts":"3.21.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/credential-provider-node":"3.21.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-endpoint-discovery":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-signing":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0","@aws-sdk/util-waiter":"3.20.0",tslib:"^2.0.0",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","@types/uuid":"^8.3.0","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",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 Vb=h((Vle,zV)=>{zV.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/credential-provider-node":"3.21.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-sdk-sts":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-signing":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.0.0"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",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 on=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.GetSessionTokenResponse=q.GetSessionTokenRequest=q.GetFederationTokenResponse=q.FederatedUser=q.GetFederationTokenRequest=q.GetCallerIdentityResponse=q.GetCallerIdentityRequest=q.GetAccessKeyInfoResponse=q.GetAccessKeyInfoRequest=q.InvalidAuthorizationMessageException=q.DecodeAuthorizationMessageResponse=q.DecodeAuthorizationMessageRequest=q.IDPCommunicationErrorException=q.AssumeRoleWithWebIdentityResponse=q.AssumeRoleWithWebIdentityRequest=q.InvalidIdentityTokenException=q.IDPRejectedClaimException=q.AssumeRoleWithSAMLResponse=q.AssumeRoleWithSAMLRequest=q.RegionDisabledException=q.PackedPolicyTooLargeException=q.MalformedPolicyDocumentException=q.ExpiredTokenException=q.AssumeRoleResponse=q.Credentials=q.AssumeRoleRequest=q.Tag=q.PolicyDescriptorType=q.AssumedRoleUser=void 0;var jV;(function(e){e.filterSensitiveLog=t=>o({},t)})(jV=q.AssumedRoleUser||(q.AssumedRoleUser={}));var UV;(function(e){e.filterSensitiveLog=t=>o({},t)})(UV=q.PolicyDescriptorType||(q.PolicyDescriptorType={}));var BV;(function(e){e.filterSensitiveLog=t=>o({},t)})(BV=q.Tag||(q.Tag={}));var FV;(function(e){e.filterSensitiveLog=t=>o({},t)})(FV=q.AssumeRoleRequest||(q.AssumeRoleRequest={}));var GV;(function(e){e.filterSensitiveLog=t=>o({},t)})(GV=q.Credentials||(q.Credentials={}));var $V;(function(e){e.filterSensitiveLog=t=>o({},t)})($V=q.AssumeRoleResponse||(q.AssumeRoleResponse={}));var KV;(function(e){e.filterSensitiveLog=t=>o({},t)})(KV=q.ExpiredTokenException||(q.ExpiredTokenException={}));var VV;(function(e){e.filterSensitiveLog=t=>o({},t)})(VV=q.MalformedPolicyDocumentException||(q.MalformedPolicyDocumentException={}));var WV;(function(e){e.filterSensitiveLog=t=>o({},t)})(WV=q.PackedPolicyTooLargeException||(q.PackedPolicyTooLargeException={}));var HV;(function(e){e.filterSensitiveLog=t=>o({},t)})(HV=q.RegionDisabledException||(q.RegionDisabledException={}));var YV;(function(e){e.filterSensitiveLog=t=>o({},t)})(YV=q.AssumeRoleWithSAMLRequest||(q.AssumeRoleWithSAMLRequest={}));var JV;(function(e){e.filterSensitiveLog=t=>o({},t)})(JV=q.AssumeRoleWithSAMLResponse||(q.AssumeRoleWithSAMLResponse={}));var QV;(function(e){e.filterSensitiveLog=t=>o({},t)})(QV=q.IDPRejectedClaimException||(q.IDPRejectedClaimException={}));var XV;(function(e){e.filterSensitiveLog=t=>o({},t)})(XV=q.InvalidIdentityTokenException||(q.InvalidIdentityTokenException={}));var ZV;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZV=q.AssumeRoleWithWebIdentityRequest||(q.AssumeRoleWithWebIdentityRequest={}));var eW;(function(e){e.filterSensitiveLog=t=>o({},t)})(eW=q.AssumeRoleWithWebIdentityResponse||(q.AssumeRoleWithWebIdentityResponse={}));var tW;(function(e){e.filterSensitiveLog=t=>o({},t)})(tW=q.IDPCommunicationErrorException||(q.IDPCommunicationErrorException={}));var nW;(function(e){e.filterSensitiveLog=t=>o({},t)})(nW=q.DecodeAuthorizationMessageRequest||(q.DecodeAuthorizationMessageRequest={}));var rW;(function(e){e.filterSensitiveLog=t=>o({},t)})(rW=q.DecodeAuthorizationMessageResponse||(q.DecodeAuthorizationMessageResponse={}));var iW;(function(e){e.filterSensitiveLog=t=>o({},t)})(iW=q.InvalidAuthorizationMessageException||(q.InvalidAuthorizationMessageException={}));var sW;(function(e){e.filterSensitiveLog=t=>o({},t)})(sW=q.GetAccessKeyInfoRequest||(q.GetAccessKeyInfoRequest={}));var aW;(function(e){e.filterSensitiveLog=t=>o({},t)})(aW=q.GetAccessKeyInfoResponse||(q.GetAccessKeyInfoResponse={}));var oW;(function(e){e.filterSensitiveLog=t=>o({},t)})(oW=q.GetCallerIdentityRequest||(q.GetCallerIdentityRequest={}));var cW;(function(e){e.filterSensitiveLog=t=>o({},t)})(cW=q.GetCallerIdentityResponse||(q.GetCallerIdentityResponse={}));var lW;(function(e){e.filterSensitiveLog=t=>o({},t)})(lW=q.GetFederationTokenRequest||(q.GetFederationTokenRequest={}));var dW;(function(e){e.filterSensitiveLog=t=>o({},t)})(dW=q.FederatedUser||(q.FederatedUser={}));var uW;(function(e){e.filterSensitiveLog=t=>o({},t)})(uW=q.GetFederationTokenResponse||(q.GetFederationTokenResponse={}));var mW;(function(e){e.filterSensitiveLog=t=>o({},t)})(mW=q.GetSessionTokenRequest||(q.GetSessionTokenRequest={}));var fW;(function(e){e.filterSensitiveLog=t=>o({},t)})(fW=q.GetSessionTokenResponse||(q.GetSessionTokenResponse={}))});var Wf=h((Hle,pW)=>{pW.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:`
5
- `,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 Wb=h((Yle,hW)=>{hW.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 Hf=h((Jle,yW)=>{yW.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var Hb=h((Qle,gW)=>{gW.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 Jb=h(ys=>{"use strict";var _W=ys&&ys.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ys,"__esModule",{value:!0});var Yb=_W(Hb()),wW=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 bW(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in Yb.default&&(e=Yb.default[e]),wW(e))}ys.default=bW});var Jf=h(cn=>{"use strict";var bo=cn&&cn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cn,"__esModule",{value:!0});cn.decodeHTML=cn.decodeHTMLStrict=cn.decodeXML=void 0;var Yf=bo(Wf()),SW=bo(Wb()),vW=bo(Hf()),Qb=bo(Jb()),EW=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;cn.decodeXML=Xb(vW.default);cn.decodeHTMLStrict=Xb(Yf.default);function Xb(e){var t=eS(e);return function(n){return String(n).replace(EW,t)}}var Zb=function(e,t){return e<t?1:-1};cn.decodeHTML=function(){for(var e=Object.keys(SW.default).sort(Zb),t=Object.keys(Yf.default).sort(Zb),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=eS(Yf.default);function a(c){return c.substr(-1)!==";"&&(c+=";"),s(c)}return function(c){return String(c).replace(i,a)}}();function eS(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?Qb.default(parseInt(n.substr(3),16)):Qb.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}});var Xf=h(gt=>{"use strict";var tS=gt&&gt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gt,"__esModule",{value:!0});gt.escapeUTF8=gt.escape=gt.encodeNonAsciiHTML=gt.encodeHTML=gt.encodeXML=void 0;var AW=tS(Hf()),nS=iS(AW.default),rS=sS(nS);gt.encodeXML=cS(nS);var CW=tS(Wf()),Qf=iS(CW.default),TW=sS(Qf);gt.encodeHTML=IW(Qf,TW);gt.encodeNonAsciiHTML=cS(Qf);function iS(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function sS(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 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 n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var aS=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,xW=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function So(e){return"&#x"+(e.length>1?xW(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function IW(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(aS,So)}}var oS=new RegExp(rS.source+"|"+aS.source,"g");function RW(e){return e.replace(oS,So)}gt.escape=RW;function DW(e){return e.replace(rS,So)}gt.escapeUTF8=DW;function cS(e){return function(t){return t.replace(oS,function(n){return e[n]||So(n)})}}});var dS=h(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.decodeXMLStrict=ce.decodeHTML5Strict=ce.decodeHTML4Strict=ce.decodeHTML5=ce.decodeHTML4=ce.decodeHTMLStrict=ce.decodeHTML=ce.decodeXML=ce.encodeHTML5=ce.encodeHTML4=ce.escapeUTF8=ce.escape=ce.encodeNonAsciiHTML=ce.encodeHTML=ce.encodeXML=ce.encode=ce.decodeStrict=ce.decode=void 0;var vo=Jf(),lS=Xf();function kW(e,t){return(!t||t<=0?vo.decodeXML:vo.decodeHTML)(e)}ce.decode=kW;function NW(e,t){return(!t||t<=0?vo.decodeXML:vo.decodeHTMLStrict)(e)}ce.decodeStrict=NW;function PW(e,t){return(!t||t<=0?lS.encodeXML:lS.encodeHTML)(e)}ce.encode=PW;var kr=Xf();Object.defineProperty(ce,"encodeXML",{enumerable:!0,get:function(){return kr.encodeXML}});Object.defineProperty(ce,"encodeHTML",{enumerable:!0,get:function(){return kr.encodeHTML}});Object.defineProperty(ce,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return kr.encodeNonAsciiHTML}});Object.defineProperty(ce,"escape",{enumerable:!0,get:function(){return kr.escape}});Object.defineProperty(ce,"escapeUTF8",{enumerable:!0,get:function(){return kr.escapeUTF8}});Object.defineProperty(ce,"encodeHTML4",{enumerable:!0,get:function(){return kr.encodeHTML}});Object.defineProperty(ce,"encodeHTML5",{enumerable:!0,get:function(){return kr.encodeHTML}});var tr=Jf();Object.defineProperty(ce,"decodeXML",{enumerable:!0,get:function(){return tr.decodeXML}});Object.defineProperty(ce,"decodeHTML",{enumerable:!0,get:function(){return tr.decodeHTML}});Object.defineProperty(ce,"decodeHTMLStrict",{enumerable:!0,get:function(){return tr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeHTML4",{enumerable:!0,get:function(){return tr.decodeHTML}});Object.defineProperty(ce,"decodeHTML5",{enumerable:!0,get:function(){return tr.decodeHTML}});Object.defineProperty(ce,"decodeHTML4Strict",{enumerable:!0,get:function(){return tr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeHTML5Strict",{enumerable:!0,get:function(){return tr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeXMLStrict",{enumerable:!0,get:function(){return tr.decodeXML}})});var ln=h(Jt=>{"use strict";var uS=":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",LW=uS+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",mS="["+uS+"]["+LW+"]*",qW=new RegExp("^"+mS+"$"),MW=function(e,t){let n=[],r=t.exec(e);for(;r;){let i=[],s=r.length;for(let a=0;a<s;a++)i.push(r[a]);n.push(i),r=t.exec(e)}return n},OW=function(e){let t=qW.exec(e);return!(t===null||typeof t=="undefined")};Jt.isExist=function(e){return typeof e!="undefined"};Jt.isEmptyObject=function(e){return Object.keys(e).length===0};Jt.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]]}};Jt.getValue=function(e){return Jt.isExist(e)?e:""};Jt.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};Jt.isTagNameInArrayMode=function(e,t,n){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,n):t==="strict"};Jt.isName=OW;Jt.getAllMatches=MW;Jt.nameRegexp=mS});var pS=h(fS=>{"use strict";var Nr=ln(),Zf=function(e,t,n){let r={};if((!e.child||Nr.isEmptyObject(e.child))&&(!e.attrsMap||Nr.isEmptyObject(e.attrsMap)))return Nr.isExist(e.val)?e.val:"";if(Nr.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=Nr.isTagNameInArrayMode(e.tagname,t.arrayMode,n);r[t.textNodeName]=s?[e.val]:e.val}Nr.merge(r,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){r[a]=[];for(let c in e.child[a])e.child[a].hasOwnProperty(c)&&r[a].push(Zf(e.child[a][c],t,a))}else{let c=Zf(e.child[a][0],t,a),l=t.arrayMode===!0&&typeof c=="object"||Nr.isTagNameInArrayMode(a,t.arrayMode,n);r[a]=l?[c]:c}}return r};fS.convertToJson=Zf});var yS=h((ide,hS)=>{"use strict";hS.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 _s=h(Co=>{"use strict";var Pr=ln(),zW=ln().buildOptions,Eo=yS(),sde="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,Pr.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var gS={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:[]};Co.defaultOptions=gS;var _S=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];Co.props=_S;function Ao(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=n.tagValueProcessor(t,e),t=wS(t,n.parseNodeValue,n.parseTrueNumberOnly)),t}function jW(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 wS(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 Pr.isExist(e)?e:""}var UW=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function bS(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let n=Pr.getAllMatches(e,UW),r=n.length,i={};for(let s=0;s<r;s++){let a=jW(n[s][1],t);a.length&&(n[s][4]!==void 0?(t.trimValues&&(n[s][4]=n[s][4].trim()),n[s][4]=t.attrValueProcessor(n[s][4],a),i[t.attributeNamePrefix+a]=wS(n[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 BW=function(e,t){e=e.replace(/\r\n?/g,`
6
- `),t=zW(t,gS,_S);let n=new Eo("!xml"),r=n,i="";for(let s=0;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="/"){let c=gs(e,">",s,"Closing Tag is not closed."),l=e.substring(s+2,c).trim();if(t.ignoreNameSpace){let m=l.indexOf(":");m!==-1&&(l=l.substr(m+1))}r&&(r.val?r.val=Pr.getValue(r.val)+""+Ao(l,i,t):r.val=Ao(l,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=c}else if(e[s+1]==="?")s=gs(e,"?>",s,"Pi Tag is not closed.");else if(e.substr(s+1,3)==="!--")s=gs(e,"-->",s,"Comment is not closed.");else if(e.substr(s+1,2)==="!D"){let c=gs(e,">",s,"DOCTYPE is not closed.");e.substring(s,c).indexOf("[")>=0?s=e.indexOf("]>",s)+1:s=c}else if(e.substr(s+1,2)==="!["){let c=gs(e,"]]>",s,"CDATA is not closed.")-2,l=e.substring(s+9,c);if(i&&(r.val=Pr.getValue(r.val)+""+Ao(r.tagname,i,t),i=""),t.cdataTagName){let m=new Eo(t.cdataTagName,r,l);r.addChild(m),r.val=Pr.getValue(r.val)+t.cdataPositionChar,l&&(m.val=l)}else r.val=(r.val||"")+(l||"");s=c+2}else{let c=FW(e,s+1),l=c.data,m=c.index,f=l.indexOf(" "),g=l,p=!0;if(f!==-1&&(g=l.substr(0,f).replace(/\s\s*$/,""),l=l.substr(f+1)),t.ignoreNameSpace){let _=g.indexOf(":");_!==-1&&(g=g.substr(_+1),p=g!==c.data.substr(_+1))}if(r&&i&&r.tagname!=="!xml"&&(r.val=Pr.getValue(r.val)+""+Ao(r.tagname,i,t)),l.length>0&&l.lastIndexOf("/")===l.length-1){g[g.length-1]==="/"?(g=g.substr(0,g.length-1),l=g):l=l.substr(0,l.length-1);let _=new Eo(g,r,"");g!==l&&(_.attrsMap=bS(l,t)),r.addChild(_)}else{let _=new Eo(g,r);t.stopNodes.length&&t.stopNodes.includes(_.tagname)&&(_.startIndex=m),g!==l&&p&&(_.attrsMap=bS(l,t)),r.addChild(_),r=_}i="",s=m}else i+=e[s];return n};function FW(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 gs(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw new Error(r);return i+t.length-1}Co.getTraversalObj=BW});var CS=h(AS=>{"use strict";var To=ln(),GW={allowBooleanAttributes:!1},$W=["allowBooleanAttributes"];AS.validate=function(e,t){t=To.buildOptions(t,GW,$W);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=SS(e,s),s.err)return s}else if(e[s]==="<")if(s++,e[s]==="!"){s=vS(e,s);continue}else{let a=!1;e[s]==="/"&&(a=!0,s++);let c="";for(;s<e.length&&e[s]!==">"&&e[s]!==" "&&e[s]!==" "&&e[s]!==`
7
- `&&e[s]!=="\r";s++)c+=e[s];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),s--),!XW(c)){let f;return c.trim().length===0?f="There is an unnecessary space between tag name and backward slash '</ ..'.":f="Tag '"+c+"' is an invalid name.",Je("InvalidTag",f,Qt(e,s))}let l=WW(e,s);if(l===!1)return Je("InvalidAttr","Attributes for '"+c+"' have open quote.",Qt(e,s));let m=l.value;if(s=l.index,m[m.length-1]==="/"){m=m.substring(0,m.length-1);let f=ES(m,t);if(f===!0)r=!0;else return Je(f.err.code,f.err.msg,Qt(e,s-m.length+f.err.line))}else if(a)if(l.tagClosed){if(m.trim().length>0)return Je("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Qt(e,s));{let f=n.pop();if(c!==f)return Je("InvalidTag","Closing tag '"+f+"' is expected inplace of '"+c+"'.",Qt(e,s));n.length==0&&(i=!0)}}else return Je("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Qt(e,s));else{let f=ES(m,t);if(f!==!0)return Je(f.err.code,f.err.msg,Qt(e,s-m.length+f.err.line));if(i===!0)return Je("InvalidXml","Multiple possible root nodes found.",Qt(e,s));n.push(c),r=!0}for(s++;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="!"){s++,s=vS(e,s);continue}else if(e[s+1]==="?"){if(s=SS(e,++s),s.err)return s}else break;else if(e[s]==="&"){let f=JW(e,s);if(f==-1)return Je("InvalidChar","char '&' is not expected.",Qt(e,s));s=f}e[s]==="<"&&s--}else{if(e[s]===" "||e[s]===" "||e[s]===`
8
- `||e[s]==="\r")continue;return Je("InvalidChar","char '"+e[s]+"' is not expected.",Qt(e,s))}if(r){if(n.length>0)return Je("InvalidXml","Invalid '"+JSON.stringify(n,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return Je("InvalidXml","Start tag expected.",1);return!0};function SS(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 Je("InvalidXml","XML declaration allowed only at the start of the document.",Qt(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function vS(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 KW='"',VW="'";function WW(e,t){let n="",r="",i=!1;for(;t<e.length;t++){if(e[t]===KW||e[t]===VW)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 HW=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ES(e,t){let n=To.getAllMatches(e,HW),r={};for(let i=0;i<n.length;i++){if(n[i][1].length===0)return Je("InvalidAttr","Attribute '"+n[i][2]+"' has no space in starting.",xo(e,n[i][0]));if(n[i][3]===void 0&&!t.allowBooleanAttributes)return Je("InvalidAttr","boolean attribute '"+n[i][2]+"' is not allowed.",xo(e,n[i][0]));let s=n[i][2];if(!QW(s))return Je("InvalidAttr","Attribute '"+s+"' is an invalid name.",xo(e,n[i][0]));if(!r.hasOwnProperty(s))r[s]=1;else return Je("InvalidAttr","Attribute '"+s+"' is repeated.",xo(e,n[i][0]))}return!0}function YW(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 JW(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,YW(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 Je(e,t,n){return{err:{code:e,msg:t,line:n}}}function QW(e){return To.isName(e)}function XW(e){return To.isName(e)}function Qt(e,t){var n=e.substring(0,t).split(/\r?\n/);return n.length}function xo(e,t){return e.indexOf(t)+t.length}});var RS=h(IS=>{"use strict";var dn=function(e){return String.fromCharCode(e)},qe={nilChar:dn(176),missingChar:dn(201),nilPremitive:dn(175),missingPremitive:dn(200),emptyChar:dn(178),emptyValue:dn(177),boundryChar:dn(179),objStart:dn(198),arrStart:dn(204),arrayEnd:dn(185)},ZW=[qe.nilChar,qe.nilPremitive,qe.missingChar,qe.missingPremitive,qe.boundryChar,qe.emptyChar,qe.emptyValue,qe.arrayEnd,qe.objStart,qe.arrStart],ws=function(e,t,n){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?ep(e[0].val,t):ep(e,t);{let r=eH(e);if(r===!0){let i="";if(Array.isArray(t)){i+=qe.arrStart;let s=t[0],a=e.length;if(typeof s=="string")for(let c=0;c<a;c++){let l=ep(e[c].val,s);i=tp(i,l)}else for(let c=0;c<a;c++){let l=ws(e[c],s,n);i=tp(i,l)}i+=qe.arrayEnd}else{i+=qe.objStart;let s=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let a in s){let c=s[a],l;!n.ignoreAttributes&&e.attrsMap&&e.attrsMap[c]?l=ws(e.attrsMap[c],t[c],n):c===n.textNodeName?l=ws(e.val,t[c],n):l=ws(e.child[c],t[c],n),i=tp(i,l)}}return i}else return r}},ep=function(e){switch(e){case void 0:return qe.missingPremitive;case null:return qe.nilPremitive;case"":return qe.emptyValue;default:return e}},tp=function(e,t){return!TS(t[0])&&!TS(e[e.length-1])&&(e+=qe.boundryChar),e+t},TS=function(e){return ZW.indexOf(e)!==-1};function eH(e){return e===void 0?qe.missingChar:e===null?qe.nilChar:e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)?qe.emptyChar:!0}var xS=_s(),tH=ln().buildOptions,nH=function(e,t,n){return n=tH(n,xS.defaultOptions,xS.props),ws(e,t,n)};IS.convert2nimn=nH});var NS=h(kS=>{"use strict";var Io=ln(),rH=ln().buildOptions,DS=_s(),iH=function(e,t){return t=rH(t,DS.defaultOptions,DS.props),t.indentBy=t.indentBy||"",np(e,t,0)},np=function(e,t,n){let r="{",i=Object.keys(e.child);for(let c=0;c<i.length;c++){var s=i[c];if(e.child[s]&&e.child[s].length>1){r+='"'+s+'" : [ ';for(var a in e.child[s])r+=np(e.child[s][a],t)+" , ";r=r.substr(0,r.length-1)+" ] "}else r+='"'+s+'" : '+np(e.child[s][0],t)+" ,"}return Io.merge(r,e.attrsMap),Io.isEmptyObject(r)?Io.isExist(e.val)?e.val:"":(Io.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(r+='"'+t.textNodeName+'" : '+sH(e.val))),r[r.length-1]===","&&(r=r.substr(0,r.length-2)),r+"}")};function sH(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}kS.convertToJsonString=iH});var MS=h((dde,qS)=>{"use strict";var aH=ln().buildOptions,oH={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}},cH=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function rp(e){this.options=aH(e,oH,cH),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=pH),this.options.cdataTagName?this.isCDATA=hH:this.isCDATA=function(){return!1},this.replaceCDATAstr=lH,this.replaceCDATAarr=dH,this.options.format?(this.indentate=fH,this.tagEndChar=`>
4
+ `+new Array(s).join(" ")+"^"}}return null}function OP(e){var t=V_(e);process.stderr._handle&&process.stderr._handle.setBlocking&&process.stderr._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1)}function zP(){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 OP(arguments[1])}return e.apply(this,arguments)}}var jP=Xn.slice(0),UP=Zn.slice(0);Rr.wrapCallSite=K_;Rr.getErrorSource=V_;Rr.mapSourcePosition=Sf;Rr.retrieveSourceMap=bf;Rr.install=function(e){if(e=e||{},e.environment&&(di=e.environment,["node","browser","auto"].indexOf(di)===-1))throw new Error("environment "+di+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Xn.length=0),Xn.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Zn.length=0),Zn.unshift(e.retrieveSourceMap)),e.hookRequire&&!gf()){var t=U_(vf,"module"),n=t.prototype._compile;n.__sourceMapSupport||(t.prototype._compile=function(i,a){return Ir[a]=i,ui[a]=void 0,n.call(this,i,a)},t.prototype._compile.__sourceMapSupport=!0)}if(yf||(yf="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),B_||(B_=!0,Error.prepareStackTrace=MP),!F_){var r="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var s=U_(vf,"worker_threads");s.isMainThread===!1&&(r=!1)}catch(i){}r&&LP()&&(F_=!0,zP())}};Rr.resetRetrieveHandlers=function(){Xn.length=0,Zn.length=0,Xn=jP.slice(0),Zn=UP.slice(0),bf=Ra(Zn),_f=Ra(Xn)}});var ue=p((Cle,Na)=>{var Y_,J_,Q_,X_,Z_,ew,tw,nw,rw,ka,Ef,sw,iw,aw,os,ow,cw,lw,dw,uw,mw,fw,pw,Da;(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 Na=="object"&&typeof Na.exports=="object"?e(n(t,n(Na.exports))):e(n(t));function n(r,s){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(i,a){return r[i]=s?s(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])};Y_=function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");t(r,s);function i(){this.constructor=r}r.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)},J_=Object.assign||function(r){for(var s,i=1,a=arguments.length;i<a;i++){s=arguments[i];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])}return r},Q_=function(r,s){var i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&s.indexOf(a)<0&&(i[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(r);c<a.length;c++)s.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(r,a[c])&&(i[a[c]]=r[a[c]]);return i},X_=function(r,s,i,a){var c=arguments.length,l=c<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,i):a,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,s,i,a);else for(var f=r.length-1;f>=0;f--)(m=r[f])&&(l=(c<3?m(l):c>3?m(s,i,l):m(s,i))||l);return c>3&&l&&Object.defineProperty(s,i,l),l},Z_=function(r,s){return function(i,a){s(i,a,r)}},ew=function(r,s){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,s)},tw=function(r,s,i,a){function c(l){return l instanceof i?l:new i(function(m){m(l)})}return new(i||(i=Promise))(function(l,m){function f(_){try{h(a.next(_))}catch(b){m(b)}}function g(_){try{h(a.throw(_))}catch(b){m(b)}}function h(_){_.done?l(_.value):c(_.value).then(f,g)}h((a=a.apply(r,s||[])).next())})},nw=function(r,s){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,c,l,m;return m={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function f(h){return function(_){return g([h,_])}}function g(h){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,c&&(l=h[0]&2?c.return:h[0]?c.throw||((l=c.return)&&l.call(c),0):c.next)&&!(l=l.call(c,h[1])).done)return l;switch(c=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,c=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){i.label=h[1];break}if(h[0]===6&&i.label<l[1]){i.label=l[1],l=h;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(h);break}l[2]&&i.ops.pop(),i.trys.pop();continue}h=s.call(r,i)}catch(_){h=[6,_],c=0}finally{a=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},rw=function(r,s){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i)&&Da(s,r,i)},Da=Object.create?function(r,s,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return s[i]}})}:function(r,s,i,a){a===void 0&&(a=i),r[a]=s[i]},ka=function(r){var s=typeof Symbol=="function"&&Symbol.iterator,i=s&&r[s],a=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},Ef=function(r,s){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var a=i.call(r),c,l=[],m;try{for(;(s===void 0||s-- >0)&&!(c=a.next()).done;)l.push(c.value)}catch(f){m={error:f}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return l},sw=function(){for(var r=[],s=0;s<arguments.length;s++)r=r.concat(Ef(arguments[s]));return r},iw=function(){for(var r=0,s=0,i=arguments.length;s<i;s++)r+=arguments[s].length;for(var a=Array(r),c=0,s=0;s<i;s++)for(var l=arguments[s],m=0,f=l.length;m<f;m++,c++)a[c]=l[m];return a},aw=function(r,s){for(var i=0,a=s.length,c=r.length;i<a;i++,c++)r[c]=s[i];return r},os=function(r){return this instanceof os?(this.v=r,this):new os(r)},ow=function(r,s,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(r,s||[]),c,l=[];return c={},m("next"),m("throw"),m("return"),c[Symbol.asyncIterator]=function(){return this},c;function m(E){a[E]&&(c[E]=function(D){return new Promise(function(k,R){l.push([E,D,k,R])>1||f(E,D)})})}function f(E,D){try{g(a[E](D))}catch(k){b(l[0][3],k)}}function g(E){E.value instanceof os?Promise.resolve(E.value.v).then(h,_):b(l[0][2],E)}function h(E){f("next",E)}function _(E){f("throw",E)}function b(E,D){E(D),l.shift(),l.length&&f(l[0][0],l[0][1])}},cw=function(r){var s,i;return s={},a("next"),a("throw",function(c){throw c}),a("return"),s[Symbol.iterator]=function(){return this},s;function a(c,l){s[c]=r[c]?function(m){return(i=!i)?{value:os(r[c](m)),done:c==="return"}:l?l(m):m}:l}},lw=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r[Symbol.asyncIterator],i;return s?s.call(r):(r=typeof ka=="function"?ka(r):r[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(l){i[l]=r[l]&&function(m){return new Promise(function(f,g){m=r[l](m),c(f,g,m.done,m.value)})}}function c(l,m,f,g){Promise.resolve(g).then(function(h){l({value:h,done:f})},m)}},dw=function(r,s){return Object.defineProperty?Object.defineProperty(r,"raw",{value:s}):r.raw=s,r};var n=Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:!0,value:s})}:function(r,s){r.default=s};uw=function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&Da(s,r,i);return n(s,r),s},mw=function(r){return r&&r.__esModule?r:{default:r}},fw=function(r,s){if(!s.has(r))throw new TypeError("attempted to get private field on non-instance");return s.get(r)},pw=function(r,s,i){if(!s.has(r))throw new TypeError("attempted to set private field on non-instance");return s.set(r,i),i},e("__extends",Y_),e("__assign",J_),e("__rest",Q_),e("__decorate",X_),e("__param",Z_),e("__metadata",ew),e("__awaiter",tw),e("__generator",nw),e("__exportStar",rw),e("__createBinding",Da),e("__values",ka),e("__read",Ef),e("__spread",sw),e("__spreadArrays",iw),e("__spreadArray",aw),e("__await",os),e("__asyncGenerator",ow),e("__asyncDelegator",cw),e("__asyncValues",lw),e("__makeTemplateObject",dw),e("__importStar",uw),e("__importDefault",mw),e("__classPrivateFieldGet",fw),e("__classPrivateFieldSet",pw)})});var W=p(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.ConsumedCapacity=d.Capacity=d.RequestLimitExceeded=d.InternalServerError=d.BatchStatementError=d.BatchStatementErrorCodeEnum=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.ReplicaSettingsDescription=d.ReplicaGlobalSecondaryIndexSettingsDescription=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.ReplicaGlobalSecondaryIndexDescription=void 0;d.UpdateContinuousBackupsOutput=d.UpdateContinuousBackupsInput=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=void 0;d.TransactGetItemsOutput=d.ExecuteTransactionOutput=d.ExecuteTransactionInput=d.BatchExecuteStatementOutput=d.BatchExecuteStatementInput=d.TransactGetItem=d.KeysAndAttributes=d.ExecuteStatementOutput=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=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.DeleteItemOutput=d.Update=d.Put=d.Delete=d.ConditionCheck=d.TransactWriteItemsOutput=d.TransactGetItemsInput=d.ExpectedAttributeValue=d.BatchGetItemInput=d.TransactionCanceledException=void 0;var BP;(function(e){e.filterSensitiveLog=t=>o({},t)})(BP=d.ArchivalSummary||(d.ArchivalSummary={}));var FP;(function(e){e.filterSensitiveLog=t=>o({},t)})(FP=d.AttributeDefinition||(d.AttributeDefinition={}));var GP;(function(e){e.filterSensitiveLog=t=>o({},t)})(GP=d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var $P;(function(e){e.filterSensitiveLog=t=>o({},t)})($P=d.AutoScalingPolicyDescription||(d.AutoScalingPolicyDescription={}));var KP;(function(e){e.filterSensitiveLog=t=>o({},t)})(KP=d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var VP;(function(e){e.filterSensitiveLog=t=>o({},t)})(VP=d.AutoScalingPolicyUpdate||(d.AutoScalingPolicyUpdate={}));var WP;(function(e){e.filterSensitiveLog=t=>o({},t)})(WP=d.AutoScalingSettingsDescription||(d.AutoScalingSettingsDescription={}));var HP;(function(e){e.filterSensitiveLog=t=>o({},t)})(HP=d.AutoScalingSettingsUpdate||(d.AutoScalingSettingsUpdate={}));var YP;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(YP=d.BackupType||(d.BackupType={}));var JP;(function(e){e.filterSensitiveLog=t=>o({},t)})(JP=d.BackupDetails||(d.BackupDetails={}));var QP;(function(e){e.filterSensitiveLog=t=>o({},t)})(QP=d.KeySchemaElement||(d.KeySchemaElement={}));var XP;(function(e){e.filterSensitiveLog=t=>o({},t)})(XP=d.ProvisionedThroughput||(d.ProvisionedThroughput={}));var ZP;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZP=d.SourceTableDetails||(d.SourceTableDetails={}));var eq;(function(e){e.filterSensitiveLog=t=>o({},t)})(eq=d.Projection||(d.Projection={}));var tq;(function(e){e.filterSensitiveLog=t=>o({},t)})(tq=d.GlobalSecondaryIndexInfo||(d.GlobalSecondaryIndexInfo={}));var nq;(function(e){e.filterSensitiveLog=t=>o({},t)})(nq=d.LocalSecondaryIndexInfo||(d.LocalSecondaryIndexInfo={}));var rq;(function(e){e.filterSensitiveLog=t=>o({},t)})(rq=d.SSEDescription||(d.SSEDescription={}));var sq;(function(e){e.filterSensitiveLog=t=>o({},t)})(sq=d.StreamSpecification||(d.StreamSpecification={}));var iq;(function(e){e.filterSensitiveLog=t=>o({},t)})(iq=d.TimeToLiveDescription||(d.TimeToLiveDescription={}));var aq;(function(e){e.filterSensitiveLog=t=>o({},t)})(aq=d.SourceTableFeatureDetails||(d.SourceTableFeatureDetails={}));var oq;(function(e){e.filterSensitiveLog=t=>o({},t)})(oq=d.BackupDescription||(d.BackupDescription={}));var cq;(function(e){e.filterSensitiveLog=t=>o({},t)})(cq=d.BackupInUseException||(d.BackupInUseException={}));var lq;(function(e){e.filterSensitiveLog=t=>o({},t)})(lq=d.BackupNotFoundException||(d.BackupNotFoundException={}));var dq;(function(e){e.filterSensitiveLog=t=>o({},t)})(dq=d.BackupSummary||(d.BackupSummary={}));var uq;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(uq=d.BackupTypeFilter||(d.BackupTypeFilter={}));var mq;(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"})(mq=d.BatchStatementErrorCodeEnum||(d.BatchStatementErrorCodeEnum={}));var fq;(function(e){e.filterSensitiveLog=t=>o({},t)})(fq=d.BatchStatementError||(d.BatchStatementError={}));var pq;(function(e){e.filterSensitiveLog=t=>o({},t)})(pq=d.InternalServerError||(d.InternalServerError={}));var hq;(function(e){e.filterSensitiveLog=t=>o({},t)})(hq=d.RequestLimitExceeded||(d.RequestLimitExceeded={}));var yq;(function(e){e.filterSensitiveLog=t=>o({},t)})(yq=d.Capacity||(d.Capacity={}));var gq;(function(e){e.filterSensitiveLog=t=>o({},t)})(gq=d.ConsumedCapacity||(d.ConsumedCapacity={}));var _q;(function(e){e.filterSensitiveLog=t=>o({},t)})(_q=d.InvalidEndpointException||(d.InvalidEndpointException={}));var wq;(function(e){e.filterSensitiveLog=t=>o({},t)})(wq=d.ProvisionedThroughputExceededException||(d.ProvisionedThroughputExceededException={}));var bq;(function(e){e.filterSensitiveLog=t=>o({},t)})(bq=d.ResourceNotFoundException||(d.ResourceNotFoundException={}));var Sq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Sq=d.ItemCollectionSizeLimitExceededException||(d.ItemCollectionSizeLimitExceededException={}));var vq;(function(e){e.filterSensitiveLog=t=>o({},t)})(vq=d.BillingModeSummary||(d.BillingModeSummary={}));var Eq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Eq=d.ConditionalCheckFailedException||(d.ConditionalCheckFailedException={}));var Aq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Aq=d.PointInTimeRecoveryDescription||(d.PointInTimeRecoveryDescription={}));var Cq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Cq=d.ContinuousBackupsDescription||(d.ContinuousBackupsDescription={}));var Tq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Tq=d.ContinuousBackupsUnavailableException||(d.ContinuousBackupsUnavailableException={}));var xq;(function(e){e.filterSensitiveLog=t=>o({},t)})(xq=d.ContributorInsightsSummary||(d.ContributorInsightsSummary={}));var Iq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Iq=d.CreateBackupInput||(d.CreateBackupInput={}));var Rq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Rq=d.CreateBackupOutput||(d.CreateBackupOutput={}));var kq;(function(e){e.filterSensitiveLog=t=>o({},t)})(kq=d.LimitExceededException||(d.LimitExceededException={}));var Dq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Dq=d.TableInUseException||(d.TableInUseException={}));var Nq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Nq=d.TableNotFoundException||(d.TableNotFoundException={}));var Lq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Lq=d.CreateGlobalSecondaryIndexAction||(d.CreateGlobalSecondaryIndexAction={}));var Pq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Pq=d.Replica||(d.Replica={}));var qq;(function(e){e.filterSensitiveLog=t=>o({},t)})(qq=d.CreateGlobalTableInput||(d.CreateGlobalTableInput={}));var Mq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Mq=d.ProvisionedThroughputOverride||(d.ProvisionedThroughputOverride={}));var Oq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Oq=d.ReplicaGlobalSecondaryIndexDescription||(d.ReplicaGlobalSecondaryIndexDescription={}));var zq;(function(e){e.filterSensitiveLog=t=>o({},t)})(zq=d.ReplicaDescription||(d.ReplicaDescription={}));var jq;(function(e){e.filterSensitiveLog=t=>o({},t)})(jq=d.GlobalTableDescription||(d.GlobalTableDescription={}));var Uq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Uq=d.CreateGlobalTableOutput||(d.CreateGlobalTableOutput={}));var Bq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Bq=d.GlobalTableAlreadyExistsException||(d.GlobalTableAlreadyExistsException={}));var Fq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Fq=d.CreateReplicaAction||(d.CreateReplicaAction={}));var Gq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Gq=d.ReplicaGlobalSecondaryIndex||(d.ReplicaGlobalSecondaryIndex={}));var $q;(function(e){e.filterSensitiveLog=t=>o({},t)})($q=d.CreateReplicationGroupMemberAction||(d.CreateReplicationGroupMemberAction={}));var Kq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Kq=d.GlobalSecondaryIndex||(d.GlobalSecondaryIndex={}));var Vq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Vq=d.LocalSecondaryIndex||(d.LocalSecondaryIndex={}));var Wq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Wq=d.SSESpecification||(d.SSESpecification={}));var Hq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Hq=d.Tag||(d.Tag={}));var Yq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Yq=d.CreateTableInput||(d.CreateTableInput={}));var Jq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Jq=d.ProvisionedThroughputDescription||(d.ProvisionedThroughputDescription={}));var Qq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Qq=d.GlobalSecondaryIndexDescription||(d.GlobalSecondaryIndexDescription={}));var Xq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Xq=d.LocalSecondaryIndexDescription||(d.LocalSecondaryIndexDescription={}));var Zq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Zq=d.RestoreSummary||(d.RestoreSummary={}));var eM;(function(e){e.filterSensitiveLog=t=>o({},t)})(eM=d.TableDescription||(d.TableDescription={}));var tM;(function(e){e.filterSensitiveLog=t=>o({},t)})(tM=d.CreateTableOutput||(d.CreateTableOutput={}));var nM;(function(e){e.filterSensitiveLog=t=>o({},t)})(nM=d.ResourceInUseException||(d.ResourceInUseException={}));var rM;(function(e){e.filterSensitiveLog=t=>o({},t)})(rM=d.DeleteBackupInput||(d.DeleteBackupInput={}));var sM;(function(e){e.filterSensitiveLog=t=>o({},t)})(sM=d.DeleteBackupOutput||(d.DeleteBackupOutput={}));var iM;(function(e){e.filterSensitiveLog=t=>o({},t)})(iM=d.DeleteGlobalSecondaryIndexAction||(d.DeleteGlobalSecondaryIndexAction={}));var aM;(function(e){e.filterSensitiveLog=t=>o({},t)})(aM=d.TransactionConflictException||(d.TransactionConflictException={}));var oM;(function(e){e.filterSensitiveLog=t=>o({},t)})(oM=d.DeleteReplicaAction||(d.DeleteReplicaAction={}));var cM;(function(e){e.filterSensitiveLog=t=>o({},t)})(cM=d.DeleteReplicationGroupMemberAction||(d.DeleteReplicationGroupMemberAction={}));var lM;(function(e){e.filterSensitiveLog=t=>o({},t)})(lM=d.DeleteTableInput||(d.DeleteTableInput={}));var dM;(function(e){e.filterSensitiveLog=t=>o({},t)})(dM=d.DeleteTableOutput||(d.DeleteTableOutput={}));var uM;(function(e){e.filterSensitiveLog=t=>o({},t)})(uM=d.DescribeBackupInput||(d.DescribeBackupInput={}));var mM;(function(e){e.filterSensitiveLog=t=>o({},t)})(mM=d.DescribeBackupOutput||(d.DescribeBackupOutput={}));var fM;(function(e){e.filterSensitiveLog=t=>o({},t)})(fM=d.DescribeContinuousBackupsInput||(d.DescribeContinuousBackupsInput={}));var pM;(function(e){e.filterSensitiveLog=t=>o({},t)})(pM=d.DescribeContinuousBackupsOutput||(d.DescribeContinuousBackupsOutput={}));var hM;(function(e){e.filterSensitiveLog=t=>o({},t)})(hM=d.DescribeContributorInsightsInput||(d.DescribeContributorInsightsInput={}));var yM;(function(e){e.filterSensitiveLog=t=>o({},t)})(yM=d.FailureException||(d.FailureException={}));var gM;(function(e){e.filterSensitiveLog=t=>o({},t)})(gM=d.DescribeContributorInsightsOutput||(d.DescribeContributorInsightsOutput={}));var _M;(function(e){e.filterSensitiveLog=t=>o({},t)})(_M=d.DescribeEndpointsRequest||(d.DescribeEndpointsRequest={}));var wM;(function(e){e.filterSensitiveLog=t=>o({},t)})(wM=d.Endpoint||(d.Endpoint={}));var bM;(function(e){e.filterSensitiveLog=t=>o({},t)})(bM=d.DescribeEndpointsResponse||(d.DescribeEndpointsResponse={}));var SM;(function(e){e.filterSensitiveLog=t=>o({},t)})(SM=d.DescribeExportInput||(d.DescribeExportInput={}));var vM;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(vM=d.ExportFormat||(d.ExportFormat={}));var EM;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(EM=d.ExportStatus||(d.ExportStatus={}));var AM;(function(e){e.filterSensitiveLog=t=>o({},t)})(AM=d.ExportDescription||(d.ExportDescription={}));var CM;(function(e){e.filterSensitiveLog=t=>o({},t)})(CM=d.DescribeExportOutput||(d.DescribeExportOutput={}));var TM;(function(e){e.filterSensitiveLog=t=>o({},t)})(TM=d.ExportNotFoundException||(d.ExportNotFoundException={}));var xM;(function(e){e.filterSensitiveLog=t=>o({},t)})(xM=d.DescribeGlobalTableInput||(d.DescribeGlobalTableInput={}));var IM;(function(e){e.filterSensitiveLog=t=>o({},t)})(IM=d.DescribeGlobalTableOutput||(d.DescribeGlobalTableOutput={}));var RM;(function(e){e.filterSensitiveLog=t=>o({},t)})(RM=d.GlobalTableNotFoundException||(d.GlobalTableNotFoundException={}));var kM;(function(e){e.filterSensitiveLog=t=>o({},t)})(kM=d.DescribeGlobalTableSettingsInput||(d.DescribeGlobalTableSettingsInput={}));var DM;(function(e){e.filterSensitiveLog=t=>o({},t)})(DM=d.ReplicaGlobalSecondaryIndexSettingsDescription||(d.ReplicaGlobalSecondaryIndexSettingsDescription={}));var NM;(function(e){e.filterSensitiveLog=t=>o({},t)})(NM=d.ReplicaSettingsDescription||(d.ReplicaSettingsDescription={}));var LM;(function(e){e.filterSensitiveLog=t=>o({},t)})(LM=d.DescribeGlobalTableSettingsOutput||(d.DescribeGlobalTableSettingsOutput={}));var PM;(function(e){e.filterSensitiveLog=t=>o({},t)})(PM=d.DescribeKinesisStreamingDestinationInput||(d.DescribeKinesisStreamingDestinationInput={}));var qM;(function(e){e.filterSensitiveLog=t=>o({},t)})(qM=d.KinesisDataStreamDestination||(d.KinesisDataStreamDestination={}));var MM;(function(e){e.filterSensitiveLog=t=>o({},t)})(MM=d.DescribeKinesisStreamingDestinationOutput||(d.DescribeKinesisStreamingDestinationOutput={}));var OM;(function(e){e.filterSensitiveLog=t=>o({},t)})(OM=d.DescribeLimitsInput||(d.DescribeLimitsInput={}));var zM;(function(e){e.filterSensitiveLog=t=>o({},t)})(zM=d.DescribeLimitsOutput||(d.DescribeLimitsOutput={}));var jM;(function(e){e.filterSensitiveLog=t=>o({},t)})(jM=d.DescribeTableInput||(d.DescribeTableInput={}));var UM;(function(e){e.filterSensitiveLog=t=>o({},t)})(UM=d.DescribeTableOutput||(d.DescribeTableOutput={}));var BM;(function(e){e.filterSensitiveLog=t=>o({},t)})(BM=d.DescribeTableReplicaAutoScalingInput||(d.DescribeTableReplicaAutoScalingInput={}));var FM;(function(e){e.filterSensitiveLog=t=>o({},t)})(FM=d.ReplicaGlobalSecondaryIndexAutoScalingDescription||(d.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var GM;(function(e){e.filterSensitiveLog=t=>o({},t)})(GM=d.ReplicaAutoScalingDescription||(d.ReplicaAutoScalingDescription={}));var $M;(function(e){e.filterSensitiveLog=t=>o({},t)})($M=d.TableAutoScalingDescription||(d.TableAutoScalingDescription={}));var KM;(function(e){e.filterSensitiveLog=t=>o({},t)})(KM=d.DescribeTableReplicaAutoScalingOutput||(d.DescribeTableReplicaAutoScalingOutput={}));var VM;(function(e){e.filterSensitiveLog=t=>o({},t)})(VM=d.DescribeTimeToLiveInput||(d.DescribeTimeToLiveInput={}));var WM;(function(e){e.filterSensitiveLog=t=>o({},t)})(WM=d.DescribeTimeToLiveOutput||(d.DescribeTimeToLiveOutput={}));var HM;(function(e){e.filterSensitiveLog=t=>o({},t)})(HM=d.KinesisStreamingDestinationInput||(d.KinesisStreamingDestinationInput={}));var YM;(function(e){e.filterSensitiveLog=t=>o({},t)})(YM=d.KinesisStreamingDestinationOutput||(d.KinesisStreamingDestinationOutput={}));var JM;(function(e){e.filterSensitiveLog=t=>o({},t)})(JM=d.DuplicateItemException||(d.DuplicateItemException={}));var QM;(function(e){e.filterSensitiveLog=t=>o({},t)})(QM=d.IdempotentParameterMismatchException||(d.IdempotentParameterMismatchException={}));var XM;(function(e){e.filterSensitiveLog=t=>o({},t)})(XM=d.TransactionInProgressException||(d.TransactionInProgressException={}));var ZM;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZM=d.ExportConflictException||(d.ExportConflictException={}));var eO;(function(e){e.filterSensitiveLog=t=>o({},t)})(eO=d.ExportTableToPointInTimeInput||(d.ExportTableToPointInTimeInput={}));var tO;(function(e){e.filterSensitiveLog=t=>o({},t)})(tO=d.ExportTableToPointInTimeOutput||(d.ExportTableToPointInTimeOutput={}));var nO;(function(e){e.filterSensitiveLog=t=>o({},t)})(nO=d.InvalidExportTimeException||(d.InvalidExportTimeException={}));var rO;(function(e){e.filterSensitiveLog=t=>o({},t)})(rO=d.PointInTimeRecoveryUnavailableException||(d.PointInTimeRecoveryUnavailableException={}));var sO;(function(e){e.filterSensitiveLog=t=>o({},t)})(sO=d.ListBackupsInput||(d.ListBackupsInput={}));var iO;(function(e){e.filterSensitiveLog=t=>o({},t)})(iO=d.ListBackupsOutput||(d.ListBackupsOutput={}));var aO;(function(e){e.filterSensitiveLog=t=>o({},t)})(aO=d.ListContributorInsightsInput||(d.ListContributorInsightsInput={}));var oO;(function(e){e.filterSensitiveLog=t=>o({},t)})(oO=d.ListContributorInsightsOutput||(d.ListContributorInsightsOutput={}));var cO;(function(e){e.filterSensitiveLog=t=>o({},t)})(cO=d.ListExportsInput||(d.ListExportsInput={}));var lO;(function(e){e.filterSensitiveLog=t=>o({},t)})(lO=d.ExportSummary||(d.ExportSummary={}));var dO;(function(e){e.filterSensitiveLog=t=>o({},t)})(dO=d.ListExportsOutput||(d.ListExportsOutput={}));var uO;(function(e){e.filterSensitiveLog=t=>o({},t)})(uO=d.ListGlobalTablesInput||(d.ListGlobalTablesInput={}));var mO;(function(e){e.filterSensitiveLog=t=>o({},t)})(mO=d.GlobalTable||(d.GlobalTable={}));var fO;(function(e){e.filterSensitiveLog=t=>o({},t)})(fO=d.ListGlobalTablesOutput||(d.ListGlobalTablesOutput={}));var pO;(function(e){e.filterSensitiveLog=t=>o({},t)})(pO=d.ListTablesInput||(d.ListTablesInput={}));var hO;(function(e){e.filterSensitiveLog=t=>o({},t)})(hO=d.ListTablesOutput||(d.ListTablesOutput={}));var yO;(function(e){e.filterSensitiveLog=t=>o({},t)})(yO=d.ListTagsOfResourceInput||(d.ListTagsOfResourceInput={}));var gO;(function(e){e.filterSensitiveLog=t=>o({},t)})(gO=d.ListTagsOfResourceOutput||(d.ListTagsOfResourceOutput={}));var _O;(function(e){e.filterSensitiveLog=t=>o({},t)})(_O=d.RestoreTableFromBackupInput||(d.RestoreTableFromBackupInput={}));var wO;(function(e){e.filterSensitiveLog=t=>o({},t)})(wO=d.RestoreTableFromBackupOutput||(d.RestoreTableFromBackupOutput={}));var bO;(function(e){e.filterSensitiveLog=t=>o({},t)})(bO=d.TableAlreadyExistsException||(d.TableAlreadyExistsException={}));var SO;(function(e){e.filterSensitiveLog=t=>o({},t)})(SO=d.InvalidRestoreTimeException||(d.InvalidRestoreTimeException={}));var vO;(function(e){e.filterSensitiveLog=t=>o({},t)})(vO=d.RestoreTableToPointInTimeInput||(d.RestoreTableToPointInTimeInput={}));var EO;(function(e){e.filterSensitiveLog=t=>o({},t)})(EO=d.RestoreTableToPointInTimeOutput||(d.RestoreTableToPointInTimeOutput={}));var AO;(function(e){e.filterSensitiveLog=t=>o({},t)})(AO=d.TagResourceInput||(d.TagResourceInput={}));var CO;(function(e){e.filterSensitiveLog=t=>o({},t)})(CO=d.UntagResourceInput||(d.UntagResourceInput={}));var TO;(function(e){e.filterSensitiveLog=t=>o({},t)})(TO=d.PointInTimeRecoverySpecification||(d.PointInTimeRecoverySpecification={}));var xO;(function(e){e.filterSensitiveLog=t=>o({},t)})(xO=d.UpdateContinuousBackupsInput||(d.UpdateContinuousBackupsInput={}));var IO;(function(e){e.filterSensitiveLog=t=>o({},t)})(IO=d.UpdateContinuousBackupsOutput||(d.UpdateContinuousBackupsOutput={}));var RO;(function(e){e.filterSensitiveLog=t=>o({},t)})(RO=d.UpdateContributorInsightsInput||(d.UpdateContributorInsightsInput={}));var kO;(function(e){e.filterSensitiveLog=t=>o({},t)})(kO=d.UpdateContributorInsightsOutput||(d.UpdateContributorInsightsOutput={}));var DO;(function(e){e.filterSensitiveLog=t=>o({},t)})(DO=d.ReplicaAlreadyExistsException||(d.ReplicaAlreadyExistsException={}));var NO;(function(e){e.filterSensitiveLog=t=>o({},t)})(NO=d.ReplicaNotFoundException||(d.ReplicaNotFoundException={}));var LO;(function(e){e.filterSensitiveLog=t=>o({},t)})(LO=d.ReplicaUpdate||(d.ReplicaUpdate={}));var PO;(function(e){e.filterSensitiveLog=t=>o({},t)})(PO=d.UpdateGlobalTableInput||(d.UpdateGlobalTableInput={}));var qO;(function(e){e.filterSensitiveLog=t=>o({},t)})(qO=d.UpdateGlobalTableOutput||(d.UpdateGlobalTableOutput={}));var MO;(function(e){e.filterSensitiveLog=t=>o({},t)})(MO=d.IndexNotFoundException||(d.IndexNotFoundException={}));var OO;(function(e){e.filterSensitiveLog=t=>o({},t)})(OO=d.GlobalTableGlobalSecondaryIndexSettingsUpdate||(d.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var zO;(function(e){e.filterSensitiveLog=t=>o({},t)})(zO=d.ReplicaGlobalSecondaryIndexSettingsUpdate||(d.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var jO;(function(e){e.filterSensitiveLog=t=>o({},t)})(jO=d.ReplicaSettingsUpdate||(d.ReplicaSettingsUpdate={}));var UO;(function(e){e.filterSensitiveLog=t=>o({},t)})(UO=d.UpdateGlobalTableSettingsInput||(d.UpdateGlobalTableSettingsInput={}));var BO;(function(e){e.filterSensitiveLog=t=>o({},t)})(BO=d.UpdateGlobalTableSettingsOutput||(d.UpdateGlobalTableSettingsOutput={}));var FO;(function(e){e.filterSensitiveLog=t=>o({},t)})(FO=d.UpdateGlobalSecondaryIndexAction||(d.UpdateGlobalSecondaryIndexAction={}));var GO;(function(e){e.filterSensitiveLog=t=>o({},t)})(GO=d.GlobalSecondaryIndexUpdate||(d.GlobalSecondaryIndexUpdate={}));var $O;(function(e){e.filterSensitiveLog=t=>o({},t)})($O=d.UpdateReplicationGroupMemberAction||(d.UpdateReplicationGroupMemberAction={}));var KO;(function(e){e.filterSensitiveLog=t=>o({},t)})(KO=d.ReplicationGroupUpdate||(d.ReplicationGroupUpdate={}));var VO;(function(e){e.filterSensitiveLog=t=>o({},t)})(VO=d.UpdateTableInput||(d.UpdateTableInput={}));var WO;(function(e){e.filterSensitiveLog=t=>o({},t)})(WO=d.UpdateTableOutput||(d.UpdateTableOutput={}));var HO;(function(e){e.filterSensitiveLog=t=>o({},t)})(HO=d.GlobalSecondaryIndexAutoScalingUpdate||(d.GlobalSecondaryIndexAutoScalingUpdate={}));var YO;(function(e){e.filterSensitiveLog=t=>o({},t)})(YO=d.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(d.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var JO;(function(e){e.filterSensitiveLog=t=>o({},t)})(JO=d.ReplicaAutoScalingUpdate||(d.ReplicaAutoScalingUpdate={}));var QO;(function(e){e.filterSensitiveLog=t=>o({},t)})(QO=d.UpdateTableReplicaAutoScalingInput||(d.UpdateTableReplicaAutoScalingInput={}));var XO;(function(e){e.filterSensitiveLog=t=>o({},t)})(XO=d.UpdateTableReplicaAutoScalingOutput||(d.UpdateTableReplicaAutoScalingOutput={}));var ZO;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZO=d.TimeToLiveSpecification||(d.TimeToLiveSpecification={}));var ez;(function(e){e.filterSensitiveLog=t=>o({},t)})(ez=d.UpdateTimeToLiveInput||(d.UpdateTimeToLiveInput={}));var tz;(function(e){e.filterSensitiveLog=t=>o({},t)})(tz=d.UpdateTimeToLiveOutput||(d.UpdateTimeToLiveOutput={}));var re;(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,s])=>u(o({},n),{[r]:e.filterSensitiveLog(s)}),{})};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"}}})(re=d.AttributeValue||(d.AttributeValue={}));var hw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Value&&{Value:re.filterSensitiveLog(t.Value)})})(hw=d.AttributeValueUpdate||(d.AttributeValueUpdate={}));var yw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(yw=d.BatchStatementRequest||(d.BatchStatementRequest={}));var gw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(gw=d.BatchStatementResponse||(d.BatchStatementResponse={}));var _w;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(_w=d.CancellationReason||(d.CancellationReason={}));var La;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>re.filterSensitiveLog(n))})})(La=d.Condition||(d.Condition={}));var ww;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(ww=d.DeleteRequest||(d.DeleteRequest={}));var nz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(nz=d.ExecuteStatementInput||(d.ExecuteStatementInput={}));var bw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(bw=d.Get||(d.Get={}));var rz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(rz=d.GetItemInput||(d.GetItemInput={}));var sz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(sz=d.GetItemOutput||(d.GetItemOutput={}));var cs;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(cs=d.ItemCollectionMetrics||(d.ItemCollectionMetrics={}));var Af;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Af=d.ItemResponse||(d.ItemResponse={}));var Sw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(Sw=d.ParameterizedStatement||(d.ParameterizedStatement={}));var vw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(vw=d.PutRequest||(d.PutRequest={}));var iz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))})})(iz=d.ExecuteStatementOutput||(d.ExecuteStatementOutput={}));var Cf;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Keys&&{Keys:t.Keys.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))})})(Cf=d.KeysAndAttributes||(d.KeysAndAttributes={}));var Ew;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Get&&{Get:bw.filterSensitiveLog(t.Get)})})(Ew=d.TransactGetItem||(d.TransactGetItem={}));var az;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Statements&&{Statements:t.Statements.map(n=>yw.filterSensitiveLog(n))})})(az=d.BatchExecuteStatementInput||(d.BatchExecuteStatementInput={}));var oz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>gw.filterSensitiveLog(n))})})(oz=d.BatchExecuteStatementOutput||(d.BatchExecuteStatementOutput={}));var cz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactStatements&&{TransactStatements:t.TransactStatements.map(n=>Sw.filterSensitiveLog(n))})})(cz=d.ExecuteTransactionInput||(d.ExecuteTransactionInput={}));var lz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>Af.filterSensitiveLog(n))})})(lz=d.ExecuteTransactionOutput||(d.ExecuteTransactionOutput={}));var dz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>Af.filterSensitiveLog(n))})})(dz=d.TransactGetItemsOutput||(d.TransactGetItemsOutput={}));var uz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.CancellationReasons&&{CancellationReasons:t.CancellationReasons.map(n=>_w.filterSensitiveLog(n))})})(uz=d.TransactionCanceledException||(d.TransactionCanceledException={}));var mz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,s])=>u(o({},n),{[r]:Cf.filterSensitiveLog(s)}),{})})})(mz=d.BatchGetItemInput||(d.BatchGetItemInput={}));var Pa;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Value&&{Value:re.filterSensitiveLog(t.Value)}),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>re.filterSensitiveLog(n))})})(Pa=d.ExpectedAttributeValue||(d.ExpectedAttributeValue={}));var fz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>Ew.filterSensitiveLog(n))})})(fz=d.TransactGetItemsInput||(d.TransactGetItemsInput={}));var pz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>cs.filterSensitiveLog(i))}),{})})})(pz=d.TransactWriteItemsOutput||(d.TransactWriteItemsOutput={}));var Aw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Aw=d.ConditionCheck||(d.ConditionCheck={}));var Cw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Cw=d.Delete||(d.Delete={}));var Tw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Tw=d.Put||(d.Put={}));var xw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(xw=d.Update||(d.Update={}));var hz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:cs.filterSensitiveLog(t.ItemCollectionMetrics)})})(hz=d.DeleteItemOutput||(d.DeleteItemOutput={}));var yz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:cs.filterSensitiveLog(t.ItemCollectionMetrics)})})(yz=d.PutItemOutput||(d.PutItemOutput={}));var gz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(gz=d.QueryOutput||(d.QueryOutput={}));var _z;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(_z=d.ScanOutput||(d.ScanOutput={}));var wz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:cs.filterSensitiveLog(t.ItemCollectionMetrics)})})(wz=d.UpdateItemOutput||(d.UpdateItemOutput={}));var Tf;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.PutRequest&&{PutRequest:vw.filterSensitiveLog(t.PutRequest)}),t.DeleteRequest&&{DeleteRequest:ww.filterSensitiveLog(t.DeleteRequest)})})(Tf=d.WriteRequest||(d.WriteRequest={}));var bz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Responses&&{Responses:Object.entries(t.Responses).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>Object.entries(i).reduce((a,[c,l])=>u(o({},a),{[c]:re.filterSensitiveLog(l)}),{}))}),{})}),t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((n,[r,s])=>u(o({},n),{[r]:Cf.filterSensitiveLog(s)}),{})})})(bz=d.BatchGetItemOutput||(d.BatchGetItemOutput={}));var Sz;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((n,[r,s])=>u(o({},n),{[r]:La.filterSensitiveLog(s)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Sz=d.ScanInput||(d.ScanInput={}));var vz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>Tf.filterSensitiveLog(i))}),{})})})(vz=d.BatchWriteItemInput||(d.BatchWriteItemInput={}));var Ez;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,s])=>u(o({},n),{[r]:Pa.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Ez=d.DeleteItemInput||(d.DeleteItemInput={}));var Az;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,s])=>u(o({},n),{[r]:Pa.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Az=d.PutItemInput||(d.PutItemInput={}));var Cz;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((n,[r,s])=>u(o({},n),{[r]:La.filterSensitiveLog(s)}),{})}),t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((n,[r,s])=>u(o({},n),{[r]:La.filterSensitiveLog(s)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Cz=d.QueryInput||(d.QueryInput={}));var Tz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>Tf.filterSensitiveLog(i))}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>cs.filterSensitiveLog(i))}),{})})})(Tz=d.BatchWriteItemOutput||(d.BatchWriteItemOutput={}));var xz;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((n,[r,s])=>u(o({},n),{[r]:hw.filterSensitiveLog(s)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,s])=>u(o({},n),{[r]:Pa.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(xz=d.UpdateItemInput||(d.UpdateItemInput={}));var Iw;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.ConditionCheck&&{ConditionCheck:Aw.filterSensitiveLog(t.ConditionCheck)}),t.Put&&{Put:Tw.filterSensitiveLog(t.Put)}),t.Delete&&{Delete:Cw.filterSensitiveLog(t.Delete)}),t.Update&&{Update:xw.filterSensitiveLog(t.Update)})})(Iw=d.TransactWriteItem||(d.TransactWriteItem={}));var Iz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>Iw.filterSensitiveLog(n))})})(Iz=d.TransactWriteItemsInput||(d.TransactWriteItemsInput={}))});var kw=p(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.HttpResponse=void 0;var Rw=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"}};qa.HttpResponse=Rw});var Dw=p(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.HttpRequest=void 0;var Ma=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.substr(-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 Ma(u(o({},this),{headers:o({},this.headers)}));return t.query&&(t.query=Rz(t.query)),t}};Oa.HttpRequest=Ma;function Rz(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return u(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var Lw=p(Nw=>{"use strict";Object.defineProperty(Nw,"__esModule",{value:!0})});var Pw=p(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.isValidHostname=void 0;function kz(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}za.isValidHostname=kz});var Dt=p(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var ja=ue();ja.__exportStar(kw(),ls);ja.__exportStar(Dw(),ls);ja.__exportStar(Lw(),ls);ja.__exportStar(Pw(),ls)});var Ow=p(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.constructStack=void 0;var Dz=()=>{let e=[],t=[],n=new Set,r=f=>f.sort((g,h)=>qw[h.step]-qw[g.step]||Mw[h.priority||"normal"]-Mw[g.priority||"normal"]),s=f=>{let g=!1,h=_=>_.name&&_.name===f?(g=!0,n.delete(f),!1):!0;return e=e.filter(h),t=t.filter(h),g},i=f=>{let g=!1,h=_=>_.middleware===f?(g=!0,_.name&&n.delete(_.name),!1):!0;return e=e.filter(h),t=t.filter(h),g},a=f=>(e.forEach(g=>{f.add(g.middleware,o({},g))}),t.forEach(g=>{f.addRelativeTo(g.middleware,o({},g))}),f),c=f=>{let g=[];return f.before.forEach(h=>{h.before.length===0&&h.after.length===0?g.push(h):g.push(...c(h))}),g.push(f),f.after.reverse().forEach(h=>{h.before.length===0&&h.after.length===0?g.push(h):g.push(...c(h))}),g},l=()=>{let f=[],g=[],h={};return e.forEach(b=>{let E=u(o({},b),{before:[],after:[]});E.name&&(h[E.name]=E),f.push(E)}),t.forEach(b=>{let E=u(o({},b),{before:[],after:[]});E.name&&(h[E.name]=E),g.push(E)}),g.forEach(b=>{if(b.toMiddleware){let E=h[b.toMiddleware];if(E===void 0)throw new Error(`${b.toMiddleware} is not found when adding ${b.name||"anonymous"} middleware ${b.relation} ${b.toMiddleware}`);b.relation==="after"&&E.after.push(b),b.relation==="before"&&E.before.push(b)}}),r(f).map(c).reduce((b,E)=>(b.push(...E),b),[]).map(b=>b.middleware)},m={add:(f,g={})=>{let{name:h,override:_}=g,b=o({step:"initialize",priority:"normal",middleware:f},g);if(h){if(n.has(h)){if(!_)throw new Error(`Duplicate middleware name '${h}'`);let E=e.findIndex(k=>k.name===h),D=e[E];if(D.step!==b.step||D.priority!==b.priority)throw new Error(`"${h}" middleware with ${D.priority} priority in ${D.step} step cannot be overridden by same-name middleware with ${b.priority} priority in ${b.step} step.`);e.splice(E,1)}n.add(h)}e.push(b)},addRelativeTo:(f,g)=>{let{name:h,override:_}=g,b=o({middleware:f},g);if(h){if(n.has(h)){if(!_)throw new Error(`Duplicate middleware name '${h}'`);let E=t.findIndex(k=>k.name===h),D=t[E];if(D.toMiddleware!==b.toMiddleware||D.relation!==b.relation)throw new Error(`"${h}" middleware ${D.relation} "${D.toMiddleware}" middleware cannot be overridden by same-name middleware ${b.relation} "${b.toMiddleware}" middleware.`);t.splice(E,1)}n.add(h)}t.push(b)},clone:()=>a(ds.constructStack()),use:f=>{f.applyToStack(m)},remove:f=>typeof f=="string"?s(f):i(f),removeByTag:f=>{let g=!1,h=_=>{let{tags:b,name:E}=_;return b&&b.includes(f)?(E&&n.delete(E),g=!0,!1):!0};return e=e.filter(h),t=t.filter(h),g},concat:f=>{let g=a(ds.constructStack());return g.use(f),g},applyToStack:a,resolve:(f,g)=>{for(let h of l().reverse())f=h(f,g);return f}};return m};ds.constructStack=Dz;var qw={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Mw={high:3,normal:2,low:1}});var If=p(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var Nz=ue();Nz.__exportStar(Ow(),xf)});var jw=p(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.Client=void 0;var Lz=If(),zw=class{constructor(t){this.middlewareStack=Lz.constructStack(),this.config=t}send(t,n,r){let s=typeof n!="function"?n:void 0,i=typeof n=="function"?n:r,a=t.resolveMiddleware(this.middlewareStack,this.config,s);if(i)a(t).then(c=>i(null,c.output),c=>i(c)).catch(()=>{});else return a(t).then(c=>c.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};Ua.Client=zw});var Bw=p(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.Command=void 0;var Pz=If(),Uw=class{constructor(){this.middlewareStack=Pz.constructStack()}};Ba.Command=Uw});var Gw=p(Fw=>{"use strict";Object.defineProperty(Fw,"__esModule",{value:!0})});var Kw=p($w=>{"use strict";Object.defineProperty($w,"__esModule",{value:!0})});var Vw=p(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.extendedEncodeURIComponent=void 0;function qz(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}Fa.extendedEncodeURIComponent=qz});var Ww=p(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.getArrayIfSingleItem=void 0;var Mz=e=>Array.isArray(e)?e:[e];Ga.getArrayIfSingleItem=Mz});var Hw=p(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.getValueFromTextNode=void 0;var Oz=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]=mi.getValueFromTextNode(e[n]));return e};mi.getValueFromTextNode=Oz});var Yw=p(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.LazyJsonString=nn.StringWrapper=void 0;var zz=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};nn.StringWrapper=zz;nn.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:nn.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(nn.StringWrapper,String);var us=class extends nn.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof us?t:t instanceof String||typeof t=="string"?new us(t):new us(JSON.stringify(t))}};nn.LazyJsonString=us});var Jw=p(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.handleFloat=Nt.expectString=Nt.expectNumber=Nt.expectBoolean=Nt.parseBoolean=void 0;var jz=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};Nt.parseBoolean=jz;var Uz=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};Nt.expectBoolean=Uz;var Bz=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};Nt.expectNumber=Bz;var Fz=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};Nt.expectString=Fz;var Gz=e=>{if(typeof e=="string")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}`)}return Nt.expectNumber(e)};Nt.handleFloat=Gz});var Qw=p($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.serializeFloat=void 0;var $z=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};$a.serializeFloat=$z});var Xw=p(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.dateToUtcString=void 0;var Kz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Vz=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Wz(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),s=e.getUTCDate(),i=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,m=i<10?`0${i}`:`${i}`,f=a<10?`0${a}`:`${a}`,g=c<10?`0${c}`:`${c}`;return`${Kz[r]}, ${l} ${Vz[n]} ${t} ${m}:${f}:${g} GMT`}Ka.dateToUtcString=Wz});var Zw=p(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.splitEvery=void 0;function Hz(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 s=[],i="";for(let a=0;a<r.length;a++)i===""?i=r[a]:i+=t+r[a],(a+1)%n==0&&(s.push(i),i="");return i!==""&&s.push(i),s}Va.splitEvery=Hz});var eb=p(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.SENSITIVE_STRING=void 0;Wa.SENSITIVE_STRING="***SensitiveInformation***"});var nb=p(tb=>{"use strict";Object.defineProperty(tb,"__esModule",{value:!0})});var sb=p(rb=>{"use strict";Object.defineProperty(rb,"__esModule",{value:!0})});var M=p(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var dt=ue();dt.__exportStar(jw(),Ye);dt.__exportStar(Bw(),Ye);dt.__exportStar(Gw(),Ye);dt.__exportStar(Kw(),Ye);dt.__exportStar(Vw(),Ye);dt.__exportStar(Ww(),Ye);dt.__exportStar(Hw(),Ye);dt.__exportStar(Yw(),Ye);dt.__exportStar(Jw(),Ye);dt.__exportStar(Qw(),Ye);dt.__exportStar(Xw(),Ye);dt.__exportStar(Zw(),Ye);dt.__exportStar(eb(),Ye);dt.__exportStar(nb(),Ye);dt.__exportStar(sb(),Ye)});var kf=p(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.default=Qz;var Yz=Jz(require("crypto"));function Jz(e){return e&&e.__esModule?e:{default:e}}var Ha=new Uint8Array(256),Ya=Ha.length;function Qz(){return Ya>Ha.length-16&&(Yz.default.randomFillSync(Ha),Ya=0),Ha.slice(Ya,Ya+=16)}});var ib=p(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.default=void 0;var Xz=/^(?:[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;Ja.default=Xz});var fi=p(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=void 0;var Zz=ej(ib());function ej(e){return e&&e.__esModule?e:{default:e}}function tj(e){return typeof e=="string"&&Zz.default.test(e)}var nj=tj;Qa.default=nj});var pi=p(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=void 0;var rj=sj(fi());function sj(e){return e&&e.__esModule?e:{default:e}}var Je=[];for(let e=0;e<256;++e)Je.push((e+256).toString(16).substr(1));function ij(e,t=0){let n=(Je[e[t+0]]+Je[e[t+1]]+Je[e[t+2]]+Je[e[t+3]]+"-"+Je[e[t+4]]+Je[e[t+5]]+"-"+Je[e[t+6]]+Je[e[t+7]]+"-"+Je[e[t+8]]+Je[e[t+9]]+"-"+Je[e[t+10]]+Je[e[t+11]]+Je[e[t+12]]+Je[e[t+13]]+Je[e[t+14]]+Je[e[t+15]]).toLowerCase();if(!(0,rj.default)(n))throw TypeError("Stringified UUID is invalid");return n}var aj=ij;Xa.default=aj});var cb=p(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.default=void 0;var oj=ab(kf()),cj=ab(pi());function ab(e){return e&&e.__esModule?e:{default:e}}var ob,Df,Nf=0,Lf=0;function lj(e,t,n){let r=t&&n||0,s=t||new Array(16);e=e||{};let i=e.node||ob,a=e.clockseq!==void 0?e.clockseq:Df;if(i==null||a==null){let h=e.random||(e.rng||oj.default)();i==null&&(i=ob=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]),a==null&&(a=Df=(h[6]<<8|h[7])&16383)}let c=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:Lf+1,m=c-Nf+(l-Lf)/1e4;if(m<0&&e.clockseq===void 0&&(a=a+1&16383),(m<0||c>Nf)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Nf=c,Lf=l,Df=a,c+=122192928e5;let f=((c&268435455)*1e4+l)%4294967296;s[r++]=f>>>24&255,s[r++]=f>>>16&255,s[r++]=f>>>8&255,s[r++]=f&255;let g=c/4294967296*1e4&268435455;s[r++]=g>>>8&255,s[r++]=g&255,s[r++]=g>>>24&15|16,s[r++]=g>>>16&255,s[r++]=a>>>8|128,s[r++]=a&255;for(let h=0;h<6;++h)s[r+h]=i[h];return t||(0,cj.default)(s)}var dj=lj;Za.default=dj});var Pf=p(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var uj=mj(fi());function mj(e){return e&&e.__esModule?e:{default:e}}function fj(e){if(!(0,uj.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 pj=fj;eo.default=pj});var qf=p(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.default=_j;kr.URL=kr.DNS=void 0;var hj=lb(pi()),yj=lb(Pf());function lb(e){return e&&e.__esModule?e:{default:e}}function gj(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var db="6ba7b810-9dad-11d1-80b4-00c04fd430c8";kr.DNS=db;var ub="6ba7b811-9dad-11d1-80b4-00c04fd430c8";kr.URL=ub;function _j(e,t,n){function r(s,i,a,c){if(typeof s=="string"&&(s=gj(s)),typeof i=="string"&&(i=(0,yj.default)(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+s.length);if(l.set(i),l.set(s,i.length),l=n(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,a){c=c||0;for(let m=0;m<16;++m)a[c+m]=l[m];return a}return(0,hj.default)(l)}try{r.name=e}catch(s){}return r.DNS=db,r.URL=ub,r}});var mb=p(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.default=void 0;var wj=bj(require("crypto"));function bj(e){return e&&e.__esModule?e:{default:e}}function Sj(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),wj.default.createHash("md5").update(e).digest()}var vj=Sj;to.default=vj});var pb=p(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=void 0;var Ej=fb(qf()),Aj=fb(mb());function fb(e){return e&&e.__esModule?e:{default:e}}var Cj=(0,Ej.default)("v3",48,Aj.default),Tj=Cj;no.default=Tj});var yb=p(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.default=void 0;var xj=hb(kf()),Ij=hb(pi());function hb(e){return e&&e.__esModule?e:{default:e}}function Rj(e,t,n){e=e||{};let r=e.random||(e.rng||xj.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let s=0;s<16;++s)t[n+s]=r[s];return t}return(0,Ij.default)(r)}var kj=Rj;ro.default=kj});var gb=p(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.default=void 0;var Dj=Nj(require("crypto"));function Nj(e){return e&&e.__esModule?e:{default:e}}function Lj(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Dj.default.createHash("sha1").update(e).digest()}var Pj=Lj;so.default=Pj});var wb=p(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=void 0;var qj=_b(qf()),Mj=_b(gb());function _b(e){return e&&e.__esModule?e:{default:e}}var Oj=(0,qj.default)("v5",80,Mj.default),zj=Oj;io.default=zj});var bb=p(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var jj="00000000-0000-0000-0000-000000000000";ao.default=jj});var Sb=p(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=void 0;var Uj=Bj(fi());function Bj(e){return e&&e.__esModule?e:{default:e}}function Fj(e){if(!(0,Uj.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var Gj=Fj;oo.default=Gj});var Mf=p(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Object.defineProperty(Wt,"v1",{enumerable:!0,get:function(){return $j.default}});Object.defineProperty(Wt,"v3",{enumerable:!0,get:function(){return Kj.default}});Object.defineProperty(Wt,"v4",{enumerable:!0,get:function(){return Vj.default}});Object.defineProperty(Wt,"v5",{enumerable:!0,get:function(){return Wj.default}});Object.defineProperty(Wt,"NIL",{enumerable:!0,get:function(){return Hj.default}});Object.defineProperty(Wt,"version",{enumerable:!0,get:function(){return Yj.default}});Object.defineProperty(Wt,"validate",{enumerable:!0,get:function(){return Jj.default}});Object.defineProperty(Wt,"stringify",{enumerable:!0,get:function(){return Qj.default}});Object.defineProperty(Wt,"parse",{enumerable:!0,get:function(){return Xj.default}});var $j=In(cb()),Kj=In(pb()),Vj=In(yb()),Wj=In(wb()),Hj=In(bb()),Yj=In(Sb()),Jj=In(fi()),Qj=In(pi()),Xj=In(Pf());function In(e){return e&&e.__esModule?e:{default:e}}});var H=p(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 Zj=W(),eU=Dt(),w=M(),Of=Mf(),tU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},r;return r=JSON.stringify(nG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchExecuteStatementCommand=tU;var nU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},r;return r=JSON.stringify(rG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchGetItemCommand=nU;var rU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},r;return r=JSON.stringify(aG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchWriteItemCommand=rU;var sU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},r;return r=JSON.stringify(dG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateBackupCommand=sU;var iU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},r;return r=JSON.stringify(mG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateGlobalTableCommand=iU;var aU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},r;return r=JSON.stringify(hG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateTableCommand=aU;var oU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},r;return r=JSON.stringify(gG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteBackupCommand=oU;var cU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},r;return r=JSON.stringify(wG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteItemCommand=cU;var lU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},r;return r=JSON.stringify(EG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteTableCommand=lU;var dU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},r;return r=JSON.stringify(AG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeBackupCommand=dU;var uU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},r;return r=JSON.stringify(CG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContinuousBackupsCommand=uU;var mU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},r;return r=JSON.stringify(TG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContributorInsightsCommand=mU;var fU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},r;return r=JSON.stringify(xG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeEndpointsCommand=fU;var pU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},r;return r=JSON.stringify(IG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeExportCommand=pU;var hU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},r;return r=JSON.stringify(RG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableCommand=hU;var yU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},r;return r=JSON.stringify(kG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=yU;var gU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},r;return r=JSON.stringify(DG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=gU;var _U=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},r;return r=JSON.stringify(NG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeLimitsCommand=_U;var wU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},r;return r=JSON.stringify(LG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableCommand=wU;var bU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},r;return r=JSON.stringify(PG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=bU;var SU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},r;return r=JSON.stringify(qG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTimeToLiveCommand=SU;var vU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},r;return r=JSON.stringify(Nb(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=vU;var EU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},r;return r=JSON.stringify(Nb(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=EU;var AU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},r;return r=JSON.stringify(MG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteStatementCommand=AU;var CU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},r;return r=JSON.stringify(OG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteTransactionCommand=CU;var TU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},r;return r=JSON.stringify(jG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExportTableToPointInTimeCommand=TU;var xU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},r;return r=JSON.stringify(BG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0GetItemCommand=xU;var IU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},r;return r=JSON.stringify(e$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListBackupsCommand=IU;var RU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},r;return r=JSON.stringify(t$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListContributorInsightsCommand=RU;var kU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},r;return r=JSON.stringify(n$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListExportsCommand=kU;var DU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},r;return r=JSON.stringify(r$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListGlobalTablesCommand=DU;var NU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},r;return r=JSON.stringify(s$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTablesCommand=NU;var LU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},r;return r=JSON.stringify(i$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTagsOfResourceCommand=LU;var PU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},r;return r=JSON.stringify(h$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0PutItemCommand=PU;var qU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},r;return r=JSON.stringify(g$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0QueryCommand=qU;var MU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},r;return r=JSON.stringify(L$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableFromBackupCommand=MU;var OU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},r;return r=JSON.stringify(P$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableToPointInTimeCommand=OU;var zU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},r;return r=JSON.stringify(q$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ScanCommand=zU;var jU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},r;return r=JSON.stringify(j$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TagResourceCommand=jU;var UU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},r;return r=JSON.stringify(G$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactGetItemsCommand=UU;var BU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},r;return r=JSON.stringify(V$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactWriteItemsCommand=BU;var FU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},r;return r=JSON.stringify(W$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UntagResourceCommand=FU;var GU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},r;return r=JSON.stringify(Y$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContinuousBackupsCommand=GU;var $U=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},r;return r=JSON.stringify(J$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContributorInsightsCommand=$U;var KU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},r;return r=JSON.stringify(X$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableCommand=KU;var VU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},r;return r=JSON.stringify(Z$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=VU;var WU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},r;return r=JSON.stringify(e2(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateItemCommand=WU;var HU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},r;return r=JSON.stringify(n2(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableCommand=HU;var YU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},r;return r=JSON.stringify(r2(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=YU;var JU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},r;return r=JSON.stringify(s2(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTimeToLiveCommand=JU;var QU=async(e,t)=>{if(e.statusCode>=300)return XU(e,t);let n=await L(e.body,t),r={};r=_2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0BatchExecuteStatementCommand=QU;var XU=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},ZU=async(e,t)=>{if(e.statusCode>=300)return eB(e,t);let n=await L(e.body,t),r={};r=w2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0BatchGetItemCommand=ZU;var eB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},tB=async(e,t)=>{if(e.statusCode>=300)return nB(e,t);let n=await L(e.body,t),r={};r=A2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0BatchWriteItemCommand=tB;var nB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await hi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},rB=async(e,t)=>{if(e.statusCode>=300)return sB(e,t);let n=await L(e.body,t),r={};r=P2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0CreateBackupCommand=rB;var sB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await zf(n,t)),{name:s,$metadata:y(e)});break;case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=u(o({},await vb(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Uf(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Dr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},iB=async(e,t)=>{if(e.statusCode>=300)return aB(e,t);let n=await L(e.body,t),r={};r=q2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0CreateGlobalTableCommand=iB;var aB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":r=u(o({},await VF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Dr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},oB=async(e,t)=>{if(e.statusCode>=300)return cB(e,t);let n=await L(e.body,t),r={};r=M2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0CreateTableCommand=oB;var cB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await rn(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},lB=async(e,t)=>{if(e.statusCode>=300)return dB(e,t);let n=await L(e.body,t),r={};r=O2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DeleteBackupCommand=lB;var dB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await zf(n,t)),{name:s,$metadata:y(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await jf(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},uB=async(e,t)=>{if(e.statusCode>=300)return mB(e,t);let n=await L(e.body,t),r={};r=z2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DeleteItemCommand=uB;var mB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await hi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await uo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},fB=async(e,t)=>{if(e.statusCode>=300)return pB(e,t);let n=await L(e.body,t),r={};r=U2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DeleteTableCommand=fB;var pB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await rn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},hB=async(e,t)=>{if(e.statusCode>=300)return yB(e,t);let n=await L(e.body,t),r={};r=B2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeBackupCommand=hB;var yB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await jf(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},gB=async(e,t)=>{if(e.statusCode>=300)return _B(e,t);let n=await L(e.body,t),r={};r=F2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeContinuousBackupsCommand=gB;var _B=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Dr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},wB=async(e,t)=>{if(e.statusCode>=300)return bB(e,t);let n=await L(e.body,t),r={};r=G2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeContributorInsightsCommand=wB;var bB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},SB=async(e,t)=>{if(e.statusCode>=300)return vB(e,t);let n=await L(e.body,t),r={};r=$2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeEndpointsCommand=SB;var vB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},EB=async(e,t)=>{if(e.statusCode>=300)return AB(e,t);let n=await L(e.body,t),r={};r=K2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeExportCommand=EB;var AB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":r=u(o({},await KF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},CB=async(e,t)=>{if(e.statusCode>=300)return TB(e,t);let n=await L(e.body,t),r={};r=V2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeGlobalTableCommand=CB;var TB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},xB=async(e,t)=>{if(e.statusCode>=300)return IB(e,t);let n=await L(e.body,t),r={};r=W2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=xB;var IB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},RB=async(e,t)=>{if(e.statusCode>=300)return kB(e,t);let n=await L(e.body,t),r={};r=H2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=RB;var kB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},DB=async(e,t)=>{if(e.statusCode>=300)return NB(e,t);let n=await L(e.body,t),r={};r=Y2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeLimitsCommand=DB;var NB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},LB=async(e,t)=>{if(e.statusCode>=300)return PB(e,t);let n=await L(e.body,t),r={};r=J2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeTableCommand=LB;var PB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},qB=async(e,t)=>{if(e.statusCode>=300)return MB(e,t);let n=await L(e.body,t),r={};r=Q2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=qB;var MB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},OB=async(e,t)=>{if(e.statusCode>=300)return zB(e,t);let n=await L(e.body,t),r={};r=X2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeTimeToLiveCommand=OB;var zB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},jB=async(e,t)=>{if(e.statusCode>=300)return UB(e,t);let n=await L(e.body,t),r={};r=$b(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=jB;var UB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await rn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},BB=async(e,t)=>{if(e.statusCode>=300)return FB(e,t);let n=await L(e.body,t),r={};r=$b(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=BB;var FB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await rn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},GB=async(e,t)=>{if(e.statusCode>=300)return $B(e,t);let n=await L(e.body,t),r={};r=nK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ExecuteStatementCommand=GB;var $B=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":r=u(o({},await GF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await hi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await uo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},KB=async(e,t)=>{if(e.statusCode>=300)return VB(e,t);let n=await L(e.body,t),r={};r=rK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ExecuteTransactionCommand=KB;var VB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=u(o({},await Eb(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Bf(n,t)),{name:s,$metadata:y(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=u(o({},await xb(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},WB=async(e,t)=>{if(e.statusCode>=300)return HB(e,t);let n=await L(e.body,t),r={};r=cK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ExportTableToPointInTimeCommand=WB;var HB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":r=u(o({},await $F(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":r=u(o({},await HF(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=u(o({},await Ab(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Dr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},YB=async(e,t)=>{if(e.statusCode>=300)return JB(e,t);let n=await L(e.body,t),r={};r=uK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0GetItemCommand=YB;var JB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},QB=async(e,t)=>{if(e.statusCode>=300)return XB(e,t);let n=await L(e.body,t),r={};r=zK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListBackupsCommand=QB;var XB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},ZB=async(e,t)=>{if(e.statusCode>=300)return eF(e,t);let n=await L(e.body,t),r={};r=jK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListContributorInsightsCommand=ZB;var eF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},tF=async(e,t)=>{if(e.statusCode>=300)return nF(e,t);let n=await L(e.body,t),r={};r=UK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListExportsCommand=tF;var nF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},rF=async(e,t)=>{if(e.statusCode>=300)return sF(e,t);let n=await L(e.body,t),r={};r=BK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListGlobalTablesCommand=rF;var sF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},iF=async(e,t)=>{if(e.statusCode>=300)return aF(e,t);let n=await L(e.body,t),r={};r=FK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListTablesCommand=iF;var aF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},oF=async(e,t)=>{if(e.statusCode>=300)return cF(e,t);let n=await L(e.body,t),r={};r=GK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListTagsOfResourceCommand=oF;var cF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},lF=async(e,t)=>{if(e.statusCode>=300)return dF(e,t);let n=await L(e.body,t),r={};r=nV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0PutItemCommand=lF;var dF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await hi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await uo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},uF=async(e,t)=>{if(e.statusCode>=300)return mF(e,t);let n=await L(e.body,t),r={};r=sV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0QueryCommand=uF;var mF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},fF=async(e,t)=>{if(e.statusCode>=300)return pF(e,t);let n=await L(e.body,t),r={};r=EV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0RestoreTableFromBackupCommand=fF;var pF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await zf(n,t)),{name:s,$metadata:y(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await jf(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=u(o({},await Tb(n,t)),{name:s,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Uf(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},hF=async(e,t)=>{if(e.statusCode>=300)return yF(e,t);let n=await L(e.body,t),r={};r=AV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=hF;var yF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":r=u(o({},await YF(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=u(o({},await Ab(n,t)),{name:s,$metadata:y(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=u(o({},await Tb(n,t)),{name:s,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Uf(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Dr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},gF=async(e,t)=>{if(e.statusCode>=300)return _F(e,t);let n=await L(e.body,t),r={};r=CV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ScanCommand=gF;var _F=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},wF=async(e,t)=>{if(e.statusCode>=300)return bF(e,t);await Jf(e.body,t);let n={$metadata:y(e)};return Promise.resolve(n)};v.deserializeAws_json1_0TagResourceCommand=wF;var bF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await rn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},SF=async(e,t)=>{if(e.statusCode>=300)return vF(e,t);let n=await L(e.body,t),r={};r=MV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0TransactGetItemsCommand=SF;var vF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Bf(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},EF=async(e,t)=>{if(e.statusCode>=300)return AF(e,t);let n=await L(e.body,t),r={};r=UV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0TransactWriteItemsCommand=EF;var AF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=u(o({},await Eb(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Bf(n,t)),{name:s,$metadata:y(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=u(o({},await xb(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},CF=async(e,t)=>{if(e.statusCode>=300)return TF(e,t);await Jf(e.body,t);let n={$metadata:y(e)};return Promise.resolve(n)};v.deserializeAws_json1_0UntagResourceCommand=CF;var TF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await rn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},xF=async(e,t)=>{if(e.statusCode>=300)return IF(e,t);let n=await L(e.body,t),r={};r=BV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateContinuousBackupsCommand=xF;var IF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=u(o({},await vb(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Dr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},RF=async(e,t)=>{if(e.statusCode>=300)return kF(e,t);let n=await L(e.body,t),r={};r=FV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateContributorInsightsCommand=RF;var kF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},DF=async(e,t)=>{if(e.statusCode>=300)return NF(e,t);let n=await L(e.body,t),r={};r=GV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateGlobalTableCommand=DF;var NF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":r=u(o({},await JF(n,t)),{name:s,$metadata:y(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=u(o({},await Cb(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await Dr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},LF=async(e,t)=>{if(e.statusCode>=300)return PF(e,t);let n=await L(e.body,t),r={};r=$V(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=LF;var PF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":r=u(o({},await WF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=u(o({},await Cb(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await rn(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},qF=async(e,t)=>{if(e.statusCode>=300)return MF(e,t);let n=await L(e.body,t),r={};r=KV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateItemCommand=qF;var MF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await hi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await uo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},OF=async(e,t)=>{if(e.statusCode>=300)return zF(e,t);let n=await L(e.body,t),r={};r=VV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateTableCommand=OF;var zF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await rn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},jF=async(e,t)=>{if(e.statusCode>=300)return UF(e,t);let n=await L(e.body,t),r={};r=WV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=jF;var UF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await rn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},BF=async(e,t)=>{if(e.statusCode>=300)return FF(e,t);let n=await L(e.body,t),r={};r=HV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateTimeToLiveCommand=BF;var FF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await rn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},zf=async(e,t)=>{let n=e.body,r=p2(n,t);return o({name:"BackupInUseException",$fault:"client",$metadata:y(e)},r)},jf=async(e,t)=>{let n=e.body,r=h2(n,t);return o({name:"BackupNotFoundException",$fault:"client",$metadata:y(e)},r)},co=async(e,t)=>{let n=e.body,r=R2(n,t);return o({name:"ConditionalCheckFailedException",$fault:"client",$metadata:y(e)},r)},vb=async(e,t)=>{let n=e.body,r=k2(n,t);return o({name:"ContinuousBackupsUnavailableException",$fault:"client",$metadata:y(e)},r)},GF=async(e,t)=>{let n=e.body,r=Z2(n,t);return o({name:"DuplicateItemException",$fault:"client",$metadata:y(e)},r)},$F=async(e,t)=>{let n=e.body,r=sK(n,t);return o({name:"ExportConflictException",$fault:"client",$metadata:y(e)},r)},KF=async(e,t)=>{let n=e.body,r=iK(n,t);return o({name:"ExportNotFoundException",$fault:"client",$metadata:y(e)},r)},VF=async(e,t)=>{let n=e.body,r=gK(n,t);return o({name:"GlobalTableAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},lo=async(e,t)=>{let n=e.body,r=wK(n,t);return o({name:"GlobalTableNotFoundException",$fault:"client",$metadata:y(e)},r)},Eb=async(e,t)=>{let n=e.body,r=bK(n,t);return o({name:"IdempotentParameterMismatchException",$fault:"client",$metadata:y(e)},r)},WF=async(e,t)=>{let n=e.body,r=SK(n,t);return o({name:"IndexNotFoundException",$fault:"client",$metadata:y(e)},r)},ee=async(e,t)=>{let n=e.body,r=vK(n,t);return o({name:"InternalServerError",$fault:"server",$metadata:y(e)},r)},oe=async(e,t)=>{let n=e.body,r=EK(n,t);return o({name:"InvalidEndpointException",$fault:"client",$metadata:y(e)},r)},HF=async(e,t)=>{let n=e.body,r=AK(n,t);return o({name:"InvalidExportTimeException",$fault:"client",$metadata:y(e)},r)},YF=async(e,t)=>{let n=e.body,r=CK(n,t);return o({name:"InvalidRestoreTimeException",$fault:"client",$metadata:y(e)},r)},hi=async(e,t)=>{let n=e.body,r=RK(n,t);return o({name:"ItemCollectionSizeLimitExceededException",$fault:"client",$metadata:y(e)},r)},$e=async(e,t)=>{let n=e.body,r=MK(n,t);return o({name:"LimitExceededException",$fault:"client",$metadata:y(e)},r)},Ab=async(e,t)=>{let n=e.body,r=ZK(n,t);return o({name:"PointInTimeRecoveryUnavailableException",$fault:"client",$metadata:y(e)},r)},Ot=async(e,t)=>{let n=e.body,r=eV(n,t);return o({name:"ProvisionedThroughputExceededException",$fault:"client",$metadata:y(e)},r)},JF=async(e,t)=>{let n=e.body,r=aV(n,t);return o({name:"ReplicaAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},Cb=async(e,t)=>{let n=e.body,r=gV(n,t);return o({name:"ReplicaNotFoundException",$fault:"client",$metadata:y(e)},r)},Lt=async(e,t)=>{let n=e.body,r=wV(n,t);return o({name:"RequestLimitExceeded",$fault:"client",$metadata:y(e)},r)},rn=async(e,t)=>{let n=e.body,r=bV(n,t);return o({name:"ResourceInUseException",$fault:"client",$metadata:y(e)},r)},be=async(e,t)=>{let n=e.body,r=SV(n,t);return o({name:"ResourceNotFoundException",$fault:"client",$metadata:y(e)},r)},Tb=async(e,t)=>{let n=e.body,r=RV(n,t);return o({name:"TableAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},Uf=async(e,t)=>{let n=e.body,r=kV(n,t);return o({name:"TableInUseException",$fault:"client",$metadata:y(e)},r)},Dr=async(e,t)=>{let n=e.body,r=NV(n,t);return o({name:"TableNotFoundException",$fault:"client",$metadata:y(e)},r)},Bf=async(e,t)=>{let n=e.body,r=OV(n,t);return o({name:"TransactionCanceledException",$fault:"client",$metadata:y(e)},r)},uo=async(e,t)=>{let n=e.body,r=zV(n,t);return o({name:"TransactionConflictException",$fault:"client",$metadata:y(e)},r)},xb=async(e,t)=>{let n=e.body,r=jV(n,t);return o({name:"TransactionInProgressException",$fault:"client",$metadata:y(e)},r)},QF=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}),Ib=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:QF(n,t)),mo=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),XF=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ZF(s,t)}),{}),Rn=(e,t)=>Zj.AttributeValue.visit(e,{B:n=>({B:t.base64Encoder(n)}),BOOL:n=>({BOOL:n}),BS:n=>({BS:cG(n,t)}),L:n=>({L:ZG(n,t)}),M:n=>({M:o$(n,t)}),N:n=>({N:n}),NS:n=>({NS:l$(n,t)}),NULL:n=>({NULL:n}),S:n=>({S:n}),SS:n=>({SS:M$(n,t)}),_:(n,r)=>({name:r})}),Rb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),ZF=(e,t)=>o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.Value!==void 0&&e.Value!==null&&{Value:Rn(e.Value,t)}),eG=(e,t)=>o(o({},e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName}),e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:tG(e.TargetTrackingScalingPolicyConfiguration,t)}),er=(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:eG(e.ScalingPolicyUpdate,t)}),tG=(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:w.serializeFloat(e.TargetValue)}),nG=(e,t)=>o({},e.Statements!==void 0&&e.Statements!==null&&{Statements:m$(e.Statements,t)}),rG=(e,t)=>o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:sG(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),sG=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:QG(s,t)}),{}),iG=(e,t)=>o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Kf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),aG=(e,t)=>o(o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:oG(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),oG=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:a2(s,t)}),{}),cG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t.base64Encoder(n)),kb=(e,t)=>o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:Rb(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),lG=(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:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Ht(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),dG=(e,t)=>o(o({},e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),uG=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:fo(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Vf(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Nr(e.ProvisionedThroughput,t)}),mG=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:T$(e.ReplicationGroup,t)}),fG=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),pG=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Lb(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Wf(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),hG=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:Ib(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Gf(e.GlobalSecondaryIndexes,t)}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:fo(e.KeySchema,t)}),e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:$f(e.LocalSecondaryIndexes,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Nr(e.ProvisionedThroughput,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:po(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:Pb(e.StreamSpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.Tags!==void 0&&e.Tags!==null&&{Tags:qb(e.Tags,t)}),yG=(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:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Ht(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),gG=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),_G=(e,t)=>o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),wG=(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:Ff(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Ht(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}),bG=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),SG=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),vG=(e,t)=>o({},e.Key!==void 0&&e.Key!==null&&{Key:Ht(e.Key,t)}),EG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),AG=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),CG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),TG=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),xG=(e,t)=>({}),IG=(e,t)=>o({},e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}),RG=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),kG=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),DG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),NG=(e,t)=>({}),LG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),PG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),qG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),MG=(e,t)=>o(o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Kf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),OG=(e,t)=>{var n;return o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:Of.v4()},e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:u$(e.TransactStatements,t)})},Ff=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:zG(s,t)}),{}),zG=(e,t)=>o(o(o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:Rb(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:Rn(e.Value,t)}),jG=(e,t)=>{var n;return o(o(o(o(o(o(o(o({ClientToken:(n=e.ClientToken)!==null&&n!==void 0?n:Of.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})},zt=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:s}),{}),kn=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),Db=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:kb(s,t)}),{}),UG=(e,t)=>o(o(o(o({},e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Ht(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),BG=(e,t)=>o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:mo(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Ht(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}),FG=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:fo(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Vf(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Nr(e.ProvisionedThroughput,t)}),GG=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:er(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),$G=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:GG(n,t)),Gf=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:FG(n,t)),KG=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:uG(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:_G(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:Q$(e.Update,t)}),VG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:KG(n,t)),WG=(e,t)=>o(o(o({},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}),HG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:WG(n,t)),Ht=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),YG=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:kb(s,t)}),{}),JG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Ht(n,t)),QG=(e,t)=>o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:mo(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.Keys!==void 0&&e.Keys!==null&&{Keys:JG(e.Keys,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),fo=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:XG(n,t)),XG=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}),Nb=(e,t)=>o(o({},e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),ZG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),e$=(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)}),t$=(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}),n$=(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}),r$=(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}),s$=(e,t)=>o(o({},e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),i$=(e,t)=>o(o({},e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),a$=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:fo(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Vf(e.Projection,t)}),$f=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:a$(n,t)),o$=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),c$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),l$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),d$=(e,t)=>o(o({},e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Kf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),u$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:d$(n,t)),m$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:iG(n,t)),f$=(e,t)=>o({},e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}),Kf=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),Vf=(e,t)=>o(o({},e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:c$(e.NonKeyAttributes,t)}),e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}),Nr=(e,t)=>o(o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}),Wf=(e,t)=>o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),p$=(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:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Hf(e.Item,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),h$=(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:Ff(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Hf(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}),Hf=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),y$=(e,t)=>o({},e.Item!==void 0&&e.Item!==null&&{Item:Hf(e.Item,t)}),g$=(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:mo(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:Ht(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(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:YG(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:Db(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}),_$=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),w$=(e,t)=>o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:E$(e.ReplicaGlobalSecondaryIndexUpdates,t)}),e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:er(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}),b$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:w$(n,t)),S$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Wf(e.ProvisionedThroughputOverride,t)}),v$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:er(e.ProvisionedReadCapacityAutoScalingUpdate,t)}),E$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:v$(n,t)),Lb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:S$(n,t)),A$=(e,t)=>o(o(o({},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}),C$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:A$(n,t)),T$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:_$(n,t)),x$=(e,t)=>o(o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:C$(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}),I$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:x$(n,t)),R$=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:pG(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:SG(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:t2(e.Update,t)}),k$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:R$(n,t)),D$=(e,t)=>o(o({},e.Create!==void 0&&e.Create!==null&&{Create:fG(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:bG(e.Delete,t)}),N$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:D$(n,t)),L$=(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:Gf(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:$f(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Nr(e.ProvisionedThroughputOverride,t)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:po(e.SSESpecificationOverride,t)}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),P$=(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:Gf(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:$f(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Nr(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:po(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}),q$=(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:mo(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:Ht(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(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:Db(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}),po=(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}),Pb=(e,t)=>o(o({},e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled}),e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}),M$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),O$=(e,t)=>o(o({},e.Key!==void 0&&e.Key!==null&&{Key:e.Key}),e.Value!==void 0&&e.Value!==null&&{Value:e.Value}),z$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),qb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:O$(n,t)),j$=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.Tags!==void 0&&e.Tags!==null&&{Tags:qb(e.Tags,t)}),U$=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),B$=(e,t)=>o({},e.Get!==void 0&&e.Get!==null&&{Get:UG(e.Get,t)}),F$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:B$(n,t)),G$=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:F$(e.TransactItems,t)}),$$=(e,t)=>o(o(o(o({},e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:lG(e.ConditionCheck,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:yG(e.Delete,t)}),e.Put!==void 0&&e.Put!==null&&{Put:p$(e.Put,t)}),e.Update!==void 0&&e.Update!==null&&{Update:H$(e.Update,t)}),K$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:$$(n,t)),V$=(e,t)=>{var n;return o(o(o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:Of.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:K$(e.TransactItems,t)})},W$=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:z$(e.TagKeys,t)}),H$=(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:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Ht(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}),Y$=(e,t)=>o(o({},e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:f$(e.PointInTimeRecoverySpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),J$=(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}),Q$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Nr(e.ProvisionedThroughput,t)}),X$=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:N$(e.ReplicaUpdates,t)}),Z$=(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:HG(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:I$(e.ReplicaSettingsUpdate,t)}),e2=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:XF(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:Ff(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Ht(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}),t2=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Lb(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Wf(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),n2=(e,t)=>o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:Ib(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:VG(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Nr(e.ProvisionedThroughput,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:k$(e.ReplicaUpdates,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:po(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:Pb(e.StreamSpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),r2=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:$G(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:er(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:b$(e.ReplicaUpdates,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),s2=(e,t)=>o(o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:U$(e.TimeToLiveSpecification,t)}),i2=(e,t)=>o(o({},e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:vG(e.DeleteRequest,t)}),e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:y$(e.PutRequest,t)}),a2=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:i2(n,t)),o2=(e,t)=>({ArchivalBackupArn:w.expectString(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?new Date(Math.round(e.ArchivalDateTime*1e3)):void 0,ArchivalReason:w.expectString(e.ArchivalReason)}),c2=(e,t)=>({AttributeName:w.expectString(e.AttributeName),AttributeType:w.expectString(e.AttributeType)}),l2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:c2(n,t)),tr=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ms(s,t)}),{}),d2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),ms=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:w.expectBoolean(e.BOOL)!==void 0?{BOOL:w.expectBoolean(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:T2(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:OK(e.L,t)}:e.M!==void 0&&e.M!==null?{M:HK(e.M,t)}:w.expectString(e.N)!==void 0?{N:w.expectString(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:JK(e.NS,t)}:w.expectBoolean(e.NULL)!==void 0?{NULL:w.expectBoolean(e.NULL)}:w.expectString(e.S)!==void 0?{S:w.expectString(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:IV(e.SS,t)}:{$unknown:Object.entries(e)[0]},u2=(e,t)=>({PolicyName:w.expectString(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?f2(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),m2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:u2(n,t)),nr=(e,t)=>({AutoScalingDisabled:w.expectBoolean(e.AutoScalingDisabled),AutoScalingRoleArn:w.expectString(e.AutoScalingRoleArn),MaximumUnits:w.expectNumber(e.MaximumUnits),MinimumUnits:w.expectNumber(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?m2(e.ScalingPolicies,t):void 0}),f2=(e,t)=>({DisableScaleIn:w.expectBoolean(e.DisableScaleIn),ScaleInCooldown:w.expectNumber(e.ScaleInCooldown),ScaleOutCooldown:w.expectNumber(e.ScaleOutCooldown),TargetValue:w.handleFloat(e.TargetValue)}),Mb=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?Ob(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?TV(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?xV(e.SourceTableFeatureDetails,t):void 0}),Ob=(e,t)=>({BackupArn:w.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?new Date(Math.round(e.BackupCreationDateTime*1e3)):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?new Date(Math.round(e.BackupExpiryDateTime*1e3)):void 0,BackupName:w.expectString(e.BackupName),BackupSizeBytes:w.expectNumber(e.BackupSizeBytes),BackupStatus:w.expectString(e.BackupStatus),BackupType:w.expectString(e.BackupType)}),p2=(e,t)=>({message:w.expectString(e.message)}),h2=(e,t)=>({message:w.expectString(e.message)}),y2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:g2(n,t)),g2=(e,t)=>({BackupArn:w.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?new Date(Math.round(e.BackupCreationDateTime*1e3)):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?new Date(Math.round(e.BackupExpiryDateTime*1e3)):void 0,BackupName:w.expectString(e.BackupName),BackupSizeBytes:w.expectNumber(e.BackupSizeBytes),BackupStatus:w.expectString(e.BackupStatus),BackupType:w.expectString(e.BackupType),TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName)}),_2=(e,t)=>({Responses:e.Responses!==void 0&&e.Responses!==null?QK(e.Responses,t):void 0}),w2=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?ho(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?S2(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?b2(e.UnprocessedKeys,t):void 0}),b2=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:NK(s,t)}),{}),S2=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:go(s,t)}),{}),v2=(e,t)=>({Code:w.expectString(e.Code),Message:w.expectString(e.Message)}),E2=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?v2(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?tr(e.Item,t):void 0,TableName:w.expectString(e.TableName)}),A2=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?ho(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Fb(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?C2(e.UnprocessedItems,t):void 0}),C2=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:JV(s,t)}),{}),zb=(e,t)=>({BillingMode:w.expectString(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?new Date(Math.round(e.LastUpdateToPayPerRequestDateTime*1e3)):void 0}),T2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),x2=(e,t)=>({Code:w.expectString(e.Code),Item:e.Item!==void 0&&e.Item!==null?tr(e.Item,t):void 0,Message:w.expectString(e.Message)}),I2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:x2(n,t)),jb=(e,t)=>({CapacityUnits:w.handleFloat(e.CapacityUnits),ReadCapacityUnits:w.handleFloat(e.ReadCapacityUnits),WriteCapacityUnits:w.handleFloat(e.WriteCapacityUnits)}),R2=(e,t)=>({message:w.expectString(e.message)}),Lr=(e,t)=>({CapacityUnits:w.handleFloat(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?Jb(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?Jb(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:w.handleFloat(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?jb(e.Table,t):void 0,TableName:w.expectString(e.TableName),WriteCapacityUnits:w.handleFloat(e.WriteCapacityUnits)}),ho=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Lr(n,t)),Ub=(e,t)=>({ContinuousBackupsStatus:w.expectString(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?XK(e.PointInTimeRecoveryDescription,t):void 0}),k2=(e,t)=>({message:w.expectString(e.message)}),D2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),N2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:L2(n,t)),L2=(e,t)=>({ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),IndexName:w.expectString(e.IndexName),TableName:w.expectString(e.TableName)}),P2=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?Ob(e.BackupDetails,t):void 0}),q2=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Yf(e.GlobalTableDescription,t):void 0}),M2=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?ps(e.TableDescription,t):void 0}),O2=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?Mb(e.BackupDescription,t):void 0}),z2=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?tr(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?yo(e.ItemCollectionMetrics,t):void 0}),j2=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?_o(e.Key,t):void 0}),U2=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?ps(e.TableDescription,t):void 0}),B2=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?Mb(e.BackupDescription,t):void 0}),F2=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?Ub(e.ContinuousBackupsDescription,t):void 0}),G2=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?D2(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?dK(e.FailureException,t):void 0,IndexName:w.expectString(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?new Date(Math.round(e.LastUpdateDateTime*1e3)):void 0,TableName:w.expectString(e.TableName)}),$2=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?tK(e.Endpoints,t):void 0}),K2=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?Bb(e.ExportDescription,t):void 0}),V2=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Yf(e.GlobalTableDescription,t):void 0}),W2=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?Yb(e.ReplicaSettings,t):void 0}),H2=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?qK(e.KinesisDataStreamDestinations,t):void 0,TableName:w.expectString(e.TableName)}),Y2=(e,t)=>({AccountMaxReadCapacityUnits:w.expectNumber(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:w.expectNumber(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:w.expectNumber(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:w.expectNumber(e.TableMaxWriteCapacityUnits)}),J2=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?ps(e.Table,t):void 0}),Q2=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?Zb(e.TableAutoScalingDescription,t):void 0}),X2=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?eS(e.TimeToLiveDescription,t):void 0}),Z2=(e,t)=>({message:w.expectString(e.message)}),eK=(e,t)=>({Address:w.expectString(e.Address),CachePeriodInMinutes:w.expectNumber(e.CachePeriodInMinutes)}),tK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:eK(n,t)),nK=(e,t)=>({Items:e.Items!==void 0&&e.Items!==null?go(e.Items,t):void 0,NextToken:w.expectString(e.NextToken)}),rK=(e,t)=>({Responses:e.Responses!==void 0&&e.Responses!==null?Gb(e.Responses,t):void 0}),sK=(e,t)=>({message:w.expectString(e.message)}),Bb=(e,t)=>({BilledSizeBytes:w.expectNumber(e.BilledSizeBytes),ClientToken:w.expectString(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?new Date(Math.round(e.EndTime*1e3)):void 0,ExportArn:w.expectString(e.ExportArn),ExportFormat:w.expectString(e.ExportFormat),ExportManifest:w.expectString(e.ExportManifest),ExportStatus:w.expectString(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?new Date(Math.round(e.ExportTime*1e3)):void 0,FailureCode:w.expectString(e.FailureCode),FailureMessage:w.expectString(e.FailureMessage),ItemCount:w.expectNumber(e.ItemCount),S3Bucket:w.expectString(e.S3Bucket),S3BucketOwner:w.expectString(e.S3BucketOwner),S3Prefix:w.expectString(e.S3Prefix),S3SseAlgorithm:w.expectString(e.S3SseAlgorithm),S3SseKmsKeyId:w.expectString(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?new Date(Math.round(e.StartTime*1e3)):void 0,TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId)}),iK=(e,t)=>({message:w.expectString(e.message)}),aK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:oK(n,t)),oK=(e,t)=>({ExportArn:w.expectString(e.ExportArn),ExportStatus:w.expectString(e.ExportStatus)}),cK=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?Bb(e.ExportDescription,t):void 0}),lK=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:w.expectString(s)}),{}),dK=(e,t)=>({ExceptionDescription:w.expectString(e.ExceptionDescription),ExceptionName:w.expectString(e.ExceptionName)}),uK=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?tr(e.Item,t):void 0}),mK=(e,t)=>({Backfilling:w.expectBoolean(e.Backfilling),IndexArn:w.expectString(e.IndexArn),IndexName:w.expectString(e.IndexName),IndexSizeBytes:w.expectNumber(e.IndexSizeBytes),IndexStatus:w.expectString(e.IndexStatus),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?wo(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Vb(e.ProvisionedThroughput,t):void 0}),fK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:mK(n,t)),pK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:hK(n,t)),hK=(e,t)=>({IndexName:w.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?wo(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Kb(e.ProvisionedThroughput,t):void 0}),yK=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?yV(e.ReplicationGroup,t):void 0}),gK=(e,t)=>({message:w.expectString(e.message)}),Yf=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?new Date(Math.round(e.CreationDateTime*1e3)):void 0,GlobalTableArn:w.expectString(e.GlobalTableArn),GlobalTableName:w.expectString(e.GlobalTableName),GlobalTableStatus:w.expectString(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?Hb(e.ReplicationGroup,t):void 0}),_K=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:yK(n,t)),wK=(e,t)=>({message:w.expectString(e.message)}),bK=(e,t)=>({Message:w.expectString(e.Message)}),SK=(e,t)=>({message:w.expectString(e.message)}),vK=(e,t)=>({message:w.expectString(e.message)}),EK=(e,t)=>({Message:w.expectString(e.Message)}),AK=(e,t)=>({message:w.expectString(e.message)}),CK=(e,t)=>({message:w.expectString(e.message)}),TK=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ms(s,t)}),{}),yo=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?TK(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?IK(e.SizeEstimateRangeGB,t):void 0}),xK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:yo(n,t)),Fb=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:xK(s,t)}),{}),IK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.handleFloat(n)),RK=(e,t)=>({message:w.expectString(e.message)}),go=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:tr(n,t)),kK=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?tr(e.Item,t):void 0}),Gb=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:kK(n,t)),_o=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ms(s,t)}),{}),DK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:_o(n,t)),NK=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?d2(e.AttributesToGet,t):void 0,ConsistentRead:w.expectBoolean(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?lK(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?DK(e.Keys,t):void 0,ProjectionExpression:w.expectString(e.ProjectionExpression)}),fs=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:LK(n,t)),LK=(e,t)=>({AttributeName:w.expectString(e.AttributeName),KeyType:w.expectString(e.KeyType)}),PK=(e,t)=>({DestinationStatus:w.expectString(e.DestinationStatus),DestinationStatusDescription:w.expectString(e.DestinationStatusDescription),StreamArn:w.expectString(e.StreamArn)}),qK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:PK(n,t)),$b=(e,t)=>({DestinationStatus:w.expectString(e.DestinationStatus),StreamArn:w.expectString(e.StreamArn),TableName:w.expectString(e.TableName)}),MK=(e,t)=>({message:w.expectString(e.message)}),OK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ms(n,t)),zK=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?y2(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:w.expectString(e.LastEvaluatedBackupArn)}),jK=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?N2(e.ContributorInsightsSummaries,t):void 0,NextToken:w.expectString(e.NextToken)}),UK=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?aK(e.ExportSummaries,t):void 0,NextToken:w.expectString(e.NextToken)}),BK=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?_K(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:w.expectString(e.LastEvaluatedGlobalTableName)}),FK=(e,t)=>({LastEvaluatedTableName:w.expectString(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?DV(e.TableNames,t):void 0}),GK=(e,t)=>({NextToken:w.expectString(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?PV(e.Tags,t):void 0}),$K=(e,t)=>({IndexArn:w.expectString(e.IndexArn),IndexName:w.expectString(e.IndexName),IndexSizeBytes:w.expectNumber(e.IndexSizeBytes),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?wo(e.Projection,t):void 0}),KK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:$K(n,t)),VK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:WK(n,t)),WK=(e,t)=>({IndexName:w.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?wo(e.Projection,t):void 0}),HK=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ms(s,t)}),{}),YK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),JK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),QK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:E2(n,t)),XK=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?new Date(Math.round(e.EarliestRestorableDateTime*1e3)):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?new Date(Math.round(e.LatestRestorableDateTime*1e3)):void 0,PointInTimeRecoveryStatus:w.expectString(e.PointInTimeRecoveryStatus)}),ZK=(e,t)=>({message:w.expectString(e.message)}),wo=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?YK(e.NonKeyAttributes,t):void 0,ProjectionType:w.expectString(e.ProjectionType)}),Kb=(e,t)=>({ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits),WriteCapacityUnits:w.expectNumber(e.WriteCapacityUnits)}),Vb=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?new Date(Math.round(e.LastDecreaseDateTime*1e3)):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?new Date(Math.round(e.LastIncreaseDateTime*1e3)):void 0,NumberOfDecreasesToday:w.expectNumber(e.NumberOfDecreasesToday),ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits),WriteCapacityUnits:w.expectNumber(e.WriteCapacityUnits)}),eV=(e,t)=>({message:w.expectString(e.message)}),Wb=(e,t)=>({ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits)}),tV=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ms(s,t)}),{}),nV=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?tr(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?yo(e.ItemCollectionMetrics,t):void 0}),rV=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?tV(e.Item,t):void 0}),sV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Count:w.expectNumber(e.Count),Items:e.Items!==void 0&&e.Items!==null?go(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?_o(e.LastEvaluatedKey,t):void 0,ScannedCount:w.expectNumber(e.ScannedCount)}),iV=(e,t)=>({RegionName:w.expectString(e.RegionName)}),aV=(e,t)=>({message:w.expectString(e.message)}),oV=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?uV(e.GlobalSecondaryIndexes,t):void 0,RegionName:w.expectString(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?nr(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?nr(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:w.expectString(e.ReplicaStatus)}),cV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:oV(n,t)),lV=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?fV(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:w.expectString(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?Wb(e.ProvisionedThroughputOverride,t):void 0,RegionName:w.expectString(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?new Date(Math.round(e.ReplicaInaccessibleDateTime*1e3)):void 0,ReplicaStatus:w.expectString(e.ReplicaStatus),ReplicaStatusDescription:w.expectString(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:w.expectString(e.ReplicaStatusPercentProgress)}),Hb=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:lV(n,t)),dV=(e,t)=>({IndexName:w.expectString(e.IndexName),IndexStatus:w.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?nr(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?nr(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),uV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:dV(n,t)),mV=(e,t)=>({IndexName:w.expectString(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?Wb(e.ProvisionedThroughputOverride,t):void 0}),fV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:mV(n,t)),pV=(e,t)=>({IndexName:w.expectString(e.IndexName),IndexStatus:w.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?nr(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:w.expectNumber(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?nr(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:w.expectNumber(e.ProvisionedWriteCapacityUnits)}),hV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:pV(n,t)),yV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:iV(n,t)),gV=(e,t)=>({message:w.expectString(e.message)}),_V=(e,t)=>({RegionName:w.expectString(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?zb(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?hV(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?nr(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:w.expectNumber(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?nr(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:w.expectNumber(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:w.expectString(e.ReplicaStatus)}),Yb=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:_V(n,t)),wV=(e,t)=>({message:w.expectString(e.message)}),bV=(e,t)=>({message:w.expectString(e.message)}),SV=(e,t)=>({message:w.expectString(e.message)}),vV=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?new Date(Math.round(e.RestoreDateTime*1e3)):void 0,RestoreInProgress:w.expectBoolean(e.RestoreInProgress),SourceBackupArn:w.expectString(e.SourceBackupArn),SourceTableArn:w.expectString(e.SourceTableArn)}),EV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?ps(e.TableDescription,t):void 0}),AV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?ps(e.TableDescription,t):void 0}),CV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Count:w.expectNumber(e.Count),Items:e.Items!==void 0&&e.Items!==null?go(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?_o(e.LastEvaluatedKey,t):void 0,ScannedCount:w.expectNumber(e.ScannedCount)}),Jb=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:jb(s,t)}),{}),TV=(e,t)=>({BillingMode:w.expectString(e.BillingMode),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Kb(e.ProvisionedThroughput,t):void 0,TableArn:w.expectString(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?new Date(Math.round(e.TableCreationDateTime*1e3)):void 0,TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName),TableSizeBytes:w.expectNumber(e.TableSizeBytes)}),xV=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?pK(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?VK(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?Qb(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?Xb(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?eS(e.TimeToLiveDescription,t):void 0}),Qb=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?new Date(Math.round(e.InaccessibleEncryptionDateTime*1e3)):void 0,KMSMasterKeyArn:w.expectString(e.KMSMasterKeyArn),SSEType:w.expectString(e.SSEType),Status:w.expectString(e.Status)}),Xb=(e,t)=>({StreamEnabled:w.expectBoolean(e.StreamEnabled),StreamViewType:w.expectString(e.StreamViewType)}),IV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),RV=(e,t)=>({message:w.expectString(e.message)}),Zb=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?cV(e.Replicas,t):void 0,TableName:w.expectString(e.TableName),TableStatus:w.expectString(e.TableStatus)}),ps=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?o2(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?l2(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?zb(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?new Date(Math.round(e.CreationDateTime*1e3)):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?fK(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:w.expectString(e.GlobalTableVersion),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,LatestStreamArn:w.expectString(e.LatestStreamArn),LatestStreamLabel:w.expectString(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?KK(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Vb(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?Hb(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?vV(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?Qb(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?Xb(e.StreamSpecification,t):void 0,TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName),TableSizeBytes:w.expectNumber(e.TableSizeBytes),TableStatus:w.expectString(e.TableStatus)}),kV=(e,t)=>({message:w.expectString(e.message)}),DV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),NV=(e,t)=>({message:w.expectString(e.message)}),LV=(e,t)=>({Key:w.expectString(e.Key),Value:w.expectString(e.Value)}),PV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:LV(n,t)),eS=(e,t)=>({AttributeName:w.expectString(e.AttributeName),TimeToLiveStatus:w.expectString(e.TimeToLiveStatus)}),qV=(e,t)=>({AttributeName:w.expectString(e.AttributeName),Enabled:w.expectBoolean(e.Enabled)}),MV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?ho(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?Gb(e.Responses,t):void 0}),OV=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?I2(e.CancellationReasons,t):void 0,Message:w.expectString(e.Message)}),zV=(e,t)=>({message:w.expectString(e.message)}),jV=(e,t)=>({Message:w.expectString(e.Message)}),UV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?ho(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Fb(e.ItemCollectionMetrics,t):void 0}),BV=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?Ub(e.ContinuousBackupsDescription,t):void 0}),FV=(e,t)=>({ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),IndexName:w.expectString(e.IndexName),TableName:w.expectString(e.TableName)}),GV=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Yf(e.GlobalTableDescription,t):void 0}),$V=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?Yb(e.ReplicaSettings,t):void 0}),KV=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?tr(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?yo(e.ItemCollectionMetrics,t):void 0}),VV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?ps(e.TableDescription,t):void 0}),WV=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?Zb(e.TableAutoScalingDescription,t):void 0}),HV=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?qV(e.TimeToLiveSpecification,t):void 0}),YV=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?j2(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?rV(e.PutRequest,t):void 0}),JV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:YV(n,t)),y=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"]}},Jf=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),QV=(e,t)=>Jf(e,t).then(n=>t.utf8Encoder(n)),X=async(e,t,n,r,s)=>{let{hostname:i,protocol:a="https",port:c}=await e.endpoint(),l={protocol:a,hostname:i,port:c,method:"POST",path:n,headers:t};return r!==void 0&&(l.hostname=r),s!==void 0&&(l.body=s),new eU.HttpRequest(l)},L=(e,t)=>QV(e,t).then(n=>n.length?JSON.parse(n):{}),Z=(e,t)=>{let n=(i,a)=>Object.keys(i).find(c=>c.toLowerCase()===a.toLowerCase()),r=i=>{let a=i;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},s=n(e.headers,"x-amzn-errortype");return s!==void 0?r(e.headers[s]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var Qf=p(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.deserializerMiddleware=void 0;var XV=(e,t)=>(n,r)=>async s=>{let{response:i}=await n(s),a=await t(i,e);return{response:i,output:a}};bo.deserializerMiddleware=XV});var Xf=p(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.serializerMiddleware=void 0;var ZV=(e,t)=>(n,r)=>async s=>{let i=await t(s.input,e);return n(u(o({},s),{request:i}))};So.serializerMiddleware=ZV});var tS=p(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.getSerdePlugin=sn.serializerMiddlewareOption=sn.deserializerMiddlewareOption=void 0;var eW=Qf(),tW=Xf();sn.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};sn.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function nW(e,t,n){return{applyToStack:r=>{r.add(eW.deserializerMiddleware(e,n),sn.deserializerMiddlewareOption),r.add(tW.serializerMiddleware(e,t),sn.serializerMiddlewareOption)}}}sn.getSerdePlugin=nW});var j=p(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var Zf=ue();Zf.__exportStar(Qf(),yi);Zf.__exportStar(Xf(),yi);Zf.__exportStar(tS(),yi)});var Eo=p(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.DescribeEndpointsCommand=void 0;var nS=W(),rS=H(),rW=j(),sW=M(),sS=class extends sW.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(rW.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:nS.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:nS.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return rS.serializeAws_json1_0DescribeEndpointsCommand(t,n)}deserialize(t,n){return rS.deserializeAws_json1_0DescribeEndpointsCommand(t,n)}};vo.DescribeEndpointsCommand=sS});var iS=p((gde,iW)=>{iW.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/client-sts":"3.21.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/credential-provider-node":"3.21.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-endpoint-discovery":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-signing":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0","@aws-sdk/util-waiter":"3.20.0",tslib:"^2.0.0",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","@types/uuid":"^8.3.0","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",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 aS=p((_de,aW)=>{aW.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/credential-provider-node":"3.21.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-sdk-sts":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-signing":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.0.0"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",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 an=p(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.GetSessionTokenResponse=q.GetSessionTokenRequest=q.GetFederationTokenResponse=q.FederatedUser=q.GetFederationTokenRequest=q.GetCallerIdentityResponse=q.GetCallerIdentityRequest=q.GetAccessKeyInfoResponse=q.GetAccessKeyInfoRequest=q.InvalidAuthorizationMessageException=q.DecodeAuthorizationMessageResponse=q.DecodeAuthorizationMessageRequest=q.IDPCommunicationErrorException=q.AssumeRoleWithWebIdentityResponse=q.AssumeRoleWithWebIdentityRequest=q.InvalidIdentityTokenException=q.IDPRejectedClaimException=q.AssumeRoleWithSAMLResponse=q.AssumeRoleWithSAMLRequest=q.RegionDisabledException=q.PackedPolicyTooLargeException=q.MalformedPolicyDocumentException=q.ExpiredTokenException=q.AssumeRoleResponse=q.Credentials=q.AssumeRoleRequest=q.Tag=q.PolicyDescriptorType=q.AssumedRoleUser=void 0;var oW;(function(e){e.filterSensitiveLog=t=>o({},t)})(oW=q.AssumedRoleUser||(q.AssumedRoleUser={}));var cW;(function(e){e.filterSensitiveLog=t=>o({},t)})(cW=q.PolicyDescriptorType||(q.PolicyDescriptorType={}));var lW;(function(e){e.filterSensitiveLog=t=>o({},t)})(lW=q.Tag||(q.Tag={}));var dW;(function(e){e.filterSensitiveLog=t=>o({},t)})(dW=q.AssumeRoleRequest||(q.AssumeRoleRequest={}));var uW;(function(e){e.filterSensitiveLog=t=>o({},t)})(uW=q.Credentials||(q.Credentials={}));var mW;(function(e){e.filterSensitiveLog=t=>o({},t)})(mW=q.AssumeRoleResponse||(q.AssumeRoleResponse={}));var fW;(function(e){e.filterSensitiveLog=t=>o({},t)})(fW=q.ExpiredTokenException||(q.ExpiredTokenException={}));var pW;(function(e){e.filterSensitiveLog=t=>o({},t)})(pW=q.MalformedPolicyDocumentException||(q.MalformedPolicyDocumentException={}));var hW;(function(e){e.filterSensitiveLog=t=>o({},t)})(hW=q.PackedPolicyTooLargeException||(q.PackedPolicyTooLargeException={}));var yW;(function(e){e.filterSensitiveLog=t=>o({},t)})(yW=q.RegionDisabledException||(q.RegionDisabledException={}));var gW;(function(e){e.filterSensitiveLog=t=>o({},t)})(gW=q.AssumeRoleWithSAMLRequest||(q.AssumeRoleWithSAMLRequest={}));var _W;(function(e){e.filterSensitiveLog=t=>o({},t)})(_W=q.AssumeRoleWithSAMLResponse||(q.AssumeRoleWithSAMLResponse={}));var wW;(function(e){e.filterSensitiveLog=t=>o({},t)})(wW=q.IDPRejectedClaimException||(q.IDPRejectedClaimException={}));var bW;(function(e){e.filterSensitiveLog=t=>o({},t)})(bW=q.InvalidIdentityTokenException||(q.InvalidIdentityTokenException={}));var SW;(function(e){e.filterSensitiveLog=t=>o({},t)})(SW=q.AssumeRoleWithWebIdentityRequest||(q.AssumeRoleWithWebIdentityRequest={}));var vW;(function(e){e.filterSensitiveLog=t=>o({},t)})(vW=q.AssumeRoleWithWebIdentityResponse||(q.AssumeRoleWithWebIdentityResponse={}));var EW;(function(e){e.filterSensitiveLog=t=>o({},t)})(EW=q.IDPCommunicationErrorException||(q.IDPCommunicationErrorException={}));var AW;(function(e){e.filterSensitiveLog=t=>o({},t)})(AW=q.DecodeAuthorizationMessageRequest||(q.DecodeAuthorizationMessageRequest={}));var CW;(function(e){e.filterSensitiveLog=t=>o({},t)})(CW=q.DecodeAuthorizationMessageResponse||(q.DecodeAuthorizationMessageResponse={}));var TW;(function(e){e.filterSensitiveLog=t=>o({},t)})(TW=q.InvalidAuthorizationMessageException||(q.InvalidAuthorizationMessageException={}));var xW;(function(e){e.filterSensitiveLog=t=>o({},t)})(xW=q.GetAccessKeyInfoRequest||(q.GetAccessKeyInfoRequest={}));var IW;(function(e){e.filterSensitiveLog=t=>o({},t)})(IW=q.GetAccessKeyInfoResponse||(q.GetAccessKeyInfoResponse={}));var RW;(function(e){e.filterSensitiveLog=t=>o({},t)})(RW=q.GetCallerIdentityRequest||(q.GetCallerIdentityRequest={}));var kW;(function(e){e.filterSensitiveLog=t=>o({},t)})(kW=q.GetCallerIdentityResponse||(q.GetCallerIdentityResponse={}));var DW;(function(e){e.filterSensitiveLog=t=>o({},t)})(DW=q.GetFederationTokenRequest||(q.GetFederationTokenRequest={}));var NW;(function(e){e.filterSensitiveLog=t=>o({},t)})(NW=q.FederatedUser||(q.FederatedUser={}));var LW;(function(e){e.filterSensitiveLog=t=>o({},t)})(LW=q.GetFederationTokenResponse||(q.GetFederationTokenResponse={}));var PW;(function(e){e.filterSensitiveLog=t=>o({},t)})(PW=q.GetSessionTokenRequest||(q.GetSessionTokenRequest={}));var qW;(function(e){e.filterSensitiveLog=t=>o({},t)})(qW=q.GetSessionTokenResponse||(q.GetSessionTokenResponse={}))});var ep=p((bde,MW)=>{MW.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:`
5
+ `,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 oS=p((Sde,OW)=>{OW.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 tp=p((vde,zW)=>{zW.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var cS=p((Ede,jW)=>{jW.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 dS=p(gi=>{"use strict";var UW=gi&&gi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gi,"__esModule",{value:!0});var lS=UW(cS()),BW=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 FW(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in lS.default&&(e=lS.default[e]),BW(e))}gi.default=FW});var rp=p(on=>{"use strict";var Ao=on&&on.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(on,"__esModule",{value:!0});on.decodeHTML=on.decodeHTMLStrict=on.decodeXML=void 0;var np=Ao(ep()),GW=Ao(oS()),$W=Ao(tp()),uS=Ao(dS()),KW=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;on.decodeXML=mS($W.default);on.decodeHTMLStrict=mS(np.default);function mS(e){var t=pS(e);return function(n){return String(n).replace(KW,t)}}var fS=function(e,t){return e<t?1:-1};on.decodeHTML=function(){for(var e=Object.keys(GW.default).sort(fS),t=Object.keys(np.default).sort(fS),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),i=pS(np.default);function a(c){return c.substr(-1)!==";"&&(c+=";"),i(c)}return function(c){return String(c).replace(s,a)}}();function pS(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?uS.default(parseInt(n.substr(3),16)):uS.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}});var ip=p(gt=>{"use strict";var hS=gt&&gt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gt,"__esModule",{value:!0});gt.escapeUTF8=gt.escape=gt.encodeNonAsciiHTML=gt.encodeHTML=gt.encodeXML=void 0;var VW=hS(tp()),yS=_S(VW.default),gS=wS(yS);gt.encodeXML=vS(yS);var WW=hS(ep()),sp=_S(WW.default),HW=wS(sp);gt.encodeHTML=JW(sp,HW);gt.encodeNonAsciiHTML=vS(sp);function _S(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function wS(e){for(var t=[],n=[],r=0,s=Object.keys(e);r<s.length;r++){var i=s[r];i.length===1?t.push("\\"+i):n.push(i)}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 n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var bS=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,YW=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Co(e){return"&#x"+(e.length>1?YW(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function JW(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(bS,Co)}}var SS=new RegExp(gS.source+"|"+bS.source,"g");function QW(e){return e.replace(SS,Co)}gt.escape=QW;function XW(e){return e.replace(gS,Co)}gt.escapeUTF8=XW;function vS(e){return function(t){return t.replace(SS,function(n){return e[n]||Co(n)})}}});var AS=p(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.decodeXMLStrict=ce.decodeHTML5Strict=ce.decodeHTML4Strict=ce.decodeHTML5=ce.decodeHTML4=ce.decodeHTMLStrict=ce.decodeHTML=ce.decodeXML=ce.encodeHTML5=ce.encodeHTML4=ce.escapeUTF8=ce.escape=ce.encodeNonAsciiHTML=ce.encodeHTML=ce.encodeXML=ce.encode=ce.decodeStrict=ce.decode=void 0;var To=rp(),ES=ip();function ZW(e,t){return(!t||t<=0?To.decodeXML:To.decodeHTML)(e)}ce.decode=ZW;function eH(e,t){return(!t||t<=0?To.decodeXML:To.decodeHTMLStrict)(e)}ce.decodeStrict=eH;function tH(e,t){return(!t||t<=0?ES.encodeXML:ES.encodeHTML)(e)}ce.encode=tH;var Pr=ip();Object.defineProperty(ce,"encodeXML",{enumerable:!0,get:function(){return Pr.encodeXML}});Object.defineProperty(ce,"encodeHTML",{enumerable:!0,get:function(){return Pr.encodeHTML}});Object.defineProperty(ce,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return Pr.encodeNonAsciiHTML}});Object.defineProperty(ce,"escape",{enumerable:!0,get:function(){return Pr.escape}});Object.defineProperty(ce,"escapeUTF8",{enumerable:!0,get:function(){return Pr.escapeUTF8}});Object.defineProperty(ce,"encodeHTML4",{enumerable:!0,get:function(){return Pr.encodeHTML}});Object.defineProperty(ce,"encodeHTML5",{enumerable:!0,get:function(){return Pr.encodeHTML}});var rr=rp();Object.defineProperty(ce,"decodeXML",{enumerable:!0,get:function(){return rr.decodeXML}});Object.defineProperty(ce,"decodeHTML",{enumerable:!0,get:function(){return rr.decodeHTML}});Object.defineProperty(ce,"decodeHTMLStrict",{enumerable:!0,get:function(){return rr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeHTML4",{enumerable:!0,get:function(){return rr.decodeHTML}});Object.defineProperty(ce,"decodeHTML5",{enumerable:!0,get:function(){return rr.decodeHTML}});Object.defineProperty(ce,"decodeHTML4Strict",{enumerable:!0,get:function(){return rr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeHTML5Strict",{enumerable:!0,get:function(){return rr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeXMLStrict",{enumerable:!0,get:function(){return rr.decodeXML}})});var cn=p(Yt=>{"use strict";var CS=":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",nH=CS+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",TS="["+CS+"]["+nH+"]*",rH=new RegExp("^"+TS+"$"),sH=function(e,t){let n=[],r=t.exec(e);for(;r;){let s=[],i=r.length;for(let a=0;a<i;a++)s.push(r[a]);n.push(s),r=t.exec(e)}return n},iH=function(e){let t=rH.exec(e);return!(t===null||typeof t=="undefined")};Yt.isExist=function(e){return typeof e!="undefined"};Yt.isEmptyObject=function(e){return Object.keys(e).length===0};Yt.merge=function(e,t,n){if(t){let r=Object.keys(t),s=r.length;for(let i=0;i<s;i++)n==="strict"?e[r[i]]=[t[r[i]]]:e[r[i]]=t[r[i]]}};Yt.getValue=function(e){return Yt.isExist(e)?e:""};Yt.buildOptions=function(e,t,n){var r={};if(!e)return t;for(let s=0;s<n.length;s++)e[n[s]]!==void 0?r[n[s]]=e[n[s]]:r[n[s]]=t[n[s]];return r};Yt.isTagNameInArrayMode=function(e,t,n){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,n):t==="strict"};Yt.isName=iH;Yt.getAllMatches=sH;Yt.nameRegexp=TS});var IS=p(xS=>{"use strict";var qr=cn(),ap=function(e,t,n){let r={};if((!e.child||qr.isEmptyObject(e.child))&&(!e.attrsMap||qr.isEmptyObject(e.attrsMap)))return qr.isExist(e.val)?e.val:"";if(qr.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let i=qr.isTagNameInArrayMode(e.tagname,t.arrayMode,n);r[t.textNodeName]=i?[e.val]:e.val}qr.merge(r,e.attrsMap,t.arrayMode);let s=Object.keys(e.child);for(let i=0;i<s.length;i++){let a=s[i];if(e.child[a]&&e.child[a].length>1){r[a]=[];for(let c in e.child[a])e.child[a].hasOwnProperty(c)&&r[a].push(ap(e.child[a][c],t,a))}else{let c=ap(e.child[a][0],t,a),l=t.arrayMode===!0&&typeof c=="object"||qr.isTagNameInArrayMode(a,t.arrayMode,n);r[a]=l?[c]:c}}return r};xS.convertToJson=ap});var kS=p((kde,RS)=>{"use strict";RS.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 wi=p(Ro=>{"use strict";var Mr=cn(),aH=cn().buildOptions,xo=kS(),Dde="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,Mr.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var DS={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:[]};Ro.defaultOptions=DS;var NS=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];Ro.props=NS;function Io(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=n.tagValueProcessor(t,e),t=LS(t,n.parseNodeValue,n.parseTrueNumberOnly)),t}function oH(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 LS(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 Mr.isExist(e)?e:""}var cH=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function PS(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let n=Mr.getAllMatches(e,cH),r=n.length,s={};for(let i=0;i<r;i++){let a=oH(n[i][1],t);a.length&&(n[i][4]!==void 0?(t.trimValues&&(n[i][4]=n[i][4].trim()),n[i][4]=t.attrValueProcessor(n[i][4],a),s[t.attributeNamePrefix+a]=LS(n[i][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(s[t.attributeNamePrefix+a]=!0))}if(!Object.keys(s).length)return;if(t.attrNodeName){let i={};return i[t.attrNodeName]=s,i}return s}}var lH=function(e,t){e=e.replace(/\r\n?/g,`
6
+ `),t=aH(t,DS,NS);let n=new xo("!xml"),r=n,s="";for(let i=0;i<e.length;i++)if(e[i]==="<")if(e[i+1]==="/"){let c=_i(e,">",i,"Closing Tag is not closed."),l=e.substring(i+2,c).trim();if(t.ignoreNameSpace){let m=l.indexOf(":");m!==-1&&(l=l.substr(m+1))}r&&(r.val?r.val=Mr.getValue(r.val)+""+Io(l,s,t):r.val=Io(l,s,t)),t.stopNodes.length&&t.stopNodes.includes(r.tagname)&&(r.child=[],r.attrsMap==null&&(r.attrsMap={}),r.val=e.substr(r.startIndex+1,i-r.startIndex-1)),r=r.parent,s="",i=c}else if(e[i+1]==="?")i=_i(e,"?>",i,"Pi Tag is not closed.");else if(e.substr(i+1,3)==="!--")i=_i(e,"-->",i,"Comment is not closed.");else if(e.substr(i+1,2)==="!D"){let c=_i(e,">",i,"DOCTYPE is not closed.");e.substring(i,c).indexOf("[")>=0?i=e.indexOf("]>",i)+1:i=c}else if(e.substr(i+1,2)==="!["){let c=_i(e,"]]>",i,"CDATA is not closed.")-2,l=e.substring(i+9,c);if(s&&(r.val=Mr.getValue(r.val)+""+Io(r.tagname,s,t),s=""),t.cdataTagName){let m=new xo(t.cdataTagName,r,l);r.addChild(m),r.val=Mr.getValue(r.val)+t.cdataPositionChar,l&&(m.val=l)}else r.val=(r.val||"")+(l||"");i=c+2}else{let c=dH(e,i+1),l=c.data,m=c.index,f=l.indexOf(" "),g=l,h=!0;if(f!==-1&&(g=l.substr(0,f).replace(/\s\s*$/,""),l=l.substr(f+1)),t.ignoreNameSpace){let _=g.indexOf(":");_!==-1&&(g=g.substr(_+1),h=g!==c.data.substr(_+1))}if(r&&s&&r.tagname!=="!xml"&&(r.val=Mr.getValue(r.val)+""+Io(r.tagname,s,t)),l.length>0&&l.lastIndexOf("/")===l.length-1){g[g.length-1]==="/"?(g=g.substr(0,g.length-1),l=g):l=l.substr(0,l.length-1);let _=new xo(g,r,"");g!==l&&(_.attrsMap=PS(l,t)),r.addChild(_)}else{let _=new xo(g,r);t.stopNodes.length&&t.stopNodes.includes(_.tagname)&&(_.startIndex=m),g!==l&&h&&(_.attrsMap=PS(l,t)),r.addChild(_),r=_}s="",i=m}else s+=e[i];return n};function dH(e,t){let n,r="";for(let s=t;s<e.length;s++){let i=e[s];if(n)i===n&&(n="");else if(i==='"'||i==="'")n=i;else{if(i===">")return{data:r,index:s};i===" "&&(i=" ")}r+=i}}function _i(e,t,n,r){let s=e.indexOf(t,n);if(s===-1)throw new Error(r);return s+t.length-1}Ro.getTraversalObj=lH});var jS=p(zS=>{"use strict";var ko=cn(),uH={allowBooleanAttributes:!1},mH=["allowBooleanAttributes"];zS.validate=function(e,t){t=ko.buildOptions(t,uH,mH);let n=[],r=!1,s=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let i=0;i<e.length;i++)if(e[i]==="<"&&e[i+1]==="?"){if(i+=2,i=qS(e,i),i.err)return i}else if(e[i]==="<")if(i++,e[i]==="!"){i=MS(e,i);continue}else{let a=!1;e[i]==="/"&&(a=!0,i++);let c="";for(;i<e.length&&e[i]!==">"&&e[i]!==" "&&e[i]!==" "&&e[i]!==`
7
+ `&&e[i]!=="\r";i++)c+=e[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!bH(c)){let f;return c.trim().length===0?f="There is an unnecessary space between tag name and backward slash '</ ..'.":f="Tag '"+c+"' is an invalid name.",Qe("InvalidTag",f,Jt(e,i))}let l=hH(e,i);if(l===!1)return Qe("InvalidAttr","Attributes for '"+c+"' have open quote.",Jt(e,i));let m=l.value;if(i=l.index,m[m.length-1]==="/"){m=m.substring(0,m.length-1);let f=OS(m,t);if(f===!0)r=!0;else return Qe(f.err.code,f.err.msg,Jt(e,i-m.length+f.err.line))}else if(a)if(l.tagClosed){if(m.trim().length>0)return Qe("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Jt(e,i));{let f=n.pop();if(c!==f)return Qe("InvalidTag","Closing tag '"+f+"' is expected inplace of '"+c+"'.",Jt(e,i));n.length==0&&(s=!0)}}else return Qe("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Jt(e,i));else{let f=OS(m,t);if(f!==!0)return Qe(f.err.code,f.err.msg,Jt(e,i-m.length+f.err.line));if(s===!0)return Qe("InvalidXml","Multiple possible root nodes found.",Jt(e,i));n.push(c),r=!0}for(i++;i<e.length;i++)if(e[i]==="<")if(e[i+1]==="!"){i++,i=MS(e,i);continue}else if(e[i+1]==="?"){if(i=qS(e,++i),i.err)return i}else break;else if(e[i]==="&"){let f=_H(e,i);if(f==-1)return Qe("InvalidChar","char '&' is not expected.",Jt(e,i));i=f}e[i]==="<"&&i--}else{if(e[i]===" "||e[i]===" "||e[i]===`
8
+ `||e[i]==="\r")continue;return Qe("InvalidChar","char '"+e[i]+"' is not expected.",Jt(e,i))}if(r){if(n.length>0)return Qe("InvalidXml","Invalid '"+JSON.stringify(n,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return Qe("InvalidXml","Start tag expected.",1);return!0};function qS(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 Qe("InvalidXml","XML declaration allowed only at the start of the document.",Jt(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function MS(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 fH='"',pH="'";function hH(e,t){let n="",r="",s=!1;for(;t<e.length;t++){if(e[t]===fH||e[t]===pH)if(r==="")r=e[t];else{if(r!==e[t])continue;r=""}else if(e[t]===">"&&r===""){s=!0;break}n+=e[t]}return r!==""?!1:{value:n,index:t,tagClosed:s}}var yH=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function OS(e,t){let n=ko.getAllMatches(e,yH),r={};for(let s=0;s<n.length;s++){if(n[s][1].length===0)return Qe("InvalidAttr","Attribute '"+n[s][2]+"' has no space in starting.",Do(e,n[s][0]));if(n[s][3]===void 0&&!t.allowBooleanAttributes)return Qe("InvalidAttr","boolean attribute '"+n[s][2]+"' is not allowed.",Do(e,n[s][0]));let i=n[s][2];if(!wH(i))return Qe("InvalidAttr","Attribute '"+i+"' is an invalid name.",Do(e,n[s][0]));if(!r.hasOwnProperty(i))r[i]=1;else return Qe("InvalidAttr","Attribute '"+i+"' is repeated.",Do(e,n[s][0]))}return!0}function gH(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 _H(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,gH(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 Qe(e,t,n){return{err:{code:e,msg:t,line:n}}}function wH(e){return ko.isName(e)}function bH(e){return ko.isName(e)}function Jt(e,t){var n=e.substring(0,t).split(/\r?\n/);return n.length}function Do(e,t){return e.indexOf(t)+t.length}});var GS=p(FS=>{"use strict";var ln=function(e){return String.fromCharCode(e)},qe={nilChar:ln(176),missingChar:ln(201),nilPremitive:ln(175),missingPremitive:ln(200),emptyChar:ln(178),emptyValue:ln(177),boundryChar:ln(179),objStart:ln(198),arrStart:ln(204),arrayEnd:ln(185)},SH=[qe.nilChar,qe.nilPremitive,qe.missingChar,qe.missingPremitive,qe.boundryChar,qe.emptyChar,qe.emptyValue,qe.arrayEnd,qe.objStart,qe.arrStart],bi=function(e,t,n){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?op(e[0].val,t):op(e,t);{let r=vH(e);if(r===!0){let s="";if(Array.isArray(t)){s+=qe.arrStart;let i=t[0],a=e.length;if(typeof i=="string")for(let c=0;c<a;c++){let l=op(e[c].val,i);s=cp(s,l)}else for(let c=0;c<a;c++){let l=bi(e[c],i,n);s=cp(s,l)}s+=qe.arrayEnd}else{s+=qe.objStart;let i=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let a in i){let c=i[a],l;!n.ignoreAttributes&&e.attrsMap&&e.attrsMap[c]?l=bi(e.attrsMap[c],t[c],n):c===n.textNodeName?l=bi(e.val,t[c],n):l=bi(e.child[c],t[c],n),s=cp(s,l)}}return s}else return r}},op=function(e){switch(e){case void 0:return qe.missingPremitive;case null:return qe.nilPremitive;case"":return qe.emptyValue;default:return e}},cp=function(e,t){return!US(t[0])&&!US(e[e.length-1])&&(e+=qe.boundryChar),e+t},US=function(e){return SH.indexOf(e)!==-1};function vH(e){return e===void 0?qe.missingChar:e===null?qe.nilChar:e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)?qe.emptyChar:!0}var BS=wi(),EH=cn().buildOptions,AH=function(e,t,n){return n=EH(n,BS.defaultOptions,BS.props),bi(e,t,n)};FS.convert2nimn=AH});var VS=p(KS=>{"use strict";var No=cn(),CH=cn().buildOptions,$S=wi(),TH=function(e,t){return t=CH(t,$S.defaultOptions,$S.props),t.indentBy=t.indentBy||"",lp(e,t,0)},lp=function(e,t,n){let r="{",s=Object.keys(e.child);for(let c=0;c<s.length;c++){var i=s[c];if(e.child[i]&&e.child[i].length>1){r+='"'+i+'" : [ ';for(var a in e.child[i])r+=lp(e.child[i][a],t)+" , ";r=r.substr(0,r.length-1)+" ] "}else r+='"'+i+'" : '+lp(e.child[i][0],t)+" ,"}return No.merge(r,e.attrsMap),No.isEmptyObject(r)?No.isExist(e.val)?e.val:"":(No.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(r+='"'+t.textNodeName+'" : '+xH(e.val))),r[r.length-1]===","&&(r=r.substr(0,r.length-2)),r+"}")};function xH(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}KS.convertToJsonString=TH});var JS=p((Mde,YS)=>{"use strict";var IH=cn().buildOptions,RH={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}},kH=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function dp(e){this.options=IH(e,RH,kH),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=MH),this.options.cdataTagName?this.isCDATA=OH:this.isCDATA=function(){return!1},this.replaceCDATAstr=DH,this.replaceCDATAarr=NH,this.options.format?(this.indentate=qH,this.tagEndChar=`>
9
9
  `,this.newLine=`
10
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=mH,this.buildObjNode=uH):(this.buildTextNode=LS,this.buildObjNode=PS),this.buildTextValNode=LS,this.buildObjectNode=PS}rp.prototype.parse=function(e){return this.j2x(e,0).val};rp.prototype.j2x=function(e,t){let n="",r="",i=Object.keys(e),s=i.length;for(let a=0;a<s;a++){let c=i[a];if(typeof e[c]!="undefined")if(e[c]===null)r+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(e[c]instanceof Date)r+=this.buildTextNode(e[c],c,"",t);else if(typeof e[c]!="object"){let l=this.isAttribute(c);l?n+=" "+l+'="'+this.options.attrValueProcessor(""+e[c])+'"':this.isCDATA(c)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[c]):r+=this.replaceCDATAstr("",e[c]):c===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[c])):r+=this.buildTextNode(e[c],c,"",t)}else if(Array.isArray(e[c]))if(this.isCDATA(c))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[c]):r+=this.replaceCDATAarr("",e[c]);else{let l=e[c].length;for(let m=0;m<l;m++){let f=e[c][m];if(typeof f!="undefined")if(f===null)r+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(typeof f=="object"){let g=this.j2x(f,t+1);r+=this.buildObjNode(g.val,c,g.attrStr,t)}else r+=this.buildTextNode(f,c,"",t)}}else if(this.options.attrNodeName&&c===this.options.attrNodeName){let l=Object.keys(e[c]),m=l.length;for(let f=0;f<m;f++)n+=" "+l[f]+'="'+this.options.attrValueProcessor(""+e[c][l[f]])+'"'}else{let l=this.j2x(e[c],t+1);r+=this.buildObjNode(l.val,c,l.attrStr,t)}}return{attrStr:n,val:r}};function lH(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 dH(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 PS(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 uH(e,t,n,r){return e!==""?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function LS(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function mH(e,t,n,r){return e!==""?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function fH(e){return this.options.indentBy.repeat(e)}function pH(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function hH(e){return e===this.options.cdataTagName}qS.exports=rp});var BS=h(Xt=>{"use strict";var OS=pS(),zS=_s(),jS=_s(),yH=ln().buildOptions,US=CS();Xt.parse=function(e,t,n){if(n){n===!0&&(n={});let i=US.validate(e,n);if(i!==!0)throw Error(i.err.msg)}t=yH(t,jS.defaultOptions,jS.props);let r=zS.getTraversalObj(e,t);return OS.convertToJson(r,t)};Xt.convertTonimn=RS().convert2nimn;Xt.getTraversalObj=zS.getTraversalObj;Xt.convertToJson=OS.convertToJson;Xt.convertToJsonString=NS().convertToJsonString;Xt.validate=US.validate;Xt.j2xParser=MS();Xt.parseToNimn=function(e,t,n){return Xt.convertTonimn(Xt.getTraversalObj(e,n),t,n)}});var kn=h(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 gH=kt(),ue=M(),_H=dS(),wH=BS(),bH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=rr(u(o({},VH(e,t)),{Action:"AssumeRole",Version:"2011-06-15"})),nr(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleCommand=bH;var SH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=rr(u(o({},WH(e,t)),{Action:"AssumeRoleWithSAML",Version:"2011-06-15"})),nr(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleWithSAMLCommand=SH;var vH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=rr(u(o({},HH(e,t)),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"})),nr(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleWithWebIdentityCommand=vH;var EH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=rr(u(o({},YH(e,t)),{Action:"DecodeAuthorizationMessage",Version:"2011-06-15"})),nr(t,n,"/",void 0,r)};me.serializeAws_queryDecodeAuthorizationMessageCommand=EH;var AH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=rr(u(o({},JH(e,t)),{Action:"GetAccessKeyInfo",Version:"2011-06-15"})),nr(t,n,"/",void 0,r)};me.serializeAws_queryGetAccessKeyInfoCommand=AH;var CH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=rr(u(o({},QH(e,t)),{Action:"GetCallerIdentity",Version:"2011-06-15"})),nr(t,n,"/",void 0,r)};me.serializeAws_queryGetCallerIdentityCommand=CH;var TH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=rr(u(o({},XH(e,t)),{Action:"GetFederationToken",Version:"2011-06-15"})),nr(t,n,"/",void 0,r)};me.serializeAws_queryGetFederationTokenCommand=TH;var xH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=rr(u(o({},ZH(e,t)),{Action:"GetSessionToken",Version:"2011-06-15"})),nr(t,n,"/",void 0,r)};me.serializeAws_queryGetSessionTokenCommand=xH;var IH=async(e,t)=>{if(e.statusCode>=300)return RH(e,t);let n=await nt(e.body,t),r={};r=r3(n.AssumeRoleResult,t);let i=o({$metadata:ne(e)},r);return Promise.resolve(i)};me.deserializeAws_queryAssumeRoleCommand=IH;var RH=async(e,t)=>{let n=u(o({},e),{body:await nt(e.body,t)}),r,i="UnknownError";switch(i=ir(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await ip(n,t)),{name:i,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Ro(n,t)),{name:i,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Do(n,t)),{name:i,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await bs(n,t)),{name:i,$metadata:ne(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=u(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ne(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},DH=async(e,t)=>{if(e.statusCode>=300)return kH(e,t);let n=await nt(e.body,t),r={};r=i3(n.AssumeRoleWithSAMLResult,t);let i=o({$metadata:ne(e)},r);return Promise.resolve(i)};me.deserializeAws_queryAssumeRoleWithSAMLCommand=DH;var kH=async(e,t)=>{let n=u(o({},e),{body:await nt(e.body,t)}),r,i="UnknownError";switch(i=ir(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await ip(n,t)),{name:i,$metadata:ne(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=u(o({},await FS(n,t)),{name:i,$metadata:ne(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=u(o({},await GS(n,t)),{name:i,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Ro(n,t)),{name:i,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Do(n,t)),{name:i,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await bs(n,t)),{name:i,$metadata:ne(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=u(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ne(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},NH=async(e,t)=>{if(e.statusCode>=300)return PH(e,t);let n=await nt(e.body,t),r={};r=s3(n.AssumeRoleWithWebIdentityResult,t);let i=o({$metadata:ne(e)},r);return Promise.resolve(i)};me.deserializeAws_queryAssumeRoleWithWebIdentityCommand=NH;var PH=async(e,t)=>{let n=u(o({},e),{body:await nt(e.body,t)}),r,i="UnknownError";switch(i=ir(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await ip(n,t)),{name:i,$metadata:ne(e)});break;case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":r=u(o({},await $H(n,t)),{name:i,$metadata:ne(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=u(o({},await FS(n,t)),{name:i,$metadata:ne(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=u(o({},await GS(n,t)),{name:i,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Ro(n,t)),{name:i,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Do(n,t)),{name:i,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await bs(n,t)),{name:i,$metadata:ne(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=u(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ne(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},LH=async(e,t)=>{if(e.statusCode>=300)return qH(e,t);let n=await nt(e.body,t),r={};r=a3(n.DecodeAuthorizationMessageResult,t);let i=o({$metadata:ne(e)},r);return Promise.resolve(i)};me.deserializeAws_queryDecodeAuthorizationMessageCommand=LH;var qH=async(e,t)=>{let n=u(o({},e),{body:await nt(e.body,t)}),r,i="UnknownError";switch(i=ir(e,n.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":r=u(o({},await KH(n,t)),{name:i,$metadata:ne(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=u(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ne(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},MH=async(e,t)=>{if(e.statusCode>=300)return OH(e,t);let n=await nt(e.body,t),r={};r=l3(n.GetAccessKeyInfoResult,t);let i=o({$metadata:ne(e)},r);return Promise.resolve(i)};me.deserializeAws_queryGetAccessKeyInfoCommand=MH;var OH=async(e,t)=>{let n=u(o({},e),{body:await nt(e.body,t)}),r,i="UnknownError";switch(i=ir(e,n.body),i){default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=u(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ne(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},zH=async(e,t)=>{if(e.statusCode>=300)return jH(e,t);let n=await nt(e.body,t),r={};r=d3(n.GetCallerIdentityResult,t);let i=o({$metadata:ne(e)},r);return Promise.resolve(i)};me.deserializeAws_queryGetCallerIdentityCommand=zH;var jH=async(e,t)=>{let n=u(o({},e),{body:await nt(e.body,t)}),r,i="UnknownError";switch(i=ir(e,n.body),i){default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=u(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ne(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},UH=async(e,t)=>{if(e.statusCode>=300)return BH(e,t);let n=await nt(e.body,t),r={};r=u3(n.GetFederationTokenResult,t);let i=o({$metadata:ne(e)},r);return Promise.resolve(i)};me.deserializeAws_queryGetFederationTokenCommand=UH;var BH=async(e,t)=>{let n=u(o({},e),{body:await nt(e.body,t)}),r,i="UnknownError";switch(i=ir(e,n.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Ro(n,t)),{name:i,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Do(n,t)),{name:i,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await bs(n,t)),{name:i,$metadata:ne(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=u(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ne(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},FH=async(e,t)=>{if(e.statusCode>=300)return GH(e,t);let n=await nt(e.body,t),r={};r=m3(n.GetSessionTokenResult,t);let i=o({$metadata:ne(e)},r);return Promise.resolve(i)};me.deserializeAws_queryGetSessionTokenCommand=FH;var GH=async(e,t)=>{let n=u(o({},e),{body:await nt(e.body,t)}),r,i="UnknownError";switch(i=ir(e,n.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await bs(n,t)),{name:i,$metadata:ne(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=u(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ne(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},ip=async(e,t)=>{let n=e.body,r=o3(n.Error,t);return o({name:"ExpiredTokenException",$fault:"client",$metadata:ne(e)},r)},$H=async(e,t)=>{let n=e.body,r=f3(n.Error,t);return o({name:"IDPCommunicationErrorException",$fault:"client",$metadata:ne(e)},r)},FS=async(e,t)=>{let n=e.body,r=p3(n.Error,t);return o({name:"IDPRejectedClaimException",$fault:"client",$metadata:ne(e)},r)},KH=async(e,t)=>{let n=e.body,r=h3(n.Error,t);return o({name:"InvalidAuthorizationMessageException",$fault:"client",$metadata:ne(e)},r)},GS=async(e,t)=>{let n=e.body,r=y3(n.Error,t);return o({name:"InvalidIdentityTokenException",$fault:"client",$metadata:ne(e)},r)},Ro=async(e,t)=>{let n=e.body,r=g3(n.Error,t);return o({name:"MalformedPolicyDocumentException",$fault:"client",$metadata:ne(e)},r)},Do=async(e,t)=>{let n=e.body,r=_3(n.Error,t);return o({name:"PackedPolicyTooLargeException",$fault:"client",$metadata:ne(e)},r)},bs=async(e,t)=>{let n=e.body,r=w3(n.Error,t);return o({name:"RegionDisabledException",$fault:"client",$metadata:ne(e)},r)},VH=(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=ko(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=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=$S(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let a=`Tags.${i}`;n[a]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let r=n3(e.TransitiveTagKeys,t);Object.entries(r).forEach(([i,s])=>{let a=`TransitiveTagKeys.${i}`;n[a]=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},WH=(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=ko(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=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},HH=(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=ko(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=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},YH=(e,t)=>{let n={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(n.EncodedMessage=e.EncodedMessage),n},JH=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(n.AccessKeyId=e.AccessKeyId),n},QH=(e,t)=>({}),XH=(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=ko(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=$S(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let a=`Tags.${i}`;n[a]=s})}return n},ZH=(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},ko=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=e3(i,t);Object.entries(s).forEach(([a,c])=>{n[`member.${r}.${a}`]=c}),r++}return n},e3=(e,t)=>{let n={};return e.arn!==void 0&&e.arn!==null&&(n.arn=e.arn),n},t3=(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},n3=(e,t)=>{let n={},r=1;for(let i of e)i!==null&&(n[`member.${r}`]=i,r++);return n},$S=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=t3(i,t);Object.entries(s).forEach(([a,c])=>{n[`member.${r}.${a}`]=c}),r++}return n},sp=(e,t)=>{let n={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=ue.expectString(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=ue.expectString(e.Arn)),n},r3=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=Ss(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=sp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ue.expectString(e.SourceIdentity)),n},i3=(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=Ss(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=sp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=ue.expectString(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=ue.expectString(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=ue.expectString(e.Issuer)),e.Audience!==void 0&&(n.Audience=ue.expectString(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=ue.expectString(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ue.expectString(e.SourceIdentity)),n},s3=(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=Ss(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=ue.expectString(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=sp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=ue.expectString(e.Provider)),e.Audience!==void 0&&(n.Audience=ue.expectString(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ue.expectString(e.SourceIdentity)),n},Ss=(e,t)=>{let n={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(n.AccessKeyId=ue.expectString(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=ue.expectString(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=ue.expectString(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=new Date(e.Expiration)),n},a3=(e,t)=>{let n={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(n.DecodedMessage=ue.expectString(e.DecodedMessage)),n},o3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},c3=(e,t)=>{let n={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(n.FederatedUserId=ue.expectString(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=ue.expectString(e.Arn)),n},l3=(e,t)=>{let n={Account:void 0};return e.Account!==void 0&&(n.Account=ue.expectString(e.Account)),n},d3=(e,t)=>{let n={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(n.UserId=ue.expectString(e.UserId)),e.Account!==void 0&&(n.Account=ue.expectString(e.Account)),e.Arn!==void 0&&(n.Arn=ue.expectString(e.Arn)),n},u3=(e,t)=>{let n={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(n.Credentials=Ss(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=c3(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),n},m3=(e,t)=>{let n={Credentials:void 0};return e.Credentials!==void 0&&(n.Credentials=Ss(e.Credentials,t)),n},f3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},p3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},h3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},y3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},g3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},_3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},w3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},ne=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"]}},b3=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),S3=(e,t)=>b3(e,t).then(n=>t.utf8Encoder(n)),nr=async(e,t,n,r,i)=>{let{hostname:s,protocol:a="https",port:c}=await e.endpoint(),l={protocol:a,hostname:s,port:c,method:"POST",path:n,headers:t};return r!==void 0&&(l.hostname=r),i!==void 0&&(l.body=i),new gH.HttpRequest(l)},nt=(e,t)=>S3(e,t).then(n=>{if(n.length){let r=wH.parse(n,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:(c,l)=>c.trim()===""?"":_H.decodeHTML(c)}),i="#text",s=Object.keys(r)[0],a=r[s];return a[i]&&(a[s]=a[i],delete a[i]),ue.getValueFromTextNode(a)}return{}}),rr=e=>Object.entries(e).map(([t,n])=>ue.extendedEncodeURIComponent(t)+"="+ue.extendedEncodeURIComponent(n)).join("&"),ir=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var ap=h(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.CredentialsProviderError=pi.ProviderError=void 0;var KS=class extends Error{constructor(t,n=!0){super(t);this.tryNextLink=n}static from(t,n=!0){return Object.defineProperty(t,"tryNextLink",{value:n,configurable:!1,enumerable:!1,writable:!1}),t}};pi.ProviderError=KS;var VS=class extends Error{constructor(t,n=!0){super(t);this.tryNextLink=n,this.name="CredentialsProviderError"}static from(t,n=!0){return Object.defineProperty(t,"tryNextLink",{value:n,configurable:!1,enumerable:!1,writable:!1}),t}};pi.CredentialsProviderError=VS});var WS=h(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.chain=void 0;var v3=ap();function E3(...e){return()=>{let t=Promise.reject(new v3.ProviderError("No providers in chain"));for(let n of e)t=t.catch(r=>{if(r==null?void 0:r.tryNextLink)return n();throw r});return t}}No.chain=E3});var HS=h(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.fromStatic=void 0;var A3=e=>()=>Promise.resolve(e);Po.fromStatic=A3});var YS=h(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.memoize=void 0;var C3=(e,t,n)=>{let r,i;if(t===void 0)return()=>(i||(r=e(),i=!0),r);let s=!1;return async()=>{if(i||(r=e(),i=!0),s)return r;let a=await r;return n&&!n(a)?(s=!0,a):t(a)?r=e():a}};Lo.memoize=C3});var rt=h(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});var qo=he();qo.__exportStar(WS(),hi);qo.__exportStar(HS(),hi);qo.__exportStar(YS(),hi);qo.__exportStar(ap(),hi)});var Mo=h(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.toHex=yi.fromHex=void 0;var JS={},op={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),JS[e]=t,op[t]=e}function T3(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.substr(n,2).toLowerCase();if(r in op)t[n/2]=op[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}yi.fromHex=T3;function x3(e){let t="";for(let n=0;n<e.byteLength;n++)t+=JS[e[n]];return t}yi.toHex=x3});var Lr=h(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.MAX_PRESIGNED_TTL=G.KEY_TYPE_IDENTIFIER=G.MAX_CACHE_SIZE=G.UNSIGNED_PAYLOAD=G.EVENT_ALGORITHM_IDENTIFIER=G.ALGORITHM_IDENTIFIER=G.UNSIGNABLE_PATTERNS=G.SEC_HEADER_PATTERN=G.PROXY_HEADER_PATTERN=G.ALWAYS_UNSIGNABLE_HEADERS=G.HOST_HEADER=G.TOKEN_HEADER=G.SHA256_HEADER=G.SIGNATURE_HEADER=G.GENERATED_HEADERS=G.DATE_HEADER=G.AMZ_DATE_HEADER=G.AUTH_HEADER=G.TOKEN_QUERY_PARAM=G.SIGNATURE_QUERY_PARAM=G.EXPIRES_QUERY_PARAM=G.SIGNED_HEADERS_QUERY_PARAM=G.AMZ_DATE_QUERY_PARAM=G.CREDENTIAL_QUERY_PARAM=G.ALGORITHM_QUERY_PARAM=void 0;G.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";G.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";G.AMZ_DATE_QUERY_PARAM="X-Amz-Date";G.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";G.EXPIRES_QUERY_PARAM="X-Amz-Expires";G.SIGNATURE_QUERY_PARAM="X-Amz-Signature";G.TOKEN_QUERY_PARAM="X-Amz-Security-Token";G.AUTH_HEADER="authorization";G.AMZ_DATE_HEADER=G.AMZ_DATE_QUERY_PARAM.toLowerCase();G.DATE_HEADER="date";G.GENERATED_HEADERS=[G.AUTH_HEADER,G.AMZ_DATE_HEADER,G.DATE_HEADER];G.SIGNATURE_HEADER=G.SIGNATURE_QUERY_PARAM.toLowerCase();G.SHA256_HEADER="x-amz-content-sha256";G.TOKEN_HEADER=G.TOKEN_QUERY_PARAM.toLowerCase();G.HOST_HEADER="host";G.ALWAYS_UNSIGNABLE_HEADERS={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0};G.PROXY_HEADER_PATTERN=/^proxy-/;G.SEC_HEADER_PATTERN=/^sec-/;G.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];G.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";G.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";G.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";G.MAX_CACHE_SIZE=50;G.KEY_TYPE_IDENTIFIER="aws4_request";G.MAX_PRESIGNED_TTL=60*60*24*7});var lp=h(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.clearCredentialCache=sr.getSigningKey=sr.createScope=void 0;var I3=Mo(),cp=Lr(),gi={},Oo=[];function R3(e,t,n){return`${e}/${t}/${n}/${cp.KEY_TYPE_IDENTIFIER}`}sr.createScope=R3;var D3=async(e,t,n,r,i)=>{let s=await QS(e,t.secretAccessKey,t.accessKeyId),a=`${n}:${r}:${i}:${I3.toHex(s)}:${t.sessionToken}`;if(a in gi)return gi[a];for(Oo.push(a);Oo.length>cp.MAX_CACHE_SIZE;)delete gi[Oo.shift()];let c=`AWS4${t.secretAccessKey}`;for(let l of[n,r,i,cp.KEY_TYPE_IDENTIFIER])c=await QS(e,c,l);return gi[a]=c};sr.getSigningKey=D3;function k3(){Oo.length=0,Object.keys(gi).forEach(e=>{delete gi[e]})}sr.clearCredentialCache=k3;function QS(e,t,n){let r=new e(t);return r.update(n),r.digest()}});var XS=h(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.getCanonicalHeaders=void 0;var dp=Lr();function N3({headers:e},t,n){let r={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in dp.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||dp.PROXY_HEADER_PATTERN.test(s)||dp.SEC_HEADER_PATTERN.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[i].trim().replace(/\s+/g," "))}return r}zo.getCanonicalHeaders=N3});var up=h(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.escapeUri=void 0;var P3=e=>encodeURIComponent(e).replace(/[!'()*]/g,L3);jo.escapeUri=P3;var L3=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var ZS=h(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.escapeUriPath=void 0;var q3=up(),M3=e=>e.split("/").map(q3.escapeUri).join("/");Uo.escapeUriPath=M3});var mp=h(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});var ev=he();ev.__exportStar(up(),Bo);ev.__exportStar(ZS(),Bo)});var tv=h(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.getCanonicalQuery=void 0;var Fo=mp(),O3=Lr();function z3({query:e={}}){let t=[],n={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===O3.SIGNATURE_HEADER)continue;t.push(r);let i=e[r];typeof i=="string"?n[r]=`${Fo.escapeUri(r)}=${Fo.escapeUri(i)}`:Array.isArray(i)&&(n[r]=i.slice(0).sort().reduce((s,a)=>s.concat([`${Fo.escapeUri(r)}=${Fo.escapeUri(a)}`]),[]).join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")}Go.getCanonicalQuery=z3});var fp=h($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.isArrayBuffer=void 0;var j3=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";$o.isArrayBuffer=j3});var rv=h(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.getPayloadHash=void 0;var U3=fp(),B3=Mo(),nv=Lr();async function F3({headers:e,body:t},n){for(let r of Object.keys(e))if(r.toLowerCase()===nv.SHA256_HEADER)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||U3.isArrayBuffer(t)){let r=new n;return r.update(t),B3.toHex(await r.digest())}return nv.UNSIGNED_PAYLOAD}Ko.getPayloadHash=F3});var iv=h(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.hasHeader=void 0;function G3(e,t){e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1}Vo.hasHeader=G3});var pp=h(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.cloneRequest=void 0;function $3(r){var i=r,{headers:e,query:t}=i,n=Yn(i,["headers","query"]);return u(o({},n),{headers:o({},e),query:t?K3(t):void 0})}Wo.cloneRequest=$3;function K3(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return u(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var sv=h(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.moveHeadersToQuery=void 0;var V3=pp();function W3(e,t={}){var n;let{headers:r,query:i={}}=typeof e.clone=="function"?e.clone():V3.cloneRequest(e);for(let s of Object.keys(r)){let a=s.toLowerCase();a.substr(0,6)==="x-amz-"&&!((n=t.unhoistableHeaders)===null||n===void 0?void 0:n.has(a))&&(i[s]=r[s],delete r[s])}return u(o({},e),{headers:r,query:i})}Ho.moveHeadersToQuery=W3});var av=h(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.prepareRequest=void 0;var H3=pp(),Y3=Lr();function J3(e){e=typeof e.clone=="function"?e.clone():H3.cloneRequest(e);for(let t of Object.keys(e.headers))Y3.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e}Yo.prepareRequest=J3});var cv=h(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.toDate=_i.iso8601=void 0;function Q3(e){return ov(e).toISOString().replace(/\.\d{3}Z$/,"Z")}_i.iso8601=Q3;function ov(e){return typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e}_i.toDate=ov});var fv=h(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SignatureV4=void 0;var Jo=Mo(),Qe=Lr(),Qo=lp(),lv=XS(),X3=tv(),hp=rv(),Z3=iv(),e8=sv(),dv=av(),t8=cv(),uv=class{constructor({applyChecksum:t,credentials:n,region:r,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=n8(r),this.credentialProvider=r8(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:c,signingRegion:l,signingService:m}=n,f=await this.credentialProvider(),g=l!=null?l:await this.regionProvider(),{longDate:p,shortDate:_}=Xo(r);if(i>Qe.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=Qo.createScope(_,g,m!=null?m:this.service),E=e8.moveHeadersToQuery(dv.prepareRequest(t),{unhoistableHeaders:a});f.sessionToken&&(E.query[Qe.TOKEN_QUERY_PARAM]=f.sessionToken),E.query[Qe.ALGORITHM_QUERY_PARAM]=Qe.ALGORITHM_IDENTIFIER,E.query[Qe.CREDENTIAL_QUERY_PARAM]=`${f.accessKeyId}/${S}`,E.query[Qe.AMZ_DATE_QUERY_PARAM]=p,E.query[Qe.EXPIRES_QUERY_PARAM]=i.toString(10);let k=lv.getCanonicalHeaders(E,s,c);return E.query[Qe.SIGNED_HEADERS_QUERY_PARAM]=mv(k),E.query[Qe.SIGNATURE_QUERY_PARAM]=await this.getSignature(p,S,this.getSigningKey(f,g,_,m),this.createCanonicalRequest(E,k,await hp.getPayloadHash(t,this.sha256))),E}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:a}){let c=s!=null?s:await this.regionProvider(),{shortDate:l,longDate:m}=Xo(r),f=Qo.createScope(l,c,a!=null?a:this.service),g=await hp.getPayloadHash({headers:{},body:n},this.sha256),p=new this.sha256;p.update(t);let _=Jo.toHex(await p.digest()),S=[Qe.EVENT_ALGORITHM_IDENTIFIER,m,f,i,_,g].join(`
11
- `);return this.signString(S,{signingDate:r,signingRegion:c,signingService:a})}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){let s=await this.credentialProvider(),a=r!=null?r:await this.regionProvider(),{shortDate:c}=Xo(n),l=new this.sha256(await this.getSigningKey(s,a,c,i));return l.update(t),Jo.toHex(await l.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:s,signingService:a}={}){let c=await this.credentialProvider(),l=s!=null?s:await this.regionProvider(),m=dv.prepareRequest(t),{longDate:f,shortDate:g}=Xo(n),p=Qo.createScope(g,l,a!=null?a:this.service);m.headers[Qe.AMZ_DATE_HEADER]=f,c.sessionToken&&(m.headers[Qe.TOKEN_HEADER]=c.sessionToken);let _=await hp.getPayloadHash(m,this.sha256);!Z3.hasHeader(Qe.SHA256_HEADER,m.headers)&&this.applyChecksum&&(m.headers[Qe.SHA256_HEADER]=_);let S=lv.getCanonicalHeaders(m,i,r),E=await this.getSignature(f,p,this.getSigningKey(c,l,g,a),this.createCanonicalRequest(m,S,_));return m.headers[Qe.AUTH_HEADER]=`${Qe.ALGORITHM_IDENTIFIER} Credential=${c.accessKeyId}/${p}, SignedHeaders=${mv(S)}, Signature=${E}`,m}createCanonicalRequest(t,n,r){let i=Object.keys(n).sort();return`${t.method}
10
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=PH,this.buildObjNode=LH):(this.buildTextNode=HS,this.buildObjNode=WS),this.buildTextValNode=HS,this.buildObjectNode=WS}dp.prototype.parse=function(e){return this.j2x(e,0).val};dp.prototype.j2x=function(e,t){let n="",r="",s=Object.keys(e),i=s.length;for(let a=0;a<i;a++){let c=s[a];if(typeof e[c]!="undefined")if(e[c]===null)r+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(e[c]instanceof Date)r+=this.buildTextNode(e[c],c,"",t);else if(typeof e[c]!="object"){let l=this.isAttribute(c);l?n+=" "+l+'="'+this.options.attrValueProcessor(""+e[c])+'"':this.isCDATA(c)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[c]):r+=this.replaceCDATAstr("",e[c]):c===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[c])):r+=this.buildTextNode(e[c],c,"",t)}else if(Array.isArray(e[c]))if(this.isCDATA(c))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[c]):r+=this.replaceCDATAarr("",e[c]);else{let l=e[c].length;for(let m=0;m<l;m++){let f=e[c][m];if(typeof f!="undefined")if(f===null)r+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(typeof f=="object"){let g=this.j2x(f,t+1);r+=this.buildObjNode(g.val,c,g.attrStr,t)}else r+=this.buildTextNode(f,c,"",t)}}else if(this.options.attrNodeName&&c===this.options.attrNodeName){let l=Object.keys(e[c]),m=l.length;for(let f=0;f<m;f++)n+=" "+l[f]+'="'+this.options.attrValueProcessor(""+e[c][l[f]])+'"'}else{let l=this.j2x(e[c],t+1);r+=this.buildObjNode(l.val,c,l.attrStr,t)}}return{attrStr:n,val:r}};function DH(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 NH(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 WS(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 LH(e,t,n,r){return e!==""?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function HS(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function PH(e,t,n,r){return e!==""?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function qH(e){return this.options.indentBy.repeat(e)}function MH(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function OH(e){return e===this.options.cdataTagName}YS.exports=dp});var tv=p(Qt=>{"use strict";var QS=IS(),XS=wi(),ZS=wi(),zH=cn().buildOptions,ev=jS();Qt.parse=function(e,t,n){if(n){n===!0&&(n={});let s=ev.validate(e,n);if(s!==!0)throw Error(s.err.msg)}t=zH(t,ZS.defaultOptions,ZS.props);let r=XS.getTraversalObj(e,t);return QS.convertToJson(r,t)};Qt.convertTonimn=GS().convert2nimn;Qt.getTraversalObj=XS.getTraversalObj;Qt.convertToJson=QS.convertToJson;Qt.convertToJsonString=VS().convertToJsonString;Qt.validate=ev.validate;Qt.j2xParser=JS();Qt.parseToNimn=function(e,t,n){return Qt.convertTonimn(Qt.getTraversalObj(e,n),t,n)}});var Dn=p(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.deserializeAws_queryGetSessionTokenCommand=fe.deserializeAws_queryGetFederationTokenCommand=fe.deserializeAws_queryGetCallerIdentityCommand=fe.deserializeAws_queryGetAccessKeyInfoCommand=fe.deserializeAws_queryDecodeAuthorizationMessageCommand=fe.deserializeAws_queryAssumeRoleWithWebIdentityCommand=fe.deserializeAws_queryAssumeRoleWithSAMLCommand=fe.deserializeAws_queryAssumeRoleCommand=fe.serializeAws_queryGetSessionTokenCommand=fe.serializeAws_queryGetFederationTokenCommand=fe.serializeAws_queryGetCallerIdentityCommand=fe.serializeAws_queryGetAccessKeyInfoCommand=fe.serializeAws_queryDecodeAuthorizationMessageCommand=fe.serializeAws_queryAssumeRoleWithWebIdentityCommand=fe.serializeAws_queryAssumeRoleWithSAMLCommand=fe.serializeAws_queryAssumeRoleCommand=void 0;var jH=Dt(),me=M(),UH=AS(),BH=tv(),FH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=ir(u(o({},p3(e,t)),{Action:"AssumeRole",Version:"2011-06-15"})),sr(t,n,"/",void 0,r)};fe.serializeAws_queryAssumeRoleCommand=FH;var GH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=ir(u(o({},h3(e,t)),{Action:"AssumeRoleWithSAML",Version:"2011-06-15"})),sr(t,n,"/",void 0,r)};fe.serializeAws_queryAssumeRoleWithSAMLCommand=GH;var $H=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=ir(u(o({},y3(e,t)),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"})),sr(t,n,"/",void 0,r)};fe.serializeAws_queryAssumeRoleWithWebIdentityCommand=$H;var KH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=ir(u(o({},g3(e,t)),{Action:"DecodeAuthorizationMessage",Version:"2011-06-15"})),sr(t,n,"/",void 0,r)};fe.serializeAws_queryDecodeAuthorizationMessageCommand=KH;var VH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=ir(u(o({},_3(e,t)),{Action:"GetAccessKeyInfo",Version:"2011-06-15"})),sr(t,n,"/",void 0,r)};fe.serializeAws_queryGetAccessKeyInfoCommand=VH;var WH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=ir(u(o({},w3(e,t)),{Action:"GetCallerIdentity",Version:"2011-06-15"})),sr(t,n,"/",void 0,r)};fe.serializeAws_queryGetCallerIdentityCommand=WH;var HH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=ir(u(o({},b3(e,t)),{Action:"GetFederationToken",Version:"2011-06-15"})),sr(t,n,"/",void 0,r)};fe.serializeAws_queryGetFederationTokenCommand=HH;var YH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=ir(u(o({},S3(e,t)),{Action:"GetSessionToken",Version:"2011-06-15"})),sr(t,n,"/",void 0,r)};fe.serializeAws_queryGetSessionTokenCommand=YH;var JH=async(e,t)=>{if(e.statusCode>=300)return QH(e,t);let n=await rt(e.body,t),r={};r=C3(n.AssumeRoleResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};fe.deserializeAws_queryAssumeRoleCommand=JH;var QH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ar(e,n.body),s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await up(n,t)),{name:s,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await Si(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},XH=async(e,t)=>{if(e.statusCode>=300)return ZH(e,t);let n=await rt(e.body,t),r={};r=T3(n.AssumeRoleWithSAMLResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};fe.deserializeAws_queryAssumeRoleWithSAMLCommand=XH;var ZH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ar(e,n.body),s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await up(n,t)),{name:s,$metadata:ne(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=u(o({},await nv(n,t)),{name:s,$metadata:ne(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=u(o({},await rv(n,t)),{name:s,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await Si(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},e3=async(e,t)=>{if(e.statusCode>=300)return t3(e,t);let n=await rt(e.body,t),r={};r=x3(n.AssumeRoleWithWebIdentityResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};fe.deserializeAws_queryAssumeRoleWithWebIdentityCommand=e3;var t3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ar(e,n.body),s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await up(n,t)),{name:s,$metadata:ne(e)});break;case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":r=u(o({},await m3(n,t)),{name:s,$metadata:ne(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=u(o({},await nv(n,t)),{name:s,$metadata:ne(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=u(o({},await rv(n,t)),{name:s,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await Si(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},n3=async(e,t)=>{if(e.statusCode>=300)return r3(e,t);let n=await rt(e.body,t),r={};r=I3(n.DecodeAuthorizationMessageResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};fe.deserializeAws_queryDecodeAuthorizationMessageCommand=n3;var r3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ar(e,n.body),s){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":r=u(o({},await f3(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},s3=async(e,t)=>{if(e.statusCode>=300)return i3(e,t);let n=await rt(e.body,t),r={};r=D3(n.GetAccessKeyInfoResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};fe.deserializeAws_queryGetAccessKeyInfoCommand=s3;var i3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ar(e,n.body),s){default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},a3=async(e,t)=>{if(e.statusCode>=300)return o3(e,t);let n=await rt(e.body,t),r={};r=N3(n.GetCallerIdentityResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};fe.deserializeAws_queryGetCallerIdentityCommand=a3;var o3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ar(e,n.body),s){default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},c3=async(e,t)=>{if(e.statusCode>=300)return l3(e,t);let n=await rt(e.body,t),r={};r=L3(n.GetFederationTokenResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};fe.deserializeAws_queryGetFederationTokenCommand=c3;var l3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ar(e,n.body),s){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await Si(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},d3=async(e,t)=>{if(e.statusCode>=300)return u3(e,t);let n=await rt(e.body,t),r={};r=P3(n.GetSessionTokenResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};fe.deserializeAws_queryGetSessionTokenCommand=d3;var u3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ar(e,n.body),s){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await Si(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},up=async(e,t)=>{let n=e.body,r=R3(n.Error,t);return o({name:"ExpiredTokenException",$fault:"client",$metadata:ne(e)},r)},m3=async(e,t)=>{let n=e.body,r=q3(n.Error,t);return o({name:"IDPCommunicationErrorException",$fault:"client",$metadata:ne(e)},r)},nv=async(e,t)=>{let n=e.body,r=M3(n.Error,t);return o({name:"IDPRejectedClaimException",$fault:"client",$metadata:ne(e)},r)},f3=async(e,t)=>{let n=e.body,r=O3(n.Error,t);return o({name:"InvalidAuthorizationMessageException",$fault:"client",$metadata:ne(e)},r)},rv=async(e,t)=>{let n=e.body,r=z3(n.Error,t);return o({name:"InvalidIdentityTokenException",$fault:"client",$metadata:ne(e)},r)},Lo=async(e,t)=>{let n=e.body,r=j3(n.Error,t);return o({name:"MalformedPolicyDocumentException",$fault:"client",$metadata:ne(e)},r)},Po=async(e,t)=>{let n=e.body,r=U3(n.Error,t);return o({name:"PackedPolicyTooLargeException",$fault:"client",$metadata:ne(e)},r)},Si=async(e,t)=>{let n=e.body,r=B3(n.Error,t);return o({name:"RegionDisabledException",$fault:"client",$metadata:ne(e)},r)},p3=(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=qo(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}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=sv(e.Tags,t);Object.entries(r).forEach(([s,i])=>{let a=`Tags.${s}`;n[a]=i})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let r=A3(e.TransitiveTagKeys,t);Object.entries(r).forEach(([s,i])=>{let a=`TransitiveTagKeys.${s}`;n[a]=i})}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},h3=(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=qo(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},y3=(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=qo(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},g3=(e,t)=>{let n={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(n.EncodedMessage=e.EncodedMessage),n},_3=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(n.AccessKeyId=e.AccessKeyId),n},w3=(e,t)=>({}),b3=(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=qo(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=sv(e.Tags,t);Object.entries(r).forEach(([s,i])=>{let a=`Tags.${s}`;n[a]=i})}return n},S3=(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},qo=(e,t)=>{let n={},r=1;for(let s of e){if(s===null)continue;let i=v3(s,t);Object.entries(i).forEach(([a,c])=>{n[`member.${r}.${a}`]=c}),r++}return n},v3=(e,t)=>{let n={};return e.arn!==void 0&&e.arn!==null&&(n.arn=e.arn),n},E3=(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},A3=(e,t)=>{let n={},r=1;for(let s of e)s!==null&&(n[`member.${r}`]=s,r++);return n},sv=(e,t)=>{let n={},r=1;for(let s of e){if(s===null)continue;let i=E3(s,t);Object.entries(i).forEach(([a,c])=>{n[`member.${r}.${a}`]=c}),r++}return n},mp=(e,t)=>{let n={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=me.expectString(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=me.expectString(e.Arn)),n},C3=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=vi(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=mp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=me.expectString(e.SourceIdentity)),n},T3=(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=vi(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=mp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=me.expectString(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=me.expectString(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=me.expectString(e.Issuer)),e.Audience!==void 0&&(n.Audience=me.expectString(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=me.expectString(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=me.expectString(e.SourceIdentity)),n},x3=(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=vi(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=me.expectString(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=mp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=me.expectString(e.Provider)),e.Audience!==void 0&&(n.Audience=me.expectString(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=me.expectString(e.SourceIdentity)),n},vi=(e,t)=>{let n={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(n.AccessKeyId=me.expectString(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=me.expectString(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=me.expectString(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=new Date(e.Expiration)),n},I3=(e,t)=>{let n={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(n.DecodedMessage=me.expectString(e.DecodedMessage)),n},R3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=me.expectString(e.message)),n},k3=(e,t)=>{let n={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(n.FederatedUserId=me.expectString(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=me.expectString(e.Arn)),n},D3=(e,t)=>{let n={Account:void 0};return e.Account!==void 0&&(n.Account=me.expectString(e.Account)),n},N3=(e,t)=>{let n={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(n.UserId=me.expectString(e.UserId)),e.Account!==void 0&&(n.Account=me.expectString(e.Account)),e.Arn!==void 0&&(n.Arn=me.expectString(e.Arn)),n},L3=(e,t)=>{let n={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(n.Credentials=vi(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=k3(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),n},P3=(e,t)=>{let n={Credentials:void 0};return e.Credentials!==void 0&&(n.Credentials=vi(e.Credentials,t)),n},q3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=me.expectString(e.message)),n},M3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=me.expectString(e.message)),n},O3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=me.expectString(e.message)),n},z3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=me.expectString(e.message)),n},j3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=me.expectString(e.message)),n},U3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=me.expectString(e.message)),n},B3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=me.expectString(e.message)),n},ne=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"]}},F3=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),G3=(e,t)=>F3(e,t).then(n=>t.utf8Encoder(n)),sr=async(e,t,n,r,s)=>{let{hostname:i,protocol:a="https",port:c}=await e.endpoint(),l={protocol:a,hostname:i,port:c,method:"POST",path:n,headers:t};return r!==void 0&&(l.hostname=r),s!==void 0&&(l.body=s),new jH.HttpRequest(l)},rt=(e,t)=>G3(e,t).then(n=>{if(n.length){let r=BH.parse(n,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:(c,l)=>c.trim()===""?"":UH.decodeHTML(c)}),s="#text",i=Object.keys(r)[0],a=r[i];return a[s]&&(a[i]=a[s],delete a[s]),me.getValueFromTextNode(a)}return{}}),ir=e=>Object.entries(e).map(([t,n])=>me.extendedEncodeURIComponent(t)+"="+me.extendedEncodeURIComponent(n)).join("&"),ar=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var fp=p(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.CredentialsProviderError=hs.ProviderError=void 0;var iv=class extends Error{constructor(t,n=!0){super(t);this.tryNextLink=n}static from(t,n=!0){return Object.defineProperty(t,"tryNextLink",{value:n,configurable:!1,enumerable:!1,writable:!1}),t}};hs.ProviderError=iv;var av=class extends Error{constructor(t,n=!0){super(t);this.tryNextLink=n,this.name="CredentialsProviderError"}static from(t,n=!0){return Object.defineProperty(t,"tryNextLink",{value:n,configurable:!1,enumerable:!1,writable:!1}),t}};hs.CredentialsProviderError=av});var ov=p(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.chain=void 0;var $3=fp();function K3(...e){return()=>{let t=Promise.reject(new $3.ProviderError("No providers in chain"));for(let n of e)t=t.catch(r=>{if(r==null?void 0:r.tryNextLink)return n();throw r});return t}}Mo.chain=K3});var cv=p(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.fromStatic=void 0;var V3=e=>()=>Promise.resolve(e);Oo.fromStatic=V3});var lv=p(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.memoize=void 0;var W3=(e,t,n)=>{let r,s;if(t===void 0)return()=>(s||(r=e(),s=!0),r);let i=!1;return async()=>{if(s||(r=e(),s=!0),i)return r;let a=await r;return n&&!n(a)?(i=!0,a):t(a)?r=e():a}};zo.memoize=W3});var st=p(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});var jo=ue();jo.__exportStar(ov(),ys);jo.__exportStar(cv(),ys);jo.__exportStar(lv(),ys);jo.__exportStar(fp(),ys)});var Uo=p(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.toHex=gs.fromHex=void 0;var dv={},pp={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),dv[e]=t,pp[t]=e}function H3(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.substr(n,2).toLowerCase();if(r in pp)t[n/2]=pp[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}gs.fromHex=H3;function Y3(e){let t="";for(let n=0;n<e.byteLength;n++)t+=dv[e[n]];return t}gs.toHex=Y3});var Or=p(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.MAX_PRESIGNED_TTL=G.KEY_TYPE_IDENTIFIER=G.MAX_CACHE_SIZE=G.UNSIGNED_PAYLOAD=G.EVENT_ALGORITHM_IDENTIFIER=G.ALGORITHM_IDENTIFIER=G.UNSIGNABLE_PATTERNS=G.SEC_HEADER_PATTERN=G.PROXY_HEADER_PATTERN=G.ALWAYS_UNSIGNABLE_HEADERS=G.HOST_HEADER=G.TOKEN_HEADER=G.SHA256_HEADER=G.SIGNATURE_HEADER=G.GENERATED_HEADERS=G.DATE_HEADER=G.AMZ_DATE_HEADER=G.AUTH_HEADER=G.TOKEN_QUERY_PARAM=G.SIGNATURE_QUERY_PARAM=G.EXPIRES_QUERY_PARAM=G.SIGNED_HEADERS_QUERY_PARAM=G.AMZ_DATE_QUERY_PARAM=G.CREDENTIAL_QUERY_PARAM=G.ALGORITHM_QUERY_PARAM=void 0;G.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";G.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";G.AMZ_DATE_QUERY_PARAM="X-Amz-Date";G.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";G.EXPIRES_QUERY_PARAM="X-Amz-Expires";G.SIGNATURE_QUERY_PARAM="X-Amz-Signature";G.TOKEN_QUERY_PARAM="X-Amz-Security-Token";G.AUTH_HEADER="authorization";G.AMZ_DATE_HEADER=G.AMZ_DATE_QUERY_PARAM.toLowerCase();G.DATE_HEADER="date";G.GENERATED_HEADERS=[G.AUTH_HEADER,G.AMZ_DATE_HEADER,G.DATE_HEADER];G.SIGNATURE_HEADER=G.SIGNATURE_QUERY_PARAM.toLowerCase();G.SHA256_HEADER="x-amz-content-sha256";G.TOKEN_HEADER=G.TOKEN_QUERY_PARAM.toLowerCase();G.HOST_HEADER="host";G.ALWAYS_UNSIGNABLE_HEADERS={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0};G.PROXY_HEADER_PATTERN=/^proxy-/;G.SEC_HEADER_PATTERN=/^sec-/;G.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];G.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";G.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";G.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";G.MAX_CACHE_SIZE=50;G.KEY_TYPE_IDENTIFIER="aws4_request";G.MAX_PRESIGNED_TTL=60*60*24*7});var yp=p(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.clearCredentialCache=or.getSigningKey=or.createScope=void 0;var J3=Uo(),hp=Or(),_s={},Bo=[];function Q3(e,t,n){return`${e}/${t}/${n}/${hp.KEY_TYPE_IDENTIFIER}`}or.createScope=Q3;var X3=async(e,t,n,r,s)=>{let i=await uv(e,t.secretAccessKey,t.accessKeyId),a=`${n}:${r}:${s}:${J3.toHex(i)}:${t.sessionToken}`;if(a in _s)return _s[a];for(Bo.push(a);Bo.length>hp.MAX_CACHE_SIZE;)delete _s[Bo.shift()];let c=`AWS4${t.secretAccessKey}`;for(let l of[n,r,s,hp.KEY_TYPE_IDENTIFIER])c=await uv(e,c,l);return _s[a]=c};or.getSigningKey=X3;function Z3(){Bo.length=0,Object.keys(_s).forEach(e=>{delete _s[e]})}or.clearCredentialCache=Z3;function uv(e,t,n){let r=new e(t);return r.update(n),r.digest()}});var mv=p(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.getCanonicalHeaders=void 0;var gp=Or();function e8({headers:e},t,n){let r={};for(let s of Object.keys(e).sort()){let i=s.toLowerCase();(i in gp.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(i))||gp.PROXY_HEADER_PATTERN.test(i)||gp.SEC_HEADER_PATTERN.test(i))&&(!n||n&&!n.has(i))||(r[i]=e[s].trim().replace(/\s+/g," "))}return r}Fo.getCanonicalHeaders=e8});var _p=p(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.escapeUri=void 0;var t8=e=>encodeURIComponent(e).replace(/[!'()*]/g,n8);Go.escapeUri=t8;var n8=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var fv=p($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.escapeUriPath=void 0;var r8=_p(),s8=e=>e.split("/").map(r8.escapeUri).join("/");$o.escapeUriPath=s8});var wp=p(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});var pv=ue();pv.__exportStar(_p(),Ko);pv.__exportStar(fv(),Ko)});var hv=p(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.getCanonicalQuery=void 0;var Vo=wp(),i8=Or();function a8({query:e={}}){let t=[],n={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===i8.SIGNATURE_HEADER)continue;t.push(r);let s=e[r];typeof s=="string"?n[r]=`${Vo.escapeUri(r)}=${Vo.escapeUri(s)}`:Array.isArray(s)&&(n[r]=s.slice(0).sort().reduce((i,a)=>i.concat([`${Vo.escapeUri(r)}=${Vo.escapeUri(a)}`]),[]).join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")}Wo.getCanonicalQuery=a8});var bp=p(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.isArrayBuffer=void 0;var o8=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";Ho.isArrayBuffer=o8});var gv=p(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.getPayloadHash=void 0;var c8=bp(),l8=Uo(),yv=Or();async function d8({headers:e,body:t},n){for(let r of Object.keys(e))if(r.toLowerCase()===yv.SHA256_HEADER)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||c8.isArrayBuffer(t)){let r=new n;return r.update(t),l8.toHex(await r.digest())}return yv.UNSIGNED_PAYLOAD}Yo.getPayloadHash=d8});var _v=p(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.hasHeader=void 0;function u8(e,t){e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1}Jo.hasHeader=u8});var Sp=p(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.cloneRequest=void 0;function m8(r){var s=r,{headers:e,query:t}=s,n=Qn(s,["headers","query"]);return u(o({},n),{headers:o({},e),query:t?f8(t):void 0})}Qo.cloneRequest=m8;function f8(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return u(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var wv=p(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.moveHeadersToQuery=void 0;var p8=Sp();function h8(e,t={}){var n;let{headers:r,query:s={}}=typeof e.clone=="function"?e.clone():p8.cloneRequest(e);for(let i of Object.keys(r)){let a=i.toLowerCase();a.substr(0,6)==="x-amz-"&&!((n=t.unhoistableHeaders)===null||n===void 0?void 0:n.has(a))&&(s[i]=r[i],delete r[i])}return u(o({},e),{headers:r,query:s})}Xo.moveHeadersToQuery=h8});var bv=p(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.prepareRequest=void 0;var y8=Sp(),g8=Or();function _8(e){e=typeof e.clone=="function"?e.clone():y8.cloneRequest(e);for(let t of Object.keys(e.headers))g8.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e}Zo.prepareRequest=_8});var vv=p(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.toDate=ws.iso8601=void 0;function w8(e){return Sv(e).toISOString().replace(/\.\d{3}Z$/,"Z")}ws.iso8601=w8;function Sv(e){return typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e}ws.toDate=Sv});var xv=p(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.SignatureV4=void 0;var ec=Uo(),Xe=Or(),tc=yp(),Ev=mv(),b8=hv(),vp=gv(),S8=_v(),v8=wv(),Av=bv(),E8=vv(),Cv=class{constructor({applyChecksum:t,credentials:n,region:r,service:s,sha256:i,uriEscapePath:a=!0}){this.service=s,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=A8(r),this.credentialProvider=C8(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:s=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:c,signingRegion:l,signingService:m}=n,f=await this.credentialProvider(),g=l!=null?l:await this.regionProvider(),{longDate:h,shortDate:_}=nc(r);if(s>Xe.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let b=tc.createScope(_,g,m!=null?m:this.service),E=v8.moveHeadersToQuery(Av.prepareRequest(t),{unhoistableHeaders:a});f.sessionToken&&(E.query[Xe.TOKEN_QUERY_PARAM]=f.sessionToken),E.query[Xe.ALGORITHM_QUERY_PARAM]=Xe.ALGORITHM_IDENTIFIER,E.query[Xe.CREDENTIAL_QUERY_PARAM]=`${f.accessKeyId}/${b}`,E.query[Xe.AMZ_DATE_QUERY_PARAM]=h,E.query[Xe.EXPIRES_QUERY_PARAM]=s.toString(10);let D=Ev.getCanonicalHeaders(E,i,c);return E.query[Xe.SIGNED_HEADERS_QUERY_PARAM]=Tv(D),E.query[Xe.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,b,this.getSigningKey(f,g,_,m),this.createCanonicalRequest(E,D,await vp.getPayloadHash(t,this.sha256))),E}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:s,signingRegion:i,signingService:a}){let c=i!=null?i:await this.regionProvider(),{shortDate:l,longDate:m}=nc(r),f=tc.createScope(l,c,a!=null?a:this.service),g=await vp.getPayloadHash({headers:{},body:n},this.sha256),h=new this.sha256;h.update(t);let _=ec.toHex(await h.digest()),b=[Xe.EVENT_ALGORITHM_IDENTIFIER,m,f,s,_,g].join(`
11
+ `);return this.signString(b,{signingDate:r,signingRegion:c,signingService:a})}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:s}={}){let i=await this.credentialProvider(),a=r!=null?r:await this.regionProvider(),{shortDate:c}=nc(n),l=new this.sha256(await this.getSigningKey(i,a,c,s));return l.update(t),ec.toHex(await l.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:s,signingRegion:i,signingService:a}={}){let c=await this.credentialProvider(),l=i!=null?i:await this.regionProvider(),m=Av.prepareRequest(t),{longDate:f,shortDate:g}=nc(n),h=tc.createScope(g,l,a!=null?a:this.service);m.headers[Xe.AMZ_DATE_HEADER]=f,c.sessionToken&&(m.headers[Xe.TOKEN_HEADER]=c.sessionToken);let _=await vp.getPayloadHash(m,this.sha256);!S8.hasHeader(Xe.SHA256_HEADER,m.headers)&&this.applyChecksum&&(m.headers[Xe.SHA256_HEADER]=_);let b=Ev.getCanonicalHeaders(m,s,r),E=await this.getSignature(f,h,this.getSigningKey(c,l,g,a),this.createCanonicalRequest(m,b,_));return m.headers[Xe.AUTH_HEADER]=`${Xe.ALGORITHM_IDENTIFIER} Credential=${c.accessKeyId}/${h}, SignedHeaders=${Tv(b)}, Signature=${E}`,m}createCanonicalRequest(t,n,r){let s=Object.keys(n).sort();return`${t.method}
12
12
  ${this.getCanonicalPath(t)}
13
- ${X3.getCanonicalQuery(t)}
14
- ${i.map(s=>`${s}:${n[s]}`).join(`
13
+ ${b8.getCanonicalQuery(t)}
14
+ ${s.map(i=>`${i}:${n[i]}`).join(`
15
15
  `)}
16
16
 
17
- ${i.join(";")}
18
- ${r}`}async createStringToSign(t,n,r){let i=new this.sha256;i.update(r);let s=await i.digest();return`${Qe.ALGORITHM_IDENTIFIER}
17
+ ${s.join(";")}
18
+ ${r}`}async createStringToSign(t,n,r){let s=new this.sha256;s.update(r);let i=await s.digest();return`${Xe.ALGORITHM_IDENTIFIER}
19
19
  ${t}
20
20
  ${n}
21
- ${Jo.toHex(s)}`}getCanonicalPath({path:t}){return this.uriEscapePath?`/${encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/")}`:t}async getSignature(t,n,r,i){let s=await this.createStringToSign(t,n,i),a=new this.sha256(await r);return a.update(s),Jo.toHex(await a.digest())}getSigningKey(t,n,r,i){return Qo.getSigningKey(this.sha256,t,r,n,i||this.service)}};Zo.SignatureV4=uv;var Xo=e=>{let t=t8.iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},mv=e=>Object.keys(e).sort().join(";"),n8=e=>{if(typeof e=="string"){let t=Promise.resolve(e);return()=>t}else return e},r8=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}else return e}});var hv=h(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});var pv=he();pv.__exportStar(lp(),ec);pv.__exportStar(fv(),ec)});var _v=h(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.resolveSigV4AuthConfig=wi.resolveAwsAuthConfig=void 0;var i8=rt(),yv=hv(),s8=3e5,a8=e=>{let t=e.credentials?gv(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=vs(e.signer):s=()=>vs(e.region)().then(async a=>[await e.regionInfoProvider(a)||{},a]).then(([a,c])=>{let{signingRegion:l,signingService:m}=a;return e.signingRegion=e.signingRegion||l||c,e.signingName=e.signingName||m||e.serviceId,new yv.SignatureV4({credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n})}),u(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s})};wi.resolveAwsAuthConfig=a8;var o8=e=>{let t=e.credentials?gv(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=vs(e.signer):s=vs(new yv.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:n})),u(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s})};wi.resolveSigV4AuthConfig=o8;var vs=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},gv=e=>typeof e=="function"?i8.memoize(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<s8,t=>t.expiration!==void 0):vs(e)});var bv=h(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getSigV4AuthPlugin=Ut.getAwsAuthPlugin=Ut.awsAuthMiddlewareOptions=Ut.awsAuthMiddleware=void 0;var c8=kt(),l8=(e,t)=>Math.abs(d8(t).getTime()-e)>=3e5,d8=e=>new Date(Date.now()+e);function wv(e){return(t,n)=>async function(r){if(!c8.HttpRequest.isInstance(r.request))return t(r);let i=typeof e.signer=="function"?await e.signer():e.signer,s=await t(u(o({},r),{request:await i.sign(r.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})})),{headers:a}=s.response,c=a&&(a.date||a.Date);if(c){let l=Date.parse(c);l8(l,e.systemClockOffset)&&(e.systemClockOffset=l-Date.now())}return s}}Ut.awsAuthMiddleware=wv;Ut.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var u8=e=>({applyToStack:t=>{t.addRelativeTo(wv(e),Ut.awsAuthMiddlewareOptions)}});Ut.getAwsAuthPlugin=u8;Ut.getSigV4AuthPlugin=Ut.getAwsAuthPlugin});var Nn=h(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var Sv=he();Sv.__exportStar(_v(),tc);Sv.__exportStar(bv(),tc)});var rc=h(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.AssumeRoleCommand=void 0;var vv=on(),Ev=kn(),m8=j(),f8=Nn(),p8=M(),Av=class extends p8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(m8.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(f8.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:vv.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:vv.AssumeRoleResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Ev.serializeAws_queryAssumeRoleCommand(t,n)}deserialize(t,n){return Ev.deserializeAws_queryAssumeRoleCommand(t,n)}};nc.AssumeRoleCommand=Av});var sc=h(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.AssumeRoleWithWebIdentityCommand=void 0;var Cv=on(),Tv=kn(),h8=j(),y8=M(),xv=class extends y8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(h8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:Cv.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:Cv.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Tv.serializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}deserialize(t,n){return Tv.deserializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}};ic.AssumeRoleWithWebIdentityCommand=xv});var yp=h(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.decorateDefaultCredentialProvider=un.getDefaultRoleAssumerWithWebIdentity=un.getDefaultRoleAssumer=void 0;var g8=rc(),_8=sc(),Iv="us-east-1",Rv=e=>typeof e!="function"?e===void 0?Iv:e:async()=>{try{return await e()}catch(t){return Iv}},w8=(e,t)=>{let n,r;return async(i,s)=>{if(r=i,!n){let{logger:c,region:l,requestHandler:m}=e;n=new t(o({logger:c,credentialDefaultProvider:()=>async()=>r,region:Rv(l||e.region)},m?{requestHandler:m}:{}))}let{Credentials:a}=await n.send(new g8.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}}};un.getDefaultRoleAssumer=w8;var b8=(e,t)=>{let n;return async r=>{if(!n){let{logger:s,region:a,requestHandler:c}=e;n=new t(o({logger:s,region:Rv(a||e.region)},c?{requestHandler:c}:{}))}let{Credentials:i}=await n.send(new _8.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}}};un.getDefaultRoleAssumerWithWebIdentity=b8;var S8=e=>t=>e(o({roleAssumer:un.getDefaultRoleAssumer(t,t.stsClientCtor),roleAssumerWithWebIdentity:un.getDefaultRoleAssumerWithWebIdentity(t,t.stsClientCtor)},t));un.decorateDefaultCredentialProvider=S8});var Dv=h(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.resolveCustomEndpointsConfig=void 0;var v8=e=>{var t;return u(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:E8(e),isCustomEndpoint:!0})};ac.resolveCustomEndpointsConfig=v8;var E8=e=>{let{endpoint:t,urlParser:n}=e;if(typeof t=="string"){let r=Promise.resolve(n(t));return()=>r}else if(typeof t=="object"){let r=Promise.resolve(t);return()=>r}return t}});var kv=h(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.resolveEndpointsConfig=void 0;var A8=e=>{var t;return u(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:e.endpoint?C8(e):()=>T8(e),isCustomEndpoint:!!e.endpoint})};oc.resolveEndpointsConfig=A8;var C8=e=>{let{endpoint:t,urlParser:n}=e;if(typeof t=="string"){let r=Promise.resolve(n(t));return()=>r}else if(typeof t=="object"){let r=Promise.resolve(t);return()=>r}return t},T8=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{hostname:s}=(t=await e.regionInfoProvider(r))!==null&&t!==void 0?t:{};if(!s)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${s}`)}});var Nv=h(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.resolveRegionConfig=_t.NODE_REGION_CONFIG_FILE_OPTIONS=_t.NODE_REGION_CONFIG_OPTIONS=_t.REGION_INI_NAME=_t.REGION_ENV_NAME=void 0;_t.REGION_ENV_NAME="AWS_REGION";_t.REGION_INI_NAME="region";_t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[_t.REGION_ENV_NAME],configFileSelector:e=>e[_t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};_t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"};var x8=e=>{if(!e.region)throw new Error("Region is missing");return u(o({},e),{region:I8(e.region)})};_t.resolveRegionConfig=x8;var I8=e=>{if(typeof e=="string"){let t=Promise.resolve(e);return()=>t}return e}});var qr=h(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var gp=he();gp.__exportStar(Dv(),Es);gp.__exportStar(kv(),Es);gp.__exportStar(Nv(),Es)});var _p=h(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.fromEnv=it.ENV_EXPIRATION=it.ENV_SESSION=it.ENV_SECRET=it.ENV_KEY=void 0;var R8=rt();it.ENV_KEY="AWS_ACCESS_KEY_ID";it.ENV_SECRET="AWS_SECRET_ACCESS_KEY";it.ENV_SESSION="AWS_SESSION_TOKEN";it.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";function D8(){return()=>{let e=process.env[it.ENV_KEY],t=process.env[it.ENV_SECRET],n=process.env[it.ENV_EXPIRATION];return e&&t?Promise.resolve({accessKeyId:e,secretAccessKey:t,sessionToken:process.env[it.ENV_SESSION],expiration:n?new Date(n):void 0}):Promise.reject(new R8.CredentialsProviderError("Unable to find environment variable credentials."))}}it.fromEnv=D8});var bp=h(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.httpRequest=void 0;var wp=rt(),k8=require("buffer"),N8=require("http");function P8(e){return new Promise((t,n)=>{let r=N8.request(o({method:"GET"},e));r.on("error",i=>{n(Object.assign(new wp.ProviderError("Unable to connect to instance metadata service"),i)),r.destroy()}),r.on("timeout",()=>{n(new wp.ProviderError("TimeoutError from instance metadata service")),r.destroy()}),r.on("response",i=>{let{statusCode:s=400}=i;(s<200||300<=s)&&(n(Object.assign(new wp.ProviderError("Error response received from instance metadata service"),{statusCode:s})),r.destroy());let a=[];i.on("data",c=>{a.push(c)}),i.on("end",()=>{t(k8.Buffer.concat(a)),r.destroy()})}),r.end()})}cc.httpRequest=P8});var Sp=h(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.fromImdsCredentials=bi.isImdsCredentials=void 0;var L8=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";bi.isImdsCredentials=L8;var q8=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});bi.fromImdsCredentials=q8});var lc=h(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.providerConfigFromInit=mn.DEFAULT_MAX_RETRIES=mn.DEFAULT_TIMEOUT=void 0;mn.DEFAULT_TIMEOUT=1e3;mn.DEFAULT_MAX_RETRIES=0;var M8=({maxRetries:e=mn.DEFAULT_MAX_RETRIES,timeout:t=mn.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});mn.providerConfigFromInit=M8});var vp=h(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.retry=void 0;var O8=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};dc.retry=O8});var Lv=h($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.fromContainerMetadata=$e.ENV_CMDS_AUTH_TOKEN=$e.ENV_CMDS_RELATIVE_URI=$e.ENV_CMDS_FULL_URI=void 0;var uc=rt(),z8=require("url"),j8=bp(),Pv=Sp(),U8=lc(),B8=vp();$e.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";$e.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";$e.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var F8=(e={})=>{let{timeout:t,maxRetries:n}=U8.providerConfigFromInit(e);return()=>B8.retry(async()=>{let r=await W8(),i=JSON.parse(await G8(t,r));if(!Pv.isImdsCredentials(i))throw new uc.CredentialsProviderError("Invalid response received from instance metadata service.");return Pv.fromImdsCredentials(i)},n)};$e.fromContainerMetadata=F8;var G8=async(e,t)=>(process.env[$e.ENV_CMDS_AUTH_TOKEN]&&(t.headers=u(o({},t.headers),{Authorization:process.env[$e.ENV_CMDS_AUTH_TOKEN]})),(await j8.httpRequest(u(o({},t),{timeout:e}))).toString()),$8="169.254.170.2",K8={localhost:!0,"127.0.0.1":!0},V8={"http:":!0,"https:":!0},W8=async()=>{if(process.env[$e.ENV_CMDS_RELATIVE_URI])return{hostname:$8,path:process.env[$e.ENV_CMDS_RELATIVE_URI]};if(process.env[$e.ENV_CMDS_FULL_URI]){let e=z8.parse(process.env[$e.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in K8))throw new uc.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in V8))throw new uc.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return u(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new uc.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${$e.ENV_CMDS_RELATIVE_URI} or ${$e.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var zv=h(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.fromInstanceMetadata=void 0;var H8=rt(),Ep=bp(),qv=Sp(),Y8=lc(),Mv=vp(),Ap="169.254.169.254",Ov="/latest/meta-data/iam/security-credentials/",J8="/latest/api/token",Q8=(e={})=>{let t=!1,{timeout:n,maxRetries:r}=Y8.providerConfigFromInit(e),i=async(s,a)=>{let c=(await Mv.retry(async()=>{let l;try{l=await Z8(a)}catch(m){throw m.statusCode===401&&(t=!1),m}return l},s)).trim();return Mv.retry(async()=>{let l;try{l=await e6(c,a)}catch(m){throw m.statusCode===401&&(t=!1),m}return l},s)};return async()=>{if(t)return i(r,{timeout:n});{let s;try{s=(await X8({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,{timeout:n})}return i(r,{timeout:n,headers:{"x-aws-ec2-metadata-token":s}})}}};mc.fromInstanceMetadata=Q8;var X8=async e=>Ep.httpRequest(u(o({},e),{host:Ap,path:J8,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),Z8=async e=>(await Ep.httpRequest(u(o({},e),{host:Ap,path:Ov}))).toString(),e6=async(e,t)=>{let n=JSON.parse((await Ep.httpRequest(u(o({},t),{host:Ap,path:Ov+e}))).toString());if(!qv.isImdsCredentials(n))throw new H8.CredentialsProviderError("Invalid response received from instance metadata service.");return qv.fromImdsCredentials(n)}});var Tp=h(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Cp=he();Cp.__exportStar(Lv(),As);Cp.__exportStar(zv(),As);Cp.__exportStar(lc(),As)});var xp=h(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.fromWebToken=void 0;var t6=rt(),n6=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:i,policyArns:s,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l)throw new t6.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:n!=null?n:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:i,PolicyArns:s,Policy:a,DurationSeconds:c})};fc.fromWebToken=n6});var jv=h(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.fromTokenFile=void 0;var r6=rt(),i6=require("fs"),s6=xp(),a6="AWS_WEB_IDENTITY_TOKEN_FILE",o6="AWS_ROLE_ARN",c6="AWS_ROLE_SESSION_NAME",l6=(e={})=>async()=>d6(e);pc.fromTokenFile=l6;var d6=e=>{var t,n,r;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[a6],s=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[o6],a=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[c6];if(!i||!s)throw new r6.CredentialsProviderError("Web identity configuration not specified");return s6.fromWebToken(u(o({},e),{webIdentityToken:i6.readFileSync(i,{encoding:"ascii"}),roleArn:s,roleSessionName:a}))()}});var Ip=h(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});var Uv=he();Uv.__exportStar(jv(),hc);Uv.__exportStar(xp(),hc)});var Cs=h(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.getHomeDir=wt.loadSharedConfigFiles=wt.ENV_CONFIG_PATH=wt.ENV_CREDENTIALS_PATH=void 0;var u6=require("fs"),m6=require("os"),Rp=require("path");wt.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";wt.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var Bv=()=>({}),f6=(e={})=>{let{filepath:t=process.env[wt.ENV_CREDENTIALS_PATH]||Rp.join(wt.getHomeDir(),".aws","credentials"),configFilepath:n=process.env[wt.ENV_CONFIG_PATH]||Rp.join(wt.getHomeDir(),".aws","config")}=e;return Promise.all([Gv(n).then(Fv).then(h6).catch(Bv),Gv(t).then(Fv).catch(Bv)]).then(r=>{let[i,s]=r;return{configFile:i,credentialsFile:s}})};wt.loadSharedConfigFiles=f6;var p6=/^profile\s(["'])?([^\1]+)\1$/,h6=e=>{let t={};for(let n of Object.keys(e)){let r;if(n==="default")t.default=e.default;else if(r=p6.exec(n)){let[i,s,a]=r;a&&(t[a]=e[n])}}return t},y6=["__proto__","profile __proto__"],Fv=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],y6.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},Gv=e=>new Promise((t,n)=>{u6.readFile(e,"utf8",(r,i)=>{r?n(r):t(i)})}),g6=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${Rp.sep}`}=process.env;return e||t||(n?`${r}${n}`:m6.homedir())};wt.getHomeDir=g6});var yc=h(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getMasterProfileName=bt.parseKnownFiles=bt.fromIni=bt.ENV_PROFILE=void 0;var _6=_p(),$v=Tp(),w6=Ip(),Ts=rt(),b6=Cs(),S6="default";bt.ENV_PROFILE="AWS_PROFILE";var Kv=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,v6=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,Vv=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,E6=e=>Vv(e)&&typeof e.source_profile=="string"&&typeof e.credential_source=="undefined",A6=e=>Vv(e)&&typeof e.credential_source=="string"&&typeof e.source_profile=="undefined",C6=(e={})=>async()=>{let t=await bt.parseKnownFiles(e);return Wv(bt.getMasterProfileName(e),t,e)};bt.fromIni=C6;var T6=async e=>{let{loadedConfig:t=b6.loadSharedConfigFiles(e)}=e,n=await t;return o(o({},n.configFile),n.credentialsFile)};bt.parseKnownFiles=T6;var x6=e=>e.profile||process.env[bt.ENV_PROFILE]||S6;bt.getMasterProfileName=x6;var Wv=async(e,t,n,r={})=>{let i=t[e];if(Object.keys(r).length>0&&Kv(i))return Hv(i);if(E6(i)||A6(i)){let{external_id:s,mfa_serial:a,role_arn:c,role_session_name:l="aws-sdk-js-"+Date.now(),source_profile:m,credential_source:f}=i;if(!n.roleAssumer)throw new Ts.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);if(m&&m in r)throw new Ts.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${bt.getMasterProfileName(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let g=m?Wv(m,t,n,u(o({},r),{[m]:!0})):I6(f,e)(),p={RoleArn:c,RoleSessionName:l,ExternalId:s};if(a){if(!n.mfaCodeProvider)throw new Ts.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);p.SerialNumber=a,p.TokenCode=await n.mfaCodeProvider(a)}return n.roleAssumer(await g,p)}if(Kv(i))return Hv(i);if(v6(i))return R6(i,n);throw new Ts.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)},I6=(e,t)=>{let n={EcsContainer:$v.fromContainerMetadata,Ec2InstanceMetadata:$v.fromInstanceMetadata,Environment:_6.fromEnv};if(e in n)return n[e]();throw new Ts.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)},Hv=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),R6=async(e,t)=>w6.fromTokenFile({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})()});var Jv=h(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.fromProcess=Si.ENV_PROFILE=void 0;var Yv=yc(),Dp=rt(),D6=require("child_process");Si.ENV_PROFILE="AWS_PROFILE";var k6=(e={})=>async()=>{let t=await Yv.parseKnownFiles(e);return N6(Yv.getMasterProfileName(e),t)};Si.fromProcess=k6;var N6=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0)return await P6(r).then(i=>{let s;try{s=JSON.parse(i)}catch(p){throw Error(`Profile ${e} credential_process returned invalid JSON.`)}let{Version:a,AccessKeyId:c,SecretAccessKey:l,SessionToken:m,Expiration:f}=s;if(a!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(c===void 0||l===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);let g;if(f){let p=new Date;if(new Date(f)<p)throw Error(`Profile ${e} credential_process returned expired credentials.`);g=Math.floor(new Date(f).valueOf()/1e3)}return{accessKeyId:c,secretAccessKey:l,sessionToken:m,expirationUnix:g}}).catch(i=>{throw new Dp.CredentialsProviderError(i.message)});throw new Dp.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Dp.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)},P6=e=>new Promise(function(t,n){D6.exec(e,(r,i)=>{if(r){n(r);return}t(i.trim())})})});var Qv=h((sue,L6)=>{L6.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0",tslib:"^2.0.0"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",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 gc=h(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.fromString=vi.fromArrayBuffer=void 0;var q6=fp(),kp=require("buffer"),M6=(e,t=0,n=e.byteLength-t)=>{if(!q6.isArrayBuffer(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return kp.Buffer.from(e,t,n)};vi.fromArrayBuffer=M6;var O6=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?kp.Buffer.from(e,t):kp.Buffer.from(e)};vi.fromString=O6});var wc=h(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.Hash=void 0;var Np=gc(),z6=require("buffer"),Xv=require("crypto"),Zv=class{constructor(t,n){this.hash=n?Xv.createHmac(t,eE(n)):Xv.createHash(t)}update(t,n){this.hash.update(eE(t,n))}digest(){return Promise.resolve(this.hash.digest())}};_c.Hash=Zv;function eE(e,t){return z6.Buffer.isBuffer(e)?e:typeof e=="string"?Np.fromString(e,t):ArrayBuffer.isView(e)?Np.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength):Np.fromArrayBuffer(e)}});var tE=h(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.getRetryPlugin=fn.retryMiddlewareOptions=fn.retryMiddleware=void 0;var j6=e=>(t,n)=>async r=>{let i=await e.retryStrategy();return(i==null?void 0:i.mode)&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)};fn.retryMiddleware=j6;fn.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var U6=e=>({applyToStack:t=>{t.add(fn.retryMiddleware(e),fn.retryMiddlewareOptions)}});fn.getRetryPlugin=U6});var xs=h(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.REQUEST_HEADER=Me.INVOCATION_ID_HEADER=Me.NO_RETRY_INCREMENT=Me.TIMEOUT_RETRY_COST=Me.RETRY_COST=Me.INITIAL_RETRY_TOKENS=Me.THROTTLING_RETRY_DELAY_BASE=Me.MAXIMUM_RETRY_DELAY=Me.DEFAULT_RETRY_DELAY_BASE=void 0;Me.DEFAULT_RETRY_DELAY_BASE=100;Me.MAXIMUM_RETRY_DELAY=20*1e3;Me.THROTTLING_RETRY_DELAY_BASE=500;Me.INITIAL_RETRY_TOKENS=500;Me.RETRY_COST=5;Me.TIMEOUT_RETRY_COST=10;Me.NO_RETRY_INCREMENT=1;Me.INVOCATION_ID_HEADER="amz-sdk-invocation-id";Me.REQUEST_HEADER="amz-sdk-request"});var rE=h(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.getOmitRetryHeadersPlugin=pn.omitRetryHeadersMiddlewareOptions=pn.omitRetryHeadersMiddleware=void 0;var B6=kt(),nE=xs(),F6=()=>e=>async t=>{let{request:n}=t;return B6.HttpRequest.isInstance(n)&&(delete n.headers[nE.INVOCATION_ID_HEADER],delete n.headers[nE.REQUEST_HEADER]),e(t)};pn.omitRetryHeadersMiddleware=F6;pn.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var G6=e=>({applyToStack:t=>{t.addRelativeTo(pn.omitRetryHeadersMiddleware(),pn.omitRetryHeadersMiddlewareOptions)}});pn.getOmitRetryHeadersPlugin=G6});var iE=h(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.TRANSIENT_ERROR_STATUS_CODES=hn.TRANSIENT_ERROR_CODES=hn.THROTTLING_ERROR_CODES=hn.CLOCK_SKEW_ERROR_CODES=void 0;hn.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];hn.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];hn.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];hn.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var Sc=h(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.isTransientError=yn.isThrottlingError=yn.isClockSkewError=yn.isRetryableByTrait=void 0;var bc=iE(),$6=e=>e.$retryable!==void 0;yn.isRetryableByTrait=$6;var K6=e=>bc.CLOCK_SKEW_ERROR_CODES.includes(e.name);yn.isClockSkewError=K6;var V6=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||bc.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==!0};yn.isThrottlingError=V6;var W6=e=>{var t;return bc.TRANSIENT_ERROR_CODES.includes(e.name)||bc.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};yn.isTransientError=W6});var Is=h(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.DEFAULT_RETRY_MODE=Pn.DEFAULT_MAX_ATTEMPTS=Pn.RETRY_MODES=void 0;var sE;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(sE=Pn.RETRY_MODES||(Pn.RETRY_MODES={}));Pn.DEFAULT_MAX_ATTEMPTS=3;Pn.DEFAULT_RETRY_MODE=sE.STANDARD});var aE=h(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.getDefaultRetryQuota=void 0;var Pp=xs(),H6=(e,t)=>{var n,r,i;let s=e,a=(n=t==null?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:Pp.NO_RETRY_INCREMENT,c=(r=t==null?void 0:t.retryCost)!==null&&r!==void 0?r:Pp.RETRY_COST,l=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:Pp.TIMEOUT_RETRY_COST,m=e,f=S=>S.name==="TimeoutError"?l:c,g=S=>f(S)<=m;return Object.freeze({hasRetryTokens:g,retrieveRetryTokens:S=>{if(!g(S))throw new Error("No retry token available");let E=f(S);return m-=E,E},releaseRetryTokens:S=>{m+=S!=null?S:a,m=Math.min(m,s)}})};vc.getDefaultRetryQuota=H6});var Lp=h(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.defaultDelayDecider=void 0;var Y6=xs(),J6=(e,t)=>Math.floor(Math.min(Y6.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));Ec.defaultDelayDecider=J6});var qp=h(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.defaultRetryDecider=void 0;var Ac=Sc(),Q6=e=>e?Ac.isRetryableByTrait(e)||Ac.isClockSkewError(e)||Ac.isThrottlingError(e)||Ac.isTransientError(e):!1;Cc.defaultRetryDecider=Q6});var xc=h(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.StandardRetryStrategy=void 0;var oE=kt(),X6=Sc(),Z6=Rf(),cE=Is(),Rs=xs(),e4=aE(),t4=Lp(),n4=qp(),lE=class{constructor(t,n){var r,i,s;this.maxAttemptsProvider=t,this.mode=cE.RETRY_MODES.STANDARD,this.retryDecider=(r=n==null?void 0:n.retryDecider)!==null&&r!==void 0?r:n4.defaultRetryDecider,this.delayDecider=(i=n==null?void 0:n.delayDecider)!==null&&i!==void 0?i:t4.defaultDelayDecider,this.retryQuota=(s=n==null?void 0:n.retryQuota)!==null&&s!==void 0?s:e4.getDefaultRetryQuota(Rs.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(n){t=cE.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,n,r){let i,s=0,a=0,c=await this.getMaxAttempts(),{request:l}=n;for(oE.HttpRequest.isInstance(l)&&(l.headers[Rs.INVOCATION_ID_HEADER]=Z6.v4());;)try{oE.HttpRequest.isInstance(l)&&(l.headers[Rs.REQUEST_HEADER]=`attempt=${s+1}; max=${c}`),(r==null?void 0:r.beforeRequest)&&await r.beforeRequest();let{response:m,output:f}=await t(n);return(r==null?void 0:r.afterRequest)&&r.afterRequest(m),this.retryQuota.releaseRetryTokens(i),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=a,{response:m,output:f}}catch(m){let f=r4(m);if(s++,this.shouldRetry(f,s,c)){i=this.retryQuota.retrieveRetryTokens(f);let g=this.delayDecider(X6.isThrottlingError(f)?Rs.THROTTLING_RETRY_DELAY_BASE:Rs.DEFAULT_RETRY_DELAY_BASE,s);a+=g,await new Promise(p=>setTimeout(p,g));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=a,f}}};Tc.StandardRetryStrategy=lE;var r4=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 Mp=h(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.DefaultRateLimiter=void 0;var i4=Sc(),dE=class{constructor(t){var n,r,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=(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=(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 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(),i4.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))}};Ic.DefaultRateLimiter=dE});var Op=h(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.AdaptiveRetryStrategy=void 0;var s4=Is(),a4=Mp(),o4=xc(),uE=class extends o4.StandardRetryStrategy{constructor(t,n){let s=n!=null?n:{},{rateLimiter:r}=s,i=Yn(s,["rateLimiter"]);super(t,i);this.rateLimiter=r!=null?r:new a4.DefaultRateLimiter,this.mode=s4.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Rc.AdaptiveRetryStrategy=uE});var mE=h(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.NODE_RETRY_MODE_CONFIG_OPTIONS=Ie.CONFIG_RETRY_MODE=Ie.ENV_RETRY_MODE=Ie.resolveRetryConfig=Ie.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Ie.CONFIG_MAX_ATTEMPTS=Ie.ENV_MAX_ATTEMPTS=void 0;var c4=Op(),Dc=Is(),l4=xc();Ie.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";Ie.CONFIG_MAX_ATTEMPTS="max_attempts";Ie.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[Ie.ENV_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${Ie.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[Ie.CONFIG_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${Ie.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},default:Dc.DEFAULT_MAX_ATTEMPTS};var d4=e=>{let t=u4(e.maxAttempts);return u(o({},e),{maxAttempts:t,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:(e.retryMode||await e.retryModeProvider())===Dc.RETRY_MODES.ADAPTIVE?new c4.AdaptiveRetryStrategy(t):new l4.StandardRetryStrategy(t)})};Ie.resolveRetryConfig=d4;var u4=(e=Dc.DEFAULT_MAX_ATTEMPTS)=>{if(typeof e=="number"){let t=Promise.resolve(e);return()=>t}return e};Ie.ENV_RETRY_MODE="AWS_RETRY_MODE";Ie.CONFIG_RETRY_MODE="retry_mode";Ie.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Ie.ENV_RETRY_MODE],configFileSelector:e=>e[Ie.CONFIG_RETRY_MODE],default:Dc.DEFAULT_RETRY_MODE}});var pE=h(fE=>{"use strict";Object.defineProperty(fE,"__esModule",{value:!0})});var Mr=h(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});var gn=he();gn.__exportStar(tE(),Bt);gn.__exportStar(rE(),Bt);gn.__exportStar(xc(),Bt);gn.__exportStar(Op(),Bt);gn.__exportStar(Is(),Bt);gn.__exportStar(mE(),Bt);gn.__exportStar(Lp(),Bt);gn.__exportStar(Mp(),Bt);gn.__exportStar(qp(),Bt);gn.__exportStar(pE(),Bt)});var hE=h(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.fromEnv=void 0;var m4=rt(),f4=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new m4.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};kc.fromEnv=f4});var yE=h(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.fromSharedConfigFiles=Or.ENV_PROFILE=void 0;var p4=rt(),h4=Cs(),y4="default";Or.ENV_PROFILE="AWS_PROFILE";var g4=(e,r={})=>{var i=r,{preferredFile:t="config"}=i,n=Yn(i,["preferredFile"]);return async()=>{let{loadedConfig:s=h4.loadSharedConfigFiles(n),profile:a=process.env[Or.ENV_PROFILE]||y4}=n,{configFile:c,credentialsFile:l}=await s,m=l[a]||{},f=c[a]||{},g=t==="config"?o(o({},m),f):o(o({},f),m);try{let p=e(g);if(p===void 0)throw new Error;return p}catch(p){throw new p4.CredentialsProviderError(p.message||`Cannot load config for profile ${a} in SDK configuration files with getter: ${e}`)}}};Or.fromSharedConfigFiles=g4});var gE=h(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.fromStatic=void 0;var _4=rt(),w4=e=>typeof e=="function",b4=e=>w4(e)?async()=>e():_4.fromStatic(e);Nc.fromStatic=b4});var wE=h(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.loadConfig=void 0;var _E=rt(),S4=hE(),v4=yE(),E4=gE(),A4=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>_E.memoize(_E.chain(S4.fromEnv(e),v4.fromSharedConfigFiles(t,r),E4.fromStatic(n)));Pc.loadConfig=A4});var Ds=h(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var C4=he();C4.__exportStar(wE(),zp)});var Up=h(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.buildQueryString=void 0;var jp=mp();function T4(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=jp.escapeUri(n),Array.isArray(r))for(let i=0,s=r.length;i<s;i++)t.push(`${n}=${jp.escapeUri(r[i])}`);else{let i=n;(r||typeof r=="string")&&(i+=`=${jp.escapeUri(r)}`),t.push(i)}}return t.join("&")}Lc.buildQueryString=T4});var bE=h(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.NODEJS_TIMEOUT_ERROR_CODES=void 0;qc.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var Bp=h(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.getTransformedHeaders=void 0;var x4=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};Mc.getTransformedHeaders=x4});var SE=h(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.setConnectionTimeout=void 0;var I4=(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)})}})};Oc.setConnectionTimeout=I4});var vE=h(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.setSocketTimeout=void 0;var R4=(e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})};zc.setSocketTimeout=R4});var Fp=h(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.writeRequestBody=void 0;var D4=require("stream");function k4(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{EE(e,t.body)}):EE(e,t.body)}jc.writeRequestBody=k4;function EE(e,t){t instanceof D4.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var xE=h(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.NodeHttpHandler=void 0;var N4=kt(),P4=Up(),AE=require("http"),CE=require("https"),L4=bE(),q4=Bp(),M4=SE(),O4=vE(),z4=Fp(),TE=class{constructor({connectionTimeout:t,socketTimeout:n,httpAgent:r,httpsAgent:i}={}){this.metadata={handlerProtocol:"http/1.1"},this.connectionTimeout=t,this.socketTimeout=n;let s=!0,a=50;this.httpAgent=r||new AE.Agent({keepAlive:s,maxSockets:a}),this.httpsAgent=i||new CE.Agent({keepAlive:s,maxSockets:a})}destroy(){this.httpAgent.destroy(),this.httpsAgent.destroy()}handle(t,{abortSignal:n}={}){return new Promise((r,i)=>{if(n==null?void 0:n.aborted){let f=new Error("Request aborted");f.name="AbortError",i(f);return}let s=t.protocol==="https:",a=P4.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.httpsAgent:this.httpAgent},m=(s?CE.request:AE.request)(c,f=>{let g=new N4.HttpResponse({statusCode:f.statusCode||-1,headers:q4.getTransformedHeaders(f.headers),body:f});r({response:g})});m.on("error",f=>{L4.NODEJS_TIMEOUT_ERROR_CODES.includes(f.code)?i(Object.assign(f,{name:"TimeoutError"})):i(f)}),M4.setConnectionTimeout(m,i,this.connectionTimeout),O4.setSocketTimeout(m,i,this.socketTimeout),n&&(n.onabort=()=>{m.abort();let f=new Error("Request aborted");f.name="AbortError",i(f)}),z4.writeRequestBody(m,t)})}};Uc.NodeHttpHandler=TE});var RE=h(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.NodeHttp2Handler=void 0;var j4=kt(),U4=Up(),Gp=require("http2"),B4=Bp(),F4=Fp(),IE=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?void 0:n.aborted){s=!0;let R=new Error("Request aborted");R.name="AbortError",i(R);return}let{hostname:a,method:c,port:l,protocol:m,path:f,query:g}=t,p=`${m}//${a}${l?`:${l}`:""}`,_=this.getSession(p,this.disableConcurrentStreams||!1),S=R=>{this.disableConcurrentStreams&&this.destroySession(_),s=!0,i(R)},E=U4.buildQueryString(g||{}),k=_.request(u(o({},t.headers),{[Gp.constants.HTTP2_HEADER_PATH]:E?`${f}?${E}`:f,[Gp.constants.HTTP2_HEADER_METHOD]:c}));k.on("response",R=>{let K=new j4.HttpResponse({statusCode:R[":status"]||-1,headers:B4.getTransformedHeaders(R),body:k});s=!0,r({response:K}),this.disableConcurrentStreams&&(_.close(),this.deleteSessionFromCache(p,_))});let D=this.requestTimeout;D&&k.setTimeout(D,()=>{k.close();let R=new Error(`Stream timed out because of no activity for ${D} ms`);R.name="TimeoutError",S(R)}),n&&(n.onabort=()=>{k.close();let R=new Error("Request aborted");R.name="AbortError",S(R)}),k.on("frameError",S),k.on("error",S),k.on("goaway",S),k.on("aborted",S),k.on("close",()=>{this.disableConcurrentStreams&&_.destroy(),s||S(new Error("Unexpected error: http2 request did not get a response"))}),F4.writeRequestBody(k,t)})}getSession(t,n){let r=this.sessionCache,i=r.get(t)||[];if(i.length>0&&!n)return i[0];let s=Gp.connect(t),a=()=>{this.destroySession(s),this.deleteSessionFromCache(t,s)};s.on("goaway",a),s.on("error",a),s.on("frameError",a);let c=this.sessionTimeout;return c&&s.setTimeout(c,a),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))}};Bc.NodeHttp2Handler=IE});var kE=h(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.Collector=void 0;var G4=require("stream"),DE=class extends G4.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};Fc.Collector=DE});var NE=h(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.streamCollector=void 0;var $4=kE(),K4=e=>new Promise((t,n)=>{let r=new $4.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)})});Gc.streamCollector=K4});var $c=h(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var $p=he();$p.__exportStar(xE(),ks);$p.__exportStar(RE(),ks);$p.__exportStar(NE(),ks)});var Kc=h(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.toBase64=Ei.fromBase64=void 0;var PE=gc();function V4(e){let t=PE.fromString(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}Ei.fromBase64=V4;function W4(e){return PE.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("base64")}Ei.toBase64=W4});var Wc=h(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.calculateBodyLength=void 0;var H4=require("fs");function Y4(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")return H4.lstatSync(e.path).size}Vc.calculateBodyLength=Y4});var Hc=h(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.defaultUserAgent=_n.UA_APP_ID_INI_NAME=_n.UA_APP_ID_ENV_NAME=void 0;var J4=Ds(),LE=require("os"),Kp=require("process");_n.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";_n.UA_APP_ID_INI_NAME="sdk-ua-app-id";var Q4=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],[`os/${LE.platform()}`,LE.release()],["lang/js"],["md/nodejs",`${Kp.versions.node}`]];e&&n.push([`api/${e}`,t]),Kp.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${Kp.env.AWS_EXECUTION_ENV}`]);let r=J4.loadConfig({environmentVariableSelector:s=>s[_n.UA_APP_ID_ENV_NAME],configFileSelector:s=>s[_n.UA_APP_ID_INI_NAME],default:void 0})(),i;return async()=>{if(!i){let s=await r;i=s?[...n,[`app/${s}`]]:[...n]}return i}};_n.defaultUserAgent=Q4});var Yc=h(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.toUtf8=Ai.fromUtf8=void 0;var qE=gc(),X4=e=>{let t=qE.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};Ai.fromUtf8=X4;var Z4=e=>qE.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8");Ai.toUtf8=Z4});var OE=h(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.defaultRegionInfoProvider=void 0;var ME="portal.sso.{region}.amazonaws.com",eY="portal.sso.{region}.amazonaws.com.cn",tY="portal.sso.{region}.c2s.ic.gov",nY="portal.sso.{region}.sc2s.sgov.gov",rY="portal.sso.{region}.amazonaws.com",iY=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","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"]),sY=new Set(["cn-north-1","cn-northwest-1"]),aY=new Set(["us-iso-east-1"]),oY=new Set(["us-isob-east-1"]),cY=new Set(["us-gov-east-1","us-gov-west-1"]),lY=(e,t)=>{let n;switch(e){case"ap-southeast-1":n={hostname:"portal.sso.ap-southeast-1.amazonaws.com",partition:"aws",signingRegion:"ap-southeast-1"};break;case"ap-southeast-2":n={hostname:"portal.sso.ap-southeast-2.amazonaws.com",partition:"aws",signingRegion:"ap-southeast-2"};break;case"ca-central-1":n={hostname:"portal.sso.ca-central-1.amazonaws.com",partition:"aws",signingRegion:"ca-central-1"};break;case"eu-central-1":n={hostname:"portal.sso.eu-central-1.amazonaws.com",partition:"aws",signingRegion:"eu-central-1"};break;case"eu-west-1":n={hostname:"portal.sso.eu-west-1.amazonaws.com",partition:"aws",signingRegion:"eu-west-1"};break;case"eu-west-2":n={hostname:"portal.sso.eu-west-2.amazonaws.com",partition:"aws",signingRegion:"eu-west-2"};break;case"us-east-1":n={hostname:"portal.sso.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"portal.sso.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-west-2":n={hostname:"portal.sso.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:iY.has(e)&&(n={hostname:ME.replace("{region}",e),partition:"aws"}),sY.has(e)&&(n={hostname:eY.replace("{region}",e),partition:"aws-cn"}),aY.has(e)&&(n={hostname:tY.replace("{region}",e),partition:"aws-iso"}),oY.has(e)&&(n={hostname:nY.replace("{region}",e),partition:"aws-iso-b"}),cY.has(e)&&(n={hostname:rY.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:ME.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"awsssoportal"},n))};Jc.defaultRegionInfoProvider=lY});var zE=h(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.parseQueryString=void 0;function dY(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}Qc.parseQueryString=dY});var Zc=h(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.parseUrl=void 0;var uY=zE(),mY=e=>{let{hostname:t,pathname:n,port:r,protocol:i,search:s}=new URL(e),a;return s&&(a=uY.parseQueryString(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:a}};Xc.parseUrl=mY});var jE=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.ClientSharedValues=void 0;var fY=OE(),pY=Zc();el.ClientSharedValues={apiVersion:"2019-06-10",disableHostPrefix:!1,logger:{},regionInfoProvider:fY.defaultRegionInfoProvider,serviceId:"SSO",urlParser:pY.parseUrl}});var VE=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.ClientDefaultValues=void 0;var hY=he(),yY=hY.__importDefault(Qv()),UE=qr(),gY=wc(),BE=Mr(),Vp=Ds(),FE=$c(),GE=Kc(),_Y=Wc(),wY=Hc(),$E=Yc(),KE=jE();tl.ClientDefaultValues=u(o({},KE.ClientSharedValues),{runtime:"node",base64Decoder:GE.fromBase64,base64Encoder:GE.toBase64,bodyLengthChecker:_Y.calculateBodyLength,defaultUserAgentProvider:wY.defaultUserAgent({serviceId:KE.ClientSharedValues.serviceId,clientVersion:yY.default.version}),maxAttempts:Vp.loadConfig(BE.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:Vp.loadConfig(UE.NODE_REGION_CONFIG_OPTIONS,UE.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new FE.NodeHttpHandler,retryModeProvider:Vp.loadConfig(BE.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:gY.Hash.bind(null,"sha256"),streamCollector:FE.streamCollector,utf8Decoder:$E.fromUtf8,utf8Encoder:$E.toUtf8})});var nl=h(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.getContentLengthPlugin=Ln.contentLengthMiddlewareOptions=Ln.contentLengthMiddleware=void 0;var bY=kt(),WE="content-length";function HE(e){return t=>async n=>{let r=n.request;if(bY.HttpRequest.isInstance(r)){let{body:i,headers:s}=r;if(i&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(WE)===-1){let a=e(i);a!==void 0&&(r.headers=u(o({},r.headers),{[WE]:String(a)}))}}return t(u(o({},n),{request:r}))}}Ln.contentLengthMiddleware=HE;Ln.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var SY=e=>({applyToStack:t=>{t.add(HE(e.bodyLengthChecker),Ln.contentLengthMiddlewareOptions)}});Ln.getContentLengthPlugin=SY});var rl=h(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.getHostHeaderPlugin=Ft.hostHeaderMiddlewareOptions=Ft.hostHeaderMiddleware=Ft.resolveHostHeaderConfig=void 0;var vY=kt();function EY(e){return e}Ft.resolveHostHeaderConfig=EY;var AY=e=>t=>async n=>{if(!vY.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)};Ft.hostHeaderMiddleware=AY;Ft.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var CY=e=>({applyToStack:t=>{t.add(Ft.hostHeaderMiddleware(e),Ft.hostHeaderMiddlewareOptions)}});Ft.getHostHeaderPlugin=CY});var YE=h(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getLoggerPlugin=wn.loggerMiddlewareOptions=wn.loggerMiddleware=void 0;var TY=()=>(e,t)=>async n=>{let{clientName:r,commandName:i,inputFilterSensitiveLog:s,logger:a,outputFilterSensitiveLog:c}=t,l=await e(n);if(!a)return l;if(typeof a.info=="function"){let m=l.output,{$metadata:f}=m,g=Yn(m,["$metadata"]);a.info({clientName:r,commandName:i,input:s(n.input),output:c(g),metadata:f})}return l};wn.loggerMiddleware=TY;wn.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var xY=e=>({applyToStack:t=>{t.add(wn.loggerMiddleware(),wn.loggerMiddlewareOptions)}});wn.getLoggerPlugin=xY});var il=h(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var IY=he();IY.__exportStar(YE(),Wp)});var JE=h(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.resolveUserAgentConfig=void 0;function RY(e){return u(o({},e),{customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent})}sl.resolveUserAgentConfig=RY});var QE=h(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.UA_ESCAPE_REGEX=bn.SPACE=bn.X_AMZ_USER_AGENT=bn.USER_AGENT=void 0;bn.USER_AGENT="user-agent";bn.X_AMZ_USER_AGENT="x-amz-user-agent";bn.SPACE=" ";bn.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var XE=h(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.getUserAgentPlugin=Sn.getUserAgentMiddlewareOptions=Sn.userAgentMiddleware=void 0;var DY=kt(),ar=QE(),kY=e=>(t,n)=>async r=>{var i,s;let{request:a}=r;if(!DY.HttpRequest.isInstance(a))return t(r);let{headers:c}=a,l=((i=n==null?void 0:n.userAgent)===null||i===void 0?void 0:i.map(Hp))||[],m=(await e.defaultUserAgentProvider()).map(Hp),f=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Hp))||[],g=[...m,...l,...f].join(ar.SPACE),p=[...m.filter(_=>_.startsWith("aws-sdk-")),...f].join(ar.SPACE);return e.runtime!=="browser"?(p&&(c[ar.X_AMZ_USER_AGENT]=c[ar.X_AMZ_USER_AGENT]?`${c[ar.USER_AGENT]} ${p}`:p),c[ar.USER_AGENT]=g):c[ar.X_AMZ_USER_AGENT]=g,t(u(o({},r),{request:a}))};Sn.userAgentMiddleware=kY;var Hp=([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(ar.UA_ESCAPE_REGEX,"_")).join("/")};Sn.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var NY=e=>({applyToStack:t=>{t.add(Sn.userAgentMiddleware(e),Sn.getUserAgentMiddlewareOptions)}});Sn.getUserAgentPlugin=NY});var ol=h(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var ZE=he();ZE.__exportStar(JE(),al);ZE.__exportStar(XE(),al)});var Ns=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.SSOClient=void 0;var PY=VE(),eA=qr(),LY=nl(),tA=rl(),qY=il(),nA=Mr(),rA=ol(),MY=M(),iA=class extends MY.Client{constructor(t){let n=o(o({},PY.ClientDefaultValues),t),r=eA.resolveRegionConfig(n),i=eA.resolveEndpointsConfig(r),s=nA.resolveRetryConfig(i),a=tA.resolveHostHeaderConfig(s),c=rA.resolveUserAgentConfig(a);super(c);this.config=c,this.middlewareStack.use(nA.getRetryPlugin(this.config)),this.middlewareStack.use(LY.getContentLengthPlugin(this.config)),this.middlewareStack.use(tA.getHostHeaderPlugin(this.config)),this.middlewareStack.use(qY.getLoggerPlugin(this.config)),this.middlewareStack.use(rA.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};cl.SSOClient=iA});var Ti=h(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.LogoutRequest=ie.ListAccountsResponse=ie.ListAccountsRequest=ie.ListAccountRolesResponse=ie.RoleInfo=ie.ListAccountRolesRequest=ie.UnauthorizedException=ie.TooManyRequestsException=ie.ResourceNotFoundException=ie.InvalidRequestException=ie.GetRoleCredentialsResponse=ie.RoleCredentials=ie.GetRoleCredentialsRequest=ie.AccountInfo=void 0;var Ci=M(),OY;(function(e){e.filterSensitiveLog=t=>o({},t)})(OY=ie.AccountInfo||(ie.AccountInfo={}));var zY;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ci.SENSITIVE_STRING})})(zY=ie.GetRoleCredentialsRequest||(ie.GetRoleCredentialsRequest={}));var sA;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:Ci.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:Ci.SENSITIVE_STRING})})(sA=ie.RoleCredentials||(ie.RoleCredentials={}));var jY;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:sA.filterSensitiveLog(t.roleCredentials)})})(jY=ie.GetRoleCredentialsResponse||(ie.GetRoleCredentialsResponse={}));var UY;(function(e){e.filterSensitiveLog=t=>o({},t)})(UY=ie.InvalidRequestException||(ie.InvalidRequestException={}));var BY;(function(e){e.filterSensitiveLog=t=>o({},t)})(BY=ie.ResourceNotFoundException||(ie.ResourceNotFoundException={}));var FY;(function(e){e.filterSensitiveLog=t=>o({},t)})(FY=ie.TooManyRequestsException||(ie.TooManyRequestsException={}));var GY;(function(e){e.filterSensitiveLog=t=>o({},t)})(GY=ie.UnauthorizedException||(ie.UnauthorizedException={}));var $Y;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ci.SENSITIVE_STRING})})($Y=ie.ListAccountRolesRequest||(ie.ListAccountRolesRequest={}));var KY;(function(e){e.filterSensitiveLog=t=>o({},t)})(KY=ie.RoleInfo||(ie.RoleInfo={}));var VY;(function(e){e.filterSensitiveLog=t=>o({},t)})(VY=ie.ListAccountRolesResponse||(ie.ListAccountRolesResponse={}));var WY;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ci.SENSITIVE_STRING})})(WY=ie.ListAccountsRequest||(ie.ListAccountsRequest={}));var HY;(function(e){e.filterSensitiveLog=t=>o({},t)})(HY=ie.ListAccountsResponse||(ie.ListAccountsResponse={}));var YY;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ci.SENSITIVE_STRING})})(YY=ie.LogoutRequest||(ie.LogoutRequest={}))});var Ps=h(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.deserializeAws_restJson1LogoutCommand=Ke.deserializeAws_restJson1ListAccountsCommand=Ke.deserializeAws_restJson1ListAccountRolesCommand=Ke.deserializeAws_restJson1GetRoleCredentialsCommand=Ke.serializeAws_restJson1LogoutCommand=Ke.serializeAws_restJson1ListAccountsCommand=Ke.serializeAws_restJson1ListAccountRolesCommand=Ke.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var ll=kt(),dt=M(),JY=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},fl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(s==null?void 0: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}),m;return new ll.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:c,query:l,body:m})};Ke.serializeAws_restJson1GetRoleCredentialsCommand=JY;var QY=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},fl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(s==null?void 0: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}),m;return new ll.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:c,query:l,body:m})};Ke.serializeAws_restJson1ListAccountRolesCommand=QY;var XY=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},fl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(s==null?void 0: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()}),m;return new ll.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:c,query:l,body:m})};Ke.serializeAws_restJson1ListAccountsCommand=XY;var ZY=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},fl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(s==null?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}/logout`,l;return new ll.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:a,path:c,body:l})};Ke.serializeAws_restJson1LogoutCommand=ZY;var eJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return tJ(e,t);let n={$metadata:Se(e),roleCredentials:void 0},r=await zr(e.body,t);return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=dJ(r.roleCredentials,t)),Promise.resolve(n)};Ke.deserializeAws_restJson1GetRoleCredentialsCommand=eJ;var tJ=async(e,t)=>{let n=u(o({},e),{body:await zr(e.body,t)}),r,i="UnknownError";switch(i=pl(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await dl(n,t)),{name:i,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await Yp(n,t)),{name:i,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await ul(n,t)),{name:i,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await ml(n,t)),{name:i,$metadata:Se(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Se(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},nJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return rJ(e,t);let n={$metadata:Se(e),nextToken:void 0,roleList:void 0},r=await zr(e.body,t);return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=dt.expectString(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=mJ(r.roleList,t)),Promise.resolve(n)};Ke.deserializeAws_restJson1ListAccountRolesCommand=nJ;var rJ=async(e,t)=>{let n=u(o({},e),{body:await zr(e.body,t)}),r,i="UnknownError";switch(i=pl(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await dl(n,t)),{name:i,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await Yp(n,t)),{name:i,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await ul(n,t)),{name:i,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await ml(n,t)),{name:i,$metadata:Se(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Se(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},iJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return sJ(e,t);let n={$metadata:Se(e),accountList:void 0,nextToken:void 0},r=await zr(e.body,t);return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=lJ(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=dt.expectString(r.nextToken)),Promise.resolve(n)};Ke.deserializeAws_restJson1ListAccountsCommand=iJ;var sJ=async(e,t)=>{let n=u(o({},e),{body:await zr(e.body,t)}),r,i="UnknownError";switch(i=pl(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await dl(n,t)),{name:i,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await Yp(n,t)),{name:i,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await ul(n,t)),{name:i,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await ml(n,t)),{name:i,$metadata:Se(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Se(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},aJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return oJ(e,t);let n={$metadata:Se(e)};return await aA(e.body,t),Promise.resolve(n)};Ke.deserializeAws_restJson1LogoutCommand=aJ;var oJ=async(e,t)=>{let n=u(o({},e),{body:await zr(e.body,t)}),r,i="UnknownError";switch(i=pl(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await dl(n,t)),{name:i,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await ul(n,t)),{name:i,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await ml(n,t)),{name:i,$metadata:Se(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=u(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Se(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},dl=async(e,t)=>{let n={name:"InvalidRequestException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=dt.expectString(r.message)),n},Yp=async(e,t)=>{let n={name:"ResourceNotFoundException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=dt.expectString(r.message)),n},ul=async(e,t)=>{let n={name:"TooManyRequestsException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=dt.expectString(r.message)),n},ml=async(e,t)=>{let n={name:"UnauthorizedException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=dt.expectString(r.message)),n},cJ=(e,t)=>({accountId:dt.expectString(e.accountId),accountName:dt.expectString(e.accountName),emailAddress:dt.expectString(e.emailAddress)}),lJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:cJ(n,t)),dJ=(e,t)=>({accessKeyId:dt.expectString(e.accessKeyId),expiration:dt.expectNumber(e.expiration),secretAccessKey:dt.expectString(e.secretAccessKey),sessionToken:dt.expectString(e.sessionToken)}),uJ=(e,t)=>({accountId:dt.expectString(e.accountId),roleName:dt.expectString(e.roleName)}),mJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:uJ(n,t)),Se=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"]}},aA=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),fJ=(e,t)=>aA(e,t).then(n=>t.utf8Encoder(n)),fl=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),zr=(e,t)=>fJ(e,t).then(n=>n.length?JSON.parse(n):{}),pl=(e,t)=>{let n=(s,a)=>Object.keys(s).find(c=>c.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},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 Jp=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.GetRoleCredentialsCommand=void 0;var oA=Ti(),cA=Ps(),pJ=j(),hJ=M(),lA=class extends hJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(pJ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:oA.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:oA.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return cA.serializeAws_restJson1GetRoleCredentialsCommand(t,n)}deserialize(t,n){return cA.deserializeAws_restJson1GetRoleCredentialsCommand(t,n)}};hl.GetRoleCredentialsCommand=lA});var gl=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.ListAccountRolesCommand=void 0;var dA=Ti(),uA=Ps(),yJ=j(),gJ=M(),mA=class extends gJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(yJ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:dA.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:dA.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return uA.serializeAws_restJson1ListAccountRolesCommand(t,n)}deserialize(t,n){return uA.deserializeAws_restJson1ListAccountRolesCommand(t,n)}};yl.ListAccountRolesCommand=mA});var wl=h(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.ListAccountsCommand=void 0;var fA=Ti(),pA=Ps(),_J=j(),wJ=M(),hA=class extends wJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(_J.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:fA.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:fA.ListAccountsResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return pA.serializeAws_restJson1ListAccountsCommand(t,n)}deserialize(t,n){return pA.deserializeAws_restJson1ListAccountsCommand(t,n)}};_l.ListAccountsCommand=hA});var Qp=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.LogoutCommand=void 0;var bJ=Ti(),yA=Ps(),SJ=j(),vJ=M(),gA=class extends vJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(SJ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:bJ.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return yA.serializeAws_restJson1LogoutCommand(t,n)}deserialize(t,n){return yA.deserializeAws_restJson1LogoutCommand(t,n)}};bl.LogoutCommand=gA});var vl=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.SSO=void 0;var EJ=Ns(),AJ=Jp(),CJ=gl(),TJ=wl(),xJ=Qp(),_A=class extends EJ.SSOClient{getRoleCredentials(t,n,r){let i=new AJ.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 CJ.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 TJ.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 xJ.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)}};Sl.SSO=_A});var wA=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.paginateListAccountRoles=void 0;var IJ=vl(),RJ=Ns(),DJ=gl(),kJ=async(e,t,...n)=>await e.send(new DJ.ListAccountRolesCommand(t),...n),NJ=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*PJ(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 IJ.SSO)s=await NJ(e.client,t,...n);else if(e.client instanceof RJ.SSOClient)s=await kJ(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s,r=s.nextToken,i=!!r}return void 0}El.paginateListAccountRoles=PJ});var bA=h(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.paginateListAccounts=void 0;var LJ=vl(),qJ=Ns(),MJ=wl(),OJ=async(e,t,...n)=>await e.send(new MJ.ListAccountsCommand(t),...n),zJ=async(e,t,...n)=>await e.listAccounts(t,...n);async function*jJ(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 LJ.SSO)s=await zJ(e.client,t,...n);else if(e.client instanceof qJ.SSOClient)s=await OJ(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s,r=s.nextToken,i=!!r}return void 0}Al.paginateListAccounts=jJ});var vA=h(SA=>{"use strict";Object.defineProperty(SA,"__esModule",{value:!0})});var EA=h(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var UJ=he();UJ.__exportStar(Ti(),Xp)});var AA=h(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});var vn=he();vn.__exportStar(Ns(),Gt);vn.__exportStar(vl(),Gt);vn.__exportStar(Jp(),Gt);vn.__exportStar(gl(),Gt);vn.__exportStar(wA(),Gt);vn.__exportStar(wl(),Gt);vn.__exportStar(bA(),Gt);vn.__exportStar(Qp(),Gt);vn.__exportStar(vA(),Gt);vn.__exportStar(EA(),Gt)});var xA=h(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.fromSSO=jr.EXPIRE_WINDOW_MS=void 0;var CA=AA(),TA=yc(),xi=rt(),BJ=Cs(),FJ=require("crypto"),GJ=require("fs"),$J=require("path");jr.EXPIRE_WINDOW_MS=15*60*1e3;var Cl=!1,KJ=(e={})=>async()=>{let t=await TA.parseKnownFiles(e);return VJ(TA.getMasterProfileName(e),t,e)};jr.fromSSO=KJ;var VJ=async(e,t,n)=>{let r=t[e];if(!r)throw new xi.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`);let{sso_start_url:i,sso_account_id:s,sso_region:a,sso_role_name:c}=r;if(!i&&!s&&!a&&!c)throw new xi.CredentialsProviderError(`Profile ${e} is not configured with SSO credentials.`);if(!i||!s||!a||!c)throw new xi.CredentialsProviderError(`Profile ${e} does not have valid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,Cl);let m=FJ.createHash("sha1").update(i).digest("hex"),f=$J.join(BJ.getHomeDir(),".aws","sso","cache",`${m}.json`),g;try{if(g=JSON.parse(GJ.readFileSync(f,{encoding:"utf-8"})),new Date(g.expiresAt).getTime()-Date.now()<=jr.EXPIRE_WINDOW_MS)throw new Error("SSO token is expired.")}catch(K){throw new xi.CredentialsProviderError("The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws sso login with the corresponding profile.",Cl)}let{accessToken:p}=g,_=n.ssoClient||new CA.SSOClient({region:a}),S;try{S=await _.send(new CA.GetRoleCredentialsCommand({accountId:s,roleName:c,accessToken:p}))}catch(K){throw xi.CredentialsProviderError.from(K,Cl)}let{roleCredentials:{accessKeyId:E,secretAccessKey:k,sessionToken:D,expiration:R}={}}=S;if(!E||!k||!D||!R)throw new xi.CredentialsProviderError("SSO returns an invalid temporary credential.",Cl);return{accessKeyId:E,secretAccessKey:k,sessionToken:D,expiration:new Date(R)}}});var Zp=h(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.defaultProvider=Ur.ENV_IMDS_DISABLED=void 0;var WJ=_p(),Tl=Tp(),IA=yc(),HJ=Jv(),YJ=xA(),JJ=Ip(),xl=rt(),QJ=Cs();Ur.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var XJ=(e={})=>{let t=o({profile:process.env[IA.ENV_PROFILE]},e);t.loadedConfig||(t.loadedConfig=QJ.loadSharedConfigFiles(e));let n=[YJ.fromSSO(t),IA.fromIni(t),HJ.fromProcess(t),JJ.fromTokenFile(t),ZJ(t),async()=>{throw new xl.CredentialsProviderError("Could not load credentials from any providers",!1)}];t.profile||n.unshift(WJ.fromEnv());let r=xl.chain(...n);return xl.memoize(r,i=>i.expiration!==void 0&&i.expiration.getTime()-Date.now()<3e5,i=>i.expiration!==void 0)};Ur.defaultProvider=XJ;var ZJ=e=>process.env[Tl.ENV_CMDS_RELATIVE_URI]||process.env[Tl.ENV_CMDS_FULL_URI]?Tl.fromContainerMetadata(e):process.env[Ur.ENV_IMDS_DISABLED]?()=>Promise.reject(new xl.CredentialsProviderError("EC2 Instance Metadata Service access disabled")):Tl.fromInstanceMetadata(e)});var DA=h(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.defaultRegionInfoProvider=void 0;var RA="sts.{region}.amazonaws.com",e5="sts.{region}.amazonaws.com.cn",t5="sts.{region}.c2s.ic.gov",n5="sts.{region}.sc2s.sgov.gov",r5="sts.{region}.amazonaws.com",i5=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","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"]),s5=new Set(["cn-north-1","cn-northwest-1"]),a5=new Set(["us-iso-east-1"]),o5=new Set(["us-isob-east-1"]),c5=new Set(["us-gov-east-1","us-gov-west-1"]),l5=(e,t)=>{let n;switch(e){case"af-south-1":n={hostname:"sts.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"sts.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"sts.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"sts.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-northeast-3":n={hostname:"sts.ap-northeast-3.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"sts.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"sts.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"sts.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"aws-global":n={hostname:"sts.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"ca-central-1":n={hostname:"sts.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"sts.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"sts.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"sts.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"sts.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"sts.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"sts.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"sts.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"sts.eu-west-3.amazonaws.com",partition:"aws"};break;case"me-south-1":n={hostname:"sts.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-east-1":n={hostname:"sts.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"sts.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1-fips":n={hostname:"sts-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"sts.us-east-2.amazonaws.com",partition:"aws"};break;case"us-east-2-fips":n={hostname:"sts-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-gov-east-1":n={hostname:"sts.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-east-1-fips":n={hostname:"sts.us-gov-east-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-east-1"};break;case"us-gov-west-1":n={hostname:"sts.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1-fips":n={hostname:"sts.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"us-iso-east-1":n={hostname:"sts.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"sts.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"sts.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-1-fips":n={hostname:"sts-fips.us-west-1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"us-west-2":n={hostname:"sts.us-west-2.amazonaws.com",partition:"aws"};break;case"us-west-2-fips":n={hostname:"sts-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:i5.has(e)&&(n={hostname:RA.replace("{region}",e),partition:"aws"}),s5.has(e)&&(n={hostname:e5.replace("{region}",e),partition:"aws-cn"}),a5.has(e)&&(n={hostname:t5.replace("{region}",e),partition:"aws-iso"}),o5.has(e)&&(n={hostname:n5.replace("{region}",e),partition:"aws-iso-b"}),c5.has(e)&&(n={hostname:r5.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:RA.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"sts"},n))};Il.defaultRegionInfoProvider=l5});var kA=h(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.ClientSharedValues=void 0;var d5=DA(),u5=Zc();Rl.ClientSharedValues={apiVersion:"2011-06-15",disableHostPrefix:!1,logger:{},regionInfoProvider:d5.defaultRegionInfoProvider,serviceId:"STS",urlParser:u5.parseUrl}});var zA=h(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.ClientDefaultValues=void 0;var m5=he(),f5=m5.__importDefault(Vb()),p5=yp(),NA=qr(),h5=Zp(),y5=wc(),PA=Mr(),eh=Ds(),LA=$c(),qA=Kc(),g5=Wc(),_5=Hc(),MA=Yc(),OA=kA();Dl.ClientDefaultValues=u(o({},OA.ClientSharedValues),{runtime:"node",base64Decoder:qA.fromBase64,base64Encoder:qA.toBase64,bodyLengthChecker:g5.calculateBodyLength,credentialDefaultProvider:p5.decorateDefaultCredentialProvider(h5.defaultProvider),defaultUserAgentProvider:_5.defaultUserAgent({serviceId:OA.ClientSharedValues.serviceId,clientVersion:f5.default.version}),maxAttempts:eh.loadConfig(PA.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:eh.loadConfig(NA.NODE_REGION_CONFIG_OPTIONS,NA.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new LA.NodeHttpHandler,retryModeProvider:eh.loadConfig(PA.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:y5.Hash.bind(null,"sha256"),streamCollector:LA.streamCollector,utf8Decoder:MA.fromUtf8,utf8Encoder:MA.toUtf8})});var jA=h(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.resolveStsAuthConfig=void 0;var w5=Nn(),b5=(e,{stsClientCtor:t})=>w5.resolveAwsAuthConfig(u(o({},e),{stsClientCtor:t}));kl.resolveStsAuthConfig=b5});var Ll=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.STSClient=void 0;var S5=zA(),UA=qr(),v5=nl(),BA=rl(),E5=il(),FA=Mr(),A5=jA(),GA=ol(),C5=M(),Nl=class extends C5.Client{constructor(t){let n=o(o({},S5.ClientDefaultValues),t),r=UA.resolveRegionConfig(n),i=UA.resolveEndpointsConfig(r),s=FA.resolveRetryConfig(i),a=BA.resolveHostHeaderConfig(s),c=A5.resolveStsAuthConfig(a,{stsClientCtor:Nl}),l=GA.resolveUserAgentConfig(c);super(l);this.config=l,this.middlewareStack.use(FA.getRetryPlugin(this.config)),this.middlewareStack.use(v5.getContentLengthPlugin(this.config)),this.middlewareStack.use(BA.getHostHeaderPlugin(this.config)),this.middlewareStack.use(E5.getLoggerPlugin(this.config)),this.middlewareStack.use(GA.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};Pl.STSClient=Nl});var th=h(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.AssumeRoleWithSAMLCommand=void 0;var $A=on(),KA=kn(),T5=j(),x5=M(),VA=class extends x5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(T5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:$A.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:$A.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return KA.serializeAws_queryAssumeRoleWithSAMLCommand(t,n)}deserialize(t,n){return KA.deserializeAws_queryAssumeRoleWithSAMLCommand(t,n)}};ql.AssumeRoleWithSAMLCommand=VA});var nh=h(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.DecodeAuthorizationMessageCommand=void 0;var WA=on(),HA=kn(),I5=j(),R5=Nn(),D5=M(),YA=class extends D5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(I5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(R5.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:WA.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:WA.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return HA.serializeAws_queryDecodeAuthorizationMessageCommand(t,n)}deserialize(t,n){return HA.deserializeAws_queryDecodeAuthorizationMessageCommand(t,n)}};Ml.DecodeAuthorizationMessageCommand=YA});var rh=h(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.GetAccessKeyInfoCommand=void 0;var JA=on(),QA=kn(),k5=j(),N5=Nn(),P5=M(),XA=class extends P5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(k5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(N5.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:JA.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:JA.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return QA.serializeAws_queryGetAccessKeyInfoCommand(t,n)}deserialize(t,n){return QA.deserializeAws_queryGetAccessKeyInfoCommand(t,n)}};Ol.GetAccessKeyInfoCommand=XA});var ih=h(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.GetCallerIdentityCommand=void 0;var ZA=on(),eC=kn(),L5=j(),q5=Nn(),M5=M(),tC=class extends M5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(L5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(q5.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:ZA.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:ZA.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return eC.serializeAws_queryGetCallerIdentityCommand(t,n)}deserialize(t,n){return eC.deserializeAws_queryGetCallerIdentityCommand(t,n)}};zl.GetCallerIdentityCommand=tC});var sh=h(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.GetFederationTokenCommand=void 0;var nC=on(),rC=kn(),O5=j(),z5=Nn(),j5=M(),iC=class extends j5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(O5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(z5.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:nC.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:nC.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return rC.serializeAws_queryGetFederationTokenCommand(t,n)}deserialize(t,n){return rC.deserializeAws_queryGetFederationTokenCommand(t,n)}};jl.GetFederationTokenCommand=iC});var ah=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.GetSessionTokenCommand=void 0;var sC=on(),aC=kn(),U5=j(),B5=Nn(),F5=M(),oC=class extends F5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(U5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(B5.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:sC.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:sC.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return aC.serializeAws_queryGetSessionTokenCommand(t,n)}deserialize(t,n){return aC.deserializeAws_queryGetSessionTokenCommand(t,n)}};Ul.GetSessionTokenCommand=oC});var lC=h(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.STS=void 0;var G5=Ll(),$5=rc(),K5=th(),V5=sc(),W5=nh(),H5=rh(),Y5=ih(),J5=sh(),Q5=ah(),cC=class extends G5.STSClient{assumeRole(t,n,r){let i=new $5.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 K5.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 V5.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 W5.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 H5.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 Y5.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 J5.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 Q5.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)}};Bl.STS=cC});var mC=h(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.decorateDefaultCredentialProvider=En.getDefaultRoleAssumerWithWebIdentity=En.getDefaultRoleAssumer=void 0;var dC=yp(),uC=Ll(),X5=(e={})=>dC.getDefaultRoleAssumer(e,uC.STSClient);En.getDefaultRoleAssumer=X5;var Z5=(e={})=>dC.getDefaultRoleAssumerWithWebIdentity(e,uC.STSClient);En.getDefaultRoleAssumerWithWebIdentity=Z5;var eQ=e=>t=>e(o({roleAssumer:En.getDefaultRoleAssumer(t),roleAssumerWithWebIdentity:En.getDefaultRoleAssumerWithWebIdentity(t)},t));En.decorateDefaultCredentialProvider=eQ});var fC=h(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var tQ=he();tQ.__exportStar(on(),oh)});var pC=h(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});var $t=he();$t.__exportStar(Ll(),St);$t.__exportStar(lC(),St);$t.__exportStar(rc(),St);$t.__exportStar(th(),St);$t.__exportStar(sc(),St);$t.__exportStar(nh(),St);$t.__exportStar(rh(),St);$t.__exportStar(ih(),St);$t.__exportStar(sh(),St);$t.__exportStar(ah(),St);$t.__exportStar(mC(),St);$t.__exportStar(fC(),St)});var yC=h(hC=>{"use strict";Object.defineProperty(hC,"__esModule",{value:!0})});var _C=h((Pme,gC)=>{function qn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}qn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol!="undefined"&&(qn.prototype[Symbol.iterator]=function(){return this});qn.of=function(){var e=arguments,t=e.length,n=0;return new qn(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};qn.empty=function(){var e=new qn(null);return e.done=!0,e};qn.is=function(e){return e instanceof qn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};gC.exports=qn});var ch=h((Lme,vC)=>{var wC=typeof ArrayBuffer!="undefined",bC=typeof Symbol!="undefined";function SC(e,t){var n,r,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)||wC&&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(bC&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;a=n.next(),a.done!==!0;)t(a.value,i),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)}SC.forEachWithNullKeys=function(e,t){var n,r,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)||wC&&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(bC&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;a=n.next(),a.done!==!0;)t(a.value,null),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)};vC.exports=SC});var lh=h(An=>{var nQ=Math.pow(2,8)-1,rQ=Math.pow(2,16)-1,iQ=Math.pow(2,32)-1,sQ=Math.pow(2,7)-1,aQ=Math.pow(2,15)-1,oQ=Math.pow(2,31)-1;An.getPointerArray=function(e){var t=e-1;return t<=nQ?Uint8Array:t<=rQ?Uint16Array:t<=iQ?Uint32Array:Float64Array};An.getSignedPointerArray=function(e){var t=e-1;return t<=sQ?Int8Array:t<=aQ?Int16Array:t<=oQ?Int32Array:Float64Array};An.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 cQ={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};An.getMinimalRepresentation=function(e,t){var n=null,r=0,i,s,a,c,l;for(c=0,l=e.length;c<l;c++)a=t?t(e[c]):e[c],s=An.getNumberType(a),i=cQ[s.name],i>r&&(r=i,n=s);return n};An.isTypedArray=function(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView(e)};An.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};An.indices=function(e){for(var t=An.getPointerArray(e),n=new t(e),r=0;r<e;r++)n[r]=r;return n}});var CC=h(Ls=>{var EC=ch(),AC=lh();function lQ(e){return Array.isArray(e)||AC.isTypedArray(e)}function dh(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function dQ(e){var t=dh(e),n=typeof t=="number"?new Array(t):[],r=0;return EC(e,function(i){n[r++]=i}),n}function uQ(e){var t=dh(e),n=typeof t=="number"?AC.getPointerArray(t):Array,r=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new n(t):[],s=0;return EC(e,function(a){r[s]=a,i[s]=s++}),[r,i]}Ls.isArrayLike=lQ;Ls.guessLength=dh;Ls.toArray=dQ;Ls.toArrayWithIndices=uQ});var xC=h((Ome,TC)=>{var uh=_C(),mQ=ch(),fQ=lh(),pQ=CC();function Oe(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=fQ.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={}}Oe.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};Oe.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};Oe.prototype.set=function(e,t){var n=this.items[e];if(typeof n!="undefined"){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};Oe.prototype.setpop=function(e,t){var n=null,r=null,i=this.items[e];return typeof i!="undefined"?(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)};Oe.prototype.has=function(e){return e in this.items};Oe.prototype.get=function(e){var t=this.items[e];if(typeof t!="undefined")return this.splayOnTop(t),this.V[t]};Oe.prototype.peek=function(e){var t=this.items[e];if(typeof t!="undefined")return this.V[t]};Oe.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,i=this.head,s=this.K,a=this.V,c=this.forward;n<r;)e.call(t,a[i],s[i],this),i=c[i],n++};Oe.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.forward;return new uh(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};Oe.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,i=this.forward;return new uh(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};Oe.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.V,s=this.forward;return new uh(function(){if(e>=t)return{done:!0};var a=r[n],c=i[n];return e++,e<t&&(n=s[n]),{done:!1,value:[a,c]}})};typeof Symbol!="undefined"&&(Oe.prototype[Symbol.iterator]=Oe.prototype.entries);Oe.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:Oe,enumerable:!1}),e};typeof Symbol!="undefined"&&(Oe.prototype[Symbol.for("nodejs.util.inspect.custom")]=Oe.prototype.inspect);Oe.from=function(e,t,n,r){if(arguments.length<2){if(r=pQ.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 Oe(t,n,r);return mQ(e,function(s,a){i.set(a,s)}),i};TC.exports=Oe});var RC=h(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.EndpointCache=void 0;var hQ=he(),yQ=hQ.__importDefault(xC()),IC=class{constructor(t){this.cache=new yQ.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()}};Fl.EndpointCache=IC});var kC=h(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var DC=he();DC.__exportStar(yC(),Gl);DC.__exportStar(RC(),Gl)});var NC=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.resolveEndpointDiscoveryConfig=void 0;var gQ=kC(),_Q=(e,{endpointDiscoveryCommandCtor:t})=>{var n;return u(o({},e),{endpointDiscoveryCommandCtor:t,endpointCache:new gQ.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})};$l.resolveEndpointDiscoveryConfig=_Q});var PC=h(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.getCacheKey=void 0;var wQ=async(e,t,n)=>{let{accessKeyId:r}=await t.credentials(),{identifiers:i}=n;return JSON.stringify(o(o({},r&&{accessKeyId:r}),i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[a,c])=>u(o({},s),{[a]:c}),{})}))};Kl.getCacheKey=wQ});var LC=h(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.updateDiscoveredEndpointInCache=void 0;var Mn={},bQ=async(e,t)=>new Promise((n,r)=>{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?(Mn[s]||(Mn[s]=[]),Mn[s].push({resolve:n,reject:r})):n();else if(l&&l.length>0)n();else{let m=[{Address:"",CachePeriodInMinutes:1}];i.set(s,m);let f=new t.endpointDiscoveryCommandCtor({Operation:a.substr(0,a.length-7),Identifiers:c});f.resolveMiddleware(t.clientStack,e,t.options)(f).then(p=>{i.set(s,p.output.Endpoints),Mn[s]&&(Mn[s].forEach(({resolve:_})=>{_()}),delete Mn[s]),n()}).catch(p=>{var _;(p.name==="InvalidEndpointException"||((_=p.$metadata)===null||_===void 0?void 0:_.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});Mn[s]&&(Mn[s].forEach(({reject:E})=>{E(S)}),delete Mn[s]),t.isDiscoveredEndpointRequired?r(S):(i.set(s,m),n())})}});Vl.updateDiscoveredEndpointInCache=bQ});var MC=h(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.endpointDiscoveryMiddleware=void 0;var SQ=kt(),vQ=PC(),qC=LC(),EQ=(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:a,identifiers:c}=t,{clientName:l,commandName:m}=r,f=await e.endpointDiscoveryEnabled(),g=await vQ.getCacheKey(m,e,{identifiers:c});if(a){if(f===!1)throw new Error(`Endpoint Discovery is disabled but ${m} on ${l} requires it. Please check your configurations.`);await qC.updateDiscoveredEndpointInCache(e,u(o({},t),{commandName:m,cacheKey:g,endpointDiscoveryCommandCtor:s}))}else f&&qC.updateDiscoveredEndpointInCache(e,u(o({},t),{commandName:m,cacheKey:g,endpointDiscoveryCommandCtor:s}));let{request:p}=i;if(g&&SQ.HttpRequest.isInstance(p)){let _=e.endpointCache.getEndpoint(g);_&&(p.hostname=_)}return n(i)};Wl.endpointDiscoveryMiddleware=EQ});var OC=h(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getEndpointDiscoveryOptionalPlugin=Lt.getEndpointDiscoveryRequiredPlugin=Lt.getEndpointDiscoveryPlugin=Lt.endpointDiscoveryMiddlewareOptions=void 0;var mh=MC();Lt.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var AQ=(e,t)=>({applyToStack:n=>{n.add(mh.endpointDiscoveryMiddleware(e,t),Lt.endpointDiscoveryMiddlewareOptions)}});Lt.getEndpointDiscoveryPlugin=AQ;var CQ=(e,t)=>({applyToStack:n=>{n.add(mh.endpointDiscoveryMiddleware(e,u(o({},t),{isDiscoveredEndpointRequired:!0})),Lt.endpointDiscoveryMiddlewareOptions)}});Lt.getEndpointDiscoveryRequiredPlugin=CQ;var TQ=(e,t)=>({applyToStack:n=>{n.add(mh.endpointDiscoveryMiddleware(e,u(o({},t),{isDiscoveredEndpointRequired:!1})),Lt.endpointDiscoveryMiddlewareOptions)}});Lt.getEndpointDiscoveryOptionalPlugin=TQ});var UC=h(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var zC=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],fh="endpoint_discovery_enabled",jC=e=>["false","0"].indexOf(e)>=0;Hl.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<zC.length;t++){let n=zC[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!jC(r)}}},configFileSelector:e=>{if(fh in e){let t=e[fh];if(t===void 0)throw Error(`Shared config entry ${fh} can't be undefined, got "${t}"`);return!jC(t)}},default:void 0}});var hh=h(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var ph=he();ph.__exportStar(NC(),qs);ph.__exportStar(OC(),qs);ph.__exportStar(UC(),qs)});var FC=h(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.defaultRegionInfoProvider=void 0;var BC="dynamodb.{region}.amazonaws.com",xQ="dynamodb.{region}.amazonaws.com.cn",IQ="dynamodb.{region}.c2s.ic.gov",RQ="dynamodb.{region}.sc2s.sgov.gov",DQ="dynamodb.{region}.amazonaws.com",kQ=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","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"]),NQ=new Set(["cn-north-1","cn-northwest-1"]),PQ=new Set(["us-iso-east-1"]),LQ=new Set(["us-isob-east-1"]),qQ=new Set(["us-gov-east-1","us-gov-west-1"]),MQ=(e,t)=>{let n;switch(e){case"af-south-1":n={hostname:"dynamodb.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"dynamodb.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"dynamodb.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"dynamodb.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-northeast-3":n={hostname:"dynamodb.ap-northeast-3.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"dynamodb.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"dynamodb.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"dynamodb.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"dynamodb.ca-central-1.amazonaws.com",partition:"aws"};break;case"ca-central-1-fips":n={hostname:"dynamodb-fips.ca-central-1.amazonaws.com",partition:"aws",signingRegion:"ca-central-1"};break;case"cn-north-1":n={hostname:"dynamodb.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"dynamodb.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"dynamodb.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"dynamodb.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"dynamodb.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"dynamodb.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"dynamodb.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"dynamodb.eu-west-3.amazonaws.com",partition:"aws"};break;case"local":n={hostname:"localhost:8000",partition:"aws",signingRegion:"us-east-1"};break;case"me-south-1":n={hostname:"dynamodb.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-east-1":n={hostname:"dynamodb.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"dynamodb.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1-fips":n={hostname:"dynamodb-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"dynamodb.us-east-2.amazonaws.com",partition:"aws"};break;case"us-east-2-fips":n={hostname:"dynamodb-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-gov-east-1":n={hostname:"dynamodb.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-east-1-fips":n={hostname:"dynamodb.us-gov-east-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-east-1"};break;case"us-gov-west-1":n={hostname:"dynamodb.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1-fips":n={hostname:"dynamodb.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"us-iso-east-1":n={hostname:"dynamodb.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"dynamodb.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"dynamodb.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-1-fips":n={hostname:"dynamodb-fips.us-west-1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"us-west-2":n={hostname:"dynamodb.us-west-2.amazonaws.com",partition:"aws"};break;case"us-west-2-fips":n={hostname:"dynamodb-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:kQ.has(e)&&(n={hostname:BC.replace("{region}",e),partition:"aws"}),NQ.has(e)&&(n={hostname:xQ.replace("{region}",e),partition:"aws-cn"}),PQ.has(e)&&(n={hostname:IQ.replace("{region}",e),partition:"aws-iso"}),LQ.has(e)&&(n={hostname:RQ.replace("{region}",e),partition:"aws-iso-b"}),qQ.has(e)&&(n={hostname:DQ.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:BC.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"dynamodb"},n))};Yl.defaultRegionInfoProvider=MQ});var GC=h(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.ClientSharedValues=void 0;var OQ=FC(),zQ=Zc();Jl.ClientSharedValues={apiVersion:"2012-08-10",disableHostPrefix:!1,logger:{},regionInfoProvider:OQ.defaultRegionInfoProvider,serviceId:"DynamoDB",urlParser:zQ.parseUrl}});var JC=h(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.ClientDefaultValues=void 0;var jQ=he(),UQ=jQ.__importDefault(Kb()),BQ=pC(),$C=qr(),FQ=Zp(),GQ=wc(),$Q=hh(),KC=Mr(),Ql=Ds(),VC=$c(),WC=Kc(),KQ=Wc(),VQ=Hc(),HC=Yc(),YC=GC();Xl.ClientDefaultValues=u(o({},YC.ClientSharedValues),{runtime:"node",base64Decoder:WC.fromBase64,base64Encoder:WC.toBase64,bodyLengthChecker:KQ.calculateBodyLength,credentialDefaultProvider:BQ.decorateDefaultCredentialProvider(FQ.defaultProvider),defaultUserAgentProvider:VQ.defaultUserAgent({serviceId:YC.ClientSharedValues.serviceId,clientVersion:UQ.default.version}),endpointDiscoveryEnabledProvider:Ql.loadConfig($Q.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:Ql.loadConfig(KC.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:Ql.loadConfig($C.NODE_REGION_CONFIG_OPTIONS,$C.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new VC.NodeHttpHandler,retryModeProvider:Ql.loadConfig(KC.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:GQ.Hash.bind(null,"sha256"),streamCollector:VC.streamCollector,utf8Decoder:HC.fromUtf8,utf8Encoder:HC.toUtf8})});var or=h(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.DynamoDBClient=void 0;var WQ=wo(),HQ=JC(),QC=qr(),YQ=nl(),JQ=hh(),XC=rl(),QQ=il(),ZC=Mr(),e0=Nn(),t0=ol(),XQ=M(),n0=class extends XQ.Client{constructor(t){let n=o(o({},HQ.ClientDefaultValues),t),r=QC.resolveRegionConfig(n),i=QC.resolveEndpointsConfig(r),s=ZC.resolveRetryConfig(i),a=XC.resolveHostHeaderConfig(s),c=e0.resolveAwsAuthConfig(a),l=t0.resolveUserAgentConfig(c),m=JQ.resolveEndpointDiscoveryConfig(l,{endpointDiscoveryCommandCtor:WQ.DescribeEndpointsCommand});super(m);this.config=m,this.middlewareStack.use(ZC.getRetryPlugin(this.config)),this.middlewareStack.use(YQ.getContentLengthPlugin(this.config)),this.middlewareStack.use(XC.getHostHeaderPlugin(this.config)),this.middlewareStack.use(QQ.getLoggerPlugin(this.config)),this.middlewareStack.use(e0.getAwsAuthPlugin(this.config)),this.middlewareStack.use(t0.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};Zl.DynamoDBClient=n0});var yh=h(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.BatchExecuteStatementCommand=void 0;var r0=W(),i0=H(),ZQ=j(),e9=M(),s0=class extends e9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(ZQ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:r0.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:r0.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return i0.serializeAws_json1_0BatchExecuteStatementCommand(t,n)}deserialize(t,n){return i0.deserializeAws_json1_0BatchExecuteStatementCommand(t,n)}};ed.BatchExecuteStatementCommand=s0});var gh=h(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.BatchGetItemCommand=void 0;var a0=W(),o0=H(),t9=j(),n9=M(),c0=class extends n9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(t9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:a0.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:a0.BatchGetItemOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return o0.serializeAws_json1_0BatchGetItemCommand(t,n)}deserialize(t,n){return o0.deserializeAws_json1_0BatchGetItemCommand(t,n)}};td.BatchGetItemCommand=c0});var _h=h(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.BatchWriteItemCommand=void 0;var l0=W(),d0=H(),r9=j(),i9=M(),u0=class extends i9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(r9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:l0.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:l0.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return d0.serializeAws_json1_0BatchWriteItemCommand(t,n)}deserialize(t,n){return d0.deserializeAws_json1_0BatchWriteItemCommand(t,n)}};nd.BatchWriteItemCommand=u0});var wh=h(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.CreateBackupCommand=void 0;var m0=W(),f0=H(),s9=j(),a9=M(),p0=class extends a9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(s9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:m0.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:m0.CreateBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return f0.serializeAws_json1_0CreateBackupCommand(t,n)}deserialize(t,n){return f0.deserializeAws_json1_0CreateBackupCommand(t,n)}};rd.CreateBackupCommand=p0});var bh=h(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.CreateGlobalTableCommand=void 0;var h0=W(),y0=H(),o9=j(),c9=M(),g0=class extends c9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(o9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:h0.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:h0.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return y0.serializeAws_json1_0CreateGlobalTableCommand(t,n)}deserialize(t,n){return y0.deserializeAws_json1_0CreateGlobalTableCommand(t,n)}};id.CreateGlobalTableCommand=g0});var Sh=h(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.CreateTableCommand=void 0;var _0=W(),w0=H(),l9=j(),d9=M(),b0=class extends d9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(l9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:_0.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:_0.CreateTableOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return w0.serializeAws_json1_0CreateTableCommand(t,n)}deserialize(t,n){return w0.deserializeAws_json1_0CreateTableCommand(t,n)}};sd.CreateTableCommand=b0});var vh=h(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.DeleteBackupCommand=void 0;var S0=W(),v0=H(),u9=j(),m9=M(),E0=class extends m9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(u9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:S0.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:S0.DeleteBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return v0.serializeAws_json1_0DeleteBackupCommand(t,n)}deserialize(t,n){return v0.deserializeAws_json1_0DeleteBackupCommand(t,n)}};ad.DeleteBackupCommand=E0});var Eh=h(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.DeleteItemCommand=void 0;var A0=W(),C0=H(),f9=j(),p9=M(),T0=class extends p9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(f9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:A0.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:A0.DeleteItemOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return C0.serializeAws_json1_0DeleteItemCommand(t,n)}deserialize(t,n){return C0.deserializeAws_json1_0DeleteItemCommand(t,n)}};od.DeleteItemCommand=T0});var Ah=h(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.DeleteTableCommand=void 0;var x0=W(),I0=H(),h9=j(),y9=M(),R0=class extends y9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(h9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:x0.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:x0.DeleteTableOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return I0.serializeAws_json1_0DeleteTableCommand(t,n)}deserialize(t,n){return I0.deserializeAws_json1_0DeleteTableCommand(t,n)}};cd.DeleteTableCommand=R0});var Ch=h(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.DescribeBackupCommand=void 0;var D0=W(),k0=H(),g9=j(),_9=M(),N0=class extends _9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(g9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:D0.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:D0.DescribeBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return k0.serializeAws_json1_0DescribeBackupCommand(t,n)}deserialize(t,n){return k0.deserializeAws_json1_0DescribeBackupCommand(t,n)}};ld.DescribeBackupCommand=N0});var Th=h(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.DescribeContinuousBackupsCommand=void 0;var P0=W(),L0=H(),w9=j(),b9=M(),q0=class extends b9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(w9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:P0.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:P0.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return L0.serializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}deserialize(t,n){return L0.deserializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}};dd.DescribeContinuousBackupsCommand=q0});var xh=h(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.DescribeContributorInsightsCommand=void 0;var M0=W(),O0=H(),S9=j(),v9=M(),z0=class extends v9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(S9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:M0.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:M0.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return O0.serializeAws_json1_0DescribeContributorInsightsCommand(t,n)}deserialize(t,n){return O0.deserializeAws_json1_0DescribeContributorInsightsCommand(t,n)}};ud.DescribeContributorInsightsCommand=z0});var Ih=h(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.DescribeExportCommand=void 0;var j0=W(),U0=H(),E9=j(),A9=M(),B0=class extends A9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(E9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:j0.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:j0.DescribeExportOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return U0.serializeAws_json1_0DescribeExportCommand(t,n)}deserialize(t,n){return U0.deserializeAws_json1_0DescribeExportCommand(t,n)}};md.DescribeExportCommand=B0});var Rh=h(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.DescribeGlobalTableCommand=void 0;var F0=W(),G0=H(),C9=j(),T9=M(),$0=class extends T9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(C9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:F0.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:F0.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return G0.serializeAws_json1_0DescribeGlobalTableCommand(t,n)}deserialize(t,n){return G0.deserializeAws_json1_0DescribeGlobalTableCommand(t,n)}};fd.DescribeGlobalTableCommand=$0});var Dh=h(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.DescribeGlobalTableSettingsCommand=void 0;var K0=W(),V0=H(),x9=j(),I9=M(),W0=class extends I9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(x9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:K0.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:K0.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return V0.serializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}deserialize(t,n){return V0.deserializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}};pd.DescribeGlobalTableSettingsCommand=W0});var kh=h(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.DescribeKinesisStreamingDestinationCommand=void 0;var H0=W(),Y0=H(),R9=j(),D9=M(),J0=class extends D9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(R9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:H0.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:H0.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Y0.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return Y0.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}};hd.DescribeKinesisStreamingDestinationCommand=J0});var Nh=h(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.DescribeLimitsCommand=void 0;var Q0=W(),X0=H(),k9=j(),N9=M(),Z0=class extends N9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(k9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:Q0.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:Q0.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return X0.serializeAws_json1_0DescribeLimitsCommand(t,n)}deserialize(t,n){return X0.deserializeAws_json1_0DescribeLimitsCommand(t,n)}};yd.DescribeLimitsCommand=Z0});var Ms=h(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.DescribeTableCommand=void 0;var eT=W(),tT=H(),P9=j(),L9=M(),nT=class extends L9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(P9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:eT.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:eT.DescribeTableOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return tT.serializeAws_json1_0DescribeTableCommand(t,n)}deserialize(t,n){return tT.deserializeAws_json1_0DescribeTableCommand(t,n)}};gd.DescribeTableCommand=nT});var Ph=h(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.DescribeTableReplicaAutoScalingCommand=void 0;var rT=W(),iT=H(),q9=j(),M9=M(),sT=class extends M9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(q9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:rT.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:rT.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return iT.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return iT.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}};_d.DescribeTableReplicaAutoScalingCommand=sT});var Lh=h(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.DescribeTimeToLiveCommand=void 0;var aT=W(),oT=H(),O9=j(),z9=M(),cT=class extends z9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(O9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:aT.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:aT.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return oT.serializeAws_json1_0DescribeTimeToLiveCommand(t,n)}deserialize(t,n){return oT.deserializeAws_json1_0DescribeTimeToLiveCommand(t,n)}};wd.DescribeTimeToLiveCommand=cT});var qh=h(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.DisableKinesisStreamingDestinationCommand=void 0;var lT=W(),dT=H(),j9=j(),U9=M(),uT=class extends U9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(j9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:lT.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:lT.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return dT.serializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return dT.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}};bd.DisableKinesisStreamingDestinationCommand=uT});var Mh=h(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.EnableKinesisStreamingDestinationCommand=void 0;var mT=W(),fT=H(),B9=j(),F9=M(),pT=class extends F9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(B9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:mT.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:mT.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return fT.serializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return fT.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}};Sd.EnableKinesisStreamingDestinationCommand=pT});var Oh=h(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.ExecuteStatementCommand=void 0;var hT=W(),yT=H(),G9=j(),$9=M(),gT=class extends $9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(G9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:hT.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:hT.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return yT.serializeAws_json1_0ExecuteStatementCommand(t,n)}deserialize(t,n){return yT.deserializeAws_json1_0ExecuteStatementCommand(t,n)}};vd.ExecuteStatementCommand=gT});var zh=h(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.ExecuteTransactionCommand=void 0;var _T=W(),wT=H(),K9=j(),V9=M(),bT=class extends V9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(K9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:_T.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:_T.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return wT.serializeAws_json1_0ExecuteTransactionCommand(t,n)}deserialize(t,n){return wT.deserializeAws_json1_0ExecuteTransactionCommand(t,n)}};Ed.ExecuteTransactionCommand=bT});var jh=h(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.ExportTableToPointInTimeCommand=void 0;var ST=W(),vT=H(),W9=j(),H9=M(),ET=class extends H9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(W9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:ST.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:ST.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return vT.serializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}deserialize(t,n){return vT.deserializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}};Ad.ExportTableToPointInTimeCommand=ET});var Uh=h(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.GetItemCommand=void 0;var AT=W(),CT=H(),Y9=j(),J9=M(),TT=class extends J9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(Y9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:AT.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:AT.GetItemOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return CT.serializeAws_json1_0GetItemCommand(t,n)}deserialize(t,n){return CT.deserializeAws_json1_0GetItemCommand(t,n)}};Cd.GetItemCommand=TT});var Bh=h(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.ListBackupsCommand=void 0;var xT=W(),IT=H(),Q9=j(),X9=M(),RT=class extends X9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(Q9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:xT.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:xT.ListBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return IT.serializeAws_json1_0ListBackupsCommand(t,n)}deserialize(t,n){return IT.deserializeAws_json1_0ListBackupsCommand(t,n)}};Td.ListBackupsCommand=RT});var Id=h(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.ListContributorInsightsCommand=void 0;var DT=W(),kT=H(),Z9=j(),eX=M(),NT=class extends eX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(Z9.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:DT.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:DT.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return kT.serializeAws_json1_0ListContributorInsightsCommand(t,n)}deserialize(t,n){return kT.deserializeAws_json1_0ListContributorInsightsCommand(t,n)}};xd.ListContributorInsightsCommand=NT});var Dd=h(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.ListExportsCommand=void 0;var PT=W(),LT=H(),tX=j(),nX=M(),qT=class extends nX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(tX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:PT.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:PT.ListExportsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return LT.serializeAws_json1_0ListExportsCommand(t,n)}deserialize(t,n){return LT.deserializeAws_json1_0ListExportsCommand(t,n)}};Rd.ListExportsCommand=qT});var Fh=h(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.ListGlobalTablesCommand=void 0;var MT=W(),OT=H(),rX=j(),iX=M(),zT=class extends iX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(rX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:MT.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:MT.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return OT.serializeAws_json1_0ListGlobalTablesCommand(t,n)}deserialize(t,n){return OT.deserializeAws_json1_0ListGlobalTablesCommand(t,n)}};kd.ListGlobalTablesCommand=zT});var Pd=h(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.ListTablesCommand=void 0;var jT=W(),UT=H(),sX=j(),aX=M(),BT=class extends aX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(sX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:jT.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:jT.ListTablesOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return UT.serializeAws_json1_0ListTablesCommand(t,n)}deserialize(t,n){return UT.deserializeAws_json1_0ListTablesCommand(t,n)}};Nd.ListTablesCommand=BT});var Gh=h(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.ListTagsOfResourceCommand=void 0;var FT=W(),GT=H(),oX=j(),cX=M(),$T=class extends cX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(oX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:FT.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:FT.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return GT.serializeAws_json1_0ListTagsOfResourceCommand(t,n)}deserialize(t,n){return GT.deserializeAws_json1_0ListTagsOfResourceCommand(t,n)}};Ld.ListTagsOfResourceCommand=$T});var $h=h(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.PutItemCommand=void 0;var KT=W(),VT=H(),lX=j(),dX=M(),WT=class extends dX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(lX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:KT.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:KT.PutItemOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return VT.serializeAws_json1_0PutItemCommand(t,n)}deserialize(t,n){return VT.deserializeAws_json1_0PutItemCommand(t,n)}};qd.PutItemCommand=WT});var Od=h(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.QueryCommand=void 0;var HT=W(),YT=H(),uX=j(),mX=M(),JT=class extends mX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(uX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:HT.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:HT.QueryOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return YT.serializeAws_json1_0QueryCommand(t,n)}deserialize(t,n){return YT.deserializeAws_json1_0QueryCommand(t,n)}};Md.QueryCommand=JT});var Kh=h(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.RestoreTableFromBackupCommand=void 0;var QT=W(),XT=H(),fX=j(),pX=M(),ZT=class extends pX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(fX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:QT.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:QT.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return XT.serializeAws_json1_0RestoreTableFromBackupCommand(t,n)}deserialize(t,n){return XT.deserializeAws_json1_0RestoreTableFromBackupCommand(t,n)}};zd.RestoreTableFromBackupCommand=ZT});var Vh=h(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.RestoreTableToPointInTimeCommand=void 0;var ex=W(),tx=H(),hX=j(),yX=M(),nx=class extends yX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(hX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:ex.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:ex.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return tx.serializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}deserialize(t,n){return tx.deserializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}};jd.RestoreTableToPointInTimeCommand=nx});var Bd=h(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.ScanCommand=void 0;var rx=W(),ix=H(),gX=j(),_X=M(),sx=class extends _X.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(gX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:rx.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:rx.ScanOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ix.serializeAws_json1_0ScanCommand(t,n)}deserialize(t,n){return ix.deserializeAws_json1_0ScanCommand(t,n)}};Ud.ScanCommand=sx});var Wh=h(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.TagResourceCommand=void 0;var wX=W(),ax=H(),bX=j(),SX=M(),ox=class extends SX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(bX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:wX.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ax.serializeAws_json1_0TagResourceCommand(t,n)}deserialize(t,n){return ax.deserializeAws_json1_0TagResourceCommand(t,n)}};Fd.TagResourceCommand=ox});var Hh=h(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.TransactGetItemsCommand=void 0;var cx=W(),lx=H(),vX=j(),EX=M(),dx=class extends EX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(vX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:cx.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:cx.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return lx.serializeAws_json1_0TransactGetItemsCommand(t,n)}deserialize(t,n){return lx.deserializeAws_json1_0TransactGetItemsCommand(t,n)}};Gd.TransactGetItemsCommand=dx});var Yh=h($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.TransactWriteItemsCommand=void 0;var ux=W(),mx=H(),AX=j(),CX=M(),fx=class extends CX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(AX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:ux.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:ux.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return mx.serializeAws_json1_0TransactWriteItemsCommand(t,n)}deserialize(t,n){return mx.deserializeAws_json1_0TransactWriteItemsCommand(t,n)}};$d.TransactWriteItemsCommand=fx});var Jh=h(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.UntagResourceCommand=void 0;var TX=W(),px=H(),xX=j(),IX=M(),hx=class extends IX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(xX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:TX.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return px.serializeAws_json1_0UntagResourceCommand(t,n)}deserialize(t,n){return px.deserializeAws_json1_0UntagResourceCommand(t,n)}};Kd.UntagResourceCommand=hx});var Qh=h(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.UpdateContinuousBackupsCommand=void 0;var yx=W(),gx=H(),RX=j(),DX=M(),_x=class extends DX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(RX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:yx.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:yx.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return gx.serializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}deserialize(t,n){return gx.deserializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}};Vd.UpdateContinuousBackupsCommand=_x});var Xh=h(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.UpdateContributorInsightsCommand=void 0;var wx=W(),bx=H(),kX=j(),NX=M(),Sx=class extends NX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(kX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:wx.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:wx.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return bx.serializeAws_json1_0UpdateContributorInsightsCommand(t,n)}deserialize(t,n){return bx.deserializeAws_json1_0UpdateContributorInsightsCommand(t,n)}};Wd.UpdateContributorInsightsCommand=Sx});var Zh=h(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.UpdateGlobalTableCommand=void 0;var vx=W(),Ex=H(),PX=j(),LX=M(),Ax=class extends LX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(PX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:vx.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:vx.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Ex.serializeAws_json1_0UpdateGlobalTableCommand(t,n)}deserialize(t,n){return Ex.deserializeAws_json1_0UpdateGlobalTableCommand(t,n)}};Hd.UpdateGlobalTableCommand=Ax});var ey=h(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.UpdateGlobalTableSettingsCommand=void 0;var Cx=W(),Tx=H(),qX=j(),MX=M(),xx=class extends MX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(qX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:Cx.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:Cx.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Tx.serializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}deserialize(t,n){return Tx.deserializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}};Yd.UpdateGlobalTableSettingsCommand=xx});var ty=h(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.UpdateItemCommand=void 0;var Ix=W(),Rx=H(),OX=j(),zX=M(),Dx=class extends zX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(OX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:Ix.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:Ix.UpdateItemOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Rx.serializeAws_json1_0UpdateItemCommand(t,n)}deserialize(t,n){return Rx.deserializeAws_json1_0UpdateItemCommand(t,n)}};Jd.UpdateItemCommand=Dx});var ny=h(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.UpdateTableCommand=void 0;var kx=W(),Nx=H(),jX=j(),UX=M(),Px=class extends UX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(jX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:kx.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:kx.UpdateTableOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Nx.serializeAws_json1_0UpdateTableCommand(t,n)}deserialize(t,n){return Nx.deserializeAws_json1_0UpdateTableCommand(t,n)}};Qd.UpdateTableCommand=Px});var ry=h(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.UpdateTableReplicaAutoScalingCommand=void 0;var Lx=W(),qx=H(),BX=j(),FX=M(),Mx=class extends FX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(BX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:Lx.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:Lx.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return qx.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return qx.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}};Xd.UpdateTableReplicaAutoScalingCommand=Mx});var iy=h(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.UpdateTimeToLiveCommand=void 0;var Ox=W(),zx=H(),GX=j(),$X=M(),jx=class extends $X.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(GX.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,l={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:Ox.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:Ox.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:m}=n;return i.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return zx.serializeAws_json1_0UpdateTimeToLiveCommand(t,n)}deserialize(t,n){return zx.deserializeAws_json1_0UpdateTimeToLiveCommand(t,n)}};Zd.UpdateTimeToLiveCommand=jx});var Br=h(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.DynamoDB=void 0;var KX=or(),VX=yh(),WX=gh(),HX=_h(),YX=wh(),JX=bh(),QX=Sh(),XX=vh(),ZX=Eh(),e7=Ah(),t7=Ch(),n7=Th(),r7=xh(),i7=wo(),s7=Ih(),a7=Rh(),o7=Dh(),c7=kh(),l7=Nh(),d7=Ms(),u7=Ph(),m7=Lh(),f7=qh(),p7=Mh(),h7=Oh(),y7=zh(),g7=jh(),_7=Uh(),w7=Bh(),b7=Id(),S7=Dd(),v7=Fh(),E7=Pd(),A7=Gh(),C7=$h(),T7=Od(),x7=Kh(),I7=Vh(),R7=Bd(),D7=Wh(),k7=Hh(),N7=Yh(),P7=Jh(),L7=Qh(),q7=Xh(),M7=Zh(),O7=ey(),z7=ty(),j7=ny(),U7=ry(),B7=iy(),Ux=class extends KX.DynamoDBClient{batchExecuteStatement(t,n,r){let i=new VX.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 WX.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 HX.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 YX.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 JX.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 QX.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 XX.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 ZX.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 e7.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 t7.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 n7.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 r7.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 i7.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 s7.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 a7.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 o7.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 c7.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 l7.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 d7.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 u7.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 m7.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 f7.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 p7.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 h7.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 y7.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 g7.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 _7.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 w7.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 b7.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 S7.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 v7.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 E7.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 A7.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 C7.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 T7.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 x7.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 I7.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 R7.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 D7.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 k7.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 N7.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 P7.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 L7.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 q7.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 M7.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 O7.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 z7.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 j7.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 U7.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 B7.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)}};eu.DynamoDB=Ux});var sy=h(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.sleep=void 0;var F7=e=>new Promise(t=>setTimeout(t,e*1e3));tu.sleep=F7});var ru=h(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.checkExceptions=On.WaiterState=On.waiterServiceDefaults=void 0;On.waiterServiceDefaults={minDelay:2,maxDelay:120};var nu;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(nu=On.WaiterState||(On.WaiterState={}));var G7=e=>{if(e.state===nu.ABORTED){let t=new Error(`${JSON.stringify(u(o({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===nu.TIMEOUT){let t=new Error(`${JSON.stringify(u(o({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==nu.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};On.checkExceptions=G7});var Bx=h(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.runPolling=void 0;var $7=sy(),iu=ru(),K7=(e,t,n,r)=>{if(r>n)return t;let i=e*2**(r-1);return V7(e,i)},V7=(e,t)=>e+Math.random()*(t-e),W7=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:i,abortSignal:s},a,c)=>{var l;let{state:m}=await c(i,a);if(m!==iu.WaiterState.RETRY)return{state:m};let f=1,g=Date.now()+n*1e3,p=Math.log(t/e)/Math.log(2)+1;for(;;){if(((l=r==null?void 0:r.signal)===null||l===void 0?void 0:l.aborted)||(s==null?void 0:s.aborted))return{state:iu.WaiterState.ABORTED};let _=K7(e,t,p,f);if(Date.now()+_*1e3>g)return{state:iu.WaiterState.TIMEOUT};await $7.sleep(_);let{state:S}=await c(i,a);if(S!==iu.WaiterState.RETRY)return{state:S};f+=1}};su.runPolling=W7});var Fx=h(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.validateWaiterOptions=void 0;var H7=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`)};au.validateWaiterOptions=H7});var $x=h(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var Gx=he();Gx.__exportStar(sy(),ou);Gx.__exportStar(Fx(),ou)});var Wx=h(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.createWaiter=void 0;var Y7=Bx(),J7=$x(),Kx=ru(),Vx=async e=>new Promise(t=>{e.onabort=()=>t({state:Kx.WaiterState.ABORTED})}),Q7=async(e,t,n)=>{let r=o(o({},Kx.waiterServiceDefaults),e);J7.validateWaiterOptions(r);let i=[Y7.runPolling(r,t,n)];return e.abortController&&i.push(Vx(e.abortController.signal)),e.abortSignal&&i.push(Vx(e.abortSignal)),Promise.race(i)};cu.createWaiter=Q7});var ay=h(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var Hx=he();Hx.__exportStar(Wx(),lu);Hx.__exportStar(ru(),lu)});var Jx=h(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.waitUntilTableExists=Ri.waitForTableExists=void 0;var X7=Ms(),Ii=ay(),Yx=async(e,t)=>{let n;try{let r=await e.send(new X7.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:Ii.WaiterState.SUCCESS,reason:n}}catch(i){}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Ii.WaiterState.RETRY,reason:n}}return{state:Ii.WaiterState.RETRY,reason:n}},Z7=async(e,t)=>{let n={minDelay:20,maxDelay:120};return Ii.createWaiter(o(o({},n),e),t,Yx)};Ri.waitForTableExists=Z7;var eZ=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await Ii.createWaiter(o(o({},n),e),t,Yx);return Ii.checkExceptions(r)};Ri.waitUntilTableExists=eZ});var Xx=h(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.waitUntilTableNotExists=Di.waitForTableNotExists=void 0;var tZ=Ms(),Os=ay(),Qx=async(e,t)=>{let n;try{n=await e.send(new tZ.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Os.WaiterState.SUCCESS,reason:n}}return{state:Os.WaiterState.RETRY,reason:n}},nZ=async(e,t)=>{let n={minDelay:20,maxDelay:120};return Os.createWaiter(o(o({},n),e),t,Qx)};Di.waitForTableNotExists=nZ;var rZ=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await Os.createWaiter(o(o({},n),e),t,Qx);return Os.checkExceptions(r)};Di.waitUntilTableNotExists=rZ});var Zx=h(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.paginateListContributorInsights=void 0;var iZ=Br(),sZ=or(),aZ=Id(),oZ=async(e,t,...n)=>await e.send(new aZ.ListContributorInsightsCommand(t),...n),cZ=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*lZ(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 iZ.DynamoDB)s=await cZ(e.client,t,...n);else if(e.client instanceof sZ.DynamoDBClient)s=await oZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.NextToken,i=!!r}return void 0}du.paginateListContributorInsights=lZ});var eI=h(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.paginateListExports=void 0;var dZ=Br(),uZ=or(),mZ=Dd(),fZ=async(e,t,...n)=>await e.send(new mZ.ListExportsCommand(t),...n),pZ=async(e,t,...n)=>await e.listExports(t,...n);async function*hZ(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 dZ.DynamoDB)s=await pZ(e.client,t,...n);else if(e.client instanceof uZ.DynamoDBClient)s=await fZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.NextToken,i=!!r}return void 0}uu.paginateListExports=hZ});var tI=h(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.paginateListTables=void 0;var yZ=Br(),gZ=or(),_Z=Pd(),wZ=async(e,t,...n)=>await e.send(new _Z.ListTablesCommand(t),...n),bZ=async(e,t,...n)=>await e.listTables(t,...n);async function*SZ(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 yZ.DynamoDB)s=await bZ(e.client,t,...n);else if(e.client instanceof gZ.DynamoDBClient)s=await wZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.LastEvaluatedTableName,i=!!r}return void 0}mu.paginateListTables=SZ});var nI=h(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.paginateQuery=void 0;var vZ=Br(),EZ=or(),AZ=Od(),CZ=async(e,t,...n)=>await e.send(new AZ.QueryCommand(t),...n),TZ=async(e,t,...n)=>await e.query(t,...n);async function*xZ(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 vZ.DynamoDB)s=await TZ(e.client,t,...n);else if(e.client instanceof EZ.DynamoDBClient)s=await CZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}fu.paginateQuery=xZ});var rI=h(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.paginateScan=void 0;var IZ=Br(),RZ=or(),DZ=Bd(),kZ=async(e,t,...n)=>await e.send(new DZ.ScanCommand(t),...n),NZ=async(e,t,...n)=>await e.scan(t,...n);async function*PZ(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 IZ.DynamoDB)s=await NZ(e.client,t,...n);else if(e.client instanceof RZ.DynamoDBClient)s=await kZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}pu.paginateScan=PZ});var sI=h(iI=>{"use strict";Object.defineProperty(iI,"__esModule",{value:!0})});var aI=h(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var LZ=he();LZ.__exportStar(W(),oy)});var ut=h(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});var F=he();F.__exportStar(or(),U);F.__exportStar(Br(),U);F.__exportStar(yh(),U);F.__exportStar(gh(),U);F.__exportStar(_h(),U);F.__exportStar(wh(),U);F.__exportStar(bh(),U);F.__exportStar(Sh(),U);F.__exportStar(vh(),U);F.__exportStar(Eh(),U);F.__exportStar(Ah(),U);F.__exportStar(Ch(),U);F.__exportStar(Th(),U);F.__exportStar(xh(),U);F.__exportStar(wo(),U);F.__exportStar(Ih(),U);F.__exportStar(Rh(),U);F.__exportStar(Dh(),U);F.__exportStar(kh(),U);F.__exportStar(Nh(),U);F.__exportStar(Ms(),U);F.__exportStar(Jx(),U);F.__exportStar(Xx(),U);F.__exportStar(Ph(),U);F.__exportStar(Lh(),U);F.__exportStar(qh(),U);F.__exportStar(Mh(),U);F.__exportStar(Oh(),U);F.__exportStar(zh(),U);F.__exportStar(jh(),U);F.__exportStar(Uh(),U);F.__exportStar(Bh(),U);F.__exportStar(Id(),U);F.__exportStar(Zx(),U);F.__exportStar(Dd(),U);F.__exportStar(eI(),U);F.__exportStar(Fh(),U);F.__exportStar(Pd(),U);F.__exportStar(tI(),U);F.__exportStar(Gh(),U);F.__exportStar($h(),U);F.__exportStar(Od(),U);F.__exportStar(nI(),U);F.__exportStar(Kh(),U);F.__exportStar(Vh(),U);F.__exportStar(Bd(),U);F.__exportStar(rI(),U);F.__exportStar(Wh(),U);F.__exportStar(Hh(),U);F.__exportStar(Yh(),U);F.__exportStar(Jh(),U);F.__exportStar(Qh(),U);F.__exportStar(Xh(),U);F.__exportStar(Zh(),U);F.__exportStar(ey(),U);F.__exportStar(ty(),U);F.__exportStar(ny(),U);F.__exportStar(ry(),U);F.__exportStar(iy(),U);F.__exportStar(sI(),U);F.__exportStar(aI(),U)});var cy=h(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.convertToAttr=void 0;var qZ=(e,t)=>{var n,r,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 hu();if(Array.isArray(e))return MZ(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return OZ(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return zZ(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 oI(e,t);if(fI(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?hu():cI(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 mI(e);if(typeof e=="bigint")return dI(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)?hu():lI(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return oI(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};Fr.convertToAttr=qZ;var MZ=(e,t)=>({L:e.filter(n=>!(t==null?void 0:t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>Fr.convertToAttr(n,t))}),OZ=(e,t)=>{let n=(t==null?void 0:t.removeUndefinedValues)?new Set([...e].filter(i=>i!==void 0)):e;if(!(t==null?void 0: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?void 0:t.convertEmptyValues)return hu();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(mI).map(i=>i.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(dI).map(i=>i.N)};if(typeof r=="string")return{SS:Array.from(n).map(lI).map(i=>i.S)};if(fI(r))return{BS:Array.from(n).map(cI).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},zZ=(e,t)=>({M:(n=>{let r={};for(let[i,s]of n)typeof s!="function"&&(s!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[i]=Fr.convertToAttr(s,t));return r})(e)}),oI=(e,t)=>({M:(n=>{let r={};for(let i in n){let s=n[i];typeof s!="function"&&(s!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[i]=Fr.convertToAttr(s,t))}return r})(e)}),hu=()=>({NULL:!0}),cI=e=>({B:e}),lI=e=>({S:e.toString()}),dI=e=>({N:e.toString()}),uI=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},mI=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?uI(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&uI(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},fI=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return(e==null?void 0:e.constructor)?t.includes(e.constructor.name):!1}});var ly=h(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.convertToNative=void 0;var jZ=(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 pI(r,t);case"B":return yI(r);case"S":return hI(r);case"L":return UZ(r,t);case"M":return BZ(r,t);case"NS":return new Set(r.map(i=>pI(i,t)));case"BS":return new Set(r.map(yI));case"SS":return new Set(r.map(hI));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};ki.convertToNative=jZ;var pI=(e,t)=>{if(t==null?void 0: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(i){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},hI=e=>e,yI=e=>e,UZ=(e,t)=>e.map(n=>ki.convertToNative(n,t)),BZ=(e,t)=>Object.entries(e).reduce((n,[r,i])=>u(o({},n),{[r]:ki.convertToNative(i,t)}),{})});var gI=h(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.marshall=void 0;var FZ=cy(),GZ=(e,t)=>FZ.convertToAttr(e,t).M;yu.marshall=GZ});var wI=h(_I=>{"use strict";Object.defineProperty(_I,"__esModule",{value:!0})});var bI=h(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.unmarshall=void 0;var $Z=ly(),KZ=(e,t)=>$Z.convertToNative({M:e},t);gu.unmarshall=KZ});var SI=h(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});var zs=he();zs.__exportStar(cy(),Gr);zs.__exportStar(ly(),Gr);zs.__exportStar(gI(),Gr);zs.__exportStar(wI(),Gr);zs.__exportStar(bI(),Gr)});var vt=h(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.unmarshallOutput=Ni.marshallInput=void 0;var vI=SI(),EI=(e,t,n)=>{if(e)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?dy(e,t,n):VZ(e,t,n.children)},AI=(e,t,n)=>Array.isArray(e)?e.map(r=>EI(r,t,n)):EI(e,t,n),dy=(e,t,n)=>n.reduce((r,{key:i,children:s})=>u(o({},r),{[i]:AI(r[i],t,s)}),e),VZ=(e,t,n)=>Object.entries(e).reduce((r,[i,s])=>u(o({},r),{[i]:AI(s,t,n)}),{}),WZ=(e,t,n)=>dy(e,i=>vI.marshall(i,n),t);Ni.marshallInput=WZ;var HZ=(e,t,n)=>dy(e,i=>vI.unmarshall(i,n),t);Ni.unmarshallOutput=HZ});var uy=h(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.BatchExecuteStatementCommand=void 0;var CI=vt(),YZ=ut(),JZ=M(),TI=class extends JZ.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||{},a=new YZ.BatchExecuteStatementCommand(CI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:CI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};_u.BatchExecuteStatementCommand=TI});var my=h(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.BatchGetCommand=void 0;var xI=vt(),QZ=ut(),XZ=M(),II=class extends XZ.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||{},a=new QZ.BatchGetItemCommand(xI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:xI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};wu.BatchGetCommand=II});var fy=h(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.BatchWriteCommand=void 0;var RI=vt(),ZZ=ut(),eee=M(),DI=class extends eee.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||{},a=new ZZ.BatchWriteItemCommand(RI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:RI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};bu.BatchWriteCommand=DI});var py=h(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.DeleteCommand=void 0;var kI=vt(),tee=ut(),nee=M(),NI=class extends nee.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||{},a=new tee.DeleteItemCommand(kI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:kI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};Su.DeleteCommand=NI});var hy=h(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.ExecuteStatementCommand=void 0;var PI=vt(),ree=ut(),iee=M(),LI=class extends iee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},a=new ree.ExecuteStatementCommand(PI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:PI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};vu.ExecuteStatementCommand=LI});var yy=h(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.ExecuteTransactionCommand=void 0;var qI=vt(),see=ut(),aee=M(),MI=class extends aee.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||{},a=new see.ExecuteTransactionCommand(qI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:qI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};Eu.ExecuteTransactionCommand=MI});var gy=h(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.GetCommand=void 0;var OI=vt(),oee=ut(),cee=M(),zI=class extends cee.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||{},a=new oee.GetItemCommand(OI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:OI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};Au.GetCommand=zI});var _y=h(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.PutCommand=void 0;var jI=vt(),lee=ut(),dee=M(),UI=class extends dee.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||{},a=new lee.PutItemCommand(jI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:jI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};Cu.PutCommand=UI});var wy=h(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.QueryCommand=void 0;var BI=vt(),uee=ut(),mee=M(),FI=class extends mee.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||{},a=new uee.QueryCommand(BI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:BI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};Tu.QueryCommand=FI});var by=h(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.ScanCommand=void 0;var GI=vt(),fee=ut(),pee=M(),$I=class extends pee.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||{},a=new fee.ScanCommand(GI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:GI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};xu.ScanCommand=$I});var Sy=h(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.TransactGetCommand=void 0;var KI=vt(),hee=ut(),yee=M(),VI=class extends yee.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||{},a=new hee.TransactGetItemsCommand(KI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:KI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};Iu.TransactGetCommand=VI});var vy=h(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.TransactWriteCommand=void 0;var WI=vt(),gee=ut(),_ee=M(),HI=class extends _ee.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||{},a=new gee.TransactWriteItemsCommand(WI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:WI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};Ru.TransactWriteCommand=HI});var Ey=h(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.UpdateCommand=void 0;var YI=vt(),wee=ut(),bee=M(),JI=class extends bee.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||{},a=new wee.UpdateItemCommand(YI.marshallInput(this.input,this.inputKeyNodes,i)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:YI.unmarshallOutput(l.output,this.outputKeyNodes,s)})}}};Du.UpdateCommand=JI});var Ay=h(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.DynamoDBDocumentClient=void 0;var See=M(),ku=class extends See.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 ku(t,n)}destroy(){}};Nu.DynamoDBDocumentClient=ku});var QI=h(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.DynamoDBDocument=void 0;var vee=Ay(),Eee=uy(),Aee=my(),Cee=fy(),Tee=py(),xee=hy(),Iee=yy(),Ree=gy(),Dee=_y(),kee=wy(),Nee=by(),Pee=Sy(),Lee=vy(),qee=Ey(),Pu=class extends vee.DynamoDBDocumentClient{static from(t,n){return new Pu(t,n)}batchExecuteStatement(t,n,r){let i=new Eee.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 Aee.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 Cee.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 Tee.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 xee.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 Iee.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 Ree.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 Dee.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 kee.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 Nee.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 Pee.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 Lee.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 qee.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)}};Lu.DynamoDBDocument=Pu});var XI=h(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});var mt=he();mt.__exportStar(uy(),Xe);mt.__exportStar(my(),Xe);mt.__exportStar(fy(),Xe);mt.__exportStar(py(),Xe);mt.__exportStar(hy(),Xe);mt.__exportStar(yy(),Xe);mt.__exportStar(gy(),Xe);mt.__exportStar(_y(),Xe);mt.__exportStar(wy(),Xe);mt.__exportStar(by(),Xe);mt.__exportStar(Sy(),Xe);mt.__exportStar(vy(),Xe);mt.__exportStar(Ey(),Xe);mt.__exportStar(Ay(),Xe);mt.__exportStar(QI(),Xe)});var ZI=h(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.TransformationType=void 0;var Mee;(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"})(Mee=js.TransformationType||(js.TransformationType={}))});var Us=h($r=>{"use strict";var Oee=$r&&$r.__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]}),zee=$r&&$r.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Oee(t,e,n)};Object.defineProperty($r,"__esModule",{value:!0});zee(ZI(),$r)});var t1=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.MetadataStorage=void 0;var zn=Us(),e1=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===zn.TransformationType.CLASS_TO_CLASS||r===zn.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?r===zn.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===zn.TransformationType.CLASS_TO_CLASS||n===zn.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===zn.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===zn.TransformationType.CLASS_TO_CLASS||n===zn.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===zn.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(a=>a.propertyName!==void 0));let s=[];for(let a of this.getAncestors(n)){let c=t.get(a);if(c){let l=Array.from(c.values()).filter(m=>m.propertyName!==void 0);s.push(...l)}}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 a=t.get(s);if(a){let c=a.get(r);if(c)return c}}}findMetadatas(t,n,r){let i=t.get(n),s;i&&(s=i.get(r));let a=[];for(let c of this.getAncestors(n)){let l=t.get(c);l&&l.has(r)&&a.push(...l.get(r))}return a.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!="undefined";r=Object.getPrototypeOf(r.prototype.constructor))n.push(r);this._ancestorsMap.set(t,n)}return this._ancestorsMap.get(t)}};qu.MetadataStorage=e1});var Pi=h(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.defaultMetadataStorage=void 0;var jee=t1();Mu.defaultMetadataStorage=new jee.MetadataStorage});var n1=h(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.getGlobal=void 0;function Uee(){if(typeof globalThis!="undefined")return globalThis;if(typeof global!="undefined")return global;if(typeof window!="undefined")return window;if(typeof self!="undefined")return self}Ou.getGlobal=Uee});var r1=h(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.isPromise=void 0;function Bee(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}zu.isPromise=Bee});var s1=h(cr=>{"use strict";var Fee=cr&&cr.__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]}),i1=cr&&cr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Fee(t,e,n)};Object.defineProperty(cr,"__esModule",{value:!0});i1(n1(),cr);i1(r1(),cr)});var c1=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.TransformOperationExecutor=void 0;var Kt=Pi(),ze=Us(),a1=s1();function Gee(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var o1=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,i,s,a=0){if(Array.isArray(n)||n instanceof Set){let c=i&&this.transformationType===ze.TransformationType.PLAIN_TO_CLASS?Gee(i):[];return n.forEach((l,m)=>{let f=t?t[m]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(l)){let g;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){g=r.options.discriminator.subTypes.find(E=>E.name===l[r.options.discriminator.property]);let _={newObject:c,object:l,property:void 0},S=r.typeFunction(_);g===void 0?g=S:g=g.value,r.options.keepDiscriminatorProperty||delete l[r.options.discriminator.property]}this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(g=l.constructor),this.transformationType===ze.TransformationType.CLASS_TO_PLAIN&&(l[r.options.discriminator.property]=r.options.discriminator.subTypes.find(_=>_.value===l.constructor).name)}else g=r;let p=this.transform(f,l,g,void 0,l instanceof Map,a+1);c instanceof Set?c.add(p):c.push(p)}else this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(c instanceof Set?c.add(l):c.push(l))}),c}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(!!a1.getGlobal().Buffer&&(r===Buffer||n instanceof Buffer)&&!s)return n==null?n:Buffer.from(n);if(a1.isPromise(n)&&!s)return new Promise((c,l)=>{n.then(m=>c(this.transform(void 0,m,r,void 0,void 0,a+1)),l)});if(!s&&n!==null&&typeof n=="object"&&typeof n.then=="function")return n;if(typeof n=="object"&&n!==null){!r&&n.constructor!==Object&&(r=n.constructor),!r&&t&&(r=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);let c=this.getKeys(r,n,s),l=t||{};!t&&(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS||this.transformationType===ze.TransformationType.CLASS_TO_CLASS)&&(s?l=new Map:r?l=new r:l={});for(let m of c){if(m==="__proto__"||m==="constructor")continue;let f=m,g=m,p=m;if(!this.options.ignoreDecorators&&r){if(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){let R=Kt.defaultMetadataStorage.findExposeMetadataByCustomName(r,m);R&&(p=R.propertyName,g=R.propertyName)}else if(this.transformationType===ze.TransformationType.CLASS_TO_PLAIN||this.transformationType===ze.TransformationType.CLASS_TO_CLASS){let R=Kt.defaultMetadataStorage.findExposeMetadata(r,m);R&&R.options&&R.options.name&&(g=R.options.name)}}let _;n instanceof Map?_=n.get(f):n[f]instanceof Function?_=n[f]():_=n[f];let S,E=_ instanceof Map;if(r&&s)S=r;else if(r){let R=Kt.defaultMetadataStorage.findTypeMetadata(r,p);if(R){let K={newObject:l,object:n,property:p},yt=R.typeFunction?R.typeFunction(K):R.reflectedType;R.options&&R.options.discriminator&&R.options.discriminator.property&&R.options.discriminator.subTypes?n[f]instanceof Array?S=R:(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS&&(S=R.options.discriminator.subTypes.find(fe=>{if(_&&_ instanceof Object&&R.options.discriminator.property in _)return fe.name===_[R.options.discriminator.property]}),S===void 0?S=yt:S=S.value,R.options.keepDiscriminatorProperty||_&&_ instanceof Object&&R.options.discriminator.property in _&&delete _[R.options.discriminator.property]),this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(S=_.constructor),this.transformationType===ze.TransformationType.CLASS_TO_PLAIN&&(_[R.options.discriminator.property]=R.options.discriminator.subTypes.find(fe=>fe.value===_.constructor).name)):S=yt,E=E||R.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(K=>K.target===r&&!!K.properties[p]).forEach(K=>S=K.properties[p]);else if(this.options.enableImplicitConversion&&this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){let K=Reflect.getMetadata("design:type",r.prototype,p);K&&(S=K)}}let k=Array.isArray(n[f])?this.getReflectedType(r,p):void 0,D=t?t[f]:void 0;if(l.constructor.prototype){let R=Object.getOwnPropertyDescriptor(l.constructor.prototype,g);if((this.transformationType===ze.TransformationType.PLAIN_TO_CLASS||this.transformationType===ze.TransformationType.CLASS_TO_CLASS)&&(R&&!R.set||l[g]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(_)){let R=this.transformationType===ze.TransformationType.PLAIN_TO_CLASS?g:m,K;this.transformationType===ze.TransformationType.CLASS_TO_PLAIN?(K=n[R],K=this.applyCustomTransformations(K,r,R,n,this.transformationType),K=n[R]===K?_:K,K=this.transform(D,K,S,k,E,a+1)):_===void 0&&this.options.exposeDefaultValues?K=l[g]:(K=this.transform(D,_,S,k,E,a+1),K=this.applyCustomTransformations(K,r,R,n,this.transformationType)),(K!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(g,K):l[g]=K)}else if(this.transformationType===ze.TransformationType.CLASS_TO_CLASS){let R=_;R=this.applyCustomTransformations(R,r,m,n,this.transformationType),(R!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(g,R):l[g]=R)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),l}else return n}}applyCustomTransformations(t,n,r,i,s){let a=Kt.defaultMetadataStorage.findTransformMetadatas(n,r,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:r,obj:i,type:s,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,n){if(!t)return;let r=Kt.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let i=Kt.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&&t){let a=Kt.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===ze.TransformationType.PLAIN_TO_CLASS&&(a=a.map(l=>{let m=Kt.defaultMetadataStorage.findExposeMetadata(t,l);return m&&m.options&&m.options.name?m.options.name:l})),this.options.excludeExtraneousValues?s=a:s=s.concat(a);let c=Kt.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 m=Kt.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options?!0:this.checkVersion(m.options.since,m.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(l=>{let m=Kt.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options?!0:this.checkGroups(m.options.groups)}):s=s.filter(l=>{let m=Kt.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options||!m.options.groups||!m.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,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}};ju.TransformOperationExecutor=o1});var l1=h(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.defaultOptions=void 0;Uu.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 Oi=h(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.ClassTransformer=void 0;var Li=c1(),qi=Us(),Mi=l1(),d1=class{classToPlain(t,n){return new Li.TransformOperationExecutor(qi.TransformationType.CLASS_TO_PLAIN,o(o({},Mi.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new Li.TransformOperationExecutor(qi.TransformationType.CLASS_TO_PLAIN,o(o({},Mi.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}plainToClass(t,n,r){return new Li.TransformOperationExecutor(qi.TransformationType.PLAIN_TO_CLASS,o(o({},Mi.defaultOptions),r)).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new Li.TransformOperationExecutor(qi.TransformationType.PLAIN_TO_CLASS,o(o({},Mi.defaultOptions),r)).transform(t,n,void 0,void 0,void 0,void 0)}classToClass(t,n){return new Li.TransformOperationExecutor(qi.TransformationType.CLASS_TO_CLASS,o(o({},Mi.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new Li.TransformOperationExecutor(qi.TransformationType.CLASS_TO_CLASS,o(o({},Mi.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}serialize(t,n){return JSON.stringify(this.classToPlain(t,n))}deserialize(t,n,r){let i=JSON.parse(n);return this.plainToClass(t,i,r)}deserializeArray(t,n,r){let i=JSON.parse(n);return this.plainToClass(t,i,r)}};Bu.ClassTransformer=d1});var u1=h(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.Exclude=void 0;var $ee=Pi();function Kee(e={}){return function(t,n){$ee.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}Fu.Exclude=Kee});var m1=h(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.Expose=void 0;var Vee=Pi();function Wee(e={}){return function(t,n){Vee.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}Gu.Expose=Wee});var f1=h($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.TransformClassToClass=void 0;var Hee=Oi();function Yee(e){return function(t,n,r){let i=new Hee.ClassTransformer,s=r.value;r.value=function(...a){let c=s.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(m=>i.classToClass(m,e)):i.classToClass(c,e)}}}$u.TransformClassToClass=Yee});var p1=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.TransformClassToPlain=void 0;var Jee=Oi();function Qee(e){return function(t,n,r){let i=new Jee.ClassTransformer,s=r.value;r.value=function(...a){let c=s.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(m=>i.classToPlain(m,e)):i.classToPlain(c,e)}}}Ku.TransformClassToPlain=Qee});var h1=h(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.TransformPlainToClass=void 0;var Xee=Oi();function Zee(e,t){return function(n,r,i){let s=new Xee.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.plainToClass(e,f,t)):s.plainToClass(e,l,t)}}}Vu.TransformPlainToClass=Zee});var y1=h(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.Transform=void 0;var ete=Pi();function tte(e,t={}){return function(n,r){ete.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}Wu.Transform=tte});var g1=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.Type=void 0;var nte=Pi();function rte(e,t={}){return function(n,r){let i=Reflect.getMetadata("design:type",n,r);nte.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}Hu.Type=rte});var _1=h(Mt=>{"use strict";var ite=Mt&&Mt.__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]}),Kr=Mt&&Mt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ite(t,e,n)};Object.defineProperty(Mt,"__esModule",{value:!0});Kr(u1(),Mt);Kr(m1(),Mt);Kr(f1(),Mt);Kr(p1(),Mt);Kr(h1(),Mt);Kr(y1(),Mt);Kr(g1(),Mt)});var b1=h(w1=>{"use strict";Object.defineProperty(w1,"__esModule",{value:!0})});var v1=h(S1=>{"use strict";Object.defineProperty(S1,"__esModule",{value:!0})});var A1=h(E1=>{"use strict";Object.defineProperty(E1,"__esModule",{value:!0})});var T1=h(C1=>{"use strict";Object.defineProperty(C1,"__esModule",{value:!0})});var I1=h(x1=>{"use strict";Object.defineProperty(x1,"__esModule",{value:!0})});var D1=h(R1=>{"use strict";Object.defineProperty(R1,"__esModule",{value:!0})});var N1=h(k1=>{"use strict";Object.defineProperty(k1,"__esModule",{value:!0})});var L1=h(P1=>{"use strict";Object.defineProperty(P1,"__esModule",{value:!0})});var M1=h(q1=>{"use strict";Object.defineProperty(q1,"__esModule",{value:!0})});var z1=h(O1=>{"use strict";Object.defineProperty(O1,"__esModule",{value:!0})});var U1=h(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0})});var F1=h(B1=>{"use strict";Object.defineProperty(B1,"__esModule",{value:!0})});var $1=h(G1=>{"use strict";Object.defineProperty(G1,"__esModule",{value:!0})});var V1=h(K1=>{"use strict";Object.defineProperty(K1,"__esModule",{value:!0})});var W1=h(je=>{"use strict";var ste=je&&je.__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]}),Et=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ste(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});Et(b1(),je);Et(v1(),je);Et(A1(),je);Et(T1(),je);Et(I1(),je);Et(D1(),je);Et(N1(),je);Et(L1(),je);Et(M1(),je);Et(z1(),je);Et(U1(),je);Et(F1(),je);Et($1(),je);Et(V1(),je)});var Ty=h(we=>{"use strict";var ate=we&&we.__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]}),Cy=we&&we.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ate(t,e,n)};Object.defineProperty(we,"__esModule",{value:!0});we.deserializeArray=we.deserialize=we.serialize=we.classToClassFromExist=we.classToClass=we.plainToClassFromExist=we.plainToClass=we.classToPlainFromExist=we.classToPlain=we.ClassTransformer=void 0;var ote=Oi(),cte=Oi();Object.defineProperty(we,"ClassTransformer",{enumerable:!0,get:function(){return cte.ClassTransformer}});Cy(_1(),we);Cy(W1(),we);Cy(Us(),we);var jn=new ote.ClassTransformer;function lte(e,t){return jn.classToPlain(e,t)}we.classToPlain=lte;function dte(e,t,n){return jn.classToPlainFromExist(e,t,n)}we.classToPlainFromExist=dte;function ute(e,t,n){return jn.plainToClass(e,t,n)}we.plainToClass=ute;function mte(e,t,n){return jn.plainToClassFromExist(e,t,n)}we.plainToClassFromExist=mte;function fte(e,t){return jn.classToClass(e,t)}we.classToClass=fte;function pte(e,t,n){return jn.classToClassFromExist(e,t,n)}we.classToClassFromExist=pte;function hte(e,t){return jn.serialize(e,t)}we.serialize=hte;function yte(e,t,n){return jn.deserialize(e,t,n)}we.deserialize=yte;function gte(e,t,n){return jn.deserializeArray(e,t,n)}we.deserializeArray=gte});var At=h(Iy=>{"use strict";Iy.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})};Iy.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 X1=h((xhe,Q1)=>{var lr=require("constants"),_te=process.cwd,Yu=null,wte=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Yu||(Yu=_te.call(process)),Yu};try{process.cwd()}catch(e){}typeof process.chdir=="function"&&(Ry=process.chdir,process.chdir=function(e){Yu=null,Ry.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ry));var Ry;Q1.exports=bte;function bte(e){lr.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=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.lchmod||(e.lchmod=function(f,g,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(f,g,p,_){_&&process.nextTick(_)},e.lchownSync=function(){}),wte==="win32"&&(e.rename=function(f){return function(g,p,_){var S=Date.now(),E=0;f(g,p,function k(D){if(D&&(D.code==="EACCES"||D.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){e.stat(p,function(R,K){R&&R.code==="ENOENT"?f(g,p,k):_(D)})},E),E<100&&(E+=10);return}_&&_(D)})}}(e.rename)),e.read=function(f){function g(p,_,S,E,k,D){var R;if(D&&typeof D=="function"){var K=0;R=function(yt,fe,Sr){if(yt&&yt.code==="EAGAIN"&&K<10)return K++,f.call(e,p,_,S,E,k,R);D.apply(this,arguments)}}return f.call(e,p,_,S,E,k,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(g,f),g}(e.read),e.readSync=function(f){return function(g,p,_,S,E){for(var k=0;;)try{return f.call(e,g,p,_,S,E)}catch(D){if(D.code==="EAGAIN"&&k<10){k++;continue}throw D}}}(e.readSync);function t(f){f.lchmod=function(g,p,_){f.open(g,lr.O_WRONLY|lr.O_SYMLINK,p,function(S,E){if(S){_&&_(S);return}f.fchmod(E,p,function(k){f.close(E,function(D){_&&_(k||D)})})})},f.lchmodSync=function(g,p){var _=f.openSync(g,lr.O_WRONLY|lr.O_SYMLINK,p),S=!0,E;try{E=f.fchmodSync(_,p),S=!1}finally{if(S)try{f.closeSync(_)}catch(k){}else f.closeSync(_)}return E}}function n(f){lr.hasOwnProperty("O_SYMLINK")?(f.lutimes=function(g,p,_,S){f.open(g,lr.O_SYMLINK,function(E,k){if(E){S&&S(E);return}f.futimes(k,p,_,function(D){f.close(k,function(R){S&&S(D||R)})})})},f.lutimesSync=function(g,p,_){var S=f.openSync(g,lr.O_SYMLINK),E,k=!0;try{E=f.futimesSync(S,p,_),k=!1}finally{if(k)try{f.closeSync(S)}catch(D){}else f.closeSync(S)}return E}):(f.lutimes=function(g,p,_,S){S&&process.nextTick(S)},f.lutimesSync=function(){})}function r(f){return f&&function(g,p,_){return f.call(e,g,p,function(S){m(S)&&(S=null),_&&_.apply(this,arguments)})}}function i(f){return f&&function(g,p){try{return f.call(e,g,p)}catch(_){if(!m(_))throw _}}}function s(f){return f&&function(g,p,_,S){return f.call(e,g,p,_,function(E){m(E)&&(E=null),S&&S.apply(this,arguments)})}}function a(f){return f&&function(g,p,_){try{return f.call(e,g,p,_)}catch(S){if(!m(S))throw S}}}function c(f){return f&&function(g,p,_){typeof p=="function"&&(_=p,p=null);function S(E,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),_&&_.apply(this,arguments)}return p?f.call(e,g,p,S):f.call(e,g,S)}}function l(f){return f&&function(g,p){var _=p?f.call(e,g,p):f.call(e,g);return _.uid<0&&(_.uid+=4294967296),_.gid<0&&(_.gid+=4294967296),_}}function m(f){if(!f||f.code==="ENOSYS")return!0;var g=!process.getuid||process.getuid()!==0;return!!(g&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var tR=h((Ihe,eR)=>{var Z1=require("stream").Stream;eR.exports=Ste;function Ste(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);Z1.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 a=Object.keys(i),c=0,l=a.length;c<l;c++){var m=a[c];this[m]=i[m]}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,g){if(f){s.emit("error",f),s.readable=!1;return}s.fd=g,s.emit("open",g),s._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);Z1.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),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 rR=h((Rhe,nR)=>{"use strict";nR.exports=Ete;var vte=Object.getPrototypeOf||function(e){return e.__proto__};function Ete(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:vte(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var st=h((Dhe,ky)=>{var Ze=require("fs"),Ate=X1(),Cte=tR(),Tte=rR(),Ju=require("util"),Zt,Qu;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Zt=Symbol.for("graceful-fs.queue"),Qu=Symbol.for("graceful-fs.previous")):(Zt="___graceful-fs.queue",Qu="___graceful-fs.previous");function xte(){}function iR(e,t){Object.defineProperty(e,Zt,{get:function(){return t}})}var Bs=xte;Ju.debuglog?Bs=Ju.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Bs=function(){var e=Ju.format.apply(Ju,arguments);e="GFS4: "+e.split(/\n/).join(`
22
- GFS4: `),console.error(e)});Ze[Zt]||(sR=global[Zt]||[],iR(Ze,sR),Ze.close=function(e){function t(n,r){return e.call(Ze,n,function(i){i||dr(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,Qu,{value:e}),t}(Ze.close),Ze.closeSync=function(e){function t(n){e.apply(Ze,arguments),dr()}return Object.defineProperty(t,Qu,{value:e}),t}(Ze.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Bs(Ze[Zt]),require("assert").equal(Ze[Zt].length,0)}));var sR;global[Zt]||iR(global,Ze[Zt]);ky.exports=Dy(Tte(Ze));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ze.__patched&&(ky.exports=Dy(Ze),Ze.__patched=!0);function Dy(e){Ate(e),e.gracefulify=Dy,e.createReadStream=fe,e.createWriteStream=Sr;var t=e.readFile;e.readFile=n;function n(Y,de,le){return typeof de=="function"&&(le=de,de=null),_e(Y,de,le);function _e(Te,Re,xe){return t(Te,Re,function(De){De&&(De.code==="EMFILE"||De.code==="ENFILE")?ji([_e,[Te,Re,xe]]):(typeof xe=="function"&&xe.apply(this,arguments),dr())})}}var r=e.writeFile;e.writeFile=i;function i(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=null),Te(Y,de,le,_e);function Te(Re,xe,De,Ne){return r(Re,xe,De,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?ji([Te,[Re,xe,De,Ne]]):(typeof Ne=="function"&&Ne.apply(this,arguments),dr())})}}var s=e.appendFile;s&&(e.appendFile=a);function a(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=null),Te(Y,de,le,_e);function Te(Re,xe,De,Ne){return s(Re,xe,De,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?ji([Te,[Re,xe,De,Ne]]):(typeof Ne=="function"&&Ne.apply(this,arguments),dr())})}}var c=e.copyFile;c&&(e.copyFile=l);function l(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=0),c(Y,de,le,function(Te){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?ji([c,[Y,de,le,_e]]):(typeof _e=="function"&&_e.apply(this,arguments),dr())})}var m=e.readdir;e.readdir=f;function f(Y,de,le){var _e=[Y];return typeof de!="function"?_e.push(de):le=de,_e.push(Te),g(_e);function Te(Re,xe){xe&&xe.sort&&xe.sort(),Re&&(Re.code==="EMFILE"||Re.code==="ENFILE")?ji([g,[_e]]):(typeof le=="function"&&le.apply(this,arguments),dr())}}function g(Y){return m.apply(e,Y)}if(process.version.substr(0,4)==="v0.8"){var p=Cte(e);D=p.ReadStream,K=p.WriteStream}var _=e.ReadStream;_&&(D.prototype=Object.create(_.prototype),D.prototype.open=R);var S=e.WriteStream;S&&(K.prototype=Object.create(S.prototype),K.prototype.open=yt),Object.defineProperty(e,"ReadStream",{get:function(){return D},set:function(Y){D=Y},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return K},set:function(Y){K=Y},enumerable:!0,configurable:!0});var E=D;Object.defineProperty(e,"FileReadStream",{get:function(){return E},set:function(Y){E=Y},enumerable:!0,configurable:!0});var k=K;Object.defineProperty(e,"FileWriteStream",{get:function(){return k},set:function(Y){k=Y},enumerable:!0,configurable:!0});function D(Y,de){return this instanceof D?(_.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function R(){var Y=this;tn(Y.path,Y.flags,Y.mode,function(de,le){de?(Y.autoClose&&Y.destroy(),Y.emit("error",de)):(Y.fd=le,Y.emit("open",le),Y.read())})}function K(Y,de){return this instanceof K?(S.apply(this,arguments),this):K.apply(Object.create(K.prototype),arguments)}function yt(){var Y=this;tn(Y.path,Y.flags,Y.mode,function(de,le){de?(Y.destroy(),Y.emit("error",de)):(Y.fd=le,Y.emit("open",le))})}function fe(Y,de){return new e.ReadStream(Y,de)}function Sr(Y,de){return new e.WriteStream(Y,de)}var vr=e.open;e.open=tn;function tn(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=null),Te(Y,de,le,_e);function Te(Re,xe,De,Ne){return vr(Re,xe,De,function(et,te){et&&(et.code==="EMFILE"||et.code==="ENFILE")?ji([Te,[Re,xe,De,Ne]]):(typeof Ne=="function"&&Ne.apply(this,arguments),dr())})}}return e}function ji(e){Bs("ENQUEUE",e[0].name,e[1]),Ze[Zt].push(e)}function dr(){var e=Ze[Zt].shift();e&&(Bs("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}});var Fs=h(ur=>{"use strict";var aR=At().fromCallback,pt=st(),Ite=["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 pt[e]=="function");Object.keys(pt).forEach(e=>{e!=="promises"&&(ur[e]=pt[e])});Ite.forEach(e=>{ur[e]=aR(pt[e])});ur.exists=function(e,t){return typeof t=="function"?pt.exists(e,t):new Promise(n=>pt.exists(e,n))};ur.read=function(e,t,n,r,i,s){return typeof s=="function"?pt.read(e,t,n,r,i,s):new Promise((a,c)=>{pt.read(e,t,n,r,i,(l,m,f)=>{if(l)return c(l);a({bytesRead:m,buffer:f})})})};ur.write=function(e,t,...n){return typeof n[n.length-1]=="function"?pt.write(e,t,...n):new Promise((r,i)=>{pt.write(e,t,...n,(s,a,c)=>{if(s)return i(s);r({bytesWritten:a,buffer:c})})})};typeof pt.writev=="function"&&(ur.writev=function(e,t,...n){return typeof n[n.length-1]=="function"?pt.writev(e,t,...n):new Promise((r,i)=>{pt.writev(e,t,...n,(s,a,c)=>{if(s)return i(s);r({bytesWritten:a,buffers:c})})})});typeof pt.realpath.native=="function"&&(ur.realpath.native=aR(pt.realpath.native))});var Ny=h((Nhe,oR)=>{oR.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 mR=h((Phe,Py)=>{"use strict";var Ui=Fs(),Un=require("path"),Rte=Ny(),cR=Rte("10.12.0"),lR=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Un.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},dR=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),o(o({},t),e)},uR=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};Py.exports.makeDir=async(e,t)=>{if(lR(e),t=dR(t),cR){let r=Un.resolve(e);return Ui.mkdir(r,{mode:t.mode,recursive:!0})}let n=async r=>{try{await Ui.mkdir(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Un.dirname(r)===r)throw uR(r);if(i.message.includes("null bytes"))throw i;return await n(Un.dirname(r)),n(r)}try{if(!(await Ui.stat(r)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(Un.resolve(e))};Py.exports.makeDirSync=(e,t)=>{if(lR(e),t=dR(t),cR){let r=Un.resolve(e);return Ui.mkdirSync(r,{mode:t.mode,recursive:!0})}let n=r=>{try{Ui.mkdirSync(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Un.dirname(r)===r)throw uR(r);if(i.message.includes("null bytes"))throw i;return n(Un.dirname(r)),n(r)}try{if(!Ui.statSync(r).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(Un.resolve(e))}});var en=h((Lhe,fR)=>{"use strict";var Dte=At().fromPromise,{makeDir:kte,makeDirSync:Ly}=mR(),qy=Dte(kte);fR.exports={mkdirs:qy,mkdirsSync:Ly,mkdirp:qy,mkdirpSync:Ly,ensureDir:qy,ensureDirSync:Ly}});var My=h((qhe,pR)=>{"use strict";var Bi=st();function Nte(e,t,n,r){Bi.open(e,"r+",(i,s)=>{if(i)return r(i);Bi.futimes(s,t,n,a=>{Bi.close(s,c=>{r&&r(a||c)})})})}function Pte(e,t,n){let r=Bi.openSync(e,"r+");return Bi.futimesSync(r,t,n),Bi.closeSync(r)}pR.exports={utimesMillis:Nte,utimesMillisSync:Pte}});var Gs=h((Mhe,_R)=>{"use strict";var Fi=Fs(),Ct=require("path"),Lte=require("util"),qte=Ny(),Xu=qte("10.5.0"),hR=e=>Xu?Fi.stat(e,{bigint:!0}):Fi.stat(e),Oy=e=>Xu?Fi.statSync(e,{bigint:!0}):Fi.statSync(e);function Mte(e,t){return Promise.all([hR(e),hR(t).catch(n=>{if(n.code==="ENOENT")return null;throw n})]).then(([n,r])=>({srcStat:n,destStat:r}))}function Ote(e,t){let n,r=Oy(e);try{n=Oy(t)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function zte(e,t,n,r){Lte.callbackify(Mte)(e,t,(i,s)=>{if(i)return r(i);let{srcStat:a,destStat:c}=s;return c&&Zu(a,c)?r(new Error("Source and destination must not be the same.")):a.isDirectory()&&zy(e,t)?r(new Error(em(e,t,n))):r(null,{srcStat:a,destStat:c})})}function jte(e,t,n){let{srcStat:r,destStat:i}=Ote(e,t);if(i&&Zu(r,i))throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&zy(e,t))throw new Error(em(e,t,n));return{srcStat:r,destStat:i}}function yR(e,t,n,r,i){let s=Ct.resolve(Ct.dirname(e)),a=Ct.resolve(Ct.dirname(n));if(a===s||a===Ct.parse(a).root)return i();let c=(l,m)=>l?l.code==="ENOENT"?i():i(l):Zu(t,m)?i(new Error(em(e,n,r))):yR(e,t,a,r,i);Xu?Fi.stat(a,{bigint:!0},c):Fi.stat(a,c)}function gR(e,t,n,r){let i=Ct.resolve(Ct.dirname(e)),s=Ct.resolve(Ct.dirname(n));if(s===i||s===Ct.parse(s).root)return;let a;try{a=Oy(s)}catch(c){if(c.code==="ENOENT")return;throw c}if(Zu(t,a))throw new Error(em(e,n,r));return gR(e,t,s,r)}function Zu(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(Xu||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 zy(e,t){let n=Ct.resolve(e).split(Ct.sep).filter(i=>i),r=Ct.resolve(t).split(Ct.sep).filter(i=>i);return n.reduce((i,s,a)=>i&&r[a]===s,!0)}function em(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}_R.exports={checkPaths:zte,checkPathsSync:jte,checkParentPaths:yR,checkParentPathsSync:gR,isSrcSubdir:zy}});var ER=h((Ohe,vR)=>{"use strict";var at=st(),$s=require("path"),Ute=en().mkdirsSync,Bte=My().utimesMillisSync,Ks=Gs();function Fte(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;
21
+ ${ec.toHex(i)}`}getCanonicalPath({path:t}){return this.uriEscapePath?`/${encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/")}`:t}async getSignature(t,n,r,s){let i=await this.createStringToSign(t,n,s),a=new this.sha256(await r);return a.update(i),ec.toHex(await a.digest())}getSigningKey(t,n,r,s){return tc.getSigningKey(this.sha256,t,r,n,s||this.service)}};rc.SignatureV4=Cv;var nc=e=>{let t=E8.iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},Tv=e=>Object.keys(e).sort().join(";"),A8=e=>{if(typeof e=="string"){let t=Promise.resolve(e);return()=>t}else return e},C8=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}else return e}});var Rv=p(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var Iv=ue();Iv.__exportStar(yp(),sc);Iv.__exportStar(xv(),sc)});var Nv=p(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.resolveSigV4AuthConfig=bs.resolveAwsAuthConfig=void 0;var T8=st(),kv=Rv(),x8=3e5,I8=e=>{let t=e.credentials?Dv(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:s}=e,i;return e.signer?i=Ei(e.signer):i=()=>Ei(e.region)().then(async a=>[await e.regionInfoProvider(a)||{},a]).then(([a,c])=>{let{signingRegion:l,signingService:m}=a;return e.signingRegion=e.signingRegion||l||c,e.signingName=e.signingName||m||e.serviceId,new kv.SignatureV4({credentials:t,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:n})}),u(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:i})};bs.resolveAwsAuthConfig=I8;var R8=e=>{let t=e.credentials?Dv(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:s}=e,i;return e.signer?i=Ei(e.signer):i=Ei(new kv.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:s,uriEscapePath:n})),u(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:i})};bs.resolveSigV4AuthConfig=R8;var Ei=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},Dv=e=>typeof e=="function"?T8.memoize(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<x8,t=>t.expiration!==void 0):Ei(e)});var Pv=p(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.getSigV4AuthPlugin=jt.getAwsAuthPlugin=jt.awsAuthMiddlewareOptions=jt.awsAuthMiddleware=void 0;var k8=Dt(),D8=(e,t)=>Math.abs(N8(t).getTime()-e)>=3e5,N8=e=>new Date(Date.now()+e);function Lv(e){return(t,n)=>async function(r){if(!k8.HttpRequest.isInstance(r.request))return t(r);let s=typeof e.signer=="function"?await e.signer():e.signer,i=await t(u(o({},r),{request:await s.sign(r.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})})),{headers:a}=i.response,c=a&&(a.date||a.Date);if(c){let l=Date.parse(c);D8(l,e.systemClockOffset)&&(e.systemClockOffset=l-Date.now())}return i}}jt.awsAuthMiddleware=Lv;jt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var L8=e=>({applyToStack:t=>{t.addRelativeTo(Lv(e),jt.awsAuthMiddlewareOptions)}});jt.getAwsAuthPlugin=L8;jt.getSigV4AuthPlugin=jt.getAwsAuthPlugin});var Nn=p(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var qv=ue();qv.__exportStar(Nv(),ic);qv.__exportStar(Pv(),ic)});var oc=p(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.AssumeRoleCommand=void 0;var Mv=an(),Ov=Dn(),P8=j(),q8=Nn(),M8=M(),zv=class extends M8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(P8.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(q8.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:Mv.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:Mv.AssumeRoleResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Ov.serializeAws_queryAssumeRoleCommand(t,n)}deserialize(t,n){return Ov.deserializeAws_queryAssumeRoleCommand(t,n)}};ac.AssumeRoleCommand=zv});var lc=p(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.AssumeRoleWithWebIdentityCommand=void 0;var jv=an(),Uv=Dn(),O8=j(),z8=M(),Bv=class extends z8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(O8.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:jv.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:jv.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Uv.serializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}deserialize(t,n){return Uv.deserializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}};cc.AssumeRoleWithWebIdentityCommand=Bv});var Ep=p(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.decorateDefaultCredentialProvider=dn.getDefaultRoleAssumerWithWebIdentity=dn.getDefaultRoleAssumer=void 0;var j8=oc(),U8=lc(),Fv="us-east-1",Gv=e=>typeof e!="function"?e===void 0?Fv:e:async()=>{try{return await e()}catch(t){return Fv}},B8=(e,t)=>{let n,r;return async(s,i)=>{if(r=s,!n){let{logger:c,region:l,requestHandler:m}=e;n=new t(o({logger:c,credentialDefaultProvider:()=>async()=>r,region:Gv(l||e.region)},m?{requestHandler:m}:{}))}let{Credentials:a}=await n.send(new j8.AssumeRoleCommand(i));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${i.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};dn.getDefaultRoleAssumer=B8;var F8=(e,t)=>{let n;return async r=>{if(!n){let{logger:i,region:a,requestHandler:c}=e;n=new t(o({logger:i,region:Gv(a||e.region)},c?{requestHandler:c}:{}))}let{Credentials:s}=await n.send(new U8.AssumeRoleWithWebIdentityCommand(r));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration}}};dn.getDefaultRoleAssumerWithWebIdentity=F8;var G8=e=>t=>e(o({roleAssumer:dn.getDefaultRoleAssumer(t,t.stsClientCtor),roleAssumerWithWebIdentity:dn.getDefaultRoleAssumerWithWebIdentity(t,t.stsClientCtor)},t));dn.decorateDefaultCredentialProvider=G8});var $v=p(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.resolveCustomEndpointsConfig=void 0;var $8=e=>{var t;return u(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:K8(e),isCustomEndpoint:!0})};dc.resolveCustomEndpointsConfig=$8;var K8=e=>{let{endpoint:t,urlParser:n}=e;if(typeof t=="string"){let r=Promise.resolve(n(t));return()=>r}else if(typeof t=="object"){let r=Promise.resolve(t);return()=>r}return t}});var Kv=p(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.resolveEndpointsConfig=void 0;var V8=e=>{var t;return u(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:e.endpoint?W8(e):()=>H8(e),isCustomEndpoint:!!e.endpoint})};uc.resolveEndpointsConfig=V8;var W8=e=>{let{endpoint:t,urlParser:n}=e;if(typeof t=="string"){let r=Promise.resolve(n(t));return()=>r}else if(typeof t=="object"){let r=Promise.resolve(t);return()=>r}return t},H8=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{hostname:i}=(t=await e.regionInfoProvider(r))!==null&&t!==void 0?t:{};if(!i)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${i}`)}});var Vv=p(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.resolveRegionConfig=_t.NODE_REGION_CONFIG_FILE_OPTIONS=_t.NODE_REGION_CONFIG_OPTIONS=_t.REGION_INI_NAME=_t.REGION_ENV_NAME=void 0;_t.REGION_ENV_NAME="AWS_REGION";_t.REGION_INI_NAME="region";_t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[_t.REGION_ENV_NAME],configFileSelector:e=>e[_t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};_t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"};var Y8=e=>{if(!e.region)throw new Error("Region is missing");return u(o({},e),{region:J8(e.region)})};_t.resolveRegionConfig=Y8;var J8=e=>{if(typeof e=="string"){let t=Promise.resolve(e);return()=>t}return e}});var zr=p(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var Ap=ue();Ap.__exportStar($v(),Ai);Ap.__exportStar(Kv(),Ai);Ap.__exportStar(Vv(),Ai)});var Cp=p(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.fromEnv=it.ENV_EXPIRATION=it.ENV_SESSION=it.ENV_SECRET=it.ENV_KEY=void 0;var Q8=st();it.ENV_KEY="AWS_ACCESS_KEY_ID";it.ENV_SECRET="AWS_SECRET_ACCESS_KEY";it.ENV_SESSION="AWS_SESSION_TOKEN";it.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";function X8(){return()=>{let e=process.env[it.ENV_KEY],t=process.env[it.ENV_SECRET],n=process.env[it.ENV_EXPIRATION];return e&&t?Promise.resolve({accessKeyId:e,secretAccessKey:t,sessionToken:process.env[it.ENV_SESSION],expiration:n?new Date(n):void 0}):Promise.reject(new Q8.CredentialsProviderError("Unable to find environment variable credentials."))}}it.fromEnv=X8});var xp=p(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.httpRequest=void 0;var Tp=st(),Z8=require("buffer"),e6=require("http");function t6(e){return new Promise((t,n)=>{let r=e6.request(o({method:"GET"},e));r.on("error",s=>{n(Object.assign(new Tp.ProviderError("Unable to connect to instance metadata service"),s)),r.destroy()}),r.on("timeout",()=>{n(new Tp.ProviderError("TimeoutError from instance metadata service")),r.destroy()}),r.on("response",s=>{let{statusCode:i=400}=s;(i<200||300<=i)&&(n(Object.assign(new Tp.ProviderError("Error response received from instance metadata service"),{statusCode:i})),r.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(Z8.Buffer.concat(a)),r.destroy()})}),r.end()})}mc.httpRequest=t6});var Ip=p(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.fromImdsCredentials=Ss.isImdsCredentials=void 0;var n6=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Ss.isImdsCredentials=n6;var r6=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Ss.fromImdsCredentials=r6});var fc=p(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.providerConfigFromInit=un.DEFAULT_MAX_RETRIES=un.DEFAULT_TIMEOUT=void 0;un.DEFAULT_TIMEOUT=1e3;un.DEFAULT_MAX_RETRIES=0;var s6=({maxRetries:e=un.DEFAULT_MAX_RETRIES,timeout:t=un.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});un.providerConfigFromInit=s6});var Rp=p(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.retry=void 0;var i6=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};pc.retry=i6});var Hv=p(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.fromContainerMetadata=Ke.ENV_CMDS_AUTH_TOKEN=Ke.ENV_CMDS_RELATIVE_URI=Ke.ENV_CMDS_FULL_URI=void 0;var hc=st(),a6=require("url"),o6=xp(),Wv=Ip(),c6=fc(),l6=Rp();Ke.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";Ke.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";Ke.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var d6=(e={})=>{let{timeout:t,maxRetries:n}=c6.providerConfigFromInit(e);return()=>l6.retry(async()=>{let r=await h6(),s=JSON.parse(await u6(t,r));if(!Wv.isImdsCredentials(s))throw new hc.CredentialsProviderError("Invalid response received from instance metadata service.");return Wv.fromImdsCredentials(s)},n)};Ke.fromContainerMetadata=d6;var u6=async(e,t)=>(process.env[Ke.ENV_CMDS_AUTH_TOKEN]&&(t.headers=u(o({},t.headers),{Authorization:process.env[Ke.ENV_CMDS_AUTH_TOKEN]})),(await o6.httpRequest(u(o({},t),{timeout:e}))).toString()),m6="169.254.170.2",f6={localhost:!0,"127.0.0.1":!0},p6={"http:":!0,"https:":!0},h6=async()=>{if(process.env[Ke.ENV_CMDS_RELATIVE_URI])return{hostname:m6,path:process.env[Ke.ENV_CMDS_RELATIVE_URI]};if(process.env[Ke.ENV_CMDS_FULL_URI]){let e=a6.parse(process.env[Ke.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in f6))throw new hc.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in p6))throw new hc.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return u(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new hc.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${Ke.ENV_CMDS_RELATIVE_URI} or ${Ke.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var Xv=p(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.fromInstanceMetadata=void 0;var y6=st(),kp=xp(),Yv=Ip(),g6=fc(),Jv=Rp(),Dp="169.254.169.254",Qv="/latest/meta-data/iam/security-credentials/",_6="/latest/api/token",w6=(e={})=>{let t=!1,{timeout:n,maxRetries:r}=g6.providerConfigFromInit(e),s=async(i,a)=>{let c=(await Jv.retry(async()=>{let l;try{l=await S6(a)}catch(m){throw m.statusCode===401&&(t=!1),m}return l},i)).trim();return Jv.retry(async()=>{let l;try{l=await v6(c,a)}catch(m){throw m.statusCode===401&&(t=!1),m}return l},i)};return async()=>{if(t)return s(r,{timeout:n});{let i;try{i=(await b6({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),s(r,{timeout:n})}return s(r,{timeout:n,headers:{"x-aws-ec2-metadata-token":i}})}}};yc.fromInstanceMetadata=w6;var b6=async e=>kp.httpRequest(u(o({},e),{host:Dp,path:_6,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),S6=async e=>(await kp.httpRequest(u(o({},e),{host:Dp,path:Qv}))).toString(),v6=async(e,t)=>{let n=JSON.parse((await kp.httpRequest(u(o({},t),{host:Dp,path:Qv+e}))).toString());if(!Yv.isImdsCredentials(n))throw new y6.CredentialsProviderError("Invalid response received from instance metadata service.");return Yv.fromImdsCredentials(n)}});var Lp=p(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var Np=ue();Np.__exportStar(Hv(),Ci);Np.__exportStar(Xv(),Ci);Np.__exportStar(fc(),Ci)});var Pp=p(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.fromWebToken=void 0;var E6=st(),A6=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:s,policyArns:i,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l)throw new E6.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:n!=null?n:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})};gc.fromWebToken=A6});var Zv=p(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.fromTokenFile=void 0;var C6=st(),T6=require("fs"),x6=Pp(),I6="AWS_WEB_IDENTITY_TOKEN_FILE",R6="AWS_ROLE_ARN",k6="AWS_ROLE_SESSION_NAME",D6=(e={})=>async()=>N6(e);_c.fromTokenFile=D6;var N6=e=>{var t,n,r;let s=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[I6],i=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[R6],a=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[k6];if(!s||!i)throw new C6.CredentialsProviderError("Web identity configuration not specified");return x6.fromWebToken(u(o({},e),{webIdentityToken:T6.readFileSync(s,{encoding:"ascii"}),roleArn:i,roleSessionName:a}))()}});var qp=p(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var eE=ue();eE.__exportStar(Zv(),wc);eE.__exportStar(Pp(),wc)});var Ti=p(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.getHomeDir=wt.loadSharedConfigFiles=wt.ENV_CONFIG_PATH=wt.ENV_CREDENTIALS_PATH=void 0;var L6=require("fs"),P6=require("os"),Mp=require("path");wt.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";wt.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var tE=()=>({}),q6=(e={})=>{let{filepath:t=process.env[wt.ENV_CREDENTIALS_PATH]||Mp.join(wt.getHomeDir(),".aws","credentials"),configFilepath:n=process.env[wt.ENV_CONFIG_PATH]||Mp.join(wt.getHomeDir(),".aws","config")}=e;return Promise.all([rE(n).then(nE).then(O6).catch(tE),rE(t).then(nE).catch(tE)]).then(r=>{let[s,i]=r;return{configFile:s,credentialsFile:i}})};wt.loadSharedConfigFiles=q6;var M6=/^profile\s(["'])?([^\1]+)\1$/,O6=e=>{let t={};for(let n of Object.keys(e)){let r;if(n==="default")t.default=e.default;else if(r=M6.exec(n)){let[s,i,a]=r;a&&(t[a]=e[n])}}return t},z6=["__proto__","profile __proto__"],nE=e=>{let t={},n;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0];let s=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(s){if(n=s[1],z6.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(n){let i=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);i&&(t[n]=t[n]||{},t[n][i[1]]=i[2])}}return t},rE=e=>new Promise((t,n)=>{L6.readFile(e,"utf8",(r,s)=>{r?n(r):t(s)})}),j6=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${Mp.sep}`}=process.env;return e||t||(n?`${r}${n}`:P6.homedir())};wt.getHomeDir=j6});var bc=p(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getMasterProfileName=bt.parseKnownFiles=bt.fromIni=bt.ENV_PROFILE=void 0;var U6=Cp(),sE=Lp(),B6=qp(),xi=st(),F6=Ti(),G6="default";bt.ENV_PROFILE="AWS_PROFILE";var iE=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,$6=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,aE=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,K6=e=>aE(e)&&typeof e.source_profile=="string"&&typeof e.credential_source=="undefined",V6=e=>aE(e)&&typeof e.credential_source=="string"&&typeof e.source_profile=="undefined",W6=(e={})=>async()=>{let t=await bt.parseKnownFiles(e);return oE(bt.getMasterProfileName(e),t,e)};bt.fromIni=W6;var H6=async e=>{let{loadedConfig:t=F6.loadSharedConfigFiles(e)}=e,n=await t;return o(o({},n.configFile),n.credentialsFile)};bt.parseKnownFiles=H6;var Y6=e=>e.profile||process.env[bt.ENV_PROFILE]||G6;bt.getMasterProfileName=Y6;var oE=async(e,t,n,r={})=>{let s=t[e];if(Object.keys(r).length>0&&iE(s))return cE(s);if(K6(s)||V6(s)){let{external_id:i,mfa_serial:a,role_arn:c,role_session_name:l="aws-sdk-js-"+Date.now(),source_profile:m,credential_source:f}=s;if(!n.roleAssumer)throw new xi.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);if(m&&m in r)throw new xi.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${bt.getMasterProfileName(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let g=m?oE(m,t,n,u(o({},r),{[m]:!0})):J6(f,e)(),h={RoleArn:c,RoleSessionName:l,ExternalId:i};if(a){if(!n.mfaCodeProvider)throw new xi.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);h.SerialNumber=a,h.TokenCode=await n.mfaCodeProvider(a)}return n.roleAssumer(await g,h)}if(iE(s))return cE(s);if($6(s))return Q6(s,n);throw new xi.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)},J6=(e,t)=>{let n={EcsContainer:sE.fromContainerMetadata,Ec2InstanceMetadata:sE.fromInstanceMetadata,Environment:U6.fromEnv};if(e in n)return n[e]();throw new xi.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)},cE=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),Q6=async(e,t)=>B6.fromTokenFile({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})()});var dE=p(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.fromProcess=vs.ENV_PROFILE=void 0;var lE=bc(),Op=st(),X6=require("child_process");vs.ENV_PROFILE="AWS_PROFILE";var Z6=(e={})=>async()=>{let t=await lE.parseKnownFiles(e);return e4(lE.getMasterProfileName(e),t)};vs.fromProcess=Z6;var e4=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0)return await t4(r).then(s=>{let i;try{i=JSON.parse(s)}catch(h){throw Error(`Profile ${e} credential_process returned invalid JSON.`)}let{Version:a,AccessKeyId:c,SecretAccessKey:l,SessionToken:m,Expiration:f}=i;if(a!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(c===void 0||l===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);let g;if(f){let h=new Date;if(new Date(f)<h)throw Error(`Profile ${e} credential_process returned expired credentials.`);g=Math.floor(new Date(f).valueOf()/1e3)}return{accessKeyId:c,secretAccessKey:l,sessionToken:m,expirationUnix:g}}).catch(s=>{throw new Op.CredentialsProviderError(s.message)});throw new Op.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Op.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)},t4=e=>new Promise(function(t,n){X6.exec(e,(r,s)=>{if(r){n(r);return}t(s.trim())})})});var uE=p((Due,n4)=>{n4.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0",tslib:"^2.0.0"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",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 Sc=p(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.fromString=Es.fromArrayBuffer=void 0;var r4=bp(),zp=require("buffer"),s4=(e,t=0,n=e.byteLength-t)=>{if(!r4.isArrayBuffer(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return zp.Buffer.from(e,t,n)};Es.fromArrayBuffer=s4;var i4=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?zp.Buffer.from(e,t):zp.Buffer.from(e)};Es.fromString=i4});var Ec=p(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.Hash=void 0;var jp=Sc(),a4=require("buffer"),mE=require("crypto"),fE=class{constructor(t,n){this.hash=n?mE.createHmac(t,pE(n)):mE.createHash(t)}update(t,n){this.hash.update(pE(t,n))}digest(){return Promise.resolve(this.hash.digest())}};vc.Hash=fE;function pE(e,t){return a4.Buffer.isBuffer(e)?e:typeof e=="string"?jp.fromString(e,t):ArrayBuffer.isView(e)?jp.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength):jp.fromArrayBuffer(e)}});var hE=p(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.getRetryPlugin=mn.retryMiddlewareOptions=mn.retryMiddleware=void 0;var o4=e=>(t,n)=>async r=>{let s=await e.retryStrategy();return(s==null?void 0:s.mode)&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(t,r)};mn.retryMiddleware=o4;mn.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var c4=e=>({applyToStack:t=>{t.add(mn.retryMiddleware(e),mn.retryMiddlewareOptions)}});mn.getRetryPlugin=c4});var Ii=p(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.REQUEST_HEADER=Me.INVOCATION_ID_HEADER=Me.NO_RETRY_INCREMENT=Me.TIMEOUT_RETRY_COST=Me.RETRY_COST=Me.INITIAL_RETRY_TOKENS=Me.THROTTLING_RETRY_DELAY_BASE=Me.MAXIMUM_RETRY_DELAY=Me.DEFAULT_RETRY_DELAY_BASE=void 0;Me.DEFAULT_RETRY_DELAY_BASE=100;Me.MAXIMUM_RETRY_DELAY=20*1e3;Me.THROTTLING_RETRY_DELAY_BASE=500;Me.INITIAL_RETRY_TOKENS=500;Me.RETRY_COST=5;Me.TIMEOUT_RETRY_COST=10;Me.NO_RETRY_INCREMENT=1;Me.INVOCATION_ID_HEADER="amz-sdk-invocation-id";Me.REQUEST_HEADER="amz-sdk-request"});var gE=p(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.getOmitRetryHeadersPlugin=fn.omitRetryHeadersMiddlewareOptions=fn.omitRetryHeadersMiddleware=void 0;var l4=Dt(),yE=Ii(),d4=()=>e=>async t=>{let{request:n}=t;return l4.HttpRequest.isInstance(n)&&(delete n.headers[yE.INVOCATION_ID_HEADER],delete n.headers[yE.REQUEST_HEADER]),e(t)};fn.omitRetryHeadersMiddleware=d4;fn.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var u4=e=>({applyToStack:t=>{t.addRelativeTo(fn.omitRetryHeadersMiddleware(),fn.omitRetryHeadersMiddlewareOptions)}});fn.getOmitRetryHeadersPlugin=u4});var _E=p(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.TRANSIENT_ERROR_STATUS_CODES=pn.TRANSIENT_ERROR_CODES=pn.THROTTLING_ERROR_CODES=pn.CLOCK_SKEW_ERROR_CODES=void 0;pn.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];pn.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];pn.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];pn.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var Cc=p(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.isTransientError=hn.isThrottlingError=hn.isClockSkewError=hn.isRetryableByTrait=void 0;var Ac=_E(),m4=e=>e.$retryable!==void 0;hn.isRetryableByTrait=m4;var f4=e=>Ac.CLOCK_SKEW_ERROR_CODES.includes(e.name);hn.isClockSkewError=f4;var p4=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||Ac.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==!0};hn.isThrottlingError=p4;var h4=e=>{var t;return Ac.TRANSIENT_ERROR_CODES.includes(e.name)||Ac.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};hn.isTransientError=h4});var Ri=p(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.DEFAULT_RETRY_MODE=Ln.DEFAULT_MAX_ATTEMPTS=Ln.RETRY_MODES=void 0;var wE;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(wE=Ln.RETRY_MODES||(Ln.RETRY_MODES={}));Ln.DEFAULT_MAX_ATTEMPTS=3;Ln.DEFAULT_RETRY_MODE=wE.STANDARD});var bE=p(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.getDefaultRetryQuota=void 0;var Up=Ii(),y4=(e,t)=>{var n,r,s;let i=e,a=(n=t==null?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:Up.NO_RETRY_INCREMENT,c=(r=t==null?void 0:t.retryCost)!==null&&r!==void 0?r:Up.RETRY_COST,l=(s=t==null?void 0:t.timeoutRetryCost)!==null&&s!==void 0?s:Up.TIMEOUT_RETRY_COST,m=e,f=b=>b.name==="TimeoutError"?l:c,g=b=>f(b)<=m;return Object.freeze({hasRetryTokens:g,retrieveRetryTokens:b=>{if(!g(b))throw new Error("No retry token available");let E=f(b);return m-=E,E},releaseRetryTokens:b=>{m+=b!=null?b:a,m=Math.min(m,i)}})};Tc.getDefaultRetryQuota=y4});var Bp=p(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.defaultDelayDecider=void 0;var g4=Ii(),_4=(e,t)=>Math.floor(Math.min(g4.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));xc.defaultDelayDecider=_4});var Fp=p(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.defaultRetryDecider=void 0;var Ic=Cc(),w4=e=>e?Ic.isRetryableByTrait(e)||Ic.isClockSkewError(e)||Ic.isThrottlingError(e)||Ic.isTransientError(e):!1;Rc.defaultRetryDecider=w4});var Dc=p(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.StandardRetryStrategy=void 0;var SE=Dt(),b4=Cc(),S4=Mf(),vE=Ri(),ki=Ii(),v4=bE(),E4=Bp(),A4=Fp(),EE=class{constructor(t,n){var r,s,i;this.maxAttemptsProvider=t,this.mode=vE.RETRY_MODES.STANDARD,this.retryDecider=(r=n==null?void 0:n.retryDecider)!==null&&r!==void 0?r:A4.defaultRetryDecider,this.delayDecider=(s=n==null?void 0:n.delayDecider)!==null&&s!==void 0?s:E4.defaultDelayDecider,this.retryQuota=(i=n==null?void 0:n.retryQuota)!==null&&i!==void 0?i:v4.getDefaultRetryQuota(ki.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(n){t=vE.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,n,r){let s,i=0,a=0,c=await this.getMaxAttempts(),{request:l}=n;for(SE.HttpRequest.isInstance(l)&&(l.headers[ki.INVOCATION_ID_HEADER]=S4.v4());;)try{SE.HttpRequest.isInstance(l)&&(l.headers[ki.REQUEST_HEADER]=`attempt=${i+1}; max=${c}`),(r==null?void 0:r.beforeRequest)&&await r.beforeRequest();let{response:m,output:f}=await t(n);return(r==null?void 0:r.afterRequest)&&r.afterRequest(m),this.retryQuota.releaseRetryTokens(s),f.$metadata.attempts=i+1,f.$metadata.totalRetryDelay=a,{response:m,output:f}}catch(m){let f=C4(m);if(i++,this.shouldRetry(f,i,c)){s=this.retryQuota.retrieveRetryTokens(f);let g=this.delayDecider(b4.isThrottlingError(f)?ki.THROTTLING_RETRY_DELAY_BASE:ki.DEFAULT_RETRY_DELAY_BASE,i);a+=g,await new Promise(h=>setTimeout(h,g));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=i,f.$metadata.totalRetryDelay=a,f}}};kc.StandardRetryStrategy=EE;var C4=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 Gp=p(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.DefaultRateLimiter=void 0;var T4=Cc(),AE=class{constructor(t){var n,r,s,i,a;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=(s=t==null?void 0:t.minFillRate)!==null&&s!==void 0?s:.5,this.scaleConstant=(i=t==null?void 0:t.scaleConstant)!==null&&i!==void 0?i:.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 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(),T4.isThrottlingError(t)){let s=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(s),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))}};Nc.DefaultRateLimiter=AE});var $p=p(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.AdaptiveRetryStrategy=void 0;var x4=Ri(),I4=Gp(),R4=Dc(),CE=class extends R4.StandardRetryStrategy{constructor(t,n){let i=n!=null?n:{},{rateLimiter:r}=i,s=Qn(i,["rateLimiter"]);super(t,s);this.rateLimiter=r!=null?r:new I4.DefaultRateLimiter,this.mode=x4.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Lc.AdaptiveRetryStrategy=CE});var TE=p(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.NODE_RETRY_MODE_CONFIG_OPTIONS=Ie.CONFIG_RETRY_MODE=Ie.ENV_RETRY_MODE=Ie.resolveRetryConfig=Ie.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Ie.CONFIG_MAX_ATTEMPTS=Ie.ENV_MAX_ATTEMPTS=void 0;var k4=$p(),Pc=Ri(),D4=Dc();Ie.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";Ie.CONFIG_MAX_ATTEMPTS="max_attempts";Ie.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[Ie.ENV_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${Ie.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[Ie.CONFIG_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${Ie.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},default:Pc.DEFAULT_MAX_ATTEMPTS};var N4=e=>{let t=L4(e.maxAttempts);return u(o({},e),{maxAttempts:t,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:(e.retryMode||await e.retryModeProvider())===Pc.RETRY_MODES.ADAPTIVE?new k4.AdaptiveRetryStrategy(t):new D4.StandardRetryStrategy(t)})};Ie.resolveRetryConfig=N4;var L4=(e=Pc.DEFAULT_MAX_ATTEMPTS)=>{if(typeof e=="number"){let t=Promise.resolve(e);return()=>t}return e};Ie.ENV_RETRY_MODE="AWS_RETRY_MODE";Ie.CONFIG_RETRY_MODE="retry_mode";Ie.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Ie.ENV_RETRY_MODE],configFileSelector:e=>e[Ie.CONFIG_RETRY_MODE],default:Pc.DEFAULT_RETRY_MODE}});var IE=p(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0})});var jr=p(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});var yn=ue();yn.__exportStar(hE(),Ut);yn.__exportStar(gE(),Ut);yn.__exportStar(Dc(),Ut);yn.__exportStar($p(),Ut);yn.__exportStar(Ri(),Ut);yn.__exportStar(TE(),Ut);yn.__exportStar(Bp(),Ut);yn.__exportStar(Gp(),Ut);yn.__exportStar(Fp(),Ut);yn.__exportStar(IE(),Ut)});var RE=p(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.fromEnv=void 0;var P4=st(),q4=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new P4.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};qc.fromEnv=q4});var kE=p(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.fromSharedConfigFiles=Ur.ENV_PROFILE=void 0;var M4=st(),O4=Ti(),z4="default";Ur.ENV_PROFILE="AWS_PROFILE";var j4=(e,r={})=>{var s=r,{preferredFile:t="config"}=s,n=Qn(s,["preferredFile"]);return async()=>{let{loadedConfig:i=O4.loadSharedConfigFiles(n),profile:a=process.env[Ur.ENV_PROFILE]||z4}=n,{configFile:c,credentialsFile:l}=await i,m=l[a]||{},f=c[a]||{},g=t==="config"?o(o({},m),f):o(o({},f),m);try{let h=e(g);if(h===void 0)throw new Error;return h}catch(h){throw new M4.CredentialsProviderError(h.message||`Cannot load config for profile ${a} in SDK configuration files with getter: ${e}`)}}};Ur.fromSharedConfigFiles=j4});var DE=p(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.fromStatic=void 0;var U4=st(),B4=e=>typeof e=="function",F4=e=>B4(e)?async()=>e():U4.fromStatic(e);Mc.fromStatic=F4});var LE=p(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.loadConfig=void 0;var NE=st(),G4=RE(),$4=kE(),K4=DE(),V4=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>NE.memoize(NE.chain(G4.fromEnv(e),$4.fromSharedConfigFiles(t,r),K4.fromStatic(n)));Oc.loadConfig=V4});var Di=p(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});var W4=ue();W4.__exportStar(LE(),Kp)});var Wp=p(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.buildQueryString=void 0;var Vp=wp();function H4(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Vp.escapeUri(n),Array.isArray(r))for(let s=0,i=r.length;s<i;s++)t.push(`${n}=${Vp.escapeUri(r[s])}`);else{let s=n;(r||typeof r=="string")&&(s+=`=${Vp.escapeUri(r)}`),t.push(s)}}return t.join("&")}zc.buildQueryString=H4});var PE=p(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.NODEJS_TIMEOUT_ERROR_CODES=void 0;jc.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var Hp=p(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.getTransformedHeaders=void 0;var Y4=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};Uc.getTransformedHeaders=Y4});var qE=p(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.setConnectionTimeout=void 0;var J4=(e,t,n=0)=>{!n||e.on("socket",r=>{if(r.connecting){let s=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(s)})}})};Bc.setConnectionTimeout=J4});var ME=p(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.setSocketTimeout=void 0;var Q4=(e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})};Fc.setSocketTimeout=Q4});var Yp=p(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.writeRequestBody=void 0;var X4=require("stream");function Z4(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{OE(e,t.body)}):OE(e,t.body)}Gc.writeRequestBody=Z4;function OE(e,t){t instanceof X4.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var BE=p($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.NodeHttpHandler=void 0;var eY=Dt(),tY=Wp(),zE=require("http"),jE=require("https"),nY=PE(),rY=Hp(),sY=qE(),iY=ME(),aY=Yp(),UE=class{constructor({connectionTimeout:t,socketTimeout:n,httpAgent:r,httpsAgent:s}={}){this.metadata={handlerProtocol:"http/1.1"},this.connectionTimeout=t,this.socketTimeout=n;let i=!0,a=50;this.httpAgent=r||new zE.Agent({keepAlive:i,maxSockets:a}),this.httpsAgent=s||new jE.Agent({keepAlive:i,maxSockets:a})}destroy(){this.httpAgent.destroy(),this.httpsAgent.destroy()}handle(t,{abortSignal:n}={}){return new Promise((r,s)=>{if(n==null?void 0:n.aborted){let f=new Error("Request aborted");f.name="AbortError",s(f);return}let i=t.protocol==="https:",a=tY.buildQueryString(t.query||{}),c={headers:t.headers,host:t.hostname,method:t.method,path:a?`${t.path}?${a}`:t.path,port:t.port,agent:i?this.httpsAgent:this.httpAgent},m=(i?jE.request:zE.request)(c,f=>{let g=new eY.HttpResponse({statusCode:f.statusCode||-1,headers:rY.getTransformedHeaders(f.headers),body:f});r({response:g})});m.on("error",f=>{nY.NODEJS_TIMEOUT_ERROR_CODES.includes(f.code)?s(Object.assign(f,{name:"TimeoutError"})):s(f)}),sY.setConnectionTimeout(m,s,this.connectionTimeout),iY.setSocketTimeout(m,s,this.socketTimeout),n&&(n.onabort=()=>{m.abort();let f=new Error("Request aborted");f.name="AbortError",s(f)}),aY.writeRequestBody(m,t)})}};$c.NodeHttpHandler=UE});var GE=p(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.NodeHttp2Handler=void 0;var oY=Dt(),cY=Wp(),Jp=require("http2"),lY=Hp(),dY=Yp(),FE=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,s)=>{let i=!1;if(n==null?void 0:n.aborted){i=!0;let R=new Error("Request aborted");R.name="AbortError",s(R);return}let{hostname:a,method:c,port:l,protocol:m,path:f,query:g}=t,h=`${m}//${a}${l?`:${l}`:""}`,_=this.getSession(h,this.disableConcurrentStreams||!1),b=R=>{this.disableConcurrentStreams&&this.destroySession(_),i=!0,s(R)},E=cY.buildQueryString(g||{}),D=_.request(u(o({},t.headers),{[Jp.constants.HTTP2_HEADER_PATH]:E?`${f}?${E}`:f,[Jp.constants.HTTP2_HEADER_METHOD]:c}));D.on("response",R=>{let K=new oY.HttpResponse({statusCode:R[":status"]||-1,headers:lY.getTransformedHeaders(R),body:D});i=!0,r({response:K}),this.disableConcurrentStreams&&(_.close(),this.deleteSessionFromCache(h,_))});let k=this.requestTimeout;k&&D.setTimeout(k,()=>{D.close();let R=new Error(`Stream timed out because of no activity for ${k} ms`);R.name="TimeoutError",b(R)}),n&&(n.onabort=()=>{D.close();let R=new Error("Request aborted");R.name="AbortError",b(R)}),D.on("frameError",b),D.on("error",b),D.on("goaway",b),D.on("aborted",b),D.on("close",()=>{this.disableConcurrentStreams&&_.destroy(),i||b(new Error("Unexpected error: http2 request did not get a response"))}),dY.writeRequestBody(D,t)})}getSession(t,n){let r=this.sessionCache,s=r.get(t)||[];if(s.length>0&&!n)return s[0];let i=Jp.connect(t),a=()=>{this.destroySession(i),this.deleteSessionFromCache(t,i)};i.on("goaway",a),i.on("error",a),i.on("frameError",a);let c=this.sessionTimeout;return c&&i.setTimeout(c,a),s.push(i),r.set(t,s),i}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,n){let r=this.sessionCache.get(t)||[];!r.includes(n)||this.sessionCache.set(t,r.filter(s=>s!==n))}};Kc.NodeHttp2Handler=FE});var KE=p(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.Collector=void 0;var uY=require("stream"),$E=class extends uY.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};Vc.Collector=$E});var VE=p(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.streamCollector=void 0;var mY=KE(),fY=e=>new Promise((t,n)=>{let r=new mY.Collector;e.pipe(r),e.on("error",s=>{r.end(),n(s)}),r.on("error",n),r.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})});Wc.streamCollector=fY});var Hc=p(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var Qp=ue();Qp.__exportStar(BE(),Ni);Qp.__exportStar(GE(),Ni);Qp.__exportStar(VE(),Ni)});var Yc=p(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.toBase64=As.fromBase64=void 0;var WE=Sc();function pY(e){let t=WE.fromString(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}As.fromBase64=pY;function hY(e){return WE.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("base64")}As.toBase64=hY});var Qc=p(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.calculateBodyLength=void 0;var yY=require("fs");function gY(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")return yY.lstatSync(e.path).size}Jc.calculateBodyLength=gY});var Xc=p(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.defaultUserAgent=gn.UA_APP_ID_INI_NAME=gn.UA_APP_ID_ENV_NAME=void 0;var _Y=Di(),HE=require("os"),Xp=require("process");gn.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";gn.UA_APP_ID_INI_NAME="sdk-ua-app-id";var wY=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],[`os/${HE.platform()}`,HE.release()],["lang/js"],["md/nodejs",`${Xp.versions.node}`]];e&&n.push([`api/${e}`,t]),Xp.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${Xp.env.AWS_EXECUTION_ENV}`]);let r=_Y.loadConfig({environmentVariableSelector:i=>i[gn.UA_APP_ID_ENV_NAME],configFileSelector:i=>i[gn.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let i=await r;s=i?[...n,[`app/${i}`]]:[...n]}return s}};gn.defaultUserAgent=wY});var Zc=p(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.toUtf8=Cs.fromUtf8=void 0;var YE=Sc(),bY=e=>{let t=YE.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};Cs.fromUtf8=bY;var SY=e=>YE.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8");Cs.toUtf8=SY});var QE=p(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.defaultRegionInfoProvider=void 0;var JE="portal.sso.{region}.amazonaws.com",vY="portal.sso.{region}.amazonaws.com.cn",EY="portal.sso.{region}.c2s.ic.gov",AY="portal.sso.{region}.sc2s.sgov.gov",CY="portal.sso.{region}.amazonaws.com",TY=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","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"]),xY=new Set(["cn-north-1","cn-northwest-1"]),IY=new Set(["us-iso-east-1"]),RY=new Set(["us-isob-east-1"]),kY=new Set(["us-gov-east-1","us-gov-west-1"]),DY=(e,t)=>{let n;switch(e){case"ap-southeast-1":n={hostname:"portal.sso.ap-southeast-1.amazonaws.com",partition:"aws",signingRegion:"ap-southeast-1"};break;case"ap-southeast-2":n={hostname:"portal.sso.ap-southeast-2.amazonaws.com",partition:"aws",signingRegion:"ap-southeast-2"};break;case"ca-central-1":n={hostname:"portal.sso.ca-central-1.amazonaws.com",partition:"aws",signingRegion:"ca-central-1"};break;case"eu-central-1":n={hostname:"portal.sso.eu-central-1.amazonaws.com",partition:"aws",signingRegion:"eu-central-1"};break;case"eu-west-1":n={hostname:"portal.sso.eu-west-1.amazonaws.com",partition:"aws",signingRegion:"eu-west-1"};break;case"eu-west-2":n={hostname:"portal.sso.eu-west-2.amazonaws.com",partition:"aws",signingRegion:"eu-west-2"};break;case"us-east-1":n={hostname:"portal.sso.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"portal.sso.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-west-2":n={hostname:"portal.sso.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:TY.has(e)&&(n={hostname:JE.replace("{region}",e),partition:"aws"}),xY.has(e)&&(n={hostname:vY.replace("{region}",e),partition:"aws-cn"}),IY.has(e)&&(n={hostname:EY.replace("{region}",e),partition:"aws-iso"}),RY.has(e)&&(n={hostname:AY.replace("{region}",e),partition:"aws-iso-b"}),kY.has(e)&&(n={hostname:CY.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:JE.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"awsssoportal"},n))};el.defaultRegionInfoProvider=DY});var XE=p(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.parseQueryString=void 0;function NY(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,s=null]=n.split("=");r=decodeURIComponent(r),s&&(s=decodeURIComponent(s)),r in t?Array.isArray(t[r])?t[r].push(s):t[r]=[t[r],s]:t[r]=s}return t}tl.parseQueryString=NY});var rl=p(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.parseUrl=void 0;var LY=XE(),PY=e=>{let{hostname:t,pathname:n,port:r,protocol:s,search:i}=new URL(e),a;return i&&(a=LY.parseQueryString(i)),{hostname:t,port:r?parseInt(r):void 0,protocol:s,path:n,query:a}};nl.parseUrl=PY});var ZE=p(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.ClientSharedValues=void 0;var qY=QE(),MY=rl();sl.ClientSharedValues={apiVersion:"2019-06-10",disableHostPrefix:!1,logger:{},regionInfoProvider:qY.defaultRegionInfoProvider,serviceId:"SSO",urlParser:MY.parseUrl}});var aA=p(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.ClientDefaultValues=void 0;var OY=ue(),zY=OY.__importDefault(uE()),eA=zr(),jY=Ec(),tA=jr(),Zp=Di(),nA=Hc(),rA=Yc(),UY=Qc(),BY=Xc(),sA=Zc(),iA=ZE();il.ClientDefaultValues=u(o({},iA.ClientSharedValues),{runtime:"node",base64Decoder:rA.fromBase64,base64Encoder:rA.toBase64,bodyLengthChecker:UY.calculateBodyLength,defaultUserAgentProvider:BY.defaultUserAgent({serviceId:iA.ClientSharedValues.serviceId,clientVersion:zY.default.version}),maxAttempts:Zp.loadConfig(tA.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:Zp.loadConfig(eA.NODE_REGION_CONFIG_OPTIONS,eA.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new nA.NodeHttpHandler,retryModeProvider:Zp.loadConfig(tA.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:jY.Hash.bind(null,"sha256"),streamCollector:nA.streamCollector,utf8Decoder:sA.fromUtf8,utf8Encoder:sA.toUtf8})});var al=p(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getContentLengthPlugin=Pn.contentLengthMiddlewareOptions=Pn.contentLengthMiddleware=void 0;var FY=Dt(),oA="content-length";function cA(e){return t=>async n=>{let r=n.request;if(FY.HttpRequest.isInstance(r)){let{body:s,headers:i}=r;if(s&&Object.keys(i).map(a=>a.toLowerCase()).indexOf(oA)===-1){let a=e(s);a!==void 0&&(r.headers=u(o({},r.headers),{[oA]:String(a)}))}}return t(u(o({},n),{request:r}))}}Pn.contentLengthMiddleware=cA;Pn.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var GY=e=>({applyToStack:t=>{t.add(cA(e.bodyLengthChecker),Pn.contentLengthMiddlewareOptions)}});Pn.getContentLengthPlugin=GY});var ol=p(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHostHeaderPlugin=Bt.hostHeaderMiddlewareOptions=Bt.hostHeaderMiddleware=Bt.resolveHostHeaderConfig=void 0;var $Y=Dt();function KY(e){return e}Bt.resolveHostHeaderConfig=KY;var VY=e=>t=>async n=>{if(!$Y.HttpRequest.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:s=""}=e.requestHandler.metadata||{};return s.indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),t(n)};Bt.hostHeaderMiddleware=VY;Bt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var WY=e=>({applyToStack:t=>{t.add(Bt.hostHeaderMiddleware(e),Bt.hostHeaderMiddlewareOptions)}});Bt.getHostHeaderPlugin=WY});var lA=p(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.getLoggerPlugin=_n.loggerMiddlewareOptions=_n.loggerMiddleware=void 0;var HY=()=>(e,t)=>async n=>{let{clientName:r,commandName:s,inputFilterSensitiveLog:i,logger:a,outputFilterSensitiveLog:c}=t,l=await e(n);if(!a)return l;if(typeof a.info=="function"){let m=l.output,{$metadata:f}=m,g=Qn(m,["$metadata"]);a.info({clientName:r,commandName:s,input:i(n.input),output:c(g),metadata:f})}return l};_n.loggerMiddleware=HY;_n.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var YY=e=>({applyToStack:t=>{t.add(_n.loggerMiddleware(),_n.loggerMiddlewareOptions)}});_n.getLoggerPlugin=YY});var cl=p(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var JY=ue();JY.__exportStar(lA(),eh)});var dA=p(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.resolveUserAgentConfig=void 0;function QY(e){return u(o({},e),{customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent})}ll.resolveUserAgentConfig=QY});var uA=p(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.UA_ESCAPE_REGEX=wn.SPACE=wn.X_AMZ_USER_AGENT=wn.USER_AGENT=void 0;wn.USER_AGENT="user-agent";wn.X_AMZ_USER_AGENT="x-amz-user-agent";wn.SPACE=" ";wn.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var mA=p(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.getUserAgentPlugin=bn.getUserAgentMiddlewareOptions=bn.userAgentMiddleware=void 0;var XY=Dt(),cr=uA(),ZY=e=>(t,n)=>async r=>{var s,i;let{request:a}=r;if(!XY.HttpRequest.isInstance(a))return t(r);let{headers:c}=a,l=((s=n==null?void 0:n.userAgent)===null||s===void 0?void 0:s.map(th))||[],m=(await e.defaultUserAgentProvider()).map(th),f=((i=e==null?void 0:e.customUserAgent)===null||i===void 0?void 0:i.map(th))||[],g=[...m,...l,...f].join(cr.SPACE),h=[...m.filter(_=>_.startsWith("aws-sdk-")),...f].join(cr.SPACE);return e.runtime!=="browser"?(h&&(c[cr.X_AMZ_USER_AGENT]=c[cr.X_AMZ_USER_AGENT]?`${c[cr.USER_AGENT]} ${h}`:h),c[cr.USER_AGENT]=g):c[cr.X_AMZ_USER_AGENT]=g,t(u(o({},r),{request:a}))};bn.userAgentMiddleware=ZY;var th=([e,t])=>{let n=e.indexOf("/"),r=e.substring(0,n),s=e.substring(n+1);return r==="api"&&(s=s.toLowerCase()),[r,s,t].filter(i=>i&&i.length>0).map(i=>i==null?void 0:i.replace(cr.UA_ESCAPE_REGEX,"_")).join("/")};bn.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var eJ=e=>({applyToStack:t=>{t.add(bn.userAgentMiddleware(e),bn.getUserAgentMiddlewareOptions)}});bn.getUserAgentPlugin=eJ});var ul=p(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var fA=ue();fA.__exportStar(dA(),dl);fA.__exportStar(mA(),dl)});var Li=p(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.SSOClient=void 0;var tJ=aA(),pA=zr(),nJ=al(),hA=ol(),rJ=cl(),yA=jr(),gA=ul(),sJ=M(),_A=class extends sJ.Client{constructor(t){let n=o(o({},tJ.ClientDefaultValues),t),r=pA.resolveRegionConfig(n),s=pA.resolveEndpointsConfig(r),i=yA.resolveRetryConfig(s),a=hA.resolveHostHeaderConfig(i),c=gA.resolveUserAgentConfig(a);super(c);this.config=c,this.middlewareStack.use(yA.getRetryPlugin(this.config)),this.middlewareStack.use(nJ.getContentLengthPlugin(this.config)),this.middlewareStack.use(hA.getHostHeaderPlugin(this.config)),this.middlewareStack.use(rJ.getLoggerPlugin(this.config)),this.middlewareStack.use(gA.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};ml.SSOClient=_A});var xs=p(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.LogoutRequest=se.ListAccountsResponse=se.ListAccountsRequest=se.ListAccountRolesResponse=se.RoleInfo=se.ListAccountRolesRequest=se.UnauthorizedException=se.TooManyRequestsException=se.ResourceNotFoundException=se.InvalidRequestException=se.GetRoleCredentialsResponse=se.RoleCredentials=se.GetRoleCredentialsRequest=se.AccountInfo=void 0;var Ts=M(),iJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(iJ=se.AccountInfo||(se.AccountInfo={}));var aJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ts.SENSITIVE_STRING})})(aJ=se.GetRoleCredentialsRequest||(se.GetRoleCredentialsRequest={}));var wA;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:Ts.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:Ts.SENSITIVE_STRING})})(wA=se.RoleCredentials||(se.RoleCredentials={}));var oJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:wA.filterSensitiveLog(t.roleCredentials)})})(oJ=se.GetRoleCredentialsResponse||(se.GetRoleCredentialsResponse={}));var cJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(cJ=se.InvalidRequestException||(se.InvalidRequestException={}));var lJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(lJ=se.ResourceNotFoundException||(se.ResourceNotFoundException={}));var dJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(dJ=se.TooManyRequestsException||(se.TooManyRequestsException={}));var uJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(uJ=se.UnauthorizedException||(se.UnauthorizedException={}));var mJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ts.SENSITIVE_STRING})})(mJ=se.ListAccountRolesRequest||(se.ListAccountRolesRequest={}));var fJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(fJ=se.RoleInfo||(se.RoleInfo={}));var pJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(pJ=se.ListAccountRolesResponse||(se.ListAccountRolesResponse={}));var hJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ts.SENSITIVE_STRING})})(hJ=se.ListAccountsRequest||(se.ListAccountsRequest={}));var yJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(yJ=se.ListAccountsResponse||(se.ListAccountsResponse={}));var gJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ts.SENSITIVE_STRING})})(gJ=se.LogoutRequest||(se.LogoutRequest={}))});var Pi=p(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.deserializeAws_restJson1LogoutCommand=Ve.deserializeAws_restJson1ListAccountsCommand=Ve.deserializeAws_restJson1ListAccountRolesCommand=Ve.deserializeAws_restJson1GetRoleCredentialsCommand=Ve.serializeAws_restJson1LogoutCommand=Ve.serializeAws_restJson1ListAccountsCommand=Ve.serializeAws_restJson1ListAccountRolesCommand=Ve.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var fl=Dt(),ut=M(),_J=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},gl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/federation/credentials`,l=o(o({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),m;return new fl.HttpRequest({protocol:r,hostname:n,port:s,method:"GET",headers:a,path:c,query:l,body:m})};Ve.serializeAws_restJson1GetRoleCredentialsCommand=_J;var wJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},gl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/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}),m;return new fl.HttpRequest({protocol:r,hostname:n,port:s,method:"GET",headers:a,path:c,query:l,body:m})};Ve.serializeAws_restJson1ListAccountRolesCommand=wJ;var bJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},gl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/assignment/accounts`,l=o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),m;return new fl.HttpRequest({protocol:r,hostname:n,port:s,method:"GET",headers:a,path:c,query:l,body:m})};Ve.serializeAws_restJson1ListAccountsCommand=bJ;var SJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},gl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/logout`,l;return new fl.HttpRequest({protocol:r,hostname:n,port:s,method:"POST",headers:a,path:c,body:l})};Ve.serializeAws_restJson1LogoutCommand=SJ;var vJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return EJ(e,t);let n={$metadata:Se(e),roleCredentials:void 0},r=await Br(e.body,t);return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=NJ(r.roleCredentials,t)),Promise.resolve(n)};Ve.deserializeAws_restJson1GetRoleCredentialsCommand=vJ;var EJ=async(e,t)=>{let n=u(o({},e),{body:await Br(e.body,t)}),r,s="UnknownError";switch(s=_l(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await nh(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await yl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},AJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return CJ(e,t);let n={$metadata:Se(e),nextToken:void 0,roleList:void 0},r=await Br(e.body,t);return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=ut.expectString(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=PJ(r.roleList,t)),Promise.resolve(n)};Ve.deserializeAws_restJson1ListAccountRolesCommand=AJ;var CJ=async(e,t)=>{let n=u(o({},e),{body:await Br(e.body,t)}),r,s="UnknownError";switch(s=_l(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await nh(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await yl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},TJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return xJ(e,t);let n={$metadata:Se(e),accountList:void 0,nextToken:void 0},r=await Br(e.body,t);return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=DJ(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=ut.expectString(r.nextToken)),Promise.resolve(n)};Ve.deserializeAws_restJson1ListAccountsCommand=TJ;var xJ=async(e,t)=>{let n=u(o({},e),{body:await Br(e.body,t)}),r,s="UnknownError";switch(s=_l(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await nh(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await yl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},IJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return RJ(e,t);let n={$metadata:Se(e)};return await bA(e.body,t),Promise.resolve(n)};Ve.deserializeAws_restJson1LogoutCommand=IJ;var RJ=async(e,t)=>{let n=u(o({},e),{body:await Br(e.body,t)}),r,s="UnknownError";switch(s=_l(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await yl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},pl=async(e,t)=>{let n={name:"InvalidRequestException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},nh=async(e,t)=>{let n={name:"ResourceNotFoundException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},hl=async(e,t)=>{let n={name:"TooManyRequestsException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},yl=async(e,t)=>{let n={name:"UnauthorizedException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},kJ=(e,t)=>({accountId:ut.expectString(e.accountId),accountName:ut.expectString(e.accountName),emailAddress:ut.expectString(e.emailAddress)}),DJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:kJ(n,t)),NJ=(e,t)=>({accessKeyId:ut.expectString(e.accessKeyId),expiration:ut.expectNumber(e.expiration),secretAccessKey:ut.expectString(e.secretAccessKey),sessionToken:ut.expectString(e.sessionToken)}),LJ=(e,t)=>({accountId:ut.expectString(e.accountId),roleName:ut.expectString(e.roleName)}),PJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:LJ(n,t)),Se=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"]}},bA=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),qJ=(e,t)=>bA(e,t).then(n=>t.utf8Encoder(n)),gl=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Br=(e,t)=>qJ(e,t).then(n=>n.length?JSON.parse(n):{}),_l=(e,t)=>{let n=(i,a)=>Object.keys(i).find(c=>c.toLowerCase()===a.toLowerCase()),r=i=>{let a=i;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},s=n(e.headers,"x-amzn-errortype");return s!==void 0?r(e.headers[s]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var rh=p(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.GetRoleCredentialsCommand=void 0;var SA=xs(),vA=Pi(),MJ=j(),OJ=M(),EA=class extends OJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(MJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:SA.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:SA.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return vA.serializeAws_restJson1GetRoleCredentialsCommand(t,n)}deserialize(t,n){return vA.deserializeAws_restJson1GetRoleCredentialsCommand(t,n)}};wl.GetRoleCredentialsCommand=EA});var Sl=p(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.ListAccountRolesCommand=void 0;var AA=xs(),CA=Pi(),zJ=j(),jJ=M(),TA=class extends jJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(zJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:AA.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:AA.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return CA.serializeAws_restJson1ListAccountRolesCommand(t,n)}deserialize(t,n){return CA.deserializeAws_restJson1ListAccountRolesCommand(t,n)}};bl.ListAccountRolesCommand=TA});var El=p(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.ListAccountsCommand=void 0;var xA=xs(),IA=Pi(),UJ=j(),BJ=M(),RA=class extends BJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(UJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:xA.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:xA.ListAccountsResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return IA.serializeAws_restJson1ListAccountsCommand(t,n)}deserialize(t,n){return IA.deserializeAws_restJson1ListAccountsCommand(t,n)}};vl.ListAccountsCommand=RA});var sh=p(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.LogoutCommand=void 0;var FJ=xs(),kA=Pi(),GJ=j(),$J=M(),DA=class extends $J.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(GJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:FJ.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return kA.serializeAws_restJson1LogoutCommand(t,n)}deserialize(t,n){return kA.deserializeAws_restJson1LogoutCommand(t,n)}};Al.LogoutCommand=DA});var Tl=p(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.SSO=void 0;var KJ=Li(),VJ=rh(),WJ=Sl(),HJ=El(),YJ=sh(),NA=class extends KJ.SSOClient{getRoleCredentials(t,n,r){let s=new VJ.GetRoleCredentialsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listAccountRoles(t,n,r){let s=new WJ.ListAccountRolesCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listAccounts(t,n,r){let s=new HJ.ListAccountsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}logout(t,n,r){let s=new YJ.LogoutCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};Cl.SSO=NA});var LA=p(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.paginateListAccountRoles=void 0;var JJ=Tl(),QJ=Li(),XJ=Sl(),ZJ=async(e,t,...n)=>await e.send(new XJ.ListAccountRolesCommand(t),...n),e5=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*t5(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof JJ.SSO)i=await e5(e.client,t,...n);else if(e.client instanceof QJ.SSOClient)i=await ZJ(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield i,r=i.nextToken,s=!!r}return void 0}xl.paginateListAccountRoles=t5});var PA=p(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.paginateListAccounts=void 0;var n5=Tl(),r5=Li(),s5=El(),i5=async(e,t,...n)=>await e.send(new s5.ListAccountsCommand(t),...n),a5=async(e,t,...n)=>await e.listAccounts(t,...n);async function*o5(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof n5.SSO)i=await a5(e.client,t,...n);else if(e.client instanceof r5.SSOClient)i=await i5(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield i,r=i.nextToken,s=!!r}return void 0}Il.paginateListAccounts=o5});var MA=p(qA=>{"use strict";Object.defineProperty(qA,"__esModule",{value:!0})});var OA=p(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var c5=ue();c5.__exportStar(xs(),ih)});var zA=p(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});var Sn=ue();Sn.__exportStar(Li(),Ft);Sn.__exportStar(Tl(),Ft);Sn.__exportStar(rh(),Ft);Sn.__exportStar(Sl(),Ft);Sn.__exportStar(LA(),Ft);Sn.__exportStar(El(),Ft);Sn.__exportStar(PA(),Ft);Sn.__exportStar(sh(),Ft);Sn.__exportStar(MA(),Ft);Sn.__exportStar(OA(),Ft)});var BA=p(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.fromSSO=Fr.EXPIRE_WINDOW_MS=void 0;var jA=zA(),UA=bc(),Is=st(),l5=Ti(),d5=require("crypto"),u5=require("fs"),m5=require("path");Fr.EXPIRE_WINDOW_MS=15*60*1e3;var Rl=!1,f5=(e={})=>async()=>{let t=await UA.parseKnownFiles(e);return p5(UA.getMasterProfileName(e),t,e)};Fr.fromSSO=f5;var p5=async(e,t,n)=>{let r=t[e];if(!r)throw new Is.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`);let{sso_start_url:s,sso_account_id:i,sso_region:a,sso_role_name:c}=r;if(!s&&!i&&!a&&!c)throw new Is.CredentialsProviderError(`Profile ${e} is not configured with SSO credentials.`);if(!s||!i||!a||!c)throw new Is.CredentialsProviderError(`Profile ${e} does not have valid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,Rl);let m=d5.createHash("sha1").update(s).digest("hex"),f=m5.join(l5.getHomeDir(),".aws","sso","cache",`${m}.json`),g;try{if(g=JSON.parse(u5.readFileSync(f,{encoding:"utf-8"})),new Date(g.expiresAt).getTime()-Date.now()<=Fr.EXPIRE_WINDOW_MS)throw new Error("SSO token is expired.")}catch(K){throw new Is.CredentialsProviderError("The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws sso login with the corresponding profile.",Rl)}let{accessToken:h}=g,_=n.ssoClient||new jA.SSOClient({region:a}),b;try{b=await _.send(new jA.GetRoleCredentialsCommand({accountId:i,roleName:c,accessToken:h}))}catch(K){throw Is.CredentialsProviderError.from(K,Rl)}let{roleCredentials:{accessKeyId:E,secretAccessKey:D,sessionToken:k,expiration:R}={}}=b;if(!E||!D||!k||!R)throw new Is.CredentialsProviderError("SSO returns an invalid temporary credential.",Rl);return{accessKeyId:E,secretAccessKey:D,sessionToken:k,expiration:new Date(R)}}});var ah=p(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.defaultProvider=Gr.ENV_IMDS_DISABLED=void 0;var h5=Cp(),kl=Lp(),FA=bc(),y5=dE(),g5=BA(),_5=qp(),Dl=st(),w5=Ti();Gr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var b5=(e={})=>{let t=o({profile:process.env[FA.ENV_PROFILE]},e);t.loadedConfig||(t.loadedConfig=w5.loadSharedConfigFiles(e));let n=[g5.fromSSO(t),FA.fromIni(t),y5.fromProcess(t),_5.fromTokenFile(t),S5(t),async()=>{throw new Dl.CredentialsProviderError("Could not load credentials from any providers",!1)}];t.profile||n.unshift(h5.fromEnv());let r=Dl.chain(...n);return Dl.memoize(r,s=>s.expiration!==void 0&&s.expiration.getTime()-Date.now()<3e5,s=>s.expiration!==void 0)};Gr.defaultProvider=b5;var S5=e=>process.env[kl.ENV_CMDS_RELATIVE_URI]||process.env[kl.ENV_CMDS_FULL_URI]?kl.fromContainerMetadata(e):process.env[Gr.ENV_IMDS_DISABLED]?()=>Promise.reject(new Dl.CredentialsProviderError("EC2 Instance Metadata Service access disabled")):kl.fromInstanceMetadata(e)});var $A=p(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.defaultRegionInfoProvider=void 0;var GA="sts.{region}.amazonaws.com",v5="sts.{region}.amazonaws.com.cn",E5="sts.{region}.c2s.ic.gov",A5="sts.{region}.sc2s.sgov.gov",C5="sts.{region}.amazonaws.com",T5=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","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"]),x5=new Set(["cn-north-1","cn-northwest-1"]),I5=new Set(["us-iso-east-1"]),R5=new Set(["us-isob-east-1"]),k5=new Set(["us-gov-east-1","us-gov-west-1"]),D5=(e,t)=>{let n;switch(e){case"af-south-1":n={hostname:"sts.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"sts.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"sts.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"sts.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-northeast-3":n={hostname:"sts.ap-northeast-3.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"sts.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"sts.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"sts.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"aws-global":n={hostname:"sts.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"ca-central-1":n={hostname:"sts.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"sts.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"sts.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"sts.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"sts.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"sts.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"sts.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"sts.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"sts.eu-west-3.amazonaws.com",partition:"aws"};break;case"me-south-1":n={hostname:"sts.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-east-1":n={hostname:"sts.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"sts.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1-fips":n={hostname:"sts-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"sts.us-east-2.amazonaws.com",partition:"aws"};break;case"us-east-2-fips":n={hostname:"sts-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-gov-east-1":n={hostname:"sts.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-east-1-fips":n={hostname:"sts.us-gov-east-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-east-1"};break;case"us-gov-west-1":n={hostname:"sts.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1-fips":n={hostname:"sts.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"us-iso-east-1":n={hostname:"sts.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"sts.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"sts.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-1-fips":n={hostname:"sts-fips.us-west-1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"us-west-2":n={hostname:"sts.us-west-2.amazonaws.com",partition:"aws"};break;case"us-west-2-fips":n={hostname:"sts-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:T5.has(e)&&(n={hostname:GA.replace("{region}",e),partition:"aws"}),x5.has(e)&&(n={hostname:v5.replace("{region}",e),partition:"aws-cn"}),I5.has(e)&&(n={hostname:E5.replace("{region}",e),partition:"aws-iso"}),R5.has(e)&&(n={hostname:A5.replace("{region}",e),partition:"aws-iso-b"}),k5.has(e)&&(n={hostname:C5.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:GA.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"sts"},n))};Nl.defaultRegionInfoProvider=D5});var KA=p(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.ClientSharedValues=void 0;var N5=$A(),L5=rl();Ll.ClientSharedValues={apiVersion:"2011-06-15",disableHostPrefix:!1,logger:{},regionInfoProvider:N5.defaultRegionInfoProvider,serviceId:"STS",urlParser:L5.parseUrl}});var XA=p(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.ClientDefaultValues=void 0;var P5=ue(),q5=P5.__importDefault(aS()),M5=Ep(),VA=zr(),O5=ah(),z5=Ec(),WA=jr(),oh=Di(),HA=Hc(),YA=Yc(),j5=Qc(),U5=Xc(),JA=Zc(),QA=KA();Pl.ClientDefaultValues=u(o({},QA.ClientSharedValues),{runtime:"node",base64Decoder:YA.fromBase64,base64Encoder:YA.toBase64,bodyLengthChecker:j5.calculateBodyLength,credentialDefaultProvider:M5.decorateDefaultCredentialProvider(O5.defaultProvider),defaultUserAgentProvider:U5.defaultUserAgent({serviceId:QA.ClientSharedValues.serviceId,clientVersion:q5.default.version}),maxAttempts:oh.loadConfig(WA.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:oh.loadConfig(VA.NODE_REGION_CONFIG_OPTIONS,VA.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new HA.NodeHttpHandler,retryModeProvider:oh.loadConfig(WA.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:z5.Hash.bind(null,"sha256"),streamCollector:HA.streamCollector,utf8Decoder:JA.fromUtf8,utf8Encoder:JA.toUtf8})});var ZA=p(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.resolveStsAuthConfig=void 0;var B5=Nn(),F5=(e,{stsClientCtor:t})=>B5.resolveAwsAuthConfig(u(o({},e),{stsClientCtor:t}));ql.resolveStsAuthConfig=F5});var zl=p(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.STSClient=void 0;var G5=XA(),eC=zr(),$5=al(),tC=ol(),K5=cl(),nC=jr(),V5=ZA(),rC=ul(),W5=M(),Ml=class extends W5.Client{constructor(t){let n=o(o({},G5.ClientDefaultValues),t),r=eC.resolveRegionConfig(n),s=eC.resolveEndpointsConfig(r),i=nC.resolveRetryConfig(s),a=tC.resolveHostHeaderConfig(i),c=V5.resolveStsAuthConfig(a,{stsClientCtor:Ml}),l=rC.resolveUserAgentConfig(c);super(l);this.config=l,this.middlewareStack.use(nC.getRetryPlugin(this.config)),this.middlewareStack.use($5.getContentLengthPlugin(this.config)),this.middlewareStack.use(tC.getHostHeaderPlugin(this.config)),this.middlewareStack.use(K5.getLoggerPlugin(this.config)),this.middlewareStack.use(rC.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};Ol.STSClient=Ml});var ch=p(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.AssumeRoleWithSAMLCommand=void 0;var sC=an(),iC=Dn(),H5=j(),Y5=M(),aC=class extends Y5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(H5.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:sC.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:sC.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return iC.serializeAws_queryAssumeRoleWithSAMLCommand(t,n)}deserialize(t,n){return iC.deserializeAws_queryAssumeRoleWithSAMLCommand(t,n)}};jl.AssumeRoleWithSAMLCommand=aC});var lh=p(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.DecodeAuthorizationMessageCommand=void 0;var oC=an(),cC=Dn(),J5=j(),Q5=Nn(),X5=M(),lC=class extends X5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(J5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(Q5.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:oC.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:oC.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return cC.serializeAws_queryDecodeAuthorizationMessageCommand(t,n)}deserialize(t,n){return cC.deserializeAws_queryDecodeAuthorizationMessageCommand(t,n)}};Ul.DecodeAuthorizationMessageCommand=lC});var dh=p(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.GetAccessKeyInfoCommand=void 0;var dC=an(),uC=Dn(),Z5=j(),e9=Nn(),t9=M(),mC=class extends t9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(Z5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(e9.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:dC.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:dC.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return uC.serializeAws_queryGetAccessKeyInfoCommand(t,n)}deserialize(t,n){return uC.deserializeAws_queryGetAccessKeyInfoCommand(t,n)}};Bl.GetAccessKeyInfoCommand=mC});var uh=p(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.GetCallerIdentityCommand=void 0;var fC=an(),pC=Dn(),n9=j(),r9=Nn(),s9=M(),hC=class extends s9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(n9.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(r9.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:fC.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:fC.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return pC.serializeAws_queryGetCallerIdentityCommand(t,n)}deserialize(t,n){return pC.deserializeAws_queryGetCallerIdentityCommand(t,n)}};Fl.GetCallerIdentityCommand=hC});var mh=p(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.GetFederationTokenCommand=void 0;var yC=an(),gC=Dn(),i9=j(),a9=Nn(),o9=M(),_C=class extends o9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(i9.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(a9.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:yC.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:yC.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return gC.serializeAws_queryGetFederationTokenCommand(t,n)}deserialize(t,n){return gC.deserializeAws_queryGetFederationTokenCommand(t,n)}};Gl.GetFederationTokenCommand=_C});var fh=p($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.GetSessionTokenCommand=void 0;var wC=an(),bC=Dn(),c9=j(),l9=Nn(),d9=M(),SC=class extends d9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(c9.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(l9.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:wC.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:wC.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return bC.serializeAws_queryGetSessionTokenCommand(t,n)}deserialize(t,n){return bC.deserializeAws_queryGetSessionTokenCommand(t,n)}};$l.GetSessionTokenCommand=SC});var EC=p(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.STS=void 0;var u9=zl(),m9=oc(),f9=ch(),p9=lc(),h9=lh(),y9=dh(),g9=uh(),_9=mh(),w9=fh(),vC=class extends u9.STSClient{assumeRole(t,n,r){let s=new m9.AssumeRoleCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}assumeRoleWithSAML(t,n,r){let s=new f9.AssumeRoleWithSAMLCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}assumeRoleWithWebIdentity(t,n,r){let s=new p9.AssumeRoleWithWebIdentityCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}decodeAuthorizationMessage(t,n,r){let s=new h9.DecodeAuthorizationMessageCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getAccessKeyInfo(t,n,r){let s=new y9.GetAccessKeyInfoCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getCallerIdentity(t,n,r){let s=new g9.GetCallerIdentityCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getFederationToken(t,n,r){let s=new _9.GetFederationTokenCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getSessionToken(t,n,r){let s=new w9.GetSessionTokenCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};Kl.STS=vC});var TC=p(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.decorateDefaultCredentialProvider=vn.getDefaultRoleAssumerWithWebIdentity=vn.getDefaultRoleAssumer=void 0;var AC=Ep(),CC=zl(),b9=(e={})=>AC.getDefaultRoleAssumer(e,CC.STSClient);vn.getDefaultRoleAssumer=b9;var S9=(e={})=>AC.getDefaultRoleAssumerWithWebIdentity(e,CC.STSClient);vn.getDefaultRoleAssumerWithWebIdentity=S9;var v9=e=>t=>e(o({roleAssumer:vn.getDefaultRoleAssumer(t),roleAssumerWithWebIdentity:vn.getDefaultRoleAssumerWithWebIdentity(t)},t));vn.decorateDefaultCredentialProvider=v9});var xC=p(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var E9=ue();E9.__exportStar(an(),ph)});var IC=p(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});var Gt=ue();Gt.__exportStar(zl(),St);Gt.__exportStar(EC(),St);Gt.__exportStar(oc(),St);Gt.__exportStar(ch(),St);Gt.__exportStar(lc(),St);Gt.__exportStar(lh(),St);Gt.__exportStar(dh(),St);Gt.__exportStar(uh(),St);Gt.__exportStar(mh(),St);Gt.__exportStar(fh(),St);Gt.__exportStar(TC(),St);Gt.__exportStar(xC(),St)});var kC=p(RC=>{"use strict";Object.defineProperty(RC,"__esModule",{value:!0})});var NC=p((ife,DC)=>{function qn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}qn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol!="undefined"&&(qn.prototype[Symbol.iterator]=function(){return this});qn.of=function(){var e=arguments,t=e.length,n=0;return new qn(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};qn.empty=function(){var e=new qn(null);return e.done=!0,e};qn.is=function(e){return e instanceof qn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};DC.exports=qn});var hh=p((afe,MC)=>{var LC=typeof ArrayBuffer!="undefined",PC=typeof Symbol!="undefined";function qC(e,t){var n,r,s,i,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)||LC&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(s=0,i=e.length;s<i;s++)t(e[s],s);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(PC&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,s=0;a=n.next(),a.done!==!0;)t(a.value,s),s++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)}qC.forEachWithNullKeys=function(e,t){var n,r,s,i,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)||LC&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(s=0,i=e.length;s<i;s++)t(e[s],null);return}if(e instanceof Set){e.forEach(function(c){t(c,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(PC&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,s=0;a=n.next(),a.done!==!0;)t(a.value,null),s++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)};MC.exports=qC});var yh=p(En=>{var A9=Math.pow(2,8)-1,C9=Math.pow(2,16)-1,T9=Math.pow(2,32)-1,x9=Math.pow(2,7)-1,I9=Math.pow(2,15)-1,R9=Math.pow(2,31)-1;En.getPointerArray=function(e){var t=e-1;return t<=A9?Uint8Array:t<=C9?Uint16Array:t<=T9?Uint32Array:Float64Array};En.getSignedPointerArray=function(e){var t=e-1;return t<=x9?Int8Array:t<=I9?Int16Array:t<=R9?Int32Array:Float64Array};En.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 k9={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};En.getMinimalRepresentation=function(e,t){var n=null,r=0,s,i,a,c,l;for(c=0,l=e.length;c<l;c++)a=t?t(e[c]):e[c],i=En.getNumberType(a),s=k9[i.name],s>r&&(r=s,n=i);return n};En.isTypedArray=function(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView(e)};En.concat=function(){var e=0,t,n,r;for(t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var s=new arguments[0].constructor(e);for(t=0,n=0;t<r;t++)s.set(arguments[t],n),n+=arguments[t].length;return s};En.indices=function(e){for(var t=En.getPointerArray(e),n=new t(e),r=0;r<e;r++)n[r]=r;return n}});var jC=p(qi=>{var OC=hh(),zC=yh();function D9(e){return Array.isArray(e)||zC.isTypedArray(e)}function gh(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function N9(e){var t=gh(e),n=typeof t=="number"?new Array(t):[],r=0;return OC(e,function(s){n[r++]=s}),n}function L9(e){var t=gh(e),n=typeof t=="number"?zC.getPointerArray(t):Array,r=typeof t=="number"?new Array(t):[],s=typeof t=="number"?new n(t):[],i=0;return OC(e,function(a){r[i]=a,s[i]=i++}),[r,s]}qi.isArrayLike=D9;qi.guessLength=gh;qi.toArray=N9;qi.toArrayWithIndices=L9});var BC=p((lfe,UC)=>{var _h=NC(),P9=hh(),q9=yh(),M9=jC();function Oe(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=q9.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={}}Oe.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};Oe.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};Oe.prototype.set=function(e,t){var n=this.items[e];if(typeof n!="undefined"){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};Oe.prototype.setpop=function(e,t){var n=null,r=null,s=this.items[e];return typeof s!="undefined"?(this.splayOnTop(s),n=this.V[s],this.V[s]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?s=this.size++:(s=this.tail,this.tail=this.backward[s],n=this.V[s],r=this.K[s],delete this.items[this.K[s]]),this.items[e]=s,this.K[s]=e,this.V[s]=t,this.forward[s]=this.head,this.backward[this.head]=s,this.head=s,r?{evicted:!0,key:r,value:n}:null)};Oe.prototype.has=function(e){return e in this.items};Oe.prototype.get=function(e){var t=this.items[e];if(typeof t!="undefined")return this.splayOnTop(t),this.V[t]};Oe.prototype.peek=function(e){var t=this.items[e];if(typeof t!="undefined")return this.V[t]};Oe.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,s=this.head,i=this.K,a=this.V,c=this.forward;n<r;)e.call(t,a[s],i[s],this),s=c[s],n++};Oe.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,s=this.forward;return new _h(function(){if(e>=t)return{done:!0};var i=r[n];return e++,e<t&&(n=s[n]),{done:!1,value:i}})};Oe.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,s=this.forward;return new _h(function(){if(e>=t)return{done:!0};var i=r[n];return e++,e<t&&(n=s[n]),{done:!1,value:i}})};Oe.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,s=this.V,i=this.forward;return new _h(function(){if(e>=t)return{done:!0};var a=r[n],c=s[n];return e++,e<t&&(n=i[n]),{done:!1,value:[a,c]}})};typeof Symbol!="undefined"&&(Oe.prototype[Symbol.iterator]=Oe.prototype.entries);Oe.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:Oe,enumerable:!1}),e};typeof Symbol!="undefined"&&(Oe.prototype[Symbol.for("nodejs.util.inspect.custom")]=Oe.prototype.inspect);Oe.from=function(e,t,n,r){if(arguments.length<2){if(r=M9.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 s=new Oe(t,n,r);return P9(e,function(i,a){s.set(a,i)}),s};UC.exports=Oe});var GC=p(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.EndpointCache=void 0;var O9=ue(),z9=O9.__importDefault(BC()),FC=class{constructor(t){this.cache=new z9.default(t)}getEndpoint(t){let n=this.get(t);if(!n||n.length===0)return;let r=n.map(s=>s.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(),s=n.filter(i=>r<i.Expires);if(s.length===0){this.delete(t);return}return s}set(t,n){let r=Date.now();this.cache.set(t,n.map(({Address:s,CachePeriodInMinutes:i})=>({Address:s,Expires:r+i*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()}};Vl.EndpointCache=FC});var KC=p(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var $C=ue();$C.__exportStar(kC(),Wl);$C.__exportStar(GC(),Wl)});var VC=p(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.resolveEndpointDiscoveryConfig=void 0;var j9=KC(),U9=(e,{endpointDiscoveryCommandCtor:t})=>{var n;return u(o({},e),{endpointDiscoveryCommandCtor:t,endpointCache:new j9.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})};Hl.resolveEndpointDiscoveryConfig=U9});var WC=p(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.getCacheKey=void 0;var B9=async(e,t,n)=>{let{accessKeyId:r}=await t.credentials(),{identifiers:s}=n;return JSON.stringify(o(o({},r&&{accessKeyId:r}),s&&{commandName:e,identifiers:Object.entries(s).sort().reduce((i,[a,c])=>u(o({},i),{[a]:c}),{})}))};Yl.getCacheKey=B9});var HC=p(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.updateDiscoveredEndpointInCache=void 0;var Mn={},F9=async(e,t)=>new Promise((n,r)=>{let{endpointCache:s}=e,{cacheKey:i,commandName:a,identifiers:c}=t,l=s.get(i);if(l&&l.length===1&&l[0].Address==="")t.isDiscoveredEndpointRequired?(Mn[i]||(Mn[i]=[]),Mn[i].push({resolve:n,reject:r})):n();else if(l&&l.length>0)n();else{let m=[{Address:"",CachePeriodInMinutes:1}];s.set(i,m);let f=new t.endpointDiscoveryCommandCtor({Operation:a.substr(0,a.length-7),Identifiers:c});f.resolveMiddleware(t.clientStack,e,t.options)(f).then(h=>{s.set(i,h.output.Endpoints),Mn[i]&&(Mn[i].forEach(({resolve:_})=>{_()}),delete Mn[i]),n()}).catch(h=>{var _;(h.name==="InvalidEndpointException"||((_=h.$metadata)===null||_===void 0?void 0:_.httpStatusCode)===421)&&s.delete(i);let b=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:h});Mn[i]&&(Mn[i].forEach(({reject:E})=>{E(b)}),delete Mn[i]),t.isDiscoveredEndpointRequired?r(b):(s.set(i,m),n())})}});Jl.updateDiscoveredEndpointInCache=F9});var JC=p(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.endpointDiscoveryMiddleware=void 0;var G9=Dt(),$9=WC(),YC=HC(),K9=(e,t)=>(n,r)=>async s=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled)throw new Error("Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.");return n(s)}let{endpointDiscoveryCommandCtor:i}=e,{isDiscoveredEndpointRequired:a,identifiers:c}=t,{clientName:l,commandName:m}=r,f=await e.endpointDiscoveryEnabled(),g=await $9.getCacheKey(m,e,{identifiers:c});if(a){if(f===!1)throw new Error(`Endpoint Discovery is disabled but ${m} on ${l} requires it. Please check your configurations.`);await YC.updateDiscoveredEndpointInCache(e,u(o({},t),{commandName:m,cacheKey:g,endpointDiscoveryCommandCtor:i}))}else f&&YC.updateDiscoveredEndpointInCache(e,u(o({},t),{commandName:m,cacheKey:g,endpointDiscoveryCommandCtor:i}));let{request:h}=s;if(g&&G9.HttpRequest.isInstance(h)){let _=e.endpointCache.getEndpoint(g);_&&(h.hostname=_)}return n(s)};Ql.endpointDiscoveryMiddleware=K9});var QC=p(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.getEndpointDiscoveryOptionalPlugin=Pt.getEndpointDiscoveryRequiredPlugin=Pt.getEndpointDiscoveryPlugin=Pt.endpointDiscoveryMiddlewareOptions=void 0;var wh=JC();Pt.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var V9=(e,t)=>({applyToStack:n=>{n.add(wh.endpointDiscoveryMiddleware(e,t),Pt.endpointDiscoveryMiddlewareOptions)}});Pt.getEndpointDiscoveryPlugin=V9;var W9=(e,t)=>({applyToStack:n=>{n.add(wh.endpointDiscoveryMiddleware(e,u(o({},t),{isDiscoveredEndpointRequired:!0})),Pt.endpointDiscoveryMiddlewareOptions)}});Pt.getEndpointDiscoveryRequiredPlugin=W9;var H9=(e,t)=>({applyToStack:n=>{n.add(wh.endpointDiscoveryMiddleware(e,u(o({},t),{isDiscoveredEndpointRequired:!1})),Pt.endpointDiscoveryMiddlewareOptions)}});Pt.getEndpointDiscoveryOptionalPlugin=H9});var e0=p(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var XC=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],bh="endpoint_discovery_enabled",ZC=e=>["false","0"].indexOf(e)>=0;Xl.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<XC.length;t++){let n=XC[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!ZC(r)}}},configFileSelector:e=>{if(bh in e){let t=e[bh];if(t===void 0)throw Error(`Shared config entry ${bh} can't be undefined, got "${t}"`);return!ZC(t)}},default:void 0}});var vh=p(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});var Sh=ue();Sh.__exportStar(VC(),Mi);Sh.__exportStar(QC(),Mi);Sh.__exportStar(e0(),Mi)});var n0=p(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.defaultRegionInfoProvider=void 0;var t0="dynamodb.{region}.amazonaws.com",Y9="dynamodb.{region}.amazonaws.com.cn",J9="dynamodb.{region}.c2s.ic.gov",Q9="dynamodb.{region}.sc2s.sgov.gov",X9="dynamodb.{region}.amazonaws.com",Z9=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","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"]),eQ=new Set(["cn-north-1","cn-northwest-1"]),tQ=new Set(["us-iso-east-1"]),nQ=new Set(["us-isob-east-1"]),rQ=new Set(["us-gov-east-1","us-gov-west-1"]),sQ=(e,t)=>{let n;switch(e){case"af-south-1":n={hostname:"dynamodb.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"dynamodb.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"dynamodb.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"dynamodb.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-northeast-3":n={hostname:"dynamodb.ap-northeast-3.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"dynamodb.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"dynamodb.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"dynamodb.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"dynamodb.ca-central-1.amazonaws.com",partition:"aws"};break;case"ca-central-1-fips":n={hostname:"dynamodb-fips.ca-central-1.amazonaws.com",partition:"aws",signingRegion:"ca-central-1"};break;case"cn-north-1":n={hostname:"dynamodb.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"dynamodb.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"dynamodb.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"dynamodb.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"dynamodb.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"dynamodb.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"dynamodb.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"dynamodb.eu-west-3.amazonaws.com",partition:"aws"};break;case"local":n={hostname:"localhost:8000",partition:"aws",signingRegion:"us-east-1"};break;case"me-south-1":n={hostname:"dynamodb.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-east-1":n={hostname:"dynamodb.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"dynamodb.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1-fips":n={hostname:"dynamodb-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"dynamodb.us-east-2.amazonaws.com",partition:"aws"};break;case"us-east-2-fips":n={hostname:"dynamodb-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-gov-east-1":n={hostname:"dynamodb.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-east-1-fips":n={hostname:"dynamodb.us-gov-east-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-east-1"};break;case"us-gov-west-1":n={hostname:"dynamodb.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1-fips":n={hostname:"dynamodb.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"us-iso-east-1":n={hostname:"dynamodb.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"dynamodb.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"dynamodb.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-1-fips":n={hostname:"dynamodb-fips.us-west-1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"us-west-2":n={hostname:"dynamodb.us-west-2.amazonaws.com",partition:"aws"};break;case"us-west-2-fips":n={hostname:"dynamodb-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:Z9.has(e)&&(n={hostname:t0.replace("{region}",e),partition:"aws"}),eQ.has(e)&&(n={hostname:Y9.replace("{region}",e),partition:"aws-cn"}),tQ.has(e)&&(n={hostname:J9.replace("{region}",e),partition:"aws-iso"}),nQ.has(e)&&(n={hostname:Q9.replace("{region}",e),partition:"aws-iso-b"}),rQ.has(e)&&(n={hostname:X9.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:t0.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"dynamodb"},n))};Zl.defaultRegionInfoProvider=sQ});var r0=p(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.ClientSharedValues=void 0;var iQ=n0(),aQ=rl();ed.ClientSharedValues={apiVersion:"2012-08-10",disableHostPrefix:!1,logger:{},regionInfoProvider:iQ.defaultRegionInfoProvider,serviceId:"DynamoDB",urlParser:aQ.parseUrl}});var d0=p(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.ClientDefaultValues=void 0;var oQ=ue(),cQ=oQ.__importDefault(iS()),lQ=IC(),s0=zr(),dQ=ah(),uQ=Ec(),mQ=vh(),i0=jr(),td=Di(),a0=Hc(),o0=Yc(),fQ=Qc(),pQ=Xc(),c0=Zc(),l0=r0();nd.ClientDefaultValues=u(o({},l0.ClientSharedValues),{runtime:"node",base64Decoder:o0.fromBase64,base64Encoder:o0.toBase64,bodyLengthChecker:fQ.calculateBodyLength,credentialDefaultProvider:lQ.decorateDefaultCredentialProvider(dQ.defaultProvider),defaultUserAgentProvider:pQ.defaultUserAgent({serviceId:l0.ClientSharedValues.serviceId,clientVersion:cQ.default.version}),endpointDiscoveryEnabledProvider:td.loadConfig(mQ.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:td.loadConfig(i0.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:td.loadConfig(s0.NODE_REGION_CONFIG_OPTIONS,s0.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new a0.NodeHttpHandler,retryModeProvider:td.loadConfig(i0.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:uQ.Hash.bind(null,"sha256"),streamCollector:a0.streamCollector,utf8Decoder:c0.fromUtf8,utf8Encoder:c0.toUtf8})});var lr=p(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.DynamoDBClient=void 0;var hQ=Eo(),yQ=d0(),u0=zr(),gQ=al(),_Q=vh(),m0=ol(),wQ=cl(),f0=jr(),p0=Nn(),h0=ul(),bQ=M(),y0=class extends bQ.Client{constructor(t){let n=o(o({},yQ.ClientDefaultValues),t),r=u0.resolveRegionConfig(n),s=u0.resolveEndpointsConfig(r),i=f0.resolveRetryConfig(s),a=m0.resolveHostHeaderConfig(i),c=p0.resolveAwsAuthConfig(a),l=h0.resolveUserAgentConfig(c),m=_Q.resolveEndpointDiscoveryConfig(l,{endpointDiscoveryCommandCtor:hQ.DescribeEndpointsCommand});super(m);this.config=m,this.middlewareStack.use(f0.getRetryPlugin(this.config)),this.middlewareStack.use(gQ.getContentLengthPlugin(this.config)),this.middlewareStack.use(m0.getHostHeaderPlugin(this.config)),this.middlewareStack.use(wQ.getLoggerPlugin(this.config)),this.middlewareStack.use(p0.getAwsAuthPlugin(this.config)),this.middlewareStack.use(h0.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};rd.DynamoDBClient=y0});var Eh=p(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.BatchExecuteStatementCommand=void 0;var g0=W(),_0=H(),SQ=j(),vQ=M(),w0=class extends vQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(SQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:g0.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:g0.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return _0.serializeAws_json1_0BatchExecuteStatementCommand(t,n)}deserialize(t,n){return _0.deserializeAws_json1_0BatchExecuteStatementCommand(t,n)}};sd.BatchExecuteStatementCommand=w0});var Ah=p(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.BatchGetItemCommand=void 0;var b0=W(),S0=H(),EQ=j(),AQ=M(),v0=class extends AQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(EQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:b0.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:b0.BatchGetItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return S0.serializeAws_json1_0BatchGetItemCommand(t,n)}deserialize(t,n){return S0.deserializeAws_json1_0BatchGetItemCommand(t,n)}};id.BatchGetItemCommand=v0});var Ch=p(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.BatchWriteItemCommand=void 0;var E0=W(),A0=H(),CQ=j(),TQ=M(),C0=class extends TQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(CQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:E0.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:E0.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return A0.serializeAws_json1_0BatchWriteItemCommand(t,n)}deserialize(t,n){return A0.deserializeAws_json1_0BatchWriteItemCommand(t,n)}};ad.BatchWriteItemCommand=C0});var Th=p(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.CreateBackupCommand=void 0;var T0=W(),x0=H(),xQ=j(),IQ=M(),I0=class extends IQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(xQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:T0.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:T0.CreateBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return x0.serializeAws_json1_0CreateBackupCommand(t,n)}deserialize(t,n){return x0.deserializeAws_json1_0CreateBackupCommand(t,n)}};od.CreateBackupCommand=I0});var xh=p(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.CreateGlobalTableCommand=void 0;var R0=W(),k0=H(),RQ=j(),kQ=M(),D0=class extends kQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(RQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:R0.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:R0.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return k0.serializeAws_json1_0CreateGlobalTableCommand(t,n)}deserialize(t,n){return k0.deserializeAws_json1_0CreateGlobalTableCommand(t,n)}};cd.CreateGlobalTableCommand=D0});var Ih=p(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.CreateTableCommand=void 0;var N0=W(),L0=H(),DQ=j(),NQ=M(),P0=class extends NQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(DQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:N0.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:N0.CreateTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return L0.serializeAws_json1_0CreateTableCommand(t,n)}deserialize(t,n){return L0.deserializeAws_json1_0CreateTableCommand(t,n)}};ld.CreateTableCommand=P0});var Rh=p(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.DeleteBackupCommand=void 0;var q0=W(),M0=H(),LQ=j(),PQ=M(),O0=class extends PQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(LQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:q0.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:q0.DeleteBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return M0.serializeAws_json1_0DeleteBackupCommand(t,n)}deserialize(t,n){return M0.deserializeAws_json1_0DeleteBackupCommand(t,n)}};dd.DeleteBackupCommand=O0});var kh=p(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.DeleteItemCommand=void 0;var z0=W(),j0=H(),qQ=j(),MQ=M(),U0=class extends MQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(qQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:z0.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:z0.DeleteItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return j0.serializeAws_json1_0DeleteItemCommand(t,n)}deserialize(t,n){return j0.deserializeAws_json1_0DeleteItemCommand(t,n)}};ud.DeleteItemCommand=U0});var Dh=p(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.DeleteTableCommand=void 0;var B0=W(),F0=H(),OQ=j(),zQ=M(),G0=class extends zQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(OQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:B0.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:B0.DeleteTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return F0.serializeAws_json1_0DeleteTableCommand(t,n)}deserialize(t,n){return F0.deserializeAws_json1_0DeleteTableCommand(t,n)}};md.DeleteTableCommand=G0});var Nh=p(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.DescribeBackupCommand=void 0;var $0=W(),K0=H(),jQ=j(),UQ=M(),V0=class extends UQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(jQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:$0.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:$0.DescribeBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return K0.serializeAws_json1_0DescribeBackupCommand(t,n)}deserialize(t,n){return K0.deserializeAws_json1_0DescribeBackupCommand(t,n)}};fd.DescribeBackupCommand=V0});var Lh=p(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.DescribeContinuousBackupsCommand=void 0;var W0=W(),H0=H(),BQ=j(),FQ=M(),Y0=class extends FQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(BQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:W0.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:W0.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return H0.serializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}deserialize(t,n){return H0.deserializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}};pd.DescribeContinuousBackupsCommand=Y0});var Ph=p(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.DescribeContributorInsightsCommand=void 0;var J0=W(),Q0=H(),GQ=j(),$Q=M(),X0=class extends $Q.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(GQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:J0.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:J0.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Q0.serializeAws_json1_0DescribeContributorInsightsCommand(t,n)}deserialize(t,n){return Q0.deserializeAws_json1_0DescribeContributorInsightsCommand(t,n)}};hd.DescribeContributorInsightsCommand=X0});var qh=p(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.DescribeExportCommand=void 0;var Z0=W(),eT=H(),KQ=j(),VQ=M(),tT=class extends VQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(KQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:Z0.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:Z0.DescribeExportOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return eT.serializeAws_json1_0DescribeExportCommand(t,n)}deserialize(t,n){return eT.deserializeAws_json1_0DescribeExportCommand(t,n)}};yd.DescribeExportCommand=tT});var Mh=p(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.DescribeGlobalTableCommand=void 0;var nT=W(),rT=H(),WQ=j(),HQ=M(),sT=class extends HQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(WQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:nT.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:nT.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return rT.serializeAws_json1_0DescribeGlobalTableCommand(t,n)}deserialize(t,n){return rT.deserializeAws_json1_0DescribeGlobalTableCommand(t,n)}};gd.DescribeGlobalTableCommand=sT});var Oh=p(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.DescribeGlobalTableSettingsCommand=void 0;var iT=W(),aT=H(),YQ=j(),JQ=M(),oT=class extends JQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(YQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:iT.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:iT.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return aT.serializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}deserialize(t,n){return aT.deserializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}};_d.DescribeGlobalTableSettingsCommand=oT});var zh=p(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.DescribeKinesisStreamingDestinationCommand=void 0;var cT=W(),lT=H(),QQ=j(),XQ=M(),dT=class extends XQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(QQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:cT.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:cT.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return lT.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return lT.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}};wd.DescribeKinesisStreamingDestinationCommand=dT});var jh=p(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.DescribeLimitsCommand=void 0;var uT=W(),mT=H(),ZQ=j(),eX=M(),fT=class extends eX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(ZQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:uT.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:uT.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return mT.serializeAws_json1_0DescribeLimitsCommand(t,n)}deserialize(t,n){return mT.deserializeAws_json1_0DescribeLimitsCommand(t,n)}};bd.DescribeLimitsCommand=fT});var Oi=p(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.DescribeTableCommand=void 0;var pT=W(),hT=H(),tX=j(),nX=M(),yT=class extends nX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(tX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:pT.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:pT.DescribeTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return hT.serializeAws_json1_0DescribeTableCommand(t,n)}deserialize(t,n){return hT.deserializeAws_json1_0DescribeTableCommand(t,n)}};Sd.DescribeTableCommand=yT});var Uh=p(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.DescribeTableReplicaAutoScalingCommand=void 0;var gT=W(),_T=H(),rX=j(),sX=M(),wT=class extends sX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(rX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:gT.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:gT.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return _T.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return _T.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}};vd.DescribeTableReplicaAutoScalingCommand=wT});var Bh=p(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.DescribeTimeToLiveCommand=void 0;var bT=W(),ST=H(),iX=j(),aX=M(),vT=class extends aX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(iX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:bT.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:bT.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ST.serializeAws_json1_0DescribeTimeToLiveCommand(t,n)}deserialize(t,n){return ST.deserializeAws_json1_0DescribeTimeToLiveCommand(t,n)}};Ed.DescribeTimeToLiveCommand=vT});var Fh=p(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.DisableKinesisStreamingDestinationCommand=void 0;var ET=W(),AT=H(),oX=j(),cX=M(),CT=class extends cX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(oX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:ET.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:ET.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return AT.serializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return AT.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}};Ad.DisableKinesisStreamingDestinationCommand=CT});var Gh=p(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.EnableKinesisStreamingDestinationCommand=void 0;var TT=W(),xT=H(),lX=j(),dX=M(),IT=class extends dX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(lX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:TT.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:TT.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return xT.serializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return xT.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}};Cd.EnableKinesisStreamingDestinationCommand=IT});var $h=p(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.ExecuteStatementCommand=void 0;var RT=W(),kT=H(),uX=j(),mX=M(),DT=class extends mX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(uX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:RT.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:RT.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return kT.serializeAws_json1_0ExecuteStatementCommand(t,n)}deserialize(t,n){return kT.deserializeAws_json1_0ExecuteStatementCommand(t,n)}};Td.ExecuteStatementCommand=DT});var Kh=p(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.ExecuteTransactionCommand=void 0;var NT=W(),LT=H(),fX=j(),pX=M(),PT=class extends pX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(fX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:NT.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:NT.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return LT.serializeAws_json1_0ExecuteTransactionCommand(t,n)}deserialize(t,n){return LT.deserializeAws_json1_0ExecuteTransactionCommand(t,n)}};xd.ExecuteTransactionCommand=PT});var Vh=p(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.ExportTableToPointInTimeCommand=void 0;var qT=W(),MT=H(),hX=j(),yX=M(),OT=class extends yX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(hX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:qT.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:qT.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return MT.serializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}deserialize(t,n){return MT.deserializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}};Id.ExportTableToPointInTimeCommand=OT});var Wh=p(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.GetItemCommand=void 0;var zT=W(),jT=H(),gX=j(),_X=M(),UT=class extends _X.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(gX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:zT.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:zT.GetItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return jT.serializeAws_json1_0GetItemCommand(t,n)}deserialize(t,n){return jT.deserializeAws_json1_0GetItemCommand(t,n)}};Rd.GetItemCommand=UT});var Hh=p(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.ListBackupsCommand=void 0;var BT=W(),FT=H(),wX=j(),bX=M(),GT=class extends bX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(wX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:BT.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:BT.ListBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return FT.serializeAws_json1_0ListBackupsCommand(t,n)}deserialize(t,n){return FT.deserializeAws_json1_0ListBackupsCommand(t,n)}};kd.ListBackupsCommand=GT});var Nd=p(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.ListContributorInsightsCommand=void 0;var $T=W(),KT=H(),SX=j(),vX=M(),VT=class extends vX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(SX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:$T.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:$T.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return KT.serializeAws_json1_0ListContributorInsightsCommand(t,n)}deserialize(t,n){return KT.deserializeAws_json1_0ListContributorInsightsCommand(t,n)}};Dd.ListContributorInsightsCommand=VT});var Pd=p(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.ListExportsCommand=void 0;var WT=W(),HT=H(),EX=j(),AX=M(),YT=class extends AX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(EX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:WT.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:WT.ListExportsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return HT.serializeAws_json1_0ListExportsCommand(t,n)}deserialize(t,n){return HT.deserializeAws_json1_0ListExportsCommand(t,n)}};Ld.ListExportsCommand=YT});var Yh=p(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.ListGlobalTablesCommand=void 0;var JT=W(),QT=H(),CX=j(),TX=M(),XT=class extends TX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(CX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:JT.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:JT.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return QT.serializeAws_json1_0ListGlobalTablesCommand(t,n)}deserialize(t,n){return QT.deserializeAws_json1_0ListGlobalTablesCommand(t,n)}};qd.ListGlobalTablesCommand=XT});var Od=p(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.ListTablesCommand=void 0;var ZT=W(),ex=H(),xX=j(),IX=M(),tx=class extends IX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(xX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:ZT.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:ZT.ListTablesOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ex.serializeAws_json1_0ListTablesCommand(t,n)}deserialize(t,n){return ex.deserializeAws_json1_0ListTablesCommand(t,n)}};Md.ListTablesCommand=tx});var Jh=p(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.ListTagsOfResourceCommand=void 0;var nx=W(),rx=H(),RX=j(),kX=M(),sx=class extends kX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(RX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:nx.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:nx.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return rx.serializeAws_json1_0ListTagsOfResourceCommand(t,n)}deserialize(t,n){return rx.deserializeAws_json1_0ListTagsOfResourceCommand(t,n)}};zd.ListTagsOfResourceCommand=sx});var Qh=p(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.PutItemCommand=void 0;var ix=W(),ax=H(),DX=j(),NX=M(),ox=class extends NX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(DX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:ix.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:ix.PutItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ax.serializeAws_json1_0PutItemCommand(t,n)}deserialize(t,n){return ax.deserializeAws_json1_0PutItemCommand(t,n)}};jd.PutItemCommand=ox});var Bd=p(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.QueryCommand=void 0;var cx=W(),lx=H(),LX=j(),PX=M(),dx=class extends PX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(LX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:cx.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:cx.QueryOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return lx.serializeAws_json1_0QueryCommand(t,n)}deserialize(t,n){return lx.deserializeAws_json1_0QueryCommand(t,n)}};Ud.QueryCommand=dx});var Xh=p(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.RestoreTableFromBackupCommand=void 0;var ux=W(),mx=H(),qX=j(),MX=M(),fx=class extends MX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(qX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:ux.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:ux.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return mx.serializeAws_json1_0RestoreTableFromBackupCommand(t,n)}deserialize(t,n){return mx.deserializeAws_json1_0RestoreTableFromBackupCommand(t,n)}};Fd.RestoreTableFromBackupCommand=fx});var Zh=p(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.RestoreTableToPointInTimeCommand=void 0;var px=W(),hx=H(),OX=j(),zX=M(),yx=class extends zX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(OX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:px.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:px.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return hx.serializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}deserialize(t,n){return hx.deserializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}};Gd.RestoreTableToPointInTimeCommand=yx});var Kd=p($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.ScanCommand=void 0;var gx=W(),_x=H(),jX=j(),UX=M(),wx=class extends UX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(jX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:gx.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:gx.ScanOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return _x.serializeAws_json1_0ScanCommand(t,n)}deserialize(t,n){return _x.deserializeAws_json1_0ScanCommand(t,n)}};$d.ScanCommand=wx});var ey=p(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.TagResourceCommand=void 0;var BX=W(),bx=H(),FX=j(),GX=M(),Sx=class extends GX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(FX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:BX.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return bx.serializeAws_json1_0TagResourceCommand(t,n)}deserialize(t,n){return bx.deserializeAws_json1_0TagResourceCommand(t,n)}};Vd.TagResourceCommand=Sx});var ty=p(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.TransactGetItemsCommand=void 0;var vx=W(),Ex=H(),$X=j(),KX=M(),Ax=class extends KX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use($X.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:vx.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:vx.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Ex.serializeAws_json1_0TransactGetItemsCommand(t,n)}deserialize(t,n){return Ex.deserializeAws_json1_0TransactGetItemsCommand(t,n)}};Wd.TransactGetItemsCommand=Ax});var ny=p(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.TransactWriteItemsCommand=void 0;var Cx=W(),Tx=H(),VX=j(),WX=M(),xx=class extends WX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(VX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:Cx.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:Cx.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Tx.serializeAws_json1_0TransactWriteItemsCommand(t,n)}deserialize(t,n){return Tx.deserializeAws_json1_0TransactWriteItemsCommand(t,n)}};Hd.TransactWriteItemsCommand=xx});var ry=p(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.UntagResourceCommand=void 0;var HX=W(),Ix=H(),YX=j(),JX=M(),Rx=class extends JX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(YX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:HX.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Ix.serializeAws_json1_0UntagResourceCommand(t,n)}deserialize(t,n){return Ix.deserializeAws_json1_0UntagResourceCommand(t,n)}};Yd.UntagResourceCommand=Rx});var sy=p(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.UpdateContinuousBackupsCommand=void 0;var kx=W(),Dx=H(),QX=j(),XX=M(),Nx=class extends XX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(QX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:kx.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:kx.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Dx.serializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}deserialize(t,n){return Dx.deserializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}};Jd.UpdateContinuousBackupsCommand=Nx});var iy=p(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.UpdateContributorInsightsCommand=void 0;var Lx=W(),Px=H(),ZX=j(),e7=M(),qx=class extends e7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(ZX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:Lx.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:Lx.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Px.serializeAws_json1_0UpdateContributorInsightsCommand(t,n)}deserialize(t,n){return Px.deserializeAws_json1_0UpdateContributorInsightsCommand(t,n)}};Qd.UpdateContributorInsightsCommand=qx});var ay=p(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.UpdateGlobalTableCommand=void 0;var Mx=W(),Ox=H(),t7=j(),n7=M(),zx=class extends n7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(t7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:Mx.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:Mx.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Ox.serializeAws_json1_0UpdateGlobalTableCommand(t,n)}deserialize(t,n){return Ox.deserializeAws_json1_0UpdateGlobalTableCommand(t,n)}};Xd.UpdateGlobalTableCommand=zx});var oy=p(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.UpdateGlobalTableSettingsCommand=void 0;var jx=W(),Ux=H(),r7=j(),s7=M(),Bx=class extends s7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(r7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:jx.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:jx.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Ux.serializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}deserialize(t,n){return Ux.deserializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}};Zd.UpdateGlobalTableSettingsCommand=Bx});var cy=p(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.UpdateItemCommand=void 0;var Fx=W(),Gx=H(),i7=j(),a7=M(),$x=class extends a7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(i7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:Fx.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:Fx.UpdateItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Gx.serializeAws_json1_0UpdateItemCommand(t,n)}deserialize(t,n){return Gx.deserializeAws_json1_0UpdateItemCommand(t,n)}};eu.UpdateItemCommand=$x});var ly=p(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.UpdateTableCommand=void 0;var Kx=W(),Vx=H(),o7=j(),c7=M(),Wx=class extends c7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(o7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:Kx.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:Kx.UpdateTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Vx.serializeAws_json1_0UpdateTableCommand(t,n)}deserialize(t,n){return Vx.deserializeAws_json1_0UpdateTableCommand(t,n)}};tu.UpdateTableCommand=Wx});var dy=p(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.UpdateTableReplicaAutoScalingCommand=void 0;var Hx=W(),Yx=H(),l7=j(),d7=M(),Jx=class extends d7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(l7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:Hx.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:Hx.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Yx.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return Yx.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}};nu.UpdateTableReplicaAutoScalingCommand=Jx});var uy=p(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.UpdateTimeToLiveCommand=void 0;var Qx=W(),Xx=H(),u7=j(),m7=M(),Zx=class extends m7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(u7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:Qx.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:Qx.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Xx.serializeAws_json1_0UpdateTimeToLiveCommand(t,n)}deserialize(t,n){return Xx.deserializeAws_json1_0UpdateTimeToLiveCommand(t,n)}};ru.UpdateTimeToLiveCommand=Zx});var $r=p(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.DynamoDB=void 0;var f7=lr(),p7=Eh(),h7=Ah(),y7=Ch(),g7=Th(),_7=xh(),w7=Ih(),b7=Rh(),S7=kh(),v7=Dh(),E7=Nh(),A7=Lh(),C7=Ph(),T7=Eo(),x7=qh(),I7=Mh(),R7=Oh(),k7=zh(),D7=jh(),N7=Oi(),L7=Uh(),P7=Bh(),q7=Fh(),M7=Gh(),O7=$h(),z7=Kh(),j7=Vh(),U7=Wh(),B7=Hh(),F7=Nd(),G7=Pd(),$7=Yh(),K7=Od(),V7=Jh(),W7=Qh(),H7=Bd(),Y7=Xh(),J7=Zh(),Q7=Kd(),X7=ey(),Z7=ty(),eZ=ny(),tZ=ry(),nZ=sy(),rZ=iy(),sZ=ay(),iZ=oy(),aZ=cy(),oZ=ly(),cZ=dy(),lZ=uy(),eI=class extends f7.DynamoDBClient{batchExecuteStatement(t,n,r){let s=new p7.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchGetItem(t,n,r){let s=new h7.BatchGetItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchWriteItem(t,n,r){let s=new y7.BatchWriteItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}createBackup(t,n,r){let s=new g7.CreateBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}createGlobalTable(t,n,r){let s=new _7.CreateGlobalTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}createTable(t,n,r){let s=new w7.CreateTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}deleteBackup(t,n,r){let s=new b7.DeleteBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}deleteItem(t,n,r){let s=new S7.DeleteItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}deleteTable(t,n,r){let s=new v7.DeleteTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeBackup(t,n,r){let s=new E7.DescribeBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeContinuousBackups(t,n,r){let s=new A7.DescribeContinuousBackupsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeContributorInsights(t,n,r){let s=new C7.DescribeContributorInsightsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeEndpoints(t,n,r){let s=new T7.DescribeEndpointsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeExport(t,n,r){let s=new x7.DescribeExportCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeGlobalTable(t,n,r){let s=new I7.DescribeGlobalTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeGlobalTableSettings(t,n,r){let s=new R7.DescribeGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeKinesisStreamingDestination(t,n,r){let s=new k7.DescribeKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeLimits(t,n,r){let s=new D7.DescribeLimitsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeTable(t,n,r){let s=new N7.DescribeTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeTableReplicaAutoScaling(t,n,r){let s=new L7.DescribeTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeTimeToLive(t,n,r){let s=new P7.DescribeTimeToLiveCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}disableKinesisStreamingDestination(t,n,r){let s=new q7.DisableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}enableKinesisStreamingDestination(t,n,r){let s=new M7.EnableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeStatement(t,n,r){let s=new O7.ExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeTransaction(t,n,r){let s=new z7.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}exportTableToPointInTime(t,n,r){let s=new j7.ExportTableToPointInTimeCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getItem(t,n,r){let s=new U7.GetItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listBackups(t,n,r){let s=new B7.ListBackupsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listContributorInsights(t,n,r){let s=new F7.ListContributorInsightsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listExports(t,n,r){let s=new G7.ListExportsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listGlobalTables(t,n,r){let s=new $7.ListGlobalTablesCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listTables(t,n,r){let s=new K7.ListTablesCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listTagsOfResource(t,n,r){let s=new V7.ListTagsOfResourceCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}putItem(t,n,r){let s=new W7.PutItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}query(t,n,r){let s=new H7.QueryCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}restoreTableFromBackup(t,n,r){let s=new Y7.RestoreTableFromBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}restoreTableToPointInTime(t,n,r){let s=new J7.RestoreTableToPointInTimeCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}scan(t,n,r){let s=new Q7.ScanCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}tagResource(t,n,r){let s=new X7.TagResourceCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactGetItems(t,n,r){let s=new Z7.TransactGetItemsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactWriteItems(t,n,r){let s=new eZ.TransactWriteItemsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}untagResource(t,n,r){let s=new tZ.UntagResourceCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateContinuousBackups(t,n,r){let s=new nZ.UpdateContinuousBackupsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateContributorInsights(t,n,r){let s=new rZ.UpdateContributorInsightsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateGlobalTable(t,n,r){let s=new sZ.UpdateGlobalTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateGlobalTableSettings(t,n,r){let s=new iZ.UpdateGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateItem(t,n,r){let s=new aZ.UpdateItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateTable(t,n,r){let s=new oZ.UpdateTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateTableReplicaAutoScaling(t,n,r){let s=new cZ.UpdateTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateTimeToLive(t,n,r){let s=new lZ.UpdateTimeToLiveCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};su.DynamoDB=eI});var my=p(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.sleep=void 0;var dZ=e=>new Promise(t=>setTimeout(t,e*1e3));iu.sleep=dZ});var ou=p(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.checkExceptions=On.WaiterState=On.waiterServiceDefaults=void 0;On.waiterServiceDefaults={minDelay:2,maxDelay:120};var au;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(au=On.WaiterState||(On.WaiterState={}));var uZ=e=>{if(e.state===au.ABORTED){let t=new Error(`${JSON.stringify(u(o({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===au.TIMEOUT){let t=new Error(`${JSON.stringify(u(o({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==au.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};On.checkExceptions=uZ});var tI=p(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.runPolling=void 0;var mZ=my(),cu=ou(),fZ=(e,t,n,r)=>{if(r>n)return t;let s=e*2**(r-1);return pZ(e,s)},pZ=(e,t)=>e+Math.random()*(t-e),hZ=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:s,abortSignal:i},a,c)=>{var l;let{state:m}=await c(s,a);if(m!==cu.WaiterState.RETRY)return{state:m};let f=1,g=Date.now()+n*1e3,h=Math.log(t/e)/Math.log(2)+1;for(;;){if(((l=r==null?void 0:r.signal)===null||l===void 0?void 0:l.aborted)||(i==null?void 0:i.aborted))return{state:cu.WaiterState.ABORTED};let _=fZ(e,t,h,f);if(Date.now()+_*1e3>g)return{state:cu.WaiterState.TIMEOUT};await mZ.sleep(_);let{state:b}=await c(s,a);if(b!==cu.WaiterState.RETRY)return{state:b};f+=1}};lu.runPolling=hZ});var nI=p(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.validateWaiterOptions=void 0;var yZ=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`)};du.validateWaiterOptions=yZ});var sI=p(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var rI=ue();rI.__exportStar(my(),uu);rI.__exportStar(nI(),uu)});var oI=p(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.createWaiter=void 0;var gZ=tI(),_Z=sI(),iI=ou(),aI=async e=>new Promise(t=>{e.onabort=()=>t({state:iI.WaiterState.ABORTED})}),wZ=async(e,t,n)=>{let r=o(o({},iI.waiterServiceDefaults),e);_Z.validateWaiterOptions(r);let s=[gZ.runPolling(r,t,n)];return e.abortController&&s.push(aI(e.abortController.signal)),e.abortSignal&&s.push(aI(e.abortSignal)),Promise.race(s)};mu.createWaiter=wZ});var fy=p(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var cI=ue();cI.__exportStar(oI(),fu);cI.__exportStar(ou(),fu)});var dI=p(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.waitUntilTableExists=ks.waitForTableExists=void 0;var bZ=Oi(),Rs=fy(),lI=async(e,t)=>{let n;try{let r=await e.send(new bZ.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:Rs.WaiterState.SUCCESS,reason:n}}catch(s){}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Rs.WaiterState.RETRY,reason:n}}return{state:Rs.WaiterState.RETRY,reason:n}},SZ=async(e,t)=>{let n={minDelay:20,maxDelay:120};return Rs.createWaiter(o(o({},n),e),t,lI)};ks.waitForTableExists=SZ;var vZ=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await Rs.createWaiter(o(o({},n),e),t,lI);return Rs.checkExceptions(r)};ks.waitUntilTableExists=vZ});var mI=p(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.waitUntilTableNotExists=Ds.waitForTableNotExists=void 0;var EZ=Oi(),zi=fy(),uI=async(e,t)=>{let n;try{n=await e.send(new EZ.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:zi.WaiterState.SUCCESS,reason:n}}return{state:zi.WaiterState.RETRY,reason:n}},AZ=async(e,t)=>{let n={minDelay:20,maxDelay:120};return zi.createWaiter(o(o({},n),e),t,uI)};Ds.waitForTableNotExists=AZ;var CZ=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await zi.createWaiter(o(o({},n),e),t,uI);return zi.checkExceptions(r)};Ds.waitUntilTableNotExists=CZ});var fI=p(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.paginateListContributorInsights=void 0;var TZ=$r(),xZ=lr(),IZ=Nd(),RZ=async(e,t,...n)=>await e.send(new IZ.ListContributorInsightsCommand(t),...n),kZ=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*DZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof TZ.DynamoDB)i=await kZ(e.client,t,...n);else if(e.client instanceof xZ.DynamoDBClient)i=await RZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.NextToken,s=!!r}return void 0}pu.paginateListContributorInsights=DZ});var pI=p(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.paginateListExports=void 0;var NZ=$r(),LZ=lr(),PZ=Pd(),qZ=async(e,t,...n)=>await e.send(new PZ.ListExportsCommand(t),...n),MZ=async(e,t,...n)=>await e.listExports(t,...n);async function*OZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof NZ.DynamoDB)i=await MZ(e.client,t,...n);else if(e.client instanceof LZ.DynamoDBClient)i=await qZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.NextToken,s=!!r}return void 0}hu.paginateListExports=OZ});var hI=p(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.paginateListTables=void 0;var zZ=$r(),jZ=lr(),UZ=Od(),BZ=async(e,t,...n)=>await e.send(new UZ.ListTablesCommand(t),...n),FZ=async(e,t,...n)=>await e.listTables(t,...n);async function*GZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.ExclusiveStartTableName=r,t.Limit=e.pageSize,e.client instanceof zZ.DynamoDB)i=await FZ(e.client,t,...n);else if(e.client instanceof jZ.DynamoDBClient)i=await BZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.LastEvaluatedTableName,s=!!r}return void 0}yu.paginateListTables=GZ});var yI=p(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.paginateQuery=void 0;var $Z=$r(),KZ=lr(),VZ=Bd(),WZ=async(e,t,...n)=>await e.send(new VZ.QueryCommand(t),...n),HZ=async(e,t,...n)=>await e.query(t,...n);async function*YZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof $Z.DynamoDB)i=await HZ(e.client,t,...n);else if(e.client instanceof KZ.DynamoDBClient)i=await WZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.LastEvaluatedKey,s=!!r}return void 0}gu.paginateQuery=YZ});var gI=p(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.paginateScan=void 0;var JZ=$r(),QZ=lr(),XZ=Kd(),ZZ=async(e,t,...n)=>await e.send(new XZ.ScanCommand(t),...n),eee=async(e,t,...n)=>await e.scan(t,...n);async function*tee(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof JZ.DynamoDB)i=await eee(e.client,t,...n);else if(e.client instanceof QZ.DynamoDBClient)i=await ZZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.LastEvaluatedKey,s=!!r}return void 0}_u.paginateScan=tee});var wI=p(_I=>{"use strict";Object.defineProperty(_I,"__esModule",{value:!0})});var bI=p(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var nee=ue();nee.__exportStar(W(),py)});var mt=p(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});var F=ue();F.__exportStar(lr(),U);F.__exportStar($r(),U);F.__exportStar(Eh(),U);F.__exportStar(Ah(),U);F.__exportStar(Ch(),U);F.__exportStar(Th(),U);F.__exportStar(xh(),U);F.__exportStar(Ih(),U);F.__exportStar(Rh(),U);F.__exportStar(kh(),U);F.__exportStar(Dh(),U);F.__exportStar(Nh(),U);F.__exportStar(Lh(),U);F.__exportStar(Ph(),U);F.__exportStar(Eo(),U);F.__exportStar(qh(),U);F.__exportStar(Mh(),U);F.__exportStar(Oh(),U);F.__exportStar(zh(),U);F.__exportStar(jh(),U);F.__exportStar(Oi(),U);F.__exportStar(dI(),U);F.__exportStar(mI(),U);F.__exportStar(Uh(),U);F.__exportStar(Bh(),U);F.__exportStar(Fh(),U);F.__exportStar(Gh(),U);F.__exportStar($h(),U);F.__exportStar(Kh(),U);F.__exportStar(Vh(),U);F.__exportStar(Wh(),U);F.__exportStar(Hh(),U);F.__exportStar(Nd(),U);F.__exportStar(fI(),U);F.__exportStar(Pd(),U);F.__exportStar(pI(),U);F.__exportStar(Yh(),U);F.__exportStar(Od(),U);F.__exportStar(hI(),U);F.__exportStar(Jh(),U);F.__exportStar(Qh(),U);F.__exportStar(Bd(),U);F.__exportStar(yI(),U);F.__exportStar(Xh(),U);F.__exportStar(Zh(),U);F.__exportStar(Kd(),U);F.__exportStar(gI(),U);F.__exportStar(ey(),U);F.__exportStar(ty(),U);F.__exportStar(ny(),U);F.__exportStar(ry(),U);F.__exportStar(sy(),U);F.__exportStar(iy(),U);F.__exportStar(ay(),U);F.__exportStar(oy(),U);F.__exportStar(cy(),U);F.__exportStar(ly(),U);F.__exportStar(dy(),U);F.__exportStar(uy(),U);F.__exportStar(wI(),U);F.__exportStar(bI(),U)});var hy=p(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.convertToAttr=void 0;var ree=(e,t)=>{var n,r,s,i,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 wu();if(Array.isArray(e))return see(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return iee(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return aee(e,t);if(((s=e==null?void 0:e.constructor)===null||s===void 0?void 0:s.name)==="Object"||!e.constructor&&typeof e=="object")return SI(e,t);if(xI(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?wu():vI(e);if(typeof e=="boolean"||((i=e==null?void 0:e.constructor)===null||i===void 0?void 0:i.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 TI(e);if(typeof e=="bigint")return AI(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)?wu():EI(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return SI(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};Kr.convertToAttr=ree;var see=(e,t)=>({L:e.filter(n=>!(t==null?void 0:t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>Kr.convertToAttr(n,t))}),iee=(e,t)=>{let n=(t==null?void 0:t.removeUndefinedValues)?new Set([...e].filter(s=>s!==void 0)):e;if(!(t==null?void 0: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?void 0:t.convertEmptyValues)return wu();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(TI).map(s=>s.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(AI).map(s=>s.N)};if(typeof r=="string")return{SS:Array.from(n).map(EI).map(s=>s.S)};if(xI(r))return{BS:Array.from(n).map(vI).map(s=>s.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},aee=(e,t)=>({M:(n=>{let r={};for(let[s,i]of n)typeof i!="function"&&(i!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[s]=Kr.convertToAttr(i,t));return r})(e)}),SI=(e,t)=>({M:(n=>{let r={};for(let s in n){let i=n[s];typeof i!="function"&&(i!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[s]=Kr.convertToAttr(i,t))}return r})(e)}),wu=()=>({NULL:!0}),vI=e=>({B:e}),EI=e=>({S:e.toString()}),AI=e=>({N:e.toString()}),CI=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},TI=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?CI(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&CI(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},xI=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return(e==null?void 0:e.constructor)?t.includes(e.constructor.name):!1}});var yy=p(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.convertToNative=void 0;var oee=(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 II(r,t);case"B":return kI(r);case"S":return RI(r);case"L":return cee(r,t);case"M":return lee(r,t);case"NS":return new Set(r.map(s=>II(s,t)));case"BS":return new Set(r.map(kI));case"SS":return new Set(r.map(RI));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};Ns.convertToNative=oee;var II=(e,t)=>{if(t==null?void 0: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(s){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},RI=e=>e,kI=e=>e,cee=(e,t)=>e.map(n=>Ns.convertToNative(n,t)),lee=(e,t)=>Object.entries(e).reduce((n,[r,s])=>u(o({},n),{[r]:Ns.convertToNative(s,t)}),{})});var DI=p(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.marshall=void 0;var dee=hy(),uee=(e,t)=>dee.convertToAttr(e,t).M;bu.marshall=uee});var LI=p(NI=>{"use strict";Object.defineProperty(NI,"__esModule",{value:!0})});var PI=p(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.unmarshall=void 0;var mee=yy(),fee=(e,t)=>mee.convertToNative({M:e},t);Su.unmarshall=fee});var qI=p(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});var ji=ue();ji.__exportStar(hy(),Vr);ji.__exportStar(yy(),Vr);ji.__exportStar(DI(),Vr);ji.__exportStar(LI(),Vr);ji.__exportStar(PI(),Vr)});var vt=p(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.unmarshallOutput=Ls.marshallInput=void 0;var MI=qI(),OI=(e,t,n)=>{if(e)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?gy(e,t,n):pee(e,t,n.children)},zI=(e,t,n)=>Array.isArray(e)?e.map(r=>OI(r,t,n)):OI(e,t,n),gy=(e,t,n)=>n.reduce((r,{key:s,children:i})=>u(o({},r),{[s]:zI(r[s],t,i)}),e),pee=(e,t,n)=>Object.entries(e).reduce((r,[s,i])=>u(o({},r),{[s]:zI(i,t,n)}),{}),hee=(e,t,n)=>gy(e,s=>MI.marshall(s,n),t);Ls.marshallInput=hee;var yee=(e,t,n)=>gy(e,s=>MI.unmarshall(s,n),t);Ls.unmarshallOutput=yee});var _y=p(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.BatchExecuteStatementCommand=void 0;var jI=vt(),gee=mt(),_ee=M(),UI=class extends _ee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new gee.BatchExecuteStatementCommand(jI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:jI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};vu.BatchExecuteStatementCommand=UI});var wy=p(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.BatchGetCommand=void 0;var BI=vt(),wee=mt(),bee=M(),FI=class extends bee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new wee.BatchGetItemCommand(BI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:BI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Eu.BatchGetCommand=FI});var by=p(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.BatchWriteCommand=void 0;var GI=vt(),See=mt(),vee=M(),$I=class extends vee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new See.BatchWriteItemCommand(GI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:GI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Au.BatchWriteCommand=$I});var Sy=p(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.DeleteCommand=void 0;var KI=vt(),Eee=mt(),Aee=M(),VI=class extends Aee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new Eee.DeleteItemCommand(KI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:KI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Cu.DeleteCommand=VI});var vy=p(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.ExecuteStatementCommand=void 0;var WI=vt(),Cee=mt(),Tee=M(),HI=class extends Tee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Cee.ExecuteStatementCommand(WI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:WI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Tu.ExecuteStatementCommand=HI});var Ey=p(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.ExecuteTransactionCommand=void 0;var YI=vt(),xee=mt(),Iee=M(),JI=class extends Iee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new xee.ExecuteTransactionCommand(YI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:YI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};xu.ExecuteTransactionCommand=JI});var Ay=p(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.GetCommand=void 0;var QI=vt(),Ree=mt(),kee=M(),XI=class extends kee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Ree.GetItemCommand(QI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:QI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Iu.GetCommand=XI});var Cy=p(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.PutCommand=void 0;var ZI=vt(),Dee=mt(),Nee=M(),e1=class extends Nee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new Dee.PutItemCommand(ZI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:ZI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Ru.PutCommand=e1});var Ty=p(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.QueryCommand=void 0;var t1=vt(),Lee=mt(),Pee=M(),n1=class extends Pee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new Lee.QueryCommand(t1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:t1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};ku.QueryCommand=n1});var xy=p(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.ScanCommand=void 0;var r1=vt(),qee=mt(),Mee=M(),s1=class extends Mee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new qee.ScanCommand(r1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:r1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Du.ScanCommand=s1});var Iy=p(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.TransactGetCommand=void 0;var i1=vt(),Oee=mt(),zee=M(),a1=class extends zee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new Oee.TransactGetItemsCommand(i1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:i1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Nu.TransactGetCommand=a1});var Ry=p(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.TransactWriteCommand=void 0;var o1=vt(),jee=mt(),Uee=M(),c1=class extends Uee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new jee.TransactWriteItemsCommand(o1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:o1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Lu.TransactWriteCommand=c1});var ky=p(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.UpdateCommand=void 0;var l1=vt(),Bee=mt(),Fee=M(),d1=class extends Fee.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:s,unmarshallOptions:i}=n.translateConfig||{},a=new Bee.UpdateItemCommand(l1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:l1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Pu.UpdateCommand=d1});var Dy=p(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.DynamoDBDocumentClient=void 0;var Gee=M(),qu=class extends Gee.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 qu(t,n)}destroy(){}};Mu.DynamoDBDocumentClient=qu});var u1=p(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.DynamoDBDocument=void 0;var $ee=Dy(),Kee=_y(),Vee=wy(),Wee=by(),Hee=Sy(),Yee=vy(),Jee=Ey(),Qee=Ay(),Xee=Cy(),Zee=Ty(),ete=xy(),tte=Iy(),nte=Ry(),rte=ky(),Ou=class extends $ee.DynamoDBDocumentClient{static from(t,n){return new Ou(t,n)}batchExecuteStatement(t,n,r){let s=new Kee.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchGet(t,n,r){let s=new Vee.BatchGetCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchWrite(t,n,r){let s=new Wee.BatchWriteCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}delete(t,n,r){let s=new Hee.DeleteCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeStatement(t,n,r){let s=new Yee.ExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeTransaction(t,n,r){let s=new Jee.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}get(t,n,r){let s=new Qee.GetCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}put(t,n,r){let s=new Xee.PutCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}query(t,n,r){let s=new Zee.QueryCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}scan(t,n,r){let s=new ete.ScanCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactGet(t,n,r){let s=new tte.TransactGetCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactWrite(t,n,r){let s=new nte.TransactWriteCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}update(t,n,r){let s=new rte.UpdateCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};zu.DynamoDBDocument=Ou});var m1=p(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});var ft=ue();ft.__exportStar(_y(),Ze);ft.__exportStar(wy(),Ze);ft.__exportStar(by(),Ze);ft.__exportStar(Sy(),Ze);ft.__exportStar(vy(),Ze);ft.__exportStar(Ey(),Ze);ft.__exportStar(Ay(),Ze);ft.__exportStar(Cy(),Ze);ft.__exportStar(Ty(),Ze);ft.__exportStar(xy(),Ze);ft.__exportStar(Iy(),Ze);ft.__exportStar(Ry(),Ze);ft.__exportStar(ky(),Ze);ft.__exportStar(Dy(),Ze);ft.__exportStar(u1(),Ze)});var Ui=p(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.Config=void 0;var f1=class{static get TableName(){return this._tableName}static set TableName(t){if(this._tableName!==void 0&&this._tableName!==t)throw new Error("TableName is being set twice ");this._tableName=t}};ju.Config=f1});var p1=p(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.TransformationType=void 0;var ste;(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"})(ste=Bi.TransformationType||(Bi.TransformationType={}))});var Fi=p(Wr=>{"use strict";var ite=Wr&&Wr.__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]}),ate=Wr&&Wr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ite(t,e,n)};Object.defineProperty(Wr,"__esModule",{value:!0});ate(p1(),Wr)});var y1=p(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.MetadataStorage=void 0;var zn=Fi(),h1=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(s=>!s.options||s.options.toClassOnly===!0&&s.options.toPlainOnly===!0?!0:s.options.toClassOnly===!0?r===zn.TransformationType.CLASS_TO_CLASS||r===zn.TransformationType.PLAIN_TO_CLASS:s.options.toPlainOnly===!0?r===zn.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),s=this._exposeMetadatas.get(t),i=s&&s.get(void 0);return r&&i||!r&&!i?"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===zn.TransformationType.CLASS_TO_CLASS||n===zn.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===zn.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===zn.TransformationType.CLASS_TO_CLASS||n===zn.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===zn.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),s;r&&(s=Array.from(r.values()).filter(a=>a.propertyName!==void 0));let i=[];for(let a of this.getAncestors(n)){let c=t.get(a);if(c){let l=Array.from(c.values()).filter(m=>m.propertyName!==void 0);i.push(...l)}}return i.concat(s||[])}findMetadata(t,n,r){let s=t.get(n);if(s){let i=s.get(r);if(i)return i}for(let i of this.getAncestors(n)){let a=t.get(i);if(a){let c=a.get(r);if(c)return c}}}findMetadatas(t,n,r){let s=t.get(n),i;s&&(i=s.get(r));let a=[];for(let c of this.getAncestors(n)){let l=t.get(c);l&&l.has(r)&&a.push(...l.get(r))}return a.slice().reverse().concat((i||[]).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!="undefined";r=Object.getPrototypeOf(r.prototype.constructor))n.push(r);this._ancestorsMap.set(t,n)}return this._ancestorsMap.get(t)}};Uu.MetadataStorage=h1});var Ps=p(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.defaultMetadataStorage=void 0;var ote=y1();Bu.defaultMetadataStorage=new ote.MetadataStorage});var g1=p(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.getGlobal=void 0;function cte(){if(typeof globalThis!="undefined")return globalThis;if(typeof global!="undefined")return global;if(typeof window!="undefined")return window;if(typeof self!="undefined")return self}Fu.getGlobal=cte});var _1=p(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.isPromise=void 0;function lte(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}Gu.isPromise=lte});var b1=p(dr=>{"use strict";var dte=dr&&dr.__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]}),w1=dr&&dr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&dte(t,e,n)};Object.defineProperty(dr,"__esModule",{value:!0});w1(g1(),dr);w1(_1(),dr)});var E1=p($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.TransformOperationExecutor=void 0;var $t=Ps(),ze=Fi(),S1=b1();function ute(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var v1=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,s,i,a=0){if(Array.isArray(n)||n instanceof Set){let c=s&&this.transformationType===ze.TransformationType.PLAIN_TO_CLASS?ute(s):[];return n.forEach((l,m)=>{let f=t?t[m]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(l)){let g;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){g=r.options.discriminator.subTypes.find(E=>E.name===l[r.options.discriminator.property]);let _={newObject:c,object:l,property:void 0},b=r.typeFunction(_);g===void 0?g=b:g=g.value,r.options.keepDiscriminatorProperty||delete l[r.options.discriminator.property]}this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(g=l.constructor),this.transformationType===ze.TransformationType.CLASS_TO_PLAIN&&(l[r.options.discriminator.property]=r.options.discriminator.subTypes.find(_=>_.value===l.constructor).name)}else g=r;let h=this.transform(f,l,g,void 0,l instanceof Map,a+1);c instanceof Set?c.add(h):c.push(h)}else this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(c instanceof Set?c.add(l):c.push(l))}),c}else{if(r===String&&!i)return n==null?n:String(n);if(r===Number&&!i)return n==null?n:Number(n);if(r===Boolean&&!i)return n==null?n:Boolean(n);if((r===Date||n instanceof Date)&&!i)return n instanceof Date?new Date(n.valueOf()):n==null?n:new Date(n);if(!!S1.getGlobal().Buffer&&(r===Buffer||n instanceof Buffer)&&!i)return n==null?n:Buffer.from(n);if(S1.isPromise(n)&&!i)return new Promise((c,l)=>{n.then(m=>c(this.transform(void 0,m,r,void 0,void 0,a+1)),l)});if(!i&&n!==null&&typeof n=="object"&&typeof n.then=="function")return n;if(typeof n=="object"&&n!==null){!r&&n.constructor!==Object&&(r=n.constructor),!r&&t&&(r=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);let c=this.getKeys(r,n,i),l=t||{};!t&&(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS||this.transformationType===ze.TransformationType.CLASS_TO_CLASS)&&(i?l=new Map:r?l=new r:l={});for(let m of c){if(m==="__proto__"||m==="constructor")continue;let f=m,g=m,h=m;if(!this.options.ignoreDecorators&&r){if(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){let R=$t.defaultMetadataStorage.findExposeMetadataByCustomName(r,m);R&&(h=R.propertyName,g=R.propertyName)}else if(this.transformationType===ze.TransformationType.CLASS_TO_PLAIN||this.transformationType===ze.TransformationType.CLASS_TO_CLASS){let R=$t.defaultMetadataStorage.findExposeMetadata(r,m);R&&R.options&&R.options.name&&(g=R.options.name)}}let _;n instanceof Map?_=n.get(f):n[f]instanceof Function?_=n[f]():_=n[f];let b,E=_ instanceof Map;if(r&&i)b=r;else if(r){let R=$t.defaultMetadataStorage.findTypeMetadata(r,h);if(R){let K={newObject:l,object:n,property:h},yt=R.typeFunction?R.typeFunction(K):R.reflectedType;R.options&&R.options.discriminator&&R.options.discriminator.property&&R.options.discriminator.subTypes?n[f]instanceof Array?b=R:(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS&&(b=R.options.discriminator.subTypes.find(pe=>{if(_&&_ instanceof Object&&R.options.discriminator.property in _)return pe.name===_[R.options.discriminator.property]}),b===void 0?b=yt:b=b.value,R.options.keepDiscriminatorProperty||_&&_ instanceof Object&&R.options.discriminator.property in _&&delete _[R.options.discriminator.property]),this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(b=_.constructor),this.transformationType===ze.TransformationType.CLASS_TO_PLAIN&&(_[R.options.discriminator.property]=R.options.discriminator.subTypes.find(pe=>pe.value===_.constructor).name)):b=yt,E=E||R.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(K=>K.target===r&&!!K.properties[h]).forEach(K=>b=K.properties[h]);else if(this.options.enableImplicitConversion&&this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){let K=Reflect.getMetadata("design:type",r.prototype,h);K&&(b=K)}}let D=Array.isArray(n[f])?this.getReflectedType(r,h):void 0,k=t?t[f]:void 0;if(l.constructor.prototype){let R=Object.getOwnPropertyDescriptor(l.constructor.prototype,g);if((this.transformationType===ze.TransformationType.PLAIN_TO_CLASS||this.transformationType===ze.TransformationType.CLASS_TO_CLASS)&&(R&&!R.set||l[g]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(_)){let R=this.transformationType===ze.TransformationType.PLAIN_TO_CLASS?g:m,K;this.transformationType===ze.TransformationType.CLASS_TO_PLAIN?(K=n[R],K=this.applyCustomTransformations(K,r,R,n,this.transformationType),K=n[R]===K?_:K,K=this.transform(k,K,b,D,E,a+1)):_===void 0&&this.options.exposeDefaultValues?K=l[g]:(K=this.transform(k,_,b,D,E,a+1),K=this.applyCustomTransformations(K,r,R,n,this.transformationType)),(K!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(g,K):l[g]=K)}else if(this.transformationType===ze.TransformationType.CLASS_TO_CLASS){let R=_;R=this.applyCustomTransformations(R,r,m,n,this.transformationType),(R!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(g,R):l[g]=R)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),l}else return n}}applyCustomTransformations(t,n,r,s,i){let a=$t.defaultMetadataStorage.findTransformMetadatas(n,r,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:r,obj:s,type:i,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,n){if(!t)return;let r=$t.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let s=$t.defaultMetadataStorage.getStrategy(t);s==="none"&&(s=this.options.strategy||"exposeAll");let i=[];if((s==="exposeAll"||r)&&(n instanceof Map?i=Array.from(n.keys()):i=Object.keys(n)),r)return i;if(!this.options.ignoreDecorators&&t){let a=$t.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===ze.TransformationType.PLAIN_TO_CLASS&&(a=a.map(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return m&&m.options&&m.options.name?m.options.name:l})),this.options.excludeExtraneousValues?i=a:i=i.concat(a);let c=$t.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);c.length>0&&(i=i.filter(l=>!c.includes(l))),this.options.version!==void 0&&(i=i.filter(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options?!0:this.checkVersion(m.options.since,m.options.until)})),this.options.groups&&this.options.groups.length?i=i.filter(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options?!0:this.checkGroups(m.options.groups)}):i=i.filter(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options||!m.options.groups||!m.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(i=i.filter(a=>this.options.excludePrefixes.every(c=>a.substr(0,c.length)!==c))),i=i.filter((a,c,l)=>l.indexOf(a)===c),i}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}};$u.TransformOperationExecutor=v1});var A1=p(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.defaultOptions=void 0;Ku.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 zs=p(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.ClassTransformer=void 0;var qs=E1(),Ms=Fi(),Os=A1(),C1=class{classToPlain(t,n){return new qs.TransformOperationExecutor(Ms.TransformationType.CLASS_TO_PLAIN,o(o({},Os.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new qs.TransformOperationExecutor(Ms.TransformationType.CLASS_TO_PLAIN,o(o({},Os.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}plainToClass(t,n,r){return new qs.TransformOperationExecutor(Ms.TransformationType.PLAIN_TO_CLASS,o(o({},Os.defaultOptions),r)).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new qs.TransformOperationExecutor(Ms.TransformationType.PLAIN_TO_CLASS,o(o({},Os.defaultOptions),r)).transform(t,n,void 0,void 0,void 0,void 0)}classToClass(t,n){return new qs.TransformOperationExecutor(Ms.TransformationType.CLASS_TO_CLASS,o(o({},Os.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new qs.TransformOperationExecutor(Ms.TransformationType.CLASS_TO_CLASS,o(o({},Os.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}serialize(t,n){return JSON.stringify(this.classToPlain(t,n))}deserialize(t,n,r){let s=JSON.parse(n);return this.plainToClass(t,s,r)}deserializeArray(t,n,r){let s=JSON.parse(n);return this.plainToClass(t,s,r)}};Vu.ClassTransformer=C1});var T1=p(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.Exclude=void 0;var mte=Ps();function fte(e={}){return function(t,n){mte.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}Wu.Exclude=fte});var x1=p(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.Expose=void 0;var pte=Ps();function hte(e={}){return function(t,n){pte.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}Hu.Expose=hte});var I1=p(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.TransformClassToClass=void 0;var yte=zs();function gte(e){return function(t,n,r){let s=new yte.ClassTransformer,i=r.value;r.value=function(...a){let c=i.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(m=>s.classToClass(m,e)):s.classToClass(c,e)}}}Yu.TransformClassToClass=gte});var R1=p(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.TransformClassToPlain=void 0;var _te=zs();function wte(e){return function(t,n,r){let s=new _te.ClassTransformer,i=r.value;r.value=function(...a){let c=i.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(m=>s.classToPlain(m,e)):s.classToPlain(c,e)}}}Ju.TransformClassToPlain=wte});var k1=p(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.TransformPlainToClass=void 0;var bte=zs();function Ste(e,t){return function(n,r,s){let i=new bte.ClassTransformer,a=s.value;s.value=function(...c){let l=a.apply(this,c);return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"?l.then(f=>i.plainToClass(e,f,t)):i.plainToClass(e,l,t)}}}Qu.TransformPlainToClass=Ste});var D1=p(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.Transform=void 0;var vte=Ps();function Ete(e,t={}){return function(n,r){vte.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}Xu.Transform=Ete});var N1=p(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.Type=void 0;var Ate=Ps();function Cte(e,t={}){return function(n,r){let s=Reflect.getMetadata("design:type",n,r);Ate.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:s,typeFunction:e,options:t})}}Zu.Type=Cte});var L1=p(qt=>{"use strict";var Tte=qt&&qt.__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]}),Hr=qt&&qt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Tte(t,e,n)};Object.defineProperty(qt,"__esModule",{value:!0});Hr(T1(),qt);Hr(x1(),qt);Hr(I1(),qt);Hr(R1(),qt);Hr(k1(),qt);Hr(D1(),qt);Hr(N1(),qt)});var q1=p(P1=>{"use strict";Object.defineProperty(P1,"__esModule",{value:!0})});var O1=p(M1=>{"use strict";Object.defineProperty(M1,"__esModule",{value:!0})});var j1=p(z1=>{"use strict";Object.defineProperty(z1,"__esModule",{value:!0})});var B1=p(U1=>{"use strict";Object.defineProperty(U1,"__esModule",{value:!0})});var G1=p(F1=>{"use strict";Object.defineProperty(F1,"__esModule",{value:!0})});var K1=p($1=>{"use strict";Object.defineProperty($1,"__esModule",{value:!0})});var W1=p(V1=>{"use strict";Object.defineProperty(V1,"__esModule",{value:!0})});var Y1=p(H1=>{"use strict";Object.defineProperty(H1,"__esModule",{value:!0})});var Q1=p(J1=>{"use strict";Object.defineProperty(J1,"__esModule",{value:!0})});var Z1=p(X1=>{"use strict";Object.defineProperty(X1,"__esModule",{value:!0})});var tR=p(eR=>{"use strict";Object.defineProperty(eR,"__esModule",{value:!0})});var rR=p(nR=>{"use strict";Object.defineProperty(nR,"__esModule",{value:!0})});var iR=p(sR=>{"use strict";Object.defineProperty(sR,"__esModule",{value:!0})});var oR=p(aR=>{"use strict";Object.defineProperty(aR,"__esModule",{value:!0})});var cR=p(je=>{"use strict";var xte=je&&je.__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]}),Et=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&xte(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});Et(q1(),je);Et(O1(),je);Et(j1(),je);Et(B1(),je);Et(G1(),je);Et(K1(),je);Et(W1(),je);Et(Y1(),je);Et(Q1(),je);Et(Z1(),je);Et(tR(),je);Et(rR(),je);Et(iR(),je);Et(oR(),je)});var em=p(we=>{"use strict";var Ite=we&&we.__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]}),Ny=we&&we.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ite(t,e,n)};Object.defineProperty(we,"__esModule",{value:!0});we.deserializeArray=we.deserialize=we.serialize=we.classToClassFromExist=we.classToClass=we.plainToClassFromExist=we.plainToClass=we.classToPlainFromExist=we.classToPlain=we.ClassTransformer=void 0;var Rte=zs(),kte=zs();Object.defineProperty(we,"ClassTransformer",{enumerable:!0,get:function(){return kte.ClassTransformer}});Ny(L1(),we);Ny(cR(),we);Ny(Fi(),we);var jn=new Rte.ClassTransformer;function Dte(e,t){return jn.classToPlain(e,t)}we.classToPlain=Dte;function Nte(e,t,n){return jn.classToPlainFromExist(e,t,n)}we.classToPlainFromExist=Nte;function Lte(e,t,n){return jn.plainToClass(e,t,n)}we.plainToClass=Lte;function Pte(e,t,n){return jn.plainToClassFromExist(e,t,n)}we.plainToClassFromExist=Pte;function qte(e,t){return jn.classToClass(e,t)}we.classToClass=qte;function Mte(e,t,n){return jn.classToClassFromExist(e,t,n)}we.classToClassFromExist=Mte;function Ote(e,t){return jn.serialize(e,t)}we.serialize=Ote;function zte(e,t,n){return jn.deserialize(e,t,n)}we.deserialize=zte;function jte(e,t,n){return jn.deserializeArray(e,t,n)}we.deserializeArray=jte});var dR=p(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var lR=em(),tm=Ui(),Un;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(Un||(Un={}));var Gi=class{constructor(t){Object.assign(this,t),this._keyBy=Un.AppName}static async LoadAsync(t,n){let{Item:r}=await t.get({TableName:tm.Config.TableName,Key:{PK:`appName#${n}`.toLowerCase(),SK:"application"}});return lR.plainToClass(Gi,r)}static async LoadAllAppsAsync(t){let{Items:n}=await t.query({TableName:tm.Config.TableName,KeyConditionExpression:"PK = :pkval",ExpressionAttributeValues:{":pkval":"applications"}}),r=[];if(n!==void 0)for(let s of n){let i=lR.plainToClass(Gi,s);r.push(i)}return r}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async SaveAsync(t){this._keyBy=Un.AppName;let n=t.put({TableName:tm.Config.TableName,Item:this.DbStruct});this._keyBy=Un.Applications;let r=t.put({TableName:tm.Config.TableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}get PK(){switch(this._keyBy){case Un.Applications:return"applications";case Un.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case Un.Applications:return`appName#${this.AppName}`.toLowerCase();case Un.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}};Ly.default=Gi});var uR=p(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var Ute=em(),Py=Ui(),nm=class{constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}static async LoadAsync(t,n){let{Item:r}=await t.get({TableName:Py.Config.TableName,Key:{PK:`appName#${n}`.toLowerCase(),SK:"rules"}});return Ute.plainToClass(nm,r)}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,RuleSet:this.RuleSet,Version:this.Version}}async SaveAsync(t){let n=t.put({TableName:Py.Config.TableName,Item:this.DbStruct}),r=t.put({TableName:Py.Config.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}};qy.default=nm});var fR=p(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var mR=em(),My=Ui(),js;(function(e){e[e.AppName=0]="AppName"})(js||(js={}));var $i=class{constructor(t){Object.assign(this,t),this._keyBy=js.AppName}static async LoadVersionsAsync(t,n){let{Items:r}=await t.query({TableName:My.Config.TableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${n}`.toLowerCase(),":skval":"version"}}),s=[];if(r!==void 0)for(let i of r){let a=mR.plainToClass($i,i);s.push(a)}return s}static async LoadVersionAsync(t,n,r){let{Item:s}=await t.get({TableName:My.Config.TableName,Key:{PK:`appName#${n}`.toLowerCase(),SK:`version#${r}`.toLowerCase()}});return mR.plainToClass($i,s)}get PK(){switch(this._keyBy){case js.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,SemVer:this.SemVer,Type:this.Type,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID}}async SaveAsync(t){this._keyBy=js.AppName,await t.put({TableName:My.Config.TableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case js.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 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}};Oy.default=$i});var yR=p(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.Rules=Bn.Version=Bn.Application=void 0;var zy=ue(),Bte=m1(),pR=Ui(),Fte=zy.__importDefault(dR());Bn.Application=Fte.default;var jy=zy.__importDefault(uR());Bn.Rules=jy.default;var hR=zy.__importDefault(fR());Bn.Version=hR.default;var Kt=class{constructor(t){let{dynamoDB:n,tableName:r}=t;Kt._client===void 0&&(pR.Config.TableName=r,Kt._client=n,Kt._ddbDocClient=Bte.DynamoDBDocument.from(Kt._client))}static async UpdateDefaultRule(t,n){let r=await jy.default.LoadAsync(Kt._ddbDocClient,t),s=r.RuleSet.default;s.SemVer=n,await r.SaveAsync(this._ddbDocClient)}static async GetVersionsAndRules(t){let n=hR.default.LoadVersionsAsync(Kt._ddbDocClient,t),r=jy.default.LoadAsync(Kt._ddbDocClient,t);return await Promise.all([n,r]),{Versions:await n,Rules:await r}}static get TableName(){return pR.Config.TableName}static get DBClient(){return Kt._client}static get DBDocClient(){return Kt._ddbDocClient}};Bn.default=Kt});var At=p(Uy=>{"use strict";Uy.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,(s,i)=>s!=null?r(s):n(i))})},"name",{value:e.name})};Uy.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 _R=p((Khe,gR)=>{var ur=require("constants"),Gte=process.cwd,rm=null,$te=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return rm||(rm=Gte.call(process)),rm};try{process.cwd()}catch(e){}typeof process.chdir=="function"&&(By=process.chdir,process.chdir=function(e){rm=null,By.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,By));var By;gR.exports=Kte;function Kte(e){ur.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(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.lchmod||(e.lchmod=function(f,g,h){h&&process.nextTick(h)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(f,g,h,_){_&&process.nextTick(_)},e.lchownSync=function(){}),$te==="win32"&&(e.rename=function(f){return function(g,h,_){var b=Date.now(),E=0;f(g,h,function D(k){if(k&&(k.code==="EACCES"||k.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){e.stat(h,function(R,K){R&&R.code==="ENOENT"?f(g,h,D):_(k)})},E),E<100&&(E+=10);return}_&&_(k)})}}(e.rename)),e.read=function(f){function g(h,_,b,E,D,k){var R;if(k&&typeof k=="function"){var K=0;R=function(yt,pe,Ar){if(yt&&yt.code==="EAGAIN"&&K<10)return K++,f.call(e,h,_,b,E,D,R);k.apply(this,arguments)}}return f.call(e,h,_,b,E,D,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(g,f),g}(e.read),e.readSync=function(f){return function(g,h,_,b,E){for(var D=0;;)try{return f.call(e,g,h,_,b,E)}catch(k){if(k.code==="EAGAIN"&&D<10){D++;continue}throw k}}}(e.readSync);function t(f){f.lchmod=function(g,h,_){f.open(g,ur.O_WRONLY|ur.O_SYMLINK,h,function(b,E){if(b){_&&_(b);return}f.fchmod(E,h,function(D){f.close(E,function(k){_&&_(D||k)})})})},f.lchmodSync=function(g,h){var _=f.openSync(g,ur.O_WRONLY|ur.O_SYMLINK,h),b=!0,E;try{E=f.fchmodSync(_,h),b=!1}finally{if(b)try{f.closeSync(_)}catch(D){}else f.closeSync(_)}return E}}function n(f){ur.hasOwnProperty("O_SYMLINK")?(f.lutimes=function(g,h,_,b){f.open(g,ur.O_SYMLINK,function(E,D){if(E){b&&b(E);return}f.futimes(D,h,_,function(k){f.close(D,function(R){b&&b(k||R)})})})},f.lutimesSync=function(g,h,_){var b=f.openSync(g,ur.O_SYMLINK),E,D=!0;try{E=f.futimesSync(b,h,_),D=!1}finally{if(D)try{f.closeSync(b)}catch(k){}else f.closeSync(b)}return E}):(f.lutimes=function(g,h,_,b){b&&process.nextTick(b)},f.lutimesSync=function(){})}function r(f){return f&&function(g,h,_){return f.call(e,g,h,function(b){m(b)&&(b=null),_&&_.apply(this,arguments)})}}function s(f){return f&&function(g,h){try{return f.call(e,g,h)}catch(_){if(!m(_))throw _}}}function i(f){return f&&function(g,h,_,b){return f.call(e,g,h,_,function(E){m(E)&&(E=null),b&&b.apply(this,arguments)})}}function a(f){return f&&function(g,h,_){try{return f.call(e,g,h,_)}catch(b){if(!m(b))throw b}}}function c(f){return f&&function(g,h,_){typeof h=="function"&&(_=h,h=null);function b(E,D){D&&(D.uid<0&&(D.uid+=4294967296),D.gid<0&&(D.gid+=4294967296)),_&&_.apply(this,arguments)}return h?f.call(e,g,h,b):f.call(e,g,b)}}function l(f){return f&&function(g,h){var _=h?f.call(e,g,h):f.call(e,g);return _.uid<0&&(_.uid+=4294967296),_.gid<0&&(_.gid+=4294967296),_}}function m(f){if(!f||f.code==="ENOSYS")return!0;var g=!process.getuid||process.getuid()!==0;return!!(g&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var SR=p((Vhe,bR)=>{var wR=require("stream").Stream;bR.exports=Vte;function Vte(e){return{ReadStream:t,WriteStream:n};function t(r,s){if(!(this instanceof t))return new t(r,s);wR.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var a=Object.keys(s),c=0,l=a.length;c<l;c++){var m=a[c];this[m]=s[m]}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(){i._read()});return}e.open(this.path,this.flags,this.mode,function(f,g){if(f){i.emit("error",f),i.readable=!1;return}i.fd=g,i.emit("open",g),i._read()})}function n(r,s){if(!(this instanceof n))return new n(r,s);wR.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var i=Object.keys(s),a=0,c=i.length;a<c;a++){var l=i[a];this[l]=s[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 ER=p((Whe,vR)=>{"use strict";vR.exports=Hte;var Wte=Object.getPrototypeOf||function(e){return e.__proto__};function Hte(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Wte(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var at=p((Hhe,Gy)=>{var et=require("fs"),Yte=_R(),Jte=SR(),Qte=ER(),sm=require("util"),Xt,im;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Xt=Symbol.for("graceful-fs.queue"),im=Symbol.for("graceful-fs.previous")):(Xt="___graceful-fs.queue",im="___graceful-fs.previous");function Xte(){}function AR(e,t){Object.defineProperty(e,Xt,{get:function(){return t}})}var Ki=Xte;sm.debuglog?Ki=sm.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ki=function(){var e=sm.format.apply(sm,arguments);e="GFS4: "+e.split(/\n/).join(`
22
+ GFS4: `),console.error(e)});et[Xt]||(CR=global[Xt]||[],AR(et,CR),et.close=function(e){function t(n,r){return e.call(et,n,function(s){s||mr(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,im,{value:e}),t}(et.close),et.closeSync=function(e){function t(n){e.apply(et,arguments),mr()}return Object.defineProperty(t,im,{value:e}),t}(et.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ki(et[Xt]),require("assert").equal(et[Xt].length,0)}));var CR;global[Xt]||AR(global,et[Xt]);Gy.exports=Fy(Qte(et));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!et.__patched&&(Gy.exports=Fy(et),et.__patched=!0);function Fy(e){Yte(e),e.gracefulify=Fy,e.createReadStream=pe,e.createWriteStream=Ar;var t=e.readFile;e.readFile=n;function n(Y,de,le){return typeof de=="function"&&(le=de,de=null),_e(Y,de,le);function _e(Te,Re,xe){return t(Te,Re,function(ke){ke&&(ke.code==="EMFILE"||ke.code==="ENFILE")?Us([_e,[Te,Re,xe]]):(typeof xe=="function"&&xe.apply(this,arguments),mr())})}}var r=e.writeFile;e.writeFile=s;function s(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=null),Te(Y,de,le,_e);function Te(Re,xe,ke,Ne){return r(Re,xe,ke,function(tt){tt&&(tt.code==="EMFILE"||tt.code==="ENFILE")?Us([Te,[Re,xe,ke,Ne]]):(typeof Ne=="function"&&Ne.apply(this,arguments),mr())})}}var i=e.appendFile;i&&(e.appendFile=a);function a(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=null),Te(Y,de,le,_e);function Te(Re,xe,ke,Ne){return i(Re,xe,ke,function(tt){tt&&(tt.code==="EMFILE"||tt.code==="ENFILE")?Us([Te,[Re,xe,ke,Ne]]):(typeof Ne=="function"&&Ne.apply(this,arguments),mr())})}}var c=e.copyFile;c&&(e.copyFile=l);function l(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=0),c(Y,de,le,function(Te){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?Us([c,[Y,de,le,_e]]):(typeof _e=="function"&&_e.apply(this,arguments),mr())})}var m=e.readdir;e.readdir=f;function f(Y,de,le){var _e=[Y];return typeof de!="function"?_e.push(de):le=de,_e.push(Te),g(_e);function Te(Re,xe){xe&&xe.sort&&xe.sort(),Re&&(Re.code==="EMFILE"||Re.code==="ENFILE")?Us([g,[_e]]):(typeof le=="function"&&le.apply(this,arguments),mr())}}function g(Y){return m.apply(e,Y)}if(process.version.substr(0,4)==="v0.8"){var h=Jte(e);k=h.ReadStream,K=h.WriteStream}var _=e.ReadStream;_&&(k.prototype=Object.create(_.prototype),k.prototype.open=R);var b=e.WriteStream;b&&(K.prototype=Object.create(b.prototype),K.prototype.open=yt),Object.defineProperty(e,"ReadStream",{get:function(){return k},set:function(Y){k=Y},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return K},set:function(Y){K=Y},enumerable:!0,configurable:!0});var E=k;Object.defineProperty(e,"FileReadStream",{get:function(){return E},set:function(Y){E=Y},enumerable:!0,configurable:!0});var D=K;Object.defineProperty(e,"FileWriteStream",{get:function(){return D},set:function(Y){D=Y},enumerable:!0,configurable:!0});function k(Y,de){return this instanceof k?(_.apply(this,arguments),this):k.apply(Object.create(k.prototype),arguments)}function R(){var Y=this;en(Y.path,Y.flags,Y.mode,function(de,le){de?(Y.autoClose&&Y.destroy(),Y.emit("error",de)):(Y.fd=le,Y.emit("open",le),Y.read())})}function K(Y,de){return this instanceof K?(b.apply(this,arguments),this):K.apply(Object.create(K.prototype),arguments)}function yt(){var Y=this;en(Y.path,Y.flags,Y.mode,function(de,le){de?(Y.destroy(),Y.emit("error",de)):(Y.fd=le,Y.emit("open",le))})}function pe(Y,de){return new e.ReadStream(Y,de)}function Ar(Y,de){return new e.WriteStream(Y,de)}var Cr=e.open;e.open=en;function en(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=null),Te(Y,de,le,_e);function Te(Re,xe,ke,Ne){return Cr(Re,xe,ke,function(tt,te){tt&&(tt.code==="EMFILE"||tt.code==="ENFILE")?Us([Te,[Re,xe,ke,Ne]]):(typeof Ne=="function"&&Ne.apply(this,arguments),mr())})}}return e}function Us(e){Ki("ENQUEUE",e[0].name,e[1]),et[Xt].push(e)}function mr(){var e=et[Xt].shift();e&&(Ki("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}});var Vi=p(fr=>{"use strict";var TR=At().fromCallback,pt=at(),Zte=["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 pt[e]=="function");Object.keys(pt).forEach(e=>{e!=="promises"&&(fr[e]=pt[e])});Zte.forEach(e=>{fr[e]=TR(pt[e])});fr.exists=function(e,t){return typeof t=="function"?pt.exists(e,t):new Promise(n=>pt.exists(e,n))};fr.read=function(e,t,n,r,s,i){return typeof i=="function"?pt.read(e,t,n,r,s,i):new Promise((a,c)=>{pt.read(e,t,n,r,s,(l,m,f)=>{if(l)return c(l);a({bytesRead:m,buffer:f})})})};fr.write=function(e,t,...n){return typeof n[n.length-1]=="function"?pt.write(e,t,...n):new Promise((r,s)=>{pt.write(e,t,...n,(i,a,c)=>{if(i)return s(i);r({bytesWritten:a,buffer:c})})})};typeof pt.writev=="function"&&(fr.writev=function(e,t,...n){return typeof n[n.length-1]=="function"?pt.writev(e,t,...n):new Promise((r,s)=>{pt.writev(e,t,...n,(i,a,c)=>{if(i)return s(i);r({bytesWritten:a,buffers:c})})})});typeof pt.realpath.native=="function"&&(fr.realpath.native=TR(pt.realpath.native))});var $y=p((Jhe,xR)=>{xR.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 NR=p((Qhe,Ky)=>{"use strict";var Bs=Vi(),Fn=require("path"),ene=$y(),IR=ene("10.12.0"),RR=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Fn.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},kR=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),o(o({},t),e)},DR=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};Ky.exports.makeDir=async(e,t)=>{if(RR(e),t=kR(t),IR){let r=Fn.resolve(e);return Bs.mkdir(r,{mode:t.mode,recursive:!0})}let n=async r=>{try{await Bs.mkdir(r,t.mode)}catch(s){if(s.code==="EPERM")throw s;if(s.code==="ENOENT"){if(Fn.dirname(r)===r)throw DR(r);if(s.message.includes("null bytes"))throw s;return await n(Fn.dirname(r)),n(r)}try{if(!(await Bs.stat(r)).isDirectory())throw new Error("The path is not a directory")}catch{throw s}}};return n(Fn.resolve(e))};Ky.exports.makeDirSync=(e,t)=>{if(RR(e),t=kR(t),IR){let r=Fn.resolve(e);return Bs.mkdirSync(r,{mode:t.mode,recursive:!0})}let n=r=>{try{Bs.mkdirSync(r,t.mode)}catch(s){if(s.code==="EPERM")throw s;if(s.code==="ENOENT"){if(Fn.dirname(r)===r)throw DR(r);if(s.message.includes("null bytes"))throw s;return n(Fn.dirname(r)),n(r)}try{if(!Bs.statSync(r).isDirectory())throw new Error("The path is not a directory")}catch{throw s}}};return n(Fn.resolve(e))}});var Zt=p((Xhe,LR)=>{"use strict";var tne=At().fromPromise,{makeDir:nne,makeDirSync:Vy}=NR(),Wy=tne(nne);LR.exports={mkdirs:Wy,mkdirsSync:Vy,mkdirp:Wy,mkdirpSync:Vy,ensureDir:Wy,ensureDirSync:Vy}});var Hy=p((Zhe,PR)=>{"use strict";var Fs=at();function rne(e,t,n,r){Fs.open(e,"r+",(s,i)=>{if(s)return r(s);Fs.futimes(i,t,n,a=>{Fs.close(i,c=>{r&&r(a||c)})})})}function sne(e,t,n){let r=Fs.openSync(e,"r+");return Fs.futimesSync(r,t,n),Fs.closeSync(r)}PR.exports={utimesMillis:rne,utimesMillisSync:sne}});var Wi=p((eye,zR)=>{"use strict";var Gs=Vi(),Ct=require("path"),ine=require("util"),ane=$y(),am=ane("10.5.0"),qR=e=>am?Gs.stat(e,{bigint:!0}):Gs.stat(e),Yy=e=>am?Gs.statSync(e,{bigint:!0}):Gs.statSync(e);function one(e,t){return Promise.all([qR(e),qR(t).catch(n=>{if(n.code==="ENOENT")return null;throw n})]).then(([n,r])=>({srcStat:n,destStat:r}))}function cne(e,t){let n,r=Yy(e);try{n=Yy(t)}catch(s){if(s.code==="ENOENT")return{srcStat:r,destStat:null};throw s}return{srcStat:r,destStat:n}}function lne(e,t,n,r){ine.callbackify(one)(e,t,(s,i)=>{if(s)return r(s);let{srcStat:a,destStat:c}=i;return c&&om(a,c)?r(new Error("Source and destination must not be the same.")):a.isDirectory()&&Jy(e,t)?r(new Error(cm(e,t,n))):r(null,{srcStat:a,destStat:c})})}function dne(e,t,n){let{srcStat:r,destStat:s}=cne(e,t);if(s&&om(r,s))throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&Jy(e,t))throw new Error(cm(e,t,n));return{srcStat:r,destStat:s}}function MR(e,t,n,r,s){let i=Ct.resolve(Ct.dirname(e)),a=Ct.resolve(Ct.dirname(n));if(a===i||a===Ct.parse(a).root)return s();let c=(l,m)=>l?l.code==="ENOENT"?s():s(l):om(t,m)?s(new Error(cm(e,n,r))):MR(e,t,a,r,s);am?Gs.stat(a,{bigint:!0},c):Gs.stat(a,c)}function OR(e,t,n,r){let s=Ct.resolve(Ct.dirname(e)),i=Ct.resolve(Ct.dirname(n));if(i===s||i===Ct.parse(i).root)return;let a;try{a=Yy(i)}catch(c){if(c.code==="ENOENT")return;throw c}if(om(t,a))throw new Error(cm(e,n,r));return OR(e,t,i,r)}function om(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(am||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 Jy(e,t){let n=Ct.resolve(e).split(Ct.sep).filter(s=>s),r=Ct.resolve(t).split(Ct.sep).filter(s=>s);return n.reduce((s,i,a)=>s&&r[a]===i,!0)}function cm(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}zR.exports={checkPaths:lne,checkPathsSync:dne,checkParentPaths:MR,checkParentPathsSync:OR,isSrcSubdir:Jy}});var GR=p((tye,FR)=>{"use strict";var ot=at(),Hi=require("path"),une=Zt().mkdirsSync,mne=Hy().utimesMillisSync,Yi=Wi();function fne(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;
23
23
 
24
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:r,destStat:i}=Ks.checkPathsSync(e,t,"copy");return Ks.checkParentPathsSync(e,r,t,"copy"),Gte(i,e,t,n)}function Gte(e,t,n,r){if(r.filter&&!r.filter(t,n))return;let i=$s.dirname(n);return at.existsSync(i)||Ute(i),wR(e,t,n,r)}function wR(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return $te(e,t,n,r)}function $te(e,t,n,r){let s=(r.dereference?at.statSync:at.lstatSync)(t);if(s.isDirectory())return Qte(s,e,t,n,r);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Kte(s,e,t,n,r);if(s.isSymbolicLink())return ene(e,t,n,r)}function Kte(e,t,n,r,i){return t?Vte(e,n,r,i):bR(e,n,r,i)}function Vte(e,t,n,r){if(r.overwrite)return at.unlinkSync(n),bR(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}function bR(e,t,n,r){return at.copyFileSync(t,n),r.preserveTimestamps&&Wte(e.mode,t,n),jy(n,e.mode)}function Wte(e,t,n){return Hte(e)&&Yte(n,e),Jte(t,n)}function Hte(e){return(e&128)==0}function Yte(e,t){return jy(e,t|128)}function jy(e,t){return at.chmodSync(e,t)}function Jte(e,t){let n=at.statSync(e);return Bte(t,n.atime,n.mtime)}function Qte(e,t,n,r,i){if(!t)return Xte(e.mode,n,r,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`);return SR(n,r,i)}function Xte(e,t,n,r){return at.mkdirSync(n),SR(t,n,r),jy(n,e)}function SR(e,t,n){at.readdirSync(e).forEach(r=>Zte(r,e,t,n))}function Zte(e,t,n,r){let i=$s.join(t,e),s=$s.join(n,e),{destStat:a}=Ks.checkPathsSync(i,s,"copy");return wR(a,i,s,r)}function ene(e,t,n,r){let i=at.readlinkSync(t);if(r.dereference&&(i=$s.resolve(process.cwd(),i)),e){let s;try{s=at.readlinkSync(n)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return at.symlinkSync(i,n);throw a}if(r.dereference&&(s=$s.resolve(process.cwd(),s)),Ks.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(at.statSync(n).isDirectory()&&Ks.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return tne(i,n)}else return at.symlinkSync(i,n)}function tne(e,t){return at.unlinkSync(t),at.symlinkSync(e,t)}vR.exports=Fte});var Uy=h((zhe,AR)=>{"use strict";AR.exports={copySync:ER()}});var mr=h((jhe,TR)=>{"use strict";var nne=At().fromPromise,CR=Fs();function rne(e){return CR.access(e).then(()=>!0).catch(()=>!1)}TR.exports={pathExists:nne(rne),pathExistsSync:CR.existsSync}});var qR=h((Uhe,LR)=>{"use strict";var Tt=st(),Vs=require("path"),ine=en().mkdirs,sne=mr().pathExists,ane=My().utimesMillis,Ws=Gs();function one(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;
24
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:r,destStat:s}=Yi.checkPathsSync(e,t,"copy");return Yi.checkParentPathsSync(e,r,t,"copy"),pne(s,e,t,n)}function pne(e,t,n,r){if(r.filter&&!r.filter(t,n))return;let s=Hi.dirname(n);return ot.existsSync(s)||une(s),jR(e,t,n,r)}function jR(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return hne(e,t,n,r)}function hne(e,t,n,r){let i=(r.dereference?ot.statSync:ot.lstatSync)(t);if(i.isDirectory())return vne(i,e,t,n,r);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return yne(i,e,t,n,r);if(i.isSymbolicLink())return Cne(e,t,n,r)}function yne(e,t,n,r,s){return t?gne(e,n,r,s):UR(e,n,r,s)}function gne(e,t,n,r){if(r.overwrite)return ot.unlinkSync(n),UR(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}function UR(e,t,n,r){return ot.copyFileSync(t,n),r.preserveTimestamps&&_ne(e.mode,t,n),Qy(n,e.mode)}function _ne(e,t,n){return wne(e)&&bne(n,e),Sne(t,n)}function wne(e){return(e&128)==0}function bne(e,t){return Qy(e,t|128)}function Qy(e,t){return ot.chmodSync(e,t)}function Sne(e,t){let n=ot.statSync(e);return mne(t,n.atime,n.mtime)}function vne(e,t,n,r,s){if(!t)return Ene(e.mode,n,r,s);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`);return BR(n,r,s)}function Ene(e,t,n,r){return ot.mkdirSync(n),BR(t,n,r),Qy(n,e)}function BR(e,t,n){ot.readdirSync(e).forEach(r=>Ane(r,e,t,n))}function Ane(e,t,n,r){let s=Hi.join(t,e),i=Hi.join(n,e),{destStat:a}=Yi.checkPathsSync(s,i,"copy");return jR(a,s,i,r)}function Cne(e,t,n,r){let s=ot.readlinkSync(t);if(r.dereference&&(s=Hi.resolve(process.cwd(),s)),e){let i;try{i=ot.readlinkSync(n)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return ot.symlinkSync(s,n);throw a}if(r.dereference&&(i=Hi.resolve(process.cwd(),i)),Yi.isSrcSubdir(s,i))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${i}'.`);if(ot.statSync(n).isDirectory()&&Yi.isSrcSubdir(i,s))throw new Error(`Cannot overwrite '${i}' with '${s}'.`);return Tne(s,n)}else return ot.symlinkSync(s,n)}function Tne(e,t){return ot.unlinkSync(t),ot.symlinkSync(e,t)}FR.exports=fne});var Xy=p((nye,$R)=>{"use strict";$R.exports={copySync:GR()}});var pr=p((rye,VR)=>{"use strict";var xne=At().fromPromise,KR=Vi();function Ine(e){return KR.access(e).then(()=>!0).catch(()=>!1)}VR.exports={pathExists:xne(Ine),pathExistsSync:KR.existsSync}});var tk=p((sye,ek)=>{"use strict";var Tt=at(),Ji=require("path"),Rne=Zt().mkdirs,kne=pr().pathExists,Dne=Hy().utimesMillis,Qi=Wi();function Nne(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;
25
25
 
26
- see https://github.com/jprichardson/node-fs-extra/issues/269`),Ws.checkPaths(e,t,"copy",(i,s)=>{if(i)return r(i);let{srcStat:a,destStat:c}=s;Ws.checkParentPaths(e,a,t,"copy",l=>l?r(l):n.filter?IR(xR,c,e,t,n,r):xR(c,e,t,n,r))})}function xR(e,t,n,r,i){let s=Vs.dirname(n);sne(s,(a,c)=>{if(a)return i(a);if(c)return By(e,t,n,r,i);ine(s,l=>l?i(l):By(e,t,n,r,i))})}function IR(e,t,n,r,i,s){Promise.resolve(i.filter(n,r)).then(a=>a?e(t,n,r,i,s):s(),a=>s(a))}function By(e,t,n,r,i){return r.filter?IR(RR,e,t,n,r,i):RR(e,t,n,r,i)}function RR(e,t,n,r,i){(r.dereference?Tt.stat:Tt.lstat)(t,(a,c)=>{if(a)return i(a);if(c.isDirectory())return pne(c,e,t,n,r,i);if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return cne(c,e,t,n,r,i);if(c.isSymbolicLink())return gne(e,t,n,r,i)})}function cne(e,t,n,r,i,s){return t?lne(e,n,r,i,s):DR(e,n,r,i,s)}function lne(e,t,n,r,i){if(r.overwrite)Tt.unlink(n,s=>s?i(s):DR(e,t,n,r,i));else return r.errorOnExist?i(new Error(`'${n}' already exists`)):i()}function DR(e,t,n,r,i){Tt.copyFile(t,n,s=>s?i(s):r.preserveTimestamps?dne(e.mode,t,n,i):tm(n,e.mode,i))}function dne(e,t,n,r){return une(e)?mne(n,e,i=>i?r(i):kR(e,t,n,r)):kR(e,t,n,r)}function une(e){return(e&128)==0}function mne(e,t,n){return tm(e,t|128,n)}function kR(e,t,n,r){fne(t,n,i=>i?r(i):tm(n,e,r))}function tm(e,t,n){return Tt.chmod(e,t,n)}function fne(e,t,n){Tt.stat(e,(r,i)=>r?n(r):ane(t,i.atime,i.mtime,n))}function pne(e,t,n,r,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):NR(n,r,i,s):hne(e.mode,n,r,i,s)}function hne(e,t,n,r,i){Tt.mkdir(n,s=>{if(s)return i(s);NR(t,n,r,a=>a?i(a):tm(n,e,i))})}function NR(e,t,n,r){Tt.readdir(e,(i,s)=>i?r(i):PR(s,e,t,n,r))}function PR(e,t,n,r,i){let s=e.pop();return s?yne(e,s,t,n,r,i):i()}function yne(e,t,n,r,i,s){let a=Vs.join(n,t),c=Vs.join(r,t);Ws.checkPaths(a,c,"copy",(l,m)=>{if(l)return s(l);let{destStat:f}=m;By(f,a,c,i,g=>g?s(g):PR(e,n,r,i,s))})}function gne(e,t,n,r,i){Tt.readlink(t,(s,a)=>{if(s)return i(s);if(r.dereference&&(a=Vs.resolve(process.cwd(),a)),e)Tt.readlink(n,(c,l)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?Tt.symlink(a,n,i):i(c):(r.dereference&&(l=Vs.resolve(process.cwd(),l)),Ws.isSrcSubdir(a,l)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&Ws.isSrcSubdir(l,a)?i(new Error(`Cannot overwrite '${l}' with '${a}'.`)):_ne(a,n,i)));else return Tt.symlink(a,n,i)})}function _ne(e,t,n){Tt.unlink(t,r=>r?n(r):Tt.symlink(e,t,n))}LR.exports=one});var Fy=h((Bhe,MR)=>{"use strict";var wne=At().fromCallback;MR.exports={copy:wne(qR())}});var KR=h((Fhe,$R)=>{"use strict";var OR=st(),zR=require("path"),ve=require("assert"),Hs=process.platform==="win32";function jR(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{e[n]=e[n]||OR[n],n=n+"Sync",e[n]=e[n]||OR[n]}),e.maxBusyTries=e.maxBusyTries||3}function Gy(e,t,n){let r=0;typeof t=="function"&&(n=t,t={}),ve(e,"rimraf: missing path"),ve.strictEqual(typeof e,"string","rimraf: path should be a string"),ve.strictEqual(typeof n,"function","rimraf: callback function required"),ve(t,"rimraf: invalid options argument provided"),ve.strictEqual(typeof t,"object","rimraf: options should be object"),jR(t),UR(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&r<t.maxBusyTries){r++;let a=r*100;return setTimeout(()=>UR(e,t,i),a)}s.code==="ENOENT"&&(s=null)}n(s)})}function UR(e,t,n){ve(e),ve(t),ve(typeof n=="function"),t.lstat(e,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&Hs)return BR(e,t,r,n);if(i&&i.isDirectory())return nm(e,t,r,n);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return n(null);if(s.code==="EPERM")return Hs?BR(e,t,s,n):nm(e,t,s,n);if(s.code==="EISDIR")return nm(e,t,s,n)}return n(s)})})}function BR(e,t,n,r){ve(e),ve(t),ve(typeof r=="function"),t.chmod(e,438,i=>{i?r(i.code==="ENOENT"?null:n):t.stat(e,(s,a)=>{s?r(s.code==="ENOENT"?null:n):a.isDirectory()?nm(e,t,n,r):t.unlink(e,r)})})}function FR(e,t,n){let r;ve(e),ve(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()?rm(e,t,n):t.unlinkSync(e)}function nm(e,t,n,r){ve(e),ve(t),ve(typeof r=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?bne(e,t,r):i&&i.code==="ENOTDIR"?r(n):r(i)})}function bne(e,t,n){ve(e),ve(t),ve(typeof n=="function"),t.readdir(e,(r,i)=>{if(r)return n(r);let s=i.length,a;if(s===0)return t.rmdir(e,n);i.forEach(c=>{Gy(zR.join(e,c),t,l=>{if(!a){if(l)return n(a=l);--s==0&&t.rmdir(e,n)}})})})}function GR(e,t){let n;t=t||{},jR(t),ve(e,"rimraf: missing path"),ve.strictEqual(typeof e,"string","rimraf: path should be a string"),ve(t,"rimraf: missing options"),ve.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;r.code==="EPERM"&&Hs&&FR(e,t,r)}try{n&&n.isDirectory()?rm(e,t,null):t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return Hs?FR(e,t,r):rm(e,t,r);if(r.code!=="EISDIR")throw r;rm(e,t,r)}}function rm(e,t,n){ve(e),ve(t);try{t.rmdirSync(e)}catch(r){if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")Sne(e,t);else if(r.code!=="ENOENT")throw r}}function Sne(e,t){if(ve(e),ve(t),t.readdirSync(e).forEach(n=>GR(zR.join(e,n),t)),Hs){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}$R.exports=Gy;Gy.sync=GR});var Ys=h((Ghe,WR)=>{"use strict";var vne=At().fromCallback,VR=KR();WR.exports={remove:vne(VR),removeSync:VR.sync}});var tD=h(($he,eD)=>{"use strict";var Ene=At().fromCallback,HR=st(),YR=require("path"),JR=en(),QR=Ys(),XR=Ene(function(t,n){n=n||function(){},HR.readdir(t,(r,i)=>{if(r)return JR.mkdirs(t,n);i=i.map(a=>YR.join(t,a)),s();function s(){let a=i.pop();if(!a)return n();QR.remove(a,c=>{if(c)return n(c);s()})}})});function ZR(e){let t;try{t=HR.readdirSync(e)}catch{return JR.mkdirsSync(e)}t.forEach(n=>{n=YR.join(e,n),QR.removeSync(n)})}eD.exports={emptyDirSync:ZR,emptydirSync:ZR,emptyDir:XR,emptydir:XR}});var sD=h((Khe,iD)=>{"use strict";var Ane=At().fromCallback,nD=require("path"),fr=st(),rD=en();function Cne(e,t){function n(){fr.writeFile(e,"",r=>{if(r)return t(r);t()})}fr.stat(e,(r,i)=>{if(!r&&i.isFile())return t();let s=nD.dirname(e);fr.stat(s,(a,c)=>{if(a)return a.code==="ENOENT"?rD.mkdirs(s,l=>{if(l)return t(l);n()}):t(a);c.isDirectory()?n():fr.readdir(s,l=>{if(l)return t(l)})})})}function Tne(e){let t;try{t=fr.statSync(e)}catch{}if(t&&t.isFile())return;let n=nD.dirname(e);try{fr.statSync(n).isDirectory()||fr.readdirSync(n)}catch(r){if(r&&r.code==="ENOENT")rD.mkdirsSync(n);else throw r}fr.writeFileSync(e,"")}iD.exports={createFile:Ane(Cne),createFileSync:Tne}});var dD=h((Vhe,lD)=>{"use strict";var xne=At().fromCallback,aD=require("path"),Hr=st(),oD=en(),cD=mr().pathExists;function Ine(e,t,n){function r(i,s){Hr.link(i,s,a=>{if(a)return n(a);n(null)})}cD(t,(i,s)=>{if(i)return n(i);if(s)return n(null);Hr.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),n(a);let c=aD.dirname(t);cD(c,(l,m)=>{if(l)return n(l);if(m)return r(e,t);oD.mkdirs(c,f=>{if(f)return n(f);r(e,t)})})})})}function Rne(e,t){if(Hr.existsSync(t))return;try{Hr.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let r=aD.dirname(t);return Hr.existsSync(r)||oD.mkdirsSync(r),Hr.linkSync(e,t)}lD.exports={createLink:xne(Ine),createLinkSync:Rne}});var mD=h((Whe,uD)=>{"use strict";var pr=require("path"),Js=st(),Dne=mr().pathExists;function kne(e,t,n){if(pr.isAbsolute(e))return Js.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:e}));{let r=pr.dirname(t),i=pr.join(r,e);return Dne(i,(s,a)=>s?n(s):a?n(null,{toCwd:i,toDst:e}):Js.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),n(c)):n(null,{toCwd:e,toDst:pr.relative(r,e)})))}}function Nne(e,t){let n;if(pr.isAbsolute(e)){if(n=Js.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let r=pr.dirname(t),i=pr.join(r,e);if(n=Js.existsSync(i),n)return{toCwd:i,toDst:e};if(n=Js.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:pr.relative(r,e)}}}uD.exports={symlinkPaths:kne,symlinkPathsSync:Nne}});var hD=h((Hhe,pD)=>{"use strict";var fD=st();function Pne(e,t,n){if(n=typeof t=="function"?t:n,t=typeof t=="function"?!1:t,t)return n(null,t);fD.lstat(e,(r,i)=>{if(r)return n(null,"file");t=i&&i.isDirectory()?"dir":"file",n(null,t)})}function Lne(e,t){let n;if(t)return t;try{n=fD.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}pD.exports={symlinkType:Pne,symlinkTypeSync:Lne}});var vD=h((Yhe,SD)=>{"use strict";var qne=At().fromCallback,yD=require("path"),Gi=st(),gD=en(),Mne=gD.mkdirs,One=gD.mkdirsSync,_D=mD(),zne=_D.symlinkPaths,jne=_D.symlinkPathsSync,wD=hD(),Une=wD.symlinkType,Bne=wD.symlinkTypeSync,bD=mr().pathExists;function Fne(e,t,n,r){r=typeof n=="function"?n:r,n=typeof n=="function"?!1:n,bD(t,(i,s)=>{if(i)return r(i);if(s)return r(null);zne(e,t,(a,c)=>{if(a)return r(a);e=c.toDst,Une(c.toCwd,n,(l,m)=>{if(l)return r(l);let f=yD.dirname(t);bD(f,(g,p)=>{if(g)return r(g);if(p)return Gi.symlink(e,t,m,r);Mne(f,_=>{if(_)return r(_);Gi.symlink(e,t,m,r)})})})})})}function Gne(e,t,n){if(Gi.existsSync(t))return;let i=jne(e,t);e=i.toDst,n=Bne(i.toCwd,n);let s=yD.dirname(t);return Gi.existsSync(s)||One(s),Gi.symlinkSync(e,t,n)}SD.exports={createSymlink:qne(Fne),createSymlinkSync:Gne}});var AD=h((Jhe,ED)=>{"use strict";var im=sD(),sm=dD(),am=vD();ED.exports={createFile:im.createFile,createFileSync:im.createFileSync,ensureFile:im.createFile,ensureFileSync:im.createFileSync,createLink:sm.createLink,createLinkSync:sm.createLinkSync,ensureLink:sm.createLink,ensureLinkSync:sm.createLinkSync,createSymlink:am.createSymlink,createSymlinkSync:am.createSymlinkSync,ensureSymlink:am.createSymlink,ensureSymlinkSync:am.createSymlinkSync}});var om=h((Qhe,CD)=>{function $ne(e,{EOL:t=`
27
- `,finalEOL:n=!0,replacer:r=null,spaces:i}={}){let s=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+s}function Kne(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}CD.exports={stringify:$ne,stripBom:Kne}});var RD=h((Xhe,ID)=>{var $i;try{$i=st()}catch(e){$i=require("fs")}var cm=At(),{stringify:TD,stripBom:xD}=om();async function Vne(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||$i,r="throws"in t?t.throws:!0,i=await cm.fromCallback(n.readFile)(e,t);i=xD(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(a){if(r)throw a.message=`${e}: ${a.message}`,a;return null}return s}var Wne=cm.fromPromise(Vne);function Hne(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||$i,r="throws"in t?t.throws:!0;try{let i=n.readFileSync(e,t);return i=xD(i),JSON.parse(i,t.reviver)}catch(i){if(r)throw i.message=`${e}: ${i.message}`,i;return null}}async function Yne(e,t,n={}){let r=n.fs||$i,i=TD(t,n);await cm.fromCallback(r.writeFile)(e,i,n)}var Jne=cm.fromPromise(Yne);function Qne(e,t,n={}){let r=n.fs||$i,i=TD(t,n);return r.writeFileSync(e,i,n)}var Xne={readFile:Wne,readFileSync:Hne,writeFile:Jne,writeFileSync:Qne};ID.exports=Xne});var kD=h((Zhe,DD)=>{"use strict";var lm=RD();DD.exports={readJson:lm.readFile,readJsonSync:lm.readFileSync,writeJson:lm.writeFile,writeJsonSync:lm.writeFileSync}});var dm=h((eye,LD)=>{"use strict";var Zne=At().fromCallback,Qs=st(),ND=require("path"),PD=en(),ere=mr().pathExists;function tre(e,t,n,r){typeof n=="function"&&(r=n,n="utf8");let i=ND.dirname(e);ere(i,(s,a)=>{if(s)return r(s);if(a)return Qs.writeFile(e,t,n,r);PD.mkdirs(i,c=>{if(c)return r(c);Qs.writeFile(e,t,n,r)})})}function nre(e,...t){let n=ND.dirname(e);if(Qs.existsSync(n))return Qs.writeFileSync(e,...t);PD.mkdirsSync(n),Qs.writeFileSync(e,...t)}LD.exports={outputFile:Zne(tre),outputFileSync:nre}});var MD=h((tye,qD)=>{"use strict";var{stringify:rre}=om(),{outputFile:ire}=dm();async function sre(e,t,n={}){let r=rre(t,n);await ire(e,r,n)}qD.exports=sre});var zD=h((nye,OD)=>{"use strict";var{stringify:are}=om(),{outputFileSync:ore}=dm();function cre(e,t,n){let r=are(t,n);ore(e,r,n)}OD.exports=cre});var UD=h((rye,jD)=>{"use strict";var lre=At().fromPromise,ht=kD();ht.outputJson=lre(MD());ht.outputJsonSync=zD();ht.outputJSON=ht.outputJson;ht.outputJSONSync=ht.outputJsonSync;ht.writeJSON=ht.writeJson;ht.writeJSONSync=ht.writeJsonSync;ht.readJSON=ht.readJson;ht.readJSONSync=ht.readJsonSync;jD.exports=ht});var VD=h((iye,KD)=>{"use strict";var BD=st(),dre=require("path"),ure=Uy().copySync,FD=Ys().removeSync,mre=en().mkdirpSync,GD=Gs();function fre(e,t,n){n=n||{};let r=n.overwrite||n.clobber||!1,{srcStat:i}=GD.checkPathsSync(e,t,"move");return GD.checkParentPathsSync(e,i,t,"move"),mre(dre.dirname(t)),pre(e,t,r)}function pre(e,t,n){if(n)return FD(t),$D(e,t,n);if(BD.existsSync(t))throw new Error("dest already exists.");return $D(e,t,n)}function $D(e,t,n){try{BD.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return hre(e,t,n)}}function hre(e,t,n){return ure(e,t,{overwrite:n,errorOnExist:!0}),FD(e)}KD.exports=fre});var HD=h((sye,WD)=>{"use strict";WD.exports={moveSync:VD()}});var ZD=h((aye,XD)=>{"use strict";var yre=st(),gre=require("path"),_re=Fy().copy,YD=Ys().remove,wre=en().mkdirp,bre=mr().pathExists,JD=Gs();function Sre(e,t,n,r){typeof n=="function"&&(r=n,n={});let i=n.overwrite||n.clobber||!1;JD.checkPaths(e,t,"move",(s,a)=>{if(s)return r(s);let{srcStat:c}=a;JD.checkParentPaths(e,c,t,"move",l=>{if(l)return r(l);wre(gre.dirname(t),m=>m?r(m):vre(e,t,i,r))})})}function vre(e,t,n,r){if(n)return YD(t,i=>i?r(i):QD(e,t,n,r));bre(t,(i,s)=>i?r(i):s?r(new Error("dest already exists.")):QD(e,t,n,r))}function QD(e,t,n,r){yre.rename(e,t,i=>i?i.code!=="EXDEV"?r(i):Ere(e,t,n,r):r())}function Ere(e,t,n,r){_re(e,t,{overwrite:n,errorOnExist:!0},s=>s?r(s):YD(e,r))}XD.exports=Sre});var tk=h((oye,ek)=>{"use strict";var Are=At().fromCallback;ek.exports={move:Are(ZD())}});var Ky=h((cye,$y)=>{"use strict";$y.exports=o(o(o(o(o(o(o(o(o(o(o(o({},Fs()),Uy()),Fy()),tD()),AD()),UD()),en()),HD()),tk()),dm()),mr()),Ys());var nk=require("fs");Object.getOwnPropertyDescriptor(nk,"promises")&&Object.defineProperty($y.exports,"promises",{get(){return nk.promises}})});var ak=h((lye,sk)=>{sk.exports=Xs;Xs.default=Xs;Xs.stable=rk;Xs.stableStringify=rk;var Bn=[],hr=[];function Xs(e,t,n){Vy(e,"",[],void 0);var r;try{hr.length===0?r=JSON.stringify(e,t,n):r=JSON.stringify(e,ik(t),n)}catch(s){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Bn.length!==0;){var i=Bn.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return r}function Vy(e,t,n,r){var i;if(typeof e=="object"&&e!==null){for(i=0;i<n.length;i++)if(n[i]===e){var s=Object.getOwnPropertyDescriptor(r,t);s.get!==void 0?s.configurable?(Object.defineProperty(r,t,{value:"[Circular]"}),Bn.push([r,t,e,s])):hr.push([e,t]):(r[t]="[Circular]",Bn.push([r,t,e]));return}if(n.push(e),Array.isArray(e))for(i=0;i<e.length;i++)Vy(e[i],i,n,e);else{var a=Object.keys(e);for(i=0;i<a.length;i++){var c=a[i];Vy(e[c],c,n,e)}}n.pop()}}function Cre(e,t){return e<t?-1:e>t?1:0}function rk(e,t,n){var r=Wy(e,"",[],void 0)||e,i;try{hr.length===0?i=JSON.stringify(r,t,n):i=JSON.stringify(r,ik(t),n)}catch(a){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Bn.length!==0;){var s=Bn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Wy(e,t,n,r){var i;if(typeof e=="object"&&e!==null){for(i=0;i<n.length;i++)if(n[i]===e){var s=Object.getOwnPropertyDescriptor(r,t);s.get!==void 0?s.configurable?(Object.defineProperty(r,t,{value:"[Circular]"}),Bn.push([r,t,e,s])):hr.push([e,t]):(r[t]="[Circular]",Bn.push([r,t,e]));return}try{if(typeof e.toJSON=="function")return}catch(m){return}if(n.push(e),Array.isArray(e))for(i=0;i<e.length;i++)Wy(e[i],i,n,e);else{var a={},c=Object.keys(e).sort(Cre);for(i=0;i<c.length;i++){var l=c[i];Wy(e[l],l,n,e),a[l]=e[l]}if(r!==void 0)Bn.push([r,t,e]),r[t]=a;else return a}n.pop()}}function ik(e){return e=e!==void 0?e:function(t,n){return n},function(t,n){if(hr.length>0)for(var r=0;r<hr.length;r++){var i=hr[r];if(i[1]===t&&i[0]===n){n="[Circular]",hr.splice(r,1);break}}return e.call(this,t,n)}}});var ck=h((dye,ok)=>{"use strict";var Tre=ak(),um=class{constructor({level:t,msg:n,meta:r,tags:i},s){this.level=t,this.meta=r,this.tags=["log",t].concat(s.tags,i);let a={};if(um.isError(n)&&(this._error=n,a.stack=n.stack,n=n.message),this.msg=n,r&&(typeof r!="object"||Array.isArray(r))&&(r={meta:r}),this.meta=Object.assign({},r||{},s.meta,a),s.dynamicMeta&&typeof s.dynamicMeta=="function"){let c=s.dynamicMeta(this,s);typeof c=="object"&&(this.meta=Object.assign(this.meta,c))}this._replacer=typeof s.replacer=="function"?s.replacer:null}get value(){return Object.assign({_logLevel:this.level,msg:this.msg},this.meta,{_tags:this.tags})}get log(){return this.value}get throw(){let t=this._error||new Error(this.msg);throw t.log=this,t}toJSON(t){return Tre(this.value,this._replacer,t?4:0)}static isError(t){return!!t&&typeof t=="object"&&(t instanceof Error||t.hasOwnProperty("message")&&t.hasOwnProperty("stack"))}};ok.exports=um});var dk=h((uye,lk)=>{"use strict";var xre=require("events"),Ire=ck(),mm=class extends xre{constructor(t={},n={}){super();this.LambdaLog=mm,this.LogMessage=Ire,this.options=Object.assign({meta:{},tags:[],dynamicMeta:null,debug:!1,dev:!1,silent:![void 0,null,"0","no","false"].includes(process.env.LAMBDALOG_SILENT),replacer:null,logHandler:console},t),this._logLevels=Object.assign({info:"info",warn:"warn",error:"error",debug:function(){return this.options.debug?"debug":!1}},n||{}),this._levels=Object.keys(this._logLevels),this.console=this.options.logHandler,this._levels.forEach(r=>{this[r]=(i,s={},a=[])=>this.log(r,i,s,a)})}log(t,n,r={},i=[]){if(this._levels.indexOf(t)===-1)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),a=this._logLevels[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,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(a=>s(this.log("info",a,n,r))).catch(a=>s(this.log("error",a,n,r)))})}};lk.exports=mm});var mk=h((mye,uk)=>{"use strict";var Rre=dk(),Dre=new Rre;uk.exports=Dre});var Ki=h((Zs,Hy)=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.default=kre;function fm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fm=function(n){return typeof n}:fm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fm(e)}function kre(e){var t=typeof e=="string"||e instanceof String;if(!t){var n;throw e===null?n="null":(n=fm(e),n==="object"&&e.constructor&&e.constructor.hasOwnProperty("name")?n=e.constructor.name:n="a ".concat(n)),new TypeError("Expected string but received ".concat(n,"."))}}Hy.exports=Zs.default;Hy.exports.default=Zs.default});var pm=h((ea,Yy)=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.default=Nre;function Nre(){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]=="undefined"&&(e[n]=t[n]);return e}Yy.exports=ea.default;Yy.exports.default=ea.default});var fk=h((ta,Jy)=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.default=qre;var Pre=Lre(Ki());function Lre(e){return e&&e.__esModule?e:{default:e}}function hm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hm=function(n){return typeof n}:hm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hm(e)}function qre(e,t){(0,Pre.default)(e);var n,r;hm(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=="undefined"||i<=r)}Jy.exports=ta.default;Jy.exports.default=ta.default});var Xy=h((na,Qy)=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.default=jre;var Mre=pk(Ki()),Ore=pk(pm());function pk(e){return e&&e.__esModule?e:{default:e}}var zre={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1};function jre(e,t){(0,Mre.default)(e),t=(0,Ore.default)(t,zre),t.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1));for(var n=e.split("."),r=0;r<n.length;r++)if(n[r].length>63)return!1;if(t.require_tld){var i=n.pop();if(!n.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(i)||/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(i))return!1}for(var s,a=0;a<n.length;a++)if(s=n[a],t.allow_underscores&&(s=s.replace(/_/g,"")),!/^[a-z\u00a1-\uffff0-9-]+$/i.test(s)||/[\uff01-\uff5e]/.test(s)||s[0]==="-"||s[s.length-1]==="-")return!1;return!0}Qy.exports=na.default;Qy.exports.default=na.default});var gm=h((ra,Zy)=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.default=ym;var Ure=Bre(Ki());function Bre(e){return e&&e.__esModule?e:{default:e}}var Fre=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,Gre=/^[0-9A-F]{1,4}$/i;function ym(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,Ure.default)(e),t=String(t),t){if(t==="4"){if(!Fre.test(e))return!1;var n=e.split(".").sort(function(l,m){return l-m});return n[3]<=255}else if(t==="6"){var r=e.split(":"),i=!1,s=ym(r[r.length-1],4),a=s?7:8;if(r.length>a)return!1;if(e==="::")return!0;e.substr(0,2)==="::"?(r.shift(),r.shift(),i=!0):e.substr(e.length-2)==="::"&&(r.pop(),r.pop(),i=!0);for(var c=0;c<r.length;++c)if(r[c]===""&&c>0&&c<r.length-1){if(i)return!1;i=!0}else if(!(s&&c===r.length-1)){if(!Gre.test(r[c]))return!1}return i?r.length>=1:r.length===a}}else return ym(e,4)||ym(e,6);return!1}Zy.exports=ra.default;Zy.exports.default=ra.default});var yk=h((sa,tg)=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.default=aie;var $re=ia(Ki()),Kre=ia(pm()),eg=ia(fk()),Vre=ia(Xy()),hk=ia(gm());function ia(e){return e&&e.__esModule?e:{default:e}}function Wre(e,t){return Jre(e)||Yre(e,t)||Hre()}function Hre(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Yre(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a=e[Symbol.iterator](),c;!(r=(c=a.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,s=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw s}}return n}function Jre(e){if(Array.isArray(e))return e}var Qre={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0},Xre=/^([^\x00-\x1F\x7F-\x9F\cX]+)<(.+)>$/i,Zre=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,eie=/^[a-z\d]+$/,tie=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,nie=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,rie=/^([\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,iie=254;function sie(e){var t=e.match(/^"(.+)"$/i),n=t?t[1]:e;if(!n.trim())return!1;var r=/[\.";<>]/.test(n);if(r){if(!t)return!1;var i=n.split('"').length===n.split('\\"').length;if(!i)return!1}return!0}function aie(e,t){if((0,$re.default)(e),t=(0,Kre.default)(t,Qre),t.require_display_name||t.allow_display_name){var n=e.match(Xre);if(n){var r,i=Wre(n,3);if(r=i[1],e=i[2],r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!sie(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>iie)return!1;var s=e.split("@"),a=s.pop(),c=s.join("@"),l=a.toLowerCase();if(t.domain_specific_validation&&(l==="gmail.com"||l==="googlemail.com")){c=c.toLowerCase();var m=c.split("+")[0];if(!(0,eg.default)(m.replace(".",""),{min:6,max:30}))return!1;for(var f=m.split("."),g=0;g<f.length;g++)if(!eie.test(f[g]))return!1}if(!(0,eg.default)(c,{max:64})||!(0,eg.default)(a,{max:254}))return!1;if(!(0,Vre.default)(a,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,hk.default)(a)){if(!a.startsWith("[")||!a.endsWith("]"))return!1;var p=a.substr(1,a.length-2);if(p.length===0||!(0,hk.default)(p))return!1}}if(c[0]==='"')return c=c.slice(1,c.length-1),t.allow_utf8_local_part?rie.test(c):tie.test(c);for(var _=t.allow_utf8_local_part?nie:Zre,S=c.split("."),E=0;E<S.length;E++)if(!_.test(S[E]))return!1;return!0}tg.exports=sa.default;tg.exports.default=sa.default});var wk=h((aa,ng)=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.default=fie;var oie=_m(Ki()),cie=_m(Xy()),gk=_m(gm()),lie=_m(pm());function _m(e){return e&&e.__esModule?e:{default:e}}var die={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},uie=/^\[([^\]]+)\](?::([0-9]+))?$/;function mie(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function _k(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||mie(r)&&r.test(e))return!0}return!1}function fie(e,t){if((0,oie.default)(e),!e||e.length>=2083||/[\s<>]/.test(e)||e.indexOf("mailto:")===0)return!1;t=(0,lie.default)(t,die);var n,r,i,s,a,c,l,m;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),l=e.split("://"),l.length>1){if(n=l.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;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&&(t.disallow_auth||(r=l.shift(),r.indexOf(":")>=0&&r.split(":").length>2)))return!1;s=l.join("@"),c=null,m=null;var f=s.match(uie);return f?(i="",m=f[1],c=f[2]||null):(l=s.split(":"),i=l.shift(),l.length&&(c=l.join(":"))),!(c!==null&&(a=parseInt(c,10),!/^[0-9]+$/.test(c)||a<=0||a>65535)||!(0,gk.default)(i)&&!(0,cie.default)(i,t)&&(!m||!(0,gk.default)(m,6))||(i=i||m,t.host_whitelist&&!_k(i,t.host_whitelist))||t.host_blacklist&&_k(i,t.host_blacklist))}ng.exports=aa.default;ng.exports.default=aa.default});var Sk=h((fye,bk)=>{"use strict";var pie=yk(),hie=wk(),yie=gm();function rg(e,t){if(!e)throw new Error(t)}var gie={name:"email",coerce:e=>e.toString(),validate:function(e){rg(pie(e),"must be an email address")}},_ie={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){rg(yie(e),"must be an IP address")}},wie={name:"url",coerce:e=>e.toString(),validate:function(e){rg(hie(e,{require_tld:!1}),"must be a URL")}};bk.exports={email:gie,ipaddress:_ie,url:wie}});var dN=h(lN=>{"use strict";Object.defineProperty(lN,"__esModule",{value:!0})});var _g=h(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});var uN=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)||[]}};gg.default=new uN});var mN=h(_r=>{"use strict";var Fae=_r&&_r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_r,"__esModule",{value:!0});_r.Property=_r.Config=void 0;var Cm=Fae(_g());function Gae(e={}){return t=>{Cm.default.setConvictMetaForClass(e,t)}}_r.Config=Gae;function $ae(e){return(t,n)=>{if(typeof e=="object"&&typeof e.format=="undefined"){let r=Cm.default.getTsType(t,n);r&&(e.format=r)}Cm.default.setConvictMetaForProperty(e,t,n),Cm.default.setPropertyForClass(t,n)}}_r.Property=$ae});var pN=h((Eye,wg)=>{"use strict";var Kae=e=>{let t=!1,n=!1,r=!1;for(let i=0;i<e.length;i++){let s=e[i];t&&/[a-zA-Z]/.test(s)&&s.toUpperCase()===s?(e=e.slice(0,i)+"-"+e.slice(i),t=!1,r=n,n=!0,i++):n&&r&&/[a-zA-Z]/.test(s)&&s.toLowerCase()===s?(e=e.slice(0,i-1)+"-"+e.slice(i-1),r=n,n=!1,t=!0):(t=s.toLowerCase()===s&&s.toUpperCase()!==s,r=n,n=s.toUpperCase()===s&&s.toLowerCase()!==s)}return e},fN=(e,t)=>{if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);let n=i=>t.pascalCase?i.charAt(0).toUpperCase()+i.slice(1):i;return Array.isArray(e)?e=e.map(i=>i.trim()).filter(i=>i.length).join("-"):e=e.trim(),e.length===0?"":e.length===1?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=Kae(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(i,s)=>s.toUpperCase()).replace(/\d+(\w|$)/g,i=>i.toUpperCase()),n(e))};wg.exports=fN;wg.exports.default=fN});var yN=h((Aye,hN)=>{"use strict";hN.exports=function(e,t){if(typeof e!="string")throw new TypeError("Expected a string");return t=typeof t=="undefined"?"_":t,e.replace(/([a-z\d])([A-Z])/g,"$1"+t+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+t+"$2").toLowerCase()}});var _N=h((Cye,gN)=>{gN.exports=function(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,n=null,r=null,i=null,s=[];for(let a=0;a<e.length;a++){if(n=r,r=e.charAt(a),r===" "&&!i){n!==" "&&t++;continue}r===i?i=null:(r==="'"||r==='"')&&!i&&(i=r),s[t]||(s[t]=""),s[t]+=r}return s}});var EN=h((Tye,vN)=>{var Tm=pN(),Vae=yN(),xm=require("path"),Wae=_N(),Hae=require("util");function wN(e,t){t=Object.assign(Object.create(null),t),e=Wae(e);let n=Yae(Object.assign(Object.create(null),t.alias)),r=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,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},t.configuration),i=Object.assign(Object.create(null),t.default),s=t.configObjects||[],a=t.envPrefix,c=r["populate--"],l=c?"--":"_",m=Object.create(null),f=Object.create(null),g=t.__||Hae.format,p={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:[]},_=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,S=new RegExp("^--"+r["negation-prefix"]+"(.+)");[].concat(t.array).filter(Boolean).forEach(function(b){let T=b.key||b,N=Object.keys(b).map(function(C){return{boolean:"bools",string:"strings",number:"numbers"}[C]}).filter(Boolean).pop();N&&(p[N][T]=!0),p.arrays[T]=!0,p.keys.push(T)}),[].concat(t.boolean).filter(Boolean).forEach(function(b){p.bools[b]=!0,p.keys.push(b)}),[].concat(t.string).filter(Boolean).forEach(function(b){p.strings[b]=!0,p.keys.push(b)}),[].concat(t.number).filter(Boolean).forEach(function(b){p.numbers[b]=!0,p.keys.push(b)}),[].concat(t.count).filter(Boolean).forEach(function(b){p.counts[b]=!0,p.keys.push(b)}),[].concat(t.normalize).filter(Boolean).forEach(function(b){p.normalize[b]=!0,p.keys.push(b)}),Object.keys(t.narg||{}).forEach(function(b){p.nargs[b]=t.narg[b],p.keys.push(b)}),Object.keys(t.coerce||{}).forEach(function(b){p.coercions[b]=t.coerce[b],p.keys.push(b)}),Array.isArray(t.config)||typeof t.config=="string"?[].concat(t.config).filter(Boolean).forEach(function(b){p.configs[b]=!0}):Object.keys(t.config||{}).forEach(function(b){p.configs[b]=t.config[b]}),et(t.key,n,t.default,p.arrays),Object.keys(i).forEach(function(b){(p.aliases[b]||[]).forEach(function(T){i[T]=i[b]})});let E=null;_a();let k=[],D=Object.assign(Object.create(null),{_:[]}),R={};for(let b=0;b<e.length;b++){let T=e[b],N,C,x,B,J,Ee;if(T!=="--"&&Zr(T))D._.push(T);else if(T.match(/^--.+=/)||!r["short-option-groups"]&&T.match(/^-.+=/))B=T.match(/^--?([^=]+)=([\s\S]*)$/),te(B[1],p.arrays)?b=yt(b,B[1],e,B[2]):te(B[1],p.nargs)!==!1?b=K(b,B[1],e,B[2]):fe(B[1],B[2]);else if(T.match(S)&&r["boolean-negation"])C=T.match(S)[1],fe(C,te(C,p.arrays)?[!1]:!1);else if(T.match(/^--.+/)||!r["short-option-groups"]&&T.match(/^-[^-]+/))C=T.match(/^--?(.+)/)[1],te(C,p.arrays)?b=yt(b,C,e):te(C,p.nargs)!==!1?b=K(b,C,e):(J=e[b+1],J!==void 0&&(!J.match(/^-/)||J.match(_))&&!te(C,p.bools)&&!te(C,p.counts)||/^(true|false)$/.test(J)?(fe(C,J),b++):fe(C,Wn(C)));else if(T.match(/^-.\..+=/))B=T.match(/^-([^=]+)=([\s\S]*)$/),fe(B[1],B[2]);else if(T.match(/^-.\..+/)&&!T.match(_))J=e[b+1],C=T.match(/^-(.\..+)/)[1],J!==void 0&&!J.match(/^-/)&&!te(C,p.bools)&&!te(C,p.counts)?(fe(C,J),b++):fe(C,Wn(C));else if(T.match(/^-[^-]+/)&&!T.match(_)){x=T.slice(1,-1).split(""),N=!1;for(let pe=0;pe<x.length;pe++){if(J=T.slice(pe+2),x[pe+1]&&x[pe+1]==="="){Ee=T.slice(pe+3),C=x[pe],te(C,p.arrays)?b=yt(b,C,e,Ee):te(C,p.nargs)!==!1?b=K(b,C,e,Ee):fe(C,Ee),N=!0;break}if(J==="-"){fe(x[pe],J);continue}if(/[A-Za-z]/.test(x[pe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(J)){fe(x[pe],J),N=!0;break}if(x[pe+1]&&x[pe+1].match(/\W/)){fe(x[pe],J),N=!0;break}else fe(x[pe],Wn(x[pe]))}C=T.slice(-1)[0],!N&&C!=="-"&&(te(C,p.arrays)?b=yt(b,C,e):te(C,p.nargs)!==!1?b=K(b,C,e):(J=e[b+1],J!==void 0&&(!/^(-|--)[^-]/.test(J)||J.match(_))&&!te(C,p.bools)&&!te(C,p.counts)||/^(true|false)$/.test(J)?(fe(C,J),b++):fe(C,Wn(C))))}else if(T.match(/^-[0-9]$/)&&T.match(_)&&te(T.slice(1),p.bools))C=T.slice(1),fe(C,Wn(C));else if(T==="--"){k=e.slice(b+1);break}else if(r["halt-at-non-option"]){k=e.slice(b);break}else D._.push(tn("_",T))}_e(D,!0),_e(D,!1),Y(D),le(),xe(D,p.aliases,i,!0),Te(D),r["set-placeholder-key"]&&Re(D),Object.keys(p.counts).forEach(function(b){De(D,b.split("."))||fe(b,0)}),c&&k.length&&(D[l]=[]),k.forEach(function(b){D[l].push(b)}),r["camel-case-expansion"]&&r["strip-dashed"]&&Object.keys(D).filter(b=>b!=="--"&&b.includes("-")).forEach(b=>{delete D[b]}),r["strip-aliased"]&&[].concat(...Object.keys(n).map(b=>n[b])).forEach(b=>{r["camel-case-expansion"]&&delete D[b.split(".").map(T=>Tm(T)).join(".")],delete D[b]});function K(b,T,N,C){let x,B=te(T,p.nargs);if(B=isNaN(B)?1:B,B===0)return Be(C)||(E=Error(g("Argument unexpected for: %s",T))),fe(T,Wn(T)),b;let J=Be(C)?0:1;if(r["nargs-eats-options"])N.length-(b+1)+J<B&&(E=Error(g("Not enough arguments following: %s",T))),J=B;else{for(x=b+1;x<N.length&&(!N[x].match(/^-[^0-9]/)||N[x].match(_)||Zr(N[x]));x++)J++;J<B&&(E=Error(g("Not enough arguments following: %s",T)))}let Ee=Math.min(J,B);for(!Be(C)&&Ee>0&&(fe(T,C),Ee--),x=b+1;x<Ee+b+1;x++)fe(T,N[x]);return b+Ee}function yt(b,T,N,C){let x=[],B=C||N[b+1],J=te(T,p.nargs);if(te(T,p.bools)&&!/^(true|false)$/.test(B))x.push(!0);else if(Be(B)||Be(C)&&/^-/.test(B)&&!_.test(B)&&!Zr(B)){if(i[T]!==void 0){let Ee=i[T];x=Array.isArray(Ee)?Ee:[Ee]}}else{Be(C)||x.push(vr(T,C));for(let Ee=b+1;Ee<N.length&&!(!r["greedy-arrays"]&&x.length>0||J&&x.length>=J||(B=N[Ee],/^-/.test(B)&&!_.test(B)&&!Zr(B)));Ee++)b=Ee,x.push(vr(T,B))}return(J&&x.length<J||isNaN(J)&&x.length===0)&&(E=Error(g("Not enough arguments following: %s",T))),fe(T,x),b}function fe(b,T){if(/-/.test(b)&&r["camel-case-expansion"]){let x=b.split(".").map(function(B){return Tm(B)}).join(".");Sr(b,x)}let N=vr(b,T),C=b.split(".");Ne(D,C,N),p.aliases[b]&&p.aliases[b].forEach(function(x){x=x.split("."),Ne(D,x,N)}),C.length>1&&r["dot-notation"]&&(p.aliases[C[0]]||[]).forEach(function(x){x=x.split(".");let B=[].concat(C);B.shift(),x=x.concat(B),(p.aliases[b]||[]).includes(x.join("."))||Ne(D,x,N)}),te(b,p.normalize)&&!te(b,p.arrays)&&[b].concat(p.aliases[b]||[]).forEach(function(B){Object.defineProperty(R,B,{enumerable:!0,get(){return T},set(J){T=typeof J=="string"?xm.normalize(J):J}})})}function Sr(b,T){p.aliases[b]&&p.aliases[b].length||(p.aliases[b]=[T],m[T]=!0),p.aliases[T]&&p.aliases[T].length||Sr(T,b)}function vr(b,T){typeof T=="string"&&(T[0]==="'"||T[0]==='"')&&T[T.length-1]===T[0]&&(T=T.substring(1,T.length-1)),(te(b,p.bools)||te(b,p.counts))&&typeof T=="string"&&(T=T==="true");let N=Array.isArray(T)?T.map(function(C){return tn(b,C)}):tn(b,T);return te(b,p.counts)&&(Be(N)||typeof N=="boolean")&&(N=bg),te(b,p.normalize)&&te(b,p.arrays)&&(Array.isArray(T)?N=T.map(xm.normalize):N=xm.normalize(T)),N}function tn(b,T){return!te(b,p.strings)&&!te(b,p.bools)&&!Array.isArray(T)&&($m(T)&&r["parse-numbers"]&&Number.isSafeInteger(Math.floor(T))||!Be(T)&&te(b,p.numbers))&&(T=Number(T)),T}function Y(b){let T=Object.create(null);xe(T,p.aliases,i),Object.keys(p.configs).forEach(function(N){let C=b[N]||T[N];if(C)try{let x=null,B=xm.resolve(process.cwd(),C);if(typeof p.configs[N]=="function"){try{x=p.configs[N](B)}catch(J){x=J}if(x instanceof Error){E=x;return}}else x=require(B);de(x)}catch(x){b[N]&&(E=Error(g("Invalid JSON config file: %s",C)))}})}function de(b,T){Object.keys(b).forEach(function(N){let C=b[N],x=T?T+"."+N:N;typeof C=="object"&&C!==null&&!Array.isArray(C)&&r["dot-notation"]?de(C,x):(!De(D,x.split("."))||te(x,p.arrays)&&r["combine-arrays"])&&fe(x,C)})}function le(){typeof s!="undefined"&&s.forEach(function(b){de(b)})}function _e(b,T){if(typeof a=="undefined")return;let N=typeof a=="string"?a:"";Object.keys(process.env).forEach(function(C){if(N===""||C.lastIndexOf(N,0)===0){let x=C.split("__").map(function(B,J){return J===0&&(B=B.substring(N.length)),Tm(B)});(T&&p.configs[x.join(".")]||!T)&&!De(b,x)&&fe(x.join("."),process.env[C])}})}function Te(b){let T,N=new Set;Object.keys(b).forEach(function(C){if(!N.has(C)&&(T=te(C,p.coercions),typeof T=="function"))try{let x=tn(C,T(b[C]));[].concat(p.aliases[C]||[],C).forEach(B=>{N.add(B),b[B]=x})}catch(x){E=x}})}function Re(b){return p.keys.forEach(T=>{~T.indexOf(".")||typeof b[T]=="undefined"&&(b[T]=void 0)}),b}function xe(b,T,N,C=!1){Object.keys(N).forEach(function(x){De(b,x.split("."))||(Ne(b,x.split("."),N[x]),C&&(f[x]=!0),(T[x]||[]).forEach(function(B){De(b,B.split("."))||Ne(b,B.split("."),N[x])}))})}function De(b,T){let N=b;r["dot-notation"]||(T=[T.join(".")]),T.slice(0,-1).forEach(function(x){N=N[x]||{}});let C=T[T.length-1];return typeof N!="object"?!1:C in N}function Ne(b,T,N){let C=b;r["dot-notation"]||(T=[T.join(".")]),T.slice(0,-1).forEach(function(pe,Hg){pe=SN(pe),typeof C=="object"&&C[pe]===void 0&&(C[pe]={}),typeof C[pe]!="object"||Array.isArray(C[pe])?(Array.isArray(C[pe])?C[pe].push({}):C[pe]=[C[pe],{}],C=C[pe][C[pe].length-1]):C=C[pe]});let x=SN(T[T.length-1]),B=te(T.join("."),p.arrays),J=Array.isArray(N),Ee=r["duplicate-arguments-array"];!Ee&&te(x,p.nargs)&&(Ee=!0,(!Be(C[x])&&p.nargs[x]===1||Array.isArray(C[x])&&C[x].length===p.nargs[x])&&(C[x]=void 0)),N===bg?C[x]=bg(C[x]):Array.isArray(C[x])?Ee&&B&&J?C[x]=r["flatten-duplicate-arrays"]?C[x].concat(N):(Array.isArray(C[x][0])?C[x]:[C[x]]).concat([N]):!Ee&&Boolean(B)===Boolean(J)?C[x]=N:C[x]=C[x].concat([N]):C[x]===void 0&&B?C[x]=J?N:[N]:Ee&&!(C[x]===void 0||te(x,p.counts)||te(x,p.bools))?C[x]=[C[x],N]:C[x]=N}function et(...b){b.forEach(function(T){Object.keys(T||{}).forEach(function(N){p.aliases[N]||(p.aliases[N]=[].concat(n[N]||[]),p.aliases[N].concat(N).forEach(function(C){if(/-/.test(C)&&r["camel-case-expansion"]){let x=Tm(C);x!==N&&p.aliases[N].indexOf(x)===-1&&(p.aliases[N].push(x),m[x]=!0)}}),p.aliases[N].concat(N).forEach(function(C){if(C.length>1&&/[A-Z]/.test(C)&&r["camel-case-expansion"]){let x=Vae(C,"-");x!==N&&p.aliases[N].indexOf(x)===-1&&(p.aliases[N].push(x),m[x]=!0)}}),p.aliases[N].forEach(function(C){p.aliases[C]=[N].concat(p.aliases[N].filter(function(x){return C!==x}))}))})})}function te(b,T){let N=[].concat(p.aliases[b]||[],b),C=Object.keys(T),x=N.find(B=>C.includes(B));return x?T[x]:!1}function is(b){return[].concat(Object.keys(p).map(N=>p[N])).some(function(N){return Array.isArray(N)?N.includes(b):N[b]})}function ke(b,...T){return[].concat(...T).some(function(C){let x=b.match(C);return x&&is(x[1])})}function Vn(b){if(b.match(_)||!b.match(/^-[^-]+/))return!1;let T=!0,N,C=b.slice(1).split("");for(let x=0;x<C.length;x++){if(N=b.slice(x+2),!is(C[x])){T=!1;break}if(C[x+1]&&C[x+1]==="="||N==="-"||/[A-Za-z]/.test(C[x])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||C[x+1]&&C[x+1].match(/\W/))break}return T}function Zr(b){return r["unknown-options-as-args"]&&Pe(b)}function Pe(b){return b.match(_)||Vn(b)?!1:!ke(b,/^-+([^=]+?)=[\s\S]*$/,S,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Wn(b){return!te(b,p.bools)&&!te(b,p.counts)&&`${b}`in i?i[b]:Fm(Gm(b))}function Fm(b){return{boolean:!0,string:"",number:void 0,array:[]}[b]}function Gm(b){let T="boolean";return te(b,p.strings)?T="string":te(b,p.numbers)?T="number":te(b,p.bools)?T="boolean":te(b,p.arrays)&&(T="array"),T}function $m(b){return b==null?!1:typeof b=="number"||/^0x[0-9a-f]+$/i.test(b)?!0:b.length>1&&b[0]==="0"?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(b)}function Be(b){return b===void 0}function _a(){Object.keys(p.counts).find(b=>{if(te(b,p.arrays))return E=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",b)),!0;if(te(b,p.nargs))return E=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",b)),!0})}return{argv:Object.assign(R,D),error:E,aliases:Object.assign({},p.aliases),newAliases:Object.assign({},m),defaulted:Object.assign({},f),configuration:r}}function Yae(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(c){return t[s].indexOf(c)!==-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(s,a,c){return c.indexOf(s)===a}),n[i.pop()]=i}),n}function bg(e){return e!==void 0?e+1:1}function bN(e,t){return wN(e.slice(),t).argv}bN.detailed=function(e,t){return wN(e.slice(),t)};function SN(e){return e==="__proto__"?"___proto___":e}vN.exports=bN});var uP=h((pa,es)=>{var Jae=200,AN="__lodash_hash_undefined__",CN=9007199254740991,Sg="[object Arguments]",Qae="[object Array]",TN="[object Boolean]",xN="[object Date]",Xae="[object Error]",vg="[object Function]",IN="[object GeneratorFunction]",Im="[object Map]",RN="[object Number]",Eg="[object Object]",DN="[object Promise]",kN="[object RegExp]",Rm="[object Set]",NN="[object String]",PN="[object Symbol]",Ag="[object WeakMap]",LN="[object ArrayBuffer]",Dm="[object DataView]",qN="[object Float32Array]",MN="[object Float64Array]",ON="[object Int8Array]",zN="[object Int16Array]",jN="[object Int32Array]",UN="[object Uint8Array]",BN="[object Uint8ClampedArray]",FN="[object Uint16Array]",GN="[object Uint32Array]",Zae=/[\\^$.*+?()[\]{}|]/g,eoe=/\w*$/,toe=/^\[object .+?Constructor\]$/,noe=/^(?:0|[1-9]\d*)$/,Ae={};Ae[Sg]=Ae[Qae]=Ae[LN]=Ae[Dm]=Ae[TN]=Ae[xN]=Ae[qN]=Ae[MN]=Ae[ON]=Ae[zN]=Ae[jN]=Ae[Im]=Ae[RN]=Ae[Eg]=Ae[kN]=Ae[Rm]=Ae[NN]=Ae[PN]=Ae[UN]=Ae[BN]=Ae[FN]=Ae[GN]=!0;Ae[Xae]=Ae[vg]=Ae[Ag]=!1;var roe=typeof global=="object"&&global&&global.Object===Object&&global,ioe=typeof self=="object"&&self&&self.Object===Object&&self,Gn=roe||ioe||Function("return this")(),$N=typeof pa=="object"&&pa&&!pa.nodeType&&pa,KN=$N&&typeof es=="object"&&es&&!es.nodeType&&es,soe=KN&&KN.exports===$N;function aoe(e,t){return e.set(t[0],t[1]),e}function ooe(e,t){return e.add(t),e}function coe(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function loe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function VN(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 doe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function uoe(e,t){return e==null?void 0:e[t]}function WN(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}function HN(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Cg(e,t){return function(n){return e(t(n))}}function YN(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var moe=Array.prototype,foe=Function.prototype,km=Object.prototype,Tg=Gn["__core-js_shared__"],JN=function(){var e=/[^.]+$/.exec(Tg&&Tg.keys&&Tg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),QN=foe.toString,wr=km.hasOwnProperty,Nm=km.toString,poe=RegExp("^"+QN.call(wr).replace(Zae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),XN=soe?Gn.Buffer:void 0,ZN=Gn.Symbol,eP=Gn.Uint8Array,hoe=Cg(Object.getPrototypeOf,Object),yoe=Object.create,goe=km.propertyIsEnumerable,_oe=moe.splice,tP=Object.getOwnPropertySymbols,woe=XN?XN.isBuffer:void 0,boe=Cg(Object.keys,Object),xg=Zi(Gn,"DataView"),ma=Zi(Gn,"Map"),Ig=Zi(Gn,"Promise"),Rg=Zi(Gn,"Set"),Dg=Zi(Gn,"WeakMap"),fa=Zi(Object,"create"),Soe=Xr(xg),voe=Xr(ma),Eoe=Xr(Ig),Aoe=Xr(Rg),Coe=Xr(Dg),nP=ZN?ZN.prototype:void 0,rP=nP?nP.valueOf:void 0;function Jr(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 Toe(){this.__data__=fa?fa(null):{}}function xoe(e){return this.has(e)&&delete this.__data__[e]}function Ioe(e){var t=this.__data__;if(fa){var n=t[e];return n===AN?void 0:n}return wr.call(t,e)?t[e]:void 0}function Roe(e){var t=this.__data__;return fa?t[e]!==void 0:wr.call(t,e)}function Doe(e,t){var n=this.__data__;return n[e]=fa&&t===void 0?AN:t,this}Jr.prototype.clear=Toe;Jr.prototype.delete=xoe;Jr.prototype.get=Ioe;Jr.prototype.has=Roe;Jr.prototype.set=Doe;function $n(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 koe(){this.__data__=[]}function Noe(e){var t=this.__data__,n=Pm(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():_oe.call(t,n,1),!0}function Poe(e){var t=this.__data__,n=Pm(t,e);return n<0?void 0:t[n][1]}function Loe(e){return Pm(this.__data__,e)>-1}function qoe(e,t){var n=this.__data__,r=Pm(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}$n.prototype.clear=koe;$n.prototype.delete=Noe;$n.prototype.get=Poe;$n.prototype.has=Loe;$n.prototype.set=qoe;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 Moe(){this.__data__={hash:new Jr,map:new(ma||$n),string:new Jr}}function Ooe(e){return Lm(this,e).delete(e)}function zoe(e){return Lm(this,e).get(e)}function joe(e){return Lm(this,e).has(e)}function Uoe(e,t){return Lm(this,e).set(e,t),this}Qi.prototype.clear=Moe;Qi.prototype.delete=Ooe;Qi.prototype.get=zoe;Qi.prototype.has=joe;Qi.prototype.set=Uoe;function Xi(e){this.__data__=new $n(e)}function Boe(){this.__data__=new $n}function Foe(e){return this.__data__.delete(e)}function Goe(e){return this.__data__.get(e)}function $oe(e){return this.__data__.has(e)}function Koe(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!ma||r.length<Jae-1)return r.push([e,t]),this;n=this.__data__=new Qi(r)}return n.set(e,t),this}Xi.prototype.clear=Boe;Xi.prototype.delete=Foe;Xi.prototype.get=Goe;Xi.prototype.has=$oe;Xi.prototype.set=Koe;function Voe(e,t){var n=Pg(e)||yce(e)?doe(e.length,String):[],r=n.length,i=!!r;for(var s in e)(t||wr.call(e,s))&&!(i&&(s=="length"||mce(s,r)))&&n.push(s);return n}function iP(e,t,n){var r=e[t];(!(wr.call(e,t)&&cP(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Pm(e,t){for(var n=e.length;n--;)if(cP(e[n][0],t))return n;return-1}function Woe(e,t){return e&&sP(t,Lg(t),e)}function kg(e,t,n,r,i,s,a){var c;if(r&&(c=s?r(e,i,s,a):r(e)),c!==void 0)return c;if(!qm(e))return e;var l=Pg(e);if(l){if(c=lce(e),!t)return ace(e,c)}else{var m=Qr(e),f=m==vg||m==IN;if(_ce(e))return Zoe(e,t);if(m==Eg||m==Sg||f&&!s){if(WN(e))return s?e:{};if(c=dce(f?{}:e),!t)return oce(e,Woe(c,e))}else{if(!Ae[m])return s?e:{};c=uce(e,m,kg,t)}}a||(a=new Xi);var g=a.get(e);if(g)return g;if(a.set(e,c),!l)var p=n?cce(e):Lg(e);return coe(p||e,function(_,S){p&&(S=_,_=e[S]),iP(c,S,kg(_,t,n,r,S,e,a))}),c}function Hoe(e){return qm(e)?yoe(e):{}}function Yoe(e,t,n){var r=t(e);return Pg(e)?r:loe(r,n(e))}function Joe(e){return Nm.call(e)}function Qoe(e){if(!qm(e)||pce(e))return!1;var t=dP(e)||WN(e)?poe:toe;return t.test(Xr(e))}function Xoe(e){if(!oP(e))return boe(e);var t=[];for(var n in Object(e))wr.call(e,n)&&n!="constructor"&&t.push(n);return t}function Zoe(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Ng(e){var t=new e.constructor(e.byteLength);return new eP(t).set(new eP(e)),t}function ece(e,t){var n=t?Ng(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function tce(e,t,n){var r=t?n(HN(e),!0):HN(e);return VN(r,aoe,new e.constructor)}function nce(e){var t=new e.constructor(e.source,eoe.exec(e));return t.lastIndex=e.lastIndex,t}function rce(e,t,n){var r=t?n(YN(e),!0):YN(e);return VN(r,ooe,new e.constructor)}function ice(e){return rP?Object(rP.call(e)):{}}function sce(e,t){var n=t?Ng(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ace(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function sP(e,t,n,r){n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=r?r(n[a],e[a],a,n,e):void 0;iP(n,a,c===void 0?e[a]:c)}return n}function oce(e,t){return sP(e,aP(e),t)}function cce(e){return Yoe(e,Lg,aP)}function Lm(e,t){var n=e.__data__;return fce(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Zi(e,t){var n=uoe(e,t);return Qoe(n)?n:void 0}var aP=tP?Cg(tP,Object):Sce,Qr=Joe;(xg&&Qr(new xg(new ArrayBuffer(1)))!=Dm||ma&&Qr(new ma)!=Im||Ig&&Qr(Ig.resolve())!=DN||Rg&&Qr(new Rg)!=Rm||Dg&&Qr(new Dg)!=Ag)&&(Qr=function(e){var t=Nm.call(e),n=t==Eg?e.constructor:void 0,r=n?Xr(n):void 0;if(r)switch(r){case Soe:return Dm;case voe:return Im;case Eoe:return DN;case Aoe:return Rm;case Coe:return Ag}return t});function lce(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&wr.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function dce(e){return typeof e.constructor=="function"&&!oP(e)?Hoe(hoe(e)):{}}function uce(e,t,n,r){var i=e.constructor;switch(t){case LN:return Ng(e);case TN:case xN:return new i(+e);case Dm:return ece(e,r);case qN:case MN:case ON:case zN:case jN:case UN:case BN:case FN:case GN:return sce(e,r);case Im:return tce(e,r,n);case RN:case NN:return new i(e);case kN:return nce(e);case Rm:return rce(e,r,n);case PN:return ice(e)}}function mce(e,t){return t=t==null?CN:t,!!t&&(typeof e=="number"||noe.test(e))&&e>-1&&e%1==0&&e<t}function fce(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pce(e){return!!JN&&JN in e}function oP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||km;return e===n}function Xr(e){if(e!=null){try{return QN.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function hce(e){return kg(e,!0,!0)}function cP(e,t){return e===t||e!==e&&t!==t}function yce(e){return gce(e)&&wr.call(e,"callee")&&(!goe.call(e,"callee")||Nm.call(e)==Sg)}var Pg=Array.isArray;function lP(e){return e!=null&&wce(e.length)&&!dP(e)}function gce(e){return bce(e)&&lP(e)}var _ce=woe||vce;function dP(e){var t=qm(e)?Nm.call(e):"";return t==vg||t==IN}function wce(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=CN}function qm(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function bce(e){return!!e&&typeof e=="object"}function Lg(e){return lP(e)?Voe(e):Xoe(e)}function Sce(){return[]}function vce(){return!1}es.exports=hce});var SP=h((xye,bP)=>{"use strict";var Ece=require("fs"),Ace=EN(),ts=uP();function br(e,t){if(!e)throw new Error(t)}function mP(e){return Number.isInteger(e)&&e>=0&&e<=65535}function qg(e){return String(e).includes("\\\\.\\pipe\\")}var ha={"*":function(){},int:function(e){br(Number.isInteger(e),"must be an integer")},nat:function(e){br(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){br(mP(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){br(qg(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){qg(e)||br(mP(e),"must be a windows named pipe or a number within range 0 - 65535")}};ha.integer=ha.int;var Mg=new Map,Og={"*":JSON.parse},Cce="strict",fP="warn";function pP(e,t){let n=Object.keys(e),r,i=[];for(;n.length;){r=n.shift();let a=ns(e,r);if(typeof a=="object"&&!Array.isArray(a)&&a!=null){if(t)if("_cvtProperties"in a)a=a._cvtProperties,r=r+"._cvtProperties";else{i.push([r,a]);continue}let c=Object.keys(a);if(c.length>0){c.forEach(function(l){n.push(r+"."+l)});continue}}i.push([r,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 Tce(e,t,n){let r={undeclared:[],invalid_type:[],missing:[]},i=pP(e),s=pP(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=ns(e,a);else throw new Error("missing")}catch(m){let f=new Error("configuration param '"+a+"' missing from config, did you override its parent?");r.missing.push(f);return}if(delete i[a],(c.format==="object"||typeof c.default=="object")&&Object.keys(i).filter(function(m){return m.lastIndexOf(a+".",0)===0}).forEach(function(m){delete i[m]}),!(typeof c.default=="undefined"&&l===c.default))try{c._format(l)}catch(m){r.invalid_type.push(m)}}),n&&Object.keys(i).forEach(function(a){let c=new Error("configuration param '"+a+"' not declared in the schema");r.undeclared.push(c)}),r}function xce(e,t){br(e.indexOf(t)!==-1,"must be one of the possible values: "+JSON.stringify(e))}var zg={Object,Array,String,Number,Boolean,RegExp},hP=Object.keys(zg),Ice=hP.map(function(e){return zg[e]});function yP(e,t,n,r,i,s,a){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(f){yP(f,t[f],n[e]._cvtProperties,r+"."+f,i,s,a)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let c=ts(t);if(n[e]=c,c.env&&(i[c.env]||(i[c.env]=[]),i[c.env].push(r)),c.arg){if(s[c.arg])throw new Error("'"+r+"' reuses a command-line argument: "+c.arg);s[c.arg]=r}c.sensitive===!0&&a.add(r);let l=c.format,m;if(Ice.indexOf(l)>=0||hP.indexOf(l)>=0){let f=typeof l=="string"?zg[l]:l;m=function(g){br(Object.prototype.toString.call(g)==Object.prototype.toString.call(new f),"must be of type "+f.name)},c.format=f.name.toLowerCase()}else if(typeof l=="string"){if(!ha[l])throw new Error("'"+r+"' uses an unknown format type: "+l);m=ha[l]}else if(Array.isArray(l))m=xce.bind(null,l);else if(typeof l=="function")m=l;else if(l&&typeof l!="function")throw new Error("'"+r+"': `format` must be a function or a known format type.");if(!m&&!l){let f=Object.prototype.toString.call(c.default);m=function(g){br(Object.prototype.toString.call(g)==f," should be of type "+f.replace(/\[.* |]/g,""))}}c._format=function(f){if(!(this.nullable&&f===null))try{m(f,this)}catch(g){throw g.fullName=r,g.value=f,g}}}function jg(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 Ug(e){let t=Ace(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 gP(e,t,n){Object.keys(e._cvtProperties).forEach(function(r){let i=e._cvtProperties[r];if(i._cvtProperties){let s=t[r]||{};gP(i,s,n),t[r]=s}else t[r]=Fg(r,ts(i.default),e,n)})}function _P(e){return typeof e=="object"&&e!==null}function Bg(e,t,n){Object.keys(e).forEach(function(r){Array.isArray(e[r])||!_P(e[r])||!n||n.format==="object"?t[r]=Fg(r,e[r],n):(_P(t[r])||(t[r]={}),Bg(e[r],t[r],n._cvtProperties[r]))})}function Rce(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 Dce(e,t){let n=Rce(e,t);return n==null?null:typeof n.format=="string"?n.format:n.default!=null?typeof n.default:null}function Fg(e,t,n,r){let i=Dce(n,e);if(typeof t=="string"){if(Mg.has(i))return Mg.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=qg(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 wP(e){let t=e.split("."),n=t.length>1?t.pop():"";return(Og[n]||Og["*"])(Ece.readFileSync(e,"utf-8"))}function ns(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 ya=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 ts(this._instance)},toString:function(){let i=ts(this._instance);return this._sensitive.forEach(function(s){let a=s.split("."),c=a.pop(),l=a.join("."),m=ns(i,l);m[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=ns(this._instance,i);return ts(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=ns(this._schema._cvtProperties,i);return ts(s)},reset:function(i){this.set(i,this.default(i))},has:function(i){try{return typeof this.get(i)!="undefined"}catch(s){return!1}},set:function(i,s){s=Fg(i,s,this._schema,this);let a=i.split("."),c=a.pop(),l=a.join(".");if(!(l=="__proto__"||l=="constructor"||l=="prototype")){let m=ns(this._instance,l,!0);m[c]=s}return this},load:function(i){return Bg(i,this._instance,this._schema),jg(r),Ug(r),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(a){let c=wP(a);c&&Bg(c,s._instance,s._schema)}),jg(r),Ug(r),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||fP,i.output&&typeof i.output!="function")throw new Error("options.output is optionnal and must be a function.");let s=i.output||global.console.log,a=Tce(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 E="";for(let k=0;k<S.length;k++){E.length&&(E+=`
28
- `);let D=S[k];D.fullName&&(E+=D.fullName+": "),D.message&&(E+=D.message),D.value&&!c.has(D.fullName)&&(E+=": value was "+JSON.stringify(D.value))}return E},m=l(a.invalid_type),f=l(a.undeclared),g=l(a.missing),p=[m,g];if(i.allowed===fP&&f.length){let S="Warning:";if(process.stdout.isTTY){let E="",k="";S=E+S+k}s(S+" "+f)}else i.allowed===Cce&&p.push(f);let _=p.filter(function(S){return S.length}).join(`
29
- `);if(_.length)throw new Error(_)}return this}};return typeof t=="string"?r._def=wP(t):r._def=t,r._schema={_cvtProperties:{}},r._env={},r._argv={},r._sensitive=new Set,Object.keys(r._def).forEach(function(i){yP(i,r._def[i],r._schema._cvtProperties,i,r._env,r._argv,r._sensitive)}),r._instance={},gP(r._schema,r._instance,r),jg(r),Ug(r),r};ya.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.");ha[e]=t,n&&Mg.set(e,n)};ya.addFormats=function(e){Object.keys(e).forEach(function(t){ya.addFormat(t,e[t].validate,e[t].coerce)})};ya.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");Og[r]=t.parse})})};bP.exports=ya});var EP=h(rs=>{"use strict";var Mm=rs&&rs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rs,"__esModule",{value:!0});rs.TSConvict=void 0;var Tn=Mm(_g()),Gg=Mm(SP()),kce=Mm(require("fs")),Nce=Mm(require("path")),vP=class{constructor(t){if(this.opts={},!Tn.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let n=Tn.default.getConvictMetaForClass(t);n!==null&&(typeof n.parser!="undefined"&&Gg.default.addParser(n.parser),typeof n.formats!="undefined"&&Gg.default.addFormats(n.formats),this.opts=n),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=Gg.default(this.schema)}load(t=null){let n=null;if(typeof this.opts.file!="undefined"&&kce.default.existsSync(Nce.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 Tn.default.getClassProperties(t)){let i=Tn.default.getConvictMetaForProperty(t,r);if(Tn.default.isConstructor(i)&&Tn.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 Tn.default.getClassProperties(t)){let i=Tn.default.getConvictMetaForProperty(t,r);Tn.default.isConstructor(i)&&Tn.default.isConfigClass(i)?this.applyDataToModel(t[r],n[r]||{}):r in n&&(t[r]=n[r])}return t}};rs.TSConvict=vP});var Om=h(Kn=>{"use strict";var Pce=Kn&&Kn.__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]}),$g=Kn&&Kn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Pce(t,e,n)};Object.defineProperty(Kn,"__esModule",{value:!0});$g(dN(),Kn);$g(mN(),Kn);$g(EP(),Kn)});MP(exports,{handler:()=>IP});P_().install();var L_;(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=="undefined"?n.Reflect=e:r=i(n.Reflect,r),t(r);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 n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",i=r&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!a&&!c,m={create:a?function(){return Km(Object.create(null))}:c?function(){return Km({__proto__:null})}:function(){return Km({})},has:l?function(A,I){return n.call(A,I)}:function(A,I){return I in A},get:l?function(A,I){return n.call(A,I)?A[I]:void 0}:function(A,I){return A[I]}},f=Object.getPrototypeOf(Function),g=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",p=!g&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Hg(),_=!g&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:RP(),S=!g&&typeof WeakMap=="function"?WeakMap:DP(),E=new S;function k(A,I,L,O){if(ke(L)){if(!_a(A))throw new TypeError;if(!T(I))throw new TypeError;return de(A,I)}else{if(!_a(A))throw new TypeError;if(!Pe(I))throw new TypeError;if(!Pe(O)&&!ke(O)&&!Vn(O))throw new TypeError;return Vn(O)&&(O=void 0),L=Be(L),le(A,I,L,O)}}t("decorate",k);function D(A,I){function L(O,V){if(!Pe(O))throw new TypeError;if(!ke(V)&&!N(V))throw new TypeError;Ne(A,I,O,V)}return L}t("metadata",D);function R(A,I,L,O){if(!Pe(L))throw new TypeError;return ke(O)||(O=Be(O)),Ne(A,I,L,O)}t("defineMetadata",R);function K(A,I,L){if(!Pe(I))throw new TypeError;return ke(L)||(L=Be(L)),Te(A,I,L)}t("hasMetadata",K);function yt(A,I,L){if(!Pe(I))throw new TypeError;return ke(L)||(L=Be(L)),Re(A,I,L)}t("hasOwnMetadata",yt);function fe(A,I,L){if(!Pe(I))throw new TypeError;return ke(L)||(L=Be(L)),xe(A,I,L)}t("getMetadata",fe);function Sr(A,I,L){if(!Pe(I))throw new TypeError;return ke(L)||(L=Be(L)),De(A,I,L)}t("getOwnMetadata",Sr);function vr(A,I){if(!Pe(A))throw new TypeError;return ke(I)||(I=Be(I)),et(A,I)}t("getMetadataKeys",vr);function tn(A,I){if(!Pe(A))throw new TypeError;return ke(I)||(I=Be(I)),te(A,I)}t("getOwnMetadataKeys",tn);function Y(A,I,L){if(!Pe(I))throw new TypeError;ke(L)||(L=Be(L));var O=_e(I,L,!1);if(ke(O)||!O.delete(A))return!1;if(O.size>0)return!0;var V=E.get(I);return V.delete(L),V.size>0||E.delete(I),!0}t("deleteMetadata",Y);function de(A,I){for(var L=A.length-1;L>=0;--L){var O=A[L],V=O(I);if(!ke(V)&&!Vn(V)){if(!T(V))throw new TypeError;I=V}}return I}function le(A,I,L,O){for(var V=A.length-1;V>=0;--V){var Ve=A[V],se=Ve(I,L,O);if(!ke(se)&&!Vn(se)){if(!Pe(se))throw new TypeError;O=se}}return O}function _e(A,I,L){var O=E.get(A);if(ke(O)){if(!L)return;O=new p,E.set(A,O)}var V=O.get(I);if(ke(V)){if(!L)return;V=new p,O.set(I,V)}return V}function Te(A,I,L){var O=Re(A,I,L);if(O)return!0;var V=pe(I);return Vn(V)?!1:Te(A,V,L)}function Re(A,I,L){var O=_e(I,L,!1);return ke(O)?!1:Gm(O.has(A))}function xe(A,I,L){var O=Re(A,I,L);if(O)return De(A,I,L);var V=pe(I);if(!Vn(V))return xe(A,V,L)}function De(A,I,L){var O=_e(I,L,!1);if(!ke(O))return O.get(A)}function Ne(A,I,L,O){var V=_e(L,O,!0);V.set(A,I)}function et(A,I){var L=te(A,I),O=pe(A);if(O===null)return L;var V=et(O,I);if(V.length<=0)return L;if(L.length<=0)return V;for(var Ve=new _,se=[],ae=0,Q=L;ae<Q.length;ae++){var ye=Q[ae],ge=Ve.has(ye);ge||(Ve.add(ye),se.push(ye))}for(var Hn=0,Yg=V;Hn<Yg.length;Hn++){var ye=Yg[Hn],ge=Ve.has(ye);ge||(Ve.add(ye),se.push(ye))}return se}function te(A,I){var L=[],O=_e(A,I,!1);if(ke(O))return L;for(var V=O.keys(),Ve=x(V),se=0;;){var ae=J(Ve);if(!ae)return L.length=se,L;var Q=B(ae);try{L[se]=Q}catch(ye){try{Ee(Ve)}finally{throw ye}}se++}}function is(A){if(A===null)return 1;switch(typeof A){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return A===null?1:6;default:return 6}}function ke(A){return A===void 0}function Vn(A){return A===null}function Zr(A){return typeof A=="symbol"}function Pe(A){return typeof A=="object"?A!==null:typeof A=="function"}function Wn(A,I){switch(is(A)){case 0:return A;case 1:return A;case 2:return A;case 3:return A;case 4:return A;case 5:return A}var L=I===3?"string":I===5?"number":"default",O=C(A,i);if(O!==void 0){var V=O.call(A,L);if(Pe(V))throw new TypeError;return V}return Fm(A,L==="default"?"number":L)}function Fm(A,I){if(I==="string"){var L=A.toString;if(b(L)){var O=L.call(A);if(!Pe(O))return O}var V=A.valueOf;if(b(V)){var O=V.call(A);if(!Pe(O))return O}}else{var V=A.valueOf;if(b(V)){var O=V.call(A);if(!Pe(O))return O}var Ve=A.toString;if(b(Ve)){var O=Ve.call(A);if(!Pe(O))return O}}throw new TypeError}function Gm(A){return!!A}function $m(A){return""+A}function Be(A){var I=Wn(A,3);return Zr(I)?I:$m(I)}function _a(A){return Array.isArray?Array.isArray(A):A instanceof Object?A instanceof Array:Object.prototype.toString.call(A)==="[object Array]"}function b(A){return typeof A=="function"}function T(A){return typeof A=="function"}function N(A){switch(is(A)){case 3:return!0;case 4:return!0;default:return!1}}function C(A,I){var L=A[I];if(L!=null){if(!b(L))throw new TypeError;return L}}function x(A){var I=C(A,s);if(!b(I))throw new TypeError;var L=I.call(A);if(!Pe(L))throw new TypeError;return L}function B(A){return A.value}function J(A){var I=A.next();return I.done?!1:I}function Ee(A){var I=A.return;I&&I.call(A)}function pe(A){var I=Object.getPrototypeOf(A);if(typeof A!="function"||A===f||I!==f)return I;var L=A.prototype,O=L&&Object.getPrototypeOf(L);if(O==null||O===Object.prototype)return I;var V=O.constructor;return typeof V!="function"||V===A?I:V}function Hg(){var A={},I=[],L=function(){function se(ae,Q,ye){this._index=0,this._keys=ae,this._values=Q,this._selector=ye}return se.prototype["@@iterator"]=function(){return this},se.prototype[s]=function(){return this},se.prototype.next=function(){var ae=this._index;if(ae>=0&&ae<this._keys.length){var Q=this._selector(this._keys[ae],this._values[ae]);return ae+1>=this._keys.length?(this._index=-1,this._keys=I,this._values=I):this._index++,{value:Q,done:!1}}return{value:void 0,done:!0}},se.prototype.throw=function(ae){throw this._index>=0&&(this._index=-1,this._keys=I,this._values=I),ae},se.prototype.return=function(ae){return this._index>=0&&(this._index=-1,this._keys=I,this._values=I),{value:ae,done:!0}},se}();return function(){function se(){this._keys=[],this._values=[],this._cacheKey=A,this._cacheIndex=-2}return Object.defineProperty(se.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),se.prototype.has=function(ae){return this._find(ae,!1)>=0},se.prototype.get=function(ae){var Q=this._find(ae,!1);return Q>=0?this._values[Q]:void 0},se.prototype.set=function(ae,Q){var ye=this._find(ae,!0);return this._values[ye]=Q,this},se.prototype.delete=function(ae){var Q=this._find(ae,!1);if(Q>=0){for(var ye=this._keys.length,ge=Q+1;ge<ye;ge++)this._keys[ge-1]=this._keys[ge],this._values[ge-1]=this._values[ge];return this._keys.length--,this._values.length--,ae===this._cacheKey&&(this._cacheKey=A,this._cacheIndex=-2),!0}return!1},se.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=A,this._cacheIndex=-2},se.prototype.keys=function(){return new L(this._keys,this._values,O)},se.prototype.values=function(){return new L(this._keys,this._values,V)},se.prototype.entries=function(){return new L(this._keys,this._values,Ve)},se.prototype["@@iterator"]=function(){return this.entries()},se.prototype[s]=function(){return this.entries()},se.prototype._find=function(ae,Q){return this._cacheKey!==ae&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=ae)),this._cacheIndex<0&&Q&&(this._cacheIndex=this._keys.length,this._keys.push(ae),this._values.push(void 0)),this._cacheIndex},se}();function O(se,ae){return se}function V(se,ae){return ae}function Ve(se,ae){return[se,ae]}}function RP(){return function(){function A(){this._map=new p}return Object.defineProperty(A.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),A.prototype.has=function(I){return this._map.has(I)},A.prototype.add=function(I){return this._map.set(I,I),this},A.prototype.delete=function(I){return this._map.delete(I)},A.prototype.clear=function(){this._map.clear()},A.prototype.keys=function(){return this._map.keys()},A.prototype.values=function(){return this._map.values()},A.prototype.entries=function(){return this._map.entries()},A.prototype["@@iterator"]=function(){return this.keys()},A.prototype[s]=function(){return this.keys()},A}()}function DP(){var A=16,I=m.create(),L=O();return function(){function Q(){this._key=O()}return Q.prototype.has=function(ye){var ge=V(ye,!1);return ge!==void 0?m.has(ge,this._key):!1},Q.prototype.get=function(ye){var ge=V(ye,!1);return ge!==void 0?m.get(ge,this._key):void 0},Q.prototype.set=function(ye,ge){var Hn=V(ye,!0);return Hn[this._key]=ge,this},Q.prototype.delete=function(ye){var ge=V(ye,!1);return ge!==void 0?delete ge[this._key]:!1},Q.prototype.clear=function(){this._key=O()},Q}();function O(){var Q;do Q="@@WeakMap@@"+ae();while(m.has(I,Q));return I[Q]=!0,Q}function V(Q,ye){if(!n.call(Q,L)){if(!ye)return;Object.defineProperty(Q,L,{value:m.create()})}return Q[L]}function Ve(Q,ye){for(var ge=0;ge<ye;++ge)Q[ge]=Math.random()*255|0;return Q}function se(Q){return typeof Uint8Array=="function"?typeof crypto!="undefined"?crypto.getRandomValues(new Uint8Array(Q)):typeof msCrypto!="undefined"?msCrypto.getRandomValues(new Uint8Array(Q)):Ve(new Uint8Array(Q),Q):Ve(new Array(Q),Q)}function ae(){var Q=se(A);Q[6]=Q[6]&79|64,Q[8]=Q[8]&191|128;for(var ye="",ge=0;ge<A;++ge){var Hn=Q[ge];(ge===4||ge===6||ge===8)&&(ye+="-"),Hn<16&&(ye+="0"),ye+=Hn.toString(16).toLowerCase()}return ye}}function Km(A){return A.__=void 0,delete A.__,A}})})(L_||(L_={}));var Vg=Vt(ut());var J1=Vt(XI());var qt=class{static get TableName(){return this._tableName}static set TableName(t){if(this._tableName!==void 0&&this._tableName!==t)throw new Error("TableName is being set twice ");this._tableName=t}};var H1;(function(n){n[n.AppName=0]="AppName",n[n.Applications=1]="Applications"})(H1||(H1={}));var Y1=Vt(Ty());var Vr=class{static async LoadAsync(t,n){let{Item:r}=await t.get({TableName:qt.TableName,Key:{PK:`appName#${n}`.toLowerCase(),SK:"rules"}});return(0,Y1.plainToClass)(Vr,r)}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 SaveAsync(t){let n=t.put({TableName:qt.TableName,Item:this.DbStruct}),r=t.put({TableName:qt.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}};var xy=Vt(Ty());var zi;(function(t){t[t.AppName=0]="AppName"})(zi||(zi={}));var Wr=class{static async LoadVersionsAsync(t,n){let{Items:r}=await t.query({TableName:qt.TableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${n}`.toLowerCase(),":skval":"version"}}),i=[];if(r!==void 0)for(let s of r){let a=(0,xy.plainToClass)(Wr,s);i.push(a)}return i}static async LoadVersionAsync(t,n,r){let{Item:i}=await t.get({TableName:qt.TableName,Key:{PK:`appName#${n}`.toLowerCase(),SK:`version#${r}`.toLowerCase()}});return(0,xy.plainToClass)(Wr,i)}get PK(){switch(this._keyBy){case 0:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}constructor(t){Object.assign(this,t),this._keyBy=0}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,SemVer:this.SemVer,Type:this.Type,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID}}async SaveAsync(t){this._keyBy=0,await t.put({TableName:qt.TableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case 0: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 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}};var ft=class{static async UpdateDefaultRule(t,n){let r=await Vr.LoadAsync(ft._ddbDocClient,t),i=r.RuleSet.default;i.SemVer=n,await r.SaveAsync(this._ddbDocClient)}static async GetVersionsAndRules(t){let n=Wr.LoadVersionsAsync(ft._ddbDocClient,t),r=Vr.LoadAsync(ft._ddbDocClient,t);return await Promise.all([n,r]),{Versions:await n,Rules:await r}}constructor(t){let{dynamoDB:n,tableName:r}=t;ft._client===void 0&&(qt.TableName=r,ft._client=n,ft._ddbDocClient=J1.DynamoDBDocument.from(ft._client))}static get TableName(){return qt.TableName}static get DBClient(){return ft._client}static get DBDocClient(){return ft._ddbDocClient}};var ga=Vt(Ky()),Wg=Vt(mk());var Um=Vt(Sk());function vk(e){return typeof e=="undefined"||e===null}function bie(e){return typeof e=="object"&&e!==null}function Sie(e){return Array.isArray(e)?e:vk(e)?[]:[e]}function vie(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 Eie(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Aie(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Cie=vk,Tie=bie,xie=Sie,Iie=Eie,Rie=Aie,Die=vie,Fe={isNothing:Cie,isObject:Tie,toArray:xie,repeat:Iie,isNegativeZero:Rie,extend:Die};function Ek(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+=`
26
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),Qi.checkPaths(e,t,"copy",(s,i)=>{if(s)return r(s);let{srcStat:a,destStat:c}=i;Qi.checkParentPaths(e,a,t,"copy",l=>l?r(l):n.filter?HR(WR,c,e,t,n,r):WR(c,e,t,n,r))})}function WR(e,t,n,r,s){let i=Ji.dirname(n);kne(i,(a,c)=>{if(a)return s(a);if(c)return Zy(e,t,n,r,s);Rne(i,l=>l?s(l):Zy(e,t,n,r,s))})}function HR(e,t,n,r,s,i){Promise.resolve(s.filter(n,r)).then(a=>a?e(t,n,r,s,i):i(),a=>i(a))}function Zy(e,t,n,r,s){return r.filter?HR(YR,e,t,n,r,s):YR(e,t,n,r,s)}function YR(e,t,n,r,s){(r.dereference?Tt.stat:Tt.lstat)(t,(a,c)=>{if(a)return s(a);if(c.isDirectory())return jne(c,e,t,n,r,s);if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return Lne(c,e,t,n,r,s);if(c.isSymbolicLink())return Fne(e,t,n,r,s)})}function Lne(e,t,n,r,s,i){return t?Pne(e,n,r,s,i):JR(e,n,r,s,i)}function Pne(e,t,n,r,s){if(r.overwrite)Tt.unlink(n,i=>i?s(i):JR(e,t,n,r,s));else return r.errorOnExist?s(new Error(`'${n}' already exists`)):s()}function JR(e,t,n,r,s){Tt.copyFile(t,n,i=>i?s(i):r.preserveTimestamps?qne(e.mode,t,n,s):lm(n,e.mode,s))}function qne(e,t,n,r){return Mne(e)?One(n,e,s=>s?r(s):QR(e,t,n,r)):QR(e,t,n,r)}function Mne(e){return(e&128)==0}function One(e,t,n){return lm(e,t|128,n)}function QR(e,t,n,r){zne(t,n,s=>s?r(s):lm(n,e,r))}function lm(e,t,n){return Tt.chmod(e,t,n)}function zne(e,t,n){Tt.stat(e,(r,s)=>r?n(r):Dne(t,s.atime,s.mtime,n))}function jne(e,t,n,r,s,i){return t?t&&!t.isDirectory()?i(new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):XR(n,r,s,i):Une(e.mode,n,r,s,i)}function Une(e,t,n,r,s){Tt.mkdir(n,i=>{if(i)return s(i);XR(t,n,r,a=>a?s(a):lm(n,e,s))})}function XR(e,t,n,r){Tt.readdir(e,(s,i)=>s?r(s):ZR(i,e,t,n,r))}function ZR(e,t,n,r,s){let i=e.pop();return i?Bne(e,i,t,n,r,s):s()}function Bne(e,t,n,r,s,i){let a=Ji.join(n,t),c=Ji.join(r,t);Qi.checkPaths(a,c,"copy",(l,m)=>{if(l)return i(l);let{destStat:f}=m;Zy(f,a,c,s,g=>g?i(g):ZR(e,n,r,s,i))})}function Fne(e,t,n,r,s){Tt.readlink(t,(i,a)=>{if(i)return s(i);if(r.dereference&&(a=Ji.resolve(process.cwd(),a)),e)Tt.readlink(n,(c,l)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?Tt.symlink(a,n,s):s(c):(r.dereference&&(l=Ji.resolve(process.cwd(),l)),Qi.isSrcSubdir(a,l)?s(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&Qi.isSrcSubdir(l,a)?s(new Error(`Cannot overwrite '${l}' with '${a}'.`)):Gne(a,n,s)));else return Tt.symlink(a,n,s)})}function Gne(e,t,n){Tt.unlink(t,r=>r?n(r):Tt.symlink(e,t,n))}ek.exports=Nne});var eg=p((iye,nk)=>{"use strict";var $ne=At().fromCallback;nk.exports={copy:$ne(tk())}});var uk=p((aye,dk)=>{"use strict";var rk=at(),sk=require("path"),ve=require("assert"),Xi=process.platform==="win32";function ik(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{e[n]=e[n]||rk[n],n=n+"Sync",e[n]=e[n]||rk[n]}),e.maxBusyTries=e.maxBusyTries||3}function tg(e,t,n){let r=0;typeof t=="function"&&(n=t,t={}),ve(e,"rimraf: missing path"),ve.strictEqual(typeof e,"string","rimraf: path should be a string"),ve.strictEqual(typeof n,"function","rimraf: callback function required"),ve(t,"rimraf: invalid options argument provided"),ve.strictEqual(typeof t,"object","rimraf: options should be object"),ik(t),ak(e,t,function s(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&r<t.maxBusyTries){r++;let a=r*100;return setTimeout(()=>ak(e,t,s),a)}i.code==="ENOENT"&&(i=null)}n(i)})}function ak(e,t,n){ve(e),ve(t),ve(typeof n=="function"),t.lstat(e,(r,s)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&Xi)return ok(e,t,r,n);if(s&&s.isDirectory())return dm(e,t,r,n);t.unlink(e,i=>{if(i){if(i.code==="ENOENT")return n(null);if(i.code==="EPERM")return Xi?ok(e,t,i,n):dm(e,t,i,n);if(i.code==="EISDIR")return dm(e,t,i,n)}return n(i)})})}function ok(e,t,n,r){ve(e),ve(t),ve(typeof r=="function"),t.chmod(e,438,s=>{s?r(s.code==="ENOENT"?null:n):t.stat(e,(i,a)=>{i?r(i.code==="ENOENT"?null:n):a.isDirectory()?dm(e,t,n,r):t.unlink(e,r)})})}function ck(e,t,n){let r;ve(e),ve(t);try{t.chmodSync(e,438)}catch(s){if(s.code==="ENOENT")return;throw n}try{r=t.statSync(e)}catch(s){if(s.code==="ENOENT")return;throw n}r.isDirectory()?um(e,t,n):t.unlinkSync(e)}function dm(e,t,n,r){ve(e),ve(t),ve(typeof r=="function"),t.rmdir(e,s=>{s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")?Kne(e,t,r):s&&s.code==="ENOTDIR"?r(n):r(s)})}function Kne(e,t,n){ve(e),ve(t),ve(typeof n=="function"),t.readdir(e,(r,s)=>{if(r)return n(r);let i=s.length,a;if(i===0)return t.rmdir(e,n);s.forEach(c=>{tg(sk.join(e,c),t,l=>{if(!a){if(l)return n(a=l);--i==0&&t.rmdir(e,n)}})})})}function lk(e,t){let n;t=t||{},ik(t),ve(e,"rimraf: missing path"),ve.strictEqual(typeof e,"string","rimraf: path should be a string"),ve(t,"rimraf: missing options"),ve.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;r.code==="EPERM"&&Xi&&ck(e,t,r)}try{n&&n.isDirectory()?um(e,t,null):t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return Xi?ck(e,t,r):um(e,t,r);if(r.code!=="EISDIR")throw r;um(e,t,r)}}function um(e,t,n){ve(e),ve(t);try{t.rmdirSync(e)}catch(r){if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")Vne(e,t);else if(r.code!=="ENOENT")throw r}}function Vne(e,t){if(ve(e),ve(t),t.readdirSync(e).forEach(n=>lk(sk.join(e,n),t)),Xi){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}dk.exports=tg;tg.sync=lk});var Zi=p((oye,fk)=>{"use strict";var Wne=At().fromCallback,mk=uk();fk.exports={remove:Wne(mk),removeSync:mk.sync}});var Sk=p((cye,bk)=>{"use strict";var Hne=At().fromCallback,pk=at(),hk=require("path"),yk=Zt(),gk=Zi(),_k=Hne(function(t,n){n=n||function(){},pk.readdir(t,(r,s)=>{if(r)return yk.mkdirs(t,n);s=s.map(a=>hk.join(t,a)),i();function i(){let a=s.pop();if(!a)return n();gk.remove(a,c=>{if(c)return n(c);i()})}})});function wk(e){let t;try{t=pk.readdirSync(e)}catch{return yk.mkdirsSync(e)}t.forEach(n=>{n=hk.join(e,n),gk.removeSync(n)})}bk.exports={emptyDirSync:wk,emptydirSync:wk,emptyDir:_k,emptydir:_k}});var Ck=p((lye,Ak)=>{"use strict";var Yne=At().fromCallback,vk=require("path"),hr=at(),Ek=Zt();function Jne(e,t){function n(){hr.writeFile(e,"",r=>{if(r)return t(r);t()})}hr.stat(e,(r,s)=>{if(!r&&s.isFile())return t();let i=vk.dirname(e);hr.stat(i,(a,c)=>{if(a)return a.code==="ENOENT"?Ek.mkdirs(i,l=>{if(l)return t(l);n()}):t(a);c.isDirectory()?n():hr.readdir(i,l=>{if(l)return t(l)})})})}function Qne(e){let t;try{t=hr.statSync(e)}catch{}if(t&&t.isFile())return;let n=vk.dirname(e);try{hr.statSync(n).isDirectory()||hr.readdirSync(n)}catch(r){if(r&&r.code==="ENOENT")Ek.mkdirsSync(n);else throw r}hr.writeFileSync(e,"")}Ak.exports={createFile:Yne(Jne),createFileSync:Qne}});var kk=p((dye,Rk)=>{"use strict";var Xne=At().fromCallback,Tk=require("path"),Yr=at(),xk=Zt(),Ik=pr().pathExists;function Zne(e,t,n){function r(s,i){Yr.link(s,i,a=>{if(a)return n(a);n(null)})}Ik(t,(s,i)=>{if(s)return n(s);if(i)return n(null);Yr.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),n(a);let c=Tk.dirname(t);Ik(c,(l,m)=>{if(l)return n(l);if(m)return r(e,t);xk.mkdirs(c,f=>{if(f)return n(f);r(e,t)})})})})}function ere(e,t){if(Yr.existsSync(t))return;try{Yr.lstatSync(e)}catch(i){throw i.message=i.message.replace("lstat","ensureLink"),i}let r=Tk.dirname(t);return Yr.existsSync(r)||xk.mkdirsSync(r),Yr.linkSync(e,t)}Rk.exports={createLink:Xne(Zne),createLinkSync:ere}});var Nk=p((uye,Dk)=>{"use strict";var yr=require("path"),ea=at(),tre=pr().pathExists;function nre(e,t,n){if(yr.isAbsolute(e))return ea.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:e}));{let r=yr.dirname(t),s=yr.join(r,e);return tre(s,(i,a)=>i?n(i):a?n(null,{toCwd:s,toDst:e}):ea.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),n(c)):n(null,{toCwd:e,toDst:yr.relative(r,e)})))}}function rre(e,t){let n;if(yr.isAbsolute(e)){if(n=ea.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let r=yr.dirname(t),s=yr.join(r,e);if(n=ea.existsSync(s),n)return{toCwd:s,toDst:e};if(n=ea.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:yr.relative(r,e)}}}Dk.exports={symlinkPaths:nre,symlinkPathsSync:rre}});var qk=p((mye,Pk)=>{"use strict";var Lk=at();function sre(e,t,n){if(n=typeof t=="function"?t:n,t=typeof t=="function"?!1:t,t)return n(null,t);Lk.lstat(e,(r,s)=>{if(r)return n(null,"file");t=s&&s.isDirectory()?"dir":"file",n(null,t)})}function ire(e,t){let n;if(t)return t;try{n=Lk.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}Pk.exports={symlinkType:sre,symlinkTypeSync:ire}});var Fk=p((fye,Bk)=>{"use strict";var are=At().fromCallback,Mk=require("path"),$s=at(),Ok=Zt(),ore=Ok.mkdirs,cre=Ok.mkdirsSync,zk=Nk(),lre=zk.symlinkPaths,dre=zk.symlinkPathsSync,jk=qk(),ure=jk.symlinkType,mre=jk.symlinkTypeSync,Uk=pr().pathExists;function fre(e,t,n,r){r=typeof n=="function"?n:r,n=typeof n=="function"?!1:n,Uk(t,(s,i)=>{if(s)return r(s);if(i)return r(null);lre(e,t,(a,c)=>{if(a)return r(a);e=c.toDst,ure(c.toCwd,n,(l,m)=>{if(l)return r(l);let f=Mk.dirname(t);Uk(f,(g,h)=>{if(g)return r(g);if(h)return $s.symlink(e,t,m,r);ore(f,_=>{if(_)return r(_);$s.symlink(e,t,m,r)})})})})})}function pre(e,t,n){if($s.existsSync(t))return;let s=dre(e,t);e=s.toDst,n=mre(s.toCwd,n);let i=Mk.dirname(t);return $s.existsSync(i)||cre(i),$s.symlinkSync(e,t,n)}Bk.exports={createSymlink:are(fre),createSymlinkSync:pre}});var $k=p((pye,Gk)=>{"use strict";var mm=Ck(),fm=kk(),pm=Fk();Gk.exports={createFile:mm.createFile,createFileSync:mm.createFileSync,ensureFile:mm.createFile,ensureFileSync:mm.createFileSync,createLink:fm.createLink,createLinkSync:fm.createLinkSync,ensureLink:fm.createLink,ensureLinkSync:fm.createLinkSync,createSymlink:pm.createSymlink,createSymlinkSync:pm.createSymlinkSync,ensureSymlink:pm.createSymlink,ensureSymlinkSync:pm.createSymlinkSync}});var hm=p((hye,Kk)=>{function hre(e,{EOL:t=`
27
+ `,finalEOL:n=!0,replacer:r=null,spaces:s}={}){let i=n?t:"";return JSON.stringify(e,r,s).replace(/\n/g,t)+i}function yre(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Kk.exports={stringify:hre,stripBom:yre}});var Yk=p((yye,Hk)=>{var Ks;try{Ks=at()}catch(e){Ks=require("fs")}var ym=At(),{stringify:Vk,stripBom:Wk}=hm();async function gre(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||Ks,r="throws"in t?t.throws:!0,s=await ym.fromCallback(n.readFile)(e,t);s=Wk(s);let i;try{i=JSON.parse(s,t?t.reviver:null)}catch(a){if(r)throw a.message=`${e}: ${a.message}`,a;return null}return i}var _re=ym.fromPromise(gre);function wre(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||Ks,r="throws"in t?t.throws:!0;try{let s=n.readFileSync(e,t);return s=Wk(s),JSON.parse(s,t.reviver)}catch(s){if(r)throw s.message=`${e}: ${s.message}`,s;return null}}async function bre(e,t,n={}){let r=n.fs||Ks,s=Vk(t,n);await ym.fromCallback(r.writeFile)(e,s,n)}var Sre=ym.fromPromise(bre);function vre(e,t,n={}){let r=n.fs||Ks,s=Vk(t,n);return r.writeFileSync(e,s,n)}var Ere={readFile:_re,readFileSync:wre,writeFile:Sre,writeFileSync:vre};Hk.exports=Ere});var Qk=p((gye,Jk)=>{"use strict";var gm=Yk();Jk.exports={readJson:gm.readFile,readJsonSync:gm.readFileSync,writeJson:gm.writeFile,writeJsonSync:gm.writeFileSync}});var _m=p((_ye,eD)=>{"use strict";var Are=At().fromCallback,ta=at(),Xk=require("path"),Zk=Zt(),Cre=pr().pathExists;function Tre(e,t,n,r){typeof n=="function"&&(r=n,n="utf8");let s=Xk.dirname(e);Cre(s,(i,a)=>{if(i)return r(i);if(a)return ta.writeFile(e,t,n,r);Zk.mkdirs(s,c=>{if(c)return r(c);ta.writeFile(e,t,n,r)})})}function xre(e,...t){let n=Xk.dirname(e);if(ta.existsSync(n))return ta.writeFileSync(e,...t);Zk.mkdirsSync(n),ta.writeFileSync(e,...t)}eD.exports={outputFile:Are(Tre),outputFileSync:xre}});var nD=p((wye,tD)=>{"use strict";var{stringify:Ire}=hm(),{outputFile:Rre}=_m();async function kre(e,t,n={}){let r=Ire(t,n);await Rre(e,r,n)}tD.exports=kre});var sD=p((bye,rD)=>{"use strict";var{stringify:Dre}=hm(),{outputFileSync:Nre}=_m();function Lre(e,t,n){let r=Dre(t,n);Nre(e,r,n)}rD.exports=Lre});var aD=p((Sye,iD)=>{"use strict";var Pre=At().fromPromise,ht=Qk();ht.outputJson=Pre(nD());ht.outputJsonSync=sD();ht.outputJSON=ht.outputJson;ht.outputJSONSync=ht.outputJsonSync;ht.writeJSON=ht.writeJson;ht.writeJSONSync=ht.writeJsonSync;ht.readJSON=ht.readJson;ht.readJSONSync=ht.readJsonSync;iD.exports=ht});var mD=p((vye,uD)=>{"use strict";var oD=at(),qre=require("path"),Mre=Xy().copySync,cD=Zi().removeSync,Ore=Zt().mkdirpSync,lD=Wi();function zre(e,t,n){n=n||{};let r=n.overwrite||n.clobber||!1,{srcStat:s}=lD.checkPathsSync(e,t,"move");return lD.checkParentPathsSync(e,s,t,"move"),Ore(qre.dirname(t)),jre(e,t,r)}function jre(e,t,n){if(n)return cD(t),dD(e,t,n);if(oD.existsSync(t))throw new Error("dest already exists.");return dD(e,t,n)}function dD(e,t,n){try{oD.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return Ure(e,t,n)}}function Ure(e,t,n){return Mre(e,t,{overwrite:n,errorOnExist:!0}),cD(e)}uD.exports=zre});var pD=p((Eye,fD)=>{"use strict";fD.exports={moveSync:mD()}});var wD=p((Aye,_D)=>{"use strict";var Bre=at(),Fre=require("path"),Gre=eg().copy,hD=Zi().remove,$re=Zt().mkdirp,Kre=pr().pathExists,yD=Wi();function Vre(e,t,n,r){typeof n=="function"&&(r=n,n={});let s=n.overwrite||n.clobber||!1;yD.checkPaths(e,t,"move",(i,a)=>{if(i)return r(i);let{srcStat:c}=a;yD.checkParentPaths(e,c,t,"move",l=>{if(l)return r(l);$re(Fre.dirname(t),m=>m?r(m):Wre(e,t,s,r))})})}function Wre(e,t,n,r){if(n)return hD(t,s=>s?r(s):gD(e,t,n,r));Kre(t,(s,i)=>s?r(s):i?r(new Error("dest already exists.")):gD(e,t,n,r))}function gD(e,t,n,r){Bre.rename(e,t,s=>s?s.code!=="EXDEV"?r(s):Hre(e,t,n,r):r())}function Hre(e,t,n,r){Gre(e,t,{overwrite:n,errorOnExist:!0},i=>i?r(i):hD(e,r))}_D.exports=Vre});var SD=p((Cye,bD)=>{"use strict";var Yre=At().fromCallback;bD.exports={move:Yre(wD())}});var rg=p((Tye,ng)=>{"use strict";ng.exports=o(o(o(o(o(o(o(o(o(o(o(o({},Vi()),Xy()),eg()),Sk()),$k()),aD()),Zt()),pD()),SD()),_m()),pr()),Zi());var vD=require("fs");Object.getOwnPropertyDescriptor(vD,"promises")&&Object.defineProperty(ng.exports,"promises",{get(){return vD.promises}})});var TD=p((xye,CD)=>{CD.exports=na;na.default=na;na.stable=ED;na.stableStringify=ED;var Gn=[],gr=[];function na(e,t,n){sg(e,"",[],void 0);var r;try{gr.length===0?r=JSON.stringify(e,t,n):r=JSON.stringify(e,AD(t),n)}catch(i){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Gn.length!==0;){var s=Gn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return r}function sg(e,t,n,r){var s;if(typeof e=="object"&&e!==null){for(s=0;s<n.length;s++)if(n[s]===e){var i=Object.getOwnPropertyDescriptor(r,t);i.get!==void 0?i.configurable?(Object.defineProperty(r,t,{value:"[Circular]"}),Gn.push([r,t,e,i])):gr.push([e,t]):(r[t]="[Circular]",Gn.push([r,t,e]));return}if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)sg(e[s],s,n,e);else{var a=Object.keys(e);for(s=0;s<a.length;s++){var c=a[s];sg(e[c],c,n,e)}}n.pop()}}function Jre(e,t){return e<t?-1:e>t?1:0}function ED(e,t,n){var r=ig(e,"",[],void 0)||e,s;try{gr.length===0?s=JSON.stringify(r,t,n):s=JSON.stringify(r,AD(t),n)}catch(a){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Gn.length!==0;){var i=Gn.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return s}function ig(e,t,n,r){var s;if(typeof e=="object"&&e!==null){for(s=0;s<n.length;s++)if(n[s]===e){var i=Object.getOwnPropertyDescriptor(r,t);i.get!==void 0?i.configurable?(Object.defineProperty(r,t,{value:"[Circular]"}),Gn.push([r,t,e,i])):gr.push([e,t]):(r[t]="[Circular]",Gn.push([r,t,e]));return}try{if(typeof e.toJSON=="function")return}catch(m){return}if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ig(e[s],s,n,e);else{var a={},c=Object.keys(e).sort(Jre);for(s=0;s<c.length;s++){var l=c[s];ig(e[l],l,n,e),a[l]=e[l]}if(r!==void 0)Gn.push([r,t,e]),r[t]=a;else return a}n.pop()}}function AD(e){return e=e!==void 0?e:function(t,n){return n},function(t,n){if(gr.length>0)for(var r=0;r<gr.length;r++){var s=gr[r];if(s[1]===t&&s[0]===n){n="[Circular]",gr.splice(r,1);break}}return e.call(this,t,n)}}});var ID=p((Iye,xD)=>{"use strict";var Qre=TD(),wm=class{constructor({level:t,msg:n,meta:r,tags:s},i){this.level=t,this.meta=r,this.tags=["log",t].concat(i.tags,s);let a={};if(wm.isError(n)&&(this._error=n,a.stack=n.stack,n=n.message),this.msg=n,r&&(typeof r!="object"||Array.isArray(r))&&(r={meta:r}),this.meta=Object.assign({},r||{},i.meta,a),i.dynamicMeta&&typeof i.dynamicMeta=="function"){let c=i.dynamicMeta(this,i);typeof c=="object"&&(this.meta=Object.assign(this.meta,c))}this._replacer=typeof i.replacer=="function"?i.replacer:null}get value(){return Object.assign({_logLevel:this.level,msg:this.msg},this.meta,{_tags:this.tags})}get log(){return this.value}get throw(){let t=this._error||new Error(this.msg);throw t.log=this,t}toJSON(t){return Qre(this.value,this._replacer,t?4:0)}static isError(t){return!!t&&typeof t=="object"&&(t instanceof Error||t.hasOwnProperty("message")&&t.hasOwnProperty("stack"))}};xD.exports=wm});var kD=p((Rye,RD)=>{"use strict";var Xre=require("events"),Zre=ID(),bm=class extends Xre{constructor(t={},n={}){super();this.LambdaLog=bm,this.LogMessage=Zre,this.options=Object.assign({meta:{},tags:[],dynamicMeta:null,debug:!1,dev:!1,silent:![void 0,null,"0","no","false"].includes(process.env.LAMBDALOG_SILENT),replacer:null,logHandler:console},t),this._logLevels=Object.assign({info:"info",warn:"warn",error:"error",debug:function(){return this.options.debug?"debug":!1}},n||{}),this._levels=Object.keys(this._logLevels),this.console=this.options.logHandler,this._levels.forEach(r=>{this[r]=(s,i={},a=[])=>this.log(r,s,i,a)})}log(t,n,r={},s=[]){if(this._levels.indexOf(t)===-1)throw new Error(`"${t}" is not a valid log level`);let i=new this.LogMessage({level:t,msg:n,meta:r,tags:s},this.options),a=this._logLevels[t];return typeof a=="function"&&(a=a.call(this,i)),a?(this.options.silent||this.console[a](i.toJSON(this.options.dev)),this.emit("log",i),i):!1}assert(t,n,r={},s=[]){return t?!1:this.log("error",n,r,s)}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(i=>{t.then(a=>i(this.log("info",a,n,r))).catch(a=>i(this.log("error",a,n,r)))})}};RD.exports=bm});var ND=p((kye,DD)=>{"use strict";var ese=kD(),tse=new ese;DD.exports=tse});var Vs=p((ra,ag)=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.default=nse;function Sm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sm=function(n){return typeof n}:Sm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sm(e)}function nse(e){var t=typeof e=="string"||e instanceof String;if(!t){var n=Sm(e);throw e===null?n="null":n==="object"&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}ag.exports=ra.default;ag.exports.default=ra.default});var vm=p((sa,og)=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.default=rse;function rse(){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]=="undefined"&&(e[n]=t[n]);return e}og.exports=sa.default;og.exports.default=sa.default});var LD=p((ia,cg)=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.default=ase;var sse=ise(Vs());function ise(e){return e&&e.__esModule?e:{default:e}}function Em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Em=function(n){return typeof n}:Em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Em(e)}function ase(e,t){(0,sse.default)(e);var n,r;Em(t)==="object"?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var s=encodeURI(e).split(/%..|./).length-1;return s>=n&&(typeof r=="undefined"||s<=r)}cg.exports=ia.default;cg.exports.default=ia.default});var dg=p((aa,lg)=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.default=dse;var ose=PD(Vs()),cse=PD(vm());function PD(e){return e&&e.__esModule?e:{default:e}}var lse={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function dse(e,t){(0,ose.default)(e),t=(0,cse.default)(t,lse),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(s){return!(s.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(s)||/[\uff01-\uff5e]/.test(s)||/^-|-$/.test(s)||!t.allow_underscores&&/_/.test(s))})}lg.exports=aa.default;lg.exports.default=aa.default});var Am=p((oa,mg)=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.default=ug;var use=mse(Vs());function mse(e){return e&&e.__esModule?e:{default:e}}var qD="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",_r="(".concat(qD,"[.]){3}").concat(qD),fse=new RegExp("^".concat(_r,"$")),Ue="(?:[0-9a-fA-F]{1,4})",pse=new RegExp("^("+"(?:".concat(Ue,":){7}(?:").concat(Ue,"|:)|")+"(?:".concat(Ue,":){6}(?:").concat(_r,"|:").concat(Ue,"|:)|")+"(?:".concat(Ue,":){5}(?::").concat(_r,"|(:").concat(Ue,"){1,2}|:)|")+"(?:".concat(Ue,":){4}(?:(:").concat(Ue,"){0,1}:").concat(_r,"|(:").concat(Ue,"){1,3}|:)|")+"(?:".concat(Ue,":){3}(?:(:").concat(Ue,"){0,2}:").concat(_r,"|(:").concat(Ue,"){1,4}|:)|")+"(?:".concat(Ue,":){2}(?:(:").concat(Ue,"){0,3}:").concat(_r,"|(:").concat(Ue,"){1,5}|:)|")+"(?:".concat(Ue,":){1}(?:(:").concat(Ue,"){0,4}:").concat(_r,"|(:").concat(Ue,"){1,6}|:)|")+"(?::((?::".concat(Ue,"){0,5}:").concat(_r,"|(?::").concat(Ue,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function ug(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,use.default)(e),t=String(t),!t)return ug(e,4)||ug(e,6);if(t==="4"){if(!fse.test(e))return!1;var n=e.split(".").sort(function(r,s){return r-s});return n[3]<=255}return t==="6"?!!pse.test(e):!1}mg.exports=oa.default;mg.exports.default=oa.default});var OD=p((la,pg)=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.default=xse;var hse=ca(Vs()),yse=ca(vm()),fg=ca(LD()),gse=ca(dg()),MD=ca(Am());function ca(e){return e&&e.__esModule?e:{default:e}}var _se={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},wse=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,bse=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,Sse=/^[a-z\d]+$/,vse=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,Ese=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,Ase=/^([\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,Cse=254;function Tse(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 xse(e,t){if((0,hse.default)(e),t=(0,yse.default)(t,_se),t.require_display_name||t.allow_display_name){var n=e.match(wse);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!Tse(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>Cse)return!1;var s=e.split("@"),i=s.pop(),a=i.toLowerCase();if(t.host_blacklist.includes(a))return!1;var c=s.join("@");if(t.domain_specific_validation&&(a==="gmail.com"||a==="googlemail.com")){c=c.toLowerCase();var l=c.split("+")[0];if(!(0,fg.default)(l.replace(/\./g,""),{min:6,max:30}))return!1;for(var m=l.split("."),f=0;f<m.length;f++)if(!Sse.test(m[f]))return!1}if(t.ignore_max_length===!1&&(!(0,fg.default)(c,{max:64})||!(0,fg.default)(i,{max:254})))return!1;if(!(0,gse.default)(i,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,MD.default)(i)){if(!i.startsWith("[")||!i.endsWith("]"))return!1;var g=i.substr(1,i.length-2);if(g.length===0||!(0,MD.default)(g))return!1}}if(c[0]==='"')return c=c.slice(1,c.length-1),t.allow_utf8_local_part?Ase.test(c):vse.test(c);for(var h=t.allow_utf8_local_part?Ese:bse,_=c.split("."),b=0;b<_.length;b++)if(!h.test(_[b]))return!1;return!(t.blacklisted_chars&&c.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}pg.exports=la.default;pg.exports.default=la.default});var BD=p((da,hg)=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.default=jse;var Ise=Cm(Vs()),Rse=Cm(dg()),zD=Cm(Am()),kse=Cm(vm());function Cm(e){return e&&e.__esModule?e:{default:e}}function Dse(e,t){return qse(e)||Pse(e,t)||Lse(e,t)||Nse()}function Nse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lse(e,t){if(!!e){if(typeof e=="string")return jD(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 jD(e,t)}}function jD(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 Pse(e,t){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,s=!1,i=void 0;try{for(var a=e[Symbol.iterator](),c;!(r=(c=a.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(l){s=!0,i=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(s)throw i}}return n}}function qse(e){if(Array.isArray(e))return e}var Mse={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},Ose=/^\[([^\]]+)\](?::([0-9]+))?$/;function zse(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function UD(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||zse(r)&&r.test(e))return!0}return!1}function jse(e,t){if((0,Ise.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,kse.default)(t,Mse),t.validate_length&&e.length>=2083)||!t.allow_fragments&&e.includes("#")||!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,r,s,i,a,c,l,m;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),l=e.split("://"),l.length>1){if(n=l.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;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]===""||(r=l.shift(),r.indexOf(":")>=0&&r.split(":").length>2))return!1;var f=r.split(":"),g=Dse(f,2),h=g[0],_=g[1];if(h===""&&_==="")return!1}i=l.join("@"),c=null,m=null;var b=i.match(Ose);if(b?(s="",m=b[1],c=b[2]||null):(l=i.split(":"),s=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?UD(s,t.host_whitelist):!(!(0,zD.default)(s)&&!(0,Rse.default)(s,t)&&(!m||!(0,zD.default)(m,6))||(s=s||m,t.host_blacklist&&UD(s,t.host_blacklist)))}hg.exports=da.default;hg.exports.default=da.default});var GD=p((Dye,FD)=>{"use strict";var Use=OD(),Bse=BD(),Fse=Am();function yg(e,t){if(!e)throw new Error(t)}var Gse={name:"email",coerce:e=>e.toString(),validate:function(e){yg(Use(e),"must be an email address")}},$se={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){yg(Fse(e),"must be an IP address")}},Kse={name:"url",coerce:e=>e.toString(),validate:function(e){yg(Bse(e,{require_tld:!1}),"must be a URL")}};FD.exports={email:Gse,ipaddress:$se,url:Kse}});var NN=p(DN=>{"use strict";Object.defineProperty(DN,"__esModule",{value:!0})});var Dg=p(kg=>{"use strict";Object.defineProperty(kg,"__esModule",{value:!0});var LN=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)||[]}};kg.default=new LN});var PN=p(Sr=>{"use strict";var poe=Sr&&Sr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sr,"__esModule",{value:!0});Sr.Property=Sr.Config=void 0;var Nm=poe(Dg());function hoe(e={}){return t=>{Nm.default.setConvictMetaForClass(e,t)}}Sr.Config=hoe;function yoe(e){return(t,n)=>{if(typeof e=="object"&&typeof e.format=="undefined"){let r=Nm.default.getTsType(t,n);r&&(e.format=r)}Nm.default.setConvictMetaForProperty(e,t,n),Nm.default.setPropertyForClass(t,n)}}Sr.Property=yoe});var MN=p((Bye,Ng)=>{"use strict";var goe=e=>{let t=!1,n=!1,r=!1;for(let s=0;s<e.length;s++){let i=e[s];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(e=e.slice(0,s)+"-"+e.slice(s),t=!1,r=n,n=!0,s++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(e=e.slice(0,s-1)+"-"+e.slice(s-1),r=n,n=!1,t=!0):(t=i.toLowerCase()===i&&i.toUpperCase()!==i,r=n,n=i.toUpperCase()===i&&i.toLowerCase()!==i)}return e},qN=(e,t)=>{if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);let n=s=>t.pascalCase?s.charAt(0).toUpperCase()+s.slice(1):s;return Array.isArray(e)?e=e.map(s=>s.trim()).filter(s=>s.length).join("-"):e=e.trim(),e.length===0?"":e.length===1?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=goe(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(s,i)=>i.toUpperCase()).replace(/\d+(\w|$)/g,s=>s.toUpperCase()),n(e))};Ng.exports=qN;Ng.exports.default=qN});var zN=p((Fye,ON)=>{"use strict";ON.exports=function(e,t){if(typeof e!="string")throw new TypeError("Expected a string");return t=typeof t=="undefined"?"_":t,e.replace(/([a-z\d])([A-Z])/g,"$1"+t+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+t+"$2").toLowerCase()}});var UN=p((Gye,jN)=>{jN.exports=function(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,n=null,r=null,s=null,i=[];for(let a=0;a<e.length;a++){if(n=r,r=e.charAt(a),r===" "&&!s){n!==" "&&t++;continue}r===s?s=null:(r==="'"||r==='"')&&!s&&(s=r),i[t]||(i[t]=""),i[t]+=r}return i}});var KN=p(($ye,$N)=>{var Lm=MN(),_oe=zN(),Pm=require("path"),woe=UN(),boe=require("util");function BN(e,t){t=Object.assign(Object.create(null),t),e=woe(e);let n=Soe(Object.assign(Object.create(null),t.alias)),r=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,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},t.configuration),s=Object.assign(Object.create(null),t.default),i=t.configObjects||[],a=t.envPrefix,c=r["populate--"],l=c?"--":"_",m=Object.create(null),f=Object.create(null),g=t.__||boe.format,h={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:[]},_=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,b=new RegExp("^--"+r["negation-prefix"]+"(.+)");[].concat(t.array).filter(Boolean).forEach(function(S){let T=S.key||S,N=Object.keys(S).map(function(C){return{boolean:"bools",string:"strings",number:"numbers"}[C]}).filter(Boolean).pop();N&&(h[N][T]=!0),h.arrays[T]=!0,h.keys.push(T)}),[].concat(t.boolean).filter(Boolean).forEach(function(S){h.bools[S]=!0,h.keys.push(S)}),[].concat(t.string).filter(Boolean).forEach(function(S){h.strings[S]=!0,h.keys.push(S)}),[].concat(t.number).filter(Boolean).forEach(function(S){h.numbers[S]=!0,h.keys.push(S)}),[].concat(t.count).filter(Boolean).forEach(function(S){h.counts[S]=!0,h.keys.push(S)}),[].concat(t.normalize).filter(Boolean).forEach(function(S){h.normalize[S]=!0,h.keys.push(S)}),Object.keys(t.narg||{}).forEach(function(S){h.nargs[S]=t.narg[S],h.keys.push(S)}),Object.keys(t.coerce||{}).forEach(function(S){h.coercions[S]=t.coerce[S],h.keys.push(S)}),Array.isArray(t.config)||typeof t.config=="string"?[].concat(t.config).filter(Boolean).forEach(function(S){h.configs[S]=!0}):Object.keys(t.config||{}).forEach(function(S){h.configs[S]=t.config[S]}),tt(t.key,n,t.default,h.arrays),Object.keys(s).forEach(function(S){(h.aliases[S]||[]).forEach(function(T){s[T]=s[S]})});let E=null;va();let D=[],k=Object.assign(Object.create(null),{_:[]}),R={};for(let S=0;S<e.length;S++){let T=e[S],N,C,x,B,J,Ee;if(T!=="--"&&es(T))k._.push(T);else if(T.match(/^--.+=/)||!r["short-option-groups"]&&T.match(/^-.+=/))B=T.match(/^--?([^=]+)=([\s\S]*)$/),te(B[1],h.arrays)?S=yt(S,B[1],e,B[2]):te(B[1],h.nargs)!==!1?S=K(S,B[1],e,B[2]):pe(B[1],B[2]);else if(T.match(b)&&r["boolean-negation"])C=T.match(b)[1],pe(C,te(C,h.arrays)?[!1]:!1);else if(T.match(/^--.+/)||!r["short-option-groups"]&&T.match(/^-[^-]+/))C=T.match(/^--?(.+)/)[1],te(C,h.arrays)?S=yt(S,C,e):te(C,h.nargs)!==!1?S=K(S,C,e):(J=e[S+1],J!==void 0&&(!J.match(/^-/)||J.match(_))&&!te(C,h.bools)&&!te(C,h.counts)||/^(true|false)$/.test(J)?(pe(C,J),S++):pe(C,Yn(C)));else if(T.match(/^-.\..+=/))B=T.match(/^-([^=]+)=([\s\S]*)$/),pe(B[1],B[2]);else if(T.match(/^-.\..+/)&&!T.match(_))J=e[S+1],C=T.match(/^-(.\..+)/)[1],J!==void 0&&!J.match(/^-/)&&!te(C,h.bools)&&!te(C,h.counts)?(pe(C,J),S++):pe(C,Yn(C));else if(T.match(/^-[^-]+/)&&!T.match(_)){x=T.slice(1,-1).split(""),N=!1;for(let he=0;he<x.length;he++){if(J=T.slice(he+2),x[he+1]&&x[he+1]==="="){Ee=T.slice(he+3),C=x[he],te(C,h.arrays)?S=yt(S,C,e,Ee):te(C,h.nargs)!==!1?S=K(S,C,e,Ee):pe(C,Ee),N=!0;break}if(J==="-"){pe(x[he],J);continue}if(/[A-Za-z]/.test(x[he])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(J)){pe(x[he],J),N=!0;break}if(x[he+1]&&x[he+1].match(/\W/)){pe(x[he],J),N=!0;break}else pe(x[he],Yn(x[he]))}C=T.slice(-1)[0],!N&&C!=="-"&&(te(C,h.arrays)?S=yt(S,C,e):te(C,h.nargs)!==!1?S=K(S,C,e):(J=e[S+1],J!==void 0&&(!/^(-|--)[^-]/.test(J)||J.match(_))&&!te(C,h.bools)&&!te(C,h.counts)||/^(true|false)$/.test(J)?(pe(C,J),S++):pe(C,Yn(C))))}else if(T.match(/^-[0-9]$/)&&T.match(_)&&te(T.slice(1),h.bools))C=T.slice(1),pe(C,Yn(C));else if(T==="--"){D=e.slice(S+1);break}else if(r["halt-at-non-option"]){D=e.slice(S);break}else k._.push(en("_",T))}_e(k,!0),_e(k,!1),Y(k),le(),xe(k,h.aliases,s,!0),Te(k),r["set-placeholder-key"]&&Re(k),Object.keys(h.counts).forEach(function(S){ke(k,S.split("."))||pe(S,0)}),c&&D.length&&(k[l]=[]),D.forEach(function(S){k[l].push(S)}),r["camel-case-expansion"]&&r["strip-dashed"]&&Object.keys(k).filter(S=>S!=="--"&&S.includes("-")).forEach(S=>{delete k[S]}),r["strip-aliased"]&&[].concat(...Object.keys(n).map(S=>n[S])).forEach(S=>{r["camel-case-expansion"]&&delete k[S.split(".").map(T=>Lm(T)).join(".")],delete k[S]});function K(S,T,N,C){let x,B=te(T,h.nargs);if(B=isNaN(B)?1:B,B===0)return Fe(C)||(E=Error(g("Argument unexpected for: %s",T))),pe(T,Yn(T)),S;let J=Fe(C)?0:1;if(r["nargs-eats-options"])N.length-(S+1)+J<B&&(E=Error(g("Not enough arguments following: %s",T))),J=B;else{for(x=S+1;x<N.length&&(!N[x].match(/^-[^0-9]/)||N[x].match(_)||es(N[x]));x++)J++;J<B&&(E=Error(g("Not enough arguments following: %s",T)))}let Ee=Math.min(J,B);for(!Fe(C)&&Ee>0&&(pe(T,C),Ee--),x=S+1;x<Ee+S+1;x++)pe(T,N[x]);return S+Ee}function yt(S,T,N,C){let x=[],B=C||N[S+1],J=te(T,h.nargs);if(te(T,h.bools)&&!/^(true|false)$/.test(B))x.push(!0);else if(Fe(B)||Fe(C)&&/^-/.test(B)&&!_.test(B)&&!es(B)){if(s[T]!==void 0){let Ee=s[T];x=Array.isArray(Ee)?Ee:[Ee]}}else{Fe(C)||x.push(Cr(T,C));for(let Ee=S+1;Ee<N.length&&!(!r["greedy-arrays"]&&x.length>0||J&&x.length>=J||(B=N[Ee],/^-/.test(B)&&!_.test(B)&&!es(B)));Ee++)S=Ee,x.push(Cr(T,B))}return(J&&x.length<J||isNaN(J)&&x.length===0)&&(E=Error(g("Not enough arguments following: %s",T))),pe(T,x),S}function pe(S,T){if(/-/.test(S)&&r["camel-case-expansion"]){let x=S.split(".").map(function(B){return Lm(B)}).join(".");Ar(S,x)}let N=Cr(S,T),C=S.split(".");Ne(k,C,N),h.aliases[S]&&h.aliases[S].forEach(function(x){x=x.split("."),Ne(k,x,N)}),C.length>1&&r["dot-notation"]&&(h.aliases[C[0]]||[]).forEach(function(x){x=x.split(".");let B=[].concat(C);B.shift(),x=x.concat(B),(h.aliases[S]||[]).includes(x.join("."))||Ne(k,x,N)}),te(S,h.normalize)&&!te(S,h.arrays)&&[S].concat(h.aliases[S]||[]).forEach(function(B){Object.defineProperty(R,B,{enumerable:!0,get(){return T},set(J){T=typeof J=="string"?Pm.normalize(J):J}})})}function Ar(S,T){h.aliases[S]&&h.aliases[S].length||(h.aliases[S]=[T],m[T]=!0),h.aliases[T]&&h.aliases[T].length||Ar(T,S)}function Cr(S,T){typeof T=="string"&&(T[0]==="'"||T[0]==='"')&&T[T.length-1]===T[0]&&(T=T.substring(1,T.length-1)),(te(S,h.bools)||te(S,h.counts))&&typeof T=="string"&&(T=T==="true");let N=Array.isArray(T)?T.map(function(C){return en(S,C)}):en(S,T);return te(S,h.counts)&&(Fe(N)||typeof N=="boolean")&&(N=Lg),te(S,h.normalize)&&te(S,h.arrays)&&(Array.isArray(T)?N=T.map(Pm.normalize):N=Pm.normalize(T)),N}function en(S,T){return!te(S,h.strings)&&!te(S,h.bools)&&!Array.isArray(T)&&(Qm(T)&&r["parse-numbers"]&&Number.isSafeInteger(Math.floor(T))||!Fe(T)&&te(S,h.numbers))&&(T=Number(T)),T}function Y(S){let T=Object.create(null);xe(T,h.aliases,s),Object.keys(h.configs).forEach(function(N){let C=S[N]||T[N];if(C)try{let x=null,B=Pm.resolve(process.cwd(),C);if(typeof h.configs[N]=="function"){try{x=h.configs[N](B)}catch(J){x=J}if(x instanceof Error){E=x;return}}else x=require(B);de(x)}catch(x){S[N]&&(E=Error(g("Invalid JSON config file: %s",C)))}})}function de(S,T){Object.keys(S).forEach(function(N){let C=S[N],x=T?T+"."+N:N;typeof C=="object"&&C!==null&&!Array.isArray(C)&&r["dot-notation"]?de(C,x):(!ke(k,x.split("."))||te(x,h.arrays)&&r["combine-arrays"])&&pe(x,C)})}function le(){typeof i!="undefined"&&i.forEach(function(S){de(S)})}function _e(S,T){if(typeof a=="undefined")return;let N=typeof a=="string"?a:"";Object.keys(process.env).forEach(function(C){if(N===""||C.lastIndexOf(N,0)===0){let x=C.split("__").map(function(B,J){return J===0&&(B=B.substring(N.length)),Lm(B)});(T&&h.configs[x.join(".")]||!T)&&!ke(S,x)&&pe(x.join("."),process.env[C])}})}function Te(S){let T,N=new Set;Object.keys(S).forEach(function(C){if(!N.has(C)&&(T=te(C,h.coercions),typeof T=="function"))try{let x=en(C,T(S[C]));[].concat(h.aliases[C]||[],C).forEach(B=>{N.add(B),S[B]=x})}catch(x){E=x}})}function Re(S){return h.keys.forEach(T=>{~T.indexOf(".")||typeof S[T]=="undefined"&&(S[T]=void 0)}),S}function xe(S,T,N,C=!1){Object.keys(N).forEach(function(x){ke(S,x.split("."))||(Ne(S,x.split("."),N[x]),C&&(f[x]=!0),(T[x]||[]).forEach(function(B){ke(S,B.split("."))||Ne(S,B.split("."),N[x])}))})}function ke(S,T){let N=S;r["dot-notation"]||(T=[T.join(".")]),T.slice(0,-1).forEach(function(x){N=N[x]||{}});let C=T[T.length-1];return typeof N!="object"?!1:C in N}function Ne(S,T,N){let C=S;r["dot-notation"]||(T=[T.join(".")]),T.slice(0,-1).forEach(function(he,c_){he=GN(he),typeof C=="object"&&C[he]===void 0&&(C[he]={}),typeof C[he]!="object"||Array.isArray(C[he])?(Array.isArray(C[he])?C[he].push({}):C[he]=[C[he],{}],C=C[he][C[he].length-1]):C=C[he]});let x=GN(T[T.length-1]),B=te(T.join("."),h.arrays),J=Array.isArray(N),Ee=r["duplicate-arguments-array"];!Ee&&te(x,h.nargs)&&(Ee=!0,(!Fe(C[x])&&h.nargs[x]===1||Array.isArray(C[x])&&C[x].length===h.nargs[x])&&(C[x]=void 0)),N===Lg?C[x]=Lg(C[x]):Array.isArray(C[x])?Ee&&B&&J?C[x]=r["flatten-duplicate-arrays"]?C[x].concat(N):(Array.isArray(C[x][0])?C[x]:[C[x]]).concat([N]):!Ee&&Boolean(B)===Boolean(J)?C[x]=N:C[x]=C[x].concat([N]):C[x]===void 0&&B?C[x]=J?N:[N]:Ee&&!(C[x]===void 0||te(x,h.counts)||te(x,h.bools))?C[x]=[C[x],N]:C[x]=N}function tt(...S){S.forEach(function(T){Object.keys(T||{}).forEach(function(N){h.aliases[N]||(h.aliases[N]=[].concat(n[N]||[]),h.aliases[N].concat(N).forEach(function(C){if(/-/.test(C)&&r["camel-case-expansion"]){let x=Lm(C);x!==N&&h.aliases[N].indexOf(x)===-1&&(h.aliases[N].push(x),m[x]=!0)}}),h.aliases[N].concat(N).forEach(function(C){if(C.length>1&&/[A-Z]/.test(C)&&r["camel-case-expansion"]){let x=_oe(C,"-");x!==N&&h.aliases[N].indexOf(x)===-1&&(h.aliases[N].push(x),m[x]=!0)}}),h.aliases[N].forEach(function(C){h.aliases[C]=[N].concat(h.aliases[N].filter(function(x){return C!==x}))}))})})}function te(S,T){let N=[].concat(h.aliases[S]||[],S),C=Object.keys(T),x=N.find(B=>C.includes(B));return x?T[x]:!1}function ii(S){return[].concat(Object.keys(h).map(N=>h[N])).some(function(N){return Array.isArray(N)?N.includes(S):N[S]})}function De(S,...T){return[].concat(...T).some(function(C){let x=S.match(C);return x&&ii(x[1])})}function Hn(S){if(S.match(_)||!S.match(/^-[^-]+/))return!1;let T=!0,N,C=S.slice(1).split("");for(let x=0;x<C.length;x++){if(N=S.slice(x+2),!ii(C[x])){T=!1;break}if(C[x+1]&&C[x+1]==="="||N==="-"||/[A-Za-z]/.test(C[x])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||C[x+1]&&C[x+1].match(/\W/))break}return T}function es(S){return r["unknown-options-as-args"]&&Le(S)}function Le(S){return S.match(_)||Hn(S)?!1:!De(S,/^-+([^=]+?)=[\s\S]*$/,b,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Yn(S){return!te(S,h.bools)&&!te(S,h.counts)&&`${S}`in s?s[S]:Ym(Jm(S))}function Ym(S){return{boolean:!0,string:"",number:void 0,array:[]}[S]}function Jm(S){let T="boolean";return te(S,h.strings)?T="string":te(S,h.numbers)?T="number":te(S,h.bools)?T="boolean":te(S,h.arrays)&&(T="array"),T}function Qm(S){return S==null?!1:typeof S=="number"||/^0x[0-9a-f]+$/i.test(S)?!0:S.length>1&&S[0]==="0"?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(S)}function Fe(S){return S===void 0}function va(){Object.keys(h.counts).find(S=>{if(te(S,h.arrays))return E=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",S)),!0;if(te(S,h.nargs))return E=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",S)),!0})}return{argv:Object.assign(R,k),error:E,aliases:Object.assign({},h.aliases),newAliases:Object.assign({},m),defaulted:Object.assign({},f),configuration:r}}function Soe(e){let t=[],n=Object.create(null),r=!0;for(Object.keys(e).forEach(function(s){t.push([].concat(e[s],s))});r;){r=!1;for(let s=0;s<t.length;s++)for(let i=s+1;i<t.length;i++)if(t[s].filter(function(c){return t[i].indexOf(c)!==-1}).length){t[s]=t[s].concat(t[i]),t.splice(i,1),r=!0;break}}return t.forEach(function(s){s=s.filter(function(i,a,c){return c.indexOf(i)===a}),n[s.pop()]=s}),n}function Lg(e){return e!==void 0?e+1:1}function FN(e,t){return BN(e.slice(),t).argv}FN.detailed=function(e,t){return BN(e.slice(),t)};function GN(e){return e==="__proto__"?"___proto___":e}$N.exports=FN});var LL=p((_a,ti)=>{var voe=200,VN="__lodash_hash_undefined__",WN=9007199254740991,Pg="[object Arguments]",Eoe="[object Array]",HN="[object Boolean]",YN="[object Date]",Aoe="[object Error]",qg="[object Function]",JN="[object GeneratorFunction]",qm="[object Map]",QN="[object Number]",Mg="[object Object]",XN="[object Promise]",ZN="[object RegExp]",Mm="[object Set]",eL="[object String]",tL="[object Symbol]",Og="[object WeakMap]",nL="[object ArrayBuffer]",Om="[object DataView]",rL="[object Float32Array]",sL="[object Float64Array]",iL="[object Int8Array]",aL="[object Int16Array]",oL="[object Int32Array]",cL="[object Uint8Array]",lL="[object Uint8ClampedArray]",dL="[object Uint16Array]",uL="[object Uint32Array]",Coe=/[\\^$.*+?()[\]{}|]/g,Toe=/\w*$/,xoe=/^\[object .+?Constructor\]$/,Ioe=/^(?:0|[1-9]\d*)$/,Ae={};Ae[Pg]=Ae[Eoe]=Ae[nL]=Ae[Om]=Ae[HN]=Ae[YN]=Ae[rL]=Ae[sL]=Ae[iL]=Ae[aL]=Ae[oL]=Ae[qm]=Ae[QN]=Ae[Mg]=Ae[ZN]=Ae[Mm]=Ae[eL]=Ae[tL]=Ae[cL]=Ae[lL]=Ae[dL]=Ae[uL]=!0;Ae[Aoe]=Ae[qg]=Ae[Og]=!1;var Roe=typeof global=="object"&&global&&global.Object===Object&&global,koe=typeof self=="object"&&self&&self.Object===Object&&self,Kn=Roe||koe||Function("return this")(),mL=typeof _a=="object"&&_a&&!_a.nodeType&&_a,fL=mL&&typeof ti=="object"&&ti&&!ti.nodeType&&ti,Doe=fL&&fL.exports===mL;function Noe(e,t){return e.set(t[0],t[1]),e}function Loe(e,t){return e.add(t),e}function Poe(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function qoe(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}function pL(e,t,n,r){var s=-1,i=e?e.length:0;for(r&&i&&(n=e[++s]);++s<i;)n=t(n,e[s],s,e);return n}function Moe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ooe(e,t){return e==null?void 0:e[t]}function hL(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}function yL(e){var t=-1,n=Array(e.size);return e.forEach(function(r,s){n[++t]=[s,r]}),n}function zg(e,t){return function(n){return e(t(n))}}function gL(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var zoe=Array.prototype,joe=Function.prototype,zm=Object.prototype,jg=Kn["__core-js_shared__"],_L=function(){var e=/[^.]+$/.exec(jg&&jg.keys&&jg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),wL=joe.toString,vr=zm.hasOwnProperty,jm=zm.toString,Uoe=RegExp("^"+wL.call(vr).replace(Coe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bL=Doe?Kn.Buffer:void 0,SL=Kn.Symbol,vL=Kn.Uint8Array,Boe=zg(Object.getPrototypeOf,Object),Foe=Object.create,Goe=zm.propertyIsEnumerable,$oe=zoe.splice,EL=Object.getOwnPropertySymbols,Koe=bL?bL.isBuffer:void 0,Voe=zg(Object.keys,Object),Ug=ei(Kn,"DataView"),ya=ei(Kn,"Map"),Bg=ei(Kn,"Promise"),Fg=ei(Kn,"Set"),Gg=ei(Kn,"WeakMap"),ga=ei(Object,"create"),Woe=Zr(Ug),Hoe=Zr(ya),Yoe=Zr(Bg),Joe=Zr(Fg),Qoe=Zr(Gg),AL=SL?SL.prototype:void 0,CL=AL?AL.valueOf:void 0;function Qr(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 Xoe(){this.__data__=ga?ga(null):{}}function Zoe(e){return this.has(e)&&delete this.__data__[e]}function ece(e){var t=this.__data__;if(ga){var n=t[e];return n===VN?void 0:n}return vr.call(t,e)?t[e]:void 0}function tce(e){var t=this.__data__;return ga?t[e]!==void 0:vr.call(t,e)}function nce(e,t){var n=this.__data__;return n[e]=ga&&t===void 0?VN:t,this}Qr.prototype.clear=Xoe;Qr.prototype.delete=Zoe;Qr.prototype.get=ece;Qr.prototype.has=tce;Qr.prototype.set=nce;function Vn(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 rce(){this.__data__=[]}function sce(e){var t=this.__data__,n=Um(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$oe.call(t,n,1),!0}function ice(e){var t=this.__data__,n=Um(t,e);return n<0?void 0:t[n][1]}function ace(e){return Um(this.__data__,e)>-1}function oce(e,t){var n=this.__data__,r=Um(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Vn.prototype.clear=rce;Vn.prototype.delete=sce;Vn.prototype.get=ice;Vn.prototype.has=ace;Vn.prototype.set=oce;function Xs(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 cce(){this.__data__={hash:new Qr,map:new(ya||Vn),string:new Qr}}function lce(e){return Bm(this,e).delete(e)}function dce(e){return Bm(this,e).get(e)}function uce(e){return Bm(this,e).has(e)}function mce(e,t){return Bm(this,e).set(e,t),this}Xs.prototype.clear=cce;Xs.prototype.delete=lce;Xs.prototype.get=dce;Xs.prototype.has=uce;Xs.prototype.set=mce;function Zs(e){this.__data__=new Vn(e)}function fce(){this.__data__=new Vn}function pce(e){return this.__data__.delete(e)}function hce(e){return this.__data__.get(e)}function yce(e){return this.__data__.has(e)}function gce(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!ya||r.length<voe-1)return r.push([e,t]),this;n=this.__data__=new Xs(r)}return n.set(e,t),this}Zs.prototype.clear=fce;Zs.prototype.delete=pce;Zs.prototype.get=hce;Zs.prototype.has=yce;Zs.prototype.set=gce;function _ce(e,t){var n=Vg(e)||Fce(e)?Moe(e.length,String):[],r=n.length,s=!!r;for(var i in e)(t||vr.call(e,i))&&!(s&&(i=="length"||zce(i,r)))&&n.push(i);return n}function TL(e,t,n){var r=e[t];(!(vr.call(e,t)&&kL(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Um(e,t){for(var n=e.length;n--;)if(kL(e[n][0],t))return n;return-1}function wce(e,t){return e&&xL(t,Wg(t),e)}function $g(e,t,n,r,s,i,a){var c;if(r&&(c=i?r(e,s,i,a):r(e)),c!==void 0)return c;if(!Fm(e))return e;var l=Vg(e);if(l){if(c=qce(e),!t)return Nce(e,c)}else{var m=Xr(e),f=m==qg||m==JN;if($ce(e))return Cce(e,t);if(m==Mg||m==Pg||f&&!i){if(hL(e))return i?e:{};if(c=Mce(f?{}:e),!t)return Lce(e,wce(c,e))}else{if(!Ae[m])return i?e:{};c=Oce(e,m,$g,t)}}a||(a=new Zs);var g=a.get(e);if(g)return g;if(a.set(e,c),!l)var h=n?Pce(e):Wg(e);return Poe(h||e,function(_,b){h&&(b=_,_=e[b]),TL(c,b,$g(_,t,n,r,b,e,a))}),c}function bce(e){return Fm(e)?Foe(e):{}}function Sce(e,t,n){var r=t(e);return Vg(e)?r:qoe(r,n(e))}function vce(e){return jm.call(e)}function Ece(e){if(!Fm(e)||Uce(e))return!1;var t=NL(e)||hL(e)?Uoe:xoe;return t.test(Zr(e))}function Ace(e){if(!RL(e))return Voe(e);var t=[];for(var n in Object(e))vr.call(e,n)&&n!="constructor"&&t.push(n);return t}function Cce(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Kg(e){var t=new e.constructor(e.byteLength);return new vL(t).set(new vL(e)),t}function Tce(e,t){var n=t?Kg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function xce(e,t,n){var r=t?n(yL(e),!0):yL(e);return pL(r,Noe,new e.constructor)}function Ice(e){var t=new e.constructor(e.source,Toe.exec(e));return t.lastIndex=e.lastIndex,t}function Rce(e,t,n){var r=t?n(gL(e),!0):gL(e);return pL(r,Loe,new e.constructor)}function kce(e){return CL?Object(CL.call(e)):{}}function Dce(e,t){var n=t?Kg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Nce(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function xL(e,t,n,r){n||(n={});for(var s=-1,i=t.length;++s<i;){var a=t[s],c=r?r(n[a],e[a],a,n,e):void 0;TL(n,a,c===void 0?e[a]:c)}return n}function Lce(e,t){return xL(e,IL(e),t)}function Pce(e){return Sce(e,Wg,IL)}function Bm(e,t){var n=e.__data__;return jce(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ei(e,t){var n=Ooe(e,t);return Ece(n)?n:void 0}var IL=EL?zg(EL,Object):Wce,Xr=vce;(Ug&&Xr(new Ug(new ArrayBuffer(1)))!=Om||ya&&Xr(new ya)!=qm||Bg&&Xr(Bg.resolve())!=XN||Fg&&Xr(new Fg)!=Mm||Gg&&Xr(new Gg)!=Og)&&(Xr=function(e){var t=jm.call(e),n=t==Mg?e.constructor:void 0,r=n?Zr(n):void 0;if(r)switch(r){case Woe:return Om;case Hoe:return qm;case Yoe:return XN;case Joe:return Mm;case Qoe:return Og}return t});function qce(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&vr.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Mce(e){return typeof e.constructor=="function"&&!RL(e)?bce(Boe(e)):{}}function Oce(e,t,n,r){var s=e.constructor;switch(t){case nL:return Kg(e);case HN:case YN:return new s(+e);case Om:return Tce(e,r);case rL:case sL:case iL:case aL:case oL:case cL:case lL:case dL:case uL:return Dce(e,r);case qm:return xce(e,r,n);case QN:case eL:return new s(e);case ZN:return Ice(e);case Mm:return Rce(e,r,n);case tL:return kce(e)}}function zce(e,t){return t=t==null?WN:t,!!t&&(typeof e=="number"||Ioe.test(e))&&e>-1&&e%1==0&&e<t}function jce(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Uce(e){return!!_L&&_L in e}function RL(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||zm;return e===n}function Zr(e){if(e!=null){try{return wL.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Bce(e){return $g(e,!0,!0)}function kL(e,t){return e===t||e!==e&&t!==t}function Fce(e){return Gce(e)&&vr.call(e,"callee")&&(!Goe.call(e,"callee")||jm.call(e)==Pg)}var Vg=Array.isArray;function DL(e){return e!=null&&Kce(e.length)&&!NL(e)}function Gce(e){return Vce(e)&&DL(e)}var $ce=Koe||Hce;function NL(e){var t=Fm(e)?jm.call(e):"";return t==qg||t==JN}function Kce(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=WN}function Fm(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Vce(e){return!!e&&typeof e=="object"}function Wg(e){return DL(e)?_ce(e):Ace(e)}function Wce(){return[]}function Hce(){return!1}ti.exports=Bce});var GL=p((Kye,FL)=>{"use strict";var Yce=require("fs"),Jce=KN(),ni=LL();function Er(e,t){if(!e)throw new Error(t)}function PL(e){return Number.isInteger(e)&&e>=0&&e<=65535}function Hg(e){return String(e).includes("\\\\.\\pipe\\")}var wa={"*":function(){},int:function(e){Er(Number.isInteger(e),"must be an integer")},nat:function(e){Er(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){Er(PL(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){Er(Hg(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){Hg(e)||Er(PL(e),"must be a windows named pipe or a number within range 0 - 65535")}};wa.integer=wa.int;var Yg=new Map,Jg={"*":JSON.parse},Qce="strict",qL="warn";function ML(e,t){let n=Object.keys(e),r,s=[];for(;n.length;){r=n.shift();let a=ri(e,r);if(typeof a=="object"&&!Array.isArray(a)&&a!=null){if(t)if("_cvtProperties"in a)a=a._cvtProperties,r=r+"._cvtProperties";else{s.push([r,a]);continue}let c=Object.keys(a);if(c.length>0){c.forEach(function(l){n.push(r+"."+l)});continue}}s.push([r,a])}let i={};return s.forEach(function(a){let c=a[0];t&&(c=c.replace(/\._cvtProperties/g,""));let l=a[1];i[c]=l}),i}function Xce(e,t,n){let r={undeclared:[],invalid_type:[],missing:[]},s=ML(e),i=ML(t._cvtProperties,!0);return Object.keys(i).forEach(function(a){let c=i[a],l=s[a];if(!(a in s))try{if(typeof c.default=="object"&&!Array.isArray(c.default))l=ri(e,a);else throw new Error("missing")}catch(m){let f=new Error("configuration param '"+a+"' missing from config, did you override its parent?");r.missing.push(f);return}if(delete s[a],(c.format==="object"||typeof c.default=="object")&&Object.keys(s).filter(function(m){return m.lastIndexOf(a+".",0)===0}).forEach(function(m){delete s[m]}),!(typeof c.default=="undefined"&&l===c.default))try{c._format(l)}catch(m){r.invalid_type.push(m)}}),n&&Object.keys(s).forEach(function(a){let c=new Error("configuration param '"+a+"' not declared in the schema");r.undeclared.push(c)}),r}function Zce(e,t){Er(e.indexOf(t)!==-1,"must be one of the possible values: "+JSON.stringify(e))}var Qg={Object,Array,String,Number,Boolean,RegExp},OL=Object.keys(Qg),ele=OL.map(function(e){return Qg[e]});function zL(e,t,n,r,s,i,a){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(f){zL(f,t[f],n[e]._cvtProperties,r+"."+f,s,i,a)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let c=ni(t);if(n[e]=c,c.env&&(s[c.env]||(s[c.env]=[]),s[c.env].push(r)),c.arg){if(i[c.arg])throw new Error("'"+r+"' reuses a command-line argument: "+c.arg);i[c.arg]=r}c.sensitive===!0&&a.add(r);let l=c.format,m;if(ele.indexOf(l)>=0||OL.indexOf(l)>=0){let f=typeof l=="string"?Qg[l]:l;m=function(g){Er(Object.prototype.toString.call(g)==Object.prototype.toString.call(new f),"must be of type "+f.name)},c.format=f.name.toLowerCase()}else if(typeof l=="string"){if(!wa[l])throw new Error("'"+r+"' uses an unknown format type: "+l);m=wa[l]}else if(Array.isArray(l))m=Zce.bind(null,l);else if(typeof l=="function")m=l;else if(l&&typeof l!="function")throw new Error("'"+r+"': `format` must be a function or a known format type.");if(!m&&!l){let f=Object.prototype.toString.call(c.default);m=function(g){Er(Object.prototype.toString.call(g)==f," should be of type "+f.replace(/\[.* |]/g,""))}}c._format=function(f){if(!(this.nullable&&f===null))try{m(f,this)}catch(g){throw g.fullName=r,g.value=f,g}}}function Xg(e){let t=e.getEnv();Object.keys(e._env).forEach(function(n){t[n]!==void 0&&e._env[n].forEach(function(s){e.set(s,t[n])})})}function Zg(e){let t=Jce(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 jL(e,t,n){Object.keys(e._cvtProperties).forEach(function(r){let s=e._cvtProperties[r];if(s._cvtProperties){let i=t[r]||{};jL(s,i,n),t[r]=i}else t[r]=t_(r,ni(s.default),e,n)})}function UL(e){return typeof e=="object"&&e!==null}function e_(e,t,n){Object.keys(e).forEach(function(r){Array.isArray(e[r])||!UL(e[r])||!n||n.format==="object"?t[r]=t_(r,e[r],n):(UL(t[r])||(t[r]={}),e_(e[r],t[r],n._cvtProperties[r]))})}function tle(e,t){let n=t.split("."),r=e;for(;n.length>0;){let s=n.shift();if(r&&r._cvtProperties&&r._cvtProperties[s])r=r._cvtProperties[s];else{r=null;break}}return r}function nle(e,t){let n=tle(e,t);return n==null?null:typeof n.format=="string"?n.format:n.default!=null?typeof n.default:null}function t_(e,t,n,r){let s=nle(n,e);if(typeof t=="string"){if(Yg.has(s))return Yg.get(s)(t,r,e);switch(s){case"port":case"nat":case"integer":case"int":t=parseInt(t,10);break;case"port_or_windows_named_pipe":t=Hg(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 BL(e){let t=e.split("."),n=t.length>1?t.pop():"";return(Jg[n]||Jg["*"])(Yce.readFileSync(e,"utf-8"))}function ri(e,t,n){if(t){let r=t.split(".");for(;r.length;){let s=r.shift();if(n&&e[s]==null)e[s]={},e=e[s];else if(s in e)e=e[s];else throw new Error("cannot find configuration param '"+t+"'")}}return e}var ba=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 ni(this._instance)},toString:function(){let s=ni(this._instance);return this._sensitive.forEach(function(i){let a=i.split("."),c=a.pop(),l=a.join("."),m=ri(s,l);m[c]="[Sensitive]"}),JSON.stringify(s,null,2)},getSchema:function(){return JSON.parse(JSON.stringify(this._schema))},getSchemaString:function(){return JSON.stringify(this._schema,null,2)},get:function(s){let i=ri(this._instance,s);return ni(i)},default:function(s){s=s.split(".").join("._cvtProperties.")+".default";let i=ri(this._schema._cvtProperties,s);return ni(i)},reset:function(s){this.set(s,this.default(s))},has:function(s){try{return typeof this.get(s)!="undefined"}catch(i){return!1}},set:function(s,i){i=t_(s,i,this._schema,this);let a=s.split("."),c=a.pop(),l=a.join(".");if(!(l=="__proto__"||l=="constructor"||l=="prototype")){let m=ri(this._instance,l,!0);m[c]=i}return this},load:function(s){return e_(s,this._instance,this._schema),Xg(r),Zg(r),this},loadFile:function(s){let i=this;return Array.isArray(s)||(s=[s]),s.forEach(function(a){let c=BL(a);c&&e_(c,i._instance,i._schema)}),Xg(r),Zg(r),this},validate:function(s){if(s=s||{},s.allowed=s.allowed||qL,s.output&&typeof s.output!="function")throw new Error("options.output is optionnal and must be a function.");let i=s.output||global.console.log,a=Xce(this._instance,this._schema,s.allowed);if(a.invalid_type.length+a.undeclared.length+a.missing.length){let c=this._sensitive,l=function(b){let E="";for(let D=0;D<b.length;D++){E.length&&(E+=`
29
+ `);let k=b[D];k.fullName&&(E+=k.fullName+": "),k.message&&(E+=k.message),k.value&&!c.has(k.fullName)&&(E+=": value was "+JSON.stringify(k.value))}return E},m=l(a.invalid_type),f=l(a.undeclared),g=l(a.missing),h=[m,g];if(s.allowed===qL&&f.length){let b="Warning:";if(process.stdout.isTTY){let E="",D="";b=E+b+D}i(b+" "+f)}else s.allowed===Qce&&h.push(f);let _=h.filter(function(b){return b.length}).join(`
30
+ `);if(_.length)throw new Error(_)}return this}};return typeof t=="string"?r._def=BL(t):r._def=t,r._schema={_cvtProperties:{}},r._env={},r._argv={},r._sensitive=new Set,Object.keys(r._def).forEach(function(s){zL(s,r._def[s],r._schema._cvtProperties,s,r._env,r._argv,r._sensitive)}),r._instance={},jL(r._schema,r._instance,r),Xg(r),Zg(r),r};ba.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.");wa[e]=t,n&&Yg.set(e,n)};ba.addFormats=function(e){Object.keys(e).forEach(function(t){ba.addFormat(t,e[t].validate,e[t].coerce)})};ba.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");Jg[r]=t.parse})})};FL.exports=ba});var KL=p(si=>{"use strict";var Gm=si&&si.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(si,"__esModule",{value:!0});si.TSConvict=void 0;var Cn=Gm(Dg()),n_=Gm(GL()),rle=Gm(require("fs")),sle=Gm(require("path")),$L=class{constructor(t){if(this.opts={},!Cn.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let n=Cn.default.getConvictMetaForClass(t);n!==null&&(typeof n.parser!="undefined"&&n_.default.addParser(n.parser),typeof n.formats!="undefined"&&n_.default.addFormats(n.formats),this.opts=n),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=n_.default(this.schema)}load(t=null){let n=null;if(typeof this.opts.file!="undefined"&&rle.default.existsSync(sle.default.resolve(this.opts.file))&&(n=this.opts.file),typeof t=="string"||Array.isArray(t)){let i;Array.isArray(t)?i=t:i=[t],n!==null&&i.unshift(n),this.client.loadFile(i)}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 s=this.client.getProperties();return this.applyDataToModel(this.baseModel,s)}getSchemaFor(t){let n={};for(let r of Cn.default.getClassProperties(t)){let s=Cn.default.getConvictMetaForProperty(t,r);if(Cn.default.isConstructor(s)&&Cn.default.isConfigClass(s))try{t[r]=new s,n[r]=this.getSchemaFor(t[r])}catch(i){throw console.error(i),new Error("Could not make a new class of "+s)}else n[r]=s}return n}applyDataToModel(t,n){for(let r of Cn.default.getClassProperties(t)){let s=Cn.default.getConvictMetaForProperty(t,r);Cn.default.isConstructor(s)&&Cn.default.isConfigClass(s)?this.applyDataToModel(t[r],n[r]||{}):r in n&&(t[r]=n[r])}return t}};si.TSConvict=$L});var $m=p(Wn=>{"use strict";var ile=Wn&&Wn.__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]}),r_=Wn&&Wn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ile(t,e,n)};Object.defineProperty(Wn,"__esModule",{value:!0});r_(NN(),Wn);r_(PN(),Wn);r_(KL(),Wn)});sP(exports,{handler:()=>JL});W_().install();var H_;(function(e){(function(t){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=s(e);typeof n.Reflect=="undefined"?n.Reflect=e:r=s(n.Reflect,r),t(r);function s(i,a){return function(c,l){typeof i[c]!="function"&&Object.defineProperty(i,c,{configurable:!0,writable:!0,value:l}),a&&a(c,l)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",i=r&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!a&&!c,m={create:a?function(){return Xm(Object.create(null))}:c?function(){return Xm({__proto__:null})}:function(){return Xm({})},has:l?function(A,I){return n.call(A,I)}:function(A,I){return I in A},get:l?function(A,I){return n.call(A,I)?A[I]:void 0}:function(A,I){return A[I]}},f=Object.getPrototypeOf(Function),g=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",h=!g&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:c_(),_=!g&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:QL(),b=!g&&typeof WeakMap=="function"?WeakMap:XL(),E=new b;function D(A,I,P,O){if(De(P)){if(!va(A))throw new TypeError;if(!T(I))throw new TypeError;return de(A,I)}else{if(!va(A))throw new TypeError;if(!Le(I))throw new TypeError;if(!Le(O)&&!De(O)&&!Hn(O))throw new TypeError;return Hn(O)&&(O=void 0),P=Fe(P),le(A,I,P,O)}}t("decorate",D);function k(A,I){function P(O,V){if(!Le(O))throw new TypeError;if(!De(V)&&!N(V))throw new TypeError;Ne(A,I,O,V)}return P}t("metadata",k);function R(A,I,P,O){if(!Le(P))throw new TypeError;return De(O)||(O=Fe(O)),Ne(A,I,P,O)}t("defineMetadata",R);function K(A,I,P){if(!Le(I))throw new TypeError;return De(P)||(P=Fe(P)),Te(A,I,P)}t("hasMetadata",K);function yt(A,I,P){if(!Le(I))throw new TypeError;return De(P)||(P=Fe(P)),Re(A,I,P)}t("hasOwnMetadata",yt);function pe(A,I,P){if(!Le(I))throw new TypeError;return De(P)||(P=Fe(P)),xe(A,I,P)}t("getMetadata",pe);function Ar(A,I,P){if(!Le(I))throw new TypeError;return De(P)||(P=Fe(P)),ke(A,I,P)}t("getOwnMetadata",Ar);function Cr(A,I){if(!Le(A))throw new TypeError;return De(I)||(I=Fe(I)),tt(A,I)}t("getMetadataKeys",Cr);function en(A,I){if(!Le(A))throw new TypeError;return De(I)||(I=Fe(I)),te(A,I)}t("getOwnMetadataKeys",en);function Y(A,I,P){if(!Le(I))throw new TypeError;De(P)||(P=Fe(P));var O=_e(I,P,!1);if(De(O)||!O.delete(A))return!1;if(O.size>0)return!0;var V=E.get(I);return V.delete(P),V.size>0||E.delete(I),!0}t("deleteMetadata",Y);function de(A,I){for(var P=A.length-1;P>=0;--P){var O=A[P],V=O(I);if(!De(V)&&!Hn(V)){if(!T(V))throw new TypeError;I=V}}return I}function le(A,I,P,O){for(var V=A.length-1;V>=0;--V){var We=A[V],ie=We(I,P,O);if(!De(ie)&&!Hn(ie)){if(!Le(ie))throw new TypeError;O=ie}}return O}function _e(A,I,P){var O=E.get(A);if(De(O)){if(!P)return;O=new h,E.set(A,O)}var V=O.get(I);if(De(V)){if(!P)return;V=new h,O.set(I,V)}return V}function Te(A,I,P){var O=Re(A,I,P);if(O)return!0;var V=he(I);return Hn(V)?!1:Te(A,V,P)}function Re(A,I,P){var O=_e(I,P,!1);return De(O)?!1:Jm(O.has(A))}function xe(A,I,P){var O=Re(A,I,P);if(O)return ke(A,I,P);var V=he(I);if(!Hn(V))return xe(A,V,P)}function ke(A,I,P){var O=_e(I,P,!1);if(!De(O))return O.get(A)}function Ne(A,I,P,O){var V=_e(P,O,!0);V.set(A,I)}function tt(A,I){var P=te(A,I),O=he(A);if(O===null)return P;var V=tt(O,I);if(V.length<=0)return P;if(P.length<=0)return V;for(var We=new _,ie=[],ae=0,Q=P;ae<Q.length;ae++){var ye=Q[ae],ge=We.has(ye);ge||(We.add(ye),ie.push(ye))}for(var Jn=0,l_=V;Jn<l_.length;Jn++){var ye=l_[Jn],ge=We.has(ye);ge||(We.add(ye),ie.push(ye))}return ie}function te(A,I){var P=[],O=_e(A,I,!1);if(De(O))return P;for(var V=O.keys(),We=x(V),ie=0;;){var ae=J(We);if(!ae)return P.length=ie,P;var Q=B(ae);try{P[ie]=Q}catch(ye){try{Ee(We)}finally{throw ye}}ie++}}function ii(A){if(A===null)return 1;switch(typeof A){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return A===null?1:6;default:return 6}}function De(A){return A===void 0}function Hn(A){return A===null}function es(A){return typeof A=="symbol"}function Le(A){return typeof A=="object"?A!==null:typeof A=="function"}function Yn(A,I){switch(ii(A)){case 0:return A;case 1:return A;case 2:return A;case 3:return A;case 4:return A;case 5:return A}var P=I===3?"string":I===5?"number":"default",O=C(A,s);if(O!==void 0){var V=O.call(A,P);if(Le(V))throw new TypeError;return V}return Ym(A,P==="default"?"number":P)}function Ym(A,I){if(I==="string"){var P=A.toString;if(S(P)){var O=P.call(A);if(!Le(O))return O}var V=A.valueOf;if(S(V)){var O=V.call(A);if(!Le(O))return O}}else{var V=A.valueOf;if(S(V)){var O=V.call(A);if(!Le(O))return O}var We=A.toString;if(S(We)){var O=We.call(A);if(!Le(O))return O}}throw new TypeError}function Jm(A){return!!A}function Qm(A){return""+A}function Fe(A){var I=Yn(A,3);return es(I)?I:Qm(I)}function va(A){return Array.isArray?Array.isArray(A):A instanceof Object?A instanceof Array:Object.prototype.toString.call(A)==="[object Array]"}function S(A){return typeof A=="function"}function T(A){return typeof A=="function"}function N(A){switch(ii(A)){case 3:return!0;case 4:return!0;default:return!1}}function C(A,I){var P=A[I];if(P!=null){if(!S(P))throw new TypeError;return P}}function x(A){var I=C(A,i);if(!S(I))throw new TypeError;var P=I.call(A);if(!Le(P))throw new TypeError;return P}function B(A){return A.value}function J(A){var I=A.next();return I.done?!1:I}function Ee(A){var I=A.return;I&&I.call(A)}function he(A){var I=Object.getPrototypeOf(A);if(typeof A!="function"||A===f||I!==f)return I;var P=A.prototype,O=P&&Object.getPrototypeOf(P);if(O==null||O===Object.prototype)return I;var V=O.constructor;return typeof V!="function"||V===A?I:V}function c_(){var A={},I=[],P=function(){function ie(ae,Q,ye){this._index=0,this._keys=ae,this._values=Q,this._selector=ye}return ie.prototype["@@iterator"]=function(){return this},ie.prototype[i]=function(){return this},ie.prototype.next=function(){var ae=this._index;if(ae>=0&&ae<this._keys.length){var Q=this._selector(this._keys[ae],this._values[ae]);return ae+1>=this._keys.length?(this._index=-1,this._keys=I,this._values=I):this._index++,{value:Q,done:!1}}return{value:void 0,done:!0}},ie.prototype.throw=function(ae){throw this._index>=0&&(this._index=-1,this._keys=I,this._values=I),ae},ie.prototype.return=function(ae){return this._index>=0&&(this._index=-1,this._keys=I,this._values=I),{value:ae,done:!0}},ie}();return function(){function ie(){this._keys=[],this._values=[],this._cacheKey=A,this._cacheIndex=-2}return Object.defineProperty(ie.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ie.prototype.has=function(ae){return this._find(ae,!1)>=0},ie.prototype.get=function(ae){var Q=this._find(ae,!1);return Q>=0?this._values[Q]:void 0},ie.prototype.set=function(ae,Q){var ye=this._find(ae,!0);return this._values[ye]=Q,this},ie.prototype.delete=function(ae){var Q=this._find(ae,!1);if(Q>=0){for(var ye=this._keys.length,ge=Q+1;ge<ye;ge++)this._keys[ge-1]=this._keys[ge],this._values[ge-1]=this._values[ge];return this._keys.length--,this._values.length--,ae===this._cacheKey&&(this._cacheKey=A,this._cacheIndex=-2),!0}return!1},ie.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=A,this._cacheIndex=-2},ie.prototype.keys=function(){return new P(this._keys,this._values,O)},ie.prototype.values=function(){return new P(this._keys,this._values,V)},ie.prototype.entries=function(){return new P(this._keys,this._values,We)},ie.prototype["@@iterator"]=function(){return this.entries()},ie.prototype[i]=function(){return this.entries()},ie.prototype._find=function(ae,Q){return this._cacheKey!==ae&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=ae)),this._cacheIndex<0&&Q&&(this._cacheIndex=this._keys.length,this._keys.push(ae),this._values.push(void 0)),this._cacheIndex},ie}();function O(ie,ae){return ie}function V(ie,ae){return ae}function We(ie,ae){return[ie,ae]}}function QL(){return function(){function A(){this._map=new h}return Object.defineProperty(A.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),A.prototype.has=function(I){return this._map.has(I)},A.prototype.add=function(I){return this._map.set(I,I),this},A.prototype.delete=function(I){return this._map.delete(I)},A.prototype.clear=function(){this._map.clear()},A.prototype.keys=function(){return this._map.keys()},A.prototype.values=function(){return this._map.values()},A.prototype.entries=function(){return this._map.entries()},A.prototype["@@iterator"]=function(){return this.keys()},A.prototype[i]=function(){return this.keys()},A}()}function XL(){var A=16,I=m.create(),P=O();return function(){function Q(){this._key=O()}return Q.prototype.has=function(ye){var ge=V(ye,!1);return ge!==void 0?m.has(ge,this._key):!1},Q.prototype.get=function(ye){var ge=V(ye,!1);return ge!==void 0?m.get(ge,this._key):void 0},Q.prototype.set=function(ye,ge){var Jn=V(ye,!0);return Jn[this._key]=ge,this},Q.prototype.delete=function(ye){var ge=V(ye,!1);return ge!==void 0?delete ge[this._key]:!1},Q.prototype.clear=function(){this._key=O()},Q}();function O(){var Q;do Q="@@WeakMap@@"+ae();while(m.has(I,Q));return I[Q]=!0,Q}function V(Q,ye){if(!n.call(Q,P)){if(!ye)return;Object.defineProperty(Q,P,{value:m.create()})}return Q[P]}function We(Q,ye){for(var ge=0;ge<ye;++ge)Q[ge]=Math.random()*255|0;return Q}function ie(Q){return typeof Uint8Array=="function"?typeof crypto!="undefined"?crypto.getRandomValues(new Uint8Array(Q)):typeof msCrypto!="undefined"?msCrypto.getRandomValues(new Uint8Array(Q)):We(new Uint8Array(Q),Q):We(new Array(Q),Q)}function ae(){var Q=ie(A);Q[6]=Q[6]&79|64,Q[8]=Q[8]&191|128;for(var ye="",ge=0;ge<A;++ge){var Jn=Q[ge];(ge===4||ge===6||ge===8)&&(ye+="-"),Jn<16&&(ye+="0"),ye+=Jn.toString(16).toLowerCase()}return ye}}function Xm(A){return A.__=void 0,delete A.__,A}})})(H_||(H_={}));var i_=Tn(mt()),a_=Tn(yR()),Sa=Tn(rg()),o_=Tn(ND());var Wm=Tn(GD());function $D(e){return typeof e=="undefined"||e===null}function Vse(e){return typeof e=="object"&&e!==null}function Wse(e){return Array.isArray(e)?e:$D(e)?[]:[e]}function Hse(e,t){var n,r,s,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n<r;n+=1)s=i[n],e[s]=t[s];return e}function Yse(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Jse(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Qse=$D,Xse=Vse,Zse=Wse,eie=Yse,tie=Jse,nie=Hse,Ge={isNothing:Qse,isObject:Xse,toArray:Zse,repeat:eie,isNegativeZero:tie,extend:nie};function KD(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+=`
30
31
 
31
- `+e.mark.snippet),r+" "+n):r}function oa(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ek(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}oa.prototype=Object.create(Error.prototype);oa.prototype.constructor=oa;oa.prototype.toString=function(t){return this.name+": "+Ek(this,t)};var xt=oa;function ig(e,t,n,r,i){var s="",a="",c=Math.floor(i/2)-1;return r-t>c&&(s=" ... ",t=r-c+s.length),n-r>c&&(a=" ...",n=r+c-a.length),{str:s+e.slice(t,n).replace(/\t/g,"\u2192")+a,pos:r-t+s.length}}function sg(e,t){return Fe.repeat(" ",t-e.length)+e}function kie(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,a=-1;s=n.exec(e.buffer);)i.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var c="",l,m,f=Math.min(e.line+t.linesAfter,i.length).toString().length,g=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)m=ig(e.buffer,r[a-l],i[a-l],e.position-(r[a]-r[a-l]),g),c=Fe.repeat(" ",t.indent)+sg((e.line-l+1).toString(),f)+" | "+m.str+`
32
- `+c;for(m=ig(e.buffer,r[a],i[a],e.position,g),c+=Fe.repeat(" ",t.indent)+sg((e.line+1).toString(),f)+" | "+m.str+`
33
- `,c+=Fe.repeat("-",t.indent+f+3+m.pos)+`^
34
- `,l=1;l<=t.linesAfter&&!(a+l>=i.length);l++)m=ig(e.buffer,r[a+l],i[a+l],e.position-(r[a]-r[a+l]),g),c+=Fe.repeat(" ",t.indent)+sg((e.line+l+1).toString(),f)+" | "+m.str+`
35
- `;return c.replace(/\n$/,"")}var Nie=kie,Pie=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Lie=["scalar","sequence","mapping"];function qie(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function Mie(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(Pie.indexOf(n)===-1)throw new xt('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=qie(t.styleAliases||null),Lie.indexOf(this.kind)===-1)throw new xt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ot=Mie;function Ak(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(s,a){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(i=a)}),n[i]=r}),n}function Oie(){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 ag(e){return this.extend(e)}ag.prototype.extend=function(t){var n=[],r=[];if(t instanceof ot)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 xt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(s){if(!(s instanceof ot))throw new xt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new xt("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 xt("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 ot))throw new xt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ag.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=Ak(i,"implicit"),i.compiledExplicit=Ak(i,"explicit"),i.compiledTypeMap=Oie(i.compiledImplicit,i.compiledExplicit),i};var zie=ag,jie=new ot("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Uie=new ot("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Bie=new ot("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Fie=new zie({explicit:[jie,Uie,Bie]});function Gie(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function $ie(){return null}function Kie(e){return e===null}var Vie=new ot("tag:yaml.org,2002:null",{kind:"scalar",resolve:Gie,construct:$ie,predicate:Kie,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Wie(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 Hie(e){return e==="true"||e==="True"||e==="TRUE"}function Yie(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Jie=new ot("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Wie,construct:Hie,predicate:Yie,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 Qie(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Xie(e){return 48<=e&&e<=55}function Zie(e){return 48<=e&&e<=57}function ese(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(!Qie(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!Xie(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!Zie(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function tse(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 nse(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1==0&&!Fe.isNegativeZero(e)}var rse=new ot("tag:yaml.org,2002:int",{kind:"scalar",resolve:ese,construct:tse,predicate:nse,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"]}}),ise=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function sse(e){return!(e===null||!ise.test(e)||e[e.length-1]==="_")}function ase(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 ose=/^[-+]?[0-9]+e/;function cse(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(Fe.isNegativeZero(e))return"-0.0";return n=e.toString(10),ose.test(n)?n.replace("e",".e"):n}function lse(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!=0||Fe.isNegativeZero(e))}var dse=new ot("tag:yaml.org,2002:float",{kind:"scalar",resolve:sse,construct:ase,predicate:lse,represent:cse,defaultStyle:"lowercase"}),use=Fie.extend({implicit:[Vie,Jie,rse,dse]}),mse=use,Ck=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Tk=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function fse(e){return e===null?!1:Ck.exec(e)!==null||Tk.exec(e)!==null}function pse(e){var t,n,r,i,s,a,c,l=0,m=null,f,g,p;if(t=Ck.exec(e),t===null&&(t=Tk.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],a=+t[5],c=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(f=+t[10],g=+(t[11]||0),m=(f*60+g)*6e4,t[9]==="-"&&(m=-m)),p=new Date(Date.UTC(n,r,i,s,a,c,l)),m&&p.setTime(p.getTime()-m),p}function hse(e){return e.toISOString()}var yse=new ot("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:fse,construct:pse,instanceOf:Date,represent:hse});function gse(e){return e==="<<"||e===null}var _se=new ot("tag:yaml.org,2002:merge",{kind:"scalar",resolve:gse}),og=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
36
- \r`;function wse(e){if(e===null)return!1;var t,n,r=0,i=e.length,s=og;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 bse(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,s=og,a=0,c=[];for(t=0;t<i;t++)t%4==0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(r.charAt(t));return n=i%4*6,n===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):n===18?(c.push(a>>10&255),c.push(a>>2&255)):n===12&&c.push(a>>4&255),new Uint8Array(c)}function Sse(e){var t="",n=0,r,i,s=e.length,a=og;for(r=0;r<s;r++)r%3==0&&r&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[r];return i=s%3,i===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):i===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):i===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function vse(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Ese=new ot("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wse,construct:bse,predicate:vse,represent:Sse}),Ase=Object.prototype.hasOwnProperty,Cse=Object.prototype.toString;function Tse(e){if(e===null)return!0;var t=[],n,r,i,s,a,c=e;for(n=0,r=c.length;n<r;n+=1){if(i=c[n],a=!1,Cse.call(i)!=="[object Object]")return!1;for(s in i)if(Ase.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function xse(e){return e!==null?e:[]}var Ise=new ot("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Tse,construct:xse}),Rse=Object.prototype.toString;function Dse(e){if(e===null)return!0;var t,n,r,i,s,a=e;for(s=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],Rse.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;s[t]=[i[0],r[i[0]]]}return!0}function kse(e){if(e===null)return[];var t,n,r,i,s,a=e;for(s=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),s[t]=[i[0],r[i[0]]];return s}var Nse=new ot("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Dse,construct:kse}),Pse=Object.prototype.hasOwnProperty;function Lse(e){if(e===null)return!0;var t,n=e;for(t in n)if(Pse.call(n,t)&&n[t]!==null)return!1;return!0}function qse(e){return e!==null?e:{}}var Mse=new ot("tag:yaml.org,2002:set",{kind:"mapping",resolve:Lse,construct:qse}),xk=mse.extend({implicit:[yse,_se],explicit:[Ese,Ise,Nse,Mse]}),yr=Object.prototype.hasOwnProperty,wm=1,Ik=2,Rk=3,bm=4,cg=1,Ose=2,Dk=3,zse=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jse=/[\x85\u2028\u2029]/,Use=/[,\[\]\{\}]/,kk=/^(?:!|!!|![a-z\-]+!)$/i,Nk=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Pk(e){return Object.prototype.toString.call(e)}function Cn(e){return e===10||e===13}function Yr(e){return e===9||e===32}function It(e){return e===9||e===32||e===10||e===13}function Vi(e){return e===44||e===91||e===93||e===123||e===125}function Bse(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Fse(e){return e===120?2:e===117?4:e===85?8:0}function Gse(e){return 48<=e&&e<=57?e-48:-1}function Lk(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
37
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function $se(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var qk=new Array(256),Mk=new Array(256);for(var Wi=0;Wi<256;Wi++)qk[Wi]=Lk(Wi)?1:0,Mk[Wi]=Lk(Wi);function Kse(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||xk,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 Ok(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=Nie(n),new xt(t,n)}function $(e,t){throw Ok(e,t)}function Sm(e,t){e.onWarning&&e.onWarning.call(null,Ok(e,t))}var zk={YAML:function(t,n,r){var i,s,a;t.version!==null&&$(t,"duplication of %YAML directive"),r.length!==1&&$(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&$(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&$(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Sm(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,s;r.length!==2&&$(t,"TAG directive accepts exactly two arguments"),i=r[0],s=r[1],kk.test(i)||$(t,"ill-formed tag handle (first argument) of the TAG directive"),yr.call(t.tagMap,i)&&$(t,'there is a previously declared suffix for "'+i+'" tag handle'),Nk.test(s)||$(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(a){$(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function gr(e,t,n,r){var i,s,a,c;if(t<n){if(c=e.input.slice(t,n),r)for(i=0,s=c.length;i<s;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||$(e,"expected valid JSON character");else zse.test(c)&&$(e,"the stream contains non-printable characters");e.result+=c}}function jk(e,t,n,r){var i,s,a,c;for(Fe.isObject(n)||$(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),a=0,c=i.length;a<c;a+=1)s=i[a],yr.call(t,s)||(t[s]=n[s],r[s]=!0)}function Hi(e,t,n,r,i,s,a,c,l){var m,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),m=0,f=i.length;m<f;m+=1)Array.isArray(i[m])&&$(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Pk(i[m])==="[object Object]"&&(i[m]="[object Object]");if(typeof i=="object"&&Pk(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(m=0,f=s.length;m<f;m+=1)jk(e,t,s[m],n);else jk(e,t,s,n);else!e.json&&!yr.call(n,i)&&yr.call(t,i)&&(e.line=a||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,$(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 lg(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++):$(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ue(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Yr(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(Cn(i))for(lg(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&&Sm(e,"deficient indentation"),r}function vm(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||It(n)))}function dg(e,t){t===1?e.result+=" ":t>1&&(e.result+=Fe.repeat(`
38
- `,t-1))}function Vse(e,t,n){var r,i,s,a,c,l,m,f,g=e.kind,p=e.result,_;if(_=e.input.charCodeAt(e.position),It(_)||Vi(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(i=e.input.charCodeAt(e.position+1),It(i)||n&&Vi(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,c=!1;_!==0;){if(_===58){if(i=e.input.charCodeAt(e.position+1),It(i)||n&&Vi(i))break}else if(_===35){if(r=e.input.charCodeAt(e.position-1),It(r))break}else{if(e.position===e.lineStart&&vm(e)||n&&Vi(_))break;if(Cn(_))if(l=e.line,m=e.lineStart,f=e.lineIndent,Ue(e,!1,-1),e.lineIndent>=t){c=!0,_=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=l,e.lineStart=m,e.lineIndent=f;break}}c&&(gr(e,s,a,!1),dg(e,e.line-l),s=a=e.position,c=!1),Yr(_)||(a=e.position+1),_=e.input.charCodeAt(++e.position)}return gr(e,s,a,!1),e.result?!0:(e.kind=g,e.result=p,!1)}function Wse(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(gr(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 Cn(n)?(gr(e,r,i,!0),dg(e,Ue(e,!1,t)),r=i=e.position):e.position===e.lineStart&&vm(e)?$(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);$(e,"unexpected end of the stream within a single quoted scalar")}function Hse(e,t){var n,r,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return gr(e,n,e.position,!0),e.position++,!0;if(c===92){if(gr(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),Cn(c))Ue(e,!1,t);else if(c<256&&qk[c])e.result+=Mk[c],e.position++;else if((a=Fse(c))>0){for(i=a,s=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=Bse(c))>=0?s=(s<<4)+a:$(e,"expected hexadecimal character");e.result+=$se(s),e.position++}else $(e,"unknown escape sequence");n=r=e.position}else Cn(c)?(gr(e,n,r,!0),dg(e,Ue(e,!1,t)),n=r=e.position):e.position===e.lineStart&&vm(e)?$(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}$(e,"unexpected end of the stream within a double quoted scalar")}function Yse(e,t){var n=!0,r,i,s,a=e.tag,c,l=e.anchor,m,f,g,p,_,S=Object.create(null),E,k,D,R;if(R=e.input.charCodeAt(e.position),R===91)f=93,_=!1,c=[];else if(R===123)f=125,_=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),R=e.input.charCodeAt(++e.position);R!==0;){if(Ue(e,!0,t),R=e.input.charCodeAt(e.position),R===f)return e.position++,e.tag=a,e.anchor=l,e.kind=_?"mapping":"sequence",e.result=c,!0;n?R===44&&$(e,"expected the node content, but found ','"):$(e,"missed comma between flow collection entries"),k=E=D=null,g=p=!1,R===63&&(m=e.input.charCodeAt(e.position+1),It(m)&&(g=p=!0,e.position++,Ue(e,!0,t))),r=e.line,i=e.lineStart,s=e.position,Yi(e,t,wm,!1,!0),k=e.tag,E=e.result,Ue(e,!0,t),R=e.input.charCodeAt(e.position),(p||e.line===r)&&R===58&&(g=!0,R=e.input.charCodeAt(++e.position),Ue(e,!0,t),Yi(e,t,wm,!1,!0),D=e.result),_?Hi(e,c,S,k,E,D,r,i,s):g?c.push(Hi(e,null,S,k,E,D,r,i,s)):c.push(E),Ue(e,!0,t),R=e.input.charCodeAt(e.position),R===44?(n=!0,R=e.input.charCodeAt(++e.position)):n=!1}$(e,"unexpected end of the stream within a flow collection")}function Jse(e,t){var n,r,i=cg,s=!1,a=!1,c=t,l=0,m=!1,f,g;if(g=e.input.charCodeAt(e.position),g===124)r=!1;else if(g===62)r=!0;else return!1;for(e.kind="scalar",e.result="";g!==0;)if(g=e.input.charCodeAt(++e.position),g===43||g===45)cg===i?i=g===43?Dk:Ose:$(e,"repeat of a chomping mode identifier");else if((f=Gse(g))>=0)f===0?$(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?$(e,"repeat of an indentation width identifier"):(c=t+f-1,a=!0);else break;if(Yr(g)){do g=e.input.charCodeAt(++e.position);while(Yr(g));if(g===35)do g=e.input.charCodeAt(++e.position);while(!Cn(g)&&g!==0)}for(;g!==0;){for(lg(e),e.lineIndent=0,g=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&g===32;)e.lineIndent++,g=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),Cn(g)){l++;continue}if(e.lineIndent<c){i===Dk?e.result+=Fe.repeat(`
39
- `,s?1+l:l):i===cg&&s&&(e.result+=`
40
- `);break}for(r?Yr(g)?(m=!0,e.result+=Fe.repeat(`
41
- `,s?1+l:l)):m?(m=!1,e.result+=Fe.repeat(`
42
- `,l+1)):l===0?s&&(e.result+=" "):e.result+=Fe.repeat(`
43
- `,l):e.result+=Fe.repeat(`
44
- `,s?1+l:l),s=!0,a=!0,l=0,n=e.position;!Cn(g)&&g!==0;)g=e.input.charCodeAt(++e.position);gr(e,n,e.position,!1)}return!0}function Uk(e,t){var n,r=e.tag,i=e.anchor,s=[],a,c=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,$(e,"tab characters must not be used in indentation")),!(l!==45||(a=e.input.charCodeAt(e.position+1),!It(a))));){if(c=!0,e.position++,Ue(e,!0,-1)&&e.lineIndent<=t){s.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,Yi(e,t,Rk,!1,!0),s.push(e.result),Ue(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)$(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function Qse(e,t,n){var r,i,s,a,c,l,m=e.tag,f=e.anchor,g={},p=Object.create(null),_=null,S=null,E=null,k=!1,D=!1,R;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=g),R=e.input.charCodeAt(e.position);R!==0;){if(!k&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,$(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),s=e.line,(R===63||R===58)&&It(r))R===63?(k&&(Hi(e,g,p,_,S,null,a,c,l),_=S=E=null),D=!0,k=!0,i=!0):k?(k=!1,i=!0):$(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,R=r;else{if(a=e.line,c=e.lineStart,l=e.position,!Yi(e,n,Ik,!1,!0))break;if(e.line===s){for(R=e.input.charCodeAt(e.position);Yr(R);)R=e.input.charCodeAt(++e.position);if(R===58)R=e.input.charCodeAt(++e.position),It(R)||$(e,"a whitespace character is expected after the key-value separator within a block mapping"),k&&(Hi(e,g,p,_,S,null,a,c,l),_=S=E=null),D=!0,k=!1,i=!1,_=e.tag,S=e.result;else if(D)$(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=m,e.anchor=f,!0}else if(D)$(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=m,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(k&&(a=e.line,c=e.lineStart,l=e.position),Yi(e,t,bm,!0,i)&&(k?S=e.result:E=e.result),k||(Hi(e,g,p,_,S,E,a,c,l),_=S=E=null),Ue(e,!0,-1),R=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&R!==0)$(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return k&&Hi(e,g,p,_,S,null,a,c,l),D&&(e.tag=m,e.anchor=f,e.kind="mapping",e.result=g),D}function Xse(e){var t,n=!1,r=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&$(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(r=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):$(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!It(a);)a===33&&(r?$(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),kk.test(i)||$(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Use.test(s)&&$(e,"tag suffix cannot contain flow indicator characters")}s&&!Nk.test(s)&&$(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch(c){$(e,"tag name is malformed: "+s)}return n?e.tag=s:yr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:$(e,'undeclared tag handle "'+i+'"'),!0}function Zse(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&$(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!It(n)&&!Vi(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&$(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function eae(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&&!It(r)&&!Vi(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&$(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),yr.call(e.anchorMap,n)||$(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Ue(e,!0,-1),!0}function Yi(e,t,n,r,i){var s,a,c,l=1,m=!1,f=!1,g,p,_,S,E,k;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=c=bm===n||Rk===n,r&&Ue(e,!0,-1)&&(m=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;Xse(e)||Zse(e);)Ue(e,!0,-1)?(m=!0,c=s,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):c=!1;if(c&&(c=m||i),(l===1||bm===n)&&(wm===n||Ik===n?E=t:E=t+1,k=e.position-e.lineStart,l===1?c&&(Uk(e,k)||Qse(e,k,E))||Yse(e,E)?f=!0:(a&&Jse(e,E)||Wse(e,E)||Hse(e,E)?f=!0:eae(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&$(e,"alias node should not have any properties")):Vse(e,E,wm===n)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(f=c&&Uk(e,k))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&$(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),g=0,p=e.implicitTypes.length;g<p;g+=1)if(S=e.implicitTypes[g],S.resolve(e.result)){e.result=S.construct(e.result),e.tag=S.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(yr.call(e.typeMap[e.kind||"fallback"],e.tag))S=e.typeMap[e.kind||"fallback"][e.tag];else for(S=null,_=e.typeMap.multi[e.kind||"fallback"],g=0,p=_.length;g<p;g+=1)if(e.tag.slice(0,_[g].tag.length)===_[g].tag){S=_[g];break}S||$(e,"unknown tag !<"+e.tag+">"),e.result!==null&&S.kind!==e.kind&&$(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+S.kind+'", not "'+e.kind+'"'),S.resolve(e.result,e.tag)?(e.result=S.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):$(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function tae(e){var t=e.position,n,r,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Ue(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!It(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&$(e,"directive name must not be less than one character in length");a!==0;){for(;Yr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Cn(a));break}if(Cn(a))break;for(n=e.position;a!==0&&!It(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}a!==0&&lg(e),yr.call(zk,r)?zk[r](e,r,i):Sm(e,'unknown document directive "'+r+'"')}if(Ue(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,Ue(e,!0,-1)):s&&$(e,"directives end mark is expected"),Yi(e,e.lineIndent-1,bm,!1,!0),Ue(e,!0,-1),e.checkLineBreaks&&jse.test(e.input.slice(t,e.position))&&Sm(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&vm(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ue(e,!0,-1));return}if(e.position<e.length-1)$(e,"end of the stream or a document separator is expected");else return}function Bk(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
45
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Kse(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,$(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;)tae(n);return n.documents}function nae(e,t,n){t!==null&&typeof t=="object"&&typeof n=="undefined"&&(n=t,t=null);var r=Bk(e,n);if(typeof t!="function")return r;for(var i=0,s=r.length;i<s;i+=1)t(r[i])}function rae(e,t){var n=Bk(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new xt("expected a single document in the stream, but found more")}}var iae=nae,sae=rae,Fk={loadAll:iae,load:sae},Gk=Object.prototype.toString,$k=Object.prototype.hasOwnProperty,ug=65279,aae=9,ca=10,oae=13,cae=32,lae=33,dae=34,mg=35,uae=37,mae=38,fae=39,pae=42,Kk=44,hae=45,Em=58,yae=61,gae=62,_ae=63,wae=64,Vk=91,Wk=93,bae=96,Hk=123,Sae=124,Yk=125,ct={};ct[0]="\\0";ct[7]="\\a";ct[8]="\\b";ct[9]="\\t";ct[10]="\\n";ct[11]="\\v";ct[12]="\\f";ct[13]="\\r";ct[27]="\\e";ct[34]='\\"';ct[92]="\\\\";ct[133]="\\N";ct[160]="\\_";ct[8232]="\\L";ct[8233]="\\P";var vae=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Eae=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Aae(e,t){var n,r,i,s,a,c,l;if(t===null)return{};for(n={},r=Object.keys(t),i=0,s=r.length;i<s;i+=1)a=r[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),l=e.compiledTypeMap.fallback[a],l&&$k.call(l.styleAliases,c)&&(c=l.styleAliases[c]),n[a]=c;return n}function Cae(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 xt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Fe.repeat("0",r-t.length)+t}var Tae=1,la=2;function xae(e){this.schema=e.schema||xk,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Fe.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Aae(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==='"'?la:Tae,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 Jk(e,t){for(var n=Fe.repeat(" ",t),r=0,i=-1,s="",a,c=e.length;r<c;)i=e.indexOf(`
46
- `,r),i===-1?(a=e.slice(r),r=c):(a=e.slice(r,i+1),r=i+1),a.length&&a!==`
47
- `&&(s+=n),s+=a;return s}function fg(e,t){return`
48
- `+Fe.repeat(" ",e.indent*t)}function Iae(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 Am(e){return e===cae||e===aae}function da(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==ug||65536<=e&&e<=1114111}function Qk(e){return da(e)&&e!==ug&&e!==oae&&e!==ca}function Xk(e,t,n){var r=Qk(e),i=r&&!Am(e);return(n?r:r&&e!==Kk&&e!==Vk&&e!==Wk&&e!==Hk&&e!==Yk)&&e!==mg&&!(t===Em&&!i)||Qk(t)&&!Am(t)&&e===mg||t===Em&&i}function Rae(e){return da(e)&&e!==ug&&!Am(e)&&e!==hae&&e!==_ae&&e!==Em&&e!==Kk&&e!==Vk&&e!==Wk&&e!==Hk&&e!==Yk&&e!==mg&&e!==mae&&e!==pae&&e!==lae&&e!==Sae&&e!==yae&&e!==gae&&e!==fae&&e!==dae&&e!==uae&&e!==wae&&e!==bae}function Dae(e){return!Am(e)&&e!==Em}function ua(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 Zk(e){var t=/^\n* /;return t.test(e)}var eN=1,pg=2,tN=3,nN=4,Ji=5;function kae(e,t,n,r,i,s,a,c){var l,m=0,f=null,g=!1,p=!1,_=r!==-1,S=-1,E=Rae(ua(e,0))&&Dae(ua(e,e.length-1));if(t||a)for(l=0;l<e.length;m>=65536?l+=2:l++){if(m=ua(e,l),!da(m))return Ji;E=E&&Xk(m,f,c),f=m}else{for(l=0;l<e.length;m>=65536?l+=2:l++){if(m=ua(e,l),m===ca)g=!0,_&&(p=p||l-S-1>r&&e[S+1]!==" ",S=l);else if(!da(m))return Ji;E=E&&Xk(m,f,c),f=m}p=p||_&&l-S-1>r&&e[S+1]!==" "}return!g&&!p?E&&!a&&!i(e)?eN:s===la?Ji:pg:n>9&&Zk(e)?Ji:a?s===la?Ji:pg:p?nN:tN}function Nae(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===la?'""':"''";if(!e.noCompatMode&&(vae.indexOf(t)!==-1||Eae.test(t)))return e.quotingType===la?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),c=r||e.flowLevel>-1&&n>=e.flowLevel;function l(m){return Iae(e,m)}switch(kae(t,c,e.indent,a,l,e.quotingType,e.forceQuotes&&!r,i)){case eN:return t;case pg:return"'"+t.replace(/'/g,"''")+"'";case tN:return"|"+rN(t,e.indent)+iN(Jk(t,s));case nN:return">"+rN(t,e.indent)+iN(Jk(Pae(t,a),s));case Ji:return'"'+Lae(t)+'"';default:throw new xt("impossible error: invalid scalar style")}}()}function rN(e,t){var n=Zk(e)?String(t):"",r=e[e.length-1]===`
49
- `,i=r&&(e[e.length-2]===`
32
+ `+e.mark.snippet),r+" "+n):r}function ua(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=KD(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ua.prototype=Object.create(Error.prototype);ua.prototype.constructor=ua;ua.prototype.toString=function(t){return this.name+": "+KD(this,t)};var xt=ua;function gg(e,t,n,r,s){var i="",a="",c=Math.floor(s/2)-1;return r-t>c&&(i=" ... ",t=r-c+i.length),n-r>c&&(a=" ...",n=r+c-a.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+a,pos:r-t+i.length}}function _g(e,t){return Ge.repeat(" ",t-e.length)+e}function rie(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],s=[],i,a=-1;i=n.exec(e.buffer);)s.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var c="",l,m,f=Math.min(e.line+t.linesAfter,s.length).toString().length,g=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)m=gg(e.buffer,r[a-l],s[a-l],e.position-(r[a]-r[a-l]),g),c=Ge.repeat(" ",t.indent)+_g((e.line-l+1).toString(),f)+" | "+m.str+`
33
+ `+c;for(m=gg(e.buffer,r[a],s[a],e.position,g),c+=Ge.repeat(" ",t.indent)+_g((e.line+1).toString(),f)+" | "+m.str+`
34
+ `,c+=Ge.repeat("-",t.indent+f+3+m.pos)+`^
35
+ `,l=1;l<=t.linesAfter&&!(a+l>=s.length);l++)m=gg(e.buffer,r[a+l],s[a+l],e.position-(r[a]-r[a+l]),g),c+=Ge.repeat(" ",t.indent)+_g((e.line+l+1).toString(),f)+" | "+m.str+`
36
+ `;return c.replace(/\n$/,"")}var sie=rie,iie=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],aie=["scalar","sequence","mapping"];function oie(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function cie(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(iie.indexOf(n)===-1)throw new xt('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=oie(t.styleAliases||null),aie.indexOf(this.kind)===-1)throw new xt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ct=cie;function VD(e,t){var n=[];return e[t].forEach(function(r){var s=n.length;n.forEach(function(i,a){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(s=a)}),n[s]=r}),n}function lie(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function wg(e){return this.extend(e)}wg.prototype.extend=function(t){var n=[],r=[];if(t instanceof ct)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 xt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof ct))throw new xt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new xt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new xt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof ct))throw new xt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(wg.prototype);return s.implicit=(this.implicit||[]).concat(n),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=VD(s,"implicit"),s.compiledExplicit=VD(s,"explicit"),s.compiledTypeMap=lie(s.compiledImplicit,s.compiledExplicit),s};var die=wg,uie=new ct("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),mie=new ct("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),fie=new ct("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),pie=new die({explicit:[uie,mie,fie]});function hie(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function yie(){return null}function gie(e){return e===null}var _ie=new ct("tag:yaml.org,2002:null",{kind:"scalar",resolve:hie,construct:yie,predicate:gie,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function wie(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function bie(e){return e==="true"||e==="True"||e==="TRUE"}function Sie(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var vie=new ct("tag:yaml.org,2002:bool",{kind:"scalar",resolve:wie,construct:bie,predicate:Sie,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 Eie(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Aie(e){return 48<=e&&e<=55}function Cie(e){return 48<=e&&e<=57}function Tie(e){if(e===null)return!1;var t=e.length,n=0,r=!1,s;if(!t)return!1;if(s=e[n],(s==="-"||s==="+")&&(s=e[++n]),s==="0"){if(n+1===t)return!0;if(s=e[++n],s==="b"){for(n++;n<t;n++)if(s=e[n],s!=="_"){if(s!=="0"&&s!=="1")return!1;r=!0}return r&&s!=="_"}if(s==="x"){for(n++;n<t;n++)if(s=e[n],s!=="_"){if(!Eie(e.charCodeAt(n)))return!1;r=!0}return r&&s!=="_"}if(s==="o"){for(n++;n<t;n++)if(s=e[n],s!=="_"){if(!Aie(e.charCodeAt(n)))return!1;r=!0}return r&&s!=="_"}}if(s==="_")return!1;for(;n<t;n++)if(s=e[n],s!=="_"){if(!Cie(e.charCodeAt(n)))return!1;r=!0}return!(!r||s==="_")}function xie(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 Iie(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1==0&&!Ge.isNegativeZero(e)}var Rie=new ct("tag:yaml.org,2002:int",{kind:"scalar",resolve:Tie,construct:xie,predicate:Iie,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"]}}),kie=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Die(e){return!(e===null||!kie.test(e)||e[e.length-1]==="_")}function Nie(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 Lie=/^[-+]?[0-9]+e/;function Pie(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(Ge.isNegativeZero(e))return"-0.0";return n=e.toString(10),Lie.test(n)?n.replace("e",".e"):n}function qie(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!=0||Ge.isNegativeZero(e))}var Mie=new ct("tag:yaml.org,2002:float",{kind:"scalar",resolve:Die,construct:Nie,predicate:qie,represent:Pie,defaultStyle:"lowercase"}),Oie=pie.extend({implicit:[_ie,vie,Rie,Mie]}),zie=Oie,WD=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),HD=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 jie(e){return e===null?!1:WD.exec(e)!==null||HD.exec(e)!==null}function Uie(e){var t,n,r,s,i,a,c,l=0,m=null,f,g,h;if(t=WD.exec(e),t===null&&(t=HD.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(n,r,s));if(i=+t[4],a=+t[5],c=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(f=+t[10],g=+(t[11]||0),m=(f*60+g)*6e4,t[9]==="-"&&(m=-m)),h=new Date(Date.UTC(n,r,s,i,a,c,l)),m&&h.setTime(h.getTime()-m),h}function Bie(e){return e.toISOString()}var Fie=new ct("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:jie,construct:Uie,instanceOf:Date,represent:Bie});function Gie(e){return e==="<<"||e===null}var $ie=new ct("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Gie}),bg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
37
+ \r`;function Kie(e){if(e===null)return!1;var t,n,r=0,s=e.length,i=bg;for(n=0;n<s;n++)if(t=i.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function Vie(e){var t,n,r=e.replace(/[\r\n=]/g,""),s=r.length,i=bg,a=0,c=[];for(t=0;t<s;t++)t%4==0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|i.indexOf(r.charAt(t));return n=s%4*6,n===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):n===18?(c.push(a>>10&255),c.push(a>>2&255)):n===12&&c.push(a>>4&255),new Uint8Array(c)}function Wie(e){var t="",n=0,r,s,i=e.length,a=bg;for(r=0;r<i;r++)r%3==0&&r&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[r];return s=i%3,s===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):s===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):s===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function Hie(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Yie=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Kie,construct:Vie,predicate:Hie,represent:Wie}),Jie=Object.prototype.hasOwnProperty,Qie=Object.prototype.toString;function Xie(e){if(e===null)return!0;var t=[],n,r,s,i,a,c=e;for(n=0,r=c.length;n<r;n+=1){if(s=c[n],a=!1,Qie.call(s)!=="[object Object]")return!1;for(i in s)if(Jie.call(s,i))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function Zie(e){return e!==null?e:[]}var eae=new ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Xie,construct:Zie}),tae=Object.prototype.toString;function nae(e){if(e===null)return!0;var t,n,r,s,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],tae.call(r)!=="[object Object]"||(s=Object.keys(r),s.length!==1))return!1;i[t]=[s[0],r[s[0]]]}return!0}function rae(e){if(e===null)return[];var t,n,r,s,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],s=Object.keys(r),i[t]=[s[0],r[s[0]]];return i}var sae=new ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:nae,construct:rae}),iae=Object.prototype.hasOwnProperty;function aae(e){if(e===null)return!0;var t,n=e;for(t in n)if(iae.call(n,t)&&n[t]!==null)return!1;return!0}function oae(e){return e!==null?e:{}}var cae=new ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:aae,construct:oae}),YD=zie.extend({implicit:[Fie,$ie],explicit:[Yie,eae,sae,cae]}),wr=Object.prototype.hasOwnProperty,Tm=1,JD=2,QD=3,xm=4,Sg=1,lae=2,XD=3,dae=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,uae=/[\x85\u2028\u2029]/,mae=/[,\[\]\{\}]/,ZD=/^(?:!|!!|![a-z\-]+!)$/i,eN=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tN(e){return Object.prototype.toString.call(e)}function An(e){return e===10||e===13}function Jr(e){return e===9||e===32}function It(e){return e===9||e===32||e===10||e===13}function Ws(e){return e===44||e===91||e===93||e===123||e===125}function fae(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function pae(e){return e===120?2:e===117?4:e===85?8:0}function hae(e){return 48<=e&&e<=57?e-48:-1}function nN(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
38
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function yae(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var rN=new Array(256),sN=new Array(256);for(var Hs=0;Hs<256;Hs++)rN[Hs]=nN(Hs)?1:0,sN[Hs]=nN(Hs);function gae(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||YD,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 iN(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=sie(n),new xt(t,n)}function $(e,t){throw iN(e,t)}function Im(e,t){e.onWarning&&e.onWarning.call(null,iN(e,t))}var aN={YAML:function(t,n,r){var s,i,a;t.version!==null&&$(t,"duplication of %YAML directive"),r.length!==1&&$(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),s===null&&$(t,"ill-formed argument of the YAML directive"),i=parseInt(s[1],10),a=parseInt(s[2],10),i!==1&&$(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Im(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var s,i;r.length!==2&&$(t,"TAG directive accepts exactly two arguments"),s=r[0],i=r[1],ZD.test(s)||$(t,"ill-formed tag handle (first argument) of the TAG directive"),wr.call(t.tagMap,s)&&$(t,'there is a previously declared suffix for "'+s+'" tag handle'),eN.test(i)||$(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(a){$(t,"tag prefix is malformed: "+i)}t.tagMap[s]=i}};function br(e,t,n,r){var s,i,a,c;if(t<n){if(c=e.input.slice(t,n),r)for(s=0,i=c.length;s<i;s+=1)a=c.charCodeAt(s),a===9||32<=a&&a<=1114111||$(e,"expected valid JSON character");else dae.test(c)&&$(e,"the stream contains non-printable characters");e.result+=c}}function oN(e,t,n,r){var s,i,a,c;for(Ge.isObject(n)||$(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(n),a=0,c=s.length;a<c;a+=1)i=s[a],wr.call(t,i)||(t[i]=n[i],r[i]=!0)}function Ys(e,t,n,r,s,i,a,c,l){var m,f;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),m=0,f=s.length;m<f;m+=1)Array.isArray(s[m])&&$(e,"nested arrays are not supported inside keys"),typeof s=="object"&&tN(s[m])==="[object Object]"&&(s[m]="[object Object]");if(typeof s=="object"&&tN(s)==="[object Object]"&&(s="[object Object]"),s=String(s),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(i))for(m=0,f=i.length;m<f;m+=1)oN(e,t,i[m],n);else oN(e,t,i,n);else!e.json&&!wr.call(n,s)&&wr.call(t,s)&&(e.line=a||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,$(e,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[s]=i,delete n[s];return t}function vg(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++):$(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Be(e,t,n){for(var r=0,s=e.input.charCodeAt(e.position);s!==0;){for(;Jr(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(An(s))for(vg(e),s=e.input.charCodeAt(e.position),r++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Im(e,"deficient indentation"),r}function Rm(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||It(n)))}function Eg(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ge.repeat(`
39
+ `,t-1))}function _ae(e,t,n){var r,s,i,a,c,l,m,f,g=e.kind,h=e.result,_;if(_=e.input.charCodeAt(e.position),It(_)||Ws(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(s=e.input.charCodeAt(e.position+1),It(s)||n&&Ws(s)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,c=!1;_!==0;){if(_===58){if(s=e.input.charCodeAt(e.position+1),It(s)||n&&Ws(s))break}else if(_===35){if(r=e.input.charCodeAt(e.position-1),It(r))break}else{if(e.position===e.lineStart&&Rm(e)||n&&Ws(_))break;if(An(_))if(l=e.line,m=e.lineStart,f=e.lineIndent,Be(e,!1,-1),e.lineIndent>=t){c=!0,_=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=l,e.lineStart=m,e.lineIndent=f;break}}c&&(br(e,i,a,!1),Eg(e,e.line-l),i=a=e.position,c=!1),Jr(_)||(a=e.position+1),_=e.input.charCodeAt(++e.position)}return br(e,i,a,!1),e.result?!0:(e.kind=g,e.result=h,!1)}function wae(e,t){var n,r,s;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(br(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,s=e.position;else return!0;else An(n)?(br(e,r,s,!0),Eg(e,Be(e,!1,t)),r=s=e.position):e.position===e.lineStart&&Rm(e)?$(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);$(e,"unexpected end of the stream within a single quoted scalar")}function bae(e,t){var n,r,s,i,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return br(e,n,e.position,!0),e.position++,!0;if(c===92){if(br(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),An(c))Be(e,!1,t);else if(c<256&&rN[c])e.result+=sN[c],e.position++;else if((a=pae(c))>0){for(s=a,i=0;s>0;s--)c=e.input.charCodeAt(++e.position),(a=fae(c))>=0?i=(i<<4)+a:$(e,"expected hexadecimal character");e.result+=yae(i),e.position++}else $(e,"unknown escape sequence");n=r=e.position}else An(c)?(br(e,n,r,!0),Eg(e,Be(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Rm(e)?$(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}$(e,"unexpected end of the stream within a double quoted scalar")}function Sae(e,t){var n=!0,r,s,i,a=e.tag,c,l=e.anchor,m,f,g,h,_,b=Object.create(null),E,D,k,R;if(R=e.input.charCodeAt(e.position),R===91)f=93,_=!1,c=[];else if(R===123)f=125,_=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),R=e.input.charCodeAt(++e.position);R!==0;){if(Be(e,!0,t),R=e.input.charCodeAt(e.position),R===f)return e.position++,e.tag=a,e.anchor=l,e.kind=_?"mapping":"sequence",e.result=c,!0;n?R===44&&$(e,"expected the node content, but found ','"):$(e,"missed comma between flow collection entries"),D=E=k=null,g=h=!1,R===63&&(m=e.input.charCodeAt(e.position+1),It(m)&&(g=h=!0,e.position++,Be(e,!0,t))),r=e.line,s=e.lineStart,i=e.position,Js(e,t,Tm,!1,!0),D=e.tag,E=e.result,Be(e,!0,t),R=e.input.charCodeAt(e.position),(h||e.line===r)&&R===58&&(g=!0,R=e.input.charCodeAt(++e.position),Be(e,!0,t),Js(e,t,Tm,!1,!0),k=e.result),_?Ys(e,c,b,D,E,k,r,s,i):g?c.push(Ys(e,null,b,D,E,k,r,s,i)):c.push(E),Be(e,!0,t),R=e.input.charCodeAt(e.position),R===44?(n=!0,R=e.input.charCodeAt(++e.position)):n=!1}$(e,"unexpected end of the stream within a flow collection")}function vae(e,t){var n,r,s=Sg,i=!1,a=!1,c=t,l=0,m=!1,f,g;if(g=e.input.charCodeAt(e.position),g===124)r=!1;else if(g===62)r=!0;else return!1;for(e.kind="scalar",e.result="";g!==0;)if(g=e.input.charCodeAt(++e.position),g===43||g===45)Sg===s?s=g===43?XD:lae:$(e,"repeat of a chomping mode identifier");else if((f=hae(g))>=0)f===0?$(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?$(e,"repeat of an indentation width identifier"):(c=t+f-1,a=!0);else break;if(Jr(g)){do g=e.input.charCodeAt(++e.position);while(Jr(g));if(g===35)do g=e.input.charCodeAt(++e.position);while(!An(g)&&g!==0)}for(;g!==0;){for(vg(e),e.lineIndent=0,g=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&g===32;)e.lineIndent++,g=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),An(g)){l++;continue}if(e.lineIndent<c){s===XD?e.result+=Ge.repeat(`
40
+ `,i?1+l:l):s===Sg&&i&&(e.result+=`
41
+ `);break}for(r?Jr(g)?(m=!0,e.result+=Ge.repeat(`
42
+ `,i?1+l:l)):m?(m=!1,e.result+=Ge.repeat(`
43
+ `,l+1)):l===0?i&&(e.result+=" "):e.result+=Ge.repeat(`
44
+ `,l):e.result+=Ge.repeat(`
45
+ `,i?1+l:l),i=!0,a=!0,l=0,n=e.position;!An(g)&&g!==0;)g=e.input.charCodeAt(++e.position);br(e,n,e.position,!1)}return!0}function cN(e,t){var n,r=e.tag,s=e.anchor,i=[],a,c=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,$(e,"tab characters must not be used in indentation")),!(l!==45||(a=e.input.charCodeAt(e.position+1),!It(a))));){if(c=!0,e.position++,Be(e,!0,-1)&&e.lineIndent<=t){i.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,Js(e,t,QD,!1,!0),i.push(e.result),Be(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)$(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=r,e.anchor=s,e.kind="sequence",e.result=i,!0):!1}function Eae(e,t,n){var r,s,i,a,c,l,m=e.tag,f=e.anchor,g={},h=Object.create(null),_=null,b=null,E=null,D=!1,k=!1,R;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=g),R=e.input.charCodeAt(e.position);R!==0;){if(!D&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,$(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,(R===63||R===58)&&It(r))R===63?(D&&(Ys(e,g,h,_,b,null,a,c,l),_=b=E=null),k=!0,D=!0,s=!0):D?(D=!1,s=!0):$(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,R=r;else{if(a=e.line,c=e.lineStart,l=e.position,!Js(e,n,JD,!1,!0))break;if(e.line===i){for(R=e.input.charCodeAt(e.position);Jr(R);)R=e.input.charCodeAt(++e.position);if(R===58)R=e.input.charCodeAt(++e.position),It(R)||$(e,"a whitespace character is expected after the key-value separator within a block mapping"),D&&(Ys(e,g,h,_,b,null,a,c,l),_=b=E=null),k=!0,D=!1,s=!1,_=e.tag,b=e.result;else if(k)$(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=m,e.anchor=f,!0}else if(k)$(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=m,e.anchor=f,!0}if((e.line===i||e.lineIndent>t)&&(D&&(a=e.line,c=e.lineStart,l=e.position),Js(e,t,xm,!0,s)&&(D?b=e.result:E=e.result),D||(Ys(e,g,h,_,b,E,a,c,l),_=b=E=null),Be(e,!0,-1),R=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&R!==0)$(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return D&&Ys(e,g,h,_,b,null,a,c,l),k&&(e.tag=m,e.anchor=f,e.kind="mapping",e.result=g),k}function Aae(e){var t,n=!1,r=!1,s,i,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&$(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(r=!0,s="!!",a=e.input.charCodeAt(++e.position)):s="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(i=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):$(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!It(a);)a===33&&(r?$(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(t-1,e.position+1),ZD.test(s)||$(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),mae.test(i)&&$(e,"tag suffix cannot contain flow indicator characters")}i&&!eN.test(i)&&$(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(c){$(e,"tag name is malformed: "+i)}return n?e.tag=i:wr.call(e.tagMap,s)?e.tag=e.tagMap[s]+i:s==="!"?e.tag="!"+i:s==="!!"?e.tag="tag:yaml.org,2002:"+i:$(e,'undeclared tag handle "'+s+'"'),!0}function Cae(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&$(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!It(n)&&!Ws(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&$(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Tae(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&&!It(r)&&!Ws(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&$(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),wr.call(e.anchorMap,n)||$(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Be(e,!0,-1),!0}function Js(e,t,n,r,s){var i,a,c,l=1,m=!1,f=!1,g,h,_,b,E,D;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=a=c=xm===n||QD===n,r&&Be(e,!0,-1)&&(m=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;Aae(e)||Cae(e);)Be(e,!0,-1)?(m=!0,c=i,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):c=!1;if(c&&(c=m||s),(l===1||xm===n)&&(Tm===n||JD===n?E=t:E=t+1,D=e.position-e.lineStart,l===1?c&&(cN(e,D)||Eae(e,D,E))||Sae(e,E)?f=!0:(a&&vae(e,E)||wae(e,E)||bae(e,E)?f=!0:Tae(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&$(e,"alias node should not have any properties")):_ae(e,E,Tm===n)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(f=c&&cN(e,D))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&$(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),g=0,h=e.implicitTypes.length;g<h;g+=1)if(b=e.implicitTypes[g],b.resolve(e.result)){e.result=b.construct(e.result),e.tag=b.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(wr.call(e.typeMap[e.kind||"fallback"],e.tag))b=e.typeMap[e.kind||"fallback"][e.tag];else for(b=null,_=e.typeMap.multi[e.kind||"fallback"],g=0,h=_.length;g<h;g+=1)if(e.tag.slice(0,_[g].tag.length)===_[g].tag){b=_[g];break}b||$(e,"unknown tag !<"+e.tag+">"),e.result!==null&&b.kind!==e.kind&&$(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result,e.tag)?(e.result=b.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):$(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function xae(e){var t=e.position,n,r,s,i=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Be(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(i=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!It(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),s=[],r.length<1&&$(e,"directive name must not be less than one character in length");a!==0;){for(;Jr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!An(a));break}if(An(a))break;for(n=e.position;a!==0&&!It(a);)a=e.input.charCodeAt(++e.position);s.push(e.input.slice(n,e.position))}a!==0&&vg(e),wr.call(aN,r)?aN[r](e,r,s):Im(e,'unknown document directive "'+r+'"')}if(Be(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,Be(e,!0,-1)):i&&$(e,"directives end mark is expected"),Js(e,e.lineIndent-1,xm,!1,!0),Be(e,!0,-1),e.checkLineBreaks&&uae.test(e.input.slice(t,e.position))&&Im(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Rm(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Be(e,!0,-1));return}if(e.position<e.length-1)$(e,"end of the stream or a document separator is expected");else return}function lN(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
46
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new gae(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,$(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;)xae(n);return n.documents}function Iae(e,t,n){t!==null&&typeof t=="object"&&typeof n=="undefined"&&(n=t,t=null);var r=lN(e,n);if(typeof t!="function")return r;for(var s=0,i=r.length;s<i;s+=1)t(r[s])}function Rae(e,t){var n=lN(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new xt("expected a single document in the stream, but found more")}}var kae=Iae,Dae=Rae,dN={loadAll:kae,load:Dae},uN=Object.prototype.toString,mN=Object.prototype.hasOwnProperty,Ag=65279,Nae=9,ma=10,Lae=13,Pae=32,qae=33,Mae=34,Cg=35,Oae=37,zae=38,jae=39,Uae=42,fN=44,Bae=45,km=58,Fae=61,Gae=62,$ae=63,Kae=64,pN=91,hN=93,Vae=96,yN=123,Wae=124,gN=125,lt={};lt[0]="\\0";lt[7]="\\a";lt[8]="\\b";lt[9]="\\t";lt[10]="\\n";lt[11]="\\v";lt[12]="\\f";lt[13]="\\r";lt[27]="\\e";lt[34]='\\"';lt[92]="\\\\";lt[133]="\\N";lt[160]="\\_";lt[8232]="\\L";lt[8233]="\\P";var Hae=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Yae=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Jae(e,t){var n,r,s,i,a,c,l;if(t===null)return{};for(n={},r=Object.keys(t),s=0,i=r.length;s<i;s+=1)a=r[s],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),l=e.compiledTypeMap.fallback[a],l&&mN.call(l.styleAliases,c)&&(c=l.styleAliases[c]),n[a]=c;return n}function Qae(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 xt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Ge.repeat("0",r-t.length)+t}var Xae=1,fa=2;function Zae(e){this.schema=e.schema||YD,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ge.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Jae(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==='"'?fa:Xae,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 _N(e,t){for(var n=Ge.repeat(" ",t),r=0,s=-1,i="",a,c=e.length;r<c;)s=e.indexOf(`
47
+ `,r),s===-1?(a=e.slice(r),r=c):(a=e.slice(r,s+1),r=s+1),a.length&&a!==`
48
+ `&&(i+=n),i+=a;return i}function Tg(e,t){return`
49
+ `+Ge.repeat(" ",e.indent*t)}function eoe(e,t){var n,r,s;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(s=e.implicitTypes[n],s.resolve(t))return!0;return!1}function Dm(e){return e===Pae||e===Nae}function pa(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ag||65536<=e&&e<=1114111}function wN(e){return pa(e)&&e!==Ag&&e!==Lae&&e!==ma}function bN(e,t,n){var r=wN(e),s=r&&!Dm(e);return(n?r:r&&e!==fN&&e!==pN&&e!==hN&&e!==yN&&e!==gN)&&e!==Cg&&!(t===km&&!s)||wN(t)&&!Dm(t)&&e===Cg||t===km&&s}function toe(e){return pa(e)&&e!==Ag&&!Dm(e)&&e!==Bae&&e!==$ae&&e!==km&&e!==fN&&e!==pN&&e!==hN&&e!==yN&&e!==gN&&e!==Cg&&e!==zae&&e!==Uae&&e!==qae&&e!==Wae&&e!==Fae&&e!==Gae&&e!==jae&&e!==Mae&&e!==Oae&&e!==Kae&&e!==Vae}function noe(e){return!Dm(e)&&e!==km}function ha(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 SN(e){var t=/^\n* /;return t.test(e)}var vN=1,xg=2,EN=3,AN=4,Qs=5;function roe(e,t,n,r,s,i,a,c){var l,m=0,f=null,g=!1,h=!1,_=r!==-1,b=-1,E=toe(ha(e,0))&&noe(ha(e,e.length-1));if(t||a)for(l=0;l<e.length;m>=65536?l+=2:l++){if(m=ha(e,l),!pa(m))return Qs;E=E&&bN(m,f,c),f=m}else{for(l=0;l<e.length;m>=65536?l+=2:l++){if(m=ha(e,l),m===ma)g=!0,_&&(h=h||l-b-1>r&&e[b+1]!==" ",b=l);else if(!pa(m))return Qs;E=E&&bN(m,f,c),f=m}h=h||_&&l-b-1>r&&e[b+1]!==" "}return!g&&!h?E&&!a&&!s(e)?vN:i===fa?Qs:xg:n>9&&SN(e)?Qs:a?i===fa?Qs:xg:h?AN:EN}function soe(e,t,n,r,s){e.dump=function(){if(t.length===0)return e.quotingType===fa?'""':"''";if(!e.noCompatMode&&(Hae.indexOf(t)!==-1||Yae.test(t)))return e.quotingType===fa?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),c=r||e.flowLevel>-1&&n>=e.flowLevel;function l(m){return eoe(e,m)}switch(roe(t,c,e.indent,a,l,e.quotingType,e.forceQuotes&&!r,s)){case vN:return t;case xg:return"'"+t.replace(/'/g,"''")+"'";case EN:return"|"+CN(t,e.indent)+TN(_N(t,i));case AN:return">"+CN(t,e.indent)+TN(_N(ioe(t,a),i));case Qs:return'"'+aoe(t)+'"';default:throw new xt("impossible error: invalid scalar style")}}()}function CN(e,t){var n=SN(e)?String(t):"",r=e[e.length-1]===`
50
+ `,s=r&&(e[e.length-2]===`
50
51
  `||e===`
51
- `),s=i?"+":r?"":"-";return n+s+`
52
- `}function iN(e){return e[e.length-1]===`
53
- `?e.slice(0,-1):e}function Pae(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var m=e.indexOf(`
54
- `);return m=m!==-1?m:e.length,n.lastIndex=m,sN(e.slice(0,m),t)}(),i=e[0]===`
55
- `||e[0]===" ",s,a;a=n.exec(e);){var c=a[1],l=a[2];s=l[0]===" ",r+=c+(!i&&!s&&l!==""?`
56
- `:"")+sN(l,t),i=s}return r}function sN(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,s,a=0,c=0,l="";r=n.exec(e);)c=r.index,c-i>t&&(s=a>i?a:c,l+=`
57
- `+e.slice(i,s),i=s+1),a=c;return l+=`
58
- `,e.length-i>t&&a>i?l+=e.slice(i,a)+`
59
- `+e.slice(a+1):l+=e.slice(i),l.slice(1)}function Lae(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=ua(e,i),r=ct[n],!r&&da(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||Cae(n);return t}function qae(e,t,n){var r="",i=e.tag,s,a,c;for(s=0,a=n.length;s<a;s+=1)c=n[s],e.replacer&&(c=e.replacer.call(n,String(s),c)),(Fn(e,t,c,!1,!1)||typeof c=="undefined"&&Fn(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function aN(e,t,n,r){var i="",s=e.tag,a,c,l;for(a=0,c=n.length;a<c;a+=1)l=n[a],e.replacer&&(l=e.replacer.call(n,String(a),l)),(Fn(e,t+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&Fn(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=fg(e,t)),e.dump&&ca===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Mae(e,t,n){var r="",i=e.tag,s=Object.keys(n),a,c,l,m,f;for(a=0,c=s.length;a<c;a+=1)f="",r!==""&&(f+=", "),e.condenseFlow&&(f+='"'),l=s[a],m=n[l],e.replacer&&(m=e.replacer.call(n,l,m)),!!Fn(e,t,l,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),!!Fn(e,t,m,!1,!1)&&(f+=e.dump,r+=f));e.tag=i,e.dump="{"+r+"}"}function Oae(e,t,n,r){var i="",s=e.tag,a=Object.keys(n),c,l,m,f,g,p;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new xt("sortKeys must be a boolean or a function");for(c=0,l=a.length;c<l;c+=1)p="",(!r||i!=="")&&(p+=fg(e,t)),m=a[c],f=n[m],e.replacer&&(f=e.replacer.call(n,m,f)),!!Fn(e,t+1,m,!0,!0,!0)&&(g=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,g&&(e.dump&&ca===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,g&&(p+=fg(e,t)),!!Fn(e,t+1,f,!0,g)&&(e.dump&&ca===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=s,e.dump=i||"{}"}function oN(e,t,n){var r,i,s,a,c,l;for(i=n?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(c=i[s],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(l=e.styleMap[c.tag]||c.defaultStyle,Gk.call(c.represent)==="[object Function]")r=c.represent(t,l);else if($k.call(c.represent,l))r=c.represent[l](t,l);else throw new xt("!<"+c.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function Fn(e,t,n,r,i,s,a){e.tag=null,e.dump=n,oN(e,n,!1)||oN(e,n,!0);var c=Gk.call(e.dump),l=r,m;r&&(r=e.flowLevel<0||e.flowLevel>t);var f=c==="[object Object]"||c==="[object Array]",g,p;if(f&&(g=e.duplicates.indexOf(n),p=g!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[g])e.dump="*ref_"+g;else{if(f&&p&&!e.usedDuplicates[g]&&(e.usedDuplicates[g]=!0),c==="[object Object]")r&&Object.keys(e.dump).length!==0?(Oae(e,t,e.dump,i),p&&(e.dump="&ref_"+g+e.dump)):(Mae(e,t,e.dump),p&&(e.dump="&ref_"+g+" "+e.dump));else if(c==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?aN(e,t-1,e.dump,i):aN(e,t,e.dump,i),p&&(e.dump="&ref_"+g+e.dump)):(qae(e,t,e.dump),p&&(e.dump="&ref_"+g+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&Nae(e,e.dump,t,s,l);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new xt("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(m=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?m="!"+m:m.slice(0,18)==="tag:yaml.org,2002:"?m="!!"+m.slice(18):m="!<"+m+">",e.dump=m+" "+e.dump)}return!0}function zae(e,t){var n=[],r=[],i,s;for(hg(e,n,r),i=0,s=r.length;i<s;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(s)}function hg(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)hg(e[i],t,n);else for(r=Object.keys(e),i=0,s=r.length;i<s;i+=1)hg(e[r[i]],t,n)}function jae(e,t){t=t||{};var n=new xae(t);n.noRefs||zae(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Fn(n,0,r,!0,!0)?n.dump+`
60
- `:""}var Uae=jae,Bae={dump:Uae};function yg(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 cN=Fk.load,pye=Fk.loadAll,hye=Bae.dump;var yye=yg("safeLoad","load"),gye=yg("safeLoadAll","loadAll"),_ye=yg("safeDump","dump");var Bm=Vt(Om()),CP=Vt(Om());var zm=Vt(Ky()),Kg=class{static async getExistingFiles(t){let n=[];for(let r of t)await(0,zm.pathExists)(r)&&n.push(r);return n}static getExistingFilesSync(t){let n=[];for(let r of t)(0,zm.pathExistsSync)(r)&&n.push(r);return n}};var AP=Vt(Om()),jm=class{};ss([(0,AP.Property)({doc:"DynamoDB Table Name",default:"MicroApps",env:"DATABASE_TABLE_NAME"})],jm.prototype,"tableName",2);var Rt=class{static configFiles(){let t=["./configs/config.yaml","./configs/config.yml",`./configs/config-${Rt.envLevel}.yaml`,`./configs/config-${Rt.envLevel}.yml`];return Kg.getExistingFilesSync(t)}static get instance(){if(Rt._instance===void 0){let t=new CP.TSConvict(Rt);Rt._instance=t.load(Rt.configFiles())}return Rt._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};ss([Bm.Property(jm)],Rt.prototype,"db",2),Rt=ss([Bm.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:cN},formats:{url:Um.url,ipaddress:Um.ipaddress}})],Rt);var TP=!!process.env.DEBUG,Lce=process.env.TEST?new Vg.DynamoDB({endpoint:"http://localhost:8000"}):new Vg.DynamoDB({}),xP;function qce(){let e=[__dirname,`${__dirname}/..`,`${__dirname}/templates`,"/opt","/opt/templates"],t=new Wg.LambdaLog({meta:{source:"microapps-router"},dynamicMeta:n=>({timestamp:new Date().toISOString()})});for(let n of e){let r=`${n}/appFrame.html`;try{if((0,ga.pathExistsSync)(r))return t.info("found html file",{fullPath:r}),(0,ga.readFileSync)(r,"utf-8")}catch{}}throw t.error("appFrame.html not found"),new Error("appFrame.html not found")}var Mce=qce();async function IP(e,t){xP===void 0&&(xP=new ft({dynamoDB:Lce,tableName:Rt.instance.db.tableName}));let n={statusCode:200,headers:{},isBase64Encoded:!1},r=new Wg.LambdaLog({dev:TP,meta:{source:"microapps-router",awsRequestId:t.awsRequestId,rawPath:e.rawPath},dynamicMeta:i=>({timestamp:new Date().toISOString()})});try{let i=e.rawPath.split("/"),s="";if(i.length>=3&&i[2]!==""&&(s=i.slice(2).join("/")),i.length>=2)await Oce(e,n,i[1],s,r);else throw new Error("Unmatched route")}catch(i){r.error("unexpected exception - returning 599",{statusCode:599}),r.error(i),n.statusCode=599,n.headers={},n.headers["Content-Type"]="text/plain",n.body=`Router - Could not route: ${e.rawPath}, ${i.message}`}return n}async function Oce(e,t,n,r,i){var f,g;let s;if(t.headers===void 0)throw new Error("do not call me with undefined headers");try{s=await ft.GetVersionsAndRules(n)}catch(p){i.info(`GetVersionsAndRules threw for '${n}', assuming not found - returning 404`,{appName:n,statusCode:404}),i.info(p),t.statusCode=404,t.headers["Cache-Control"]="no-store; private",t.headers["Content-Type"]="text/plain; charset=UTF-8",t.body=`Router - Could not find app: ${e.rawPath}, ${n}`;return}let a=(g=(f=s.Rules)==null?void 0:f.RuleSet.default)==null?void 0:g.SemVer;if(a==null){i.error(`could not find app ${n}, for path ${e.rawPath} - returning 404`,{statusCode:404}),t.statusCode=404,t.headers["Cache-Control"]="no-store; private",t.headers["Content-Type"]="text/plain; charset=UTF-8",t.body=`Router - Could not find app: ${e.rawPath}, ${n}`;return}let c=s.Versions.find(p=>p.SemVer===a),l;(c==null?void 0:c.DefaultFile)===void 0||(c==null?void 0:c.DefaultFile)===""||r!==""?(l=`/${n}/${a}`,r!==""&&(l+=`/${r}`)):l=`/${n}/${a}/${c.DefaultFile}`;let m=Mce.replace("{{iframeSrc}}",l);t.headers["Cache-Control"]="no-store; private",t.headers["Content-Type"]="text/html; charset=UTF-8",t.statusCode=200,t.body=m,i.info(`found app ${n}, for path ${e.rawPath} - returning 200`,{statusCode:200,routedPath:l})}if(TP){let e=JSON.parse((0,ga.readFileSync)("../../test/json/router-release-app.json","utf-8"));Promise.all([IP(e,{awsRequestId:"local-testing"})])}0&&(module.exports={handler});
52
+ `),i=s?"+":r?"":"-";return n+i+`
53
+ `}function TN(e){return e[e.length-1]===`
54
+ `?e.slice(0,-1):e}function ioe(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var m=e.indexOf(`
55
+ `);return m=m!==-1?m:e.length,n.lastIndex=m,xN(e.slice(0,m),t)}(),s=e[0]===`
56
+ `||e[0]===" ",i,a;a=n.exec(e);){var c=a[1],l=a[2];i=l[0]===" ",r+=c+(!s&&!i&&l!==""?`
57
+ `:"")+xN(l,t),s=i}return r}function xN(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,s=0,i,a=0,c=0,l="";r=n.exec(e);)c=r.index,c-s>t&&(i=a>s?a:c,l+=`
58
+ `+e.slice(s,i),s=i+1),a=c;return l+=`
59
+ `,e.length-s>t&&a>s?l+=e.slice(s,a)+`
60
+ `+e.slice(a+1):l+=e.slice(s),l.slice(1)}function aoe(e){for(var t="",n=0,r,s=0;s<e.length;n>=65536?s+=2:s++)n=ha(e,s),r=lt[n],!r&&pa(n)?(t+=e[s],n>=65536&&(t+=e[s+1])):t+=r||Qae(n);return t}function ooe(e,t,n){var r="",s=e.tag,i,a,c;for(i=0,a=n.length;i<a;i+=1)c=n[i],e.replacer&&(c=e.replacer.call(n,String(i),c)),($n(e,t,c,!1,!1)||typeof c=="undefined"&&$n(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=s,e.dump="["+r+"]"}function IN(e,t,n,r){var s="",i=e.tag,a,c,l;for(a=0,c=n.length;a<c;a+=1)l=n[a],e.replacer&&(l=e.replacer.call(n,String(a),l)),($n(e,t+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&$n(e,t+1,null,!0,!0,!1,!0))&&((!r||s!=="")&&(s+=Tg(e,t)),e.dump&&ma===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=i,e.dump=s||"[]"}function coe(e,t,n){var r="",s=e.tag,i=Object.keys(n),a,c,l,m,f;for(a=0,c=i.length;a<c;a+=1)f="",r!==""&&(f+=", "),e.condenseFlow&&(f+='"'),l=i[a],m=n[l],e.replacer&&(m=e.replacer.call(n,l,m)),!!$n(e,t,l,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),!!$n(e,t,m,!1,!1)&&(f+=e.dump,r+=f));e.tag=s,e.dump="{"+r+"}"}function loe(e,t,n,r){var s="",i=e.tag,a=Object.keys(n),c,l,m,f,g,h;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new xt("sortKeys must be a boolean or a function");for(c=0,l=a.length;c<l;c+=1)h="",(!r||s!=="")&&(h+=Tg(e,t)),m=a[c],f=n[m],e.replacer&&(f=e.replacer.call(n,m,f)),!!$n(e,t+1,m,!0,!0,!0)&&(g=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,g&&(e.dump&&ma===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,g&&(h+=Tg(e,t)),!!$n(e,t+1,f,!0,g)&&(e.dump&&ma===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,s+=h));e.tag=i,e.dump=s||"{}"}function RN(e,t,n){var r,s,i,a,c,l;for(s=n?e.explicitTypes:e.implicitTypes,i=0,a=s.length;i<a;i+=1)if(c=s[i],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(l=e.styleMap[c.tag]||c.defaultStyle,uN.call(c.represent)==="[object Function]")r=c.represent(t,l);else if(mN.call(c.represent,l))r=c.represent[l](t,l);else throw new xt("!<"+c.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function $n(e,t,n,r,s,i,a){e.tag=null,e.dump=n,RN(e,n,!1)||RN(e,n,!0);var c=uN.call(e.dump),l=r,m;r&&(r=e.flowLevel<0||e.flowLevel>t);var f=c==="[object Object]"||c==="[object Array]",g,h;if(f&&(g=e.duplicates.indexOf(n),h=g!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(s=!1),h&&e.usedDuplicates[g])e.dump="*ref_"+g;else{if(f&&h&&!e.usedDuplicates[g]&&(e.usedDuplicates[g]=!0),c==="[object Object]")r&&Object.keys(e.dump).length!==0?(loe(e,t,e.dump,s),h&&(e.dump="&ref_"+g+e.dump)):(coe(e,t,e.dump),h&&(e.dump="&ref_"+g+" "+e.dump));else if(c==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?IN(e,t-1,e.dump,s):IN(e,t,e.dump,s),h&&(e.dump="&ref_"+g+e.dump)):(ooe(e,t,e.dump),h&&(e.dump="&ref_"+g+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&soe(e,e.dump,t,i,l);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new xt("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(m=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?m="!"+m:m.slice(0,18)==="tag:yaml.org,2002:"?m="!!"+m.slice(18):m="!<"+m+">",e.dump=m+" "+e.dump)}return!0}function doe(e,t){var n=[],r=[],s,i;for(Ig(e,n,r),s=0,i=r.length;s<i;s+=1)t.duplicates.push(n[r[s]]);t.usedDuplicates=new Array(i)}function Ig(e,t,n){var r,s,i;if(e!==null&&typeof e=="object")if(s=t.indexOf(e),s!==-1)n.indexOf(s)===-1&&n.push(s);else if(t.push(e),Array.isArray(e))for(s=0,i=e.length;s<i;s+=1)Ig(e[s],t,n);else for(r=Object.keys(e),s=0,i=r.length;s<i;s+=1)Ig(e[r[s]],t,n)}function uoe(e,t){t=t||{};var n=new Zae(t);n.noRefs||doe(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),$n(n,0,r,!0,!0)?n.dump+`
61
+ `:""}var moe=uoe,foe={dump:moe};function Rg(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 kN=dN.load,Nye=dN.loadAll,Lye=foe.dump;var Pye=Rg("safeLoad","load"),qye=Rg("safeLoadAll","loadAll"),Mye=Rg("safeDump","dump");var Hm=Tn($m()),WL=Tn($m());var Km=Tn(rg()),s_=class{static async getExistingFiles(t){let n=[];for(let r of t)await(0,Km.pathExists)(r)&&n.push(r);return n}static getExistingFilesSync(t){let n=[];for(let r of t)(0,Km.pathExistsSync)(r)&&n.push(r);return n}};var VL=Tn($m()),Vm=class{};ai([(0,VL.Property)({doc:"DynamoDB Table Name",default:"MicroApps",env:"DATABASE_TABLE_NAME"})],Vm.prototype,"tableName",2);var Rt=class{static configFiles(){let t=["./configs/config.yaml","./configs/config.yml",`./configs/config-${Rt.envLevel}.yaml`,`./configs/config-${Rt.envLevel}.yml`];return s_.getExistingFilesSync(t)}static get instance(){if(Rt._instance===void 0){let t=new WL.TSConvict(Rt);Rt._instance=t.load(Rt.configFiles())}return Rt._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};ai([Hm.Property(Vm)],Rt.prototype,"db",2),Rt=ai([Hm.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:kN},formats:{url:Wm.url,ipaddress:Wm.ipaddress}})],Rt);var HL=!!process.env.DEBUG,ale=process.env.TEST?new i_.DynamoDB({endpoint:"http://localhost:8000"}):new i_.DynamoDB({}),YL;function ole(){let e=[__dirname,`${__dirname}/..`,`${__dirname}/templates`,"/opt","/opt/templates"],t=new o_.LambdaLog({meta:{source:"microapps-router"},dynamicMeta:n=>({timestamp:new Date().toISOString()})});for(let n of e){let r=`${n}/appFrame.html`;try{if((0,Sa.pathExistsSync)(r))return t.info("found html file",{fullPath:r}),(0,Sa.readFileSync)(r,"utf-8")}catch{}}throw t.error("appFrame.html not found"),new Error("appFrame.html not found")}var cle=ole();async function JL(e,t){YL===void 0&&(YL=new a_.default({dynamoDB:ale,tableName:Rt.instance.db.tableName}));let n={statusCode:200,headers:{},isBase64Encoded:!1},r=new o_.LambdaLog({dev:HL,meta:{source:"microapps-router",awsRequestId:t.awsRequestId,rawPath:e.rawPath},dynamicMeta:s=>({timestamp:new Date().toISOString()})});try{let s=e.rawPath.split("/"),i="";if(s.length>=3&&s[2]!==""&&(i=s.slice(2).join("/")),s.length>=2)await lle(e,n,s[1],i,r);else throw new Error("Unmatched route")}catch(s){r.error("unexpected exception - returning 599",{statusCode:599}),r.error(s),n.statusCode=599,n.headers={},n.headers["Content-Type"]="text/plain",n.body=`Router - Could not route: ${e.rawPath}, ${s.message}`}return n}async function lle(e,t,n,r,s){var f,g;let i;if(t.headers===void 0)throw new Error("do not call me with undefined headers");try{i=await a_.default.GetVersionsAndRules(n)}catch(h){s.info(`GetVersionsAndRules threw for '${n}', assuming not found - returning 404`,{appName:n,statusCode:404}),s.info(h),t.statusCode=404,t.headers["Cache-Control"]="no-store; private",t.headers["Content-Type"]="text/plain; charset=UTF-8",t.body=`Router - Could not find app: ${e.rawPath}, ${n}`;return}let a=(g=(f=i.Rules)==null?void 0:f.RuleSet.default)==null?void 0:g.SemVer;if(a==null){s.error(`could not find app ${n}, for path ${e.rawPath} - returning 404`,{statusCode:404}),t.statusCode=404,t.headers["Cache-Control"]="no-store; private",t.headers["Content-Type"]="text/plain; charset=UTF-8",t.body=`Router - Could not find app: ${e.rawPath}, ${n}`;return}let c=i.Versions.find(h=>h.SemVer===a),l;(c==null?void 0:c.DefaultFile)===void 0||(c==null?void 0:c.DefaultFile)===""||r!==""?(l=`/${n}/${a}`,r!==""&&(l+=`/${r}`)):l=`/${n}/${a}/${c.DefaultFile}`;let m=cle.replace("{{iframeSrc}}",l);t.headers["Cache-Control"]="no-store; private",t.headers["Content-Type"]="text/html; charset=UTF-8",t.statusCode=200,t.body=m,s.info(`found app ${n}, for path ${e.rawPath} - returning 200`,{statusCode:200,routedPath:l})}if(HL){let e=JSON.parse((0,Sa.readFileSync)("../../test/json/router-release-app.json","utf-8"));Promise.all([JL(e,{awsRequestId:"local-testing"})])}0&&(module.exports={handler});
61
62
  /*! *****************************************************************************
62
63
  Copyright (C) Microsoft. All rights reserved.
63
64
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use