PageSourceSearch

https://geminiaiphotoprompt.org/_next/static/chunks/501-ade79f5c8c8e026c.js

js geminiaiphotoprompt.org collected 2026-10-07 06:37:37 UTC 195,790 bytes, 15 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[501],{641:(e,t,r)=>{"use strict";r.d(t,{M:()=>i,T:()=>n});class n extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){return!!e&&(n.prototype.isPrototypeOf(e)||!!e.$fault&&!!e.$metadata&&("client"===e.$fault||"server"===e.$fault))}static[Symbol.hasInstance](e){return!!e&&(this===n?n.isInstance(e):!!n.isInstance(e)&&(e.name&&this.name?this.prototype.isPrototypeOf(e)||e.name===this.name:this.prototype.isPrototypeOf(e)))}}let i=(e,t={})=>{Object.entries(t).filter(([,e])=>void 0!==e).forEach(([t,r])=>{(void 0==e[t]||""===e[t])&&(e[t]=r)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e}},646:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},688:(e,t,r)=>{"use strict";r.d(t,{Kc:()=>s,OF:()=>u,_w:()=>o,kQ:()=>a,mh:()=>i});let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=Object.entries(n).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),s=n.split(""),o=6,a=8,u=63},1154:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1204:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});let n=e=>new TextEncoder().encode(e)},1265:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});let n=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)}},1497:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},1586:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},1788:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},1940:(e,t,r)=>{"use strict";r.d(t,{FZ:()=>h,t_:()=>f,FI:()=>d});let n=new DOMParser,i=e=>{let t="#text";for(let r in e)e.hasOwnProperty(r)&&void 0!==e[r][t]?e[r]=e[r][t]:"object"==typeof e[r]&&null!==e[r]&&(e[r]=i(e[r]));return e};var s=r(8417),o=r(2836),a=r(1265),u=r(1204);class c extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return"base64"===t?c.mutate((0,o.E)(e)):c.mutate((0,u.a)(e));throw Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,c.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?(0,s.n)(e):(0,a.P)(e)}(this,e)}}let l=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return c.mutate(e);if(!e)return c.mutate(new Uint8Array);let r=t.streamCollector(e);return c.mutate(await r)},f=(e,t)=>((e,t)=>l(e,t).then(e=>(t?.utf8Encoder??a.P)(e)))(e,t).then(e=>{if(e.length){let t;try{t=function(e){let t=n.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw Error("DOMParser XML parsing error.");let r=e=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim())return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){if(0===e.attributes.length&&0===e.childNodes.length)return"";let t={},n=Array.from(e.attributes);for(let e of n)t[`${e.name}`]=e.value;let i=Array.from(e.childNodes);for(let s of i){let o=r(s);if(null!=o){let e=s.nodeName;if(1===i.length&&0===n.length&&"#text"===e)return o;t[e]?Array.isArray(t[e])?t[e].push(o):t[e]=[t[e],o]:t[e]=o}else if(1===i.length&&0===n.length)return e.textContent}return t}return null};return{[t.documentElement.nodeName]:r(t.documentElement)}}(e)}catch(t){throw t&&"object"==typeof t&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}let r="#text",s=Object.keys(t)[0],o=t[s];return o[r]&&(o[s]=o[r],delete o[r]),i(o)}return{}}),d=async(e,t)=>{let r=await f(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},h=(e,t)=>t?.Error?.Code!==void 0?t.Error.Code:t?.Code!==void 0?t.Code:404==e.statusCode?"NotFound":void 0},2138:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},2269:(e,t,r)=>{"use strict";var n=r(7358);r(8375);var i=r(2115),s=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),o=void 0!==n&&n.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},u=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,s=void 0===i?o:i;c(a(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",c("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var u="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=u?u.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(c(a(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];c(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&c(a(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var l=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},f={};function d(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return f[n]||(f[n]="jsx-"+l(e+"-"+r)),f[n]}function h(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return f[r]||(f[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),f[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,s=void 0!==i&&i;this._sheet=n||new u({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),n&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var s=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=s,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=d(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return h(i,e)}):[h(i,t)]}}return{styleId:d(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),g=i.createContext(null);g.displayName="StyleSheetContext";var y=s.default.useInsertionEffect||s.default.useLayoutEffect,m="undefined"!=typeof window?new p:void 0;function b(e){var t=m||i.useContext(g);return t&&("undefined"==typeof window?t.add(e):y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}b.dynamic=function(e){return e.map(function(e){return d(e[0],e[1])}).join(" ")},t.style=b},2355:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},2662:(e,t,r)=>{"use strict";r.d(t,{t_:()=>o});var n=r(3485);let i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],s=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),o=e=>{if(null==e)return;if("string"!=typeof e)throw TypeError("RFC-3339 date-times must be expressed as strings");let t=s.exec(e);if(!t)throw TypeError("Invalid RFC-3339 date-time value");let[r,i,o,u,c,l,d,g,y]=t,m=(0,n.zi)(p(i)),b=a(m,f(o,"month",1,12),f(u,"day",1,31),{hours:c,minutes:l,seconds:d,fractionalMilliseconds:g});return"Z"!=y.toUpperCase()&&b.setTime(b.getTime()-h(y)),b},a=(e,t,r,n)=>{let i=t-1;return c(e,i,r),new Date(Date.UTC(e,i,r,f(n.hours,"hour",0,23),f(n.minutes,"minute",0,59),f(n.seconds,"seconds",0,60),d(n.fractionalMilliseconds)))},u=[31,28,31,30,31,30,31,31,30,31,30,31],c=(e,t,r)=>{let n=u[t];if(1===t&&l(e)&&(n=29),r>n)throw TypeError(`Invalid day for ${i[t]} in ${e}: ${r}`)},l=e=>e%4==0&&(e%100!=0||e%400==0),f=(e,t,r,i)=>{let s=(0,n.tW)(p(e));if(s<r||s>i)throw TypeError(`${t} must be between ${r} and ${i}, inclusive`);return s},d=e=>null==e?0:1e3*(0,n.UO)("0."+e),h=e=>{let t=e[0],r=1;if("+"==t)r=1;else if("-"==t)r=-1;else throw TypeError(`Offset direction, ${t}, must be "+" or "-"`);return r*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*6e4},p=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)}},2836:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(688);let i=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;let r=new ArrayBuffer(t),i=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,s=0;for(let i=t,o=t+3;i<=o;
1i++)if("="!==e[i]){if(!(e[i]in n.mh))throw TypeError(`Invalid character ${e[i]} in base64 string.`);r|=n.mh[e[i]]<<(o-i)*n._w,s+=n._w}else r>>=n._w;let o=t/4*3;r>>=s%n.kQ;let a=Math.floor(s/n.kQ);for(let e=0;e<a;e++){let t=(a-e-1)*n.kQ;i.setUint8(o+e,(r&255<<t)>>t)}}return new Uint8Array(r)}},2854:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(641);let i=e=>({output:t,parsedBody:r,errorCode:i})=>{(({output:e,parsedBody:t,exceptionCtor:r,errorCode:i})=>{let o=s(e),a=o.httpStatusCode?o.httpStatusCode+"":void 0,u=new r({name:t?.code||t?.Code||i||a||"UnknownError",$fault:"client",$metadata:o});throw(0,n.M)(u,t)})({output:t,parsedBody:r,exceptionCtor:e,errorCode:i})},s=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]})},3127:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},3284:(e,t,r)=>{"use strict";r.d(t,{NM:()=>c,gq:()=>l,Y:()=>g,i6:()=>y,Af:()=>d,TQ:()=>f,_k:()=>h,U7:()=>a,Mk:()=>p,Cw:()=>u});let n="***SensitiveInformation***";var i,s,o=r(4494);class a extends o.H{name="NoSuchUpload";$fault="client";constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),Object.setPrototypeOf(this,a.prototype)}}class u extends o.H{name="ObjectNotInActiveTierError";$fault="client";constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,u.prototype)}}class c extends o.H{name="BucketAlreadyExists";$fault="client";constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),Object.setPrototypeOf(this,c.prototype)}}class l extends o.H{name="BucketAlreadyOwnedByYou";$fault="client";constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),Object.setPrototypeOf(this,l.prototype)}}class f extends o.H{name="NoSuchBucket";$fault="client";constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),Object.setPrototypeOf(this,f.prototype)}}(i||(i={})).visit=(e,t)=>void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1]),(s||(s={})).visit=(e,t)=>void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.AccessPointArn?t.AccessPointArn(e.AccessPointArn):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1]);class d extends o.H{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),Object.setPrototypeOf(this,d.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}}class h extends o.H{name="NoSuchKey";$fault="client";constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),Object.setPrototypeOf(this,h.prototype)}}class p extends o.H{name="NotFound";$fault="client";constructor(e){super({name:"NotFound",$fault:"client",...e}),Object.setPrototypeOf(this,p.prototype)}}let g=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:n},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:n},...e.Credentials&&{Credentials:(e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:n},...e.SessionToken&&{SessionToken:n}}))(e.Credentials)}}),y=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:n},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:n}})},3485:(e,t,r)=>{"use strict";r.d(t,{UO:()=>h,Xk:()=>f,Y0:()=>l,lK:()=>d,tW:()=>m,yG:()=>n,zi:()=>y});let n=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${e}"`)}},i=Math.ceil(17014118346046923e22*(2-11920928955078125e-23)),s=e=>{let t=(e=>{if(null!=e){if("string"==typeof e){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&w.warn(b(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw TypeError(`Expected number, got ${typeof e}: ${e}`)}})(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>i)throw TypeError(`Expected 32-bit float, got ${e}`);return t},o=e=>u(e,16),a=e=>u(e,8),u=(e,t)=>
1{let r=(e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw TypeError(`Expected integer, got ${typeof e}: ${e}`)}})(e);if(void 0!==r&&c(r,t)!==r)throw TypeError(`Expected ${t}-bit integer, got ${e}`);return r},c=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},l=(e,t)=>{if(null==e){if(t)throw TypeError(`Expected a non-null value for ${t}`);throw TypeError("Expected a non-null value")}return e},f=e=>{if(null==e)return;if("object"==typeof e&&!Array.isArray(e))return e;let t=Array.isArray(e)?"array":typeof e;throw TypeError(`Expected object, got ${t}: ${e}`)},d=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return w.warn(b(`Expected string, got ${typeof e}: ${e}`)),String(e);throw TypeError(`Expected string, got ${typeof e}: ${e}`)}},h=e=>"string"==typeof e?s(g(e)):s(e),p=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,g=e=>{let t=e.match(p);if(null===t||t[0].length!==e.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(e)},y=e=>"string"==typeof e?o(g(e)):o(e),m=e=>"string"==typeof e?a(g(e)):a(e),b=e=>String(TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),w={warn:console.warn}},4134:(e,t,r)=>{"use strict";let n=r(7719),i=r(7610),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);let r=0|p(n,i),s=o(r),u=s.write(n,i);return u!==r&&(s=s.slice(0,u)),s}if(ArrayBuffer.isView(e)){var s=e;if(B(s,Uint8Array)){let e=new Uint8Array(s);return d(e.buffer,e.byteOffset,e.byteLength)}return f(s)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return a.from(u,t,r);let c=function(e){if(a.isBuffer(e)){let t=0|h(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(c)return c;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return c(e),o(e<0?0:0|h(e))}function f(e){let t=e.length<0?0:0|h(e.length),r=o(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(e).length;default:if(i)return n?-1:$(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=D[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return w(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":var s,o,a;return s=this,o=t,a=r,0===o&&a===s.length?n.fromByteArray(s):n.fromByteArray(s.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;
vendor: 17,040 bytes, line 1
1e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function y(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){var s;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r*=1)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return b(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){let s,o=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,a/=2,u/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let n=-1;for(s=r;s<a;s++)if(c(e,s)===c(t,-1===n?0:s-n)){if(-1===n&&(n=s),s-n+1===u)return n*o}else -1!==n&&(s-=s-n),n=-1}else for(r+u>a&&(r=a-u),s=r;s>=0;s--){let r=!0;for(let n=0;n<u;n++)if(c(e,s+n)!==c(t,n)){r=!1;break}if(r)return s}return -1}function w(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=r){let r,n,a,u;switch(o){case 1:t<128&&(s=t);break;case 2:(192&(r=e[i+1]))==128&&(u=(31&t)<<6|63&r)>127&&(s=u);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(u=(15&t)<<12|(63&r)<<6|63&n)>2047&&(u<55296||u>57343)&&(s=u);break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],(192&r)==128&&(192&n)==128&&(192&a)==128&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a)>65535&&u<1114112&&(s=u)}}null===s?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=o}var s=n;let o=s.length;if(o<=4096)return String.fromCharCode.apply(String,s);let a="",u=0;for(;u<o;)a+=String.fromCharCode.apply(String,s.slice(u,u+=4096));return a}function x(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function v(e,t,r,n,i,s){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function S(e,t,r,n,i){P(t,n,i,e,r,7);let s=Number(t&BigInt(0xffffffff));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let o=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function A(e,t,r,n,i){P(t,n,i,e,r,7);let s=Number(t&BigInt(0xffffffff));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let o=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function E(e,t,r,n,i,s){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function R(e,t,r,n,s){return t*=1,r>>>=0,s||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function k(e,t,r,n,s){return t*=1,r>>>=0,s||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.hp=a,t.IS=50,a.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(c(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(B(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(B(t,Uint8Array))i+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(a.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},a.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},a.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},a.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?w(this,0,e):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(a.prototype[s]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(B(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let s=i-n,o=r-t,u=Math.min(s,o),c=this.slice(n,i),l=e.slice(t,r);for(let e=0;e<u;++e)if(c[e]!==l[e]){s=c[e],o=l[e];break}return s<o?-1:+(o<s)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){var i,s,o,a,u,c,l,f;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;let o=t.length;for(n>o/2&&(n=o/2),i=0;i<n;++i){var a;let n=parseInt(t.substr(2*i,2),16);if((a=n)!=a)break;e[r+i]=n}return i}(this,e,t,r);case"utf8":case"utf-8":return i=t,s=r,M($(e,this.length-i),this,i,s);case"ascii":case"latin1":case"binary":return o=t,a=r,M(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,a);case"base64":return u=t,c=r,M(N(e),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=t,f=r,M(function(e,t){let r,n,i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i.push(r%256),i.push(n);return i}(e,this.length-l),this,l,f);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=L(function(e){U(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&_(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=L(function(e){U(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&_(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],i=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,s=0;for(;++s<t&&(i*=256);)n+=this[e+s]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=t,i=1,s=this[e+--n];for(;n>0&&(i*=256);)s+=this[e+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},a.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=L(function(e){U(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&_(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),a.prototype.readBigInt64BE=L(function(e){U(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&_(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;v(this,e,t,r,n,0)}let i=1,s=0;for(this[t]=255&e;++s<r&&(i*=256);)this[t+s]=e/i&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;v(this,e,t,r,n,0)}let i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=L(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=L(function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);v(this,e,t,r,n-1,-n)}let i=0,s=1,o=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);v(this,e,t,r,n-1,-n)}let i=r-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s|0)-o&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=L(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=L(function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let s=a.isBuffer(e)?e:a.from(e,n),o=s.length;
1if(0===o)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%o]}return this};let I={};function T(e,t,r){I[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function C(e){let t="",r=e.length,n=+("-"===e[0]);for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function P(e,t,r,n,i,s){if(e>r||e<t){let n,i="bigint"==typeof t?"n":"";throw n=s>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(s+1)*8}${i}`:`>= -(2${i} ** ${(s+1)*8-1}${i}) and < 2 ** ${(s+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new I.ERR_OUT_OF_RANGE("value",n,e)}U(i,"offset"),(void 0===n[i]||void 0===n[i+s])&&_(i,n.length-(s+1))}function U(e,t){if("number"!=typeof e)throw new I.ERR_INVALID_ARG_TYPE(t,"number",e)}function _(e,t,r){if(Math.floor(e)!==e)throw U(e,r),new I.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new I.ERR_BUFFER_OUT_OF_BOUNDS;throw new I.ERR_OUT_OF_RANGE(r||"offset",`>= ${+!!r} and <= ${t}`,e)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),T("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=C(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=C(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let O=/[^+/0-9A-Za-z-_]/g;function $(e,t){let r;t=t||1/0;let n=e.length,i=null,s=[];for(let o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return s}function N(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let D=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function L(e){return"undefined"==typeof BigInt?j:e}function j(){throw Error("BigInt not supported")}},4141:(e,t,r)=>{"use strict";r.d(t,{e:()=>n});let n=e=>null!=e},4186:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},4494:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});var n=r(641);class i extends n.T{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},4498:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},4616:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},4808:(e,t,r)=>{"use strict";r.d(t,{l:()=>s});var n=r(5045);function i(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e,t){return new o(e,t)}class o{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,t){this.input=e,this.context=t}async build(){let{hostname:e,protocol:t="https",port:r,path:i}=await this.context.endpoint();for(let e of(this.path=i,this.resolvePathStack))e(this.path);return new n.K({protocol:t,hostname:this.hostname||e,port:r,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e}),this}p(e,t,r,n){return this.resolvePathStack.push(s=>
1{this.path=((e,t,r,n,s,o)=>{if(null!=t&&void 0!==t[r]){let t=n();if(t.length<=0)throw Error("Empty value provided for input HTTP label: "+r+".");e=e.replace(s,o?t.split("/").map(e=>i(e)).join("/"):i(t))}else throw Error("No value provided for input HTTP label: "+r+".");return e})(s,this.input,e,t,r,n)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}},4996:(e,t,r)=>{"use strict";let n;r.d(t,{Y:()=>ox});var i,s,o,a,u,c,l,f,d,h,p=r(5045);let g={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},y=e=>{if("function"==typeof e)return e;let t=Promise.resolve(e);return()=>t},m={WHEN_SUPPORTED:"WHEN_SUPPORTED"},b=m.WHEN_SUPPORTED,w=m.WHEN_SUPPORTED;!function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"}(o||(o={})),function(e){e.HEADER="header",e.TRAILER="trailer"}(a||(a={})),o.CRC32;let x={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},v={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},S={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};class A{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(!(this.lastPurgeTime+A.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e))for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;n.expiration&&n.expiration.getTime()<e&&delete this.data[t]}}}}class E{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class R{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(e,t=new A){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,i=n.get(r);return i?i.identity.then(e=>(e.expiration?.getTime()??0)<Date.now()?n.set(r,new E(this.getIdentity(r))).identity:((e.expiration?.getTime()??0)<Date.now()+R.REFRESH_WINDOW_MS&&!i.isRefreshing&&(i.isRefreshing=!0,this.getIdentity(r).then(e=>{n.set(r,new E(Promise.resolve(e)))})),e)):n.set(r,new E(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch(e=>{console.warn("Error while clearing expired entries in S3ExpressIdentityCache: \n"+e)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}let k={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"},I={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},T={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},C={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0};function P(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}!function(e){e.ENV="env",e.CONFIG="shared config entry"}(u||(u={}));let U="X-Amz-S3session-Token",_=U.toLowerCase(),O={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},$="__smithy_context",N=e=>e[$]||(e[$]={}),M={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},B=async(e,t,r,n)=>{let i=await n.signWithCredentials(r,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return i},D=e=>{if("function"==typeof e)return e;let t=Promise.resolve(e);return()=>t},L=void 0,j={},H=RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),z=(e,t=!1)=>
1{if(!t)return H.test(e);for(let t of e.split("."))if(!z(t))return!1;return!0},F=RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),q=e=>F.test(e)||e.startsWith("[")&&e.endsWith("]"),V=(e,t=!1)=>{if(t){for(let t of e.split("."))if(!V(t))return!1;return!0}return!(!z(e)||e.length<3||e.length>63||e!==e.toLowerCase()||q(e))},K=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il|mx)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-east-2":{"description":"Asia Pacific (Taipei)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"ap-southeast-5":{"description":"Asia Pacific (Malaysia)"},"ap-southeast-6":{"description":"Asia Pacific (New Zealand)"},"ap-southeast-7":{"description":"Asia Pacific (Thailand)"},"aws-global":{"description":"aws global region"},"ca-central-1":{"description":"Canada (Central)"},"ca-west-1":{"description":"Canada West (Calgary)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"mx-central-1":{"description":"Mexico (Central)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"aws-cn global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-eusc","outputs":{"dnsSuffix":"amazonaws.eu","dualStackDnsSuffix":"api.amazonwebservices.eu","implicitGlobalRegion":"eusc-de-east-1","name":"aws-eusc","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^eusc\\\\-(de)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"eusc-de-east-1":{"description":"EU (Germany)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"api.aws.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"aws-iso global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"api.aws.scloud","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"aws-iso-b global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"api.cloud-aws.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":true,"supportsFIPS":true}
1,"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-e-global":{"description":"aws-iso-e global region"},"eu-isoe-west-1":{"description":"EU ISOE West"}}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"api.aws.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-f-global":{"description":"aws-iso-f global region"},"us-isof-east-1":{"description":"US ISOF EAST"},"us-isof-south-1":{"description":"US ISOF SOUTH"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"aws-us-gov global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}}],"version":"1.1"}'),W={isVirtualHostableS3Bucket:V,parseArn:e=>{let t=e.split(":");if(t.length<6)return null;let[r,n,i,s,o,...a]=t;return"arn"!==r||""===n||""===i||""===a.join(":")?null:{partition:n,service:i,region:s,accountId:o,resourceId:a.map(e=>e.split("/")).flat()}},partition:e=>{let{partitions:t}=K;for(let r of t){let{regions:t,outputs:n}=r;for(let[r,i]of Object.entries(t))if(r===e)return{...n,...i}}for(let r of t){let{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}let r=t.find(e=>"aws"===e.id);if(!r)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}}};j.aws=W;let Z=/\d{12}\.ddb/;async function G(e,t,r){let n=r.request;if(n?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&P(e,"PROTOCOL_RPC_V2_CBOR","M"),"function"==typeof t.retryStrategy){let r=await t.retryStrategy();"function"==typeof r.acquireInitialRetryToken?r.constructor?.name?.includes("Adaptive")?P(e,"RETRY_MODE_ADAPTIVE","F"):P(e,"RETRY_MODE_STANDARD","E"):P(e,"RETRY_MODE_LEGACY","D")}if("function"==typeof t.accountIdEndpointMode){let r=e.endpointV2;switch(String(r?.url?.hostname).match(Z)&&P(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":P(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":P(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":P(e,"ACCOUNT_ID_MODE_REQUIRED","R")}}let i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source)for(let[t,r]of(i.accountId&&P(e,"RESOLVED_ACCOUNT_ID","T"),Object.entries(i.$source??{})))P(e,t,r)}let Y="user-agent",X="x-amz-user-agent",J=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,Q=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,ee=e=>{let t=e[0].split("/").map(e=>e.replace(J,"-")).join("/"),r=e[1]?.replace(Q,"-"),n=t.indexOf("/"),i=t.substring(0,n),s=t.substring(n+1);return"api"===i&&(s=s.toLowerCase()),[i,s,r].filter(e=>e&&e.length>0).reduce((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},"")},et={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},er=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),en=e=>er(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,ei={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};class es{authSchemes=new Map;constructor(e){for(let[t,r]of Object.entries(e))void 0!==r&&this.authSchemes.set(t,r)}getIdentityProvider(e){return this.authSchemes.get(e)}}let eo="content-length",ea={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},eu=async e=>void 0,ec=e=>{let t;if("string"==typeof e)return ec(new URL(e));let{hostname:r,pathname:n,port:i,protocol:s,search:o}=e;return o&&(t=function(e){let t={};if(e=e.replace(/^\?/,""))for(let r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(o)),{hostname:r,port:i?parseInt(i):void 0,protocol:s,path:n,query:t}},el=e=>"object"==typeof e?"url"in e?ec(e.url):e:ec(e);!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(c||(c={}));let ef=c.STANDARD,ed=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],eh=["TimeoutError","RequestTimeout","RequestTimeoutException"],ep=[500,502,503,504],eg=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],ey=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],em=e=>e.$metadata?.httpStatusCode===429||ed.includes(e.name)||e.$retryable?.throttling==!0,eb=(e,t=0)=>e?.$retryable!==void 0||e.$metadata?.clockSkewCorrected||eh.includes(e.name)||eg.includes(e?.code||"")||ey.includes(e?.code||"")||ep.includes(e.$metadata?.httpStatusCode||0)||(e=>{let t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return!!(e&&e instanceof TypeError)&&t.has(e.message)})(e)||void 0!==e.cause&&t<=10&&eb(e.cause,t+1);class ew{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;let t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,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(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){let t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(e=>ew.setTimeoutFn(e,t))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),em(e)){let e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}
1calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let e=Math.floor(2*this.getCurrentTimeInSeconds())/2;if(this.requestCount++,e>this.lastTxRateBucket){let t=this.requestCount/(e-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(t*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=e}}getPrecise(e){return parseFloat(e.toFixed(8))}}let ex=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(2e4,e),getRetryCost:()=>r});class ev{maxAttempts;mode=c.STANDARD;capacity=500;retryBackoffStrategy=(()=>{let e=100;return{computeNextBackoffDelay:t=>Math.floor(Math.min(2e4,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})();maxAttemptsProvider;constructor(e){this.maxAttempts=e,this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return ex({retryDelay:100,retryCount:0})}async refreshRetryTokenForRetry(e,t){let r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){let r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:100);let n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),i=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,s=this.getCapacityCost(r);return this.capacity-=s,ex({retryDelay:i,retryCount:e.getRetryCount()+1,retryCost:s})}throw Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class eS{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=c.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;let{rateLimiter:r}=t??{};this.rateLimiter=r??new ew,this.standardRetryStrategy=new ev(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}class eA{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){return!!e&&"number"==typeof e.statusCode&&"object"==typeof e.headers}}class eE{trace(){}debug(){}info(){}warn(){}error(){}}let eR="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ek=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),eI=e=>e?.body instanceof ReadableStream,eT=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):"string"==typeof e?Error(e):Error(`AWS SDK error wrapper for ${e}`),eC=e=>{let t={error:e,errorType:eP(e)},r=e_(e.$response);return r&&(t.retryAfterHint=r),t},eP=e=>em(e)?"THROTTLING":eb(e)?"TRANSIENT":(e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!eb(e))return!0}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",eU={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},e_=e=>{if(!eA.isInstance(e))return;let t=Object.keys(e.headers).find(e=>"retry-after"===e.toLowerCase());if(!t)return;let r=e.headers[t],n=Number(r);return new Date(Number.isNaN(n)?r:1e3*n)},eO=(e,t)=>{let r=[];if(e&&r.push(e),t)for(let e of t)r.push(e);return r},e$=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,eN=()=>{let e=[],t=[],r=!1,n=new Set,i=r=>
1(e.forEach(e=>{r.add(e.middleware,{...e})}),t.forEach(e=>{r.addRelativeTo(e.middleware,{...e})}),r.identifyOnResolve?.(a.identifyOnResolve()),r),s=e=>{let t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...s(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...s(e))}),t},o=(r=!1)=>{let n=[],i=[],o={};return e.forEach(e=>{let t={...e,before:[],after:[]};for(let e of eO(t.name,t.aliases))o[e]=t;n.push(t)}),t.forEach(e=>{let t={...e,before:[],after:[]};for(let e of eO(t.name,t.aliases))o[e]=t;i.push(t)}),i.forEach(e=>{if(e.toMiddleware){let t=o[e.toMiddleware];if(void 0===t){if(r)return;throw Error(`${e.toMiddleware} is not found when adding ${e$(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}),n.sort((e,t)=>eM[t.step]-eM[e.step]||eB[t.priority||"normal"]-eB[e.priority||"normal"]).map(s).reduce((e,t)=>(e.push(...t),e),[])},a={add:(t,r={})=>{let{name:i,override:s,aliases:o}=r,a={step:"initialize",priority:"normal",middleware:t,...r},u=eO(i,o);if(u.length>0){if(u.some(e=>n.has(e))){if(!s)throw Error(`Duplicate middleware name '${e$(i,o)}'`);for(let t of u){let r=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(-1===r)continue;let n=e[r];if(n.step!==a.step||a.priority!==n.priority)throw Error(`"${e$(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${e$(i,o)}" middleware with ${a.priority} priority in ${a.step} step.`);e.splice(r,1)}}for(let e of u)n.add(e)}e.push(a)},addRelativeTo:(e,r)=>{let{name:i,override:s,aliases:o}=r,a={middleware:e,...r},u=eO(i,o);if(u.length>0){if(u.some(e=>n.has(e))){if(!s)throw Error(`Duplicate middleware name '${e$(i,o)}'`);for(let e of u){let r=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(-1===r)continue;let n=t[r];if(n.toMiddleware!==a.toMiddleware||n.relation!==a.relation)throw Error(`"${e$(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${e$(i,o)}" middleware ${a.relation} "${a.toMiddleware}" middleware.`);t.splice(r,1)}}for(let e of u)n.add(e)}t.push(a)},clone:()=>i(eN()),use:e=>{e.applyToStack(a)},remove:r=>"string"==typeof r?(r=>{let i=!1,s=e=>{let t=eO(e.name,e.aliases);if(t.includes(r)){for(let e of(i=!0,t))n.delete(e);return!1}return!0};return e=e.filter(s),t=t.filter(s),i})(r):(r=>{let i=!1,s=e=>{if(e.middleware===r){for(let t of(i=!0,eO(e.name,e.aliases)))n.delete(t);return!1}return!0};return e=e.filter(s),t=t.filter(s),i})(r),removeByTag:r=>{let i=!1,s=e=>{let{tags:t,name:s,aliases:o}=e;if(t&&t.includes(r)){for(let e of eO(s,o))n.delete(e);return i=!0,!1}return!0};return e=e.filter(s),t=t.filter(s),i},concat:e=>{let t=i(eN());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:i,identify:()=>o(!0).map(e=>{let t=e.step??e.relation+" "+e.toMiddleware;return e$(e.name,e.aliases)+" - "+t}),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(let r of o().map(e=>e.middleware).reverse())e=r(e,t);return r&&console.log(a.identify()),e}};return a},eM={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},eB={high:3,normal:2,low:1};class eD{config;middlewareStack=eN();initConfig;handlers;constructor(e){this.config=e}send(e,t,r){let n,i="function"!=typeof t?t:void 0,s="function"==typeof t?t:r;if(void 0===i&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);let t=this.handlers;t.has(e.constructor)?n=t.get(e.constructor):(n=e.resolveMiddleware(this.middlewareStack,this.config,i),t.set(e.constructor,n))}else delete this.handlers,n=e.resolveMiddleware(this.middlewareStack,this.config,i);if(!s)return n(e).then(e=>e.output);n(e).then(e=>s(null,e.output),e=>s(e)).catch(()=>{})}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}let eL=function(e){return ej(e)&&e.expiration.getTime()-Date.now()<3e5},ej=e=>void 0!==e.expiration,eH={},ez={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),eH[e]=t,ez[t]=e}function eF(e){if(e.length%2!=0)throw Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let n=e.slice(r,r+2).toLowerCase();if(n in ez)t[r/2]=ez[n];else throw Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}function eq(e){let t="";for(let r=0;r<e.byteLength;r++)t+=eH[e[r]];return t}var eV=r(1204);let eK=e=>"string"==typeof e?(0,eV.a)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),eW="X-Amz-Date",eZ="X-Amz-Signature",eG="X-Amz-Security-Token",eY="authorization",eX=eW.toLowerCase(),eJ=[eY,eX,"date"],eQ=eZ.toLowerCase(),e0="x-amz-content-sha256",e1=eG.toLowerCase(),e2={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},e3=/^proxy-/,e6=/^sec-/,e4="AWS4-HMAC-SHA256",e8="aws4_request",e5={},e9=[],e7=(e,t,r)=>`${e}/${t}/${r}/${e8}`,te=async(e,t,r,n,i)=>{let s=await tt(e,t.secretAccessKey,t.accessKeyId),o=`${r}:${n}:${i}:${eq(s)}:${t.sessionToken}`;if(o in e5)return e5[o];for(e9.push(o);e9.length>50;)delete e5[e9.shift()];let a=`AWS4${t.secretAccessKey}`;for(let t of[r,n,i,e8])a=await tt(e,a,t);return e5[o]=a},tt=(e,t,r)=>{let n=new e(t);return n.update(eK(r)),n.digest()},tr=({headers:e},t,r)=>{let n={};for(let i of Object.keys(e).sort()){if(void 0==e[i])continue;let s=i.toLowerCase();(!(s in e2||t?.has(s)||e3.test(s)||e6.test(s))||r&&(!r||r.has(s)))&&(n[s]=e[i].trim().replace(/\s+/g," "))}return n},tn=async({headers:e,body:t},r)=>{for(let t of Object.keys(e))if(t.toLowerCase()===e0)return e[t];if(void 0==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e))(t)){let e=new r;return e.update(eK(t)),eq(await e.digest())}return"UNSIGNED-PAYLOAD"};class ti{format(e){let t=[];for(let r of Object.keys(e)){let n=(0,eV.a)(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}let r=new Uint8Array(t.reduce((e,t)=>
1e+t.byteLength,0)),n=0;for(let e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([+!e.value]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let s=new Uint8Array(i.buffer);return s.set(e.value,3),s;case"string":let o=(0,eV.a)(e.value),a=new DataView(new ArrayBuffer(3+o.byteLength));a.setUint8(0,7),a.setUint16(1,o.byteLength,!1);let u=new Uint8Array(a.buffer);return u.set(o,3),u;case"timestamp":let c=new Uint8Array(9);return c[0]=8,c.set(to.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!ts.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(eF(e.value.replace(/\-/g,"")),1),l}}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(l||(l={}));let ts=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class to{bytes;constructor(e){if(this.bytes=e,8!==e.byteLength)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&ta(t),new to(t)}valueOf(){let e=this.bytes.slice(0),t=128&e[0];return t&&ta(e),parseInt(eq(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function ta(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}let tu=e=>{for(let t of Object.keys((e=p.K.clone(e)).headers))eJ.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},tc=e=>encodeURIComponent(e).replace(/[!'()*]/g,tl),tl=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;class tf{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:i,uriEscapePath:s=!0}){this.service=n,this.sha256=i,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=y(r),this.credentialProvider=y(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
2${this.getCanonicalPath(e)}
3${(({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===eQ)continue;let i=tc(n);t.push(i);let s=e[n];"string"==typeof s?r[i]=`${i}=${tc(s)}`:Array.isArray(s)&&(r[i]=s.slice(0).reduce((e,t)=>e.concat([`${i}=${tc(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>r[e]).filter(e=>e).join("&")})(e)}
4${n.map(e=>`${e}:${t[e]}`).join("\n")}
5
6${n.join(";")}
7${r}`}async createStringToSign(e,t,r,n){let i=new this.sha256;i.update(eK(r));let s=await i.digest();return`${n}
8${e}
9${t}
10${eq(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let r of e.split("/"))r?.length!==0&&"."!==r&&(".."===r?t.pop():t.push(r));return tc(`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw Error("Resolved credential object is not valid")}formatDate(e){var t;let r=("number"==typeof(t=e)?new Date(1e3*t):"string"==typeof t?new Date(Number(t)?1e3*Number(t):t):t).toISOString().replace(/\.\d{3}Z$/,"Z").replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class td extends tf{headerFormatter=new ti;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:i,uriEscapePath:s=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:i,uriEscapePath:s})}async presign(e,t={}
10){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:i,unhoistableHeaders:s,signableHeaders:o,hoistableHeaders:a,signingRegion:u,signingService:c}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let f=u??await this.regionProvider(),{longDate:d,shortDate:h}=this.formatDate(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let g=e7(h,f,c??this.service),y=((e,t={})=>{let{headers:r,query:n={}}=p.K.clone(e);for(let e of Object.keys(r)){let i=e.toLowerCase();("x-amz-"===i.slice(0,6)&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(tu(e),{unhoistableHeaders:s,hoistableHeaders:a});l.sessionToken&&(y.query[eG]=l.sessionToken),y.query["X-Amz-Algorithm"]=e4,y.query["X-Amz-Credential"]=`${l.accessKeyId}/${g}`,y.query[eW]=d,y.query["X-Amz-Expires"]=n.toString(10);let m=tr(y,i,o);return y.query["X-Amz-SignedHeaders"]=this.getCanonicalHeaderList(m),y.query[eZ]=await this.get
10Signature(d,g,this.getSigningKey(l,f,h,c),this.createCanonicalRequest(y,m,await tn(e,this.sha256))),y}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:i,signingService:s}){let o=i??await this.regionProvider(),{shortDate:a,longDate:u}=this.formatDate(r),c=e7(a,o,s??this.service),l=await tn({headers:{},body:t},this.sha256),f=new this.sha256;f.update(e);let d=["AWS4-HMAC-SHA256-PAYLOAD",u,c,n,eq(await f.digest()),l].join("\n");return this.signString(d,{signingDate:r,signingRegion:o,signingService:s})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){let i=await this.credentialProvider();this.validateResolvedCredentials(i);let s=r??await this.regionProvider(),{shortDate:o}
10=this.formatDate(t),a=new this.sha256(await this.getSigningKey(i,s,o,n));return a.update(eK(e)),eq(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:i,signingService:s}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let a=i??await this.regionProvider(),u=tu(e),{longDate:c,shortDate:l}=this.formatDate(t),f=e7(l,a,s??this.service);u.headers[eX]=c,o.sessionToken&&(u.headers[e1]=o.sessionToken);let d=await tn(u,this.sha256);!((e,t)=>{for(let r of(e=e.toLowerCase(),Object.keys(t)))if(e===r.toLowerCase())return!0;return!1})(e0,u.headers)&&this.applyChecksum&&(u.headers[e0]=d);let h=tr(u,n,r),p=await this.getSignature(c,f,this.getSigningKey(o,a,l,s),this.createCanonicalRequest(u,h,d));return u.headers[eY]=`${e4} Credential=${o.accessKeyId}/${f}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${p}`,u}async getSignature(e,t,r,n){let i=await this.createStringToSign(e,t,n,e4),s=new this.sha256(await r);return s.update(eK(i)),eq(await s.digest())}getSigningKey(e,t,r,n){return te(this.sha256,e,r,t,n||this.service)}}class th extends td{async signWithCredentials(e,t,r){let n=tp(t);return e.headers[_]=t.sessionToken,tg(this,n),this.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=tp(t);return delete e.headers[_],e.headers[U]=t.sessionToken,e.query=e.query??{},e.query[U]=t.sessionToken,tg(this,n),this.presign(e,r)}}function tp(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function tg(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider;e.credentialProvider=()=>(clearTimeout(r),e.credentialProvider=n,Promise.resolve(t))}let ty={SignatureV4a:null},tm={CrtSignerV4:null};class tb{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return"function"==typeof tm.CrtSignerV4?"crt":"function"==typeof ty.SignatureV4a?"js":"none"}constructor(e){this.sigv4Signer=new th(e),this.signerOptions=e}async sign(e,t={}){return"*"===t.signingRegion?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if("*"===r.signingRegion){let n=this.getSigv4aSigner(),i=tm.CrtSignerV4;if(i&&n instanceof i)return n.signWithCredentials(e,t,r);throw Error('signWithCredentials with signingRegion \'*\' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt')}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if("*"===t.signingRegion){let r=this.getSigv4aSigner(),n=tm.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);throw Error('presign with signingRegion \'*\' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt')}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if("*"===r.signingRegion)throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=tm.CrtSignerV4,t=ty.SignatureV4a;if("node"===this.signerOptions.runtime){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&"function"==typeof e)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&"function"==typeof t)this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||"function"!=typeof t)throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}let tw=async e=>{let t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),tE(t)){if(!0===e.ForcePathStyle)throw Error("Path-style addressing cannot be used with ARN buckets")}else tA(t)&&(-1===t.indexOf(".")||String(e.Endpoint).startsWith("http:"))&&t.toLowerCase()===t&&!(t.length<3)||(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP
10=!0),e},tx=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,tv=/(\d+\.){3}\d+/,tS=/\.\./,tA=e=>tx.test(e)&&!tv.test(e)&&!tS.test(e),tE=e=>{let[t,r,n,,,i]=e.split(":"),s="arn"===t&&e.split(":").length>=6,o=!!(s&&r&&n&&i);if(s&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},tR=(e,t,r)=>{let n=async()=>{let n=r[e]??r[t];return"function"==typeof n?n():n};return"credentialScope"===e||"CredentialScope"===t?async()=>{let e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{let e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===r.isCustomEndpoint)return;let e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){let{protocol:t,hostname:r,port:n,path:i}=e;return`${t}//${r}${n?":"+n:""}${i}`}}return e}:n},tk=async(e,t,r,n)=>{if(!r.isCustomEndpoint){let e;(e=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await eu(r.serviceId))&&(r.endpoint=()=>Promise.resolve(el(e)),r.isCustomEndpoint=!0)}let i=await tI(e,t,r);if("function"!=typeof r.endpointProvider)throw Error("config.endpointProvider is not set.");return r.endpointProvider(i,n)},tI=async(e,t,r)=>{let n={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,s]of Object.entries(i))switch(s.type){case"staticContextParams":n[t]=s.value;break;case"contextParams":n[t]=e[s.name];break;case"clientContextParams":case"builtInParams":n[t]=await tR(s.name,t,r)();break;case"operationContextParams":n[t]=s.get(e);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(s))}return 0===Object.keys(i).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await tw(n),n};class tT{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let r=this.hash(e);if(!1===r)return t();if(!this.data.has(r)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:r,done:n}=e.next();if(this.data.delete(r),n||++t>10)break}}this.data.set(r,t())}return this.data.get(r)}size(){return this.data.size}hash(e){let t="",{parameters:r}=this;if(0===r.length)return!1;for(let n of r){let r=String(e[n]??"");if(r.includes("|;"))return!1;t+=r+"|;"}return t}}let tC="endpoints";function tP(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${tP(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(tP).join(", ")})`:JSON.stringify(e,null,2)}class tU extends Error{constructor(e){super(e),this.name="EndpointError"}}let t_=(e,t)=>(e=>{let t=e.split("."),r=[];for(let n of t){let t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new tU(`Path: '${e}' does not end with ']'`);let i=n.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new tU(`Invalid array index: '${i}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(i)}else r.push(n)}return r})(t).reduce((r,n)=>{if("object"!=typeof r)throw new tU(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},e);!function(e){e.HTTP="http",e.HTTPS="https"}(f||(f={}));let tO={[f.HTTP]:80,[f.HTTPS]:443},t$={booleanEquals:(e,t)=>e===t,getAttr:t_,isSet:e=>null!=e,isValidHostLabel:z,not:e=>!e,parseURL:e=>{let t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){let{hostname:t,port:r,protocol:n="",path:i="",query:s={}}=e,o=new URL(`${n}//${t}${r?`:${r}`:""}${i}`);return o.search=Object.entries(s).map(([e,t])=>`${e}=${t}`).join("&"),o}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=t.href,{host:n,hostname:i,pathname:s,protocol:o,search:a}=t;if(a)return null;let u=o.slice(0,-1);if(!Object.values(f).includes(u))return null;let c=q(i),l=r.includes(`${n}:${tO[u]}`)||"string"==typeof e&&e.includes(`${n}:${tO[u]}`),d=`${n}${l?`:${tO[u]}`:""}`;return{scheme:u,authority:d,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:c}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}
10,tN=(e,t)=>{let r=[],n={...t.endpointParams,...t.referenceRecord},i=0;for(;i<e.length;){let t=e.indexOf("{",i);if(-1===t){r.push(e.slice(i));break}r.push(e.slice(i,t));let s=e.indexOf("}",t);if(-1===s){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[s+1]&&(r.push(e.slice(t+1,s)),i=s+2);let o=e.substring(t+1,s);if(o.includes("#")){let[e,t]=o.split("#");r.push(t_(n[e],t))}else r.push(n[o]);i=s+1}return r.join("")},tM=(e,t,r)=>{if("string"==typeof e)return tN(e,r);if(e.fn)return tB(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e])(e,r);throw new tU(`'${t}': ${String(e)} is not a string, function or reference.`)},tB=({fn:e,argv:t},r)=>{let n=t.map(e=>["boolean","number"].includes(typeof e)?e:tM(e,"arg",r)),i=e.split(".");return i[0]in j&&null!=i[1]?j[i[0]][i[1]](...n):t$[e](...n)},tD=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new tU(`'${e}' is already defined in Reference Record.`);let n=tB(t,r);return r.logger?.debug?.(`${tC} evaluateCondition: ${tP(t)} = ${tP(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},tL=(e=[],t)=>{let r={};for(let n of e){let{result:e,toAssign:i}=tD(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};i&&(r[i.name]=i.value,t.logger?.debug?.(`${tC} assign: ${i.name} := ${tP(i.value)}`))}return{result:!0,referenceRecord:r}},tj=(e,t)=>{if(Array.isArray(e))return e.map(e=>tj(e,t));switch(typeof e){case"string":return tN(e,t);case"object":if(null===e)throw new tU(`Unexpected endpoint property: ${e}`);return tH(e,t);case"boolean":return e;default:throw new tU(`Unexpected endpoint property type: ${typeof e}`)}},tH=(e,t)=>Object.entries(e).reduce((e,[r,n])=>({...e,[r]:tj(n,t)}),{}),tz=(e,t)=>{let{conditions:r,endpoint:n}=e,{result:i,referenceRecord:s}=tL(r,t);if(!i)return;let o={...t,referenceRecord:{...t.referenceRecord,...s}},{url:a,properties:u,headers:c}=n;return t.logger?.debug?.(`${tC} Resolving endpoint from template: ${tP(n)}`),{...void 0!=c&&{headers:Object.entries(c).reduce((e,[t,r])=>({...e,[t]:r.map(e=>{let r=tM(e,"Header value entry",o);if("string"!=typeof r)throw new tU(`Header '${t}' value '${r}' is not a string`);return r})}),{})},...void 0!=u&&{properties:tH(u,o)},url:((e,t)=>{let r=tM(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new tU(`Endpoint URL must be a string, got ${typeof r}`)})(a,o)}},tF=(e,t)=>{let{conditions:r,error:n}=e,{result:i,referenceRecord:s}=tL(r,t);if(i)throw new tU(tM(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...s}}))},tq=(e,t)=>{let{conditions:r,rules:n}=e,{result:i,referenceRecord:s}=tL(r,t);if(i)return tV(n,{...t,referenceRecord:{...t.referenceRecord,...s}})},tV=(e,t)=>{for(let r of e)if("endpoint"===r.type){let e=tz(r,t);if(e)return e}else if("error"===r.type)tF(r,t);else if("tree"===r.type){let e=tq(r,t);if(e)return e}else throw new tU(`Unknown endpoint rule: ${r}`);throw new tU("Rules evaluation failed")},tK="required",tW="type",tZ="rules",tG="conditions",tY="argv",tX="assign",tJ="properties",tQ="backend",t0="authSchemes",t1="disableDoubleEncoding",t2="signingName",t3="signingRegion",t6="headers",t4="signingRegionSet",t8="isSet",t5="booleanEquals",t9="error",t7="aws.partition",re="stringEquals",rt="getAttr",rr="name",rn="substring",ri="bucketSuffix",rs="parseURL",ro="endpoint",ra="tree",ru="aws.isVirtualHostableS3Bucket",rc="{url#scheme}://{Bucket}.{url#authority}{url#path}",rl="accessPointSuffix",rf="{url#scheme}://{url#authority}{url#path}",rd="hardwareType",rh="regionPrefix",rp="bucketAliasSuffix",rg="outpostId",ry="isValidHostLabel",rm="sigv4a",rb="s3-outposts",rw="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",rx="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",rv="https://{Bucket}.s3.{partitionResult#dnsSuffix}",rS="aws.parseArn",rA="bucketArn",rE="arnType",rR="s3-object-lambda",rk="accesspoint",rI="accessPointName",rT="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",rC="mrapPartition",rP="outpostType",rU="arnPrefix",r_="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",rO="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",r$="https://s3.{partitionResult#dnsSuffix}",rN={[tK]:!1,[tW]:"String"},rM={[tK]:!0,default:!1,[tW]:"Boolean"},rB={[tK]:!1,[tW]:"Boolean"},rD={fn:t5,[tY]:[{ref:"Accelerate"},!0]},rL={fn:t5,[tY]:[{ref:"UseFIPS"}
10,!0]},rj={fn:t5,[tY]:[{ref:"UseDualStack"},!0]},rH={fn:t8,[tY]:[{ref:"Endpoint"}]},rz={fn:t7,[tY]:[{ref:"Region"}],[tX]:"partitionResult"},rF={fn:re,[tY]:[{fn:rt,[tY]:[{ref:"partitionResult"},rr]},"aws-cn"]},rq={fn:t8,[tY]:[{ref:"Bucket"}]},rV={ref:"Bucket"},rK={[tG]:[rj],[t9]:"S3Express does not support Dual-stack.",[tW]:t9},rW={[tG]:[rD],[t9]:"S3Express does not support S3 Accelerate.",[tW]:t9},rZ={[tG]:[rH,{fn:rs,[tY]:[{ref:"Endpoint"}],[tX]:"url"}],[tZ]:[{[tG]:[{fn:t8,[tY]:[{ref:"DisableS3ExpressSessionAuth"}]},{fn:t5,[tY]:[{ref:"DisableS3ExpressSessionAuth"},!0]}],[tZ]:[{[tG]:[{fn:t5,[tY]:[{fn:rt,[tY]:[{ref:"url"},"isIp"]},!0]}],[tZ]:[{[tG]:[{fn:"uriEncode",[tY]:[rV],[tX]:"uri_encoded_bucket"}],[tZ]:[{[ro]:{url:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[tJ]:{[tQ]:"S3Express",[t0]:[{[t1]:!0,[rr]:"sigv4",[t2]:"s3express",[t3]:"{Region}"}]},[t6]:{}},[tW]:ro}],[tW]:ra}],[tW]:ra},{[tG]:[{fn:ru,[tY]:[rV,!1]}],[tZ]:[{[ro]:{url:rc,[tJ]:{[tQ]:"S3Express",[t0]:[{[t1]:!0,[rr]:"sigv4",[t2]:"s3express",[t3]:"{Region}"}]},[t6]:{}},[tW]:ro}],[tW]:ra},{[t9]:"S3Express bucket name is not a valid virtual hostable name.",[tW]:t9}],[tW]:ra},{[tG]:[{fn:t5,[tY]:[{fn:rt,[tY]:[{ref:"url"},"isIp"]},!0]}],[tZ]:[{[tG]:[{fn:"uriEncode",[tY]:[rV],[tX]:"uri_encoded_bucket"}],[tZ]:[{[ro]:{url:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[tJ]:{[tQ]:"S3Express",[t0]:[{[t1]:!0,[rr]:"sigv4-s3express",[t2]:"s3express",[t3]:"{Region}"}]},[t6]:{}},[tW]:ro}],[tW]:ra}],[tW]:ra},{[tG]:[{fn:ru,[tY]:[rV,!1]}],[tZ]:[{[ro]:{url:rc,[tJ]:{[tQ]:"S3Express",[t0]:[{[t1]:!0,[rr]:"sigv4-s3express",[t2]:"s3express",[t3]:"{Region}"}]},[t6]:{}},[tW]:ro}],[tW]:ra},{[t9]:"S3Express bucket name is not a valid virtual hostable name.",[tW]:t9}],[tW]:ra},rG={fn:rs,[tY]:[{ref:"Endpoint"}],[tX]:"url"},rY={fn:t5,[tY]:[{fn:rt,[tY]:[{ref:"url"},"isIp"]},!0]},rX={ref:"url"},rJ={fn:"uriEncode",[tY]:[rV],[tX]:"uri_encoded_bucket"},rQ={[tQ]:"S3Express",[t0]:[{[t1]:!0,[rr]:"sigv4",[t2]:"s3express",[t3]:"{Region}"}]},r0={},r1={fn:ru,[tY]:[rV,!1]},r2={[t9]:"S3Express bucket name is not a valid virtual hostable name.",[tW]:t9},r3={fn:t8,[tY]:[{ref:"UseS3ExpressControlEndpoint"}]},r6={fn:t5,[tY]:[{ref:"UseS3ExpressControlEndpoint"},!0]},r4={fn:"not",[tY]:[rH]},r8={[t9]:"Unrecognized S3Express bucket name format.",[tW]:t9},r5={fn:"not",[tY]:[rq]},r9={ref:rd},r7={[tG]:[r4],[t9]:"Expected a endpoint to be specified but no endpoint was found",[tW]:t9},ne={[t0]:[{[t1]:!0,[rr]:rm,[t2]:rb,[t4]:["*"]},{[t1]:!0,[rr]:"sigv4",[t2]:rb,[t3]:"{Region}"}]},nt={fn:t5,[tY]:[{ref:"ForcePathStyle"},!1]},nr={fn:t5,[tY]:[{ref:"Accelerate"},!1]},nn={fn:re,[tY]:[{ref:"Region"},"aws-global"]},ni={[t0]:[{[t1]:!0,[rr]:"sigv4",[t2]:"s3",[t3]:"us-east-1"}]},ns={fn:"not",[tY]:[nn]},no={fn:t5,[tY]:[{ref:"UseGlobalEndpoint"},!0]},na={url:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[tJ]:{[t0]:[{[t1]:!0,[rr]:"sigv4",[t2]:"s3",[t3]:"{Region}"}]},[t6]:{}},nu={[t0]:[{[t1]:!0,[rr]:"sigv4",[t2]:"s3",[t3]:"{Region}"}]},nc={fn:t5,[tY]:[{ref:"UseGlobalEndpoint"},!1]},nl={fn:t5,[tY]:[{ref:"UseDualStack"},!1]},nf={url:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[tJ]:nu,[t6]:{}},nd={fn:t5,[tY]:[{ref:"UseFIPS"},!1]},nh={url:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[tJ]:nu,[t6]:{}},np={url:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[tJ]:nu,[t6]:{}},ng={fn:t5,[tY]:[{fn:rt,[tY]:[rX,"isIp"]},!1]},ny={url:rw,[tJ]:nu,[t6]:{}},nm={url:rc,[tJ]:nu,[t6]:{}},nb={[ro]:nm,[tW]:ro},nw={url:rx,[tJ]:nu,[t6]:{}},nx={url:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[tJ]:nu,[t6]:{}},nv={[t9]:"Invalid region: region was not a valid DNS name.",[tW]:t9},nS={ref:rA},nA={ref:rE},nE={fn:rt,[tY]:[nS,"service"]},nR={ref:rI},nk={[tG]:[rj],[t9]:"S3 Object Lambda does not support Dual-stack",[tW]:t9},nI={[tG]:[rD],[t9]:"S3 Object Lambda does not support S3 Accelerate",[tW]:t9},nT={[tG]:[{fn:t8,[tY]:[{ref:"DisableAccessPoints"}]},{fn:t5,[tY]:[{ref:"DisableAccessPoints"},!0]}],[t9]:"Access points are not supported for this operation",[tW]:t9},nC={[tG]:[{fn:t8,[tY]:[{ref:"UseArnRegion"}]},{fn:t5,[tY]:[{ref:"UseArnRegion"},!1]},{fn:"not",[tY]:[{fn:re,[tY]:[{fn:rt,[tY]:[nS,"region"]},"{Region}"]}]}],[t9]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[tW]:t9},nP={fn:rt,[tY]:[{ref:"bucketPartition"},rr]},nU={fn:rt,[tY]:[nS,"accountId"]},n_={[t0]:[{[t1]:!0,[rr]:"sigv4",[t2]:rR,[t3]:"{bucketArn#region}"}]},nO={[t9]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[tW]:t9},n$={[t9]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[tW]:t9},nN={[t9]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[tW]:t9},nM={[t9]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[tW]:t9},nB={[t9]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[tW]:t9},nD={[t9]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[tW]:t9},nL={[t0]:[{[t1]:!0,[rr]:"sigv4",[t2]:"s3",[t3]:"{bucketArn#region}"}]},nj={[t0]:[{[t1]:!0,[rr]:rm,[t2]:rb,[t4]:["*"]},{[t1]:!0,[rr]:"sigv4",[t2]:rb,[t3]:"{bucketArn#region}"}]},nH={fn:rS,[tY]:[rV]},nz={url:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[tJ]:nu,[t6]:{}},nF={url:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[tJ]:nu,[t6]:{}},nq={url:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[tJ]:nu,[t6]:{}},nV={url:r_,[tJ]:nu,[t6]:{}},nK={url:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[tJ]:nu,[t6]:{}},nW={ref:"UseObjectLambdaEndpoint"},nZ={[t0]:[{[t1]:!0,[rr]:"sigv4",[t2]:rR,[t3]:"{Region}"}]},nG={url:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[tJ]:nu,[t6]:{}},nY={url:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[tJ]:nu,[t6]:{}},nX={url:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[tJ]:nu,[t6]:{}},nJ={url:rf,[tJ]:nu,[t6]:{}},nQ={url:"https://s3.{Region}.{partitionResult#dnsSuffix}",[tJ]:nu,[t6]:{}},n0=[{ref:"Region"}],n1=[rj],n2=[rD],n3=[rH,rG],n6=[{fn:t8,[tY]:[{ref:"DisableS3ExpressSessionAuth"}]},{fn:t5,[tY]:[{ref:"DisableS3ExpressSessionAuth"},!0]}],n4=[r1],n8=[rz],n5=[rL],n9=[{fn:rn,[tY]:[rV,6,14,!0],[tX]:"s3expressAvailabilityZoneId"},{fn:rn,[tY]:[rV,14,16,!0],[tX]:"s3expressAvailabilityZoneDelim"},{fn:re,[tY]:[{ref:"s3expressAvailabilityZoneDelim"}
10,"--"]}],n7=[{[tG]:[rL],[ro]:{url:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[tJ]:rQ,[t6]:{}},[tW]:ro},{[ro]:{url:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[tJ]:rQ,[t6]:{}},[tW]:ro}],ie=[{fn:rn,[tY]:[rV,6,15,!0],[tX]:"s3expressAvailabilityZoneId"},{fn:rn,[tY]:[rV,15,17,!0],[tX]:"s3expressAvailabilityZoneDelim"},{fn:re,[tY]:[{ref:"s3expressAvailabilityZoneDelim"},"--"]}],it=[{fn:rn,[tY]:[rV,6,19,!0],[tX]:"s3expressAvailabilityZoneId"},{fn:rn,[tY]:[rV,19,21,!0],[tX]:"s3expressAvailabilityZoneDelim"},{fn:re,[tY]:[{ref:"s3expressAvailabilityZoneDelim"},"--"]}],ir=[{fn:rn,[tY]:[rV,6,20,!0],[tX]:"s3expressAvailabilityZoneId"},{fn:rn,[tY]:[rV,20,22,!0],[tX]:"s3expressAvailabilityZoneDelim"},{fn:re,[tY]:[{ref:"s3expressAvailabilityZoneDelim"},"--"]}],ii=[{fn:rn,[tY]:[rV,6,26,!0],[tX]:"s3expressAvailabilityZoneId"},{fn:rn,[tY]:[rV,26,28,!0],[tX]:"s3expressAvailabilityZoneDelim"},{fn:re,[tY]:[{ref:"s3expressAvailabilityZoneDelim"},"--"]}],is=[{[tG]:[rL],[ro]:{url:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[tJ]:{[tQ]:"S3Express",[t0]:[{[t1]:!0,[rr]:"sigv4-s3express",[t2]:"s3express",[t3]:"{Region}"}]},[t6]:{}},[tW]:ro},{[ro]:{url:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[tJ]:{[tQ]:"S3Express",[t0]:[{[t1]:!0,[rr]:"sigv4-s3express",[t2]:"s3express",[t3]:"{Region}"}]},[t6]:{}},[tW]:ro}],io=[rV,0,7,!0],ia=[{fn:rn,[tY]:[rV,7,15,!0],[tX]:"s3expressAvailabilityZoneId"},{fn:rn,[tY]:[rV,15,17,!0],[tX]:"s3expressAvailabilityZoneDelim"},{fn:re,[tY]:[{ref:"s3expressAvailabilityZoneDelim"},"--"]}],iu=[{fn:rn,[tY]:[rV,7,16,!0],[tX]:"s3expressAvailabilityZoneId"},{fn:rn,[tY]:[rV,16,18,!0],[tX]:"s3expressAvailabilityZoneDelim"},{fn:re,[tY]:[{ref:"s3expressAvailabilityZoneDelim"},"--"]}],ic=[{fn:rn,[tY]:[rV,7,20,!0],[tX]:"s3expressAvailabilityZoneId"},{fn:rn,[tY]:[rV,20,22,!0],[tX]:"s3expressAvailabilityZoneDelim"},{fn:re,[tY]:[{ref:"s3expressAvailabilityZoneDelim"},"--"]}],il=[{fn:rn,[tY]:[rV,7,21,!0],[tX]:"s3expressAvailabilityZoneId"},{fn:rn,[tY]:[rV,21,23,!0],[tX]:"s3expressAvailabilityZoneDelim"},{fn:re,[tY]:[{ref:"s3expressAvailabilityZoneDelim"},"--"]}],id=[{fn:rn,[tY]:[rV,7,27,!0],[tX]:"s3expressAvailabilityZoneId"},{fn:rn,[tY]:[rV,27,29,!0],[tX]:"s3expressAvailabilityZoneDelim"},{fn:re,[tY]:[{ref:"s3expressAvailabilityZoneDelim"},"--"]}],ih=[{fn:ry,[tY]:[{ref:rg},!1]}],ip=[{fn:re,[tY]:[{ref:rh},"beta"]}],ig=[{fn:ry,[tY]:[{ref:"Region"},!1]}],iy=[{fn:re,[tY]:[{ref:"Region"},"us-east-1"]}],im=[{fn:re,[tY]:[nA,rk]}],ib=[{fn:rt,[tY]:[nS,"resourceId[1]"],[tX]:rI},{fn:"not",[tY]:[{fn:re,[tY]:[nR,""]}]}],iw=[{fn:"not",[tY]:[{fn:re,[tY]:[{fn:rt,[tY]:[nS,"region"]},""]}]}],ix=[{fn:"not",[tY]:[{fn:t8,[tY]:[{fn:rt,[tY]:[nS,"resourceId[2]"]}]}]}],iv=[{fn:t7,[tY]:[{fn:rt,[tY]:[nS,"region"]}],[tX]:"bucketPartition"}],iS=[{fn:re,[tY]:[nP,{fn:rt,[tY]:[{ref:"partitionResult"},rr]}]}],iA=[{fn:ry,[tY]:[{fn:rt,[tY]:[nS,"region"]},!0]}],iE=[{fn:ry,[tY]:[nU,!1]}],iR=[{fn:ry,[tY]:[nR,!1]}],ik=[{fn:ry,[tY]:[{ref:"Region"},!0]}],iI={version:"1.0",parameters:{Bucket:rN,Region:rN,UseFIPS:rM,UseDualStack:rM,Endpoint:rN,ForcePathStyle:rM,Accelerate:rM,UseGlobalEndpoint:rM,UseObjectLambdaEndpoint:rB,Key:rN,Prefix:rN,CopySource:rN,DisableAccessPoints:rB,DisableMultiRegionAccessPoints:rM,UseArnRegion:rB,UseS3ExpressControlEndpoint:rB,DisableS3ExpressSessionAuth:rB},[tZ]:[{[tG]:[{fn:t8,[tY]:n0}],[tZ]:[{[tG]:[rD,rL],error:"Accelerate cannot be used with FIPS",[tW]:t9},{[tG]:[rj,rH],error:"Cannot set dual-stack in combination with a custom endpoint.",[tW]:t9},{[tG]:[rH,rL],error:"A custom endpoint cannot be combined with FIPS",[tW]:t9},{[tG]:[rH,rD],error:"A custom endpoint cannot be combined with S3 Accelerate",[tW]:t9},{[tG]:[rL,rz,rF],error:"Partition does not support FIPS",[tW]:t9},{[tG]:[rq,{fn:rn,[tY]:[rV,0,6,!0],[tX]:ri},{fn:re,[tY]:[{ref:ri},"--x-s3"]}],[tZ]:[rK,rW,rZ,{[tG]:[r3,r6],[tZ]:[{[tG]:n8,[tZ]:[{[tG]:[rJ,r4],[tZ]:[{[tG]:n5,endpoint:{url:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[tJ]:rQ,[t6]:r0},[tW]:ro},{endpoint:{url:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[tJ]:rQ,[t6]:r0},[tW]:ro}],[tW]:ra}],[tW]:ra}],[tW]:ra},{[tG]:n4,[tZ]:[{[tG]:n8,[tZ]:[{[tG]:n6,[tZ]:[{[tG]:n9,[tZ]:n7,[tW]:ra},{[tG]:ie,[tZ]:n7,[tW]:ra},{[tG]:it,[tZ]:n7,[tW]:ra},{[tG]:ir,[tZ]:n7,[tW]:ra},{[tG]:ii,[tZ]:n7,[tW]:ra},r8],[tW]:ra},{[tG]:n9,[tZ]:is,[tW]:ra},{[tG]:ie,[tZ]:is,[tW]:ra},{[tG]:it,[tZ]:is,[tW]:ra},{[tG]:ir,[tZ]:is,[tW]:ra},{[tG]:ii,[tZ]:is,[tW]:ra},r8],[tW]:ra}],[tW]:ra},r2],[tW]:ra},{[tG]:[rq,{fn:rn,[tY]:io,[tX]:rl},{fn:re,[tY]:[{ref:rl},"--xa-s3"]}],[tZ]:[rK,rW,rZ,{[tG]:n4,[tZ]:[{[tG]:n8,[tZ]:[{[tG]:n6,[tZ]:[{[tG]:ia,[tZ]:n7,[tW]:ra},{[tG]:iu,[tZ]:n7,[tW]:ra},{[tG]:ic,[tZ]:n7,[tW]:ra},{[tG]:il,[tZ]:n7,[tW]:ra},{[tG]:id,[tZ]:n7,[tW]:ra},r8],[tW]:ra},{[tG]:ia,[tZ]:is,[tW]:ra},{[tG]:iu,[tZ]:is,[tW]:ra},{[tG]:ic,[tZ]:is,[tW]:ra},{[tG]:il,[tZ]:is,[tW]:ra},{[tG]:id,[tZ]:is,[tW]:ra},r8],[tW]:ra}],[tW]:ra},r2],[tW]:ra},{[tG]:[r5,r3,r6],[tZ]:[{[tG]:n8,[tZ]:[{[tG]:n3,endpoint:{url:rf,[tJ]:rQ,[t6]:r0},[tW]:ro},{[tG]:n5,endpoint:{url:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[tJ]:rQ,[t6]:r0},[tW]:ro},{endpoint:{url:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[tJ]:rQ,[t6]:r0},[tW]:ro}],[tW]:ra}],[tW]:ra},{[tG]:[rq,{fn:rn,[tY]:[rV,49,50,!0],[tX]:rd},{fn:rn,[tY]:[rV,8,12,!0],[tX]:rh},{fn:rn,[tY]:io,[tX]:rp},{fn:rn,[tY]:[rV,32,49,!0],[tX]:rg},{fn:t7,[tY]:n0,[tX]:"regionPartition"},{fn:re,[tY]:[{ref:rp},"--op-s3"]}],[tZ]:[{[tG]:ih,[tZ]:[{[tG]:[{fn:re,[tY]:[r9,"e"]}],[tZ]:[{[tG]:ip,[tZ]:[r7,{[tG]:n3,endpoint:{url:"https://{Bucket}.ec2.{url#authority}",[tJ]:ne,[t6]:r0},[tW]:ro}],[tW]:ra},{endpoint:{url:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[tJ]:ne,[t6]:r0},[tW]:ro}],[tW]:ra},{[tG]:[{fn:re,[tY]:[r9,"o"]}],[tZ]:[{[tG]:ip,[tZ]:[r7,{[tG]:n3,endpoint:{url:"https://{Bucket}.op-{outpostId}.{url#authority}",[tJ]:ne,[t6]:r0},[tW]:ro}],[tW]:ra},{endpoint:{url:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[tJ]:ne,[t6]:r0},[tW]:ro}],[tW]:ra},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[tW]:t9}],[tW]:ra},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[tW]:t9}],[tW]:ra},{[tG]:[rq],[tZ]:[{[tG]:[rH,{fn:"not",[tY]:[{fn:t8,[tY]:[{fn:rs,[tY]:[{ref:"Endpoint"}]}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[tW]:t9},{[tG]:[nt,r1],[tZ]:[{[tG]:n8,[tZ]:[{[tG]:ig,[tZ]:[{[tG]:[rD,rF],error:"S3 Accelerate cannot be used in this region",[tW]:t9},{[tG]:[rj,rL,nr,r4,nn],endpoint:{url:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[rj,rL,nr,r4,ns,no],[tZ]:[{endpoint:na,[tW]:ro}],[tW]:ra},{[tG]:[rj,rL,nr,r4,ns,nc],endpoint:na,[tW]:ro},{[tG]:[nl,rL,nr,r4,nn],endpoint:{url:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nl,rL,nr,r4,ns,no],[tZ]:[{endpoint:nf,[tW]:ro}],[tW]:ra},{[tG]:[nl,rL,nr,r4,ns,nc],endpoint:nf,[tW]:ro},{[tG]:[rj,nd,rD,r4,nn],endpoint:{url:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[rj,nd,rD,r4,ns,no],[tZ]:[{endpoint:nh,[tW]:ro}],[tW]:ra},{[tG]:[rj,nd,rD,r4,ns,nc],endpoint:nh,[tW]:ro},{[tG]:[rj,nd,nr,r4,nn],endpoint:{url:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[rj,nd,nr,r4,ns,no],[tZ]:[{endpoint:np,[tW]:ro}],[tW]:ra},{[tG]:[rj,nd,nr,r4,ns,nc],endpoint:np,[tW]:ro},{[tG]:[nl,nd,nr,rH,rG,rY,nn],endpoint:{url:rw,[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nl,nd,nr,rH,rG,ng,nn],endpoint:{url:rc,[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nl,nd,nr,rH,rG,rY,ns,no],[tZ]:[{[tG]:iy,endpoint:ny,[tW]:ro},{endpoint:ny,[tW]:ro}],[tW]:ra},{[tG]:[nl,nd,nr,rH,rG,ng,ns,no],[tZ]:[{[tG]:iy,endpoint:nm,[tW]:ro},nb],[tW]:ra},{[tG]:[nl,nd,nr,rH,rG,rY,ns,nc],endpoint:ny,[tW]:ro},{[tG]:[nl,nd,nr,rH,rG,ng,ns,nc],endpoint:nm,[tW]:ro},{[tG]:[nl,nd,rD,r4,nn],endpoint:{url:rx,[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nl,nd,rD,r4,ns,no],[tZ]:[{[tG]:iy,endpoint:nw,[tW]:ro},{endpoint:nw,[tW]:ro}],[tW]:ra},{[tG]:[nl,nd,rD,r4,ns,nc],endpoint:nw,[tW]:ro},{[tG]:[nl,nd,nr,r4,nn],endpoint:{url:rv,[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nl,nd,nr,r4,ns,no],[tZ]:[{[tG]:iy,endpoint:{url:rv,[tJ]:nu,[t6]:r0},[tW]:ro},{endpoint:nx,[tW]:ro}],[tW]:ra},{[tG]:[nl,nd,nr,r4,ns,nc],endpoint:nx,[tW]:ro}],[tW]:ra},nv],[tW]:ra}],[tW]:ra},{[tG]:[rH,rG,{fn:re,[tY]:[{fn:rt,[tY]:[rX,"scheme"]},"http"]},{fn:ru,[tY]:[rV,!0]},nt,nd,nl,nr],[tZ]:[{[tG]:n8,[tZ]:[{[tG]:ig,[tZ]:[nb],[tW]:ra},nv],[tW]:ra}],[tW]:ra},{[tG]:[nt,{fn:rS,[tY]:[rV],[tX]:rA}
10],[tZ]:[{[tG]:[{fn:rt,[tY]:[nS,"resourceId[0]"],[tX]:rE},{fn:"not",[tY]:[{fn:re,[tY]:[nA,""]}]}],[tZ]:[{[tG]:[{fn:re,[tY]:[nE,rR]}],[tZ]:[{[tG]:im,[tZ]:[{[tG]:ib,[tZ]:[nk,nI,{[tG]:iw,[tZ]:[nT,{[tG]:ix,[tZ]:[nC,{[tG]:iv,[tZ]:[{[tG]:n8,[tZ]:[{[tG]:iS,[tZ]:[{[tG]:iA,[tZ]:[{[tG]:[{fn:re,[tY]:[nU,""]}],error:"Invalid ARN: Missing account id",[tW]:t9},{[tG]:iE,[tZ]:[{[tG]:iR,[tZ]:[{[tG]:n3,endpoint:{url:rT,[tJ]:n_,[t6]:r0},[tW]:ro},{[tG]:n5,endpoint:{url:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[tJ]:n_,[t6]:r0},[tW]:ro},{endpoint:{url:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[tJ]:n_,[t6]:r0},[tW]:ro}],[tW]:ra},nO],[tW]:ra},n$],[tW]:ra},nN],[tW]:ra},nM],[tW]:ra}],[tW]:ra}],[tW]:ra},nB],[tW]:ra},{error:"Invalid ARN: bucket ARN is missing a region",[tW]:t9}],[tW]:ra},nD],[tW]:ra},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[tW]:t9}],[tW]:ra},{[tG]:im,[tZ]:[{[tG]:ib,[tZ]:[{[tG]:iw,[tZ]:[{[tG]:im,[tZ]:[{[tG]:iw,[tZ]:[nT,{[tG]:ix,[tZ]:[nC,{[tG]:iv,[tZ]:[{[tG]:n8,[tZ]:[{[tG]:[{fn:re,[tY]:[nP,"{partitionResult#name}"]}],[tZ]:[{[tG]:iA,[tZ]:[{[tG]:[{fn:re,[tY]:[nE,"s3"]}],[tZ]:[{[tG]:iE,[tZ]:[{[tG]:iR,[tZ]:[{[tG]:n2,error:"Access Points do not support S3 Accelerate",[tW]:t9},{[tG]:[rL,rj],endpoint:{url:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[tJ]:nL,[t6]:r0},[tW]:ro},{[tG]:[rL,nl],endpoint:{url:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[tJ]:nL,[t6]:r0},[tW]:ro},{[tG]:[nd,rj],endpoint:{url:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[tJ]:nL,[t6]:r0},[tW]:ro},{[tG]:[nd,nl,rH,rG],endpoint:{url:rT,[tJ]:nL,[t6]:r0},[tW]:ro},{[tG]:[nd,nl],endpoint:{url:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[tJ]:nL,[t6]:r0},[tW]:ro}],[tW]:ra},nO],[tW]:ra},n$],[tW]:ra},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[tW]:t9}],[tW]:ra},nN],[tW]:ra},nM],[tW]:ra}],[tW]:ra}],[tW]:ra},nB],[tW]:ra}],[tW]:ra}],[tW]:ra},{[tG]:[{fn:ry,[tY]:[nR,!0]}],[tZ]:[{[tG]:n1,error:"S3 MRAP does not support dual-stack",[tW]:t9},{[tG]:n5,error:"S3 MRAP does not support FIPS",[tW]:t9},{[tG]:n2,error:"S3 MRAP does not support S3 Accelerate",[tW]:t9},{[tG]:[{fn:t5,[tY]:[{ref:"DisableMultiRegionAccessPoints"},!0]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[tW]:t9},{[tG]:[{fn:t7,[tY]:n0,[tX]:rC}],[tZ]:[{[tG]:[{fn:re,[tY]:[{fn:rt,[tY]:[{ref:rC},rr]},{fn:rt,[tY]:[nS,"partition"]}]}],[tZ]:[{endpoint:{url:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[tJ]:{[t0]:[{[t1]:!0,name:rm,[t2]:"s3",[t4]:["*"]}]},[t6]:r0},[tW]:ro}],[tW]:ra},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[tW]:t9}],[tW]:ra}],[tW]:ra},{error:"Invalid Access Point Name",[tW]:t9}],[tW]:ra},nD],[tW]:ra},{[tG]:[{fn:re,[tY]:[nE,rb]}],[tZ]:[{[tG]:n1,error:"S3 Outposts does not support Dual-stack",[tW]:t9},{[tG]:n5,error:"S3 Outposts does not support FIPS",[tW]:t9},{[tG]:n2,error:"S3 Outposts does not support S3 Accelerate",[tW]:t9},{[tG]:[{fn:t8,[tY]:[{fn:rt,[tY]:[nS,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[tW]:t9},{[tG]:[{fn:rt,[tY]:[nS,"resourceId[1]"],[tX]:rg}],[tZ]:[{[tG]:ih,[tZ]:[nC,{[tG]:iv,[tZ]:[{[tG]:n8,[tZ]:[{[tG]:iS,[tZ]:[{[tG]:iA,[tZ]:[{[tG]:iE,[tZ]:[{[tG]:[{fn:rt,[tY]:[nS,"resourceId[2]"],[tX]:rP}],[tZ]:[{[tG]:[{fn:rt,[tY]:[nS,"resourceId[3]"],[tX]:rI}],[tZ]:[{[tG]:[{fn:re,[tY]:[{ref:rP},rk]}],[tZ]:[{[tG]:n3,endpoint:{url:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[tJ]:nj,[t6]:r0},[tW]:ro},{endpoint:{url:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[tJ]:nj,[t6]:r0},[tW]:ro}],[tW]:ra},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[tW]:t9}],[tW]:ra},{error:"Invalid ARN: expected an access point name",[tW]:t9}],[tW]:ra},{error:"Invalid ARN: Expected a 4-component resource",[tW]:t9}],[tW]:ra},n$],[tW]:ra},nN],[tW]:ra},nM],[tW]:ra}],[tW]:ra}],[tW]:ra},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[tW]:t9}],[tW]:ra},{error:"Invalid ARN: The Outpost Id was not set",[tW]:t9}],[tW]:ra},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[tW]:t9}],[tW]:ra},{error:"Invalid ARN: No ARN type specified",[tW]:t9}],[tW]:ra},{[tG]:[{fn:rn,[tY]:[rV,0,4,!1],[tX]:rU},{fn:re,[tY]:[{ref:rU},"arn:"]},{fn:"not",[tY]:[{fn:t8,[tY]:[nH]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[tW]:t9},{[tG]:[{fn:t5,[tY]:[{ref:"ForcePathStyle"},!0]},nH],error:"Path-style addressing cannot be used with ARN buckets",[tW]:t9},{[tG]:[rJ],[tZ]:[{[tG]:n8,[tZ]:[{[tG]:[nr],[tZ]:[{[tG]:[rj,r4,rL,nn],endpoint:{url:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[rj,r4,rL,ns,no],[tZ]:[{endpoint:nz,[tW]:ro}],[tW]:ra},{[tG]:[rj,r4,rL,ns,nc],endpoint:nz,[tW]:ro},{[tG]:[nl,r4,rL,nn],endpoint:{url:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nl,r4,rL,ns,no],[tZ]:[{endpoint:nF,[tW]:ro}],[tW]:ra},{[tG]:[nl,r4,rL,ns,nc],endpoint:nF,[tW]:ro},{[tG]:[rj,r4,nd,nn],endpoint:{url:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[rj,r4,nd,ns,no],[tZ]:[{endpoint:nq,[tW]:ro}],[tW]:ra},{[tG]:[rj,r4,nd,ns,nc],endpoint:nq,[tW]:ro},{[tG]:[nl,rH,rG,nd,nn],endpoint:{url:r_,[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nl,rH,rG,nd,ns,no],[tZ]:[{[tG]:iy,endpoint:nV,[tW]:ro},{endpoint:nV,[tW]:ro}],[tW]:ra},{[tG]:[nl,rH,rG,nd,ns,nc],endpoint:nV,[tW]:ro},{[tG]:[nl,r4,nd,nn],endpoint:{url:rO,[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nl,r4,nd,ns,no],[tZ]:[{[tG]:iy,endpoint:{url:rO,[tJ]:nu,[t6]:r0},[tW]:ro},{endpoint:nK,[tW]:ro}],[tW]:ra},{[tG]:[nl,r4,nd,ns,nc],endpoint:nK,[tW]:ro}],[tW]:ra},{error:"Path-style addressing cannot be used with S3 Accelerate",[tW]:t9}],[tW]:ra}],[tW]:ra}],[tW]:ra},{[tG]:[{fn:t8,[tY]:[nW]},{fn:t5,[tY]:[nW,!0]}],[tZ]:[{[tG]:n8,[tZ]:[{[tG]:ik,[tZ]:[nk,nI,{[tG]:n3,endpoint:{url:rf,[tJ]:nZ,[t6]:r0},[tW]:ro},{[tG]:n5,endpoint:{url:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[tJ]:nZ,[t6]:r0},[tW]:ro},{endpoint:{url:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[tJ]:nZ,[t6]:r0},[tW]:ro}],[tW]:ra},nv],[tW]:ra}],[tW]:ra},{[tG]:[r5],[tZ]:[{[tG]:n8,[tZ]:[{[tG]:ik,[tZ]:[{[tG]:[rL,rj,r4,nn],endpoint:{url:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[rL,rj,r4,ns,no],[tZ]:[{endpoint:nG,[tW]:ro}],[tW]:ra},{[tG]:[rL,rj,r4,ns,nc],endpoint:nG,[tW]:ro},{[tG]:[rL,nl,r4,nn],endpoint:{url:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[rL,nl,r4,ns,no],[tZ]:[{endpoint:nY,[tW]:ro}],[tW]:ra},{[tG]:[rL,nl,r4,ns,nc],endpoint:nY,[tW]:ro},{[tG]:[nd,rj,r4,nn],endpoint:{url:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nd,rj,r4,ns,no],[tZ]:[{endpoint:nX,[tW]:ro}],[tW]:ra},{[tG]:[nd,rj,r4,ns,nc],endpoint:nX,[tW]:ro},{[tG]:[nd,nl,rH,rG,nn],endpoint:{url:rf,[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nd,nl,rH,rG,ns,no],[tZ]:[{[tG]:iy,endpoint:nJ,[tW]:ro},{endpoint:nJ,[tW]:ro}],[tW]:ra},{[tG]:[nd,nl,rH,rG,ns,nc],endpoint:nJ,[tW]:ro},{[tG]:[nd,nl,r4,nn],endpoint:{url:r$,[tJ]:ni,[t6]:r0},[tW]:ro},{[tG]:[nd,nl,r4,ns,no],[tZ]:[{[tG]:iy,endpoint:{url:r$,[tJ]:nu,[t6]:r0},[tW]:ro},{endpoint:nQ,[tW]:ro}],[tW]:ra},{[tG]:[nd,nl,r4,ns,nc],endpoint:nQ,[tW]:ro}],[tW]:ra},nv],[tW]:ra}],[tW]:ra}],[tW]:ra},{error:"A region must be set when sending requests to S3.",[tW]:t9}]},iT=new tT({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),iC=(e,t={})=>iT.get(e,()=>((e,t)=>{let{endpointParams:r,logger:n}=t,{parameters:i,rules:s}=e;t.logger?.debug?.(`${tC} Initial EndpointParams: ${tP(r)}`);let o=Object.entries(i).filter(([,e])=>null!=e.default).map(([e,t])=>[e,t.default]);if(o.length>0)for(let[e,t]of o)r[e]=r[e]??t;for(let e of Object.entries(i).filter(([,e])=>e.required).map(([e])=>e))if(null==r[e])throw new tU(`Missing required parameter: '${e}'`);let a=tV(s,{endpointParams:r,logger:n,referenceRecord:{}});return t.logger?.debug?.(`${tC} Resolved endpoint: ${tP(a)}`),a})(iI,{endpointParams:e,logger:t.logger}));j.aws=W;let iP=(n=async(e,t,r)=>({operation:N(t).operation,region:await y(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),async(e,t,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await n(e,t,r),s=N(t)?.commandInstance?.constructor?.getEndpointParameterInstru
10ctions;if(!s)throw Error(`getEndpointParameterInstructions() is not defined on \`${t.commandName}\``);return Object.assign(i,await tI(r,{getEndpointParameterInstructions:s},e))});function iU(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function i_(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}let iO=(i=e=>{let t=[];return e.operation,t.push(iU(e)),t.push(i_(e)),t},s={"aws.auth#sigv4":iU,"aws.auth#sigv4a":i_},e=>{let t=iC(e),r=t.properties?.authSchemes;if(!r)return i(e);let n=[];for(let t of r){let i,{name:o,properties:a={},...u}=t,c=o.toLowerCase();if(o!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${o}\` to \`${c}\``),"sigv4a"===c){i="aws.auth#sigv4a";let e=r.find(e=>{let t=e.name.toLowerCase();return"sigv4a"!==t&&t.startsWith("sigv4")});if("none"===tb.sigv4aDependency()&&e)continue}else if(c.startsWith("sigv4"))i="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${c}\``);let l=s[i];if(!l)throw Error(`Could not find HttpAuthOption create function for \`${i}\``);let f=l(e);f.schemeId=i,f.signingProperties={...f.signingProperties||{},...u,...a},n.push(f)}return n});async function i$(e){return"function"==typeof e.stream&&(e=e.stream()),e.tee()}async function iN(e,t){let r=0,n=[],i=e.getReader(),s=!1;for(;!s;){let{done:e,value:o}=await i.read();if(o&&(n.push(o),r+=o?.byteLength??0),r>=t)break;s=e}i.releaseLock();let o=new Uint8Array(Math.min(t,r)),a=0;for(let e of n){if(e.byteLength>o.byteLength-a){o.set(e.subarray(0,o.byteLength-a),a);break}o.set(e,a),a+=e.length}return o}let iM={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},iB={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},iD=e=>({applyToStack:t=>{t.addRelativeTo((t,r)=>async n=>{let i=await t(n),{response:s}=i;if(!eA.isInstance(s))return i;let{statusCode:o,body:a}=s;if(o<200||o>=300||"function"!=typeof a?.stream&&"function"!=typeof a?.pipe&&"function"!=typeof a?.tee)return i;let u=a,c=a;!a||"object"!=typeof a||a instanceof Uint8Array||([u,c]=await i$(a)),s.body=c;let l=await ((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array))(u,{streamCollector:async e=>iN(e,3e3)});"function"==typeof u?.destroy&&u.destroy();let f=e.utf8Encoder(l.subarray(l.length-16));if(0===l.length&&iM[r.commandName]){let e=Error("S3 aborted request");throw e.name="InternalError",e}return f&&f.endsWith("</Error>")&&(s.statusCode=400),i},iB)}}),iL=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1],ij={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},iH={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function iz(e,t,r){return{applyToStack:n=>{n.add((t,n)=>async i=>{let{response:s}=await t(i);try{let t=await r(s,e);return{response:s,output:t}}catch(e){if(Object.defineProperty(e,"$response",{value:s}),!("$metadata"in e)){let t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{e.message+="\n  "+t}catch(e){n.logger&&n.logger?.constructor?.name!=="NoOpLogger"?n.logger?.warn?.(t):console.warn(t)}void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(eA.isInstance(s)){let{headers:t={}}=s,r=Object.entries(t);e.$metadata={httpStatusCode:s.statusCode,requestId:iL(/^x-[\w-]+-request-?id$/,r),extendedRequestId:iL(/^x-[\w-]+-id-2$/,r),cfId:iL(/^x-[\w-]+-cf-id$/,r)}}}catch(e){}}throw e}},ij),n.add((r,n)=>async i=>{let s=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!s)throw Error("No valid endpoint provider available.");let o=await t(i.input,{...e,endpoint:s});return r({...i,request:o})},iH)}}}let iF={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:iH.name},iq=(e,t)=>({applyToStack:r=>{r.addRelativeTo((({config:e,instructions:t})=>(r,n)=>async i=>{e.isCustomEndpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]="N"}(n,"ENDPOINT_OVERRIDE",0);
10let s=await tk(i.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=s,n.authSchemes=s.properties?.authSchemes;let o=n.authSchemes?.[0];if(o){n.signing_region=o.signingRegion,n.signing_service=o.signingName;let e=N(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return r({...i})})({config:e,instructions:t}),iF)}}),iV=e=>"function"==typeof e?e():e;class iK{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,r=new Map){this.namespace=e,this.schemas=t,this.exceptions=r}static for(e){return iK.registries.has(e)||iK.registries.set(e,new iK(e)),iK.registries.get(e)}register(e,t){let r=this.normalizeShapeId(e);this.schemas.set(r,t)}getSchema(e){let t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(e,t){this.exceptions.set(e,t)}getErrorCtor(e){return this.exceptions.get(e)}getBaseException(){for(let[e,t]of this.schemas.entries())if(e.startsWith("smithy.ts.sdk.synthetic.")&&e.endsWith("ServiceException"))return t}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}getNamespace(e){return this.normalizeShapeId(e).split("#")[0]}}class iW{name;namespace;traits;static assign(e,t){let r=Object.assign(e,t);return iK.for(r.namespace).register(r.name,r),r}static[Symbol.hasInstance](e){let t=this.prototype.isPrototypeOf(e);return t||"object"!=typeof e||null===e?t:e.symbol===this.symbol}getName(){return this.namespace+"#"+this.name}}class iZ extends iW{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=iZ.symbol}class iG extends iW{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=iG.symbol}class iY extends iW{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=iY.symbol}function iX(e){if("object"==typeof e)return e;e|=0;let t={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>r++&1)==1&&(t[n]=1);return t}class iJ{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=iJ.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e,this.memberName=t;let r=[],n=e,i=e;for(this._isMemberSchema=!1;Array.isArray(n);)r.push(n[1]),i=iV(n=n[0]),this._isMemberSchema=!0;if(r.length>0){this.memberTraits={};for(let e=r.length-1;e>=0;--e){let t=r[e];Object.assign(this.memberTraits,iX(t))}}else this.memberTraits=0;if(i instanceof iJ){let e=this.memberTraits;Object.assign(this,i),this.memberTraits=Object.assign({},e,i.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=t??i.memberName;return}if(this.schema=iV(i),this.schema&&"object"==typeof this.schema?this.traits=this.schema?.traits??{}:this.traits=0,this.name=(this.schema instanceof iW?this.schema.getName?.():void 0)??this.memberName??String(i),this._isMemberSchema&&!t)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){return iW[Symbol.hasInstance].bind(this)(e)}static of(e){let t=iV(e);if(t instanceof iJ)return t;if(Array.isArray(t)){let[r,n]=t;if(r instanceof iJ)return Object.assign(r.getMergedTraits(),iX(n)),r;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}return new iJ(t)}getSchema(){return iV(this.schema?.schemaRef??this.schema)}getName(e=!1){let{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return"number"==typeof e?e>=64&&e<128:e instanceof iZ}isMapSchema(){let e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:e instanceof iG}isStructSchema(){let e=this.getSchema();return null!==e&&"object"==typeof e&&"members"in e||e instanceof iY}isBlobSchema(){let e=this.getSchema();return 21===e||42===e}isTimestampSchema(){let e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}
10isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){let e=e=>(4&e)==4||!!e?.idempotencyToken,{normalizedTraits:t,traits:r,memberTraits:n}=this;return e(t)||e(r)||e(n)}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return iX(this.memberTraits)}getOwnTraits(){return iX(this.traits)}getKeySchema(){let[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let r=this.getSchema();return iQ([e?15:r?.keySchema??0,0],"key")}getValueSchema(){let e=this.getSchema(),[t,r,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i="number"==typeof e?63&e:e&&"object"==typeof e&&(r||n)?e.valueSchema:t?15:void 0;if(null!=i)return iQ([i,0],r?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let t=this.getSchema();if(this.isStructSchema()&&t.memberNames.includes(e)){let r=t.memberNames.indexOf(e),n=t.memberList[r];return iQ(Array.isArray(n)?n:[n,0],e)}if(this.isDocumentSchema())return iQ([15,0],e);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[t,r]of this.structIterator())e[t]=r}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema();for(let t=0;t<e.memberNames.length;++t)yield[e.memberNames[t],iQ([e.memberList[t],0],e.memberNames[t])]}}function iQ(e,t){return e instanceof iJ?Object.assign(e,{memberName:t,_isMemberSchema:!0}):new iJ(e,t)}let i0="***SensitiveInformation***";function i1(e,t){if(null==t)return t;let r=iJ.of(e);if(r.getMergedTraits().sensitive)return i0;
10if(r.isListSchema()){if(r.getValueSchema().getMergedTraits().sensitive)return i0}else if(r.isMapSchema()){if(r.getKeySchema().getMergedTraits().sensitive||r.getValueSchema().getMergedTraits().sensitive)return i0}else if(r.isStructSchema()&&"object"==typeof t){let e={};for(let[n,i]of r.structIterator())null!=t[n]&&(e[n]=i1(i,t[n]));return e}return t}class i2{middlewareStack=eN();schema;static classBuilder(){return new i3}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:i,commandName:s,inputFilterSensitiveLog:o,outputFilterSensitiveLog:a,smithyContext:u,additionalContext:c,CommandCtor:l}){for(let i of n.bind(this)(l,e,t,r))this.middlewareStack.use(i);let f=e.concat(this.middlewareStack),{logger:d}=t,h={logger:d,clientName:i,commandName:s,inputFilterSensitiveLog:o,outputFilterSensitiveLog:a,[$]:{commandInstance:this,...u},...c},{requestHandler:p}=t;return f.resolve(e=>p.handle(e.request,r||{}),h)}}class i3{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e,t=this;return e=class extends i2{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[e]){super(),this.input=e??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,n,i){return this.resolveMiddlewareWithContext(r,n,i,{CommandCtor:e,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(t._operationSchema?i1.bind(null,t._operationSchema.input):e=>e),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(t._operationSchema?i1.bind(null,t._operationSchema.output):e=>e),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}let i6={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var i4=r(3284),i8=r(136);class i5 extends i2.classBuilder().ep({...i6,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(e,t,r,n){return[iz(r,this.serialize,this.deserialize),iq(r,e.getEndpointParameterInstructions()),iD(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").f(i4.i6,i4.Y).ser(i8.t$n).de(i8.SjM).build(){}let i9={rE:"3.908.0"};function i7(e){return"string"==typeof e?0===e.length:0===e.byteLength}var se={name:"SHA-1"},st={name:"HMAC",hash:se},sr=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]);let sn={};function si(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:sn}var ss=function(){function e(e){this.toHash=new Uint8Array(0),void 0!==e&&(this.key=new Promise(function(t,r){si().crypto.subtle.importKey("raw",so(e),st,!1,["sign"]).then(t,r)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!i7(e)){var t=so(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return si().crypto.subtle.sign(st,t,e.toHash).then(function(e){return new Uint8Array(e)})}
10):i7(this.toHash)?Promise.resolve(sr):Promise.resolve().then(function(){return si().crypto.subtle.digest(se,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e}();function so(e){if("string"==typeof e)return new TextEncoder().encode(e);return ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var sa=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function su(e){var t,r;return"object"==typeof(t=e)&&"object"==typeof t.crypto&&"function"==typeof t.crypto.getRandomValues&&"object"==typeof e.crypto.subtle&&(r=e.crypto.subtle)&&sa.every(function(e){return"function"==typeof r[e]})}var sc=r(4134).hp,sl=void 0!==sc&&sc.from?function(e){return sc.from(e,"utf8")}:e=>new TextEncoder().encode(e);function sf(e){return e instanceof Uint8Array?e:"string"==typeof e?sl(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function sd(e){return"string"==typeof e?0===e.length:0===e.byteLength}var sh=function(){function e(e){if(su(si()))this.hash=new ss(e);else throw Error("SHA1 not supported")}return e.prototype.update=function(e,t){this.hash.update(sf(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),sp={name:"SHA-256"},sg={name:"HMAC",hash:sp},sy=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),sm=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!sd(e)){var t=sf(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return si().crypto.subtle.sign(sg,t,e.toHash).then(function(e){return new Uint8Array(e)})}):sd(this.toHash)?Promise.resolve(sy):Promise.resolve().then(function(){return si().crypto.subtle.digest(sp,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise(function(t,r){si().crypto.subtle.importKey("raw",sf(e.secret),sg,!1,["sign"]).then(t,r)}),this.key.catch(function(){}))},e}(),sb=r(9249),sw=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),sx=[0x6a09e66
107,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],sv=function(){function e(){this.state=Int32Array.from(sx),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>0x1fffffffffffff)throw Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%64>=56){for(var n=this.bufferLength;n<64;n++)t.setUint8(n,0);this.hashBuffer(),this.bufferLength=0}for(var n=this.bufferLength;n<56;n++)t.setUint8(n,0);t.setUint32(56,Math.floor(e/0x100000000),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),n=0;n<8;n++)i[4*n]=this.state[n]>>>24&255,i[4*n+1]=this.state[n]>>>16&255,i[4*n+2]=this.state[n]>>>8&255,i[4*n+3]=this.state[n]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],s=t[3],o=t[4],a=t[5],u=t[6],c=t[7],l=0;l<64;l++){if(l<16)this.temp[l]=(255&e[4*l])<<24|(255&e[4*l+1])<<16|(255&e[4*l+2])<<8|255&e[4*l+3];else{var f=this.temp[l-2],d=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,h=((f=this.temp[l-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[l]=(d+this.temp[l-7]|0)+(h+this.temp[l-16]|0)}var p=(((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(o&a^~o&u)|0)+(c+(sw[l]+this.temp[l]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&i^n&i)|0;c=u,u=a,a=o,o=s+p|0,s=i,i=n,n=r,r=p+g|0}t[0]+=r,t[1]+=n,t[2]+=i,t[3]+=s,t[4]+=o,t[5]+=a,t[6]+=u,t[7]+=c},e}(),sS=function(){function e(e){this.secret=e,this.hash=new sv,this.reset()}return e.prototype.update=function(e){if(!sd(e)&&!this.error)try{this.hash.update(sf(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return(0,sb.sH)(this,void 0,void 0,function(){return(0,sb.YH)(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new sv,this.secret){this.outer=new sv;var e=function(e){var t=sf(e);if(t.byteLength>64){var r=new sv;r.update(t),t=r.digest()}var n=new Uint8Array(64);return n.set(t),n}(this.secret),t=new Uint8Array(64);t.set(e);for(var r=0;r<64;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(var r=0;r<e.byteLength;r++)e[r]=0}},e}(),sA=function(){function e(e){su(si())?this.hash=new sm(e):this.hash=new sS(e)}return e.prototype.update=function(e,t){this.hash.update(sf(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();let sE={os:e=>/iPhone|iPad|iPod/.test(e)?"iOS":/Macintosh|Mac OS X/.test(e)?"macOS":/Windows NT/.test(e)?"Windows":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":void 0,browser:e=>/EdgiOS|EdgA|Edg\//.test(e)?"Microsoft Edge":/Firefox\//.test(e)?"Firefox":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)?"Safari":void 0};!function(){function e(){this.crc32=new sR}e.prototype.update=function(e){sd(e)||this.crc32.update(sf(e))},e.prototype.digest=function(){return(0,sb.sH)(this,void 0,void 0,function(){return(0,sb.YH)(this,function(e){var t;return[2,new Uint8Array([(0xff000000&(t=this.crc32.digest()))>>24,(0xff0000&t)>>16,(65280&t)>>8,255&t])]})})},e.prototype.reset=function(){this.crc32=new sR}}();var sR=function(){function e(){this.checksum=0xffffffff}return e.prototype.update=function(e){var t,r;try{for(var n=(0,sb.Ju)(e),i=n.next();!i.done;i=n.next()){var s=i.value;this.checksum=this.checksum>>>8^sk[(this.checksum^s)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(0xffffffff^this.checksum)>>>0},e}(),sk=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}([0,0x77073096,0xee0e612c,0x990951ba,0x76dc419,0x706af48f,0xe963a535,0x9e6495a3,0xedb8832,0x79dcb8a4,0xe0d5e91e,0x97d2d988,0x9b64c2b,0x7eb17cbd,0xe7b82d07,0x90bf1d91,0x1db71064,0x6ab020f2,0xf3b97148,0x84be41de,0x1adad47d,0x6ddde4eb,0xf4d4b551,0x83d385c7,0x136c9856,0x646ba8c0,0xfd62f97a,0x8a65c9ec,0x14015c4f,0x63066cd9,0xfa0f3d63,0x8d080df5,0x3b6e20c8,0x4c69105e,0xd56041e4,0xa2677172,0x3c03e4d1,0x4b04d447,0xd20d85fd,0xa50ab56b,0x35b5a8fa,0x42b2986c,0xdbbbc9d6,0xacbcf940,0x32d86ce3,0x45df5c75,0xdcd60dcf,0xabd13d59,0x26
10d930ac,0x51de003a,0xc8d75180,0xbfd06116,0x21b4f4b5,0x56b3c423,0xcfba9599,0xb8bda50f,0x2802b89e,0x5f058808,0xc60cd9b2,0xb10be924,0x2f6f7c87,0x58684c11,0xc1611dab,0xb6662d3d,0x76dc4190,0x1db7106,0x98d220bc,0xefd5102a,0x71b18589,0x6b6b51f,0x9fbfe4a5,0xe8b8d433,0x7807c9a2,0xf00f934,0x9609a88e,0xe10e9818,0x7f6a0dbb,0x86d3d2d,0x91646c97,0xe6635c01,0x6b6b51f4,0x1c6c6162,0x856530d8,0xf262004e,0x6c0695ed,0x1b01a57b,0x8208f4c1,0xf50fc457,0x65b0d9c6,0x12b7e950,0x8bbeb8ea,0xfcb9887c,0x62dd1ddf,0x15da2d49,0x8cd37cf3,0xfbd44c65,0x4db26158,0x3ab551ce,0xa3bc0074,0xd4bb30e2,0x4adfa541,0x3dd895d7,0xa4d1c46d,0xd3d6f4fb,0x4369e96a,0x346ed9fc,0xad678846,0xda60b8d0,0x44042d73,0x33031de5,0xaa0a4c5f,0xdd0d7cc9,0x5005713c,0x270241aa,0xbe0b1010,0xc90c2086,0x5768b525,0x206f85b3,0xb966d409,0xce61e49f,0x5edef90e,0x29d9c998,0xb0d09822,0xc7d7a8b4,0x59b33d17,0x2eb40d81,0xb7bd5c3b,0xc0ba6cad,0xedb88320,0x9abfb3b6,0x3b6e20c,0x74b1d29a,0xead54739,0x9dd277af,0x4db2615,0x73dc1683,0xe3630b12,0x94643b84,0xd6d6a3e,0x7a6a5aa8,0xe40ecf0b,0x9309ff9d,0xa00ae27,0x7d079eb1,0xf00f9344,0x8708a3d2,0x1e01f268,0x6906c2fe,0xf762575d,0x806567cb,0x196c3671,0x6e6b06e7,0xfed41b76,0x89d32be0,0x10da7a5a,0x67dd4acc,0xf9b9df6f,0x8ebeeff9,0x17b7be43,0x60b08ed5,0xd6d6a3e8,0xa1d1937e,0x38d8c2c4,0x4fdff252,0xd1bb67f1,0xa6bc5767,0x3fb506dd,0x48b2364b,0xd80d2bda,0xaf0a1b4c,0x36034af6,0x41047a60,0xdf60efc3,0xa867df55,0x316e8eef,0x4669be79,0xcb61b38c,0xbc66831a,0x256fd2a0,0x5268e236,0xcc0c7795,0xbb0b4703,0x220216b9,0x5505262f,0xc5ba3bbe,0xb2bd0b28,0x2bb45a92,0x5cb36a04,0xc2d7ffa7,0xb5d0cf31,0x2cd99e8b,0x5bdeae1d,0x9b64c2b0,0xec63f226,0x756aa39c,0x26d930a,0x9c0906a9,0xeb0e363f,0x72076785,0x5005713,0x95bf4a82,0xe2b87a14,0x7bb12bae,0xcb61b38,0x92d28e9b,0xe5d5be0d,0x7cdcefb7,0xbdbdf21,0x86d3d2d4,0xf1d4e242,0x68ddb3f8,0x1fda836e,0x81be16cd,0xf6b9265b,0x6fb077e1,0x18b74777,0x88085ae6,0xff0f6a70,0x66063bca,0x11010b5c,0x8f659eff,0xf862ae69,0x616bffd3,0x166ccf45,0xa00ae278,0xd70dd2ee,0x4e048354,0x3903b3c2,0xa7672661,0xd06016f7,0x4969474d,0x3e6e77db,0xaed16a4a,0xd9d65adc,0x40df0b66,936918e3,0xa9bcae53,0xdebb9ec5,0x47b2cf7f,0x30b5ffe9,0xbdbdf21c,0xcabac28a,0x53b39330,0x24b4a3a6,0xbad03605,0xcdd70693,0x54de5729,0x23d967bf,0xb3667a2e,0xc4614ab8,0x5d681b02,0x2a6f2b94,0xb40bbe37,0xc30c8ea1,0x5a05df1b,0x2d02ef8d]);class sI{bytes;constructor(e){if(this.bytes=e,8!==e.byteLength)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&sT(t),new sI(t)}valueOf(){let e=this.bytes.slice(0),t=128&e[0];return t&&sT(e),parseInt(eq(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function sT(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class sC{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let r of Object.keys(e)){let n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}let r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),n=0;for(let e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([+!e.value]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let s=new Uint8Array(i.buffer);return s.set(e.value,3),s;case"string":let o=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+o.byteLength));a.setUint8(0,7),a.setUint16(1,o.byteLength,!1);let u=new Uint8Array(a.buffer);return u.set(o,3),u;case"timestamp":let c=new Uint8Array(9);return c[0]=8,c.set(sI.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!sL.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(eF(e.value.replace(/\-/g,"")),1),l}}parse(e){let t={},r=0;for(;r<e.byteLength;
10){let n=e.getUint8(r++),i=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[i]={type:sP,value:!0};break;case 1:t[i]={type:sP,value:!1};break;case 2:t[i]={type:sU,value:e.getInt8(r++)};break;case 3:t[i]={type:s_,value:e.getInt16(r,!1)},r+=2;break;case 4:t[i]={type:sO,value:e.getInt32(r,!1)},r+=4;break;case 5:t[i]={type:s$,value:new sI(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:let s=e.getUint16(r,!1);r+=2,t[i]={type:sN,value:new Uint8Array(e.buffer,e.byteOffset+r,s)},r+=s;break;case 7:let o=e.getUint16(r,!1);r+=2,t[i]={type:sM,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,o))},r+=o;break;case 8:t[i]={type:sB,value:new Date(new sI(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:let a=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[i]={type:sD,value:`${eq(a.subarray(0,4))}-${eq(a.subarray(4,6))}-${eq(a.subarray(6,8))}-${eq(a.subarray(8,10))}-${eq(a.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return t}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(d||(d={}));let sP="boolean",sU="byte",s_="short",sO="integer",s$="long",sN="binary",sM="string",sB="timestamp",sD="uuid",sL=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,sj=16;class sH{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new sC(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage:()=>e,isEndOfStream:()=>t}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let t=this.isEndOfStream;return{getMessages:()=>e,isEndOfStream:()=>t}}encode({headers:e,body:t}){let r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,i=new Uint8Array(n),s=new DataView(i.buffer,i.byteOffset,i.byteLength),o=new sR;return s.setUint32(0,n,!1),s.setUint32(4,r.byteLength,!1),s.setUint32(8,o.update(i.subarray(0,8)).digest(),!1),i.set(r,12),i.set(t,r.byteLength+12),s.setUint32(n-4,o.update(i.subarray(8,n-4)).digest(),!1),i}decode(e){let{headers:t,body:r}=function({byteLength:e,byteOffset:t,buffer:r}){if(e<sj)throw Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,t,e),i=n.getUint32(0,!1);if(e!==i)throw Error("Reported message length does not match received message length");let s=n.getUint32(4,!1),o=n.getUint32(8,!1),a=n.getUint32(e-4,!1),u=new sR().update(new Uint8Array(r,t,8));if(o!==u.digest())throw Error(`The prelude checksum specified in the message (${o}) does not match the calculated CRC32 checksum (${u.digest()})`);if(u.update(new Uint8Array(r,t+8,e-12)),a!==u.digest())throw Error(`The message checksum (${u.digest()}) did not match the expected value of ${a}`);return{headers:new DataView(r,t+8+4,s),body:new Uint8Array(r,t+8+4+s,i-s-16)}}(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}class sz{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async *asyncIterator(){for await(let e of this.options.messageStream){let t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}class sF{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async *asyncIterator(){for await(let e of this.options.inputStream){let t=this.options.decoder.decode(e);yield t}}}class sq{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async *asyncIterator(){for await(let e of this.options.messageStream){let t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}class sV{options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async *asyncIterator(){for await(let e of this.options.inputStream){let t=this.options.serializer(e);yield t}}}class sK{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new sH(e,t),this.utfEncoder=e}deserialize(e,t){var r;return new sz({messageStream:new sF({inputStream:function(e){let t=0,r=0,n=null,i=null,
10s=e=>{if("number"!=typeof e)throw Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,new DataView((n=new Uint8Array(e)).buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){let o=e[Symbol.asyncIterator]();for(;;){let{value:e,done:a}=await o.next();if(a){if(t)if(t===r)yield n;else throw Error("Truncated event message received.");return}let u=e.length,c=0;for(;c<u;){if(!n){let t=u-c;i||(i=new Uint8Array(4));let n=Math.min(4-r,t);if(i.set(e.slice(c,c+n),r),r+=n,c+=n,r<4)break;s(new DataView(i.buffer).getUint32(0,!1)),i=null}let o=Math.min(t-r,u-c);n.set(e.slice(c,c+o),r),r+=o,c+=o,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}(e),decoder:this.eventStreamCodec}),deserializer:(r=this.utfEncoder,async function(e){let{value:n}=e.headers[":message-type"];if("error"===n){let t=Error(e.headers[":error-message"].value||"UnknownError");throw t.name=e.headers[":error-code"].value,t}if("exception"===n){let n=e.headers[":exception-type"].value,i=await t({[n]:e});if(i.$unknown){let t=Error(r(e.body));throw t.name=n,t}throw i[n]}if("event"===n){let r={[e.headers[":event-type"].value]:e},n=await t(r);if(n.$unknown)return;return n}throw Error(`Unrecognizable event type: ${e.headers[":event-type"].value}`)})})}serialize(e,t){return new sq({messageStream:new sV({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}class sW{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new sK({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let r=sZ(e)?{[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}}:e;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){let r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(e=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){let{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})})(r):r}}let sZ=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,sG=e=>new sW(e);function sY(e,t){return new Request(e,t)}let sX={supported:void 0};class sJ{config;configProvider;static create(e){return"function"==typeof e?.handle?e:new sJ(e)}constructor(e){"function"==typeof e?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===sX.supported&&(sX.supported=!!("undefined"!=typeof Request&&"keepalive"in sY("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);let n=r??this.config.requestTimeout,i=!0===this.config.keepAlive,s=this.config.credentials;if(t?.aborted){let e=Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let o=e.path,a=function(e){let t=[];for(let r of Object.keys(e).sort()){let n=e[r];if(r=tc(r),Array.isArray(n))for(let e=0,i=n.length;e<i;e++)t.push(`${r}=${tc(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${tc(n)}
10`),t.push(e)}}return t.join("&")}(e.query||{});a&&(o+=`?${a}`),e.fragment&&(o+=`#${e.fragment}`);let u="";if(null!=e.username||null!=e.password){let t=e.username??"",r=e.password??"";u=`${t}:${r}@`}let{port:c,method:l}=e,f=`${e.protocol}//${u}${e.hostname}${c?`:${c}`:""}${o}`,d="GET"===l||"HEAD"===l?void 0:e.body,h={body:d,headers:new Headers(e.headers),method:l,credentials:s};this.config?.cache&&(h.cache=this.config.cache),d&&(h.duplex="half"),"undefined"!=typeof AbortController&&(h.signal=t),sX.supported&&(h.keepalive=i),"function"==typeof this.config.requestInit&&Object.assign(h,this.config.requestInit(e));let p=()=>{},g=[fetch(sY(f,h)).then(e=>{let t=e.headers,r={};for(let e of t.entries())r[e[0]]=e[1];return void 0==e.body?e.blob().then(t=>({response:new eA({headers:r,reason:e.statusText,statusCode:e.status,body:t})})):{response:new eA({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}}),function(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)},e)})}(n)];return t&&g.push(new Promise((e,r)=>{let n=()=>{let e=Error("Request aborted");e.name="AbortError",r(e)};"function"==typeof t.addEventListener?(t.addEventListener("abort",n,{once:!0}),p=()=>t.removeEventListener("abort",n)):t.onabort=n})),Promise.race(g).finally(p)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[e]=t,r))}httpHandlerConfigs(){return this.config??{}}}var sQ=r(2836);let s0=async e=>"function"==typeof Blob&&e instanceof Blob||e.constructor?.name==="Blob"?void 0!==Blob.prototype.arrayBuffer?new Uint8Array(await e.arrayBuffer()):s1(e):s2(e);async function s1(e){var t;let r=await (t=e,new Promise((e,r)=>{let n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(Error("Reader aborted too early"));let t=n.result??"",i=t.indexOf(","),s=i>-1?i+1:t.length;e(t.substring(s))},n.onabort=()=>r(Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)}));return new Uint8Array((0,sQ.E)(r))}async function s2(e){let t=[],r=e.getReader(),n=!1,i=0;for(;!n;){let{done:e,value:s}=await r.read();s&&(t.push(s),i+=s.length),n=e}let s=new Uint8Array(i),o=0;for(let e of t)s.set(e,o),o+=e.length;return s}async function s3(e,t,r=1048576){let n=e.size,i=0;for(;i<n;){let s=e.slice(i,Math.min(n,i+r));t(new Uint8Array(await s.arrayBuffer())),i+=s.size}}let s6=async function(e,t){let r=new e;return await s3(t,e=>{r.update(e)}),r.digest()},s4=[0x67452301,0xefcdab89,0x98badcfe,0x10325476];class s8{state;buffer;bufferLength;bytesHashed;finished;constructor(){this.reset()}update(e){var t,r;if("string"==typeof(t=e)?0===t.length:0===t.byteLength)return;if(this.finished)throw Error("Attempted to update an already finished hash.");let n="string"==typeof(r=e)?(0,eV.a)(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r),i=0,{byteLength:s}=n;for(this.bytesHashed+=s;s>0;)this.buffer.setUint8(this.bufferLength++,n[i++]),s--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){let{buffer:e,bufferLength:t,bytesHashed:r}=this,n=8*r;if(e.setUint8(this.bufferLength++,128),t%64>=56){for(let t=this.bufferLength;t<64;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let t=this.bufferLength;t<56;t++)e.setUint8(t,0);e.setUint32(56,n>>>0,!0),e.setUint32(60,Math.floor(n/0x100000000),!0),this.hashBuffer(),this.finished=!0}let e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(4*t,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){let{buffer:e,state:t}=this,r=t[0],n=t[1],i=t[2],s=t[3];r=s9(r,n,i,s,e.getUint32(0,!0),7,0xd76aa478),s=s9(s,r,n,i,e.getUint32(4,!0),12,0xe8c7b756),i=s9(i,s,r,n,e.getUint32(8,!0),17,0x242070db),n=s9(n,i,s,r,e.getUint32(12,!0),22,0xc1bdceee),r=s9(r,n,i,s,e.getUint32(16,!0),7,0xf57c0faf),s=s9(s,r,n,i,e.getUint32(20,!0),12,0x4787c62a),i=s9(i,s,r,n,e.getUint32(24,!0),17,0xa8304613),n=s9(n,i,s,r,e.getUint32(28,!0),22,0xfd469501),r=s9(r,n,i,s,e.getUint32(32,!0),7,0x698098d8),s=s9(s,r,n,i,e.getUint32(36,!0),12,0x8b44f7af),i=s9(i,s,r,n,e.getUint32(40,!0),17,0xffff5bb1),n=s9(n,i,s,r,e.getUint32(44,!0),22,0x895cd7be),r=s9(r,n,i,s,e.getUint32(48,!0),7,0x6b901122),s=s9(s,r,n,i,e.getUint32(52,!0),12,0xfd987193),i=s9(i,s,r,n,e.getUint32(56,!0),17,0xa679438e),n=s9(n,i,s,r,e.getUint32(60,!0),22,0x49b40821),r=s7(r,n,i,s,e.getUint32(4,!0),5,0xf61e2562),s=s7(s,r,n,i,e.getUint32(24,!0),9,0xc040b340),i=s7(i,s,r,n,e.getUint32(44,!0),14,0x265e5a51),n=s7(n,i,s,r,e.getUint32(0,!0),20,0xe9b6c7aa),r=s7(r,n,i,s,e.getUint32(20,!0),5,0xd62f105d),s=s7(s,r,n,i,e.getUint32(40,!0),9,0x2441453),i=s7(i,s,r,n,e.getUint32(60,!0),14,0xd8a1e681),n=s7(n,i,s,r,e.getUint32(16,!0),20,0xe7d3fbc8),r=s7(r,n,i,s,e.getUint32(36,!0),5,0x21e1cde6),s=s7(s,r,n,i,e.getUint32(56,!0),9,0xc33707d6),i=s7(i,s,r,n,e.getUint32(12,!0),14,0xf4d50d87),n=s7(n,i,s,r,e.getUint32(32,!0),20,0x455a14ed),r=s7(r,n,i,s,e.getUint32(52,!0),5,0xa9e3e905),s=s7(s,r,n,i,e.getUint32(8,!0),9,0xfcefa3f8),i=s7(i,s,r,n,e.getUint32(28,!0),14,0x676f02d9),n=s7(n,i,s,r,e.getUint32(48,!0),20,0x8d2a4c8a),r=oe(r,n,i,s,e.getUint32(20,!0),4,0xfffa3942),s=oe(s,r,n,i,e.getUint32(32,!0),11,0x8771f681),i=oe(i,s,r,n,e.getUint32(44,!0),16,0x6d9d6122),n=oe(n,i,s,r,e.getUint32(56,!0),23,0xfde5380c),r=oe(r,n,i,s,e.getUint32(4,!0),4,0xa4beea44),s=oe(s,r,n,i,e.getUint32(16,!0),11,0x4bdecfa9),i=oe(i,s,r,n,e.getUint32(28,!0),16,0xf6bb4b60),n=oe(n,i,s,r,e.getUint32(40,!0),23,0xbebfbc70),r=oe(r,n,i,s,e.getUint32(52,!0),4,0x289b7ec6),s=oe(s,r,n,i,e.getUint32(0,!0),11,0xeaa127fa),i=oe(i,s,r,n,e.getUint32(12,!0),16,0xd4ef3085),n=oe(n,i,s,r,e.getUint32(24,!0),23,0x4881d05
10),r=oe(r,n,i,s,e.getUint32(36,!0),4,0xd9d4d039),s=oe(s,r,n,i,e.getUint32(48,!0),11,0xe6db99e5),i=oe(i,s,r,n,e.getUint32(60,!0),16,0x1fa27cf8),n=oe(n,i,s,r,e.getUint32(8,!0),23,0xc4ac5665),r=ot(r,n,i,s,e.getUint32(0,!0),6,0xf4292244),s=ot(s,r,n,i,e.getUint32(28,!0),10,0x432aff97),i=ot(i,s,r,n,e.getUint32(56,!0),15,0xab9423a7),n=ot(n,i,s,r,e.getUint32(20,!0),21,0xfc93a039),r=ot(r,n,i,s,e.getUint32(48,!0),6,0x655b59c3),s=ot(s,r,n,i,e.getUint32(12,!0),10,0x8f0ccc92),i=ot(i,s,r,n,e.getUint32(40,!0),15,0xffeff47d),n=ot(n,i,s,r,e.getUint32(4,!0),21,0x85845dd1),r=ot(r,n,i,s,e.getUint32(32,!0),6,0x6fa87e4f),s=ot(s,r,n,i,e.getUint32(60,!0),10,0xfe2ce6e0),i=ot(i,s,r,n,e.getUint32(24,!0),15,0xa3014314),n=ot(n,i,s,r,e.getUint32(52,!0),21,0x4e0811a1),r=ot(r,n,i,s,e.getUint32(16,!0),6,0xf7537e82),s=ot(s,r,n,i,e.getUint32(44,!0),10,0xbd3af235),i=ot(i,s,r,n,e.getUint32(8,!0),15,0x2ad7d2bb),n=ot(n,i,s,r,e.getUint32(36,!0),21,0xeb86d391),t[0]=r+t[0]|0,t[1]=n+t[1]|0,t[2]=i+t[2]|0,t[3]=s+t[3]|0}reset(){this.state=Uint32Array.from(s4),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function s5(e,t,r,n,i,s){return((t=(t+e|0)+(n+s|0)|0)<<i|t>>>32-i)+r|0}function s9(e,t,r,n,i,s,o){return s5(t&r|~t&n,e,t,i,s,o)}function s7(e,t,r,n,i,s,o){return s5(t&n|r&~n,e,t,i,s,o)}function oe(e,t,r,n,i,s,o){return s5(t^r^n,e,t,i,s,o)}function ot(e,t,r,n,i,s,o){return s5(r^(t|~n),e,t,i,s,o)}let or="function"==typeof TextEncoder?new TextEncoder:null,on=e=>{if("string"==typeof e){if(or)return or.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){let n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw Error(`Body Length computation failed for ${e}`)},oi=e=>new Date(Date.now()+e),os=e=>eA.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,oo=(e,t)=>{let r=Date.parse(e);return Math.abs(oi(t).getTime()-r)>=3e5?r-Date.now():t},oa=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},ou=async e=>{let t=oa("context",e.context),r=oa("config",e.config),n=t.endpointV2?.properties?.authSchemes?.[0],i=oa("signer",r.signer),s=await i(n),o=e?.signingRegion;return{config:r,signer:s,signingRegion:o,signingRegionSet:e?.signingRegionSet,signingName:e?.signingName}};class oc{async sign(e,t,r){if(!p.K.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let n=await ou(r),{config:i,signer:s}=n,{signingRegion:o,signingName:a}=n,u=r.context;if(u?.authSchemes?.length){let[e,t]=u.authSchemes;e?.name==="sigv4a"&&t?.name==="sigv4"&&(o=t?.signingRegion??o,a=t?.signingName??a)}return await s.sign(e,{signingDate:oi(i.systemClockOffset),signingRegion:o,signingService:a})}errorHandler(e){return t=>{let r=t.ServerTime??os(t.$response);if(r){let n=oa("config",e.config),i=n.systemClockOffset;n.systemClockOffset=oo(r,n.systemClockOffset),n.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){let r=os(e);if(r){let e=oa("config",t.config);e.systemClockOffset=oo(r,e.systemClockOffset)}}}class ol extends oc{async sign(e,t,r){if(!p.K.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:n,signer:i,signingRegion:s,signingRegionSet:o,signingName:a}=await ou(r),u=(await n.sigv4aSigningRegionSet?.()??o??[s]).join(",");return await i.sign(e,{signingDate:oi(n.systemClockOffset),signingRegion:u,signingService:a})}}var of=r(8417);let od=(e,t)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:i,checksumLocationName:s,streamHasher:o}=t,a=void 0!==r&&void 0!==n&&void 0!==i&&void 0!==s&&void 0!==o,u=a?o(i,e):void 0,c=e.getReader();return new ReadableStream({async pull(e){let{value:t,done:i}=await c.read();if(i){if(e.enqueue(`0\r
11`),a){let t=r(await u);e.enqueue(`${s}:${t}\r
12`),e.enqueue(`\r
13`)}e.close()}else e.enqueue(`${(n(t)||0).toString(16)}\r
14${t}\r
15`)}})};var oh=r(1265);let op=e=>"function"==typeof ReadableStream&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),og="The stream has already been transformed.",oy=e=>{if(!om(e)&&!op(e)){let t=e?.__proto__?.constructor?.name||e;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=!1,r=async()=>
15{if(t)throw Error(og);return t=!0,await s0(e)};return Object.assign(e,{transformToByteArray:r,transformToString:async e=>{let t=await r();if("base64"===e)return(0,of.n)(t);if("hex"===e)return eq(t);if(void 0===e||"utf8"===e||"utf-8"===e)return(0,oh.P)(t);if("function"==typeof TextDecoder)return new TextDecoder(e).decode(t);throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw Error(og);if(t=!0,om(e))return(e=>{if("function"!=typeof e.stream)throw Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return e.stream()})(e);if(op(e))return e;throw Error(`Cannot transform payload to web stream, got ${e}`)}})},om=e=>"function"==typeof Blob&&e instanceof Blob,ob=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},ow=["in-region","cross-region","mobile","standard","legacy"];!function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(h||(h={}));class ox extends eD{config;constructor(...[e]){let t,r,n,i,s,o,a,u=(e=>{let t=(({defaultsMode:e}={})=>((e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return void 0===t?async e=>((!s||e?.forceRefresh)&&(n=await a()),n):async e=>((!s||e?.forceRefresh)&&(n=await a()),o||(r&&!r(n)?o=!0:t(n)&&await a()),n)})(async()=>{let t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve((()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:r,downlink:n}=e?.connection;if("string"==typeof t&&"4g"!==t||Number(r)>100||10>Number(n))return!0}return e?.userAgentData?.mobile||"number"==typeof e?.maxTouchPoints&&e?.maxTouchPoints>1})()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${ow.join(", ")}, got ${t}`)}}))(e),r=()=>t().then(ob),n=(e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??sQ.E,base64Encoder:e?.base64Encoder??of.n,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??iC,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??od,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??iO,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new oc},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new ol}],logger:e?.logger??new eE,sdkStreamMixin:e?.sdkStreamMixin??oy,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??tb,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??ec,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??eV.a,utf8Encoder:e?.utf8Encoder??oh.P}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??on,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??(({serviceId:e,clientVersion:t})=>async r=>{let n="undefined"!=typeof window?window.navigator:void 0,i=n?.userAgent??"",s=n?.userAgentData?.platform??sE.os(i)??"other",o=n?.userAgentData?.brands??[],a=o[o.length-1],u=a?.brand??sE.browser(i)??"unknown",c=a?.version??"unknown",l=[["aws-sdk-js",t],["ua","2.1"],[`os/${s}`,void 0],["lang/js"],["md/browser",`${u}_${c}`]];e&&l.push([`api/${e}`,t]);let f=await r?.userAgentAppId?.();return f&&l.push([`app/${f}`]),l})({serviceId:n.serviceId,clientVersion:i9.rE}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??sG,maxAttempts:e?.maxAttempts??3,md5:e?.md5??s8,region:e?.region??(()=>Promise.reject("Region is missing")),requestHandler:sJ.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||ef),sha1:e?.sha1??sh,sha256:e?.sha256??sA,streamCollector:e?.streamCollector??s0,streamHasher:e?.streamHasher??s6,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(!1))}})(e||{});super(u),this.initConfig=u;let l=((e,t)=>{let r=Object.assign((e=>({setRegion(t){e.region=t},region:()=>e.region}))(e),(e=>Object.assign((e=>{let t=[];for(let r in h){let n=h[r];void 0!==e[n]&&t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{addChecksumAlgorithm(e){t.push(e)},checksumAlgorithms:()=>t}})(e),(e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}))(e)))(e),(e=>({setHttpHandler(t){e.httpHandler=t},httpHandler:()=>e.httpHandler,updateHttpClientConfig(t,r){e.httpHandler?.updateHttpClientConfig(t,r)},httpHandlerConfigs:()=>e.httpHandler.httpHandlerConfigs()}))(e),(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,n=e.credentials;return{setHttpAuthScheme(e){let r=t.findIndex(t=>t.schemeId===e.schemeId);-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){n=e},credentials:()=>n}})(e));
15return t.forEach(e=>e.configure(r)),Object.assign(e,{region:r.region()},(e=>Object.assign((e=>{let t={};return e.checksumAlgorithms().forEach(e=>{t[e.algorithmId()]=e.checksumConstructor()}),t})(e),(e=>{let t={};return t.retryStrategy=e.retryStrategy(),t})(e)))(r),{httpHandler:r.httpHandler()},(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}))(r))})(((e,{session:t})=>{let[r,n]=t,{forcePathStyle:i,useAccelerateEndpoint:s,disableMultiregionAccessPoints:o,followRegionRedirects:a,s3ExpressIdentityProvider:u,bucketEndpoint:c}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:o??!1,followRegionRedirects:a??!1,s3ExpressIdentityProvider:u??new R(async e=>r().send(new n({Bucket:e}))),bucketEndpoint:c??!1})})((e=>Object.assign((e=>(e.sigv4aSigningRegionSet=D(e.sigv4aSigningRegionSet),e))((e=>{let t,r,n=e.credentials,i=!!e.credentials;Object.defineProperty(e,"credentials",{set(r){r&&r!==n&&r!==t&&(i=!0);let s=function(e,{credentials:t,credentialDefaultProvider:r}){let n;return(n=t?t?.memoized?t:((e,t,r)=>{let n,i,s;if(void 0===e)return;let o="function"!=typeof e?async()=>Promise.resolve(e):e,a=!1,u=async e=>{i||(i=o(e));try{n=await i,s=!0,a=!1}finally{i=void 0}return n};return void 0===t?async e=>((!s||e?.forceRefresh)&&(n=await u(e)),n):async e=>((!s||e?.forceRefresh)&&(n=await u(e)),a||(r(n)?t(n)&&await u(e):a=!0),n)})(t,eL,ej):r?D(r(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}).memoized=!0,n}(e,{credentials:n=r,credentialDefaultProvider:e.credentialDefaultProvider}),o=function(e,t){if(t.configBound)return t;let r=async r=>t({...r,callerClientConfig:e});return r.memoized=t.memoized,r.configBound=!0,r}(e,s);i&&!o.attributed?((t=async e=>o(e).then(e=>(e.$source||(e.$source={}),e.$source.CREDENTIALS_CODE="e",e))).memoized=o.memoized,t.configBound=o.configBound,t.attributed=!0):t=o},get:()=>t,enumerable:!0,configurable:!0}),e.credentials=n;let{signingEscapePath:s=!0,systemClockOffset:o=e.systemClockOffset||0,sha256:a}=e;return r=e.signer?D(e.signer):e.regionInfoProvider?()=>D(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,r])=>{let{signingRegion:n,signingService:i}=t;e.signingRegion=e.signingRegion||n||r,e.signingName=e.signingName||i||e.serviceId;let o={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s};return new(e.signerConstructor||td)(o)}):async t=>{let r=(t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await D(e.region)(),properties:{}},t)).signingRegion,n=t.signingName;e.signingRegion=e.signingRegion||r,e.signingName=e.signingName||n||e.serviceId;let i={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s};return new(e.signerConstructor||td)(i)},Object.assign(e,{systemClockOffset:o,signingEscapePath:s,signer:r})})(e)),{authSchemePreference:y(e.authSchemePreference??[])}))((e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}))((e=>{let t,r=e.tls??!0,{endpoint:n,useDualstackEndpoint:i,useFipsEndpoint:s}=e,o=Object.assign(e,{endpoint:null!=n?async()=>el(await y(n)()):void 0,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:y(i??!1),useFipsEndpoint:y(s??!1)});return o.serviceConfiguredEndpoint=async()=>(e.serviceId&&!t&&(t=eu(e.serviceId)),t),o})((e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw Error("Region is missing");return Object.assign(e,{region:async()=>"string"==typeof t?en(t):en(await t()),useFipsEndpoint:async()=>!!er("string"==typeof t?t:await t())||("function"!=typeof r?Promise.resolve(!!r):r())})})((e=>{let{retryStrategy:t,retryMode:r,maxAttempts:n}=e,i=y(n??3);return Object.assign(e,{maxAttempts:i,retryStrategy:async()=>t||(await y(r)()===c.ADAPTIVE?new eS(i):new ev(i))})})((e=>{let{requestChecksumCalculation:t,responseChecksumValidation:r,requestStreamBufferSize:n}=e;return Object.assign(e,{requestChecksumCalculation:y(t??b),responseChecksumValidation:y(r??w),requestStreamBufferSize:Number(n??0)})})(function(e){let t=D(e.userAgentAppId??L),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:"string"==typeof r?[[r]]:r,userAgentAppId:async()=>{let r=await t();if(!(void 0===r||"string"==typeof r&&r.length<=50)){let t=e.logger?.constructor?.name!=="NoOpLogger"&&e.logger?e.logger:console;"string"!=typeof r?t?.warn("userAgentAppId must be a string or undefined."):r.length>50&&t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}((e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"}))(u)))))))),{session:[()=>this,i5]}),e?.extensions||[]);this.config=l,this.middlewareStack.use((t=this.config,{applyToStack:e=>{e.add((e=>(t,r)=>async n=>{let{request:i}=n;if(!p.K.isInstance(i))return t(n);let{headers:s}=i,o=r?.userAgent?.map(ee)||[],a=(await e.defaultUserAgentProvider()).map(ee);await G(r,e,n),a.push(`m/${function(e){let t="";for(let r in e){let n=e[r];if(t.length+n.length+1<=1024){t.length?t+=","+n:t+=n;continue}break}return t}(Object.assign({},r.__smithy_context?.features,r.__aws_sdk_context?.features))}`);let u=e?.customUserAgent?.map(ee)||[],c=await e.userAgentAppId();c&&a.push(ee([`app/${c}`]));let l=[].concat([...a,...o,...u]).join(" "),f=[...a.filter(e=>e.startsWith("aws-sdk-")),...u].join(" ");return"browser"!==e.runtime?(f&&(s[X]=s[X]?`${s[Y]} ${f}`:f),s[Y]=l):s[X]=l,t({...n,request:i})})(t),et)}})),this.middlewareStack.use((r=this.config,{applyToStack:e=>{e.add((e=>(t,r)=>async n=>{let i=await e.retryStrategy(),s=await e.maxAttempts();if(!(e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess)(i))return i?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,n);{let e=await i.acquireInitialRetryToken(r.partition_id),o=Error(),a=0,u=0,{request:c}=n,l=p.K.isInstance(c);for(l&&(c.headers["amz-sdk-invocation-id"]=(()=>
15{if(eR)return eR();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128,ek[e[0]]+ek[e[1]]+ek[e[2]]+ek[e[3]]+"-"+ek[e[4]]+ek[e[5]]+"-"+ek[e[6]]+ek[e[7]]+"-"+ek[e[8]]+ek[e[9]]+"-"+ek[e[10]]+ek[e[11]]+ek[e[12]]+ek[e[13]]+ek[e[14]]+ek[e[15]]})());;)try{l&&(c.headers["amz-sdk-request"]=`attempt=${a+1}; max=${s}`);let{response:r,output:o}=await t(n);return i.recordSuccess(e),o.$metadata.attempts=a+1,o.$metadata.totalRetryDelay=u,{response:r,output:o}}catch(s){let t=eC(s);if(o=eT(s),l&&eI(c))throw(r.logger instanceof eE?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),o;try{e=await i.refreshRetryTokenForRetry(e,t)}catch(e){throw o.$metadata||(o.$metadata={}),o.$metadata.attempts=a+1,o.$metadata.totalRetryDelay=u,o}a=e.getRetryCount();let n=e.getRetryDelay();u+=n,await new Promise(e=>setTimeout(e,n))}}})(r),eU)}})),this.middlewareStack.use((n=this.config,{applyToStack:e=>{var t;e.add((t=n.bodyLengthChecker,e=>async r=>{let n=r.request;if(p.K.isInstance(n)){let{body:e,headers:r}=n;if(e&&-1===Object.keys(r).map(e=>e.toLowerCase()).indexOf(eo))try{let r=t(e);n.headers={...n.headers,[eo]:String(r)}}catch(e){}}return e({...r,request:n})}),ea)}})),this.middlewareStack.use((i=this.config,{applyToStack:e=>{e.add(e=>async t=>{if(!p.K.isInstance(t.request))return e(t);let{request:r}=t,{handlerProtocol:n=""}=i.requestHandler.metadata||{};if(n.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let e=r.hostname;null!=r.port&&(e+=`:${r.port}`),r.headers.host=e}return e(t)},x)}})),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add((e,t)=>async r=>{try{let n=await e(r),{clientName:i,commandName:s,logger:o,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:c}=a,l=u??t.inputFilterSensitiveLog,f=c??t.outputFilterSensitiveLog,{$metadata:d,...h}=n.output;return o?.info?.({clientName:i,commandName:s,input:l(r.input),output:f(h),metadata:d}),n}catch(u){let{clientName:e,commandName:n,logger:i,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:o}=s,a=o??t.inputFilterSensitiveLog;throw i?.error?.({clientName:e,commandName:n,input:a(r.input),error:u,metadata:u.$metadata}),u}},v)}})),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add(e=>async t=>e(t),S)}})),this.middlewareStack.use(((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(((e,t)=>(r,n)=>async i=>{let s=((e,t)=>{if(!t||0===t.length)return e;let r=[];for(let n of t)for(let t of e)t.schemeId.split("#")[1]===n&&r.push(t);for(let t of e)r.find(({schemeId:e})=>e===t.schemeId)||r.push(t);return r})(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,n,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),o=function(e){let t=new Map;for(let r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),a=N(n),u=[];for(let r of s){let i=o.get(r.schemeId);if(!i){u.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}let s=i.identityProvider(await t.identityProviderConfigProvider(e));if(!s){u.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:c={},signingProperties:l={}}=r.propertiesExtractor?.(e,n)||{};r.identityProperties=Object.assign(r.identityProperties||{},c),r.signingProperties=Object.assign(r.signingProperties||{},l),a.selectedHttpAuthScheme={httpAuthOption:r,identity:await s(r.identityProperties),signer:i.signer};break}if(!a.selectedHttpAuthScheme)throw Error(u.join("\n"));return r(i)})(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),ei)}}))(this.config,{httpAuthSchemeParametersProvider:iP,identityProviderConfigProvider:async e=>new es({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use((this.config,{applyToStack:e=>{e.addRelativeTo((e,t)=>async r=>{if(!p.K.isInstance(r.request))return e(r);let n=N(t).selectedHttpAuthScheme;if(!n)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:i={}},identity:s,signer:o}=n,a=await e({...r,request:await o.sign(r.request,s,i)}).catch((o.errorHandler||(e=>e=>{throw e}))(i));return(o.successHandler||((e,t)=>{}))(a.response,i),a},M)}})),this.middlewareStack.use((e=>({applyToStack:t=>{t.add(function({bucketEndpoint:e}){return t=>async r=>
15{let{input:{Bucket:n}}=r;if(!e&&"string"==typeof n&&!("string"==typeof n&&0===n.indexOf("arn:")&&n.split(":").length>=6)&&n.indexOf("/")>=0){let e=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw e.name="InvalidBucketName",e}return t({...r})}}(e),I),t.addRelativeTo((t,r)=>async n=>{if(e.bucketEndpoint){let e=r.endpointV2;if(e){let t=n.input.Bucket;if("string"==typeof t)try{let n=new URL(t);r.endpointV2={...e,url:n}}catch(n){let e=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(e):r.logger?.warn?.(e),n}}}return t(n)},k)}}))(this.config)),this.middlewareStack.use((s=this.config,{applyToStack:e=>{e.add(function(e){return t=>async r=>{let{request:n}=r;return p.K.isInstance(n)&&n.body&&"node"===e.runtime&&e.requestHandler?.constructor?.name!=="FetchHttpHandler"&&(n.headers={...n.headers,Expect:"100-continue"}),t({...r,request:n})}}(s),g)}})),this.middlewareStack.use((e=>({applyToStack:t=>{t.add(function(e){return(t,r)=>async n=>{try{return await t(n)}catch(i){if(e.followRegionRedirects){let s=i?.$metadata?.httpStatusCode,o="HeadBucketCommand"===r.commandName,a=i?.$response?.headers?.["x-amz-bucket-region"];
15if(a&&(301===s||400===s&&(i?.name==="IllegalLocationConstraintException"||o))){try{r.logger?.debug(`Redirecting from ${await e.region()} to ${a}`),r.__s3RegionRedirect=a}catch(e){throw Error("Region redirect failed: "+e)}return t(n)}}throw i}}}(e),C),t.addRelativeTo((e=>(t,r)=>async n=>{let i=await e.region(),s=e.region,o=()=>{};r.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>r.__s3RegionRedirect}),o=()=>Object.defineProperty(e,"region",{writable:!0,value:s}));try{let s=await t(n);if(r.__s3RegionRedirect){o();let t=await e.region();if(i!==t)throw Error("Region was not restored following S3 region redirect.")}return s}catch(e){throw o(),e}})(e),T)}}))(this.config)),this.middlewareStack.use((o=this.config,{applyToStack:e=>{e.add((e=>(t,r)=>async n=>{if(r.endpointV2){let t=r.endpointV2,i=t.properties?.authSchemes?.[0]?.name==="sigv4-s3express";if((t.properties?.backend==="S3Express"||t.properties?.bucketType==="Directory")&&(P(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),i){let t=n.input.Bucket;if(t){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});r.s3ExpressIdentity=i,p.K.isInstance(n.request)&&i.sessionToken&&(n.request.headers[_]=i.sessionToken)}}}return t(n)})(o),O)}})),this.middlewareStack.use((a=this.config,{applyToStack:e=>{e.addRelativeTo((e,t)=>async r=>{let n;if(!p.K.isInstance(r.request))return e(r);let i=N(t).selectedHttpAuthScheme;if(!i)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:s={}},identity:o,signer:u}=i;n=t.s3ExpressIdentity?await B(t.s3ExpressIdentity,s,r.request,await a.signer()):await u.sign(r.request,o,s);let c=await e({...r,request:n}).catch((u.errorHandler||(e=>e=>{throw e}))(s));return(u.successHandler||((e,t)=>{}))(c.response,s),c},M)}}))}destroy(){super.destroy()}}},5045:(e,t,r)=>{"use strict";r.d(t,{K:()=>n});class n{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){var t;let r=new n({...e,headers:{...e.headers}});return r.query&&(r.query=Object.keys(t=r.query).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})),r}static isInstance(e){return!!e&&"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&"object"==typeof e.query&&"object"==typeof e.headers}clone(){return n.clone(this)}}},5339:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},5525:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},5868:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},6522:(e,t,r)=>{"use strict";r.d(t,{Go:()=>u,gH:()=>a,kD:()=>s,n9:()=>c,pN:()=>l,zh:()=>o});var n,i=r(4494);class s extends i.H{name="EncryptionTypeMismatch";$fault="client";constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,s.prototype)}}class o extends i.H{name="InvalidRequest";$fault="client";constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),Object.setPrototypeOf(this,o.prototype)}}class a extends i.H{name="InvalidWriteOffset";$fault="client";constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),Object.setPrototypeOf(this,a.prototype)}}class u extends i.H{name="TooManyParts";$fault="client";constructor(e){super({name:"TooManyParts",$fault:"client",...e}),Object.setPrototypeOf(this,u.prototype)}}class c extends i.H{name="IdempotencyParameterMismatch";$fault="client";constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),Object.setPrototypeOf(this,c.prototype)}}class l extends i.H{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),Object.setPrototypeOf(this,l.prototype)}}(n||(n={})).visit=(e,t)=>
15void 0!==e.Records?t.Records(e.Records):void 0!==e.Stats?t.Stats(e.Stats):void 0!==e.Progress?t.Progress(e.Progress):void 0!==e.Cont?t.Cont(e.Cont):void 0!==e.End?t.End(e.End):t._(e.$unknown[0],e.$unknown[1])},7213:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},7368:(e,t,r)=>{"use strict";r.d(t,{c:()=>b});var n,i="basil",s="https://js.stripe.com",o="".concat(s,"/").concat(i,"/stripe.js"),a=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,u=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,c=function(){for(var e=document.querySelectorAll('script[src^="'.concat(s,'"]')),t=0;t<e.length;t++){var r,n=e[t];if(r=n.src,a.test(r)||u.test(r))return n}return null},l=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(o).concat(t);var n=document.head||document.body;if(!n)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(r),r},f=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"7.9.0",startTime:t})},d=null,h=null,p=null,g=function(e,t,r){if(null===e)return null;var n,s=t[0].match(/^pk_test/),o=3===(n=e.version)?"v3":n;s&&o!==i&&console.warn("Stripe.js@".concat(o," was loaded on the page, but @stripe/stripe-js@").concat("7.9.0"," expected Stripe.js@").concat(i,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var a=e.apply(void 0,t);return f(a,r),a},y=!1,m=function(){return n?n:n=(null!==d?d:(d=new Promise(function(e,t){if("undefined"==typeof window||"undefined"==typeof document)return void e(null);if(window.Stripe,window.Stripe)return void e(window.Stripe);try{var r,n=c();n?n&&null!==p&&null!==h&&(n.removeEventListener("load",p),n.removeEventListener("error",h),null==(r=n.parentNode)||r.removeChild(n),n=l(null)):n=l(null),p=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},h=function(e){t(Error("Failed to load Stripe.js",{cause:e}))},n.addEventListener("load",p),n.addEventListener("error",h)}catch(e){t(e);return}})).catch(function(e){return d=null,Promise.reject(e)})).catch(function(e){return n=null,Promise.reject(e)})};Promise.resolve().then(function(){return m()}).catch(function(e){y||console.warn(e)});var b=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];y=!0;var n=Date.now();return m().then(function(e){return g(e,t,n)})}},7580:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},7610:(e,t)=>{t.read=function(e,t,r,n,i){var s,o,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,s=h&(1<<-l)-1,h>>=-l,l+=a;l>0;s=256*s+e[t+f],f+=d,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=n;l>0;o=256*o+e[t+f],f+=d,l-=8);if(0===s)s=1-c;else{if(s===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),s-=c}return(h?-1:1)*o*Math.pow(2,s-n)},t.write=function(e,t,r,n,i,s){var o,a,u,c=8*s-i-1,l=(1<<c)-1,f=l>>1,d=5960464477539062e-23*(23===i),h=n?0:s-1,p=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+f>=1?t+=d/u:t+=d*Math.pow(2,1-f),t*u>=2&&(o++,u/=2),o+f>=l?(a=0,o=l):o+f>=1?(a=(t*u-1)*Math.pow(2,i),o+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+h]=255&a,h+=p,a/=256,i-=8);for(o=o<<i|a,c+=i;c>0;e[r+h]=255&o,h+=p,o/=256,c-=8);e[r+h-p]|=128*g}},7719:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,s=u(e),o=s[0],a=s[1],c=new i((o+a)*3/4-a),l=0,f=a>0?o-4:o;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,s=[],o=0,a=n-i;o<a;o+=16383)s.push(function(e,t,n){for(var i,s=[],o=t;o<n;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),s.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}(e,o,o+16383>a?a:o+16383));return 1===i?s.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&s.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
15+/",o=0,a=s.length;o<a;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},7863:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},8375:()=>{},8417:(e,t,r)=>{"use strict";r.d(t,{n:()=>s});var n=r(1204),i=r(688);function s(e){let t,r="object"==typeof(t="string"==typeof e?(0,n.a)(e):e)&&"number"==typeof t.length,s="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!s)throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let e=0;e<t.length;e+=3){let r=0,n=0;for(let s=e,o=Math.min(e+3,t.length);s<o;s++)r|=t[s]<<(o-s-1)*i.kQ,n+=i.kQ;let s=Math.ceil(n/i._w);r<<=s*i._w-n;for(let e=1;e<=s;e++){let t=(s-e)*i._w;o+=i.Kc[(r&i.OF<<t)>>t]}o+="==".slice(0,4-s)}return o}},8564:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},9037:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},9137:(e,t,r)=>{"use strict";e.exports=r(2269).style},9376:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]])},9869:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},9931:(e,t,r)=>{"use strict";function n(e,t,r){let n,o;if(void 0===t&&void 0===r)n={},o=e;else{if(n=e,"function"==typeof t)return i(n,t,o=r);o=t}for(let e of Object.keys(o)){if(!Array.isArray(o[e])){n[e]=o[e];continue}s(n,null,o,e)}return n}r.d(t,{Tj:()=>n});let i=(e,t,r)=>n(e,Object.entries(r).reduce((e,[r,n])=>(Array.isArray(n)?e[r]=n:"function"==typeof n?e[r]=[t,n()]:e[r]=[t,n],e),{})),s=(e,t,r,n)=>{if(null!==t){let i=r[n];"function"==typeof i&&(i=[,i]);let[s=o,u=a,c=n]=i;("function"==typeof s&&s(t[c])||"function"!=typeof s&&s)&&(e[n]=u(t[c]));return}let[i,s]=r[n];if("function"==typeof s){let t,r=void 0===i&&null!=(t=s()),o="function"==typeof i&&!!i(void 0)||"function"!=typeof i&&!!i;r?e[n]=t:o&&(e[n]=s())}else{let t=void 0===i&&null!=s,r="function"==typeof i&&!!i(s)||"function"!=typeof i&&!!i;(t||r)&&(e[n]=s)}},o=e=>null!=e,a=e=>e}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.