@agentlang/lstudio 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/assets/__vite-browser-external-BDMct_Gn-FmFgRqLi.js +1 -0
  2. package/assets/__vite-browser-external-CoxO8HJt-D7Ct-6yo.js +1 -0
  3. package/assets/__vite-browser-external-CoxO8HJt-YbutIfMq-D7Ct-6yo.js +1 -0
  4. package/assets/__vite-browser-external-DJy8wZt7.js +1 -0
  5. package/assets/_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js +1 -0
  6. package/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
  7. package/assets/_commonjsHelpers-38a7CZ6X-BfEUBFWa-BEFu9Otg.js +1 -0
  8. package/assets/_commonjsHelpers-38a7CZ6X-W3E8ocG7.js +1 -0
  9. package/assets/_commonjsHelpers-B4e78b8K-W3E8ocG7.js +1 -0
  10. package/assets/_commonjsHelpers-D6-XlEtG.js +1 -0
  11. package/assets/artificial-intelligence.png +0 -0
  12. package/assets/auth.png +0 -0
  13. package/assets/bg-gradient.png +0 -0
  14. package/assets/favicon.ico +0 -0
  15. package/assets/fractl-logo-small.png +0 -0
  16. package/assets/index-69shuAsh-DF18H7zf.js +1 -0
  17. package/assets/index-6mKfgpcs-DsgiI2lM.js +6 -0
  18. package/assets/index-BJBOx-Z---hbiLl7B.js +5 -0
  19. package/assets/index-BOLaQ9_Z.js +58 -0
  20. package/assets/index-BfpeqTCw.js +20 -0
  21. package/assets/index-BoNKy6Ic.js +1 -0
  22. package/assets/index-C2ka9ALg.js +1 -0
  23. package/assets/index-CNLtnwcG-CT9Tl0QI.js +20 -0
  24. package/assets/index-CNLtnwcG-HJoxiQBn-DSWPwCKS.js +20 -0
  25. package/assets/index-CUtIwvTY-Dla_hTy0.js +58 -0
  26. package/assets/index-CXX5Wl6h.js +15 -0
  27. package/assets/index-CZyH7rAI-yNipxqK_.js +20 -0
  28. package/assets/index-ChvoNxcO.js +5 -0
  29. package/assets/index-D1jV2j2Y.js +1 -0
  30. package/assets/index-D5v913EJ-CsbEilVn.js +1 -0
  31. package/assets/index-DGQM-tVy-4NRC-u1U.js +1 -0
  32. package/assets/index-DIt05veo.js +6 -0
  33. package/assets/index-DSosZ5sh-Ceejs_jv.js +1 -0
  34. package/assets/index-DdrtU5Ny-B6H3P3T_.js +1 -0
  35. package/assets/index-DsIu-45t-Bejjlpz4.js +6 -0
  36. package/assets/index-Dy4QD7s1-DSfoLCzX.js +17 -0
  37. package/assets/index-EboTSEmN.js +35656 -0
  38. package/assets/index-VamKv2HZ--hbiLl7B.js +5 -0
  39. package/assets/index-VamKv2HZ-CaraMydH-D75zmpPt.js +5 -0
  40. package/assets/index-Ynim4IDh.js +1 -0
  41. package/assets/index-ZXlevk9Z.js +1 -0
  42. package/assets/index-ddRsp7-o.css +1 -0
  43. package/assets/index-xuotMAFm-B-PTrwYx.js +1 -0
  44. package/assets/index.browser-CRa8kZEZ.js +6 -0
  45. package/assets/inherits_browser-5Fj3Mjxs.js +1 -0
  46. package/assets/inherits_browser-BPb0V7-q-C7Z2MfVc.js +1 -0
  47. package/assets/loadCognitoIdentity-BLrW2K3k.js +1 -0
  48. package/assets/loadSts-9Q8afg2C.js +1 -0
  49. package/assets/normalizeProvider-BrOPyH3l.js +3 -0
  50. package/assets/preload-helper-BlTxHScW.js +1 -0
  51. package/assets/replService-DgQy0gOO.js +1 -0
  52. package/assets/util-ByC4ZISM-BeKX2g97.js +1 -0
  53. package/assets/util-Di1GNq-L-D-kgTTr0.js +10 -0
  54. package/assets/util-qaS8mbUT.js +10 -0
  55. package/assets/winston-Bb5ONwX_-B86ttl8E.js +1 -0
  56. package/assets/winston-Bb5ONwX_-ziOUC-cl-v-kyB29h.js +1 -0
  57. package/assets/winston-BvKfy0iJ-CwnGwJ9X.js +51 -0
  58. package/assets/winston-BvKfy0iJ-DkFo4NVo-UY_jirKN.js +51 -0
  59. package/assets/winston-CLh__iui-Dz2dJhwh.js +1 -0
  60. package/assets/winston-CtcDki1r-tmxR7nDg.js +37 -0
  61. package/assets/winston-D8lBg2T-.js +1 -0
  62. package/assets/winston-DaXMbKRs.js +37 -0
  63. package/fonts/red-hat.tff +0 -0
  64. package/index.html +49 -0
  65. package/package.json +19 -0
@@ -0,0 +1 @@
1
+ const t={};export{t as default};
@@ -0,0 +1 @@
1
+ const e={},t=Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));export{t as _};
@@ -0,0 +1 @@
1
+ const e={},t=Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));export{t as _};
@@ -0,0 +1 @@
1
+ const e={},t=Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"}));export{e as c,t as l};
@@ -0,0 +1 @@
1
+ function o(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{o as r};
@@ -0,0 +1 @@
1
+ function r(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{r as c};
@@ -0,0 +1 @@
1
+ import{l as u}from"./index-D5v913EJ-CsbEilVn.js";var l=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof u<"u"?u:typeof self<"u"?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}export{a,l,p};
@@ -0,0 +1 @@
1
+ var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function f(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var o=t.default;if(typeof o=="function"){var e=function r(){return this instanceof r?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};e.prototype=o.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}),e}export{l as f,f as l,u};
@@ -0,0 +1 @@
1
+ var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function f(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var o=t.default;if(typeof o=="function"){var e=function r(){return this instanceof r?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};e.prototype=o.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}),e}export{l as f,f as l,u};
@@ -0,0 +1 @@
1
+ var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}export{l as a,u as c,f as g};
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1 @@
1
+ import{u as Ct}from"./_commonjsHelpers-B4e78b8K-W3E8ocG7.js";var jr,dr;function V(){return dr||(dr=1,jr=TypeError),jr}var Fr,Er;function Wt(){return Er||(Er=1,Fr=Object),Fr}var Ir,Rr;function ye(){return Rr||(Rr=1,Ir=Error),Ir}var Ur,Mr;function fe(){return Mr||(Mr=1,Ur=EvalError),Ur}var _r,xr;function pe(){return xr||(xr=1,_r=RangeError),_r}var Tr,Br;function le(){return Br||(Br=1,Tr=ReferenceError),Tr}var Nr,Gr;function $t(){return Gr||(Gr=1,Nr=SyntaxError),Nr}var Dr,kr;function ce(){return kr||(kr=1,Dr=URIError),Dr}var Cr,Wr;function se(){return Wr||(Wr=1,Cr=Math.abs),Cr}var $r,Jr;function ge(){return Jr||(Jr=1,$r=Math.floor),$r}var Vr,zr;function be(){return zr||(zr=1,Vr=Math.max),Vr}var qr,Lr;function ve(){return Lr||(Lr=1,qr=Math.min),qr}var Yr,Hr;function me(){return Hr||(Hr=1,Yr=Math.pow),Yr}var Kr,Qr;function Ae(){return Qr||(Qr=1,Kr=Math.round),Kr}var Xr,Zr;function he(){return Zr||(Zr=1,Xr=Number.isNaN||function(r){return r!==r}),Xr}var Y,rt;function Pe(){if(rt)return Y;rt=1;var r=he();return Y=function(e){return r(e)||e===0?e:e<0?-1:1},Y}var tt,et;function Se(){return et||(et=1,tt=Object.getOwnPropertyDescriptor),tt}var H,ot;function B(){if(ot)return H;ot=1;var r=Se();if(r)try{r([],"length")}catch{r=null}return H=r,H}var K,nt;function z(){if(nt)return K;nt=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return K=r,K}var at,it;function Jt(){return it||(it=1,at=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},e=Symbol("test"),a=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[e]=n;for(var p in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==e||!Object.prototype.propertyIsEnumerable.call(r,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(r,e);if(y.value!==n||y.enumerable!==!0)return!1}return!0}),at}var Q,ut;function we(){if(ut)return Q;ut=1;var r=typeof Symbol<"u"&&Symbol,e=Jt();return Q=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Q}var yt,ft;function Vt(){return ft||(ft=1,yt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),yt}var X,pt;function zt(){if(pt)return X;pt=1;var r=Wt();return X=r.getPrototypeOf||null,X}var Z,lt;function Oe(){if(lt)return Z;lt=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,a=Math.max,n="[object Function]",p=function(t,u){for(var f=[],o=0;o<t.length;o+=1)f[o]=t[o];for(var c=0;c<u.length;c+=1)f[c+t.length]=u[c];return f},l=function(t,u){for(var f=[],o=u,c=0;o<t.length;o+=1,c+=1)f[c]=t[o];return f},y=function(t,u){for(var f="",o=0;o<t.length;o+=1)f+=t[o],o+1<t.length&&(f+=u);return f};return Z=function(t){var u=this;if(typeof u!="function"||e.apply(u)!==n)throw new TypeError(r+u);for(var f=l(arguments,1),o,c=function(){if(this instanceof o){var s=u.apply(this,p(f,arguments));return Object(s)===s?s:this}return u.apply(t,p(f,arguments))},j=a(0,u.length-f.length),E=[],d=0;d<j;d++)E[d]="$"+d;if(o=Function("binder","return function ("+y(E,",")+"){ return binder.apply(this,arguments); }")(c),u.prototype){var g=function(){};g.prototype=u.prototype,o.prototype=new g,g.prototype=null}return o},Z}var rr,ct;function N(){if(ct)return rr;ct=1;var r=Oe();return rr=Function.prototype.bind||r,rr}var st,gt;function Ar(){return gt||(gt=1,st=Function.prototype.call),st}var bt,vt;function hr(){return vt||(vt=1,bt=Function.prototype.apply),bt}var mt,At;function je(){return At||(At=1,mt=typeof Reflect<"u"&&Reflect&&Reflect.apply),mt}var tr,ht;function qt(){if(ht)return tr;ht=1;var r=N(),e=hr(),a=Ar(),n=je();return tr=n||r.call(a,e),tr}var er,Pt;function Pr(){if(Pt)return er;Pt=1;var r=N(),e=V(),a=Ar(),n=qt();return er=function(p){if(p.length<1||typeof p[0]!="function")throw new e("a function is required");return n(r,a,p)},er}var or,St;function de(){if(St)return or;St=1;var r=Pr(),e=B(),a;try{a=[].__proto__===Array.prototype}catch(y){if(!y||typeof y!="object"||!("code"in y)||y.code!=="ERR_PROTO_ACCESS")throw y}var n=!!a&&e&&e(Object.prototype,"__proto__"),p=Object,l=p.getPrototypeOf;return or=n&&typeof n.get=="function"?r([n.get]):typeof l=="function"?(function(y){return l(y==null?y:p(y))}):!1,or}var nr,wt;function Lt(){if(wt)return nr;wt=1;var r=Vt(),e=zt(),a=de();return nr=r?function(n){return r(n)}:e?function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return e(n)}:a?function(n){return a(n)}:null,nr}var ar,Ot;function Fe(){if(Ot)return ar;Ot=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,a=N();return ar=a.call(r,e),ar}var ir,jt;function Yt(){if(jt)return ir;jt=1;var r,e=Wt(),a=ye(),n=fe(),p=pe(),l=le(),y=$t(),t=V(),u=ce(),f=se(),o=ge(),c=be(),j=ve(),E=me(),d=Ae(),g=Pe(),s=Function,v=function(m){try{return s('"use strict"; return ('+m+").constructor;")()}catch{}},i=B(),h=z(),q=function(){throw new t},Ht=i?(function(){try{return arguments.callee,q}catch{try{return i(arguments,"callee").get}catch{return q}}})():q,R=we()(),A=Lt(),Kt=zt(),Qt=Vt(),Sr=hr(),_=Ar(),U={},Xt=typeof Uint8Array>"u"||!A?r:A(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":R&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&A?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!A?r:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":i,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":p,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!A?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&A?A(""[Symbol.iterator]()):r,"%Symbol%":R?Symbol:r,"%SyntaxError%":y,"%ThrowTypeError%":Ht,"%TypedArray%":Xt,"%TypeError%":t,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":Sr,"%Object.defineProperty%":h,"%Object.getPrototypeOf%":Kt,"%Math.abs%":f,"%Math.floor%":o,"%Math.max%":c,"%Math.min%":j,"%Math.pow%":E,"%Math.round%":d,"%Math.sign%":g,"%Reflect.getPrototypeOf%":Qt};if(A)try{null.error}catch(m){var Zt=A(A(m));I["%Error.prototype%"]=Zt}var re=function m(P){var b;if(P==="%AsyncFunction%")b=v("async function () {}");else if(P==="%GeneratorFunction%")b=v("function* () {}");else if(P==="%AsyncGeneratorFunction%")b=v("async function* () {}");else if(P==="%AsyncGenerator%"){var S=m("%AsyncGeneratorFunction%");S&&(b=S.prototype)}else if(P==="%AsyncIteratorPrototype%"){var O=m("%AsyncGenerator%");O&&A&&(b=A(O.prototype))}return I[P]=b,b},wr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=N(),G=Fe(),te=x.call(_,Array.prototype.concat),ee=x.call(Sr,Array.prototype.splice),Or=x.call(_,String.prototype.replace),D=x.call(_,String.prototype.slice),oe=x.call(_,RegExp.prototype.exec),ne=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,ie=function(m){var P=D(m,0,1),b=D(m,-1);if(P==="%"&&b!=="%")throw new y("invalid intrinsic syntax, expected closing `%`");if(b==="%"&&P!=="%")throw new y("invalid intrinsic syntax, expected opening `%`");var S=[];return Or(m,ne,function(O,M,w,k){S[S.length]=w?Or(k,ae,"$1"):M||O}),S},ue=function(m,P){var b=m,S;if(G(wr,b)&&(S=wr[b],b="%"+S[0]+"%"),G(I,b)){var O=I[b];if(O===U&&(O=re(b)),typeof O>"u"&&!P)throw new t("intrinsic "+m+" exists, but is not available. Please file an issue!");return{alias:S,name:b,value:O}}throw new y("intrinsic "+m+" does not exist!")};return ir=function(m,P){if(typeof m!="string"||m.length===0)throw new t("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof P!="boolean")throw new t('"allowMissing" argument must be a boolean');if(oe(/^%?[^%]*%?$/,m)===null)throw new y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var b=ie(m),S=b.length>0?b[0]:"",O=ue("%"+S+"%",P),M=O.name,w=O.value,k=!1,L=O.alias;L&&(S=L[0],ee(b,te([0,1],L)));for(var C=1,T=!0;C<b.length;C+=1){var F=b[C],W=D(F,0,1),$=D(F,-1);if((W==='"'||W==="'"||W==="`"||$==='"'||$==="'"||$==="`")&&W!==$)throw new y("property names with quotes must have matching quotes");if((F==="constructor"||!T)&&(k=!0),S+="."+F,M="%"+S+"%",G(I,M))w=I[M];else if(w!=null){if(!(F in w)){if(!P)throw new t("base intrinsic for "+m+" exists, but the property is not available.");return}if(i&&C+1>=b.length){var J=i(w,F);T=!!J,T&&"get"in J&&!("originalValue"in J.get)?w=J.get:w=w[F]}else T=G(w,F),w=w[F];T&&!k&&(I[M]=w)}}return w},ir}var ur,dt;function Ee(){if(dt)return ur;dt=1;var r=Yt(),e=Pr(),a=e([r("%String.prototype.indexOf%")]);return ur=function(n,p){var l=r(n,!!p);return typeof l=="function"&&a(n,".prototype.")>-1?e([l]):l},ur}var yr,Ft;function Ie(){if(Ft)return yr;Ft=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,a,n;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw n}}),n={},e(function(){throw 42},null,a)}catch(i){i!==n&&(e=null)}else e=null;var p=/^\s*class\b/,l=function(i){try{var h=r.call(i);return p.test(h)}catch{return!1}},y=function(i){try{return l(i)?!1:(r.call(i),!0)}catch{return!1}},t=Object.prototype.toString,u="[object Object]",f="[object Function]",o="[object GeneratorFunction]",c="[object HTMLAllCollection]",j="[object HTML document.all class]",E="[object HTMLCollection]",d=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),s=function(){return!1};if(typeof document=="object"){var v=document.all;t.call(v)===t.call(document.all)&&(s=function(i){if((g||!i)&&(typeof i>"u"||typeof i=="object"))try{var h=t.call(i);return(h===c||h===j||h===E||h===u)&&i("")==null}catch{}return!1})}return yr=e?function(i){if(s(i))return!0;if(!i||typeof i!="function"&&typeof i!="object")return!1;try{e(i,null,a)}catch(h){if(h!==n)return!1}return!l(i)&&y(i)}:function(i){if(s(i))return!0;if(!i||typeof i!="function"&&typeof i!="object")return!1;if(d)return y(i);if(l(i))return!1;var h=t.call(i);return h!==f&&h!==o&&!/^\[object HTML/.test(h)?!1:y(i)},yr}var fr,Et;function Re(){if(Et)return fr;Et=1;var r=Ie(),e=Object.prototype.toString,a=Object.prototype.hasOwnProperty,n=function(t,u,f){for(var o=0,c=t.length;o<c;o++)a.call(t,o)&&(f==null?u(t[o],o,t):u.call(f,t[o],o,t))},p=function(t,u,f){for(var o=0,c=t.length;o<c;o++)f==null?u(t.charAt(o),o,t):u.call(f,t.charAt(o),o,t)},l=function(t,u,f){for(var o in t)a.call(t,o)&&(f==null?u(t[o],o,t):u.call(f,t[o],o,t))};function y(t){return e.call(t)==="[object Array]"}return fr=function(t,u,f){if(!r(u))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=f),y(t)?n(t,u,o):typeof t=="string"?p(t,u,o):l(t,u,o)},fr}var It,Rt;function Ue(){return Rt||(Rt=1,It=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),It}var pr,Ut;function Me(){if(Ut)return pr;Ut=1;var r=Ue(),e=typeof globalThis>"u"?Ct:globalThis;return pr=function(){for(var a=[],n=0;n<r.length;n++)typeof e[r[n]]=="function"&&(a[a.length]=r[n]);return a},pr}var Mt={exports:{}},lr,_t;function _e(){if(_t)return lr;_t=1;var r=z(),e=$t(),a=V(),n=B();return lr=function(p,l,y){if(!p||typeof p!="object"&&typeof p!="function")throw new a("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new a("`loose`, if provided, must be a boolean");var t=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,c=!!n&&n(p,l);if(r)r(p,l,{configurable:f===null&&c?c.configurable:!f,enumerable:t===null&&c?c.enumerable:!t,value:y,writable:u===null&&c?c.writable:!u});else if(o||!t&&!u&&!f)p[l]=y;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},lr}var cr,xt;function xe(){if(xt)return cr;xt=1;var r=z(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},cr=e,cr}var sr,Tt;function Te(){if(Tt)return sr;Tt=1;var r=Yt(),e=_e(),a=xe()(),n=B(),p=V(),l=r("%Math.floor%");return sr=function(y,t){if(typeof y!="function")throw new p("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||l(t)!==t)throw new p("`length` must be a positive 32-bit integer");var u=arguments.length>2&&!!arguments[2],f=!0,o=!0;if("length"in y&&n){var c=n(y,"length");c&&!c.configurable&&(f=!1),c&&!c.writable&&(o=!1)}return(f||o||!u)&&(a?e(y,"length",t,!0,!0):e(y,"length",t)),y},sr}var gr,Bt;function Be(){if(Bt)return gr;Bt=1;var r=N(),e=hr(),a=qt();return gr=function(){return a(r,e,arguments)},gr}var Nt;function Ne(){return Nt||(Nt=1,(function(r){var e=Te(),a=z(),n=Pr(),p=Be();r.exports=function(l){var y=n(arguments),t=l.length-(arguments.length-1);return e(y,1+(t>0?t:0),!0)},a?a(r.exports,"apply",{value:p}):r.exports.apply=p})(Mt)),Mt.exports}var br,Gt;function Ge(){if(Gt)return br;Gt=1;var r=Jt();return br=function(){return r()&&!!Symbol.toStringTag},br}var vr,Dt;function De(){if(Dt)return vr;Dt=1;var r=Re(),e=Me(),a=Ne(),n=Ee(),p=B(),l=Lt(),y=n("Object.prototype.toString"),t=Ge()(),u=typeof globalThis>"u"?Ct:globalThis,f=e(),o=n("String.prototype.slice"),c=n("Array.prototype.indexOf",!0)||function(g,s){for(var v=0;v<g.length;v+=1)if(g[v]===s)return v;return-1},j={__proto__:null};t&&p&&l?r(f,function(g){var s=new u[g];if(Symbol.toStringTag in s&&l){var v=l(s),i=p(v,Symbol.toStringTag);if(!i&&v){var h=l(v);i=p(h,Symbol.toStringTag)}j["$"+g]=a(i.get)}}):r(f,function(g){var s=new u[g],v=s.slice||s.set;v&&(j["$"+g]=a(v))});var E=function(g){var s=!1;return r(j,function(v,i){if(!s)try{"$"+v(g)===i&&(s=o(i,1))}catch{}}),s},d=function(g){var s=!1;return r(j,function(v,i){if(!s)try{v(g),s=o(i,1)}catch{}}),s};return vr=function(g){if(!g||typeof g!="object")return!1;if(!t){var s=o(y(g),8,-1);return c(f,s)>-1?s:s!=="Object"?!1:d(g)}return p?E(g):null},vr}var mr,kt;function Ce(){if(kt)return mr;kt=1;var r=De();return mr=function(e){return!!r(e)},mr}export{B as D,Ee as F,Ce as G,V as J,De as N,Ge as U,Lt as Y,Fe as w};
@@ -0,0 +1,6 @@
1
+ var ut={},F={};F.byteLength=xt;F.toByteArray=$t;F.fromByteArray=Ft;var L=[],T=[],Ct=typeof Uint8Array<"u"?Uint8Array:Array,q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var $=0,Mt=q.length;$<Mt;++$)L[$]=q[$],T[q.charCodeAt($)]=$;T[45]=62;T[95]=63;function ht(a){var h=a.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=a.indexOf("=");l===-1&&(l=h);var g=l===h?0:4-l%4;return[l,g]}function xt(a){var h=ht(a),l=h[0],g=h[1];return(l+g)*3/4-g}function Nt(a,h,l){return(h+l)*3/4-l}function $t(a){var h,l=ht(a),g=l[0],p=l[1],u=new Ct(Nt(a,g,p)),c=0,E=p>0?g-4:g,d;for(d=0;d<E;d+=4)h=T[a.charCodeAt(d)]<<18|T[a.charCodeAt(d+1)]<<12|T[a.charCodeAt(d+2)]<<6|T[a.charCodeAt(d+3)],u[c++]=h>>16&255,u[c++]=h>>8&255,u[c++]=h&255;return p===2&&(h=T[a.charCodeAt(d)]<<2|T[a.charCodeAt(d+1)]>>4,u[c++]=h&255),p===1&&(h=T[a.charCodeAt(d)]<<10|T[a.charCodeAt(d+1)]<<4|T[a.charCodeAt(d+2)]>>2,u[c++]=h>>8&255,u[c++]=h&255),u}function Pt(a){return L[a>>18&63]+L[a>>12&63]+L[a>>6&63]+L[a&63]}function kt(a,h,l){for(var g,p=[],u=h;u<l;u+=3)g=(a[u]<<16&16711680)+(a[u+1]<<8&65280)+(a[u+2]&255),p.push(Pt(g));return p.join("")}function Ft(a){for(var h,l=a.length,g=l%3,p=[],u=16383,c=0,E=l-g;c<E;c+=u)p.push(kt(a,c,c+u>E?E:c+u));return g===1?(h=a[l-1],p.push(L[h>>2]+L[h<<4&63]+"==")):g===2&&(h=(a[l-2]<<8)+a[l-1],p.push(L[h>>10]+L[h>>4&63]+L[h<<2&63]+"=")),p.join("")}var W={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */W.read=function(a,h,l,g,p){var u,c,E=p*8-g-1,d=(1<<E)-1,I=d>>1,i=-7,A=l?p-1:0,S=l?-1:1,U=a[h+A];for(A+=S,u=U&(1<<-i)-1,U>>=-i,i+=E;i>0;u=u*256+a[h+A],A+=S,i-=8);for(c=u&(1<<-i)-1,u>>=-i,i+=g;i>0;c=c*256+a[h+A],A+=S,i-=8);if(u===0)u=1-I;else{if(u===d)return c?NaN:(U?-1:1)*(1/0);c=c+Math.pow(2,g),u=u-I}return(U?-1:1)*c*Math.pow(2,u-g)};W.write=function(a,h,l,g,p,u){var c,E,d,I=u*8-p-1,i=(1<<I)-1,A=i>>1,S=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,U=g?0:u-1,C=g?1:-1,j=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(E=isNaN(h)?1:0,c=i):(c=Math.floor(Math.log(h)/Math.LN2),h*(d=Math.pow(2,-c))<1&&(c--,d*=2),c+A>=1?h+=S/d:h+=S*Math.pow(2,1-A),h*d>=2&&(c++,d/=2),c+A>=i?(E=0,c=i):c+A>=1?(E=(h*d-1)*Math.pow(2,p),c=c+A):(E=h*Math.pow(2,A-1)*Math.pow(2,p),c=0));p>=8;a[l+U]=E&255,U+=C,E/=256,p-=8);for(c=c<<p|E,I+=p;I>0;a[l+U]=c&255,U+=C,c/=256,I-=8);a[l+U-C]|=j*128};/*!
2
+ * The buffer module from node.js, for the browser.
3
+ *
4
+ * @author Feross Aboukhadijeh <https://feross.org>
5
+ * @license MIT
6
+ */(function(a){const h=F,l=W,g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=i,a.SlowBuffer=lt,a.INSPECT_MAX_BYTES=50;const p=2147483647;a.kMaxLength=p;const{Uint8Array:u,ArrayBuffer:c,SharedArrayBuffer:E}=globalThis;i.TYPED_ARRAY_SUPPORT=d(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function d(){try{const t=new u(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,u.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function I(t){if(t>p)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new u(t);return Object.setPrototypeOf(e,i.prototype),e}function i(t,e,n){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(t)}return A(t,e,n)}i.poolSize=8192;function A(t,e,n){if(typeof t=="string")return j(t,e);if(c.isView(t))return at(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(O(t,c)||t&&O(t.buffer,c)||typeof E<"u"&&(O(t,E)||t&&O(t.buffer,E)))return X(t,e,n);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const o=t.valueOf&&t.valueOf();if(o!=null&&o!==t)return i.from(o,e,n);const r=ct(t);if(r)return r;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return i.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}i.from=function(t,e,n){return A(t,e,n)},Object.setPrototypeOf(i.prototype,u.prototype),Object.setPrototypeOf(i,u);function S(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function U(t,e,n){return S(t),t<=0?I(t):e!==void 0?typeof n=="string"?I(t).fill(e,n):I(t).fill(e):I(t)}i.alloc=function(t,e,n){return U(t,e,n)};function C(t){return S(t),I(t<0?0:z(t)|0)}i.allocUnsafe=function(t){return C(t)},i.allocUnsafeSlow=function(t){return C(t)};function j(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=J(t,e)|0;let o=I(n);const r=o.write(t,e);return r!==n&&(o=o.slice(0,r)),o}function Y(t){const e=t.length<0?0:z(t.length)|0,n=I(e);for(let o=0;o<e;o+=1)n[o]=t[o]&255;return n}function at(t){if(O(t,u)){const e=new u(t);return X(e.buffer,e.byteOffset,e.byteLength)}return Y(t)}function X(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return e===void 0&&n===void 0?o=new u(t):n===void 0?o=new u(t,e):o=new u(t,e,n),Object.setPrototypeOf(o,i.prototype),o}function ct(t){if(i.isBuffer(t)){const e=z(t.length)|0,n=I(e);return n.length===0||t.copy(n,0,0,e),n}if(t.length!==void 0)return typeof t.length!="number"||V(t.length)?I(0):Y(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Y(t.data)}function z(t){if(t>=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return t|0}function lt(t){return+t!=t&&(t=0),i.alloc(+t)}i.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==i.prototype},i.compare=function(t,e){if(O(t,u)&&(t=i.from(t,t.offset,t.byteLength)),O(e,u)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,o=e.length;for(let r=0,f=Math.min(n,o);r<f;++r)if(t[r]!==e[r]){n=t[r],o=e[r];break}return n<o?-1:o<n?1:0},i.isEncoding=function(t){switch(String(t).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}},i.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return i.alloc(0);let n;if(e===void 0)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const o=i.allocUnsafe(e);let r=0;for(n=0;n<t.length;++n){let f=t[n];if(O(f,u))r+f.length>o.length?(i.isBuffer(f)||(f=i.from(f)),f.copy(o,r)):u.prototype.set.call(o,f,r);else if(i.isBuffer(f))f.copy(o,r);else throw new TypeError('"list" argument must be an Array of Buffers');r+=f.length}return o};function J(t,e){if(i.isBuffer(t))return t.length;if(c.isView(t)||O(t,c))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&n===0)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return st(t).length;default:if(r)return o?-1:D(t).length;e=(""+e).toLowerCase(),r=!0}}i.byteLength=J;function pt(t,e,n){let o=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return vt(this,e,n);case"utf8":case"utf-8":return K(this,e,n);case"ascii":return Bt(this,e,n);case"latin1":case"binary":return It(this,e,n);case"base64":return Et(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}i.prototype._isBuffer=!0;function M(t,e,n){const o=t[e];t[e]=t[n],t[n]=o}i.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)M(this,e,e+1);return this},i.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)M(this,e,e+3),M(this,e+1,e+2);return this},i.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)M(this,e,e+7),M(this,e+1,e+6),M(this,e+2,e+5),M(this,e+3,e+4);return this},i.prototype.toString=function(){const t=this.length;return t===0?"":arguments.length===0?K(this,0,t):pt.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:i.compare(this,t)===0},i.prototype.inspect=function(){let t="";const e=a.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},g&&(i.prototype[g]=i.prototype.inspect),i.prototype.compare=function(t,e,n,o,r){if(O(t,u)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),o===void 0&&(o=0),r===void 0&&(r=this.length),e<0||n>t.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&e>=n)return 0;if(o>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,o>>>=0,r>>>=0,this===t)return 0;let f=r-o,s=n-e;const w=Math.min(f,s),v=this.slice(o,r),b=t.slice(e,n);for(let y=0;y<w;++y)if(v[y]!==b[y]){f=v[y],s=b[y];break}return f<s?-1:s<f?1:0};function Z(t,e,n,o,r){if(t.length===0)return-1;if(typeof n=="string"?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,V(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0)if(r)n=0;else return-1;if(typeof e=="string"&&(e=i.from(e,o)),i.isBuffer(e))return e.length===0?-1:H(t,e,n,o,r);if(typeof e=="number")return e=e&255,typeof u.prototype.indexOf=="function"?r?u.prototype.indexOf.call(t,e,n):u.prototype.lastIndexOf.call(t,e,n):H(t,[e],n,o,r);throw new TypeError("val must be string, number or Buffer")}function H(t,e,n,o,r){let f=1,s=t.length,w=e.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(t.length<2||e.length<2)return-1;f=2,s/=2,w/=2,n/=2}function v(y,m){return f===1?y[m]:y.readUInt16BE(m*f)}let b;if(r){let y=-1;for(b=n;b<s;b++)if(v(t,b)===v(e,y===-1?0:b-y)){if(y===-1&&(y=b),b-y+1===w)return y*f}else y!==-1&&(b-=b-y),y=-1}else for(n+w>s&&(n=s-w),b=n;b>=0;b--){let y=!0;for(let m=0;m<w;m++)if(v(t,b+m)!==v(e,m)){y=!1;break}if(y)return b}return-1}i.prototype.includes=function(t,e,n){return this.indexOf(t,e,n)!==-1},i.prototype.indexOf=function(t,e,n){return Z(this,t,e,n,!0)},i.prototype.lastIndexOf=function(t,e,n){return Z(this,t,e,n,!1)};function gt(t,e,n,o){n=Number(n)||0;const r=t.length-n;o?(o=Number(o),o>r&&(o=r)):o=r;const f=e.length;o>f/2&&(o=f/2);let s;for(s=0;s<o;++s){const w=parseInt(e.substr(s*2,2),16);if(V(w))return s;t[n+s]=w}return s}function yt(t,e,n,o){return k(D(e,t.length-n),t,n,o)}function wt(t,e,n,o){return k(Ot(e),t,n,o)}function dt(t,e,n,o){return k(st(e),t,n,o)}function bt(t,e,n,o){return k(Lt(e,t.length-n),t,n,o)}i.prototype.write=function(t,e,n,o){if(e===void 0)o="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")o=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const r=this.length-e;if((n===void 0||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let f=!1;for(;;)switch(o){case"hex":return gt(this,t,e,n);case"utf8":case"utf-8":return yt(this,t,e,n);case"ascii":case"latin1":case"binary":return wt(this,t,e,n);case"base64":return dt(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,t,e,n);default:if(f)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),f=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Et(t,e,n){return e===0&&n===t.length?h.fromByteArray(t):h.fromByteArray(t.slice(e,n))}function K(t,e,n){n=Math.min(t.length,n);const o=[];let r=e;for(;r<n;){const f=t[r];let s=null,w=f>239?4:f>223?3:f>191?2:1;if(r+w<=n){let v,b,y,m;switch(w){case 1:f<128&&(s=f);break;case 2:v=t[r+1],(v&192)===128&&(m=(f&31)<<6|v&63,m>127&&(s=m));break;case 3:v=t[r+1],b=t[r+2],(v&192)===128&&(b&192)===128&&(m=(f&15)<<12|(v&63)<<6|b&63,m>2047&&(m<55296||m>57343)&&(s=m));break;case 4:v=t[r+1],b=t[r+2],y=t[r+3],(v&192)===128&&(b&192)===128&&(y&192)===128&&(m=(f&15)<<18|(v&63)<<12|(b&63)<<6|y&63,m>65535&&m<1114112&&(s=m))}}s===null?(s=65533,w=1):s>65535&&(s-=65536,o.push(s>>>10&1023|55296),s=56320|s&1023),o.push(s),r+=w}return mt(o)}const Q=4096;function mt(t){const e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);let n="",o=0;for(;o<e;)n+=String.fromCharCode.apply(String,t.slice(o,o+=Q));return n}function Bt(t,e,n){let o="";n=Math.min(t.length,n);for(let r=e;r<n;++r)o+=String.fromCharCode(t[r]&127);return o}function It(t,e,n){let o="";n=Math.min(t.length,n);for(let r=e;r<n;++r)o+=String.fromCharCode(t[r]);return o}function vt(t,e,n){const o=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>o)&&(n=o);let r="";for(let f=e;f<n;++f)r+=St[t[f]];return r}function At(t,e,n){const o=t.slice(e,n);let r="";for(let f=0;f<o.length-1;f+=2)r+=String.fromCharCode(o[f]+o[f+1]*256);return r}i.prototype.slice=function(t,e){const n=this.length;t=~~t,e=e===void 0?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t);const o=this.subarray(t,e);return Object.setPrototypeOf(o,i.prototype),o};function B(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||B(t,e,this.length);let o=this[t],r=1,f=0;for(;++f<e&&(r*=256);)o+=this[t+f]*r;return o},i.prototype.readUintBE=i.prototype.readUIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||B(t,e,this.length);let o=this[t+--e],r=1;for(;e>0&&(r*=256);)o+=this[t+--e]*r;return o},i.prototype.readUint8=i.prototype.readUInt8=function(t,e){return t=t>>>0,e||B(t,1,this.length),this[t]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||B(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||B(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||B(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readBigUInt64LE=_(function(t){t=t>>>0,N(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&P(t,this.length-8);const o=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,r=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(o)+(BigInt(r)<<BigInt(32))}),i.prototype.readBigUInt64BE=_(function(t){t=t>>>0,N(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&P(t,this.length-8);const o=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],r=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(r)}),i.prototype.readIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||B(t,e,this.length);let o=this[t],r=1,f=0;for(;++f<e&&(r*=256);)o+=this[t+f]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},i.prototype.readIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||B(t,e,this.length);let o=e,r=1,f=this[t+--o];for(;o>0&&(r*=256);)f+=this[t+--o]*r;return r*=128,f>=r&&(f-=Math.pow(2,8*e)),f},i.prototype.readInt8=function(t,e){return t=t>>>0,e||B(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},i.prototype.readInt16LE=function(t,e){t=t>>>0,e||B(t,2,this.length);const n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n},i.prototype.readInt16BE=function(t,e){t=t>>>0,e||B(t,2,this.length);const n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n},i.prototype.readInt32LE=function(t,e){return t=t>>>0,e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t=t>>>0,e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readBigInt64LE=_(function(t){t=t>>>0,N(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&P(t,this.length-8);const o=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)}),i.prototype.readBigInt64BE=_(function(t){t=t>>>0,N(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&P(t,this.length-8);const o=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)}),i.prototype.readFloatLE=function(t,e){return t=t>>>0,e||B(t,4,this.length),l.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t=t>>>0,e||B(t,4,this.length),l.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||B(t,8,this.length),l.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||B(t,8,this.length),l.read(this,t,!1,52,8)};function R(t,e,n,o,r,f){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<f)throw new RangeError('"value" argument is out of bounds');if(n+o>t.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(t,e,n,o){if(t=+t,e=e>>>0,n=n>>>0,!o){const s=Math.pow(2,8*n)-1;R(this,t,e,n,s,0)}let r=1,f=0;for(this[e]=t&255;++f<n&&(r*=256);)this[e+f]=t/r&255;return e+n},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(t,e,n,o){if(t=+t,e=e>>>0,n=n>>>0,!o){const s=Math.pow(2,8*n)-1;R(this,t,e,n,s,0)}let r=n-1,f=1;for(this[e+r]=t&255;--r>=0&&(f*=256);)this[e+r]=t/f&255;return e+n},i.prototype.writeUint8=i.prototype.writeUInt8=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,1,255,0),this[e]=t&255,e+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function tt(t,e,n,o,r){ft(e,o,r,t,n,7);let f=Number(e&BigInt(4294967295));t[n++]=f,f=f>>8,t[n++]=f,f=f>>8,t[n++]=f,f=f>>8,t[n++]=f;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s=s>>8,t[n++]=s,s=s>>8,t[n++]=s,s=s>>8,t[n++]=s,n}function et(t,e,n,o,r){ft(e,o,r,t,n,7);let f=Number(e&BigInt(4294967295));t[n+7]=f,f=f>>8,t[n+6]=f,f=f>>8,t[n+5]=f,f=f>>8,t[n+4]=f;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s=s>>8,t[n+2]=s,s=s>>8,t[n+1]=s,s=s>>8,t[n]=s,n+8}i.prototype.writeBigUInt64LE=_(function(t,e=0){return tt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=_(function(t,e=0){return et(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(t,e,n,o){if(t=+t,e=e>>>0,!o){const w=Math.pow(2,8*n-1);R(this,t,e,n,w-1,-w)}let r=0,f=1,s=0;for(this[e]=t&255;++r<n&&(f*=256);)t<0&&s===0&&this[e+r-1]!==0&&(s=1),this[e+r]=(t/f>>0)-s&255;return e+n},i.prototype.writeIntBE=function(t,e,n,o){if(t=+t,e=e>>>0,!o){const w=Math.pow(2,8*n-1);R(this,t,e,n,w-1,-w)}let r=n-1,f=1,s=0;for(this[e+r]=t&255;--r>=0&&(f*=256);)t<0&&s===0&&this[e+r+1]!==0&&(s=1),this[e+r]=(t/f>>0)-s&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4},i.prototype.writeBigInt64LE=_(function(t,e=0){return tt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=_(function(t,e=0){return et(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(t,e,n,o,r,f){if(n+o>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ot(t,e,n,o,r){return e=+e,n=n>>>0,r||nt(t,e,n,4),l.write(t,e,n,o,23,4),n+4}i.prototype.writeFloatLE=function(t,e,n){return ot(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return ot(this,t,e,!1,n)};function rt(t,e,n,o,r){return e=+e,n=n>>>0,r||nt(t,e,n,8),l.write(t,e,n,o,52,8),n+8}i.prototype.writeDoubleLE=function(t,e,n){return rt(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return rt(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,o){if(!i.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o<n&&(o=n),o===n||t.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-n&&(o=t.length-e+n);const r=o-n;return this===t&&typeof u.prototype.copyWithin=="function"?this.copyWithin(e,n,o):u.prototype.set.call(t,this.subarray(n,o),e),r},i.prototype.fill=function(t,e,n,o){if(typeof t=="string"){if(typeof e=="string"?(o=e,e=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!i.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(t.length===1){const f=t.charCodeAt(0);(o==="utf8"&&f<128||o==="latin1")&&(t=f)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let r;if(typeof t=="number")for(r=e;r<n;++r)this[r]=t;else{const f=i.isBuffer(t)?t:i.from(t,o),s=f.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<n-e;++r)this[r+e]=f[r%s]}return this};const x={};function G(t,e,n){x[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}G("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),G("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),G("ERR_OUT_OF_RANGE",function(t,e,n){let o=`The value of "${t}" is out of range.`,r=n;return Number.isInteger(n)&&Math.abs(n)>2**32?r=it(String(n)):typeof n=="bigint"&&(r=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(r=it(r)),r+="n"),o+=` It must be ${e}. Received ${r}`,o},RangeError);function it(t){let e="",n=t.length;const o=t[0]==="-"?1:0;for(;n>=o+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function Rt(t,e,n){N(e,"offset"),(t[e]===void 0||t[e+n]===void 0)&&P(e,t.length-(n+1))}function ft(t,e,n,o,r,f){if(t>n||t<e){const s=typeof e=="bigint"?"n":"";let w;throw e===0||e===BigInt(0)?w=`>= 0${s} and < 2${s} ** ${(f+1)*8}${s}`:w=`>= -(2${s} ** ${(f+1)*8-1}${s}) and < 2 ** ${(f+1)*8-1}${s}`,new x.ERR_OUT_OF_RANGE("value",w,t)}Rt(o,r,f)}function N(t,e){if(typeof t!="number")throw new x.ERR_INVALID_ARG_TYPE(e,"number",t)}function P(t,e,n){throw Math.floor(t)!==t?(N(t,n),new x.ERR_OUT_OF_RANGE("offset","an integer",t)):e<0?new x.ERR_BUFFER_OUT_OF_BOUNDS:new x.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,t)}const Ut=/[^+/0-9A-Za-z-_]/g;function Tt(t){if(t=t.split("=")[0],t=t.trim().replace(Ut,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function D(t,e){e=e||1/0;let n;const o=t.length;let r=null;const f=[];for(let s=0;s<o;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&f.push(239,191,189);continue}else if(s+1===o){(e-=3)>-1&&f.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&f.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(e-=3)>-1&&f.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;f.push(n)}else if(n<2048){if((e-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function Ot(t){const e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n)&255);return e}function Lt(t,e){let n,o,r;const f=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),o=n>>8,r=n%256,f.push(r),f.push(o);return f}function st(t){return h.toByteArray(Tt(t))}function k(t,e,n,o){let r;for(r=0;r<o&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function O(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function V(t){return t!==t}const St=(function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const o=n*16;for(let r=0;r<16;++r)e[o+r]=t[n]+t[r]}return e})();function _(t){return typeof BigInt>"u"?_t:t}function _t(){throw new Error("BigInt not supported")}})(ut);const jt=ut.Buffer;export{jt as Y};
@@ -0,0 +1,5 @@
1
+ const p=(o=0)=>e=>`\x1B[${e+o}m`,B=(o=0)=>e=>`\x1B[${38+o};5;${e}m`,y=(o=0)=>(e,t,r)=>`\x1B[${38+o};2;${e};${t};${r}m`,l={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(l.modifier);const T=Object.keys(l.color),M=Object.keys(l.bgColor);[...T,...M];function w(){const o=new Map;for(const[e,t]of Object.entries(l)){for(const[r,n]of Object.entries(t))l[r]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},t[r]=l[r],o.set(n[0],n[1]);Object.defineProperty(l,e,{value:t,enumerable:!1})}return Object.defineProperty(l,"codes",{value:o,enumerable:!1}),l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",l.color.ansi=p(),l.color.ansi256=B(),l.color.ansi16m=y(),l.bgColor.ansi=p(10),l.bgColor.ansi256=B(10),l.bgColor.ansi16m=y(10),Object.defineProperties(l,{rgbToAnsi256:{value(e,t,r){return e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(e){const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;r.length===3&&(r=[...r].map(s=>s+s).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:e=>l.rgbToAnsi256(...l.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,r,n;if(e>=232)t=((e-232)*10+8)/255,r=t,n=t;else{e-=16;const v=e%36;t=Math.floor(e/36)/5,r=Math.floor(v/6)/5,n=v%6/5}const s=Math.max(t,r,n)*2;if(s===0)return 30;let a=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>l.ansi256ToAnsi(l.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>l.ansi256ToAnsi(l.hexToAnsi256(e)),enumerable:!1}}),l}const i=w(),O=(()=>{if(navigator.userAgentData){const o=navigator.userAgentData.brands.find(({brand:e})=>e==="Chromium");if(o&&o.version>93)return 3}return/\b(Chrome|Chromium)\//.test(navigator.userAgent)?1:0})(),x=O!==0&&{level:O},P={stdout:x,stderr:x};function k(o,e,t){let r=o.indexOf(e);if(r===-1)return o;const n=e.length;let s=0,a="";do a+=o.slice(s,r)+e+t,s=r+n,r=o.indexOf(e,s);while(r!==-1);return a+=o.slice(s),a}function R(o,e,t,r){let n=0,s="";do{const a=o[r-1]==="\r";s+=o.slice(n,a?r-1:r)+e+(a?`\r
2
+ `:`
3
+ `)+t,n=r+1,r=o.indexOf(`
4
+ `,n)}while(r!==-1);return s+=o.slice(n),s}const{stdout:A,stderr:j}=P,f=Symbol("GENERATOR"),c=Symbol("STYLER"),g=Symbol("IS_EMPTY"),C=["ansi","ansi","ansi256","ansi16m"],u=Object.create(null),$=(o,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const t=A?A.level:0;o.level=e.level===void 0?t:e.level},S=o=>{const e=(...t)=>t.join(" ");return $(e,o),Object.setPrototypeOf(e,b.prototype),e};function b(o){return S(o)}Object.setPrototypeOf(b.prototype,Function.prototype);for(const[o,e]of Object.entries(i))u[o]={get(){const t=h(this,m(e.open,e.close,this[c]),this[g]);return Object.defineProperty(this,o,{value:t}),t}};u.visible={get(){const o=h(this,this[c],!0);return Object.defineProperty(this,"visible",{value:o}),o}};const d=(o,e,t,...r)=>o==="rgb"?e==="ansi16m"?i[t].ansi16m(...r):e==="ansi256"?i[t].ansi256(i.rgbToAnsi256(...r)):i[t].ansi(i.rgbToAnsi(...r)):o==="hex"?d("rgb",e,t,...i.hexToRgb(...r)):i[t][o](...r),E=["rgb","hex","ansi256"];for(const o of E){u[o]={get(){const{level:t}=this;return function(...r){const n=m(d(o,C[t],"color",...r),i.color.close,this[c]);return h(this,n,this[g])}}};const e="bg"+o[0].toUpperCase()+o.slice(1);u[e]={get(){const{level:t}=this;return function(...r){const n=m(d(o,C[t],"bgColor",...r),i.bgColor.close,this[c]);return h(this,n,this[g])}}}}const G=Object.defineProperties(()=>{},{...u,level:{enumerable:!0,get(){return this[f].level},set(o){this[f].level=o}}}),m=(o,e,t)=>{let r,n;return t===void 0?(r=o,n=e):(r=t.openAll+o,n=e+t.closeAll),{open:o,close:e,openAll:r,closeAll:n,parent:t}},h=(o,e,t)=>{const r=(...n)=>N(r,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(r,G),r[f]=o,r[c]=e,r[g]=t,r},N=(o,e)=>{if(o.level<=0||!e)return o[g]?"":e;let t=o[c];if(t===void 0)return e;const{openAll:r,closeAll:n}=t;if(e.includes("\x1B"))for(;t!==void 0;)e=k(e,t.close,t.open),t=t.parent;const s=e.indexOf(`
5
+ `);return s!==-1&&(e=R(e,n,r,s)),r+e+n};Object.defineProperties(b.prototype,u);const I=b();b({level:j?j.level:0});export{M as backgroundColorNames,M as backgroundColors,I as default,T as foregroundColorNames,T as foregroundColors,A as supportsColor,j as supportsColorStderr};
@@ -0,0 +1,58 @@
1
+ import{c as We,a as Oe}from"./_commonjsHelpers-D6-XlEtG.js";import{b as Ot,a as Nt,r as Kt}from"./index-D1jV2j2Y.js";import{c as kt}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./__vite-browser-external-DJy8wZt7.js";/*!
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */var Ln=(function(){function o(r){var e=r||{},a=e.ValidationData,s=e.Username,f=e.Password,u=e.AuthParameters,l=e.ClientMetadata;this.validationData=a||{},this.authParameters=u||{},this.clientMetadata=l||{},this.username=s,this.password=f}var t=o.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},o})(),Ae={},Ue,Je;function qt(){if(Je)return Ue;Je=1;var o={}.toString;return Ue=Array.isArray||function(t){return o.call(t)=="[object Array]"},Ue}/*!
5
+ * The buffer module from node.js, for the browser.
6
+ *
7
+ * @author Feross Aboukhadijeh <http://feross.org>
8
+ * @license MIT
9
+ */var Ge;function Vt(){return Ge||(Ge=1,(function(o){var t=Ot(),r=Nt(),e=qt();o.Buffer=u,o.SlowBuffer=T,o.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=We.TYPED_ARRAY_SUPPORT!==void 0?We.TYPED_ARRAY_SUPPORT:a(),o.kMaxLength=s();function a(){try{var h=new Uint8Array(1);return h.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},h.foo()===42&&typeof h.subarray=="function"&&h.subarray(1,1).byteLength===0}catch{return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(h,n){if(s()<n)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(h=new Uint8Array(n),h.__proto__=u.prototype):(h===null&&(h=new u(n)),h.length=n),h}function u(h,n,i){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(h,n,i);if(typeof h=="number"){if(typeof n=="string")throw new Error("If encoding is specified then the first argument must be a string");return y(this,h)}return l(this,h,n,i)}u.poolSize=8192,u._augment=function(h){return h.__proto__=u.prototype,h};function l(h,n,i,c){if(typeof n=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer?A(h,n,i,c):typeof n=="string"?S(h,n,i):C(h,n)}u.from=function(h,n,i){return l(null,h,n,i)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0}));function p(h){if(typeof h!="number")throw new TypeError('"size" argument must be a number');if(h<0)throw new RangeError('"size" argument must not be negative')}function d(h,n,i,c){return p(n),n<=0?f(h,n):i!==void 0?typeof c=="string"?f(h,n).fill(i,c):f(h,n).fill(i):f(h,n)}u.alloc=function(h,n,i){return d(null,h,n,i)};function y(h,n){if(p(n),h=f(h,n<0?0:D(n)|0),!u.TYPED_ARRAY_SUPPORT)for(var i=0;i<n;++i)h[i]=0;return h}u.allocUnsafe=function(h){return y(null,h)},u.allocUnsafeSlow=function(h){return y(null,h)};function S(h,n,i){if((typeof i!="string"||i==="")&&(i="utf8"),!u.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var c=P(n,i)|0;h=f(h,c);var g=h.write(n,i);return g!==c&&(h=h.slice(0,g)),h}function U(h,n){var i=n.length<0?0:D(n.length)|0;h=f(h,i);for(var c=0;c<i;c+=1)h[c]=n[c]&255;return h}function A(h,n,i,c){if(n.byteLength,i<0||n.byteLength<i)throw new RangeError("'offset' is out of bounds");if(n.byteLength<i+(c||0))throw new RangeError("'length' is out of bounds");return i===void 0&&c===void 0?n=new Uint8Array(n):c===void 0?n=new Uint8Array(n,i):n=new Uint8Array(n,i,c),u.TYPED_ARRAY_SUPPORT?(h=n,h.__proto__=u.prototype):h=U(h,n),h}function C(h,n){if(u.isBuffer(n)){var i=D(n.length)|0;return h=f(h,i),h.length===0||n.copy(h,0,0,i),h}if(n){if(typeof ArrayBuffer<"u"&&n.buffer instanceof ArrayBuffer||"length"in n)return typeof n.length!="number"||Mt(n.length)?f(h,0):U(h,n);if(n.type==="Buffer"&&e(n.data))return U(h,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function D(h){if(h>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return h|0}function T(h){return+h!=h&&(h=0),u.alloc(+h)}u.isBuffer=function(n){return!!(n!=null&&n._isBuffer)},u.compare=function(n,i){if(!u.isBuffer(n)||!u.isBuffer(i))throw new TypeError("Arguments must be Buffers");if(n===i)return 0;for(var c=n.length,g=i.length,v=0,m=Math.min(c,g);v<m;++v)if(n[v]!==i[v]){c=n[v],g=i[v];break}return c<g?-1:g<c?1:0},u.isEncoding=function(n){switch(String(n).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}},u.concat=function(n,i){if(!e(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return u.alloc(0);var c;if(i===void 0)for(i=0,c=0;c<n.length;++c)i+=n[c].length;var g=u.allocUnsafe(i),v=0;for(c=0;c<n.length;++c){var m=n[c];if(!u.isBuffer(m))throw new TypeError('"list" argument must be an Array of Buffers');m.copy(g,v),v+=m.length}return g};function P(h,n){if(u.isBuffer(h))return h.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(h)||h instanceof ArrayBuffer))return h.byteLength;typeof h!="string"&&(h=""+h);var i=h.length;if(i===0)return 0;for(var c=!1;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return ve(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return je(h).length;default:if(c)return ve(h).length;n=(""+n).toLowerCase(),c=!0}}u.byteLength=P;function j(h,n,i){var c=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,n>>>=0,i<=n))return"";for(h||(h="utf8");;)switch(h){case"hex":return xt(this,n,i);case"utf8":case"utf-8":return ne(this,n,i);case"ascii":return Tt(this,n,i);case"latin1":case"binary":return Dt(this,n,i);case"base64":return $(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,n,i);default:if(c)throw new TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),c=!0}}u.prototype._isBuffer=!0;function k(h,n,i){var c=h[n];h[n]=h[i],h[i]=c}u.prototype.swap16=function(){var n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<n;i+=2)k(this,i,i+1);return this},u.prototype.swap32=function(){var n=this.length;if(n%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<n;i+=4)k(this,i,i+3),k(this,i+1,i+2);return this},u.prototype.swap64=function(){var n=this.length;if(n%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<n;i+=8)k(this,i,i+7),k(this,i+1,i+6),k(this,i+2,i+5),k(this,i+3,i+4);return this},u.prototype.toString=function(){var n=this.length|0;return n===0?"":arguments.length===0?ne(this,0,n):j.apply(this,arguments)},u.prototype.equals=function(n){if(!u.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:u.compare(this,n)===0},u.prototype.inspect=function(){var n="",i=o.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(n+=" ... ")),"<Buffer "+n+">"},u.prototype.compare=function(n,i,c,g,v){if(!u.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(i===void 0&&(i=0),c===void 0&&(c=n?n.length:0),g===void 0&&(g=0),v===void 0&&(v=this.length),i<0||c>n.length||g<0||v>this.length)throw new RangeError("out of range index");if(g>=v&&i>=c)return 0;if(g>=v)return-1;if(i>=c)return 1;if(i>>>=0,c>>>=0,g>>>=0,v>>>=0,this===n)return 0;for(var m=v-g,E=c-i,x=Math.min(m,E),_=this.slice(g,v),B=n.slice(i,c),R=0;R<x;++R)if(_[R]!==B[R]){m=_[R],E=B[R];break}return m<E?-1:E<m?1:0};function Y(h,n,i,c,g){if(h.length===0)return-1;if(typeof i=="string"?(c=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=g?0:h.length-1),i<0&&(i=h.length+i),i>=h.length){if(g)return-1;i=h.length-1}else if(i<0)if(g)i=0;else return-1;if(typeof n=="string"&&(n=u.from(n,c)),u.isBuffer(n))return n.length===0?-1:W(h,n,i,c,g);if(typeof n=="number")return n=n&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?g?Uint8Array.prototype.indexOf.call(h,n,i):Uint8Array.prototype.lastIndexOf.call(h,n,i):W(h,[n],i,c,g);throw new TypeError("val must be string, number or Buffer")}function W(h,n,i,c,g){var v=1,m=h.length,E=n.length;if(c!==void 0&&(c=String(c).toLowerCase(),c==="ucs2"||c==="ucs-2"||c==="utf16le"||c==="utf-16le")){if(h.length<2||n.length<2)return-1;v=2,m/=2,E/=2,i/=2}function x(He,Ye){return v===1?He[Ye]:He.readUInt16BE(Ye*v)}var _;if(g){var B=-1;for(_=i;_<m;_++)if(x(h,_)===x(n,B===-1?0:_-B)){if(B===-1&&(B=_),_-B+1===E)return B*v}else B!==-1&&(_-=_-B),B=-1}else for(i+E>m&&(i=m-E),_=i;_>=0;_--){for(var R=!0,ye=0;ye<E;ye++)if(x(h,_+ye)!==x(n,ye)){R=!1;break}if(R)return _}return-1}u.prototype.includes=function(n,i,c){return this.indexOf(n,i,c)!==-1},u.prototype.indexOf=function(n,i,c){return Y(this,n,i,c,!0)},u.prototype.lastIndexOf=function(n,i,c){return Y(this,n,i,c,!1)};function te(h,n,i,c){i=Number(i)||0;var g=h.length-i;c?(c=Number(c),c>g&&(c=g)):c=g;var v=n.length;if(v%2!==0)throw new TypeError("Invalid hex string");c>v/2&&(c=v/2);for(var m=0;m<c;++m){var E=parseInt(n.substr(m*2,2),16);if(isNaN(E))return m;h[i+m]=E}return m}function L(h,n,i,c){return me(ve(n,h.length-i),h,i,c)}function O(h,n,i,c){return me(Bt(n),h,i,c)}function J(h,n,i,c){return O(h,n,i,c)}function z(h,n,i,c){return me(je(n),h,i,c)}function re(h,n,i,c){return me(bt(n,h.length-i),h,i,c)}u.prototype.write=function(n,i,c,g){if(i===void 0)g="utf8",c=this.length,i=0;else if(c===void 0&&typeof i=="string")g=i,c=this.length,i=0;else if(isFinite(i))i=i|0,isFinite(c)?(c=c|0,g===void 0&&(g="utf8")):(g=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var v=this.length-i;if((c===void 0||c>v)&&(c=v),n.length>0&&(c<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");g||(g="utf8");for(var m=!1;;)switch(g){case"hex":return te(this,n,i,c);case"utf8":case"utf-8":return L(this,n,i,c);case"ascii":return O(this,n,i,c);case"latin1":case"binary":return J(this,n,i,c);case"base64":return z(this,n,i,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,n,i,c);default:if(m)throw new TypeError("Unknown encoding: "+g);g=(""+g).toLowerCase(),m=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $(h,n,i){return n===0&&i===h.length?t.fromByteArray(h):t.fromByteArray(h.slice(n,i))}function ne(h,n,i){i=Math.min(h.length,i);for(var c=[],g=n;g<i;){var v=h[g],m=null,E=v>239?4:v>223?3:v>191?2:1;if(g+E<=i){var x,_,B,R;switch(E){case 1:v<128&&(m=v);break;case 2:x=h[g+1],(x&192)===128&&(R=(v&31)<<6|x&63,R>127&&(m=R));break;case 3:x=h[g+1],_=h[g+2],(x&192)===128&&(_&192)===128&&(R=(v&15)<<12|(x&63)<<6|_&63,R>2047&&(R<55296||R>57343)&&(m=R));break;case 4:x=h[g+1],_=h[g+2],B=h[g+3],(x&192)===128&&(_&192)===128&&(B&192)===128&&(R=(v&15)<<18|(x&63)<<12|(_&63)<<6|B&63,R>65535&&R<1114112&&(m=R))}}m===null?(m=65533,E=1):m>65535&&(m-=65536,c.push(m>>>10&1023|55296),m=56320|m&1023),c.push(m),g+=E}return Ce(c)}var G=4096;function Ce(h){var n=h.length;if(n<=G)return String.fromCharCode.apply(String,h);for(var i="",c=0;c<n;)i+=String.fromCharCode.apply(String,h.slice(c,c+=G));return i}function Tt(h,n,i){var c="";i=Math.min(h.length,i);for(var g=n;g<i;++g)c+=String.fromCharCode(h[g]&127);return c}function Dt(h,n,i){var c="";i=Math.min(h.length,i);for(var g=n;g<i;++g)c+=String.fromCharCode(h[g]);return c}function xt(h,n,i){var c=h.length;(!n||n<0)&&(n=0),(!i||i<0||i>c)&&(i=c);for(var g="",v=n;v<i;++v)g+=Ft(h[v]);return g}function It(h,n,i){for(var c=h.slice(n,i),g="",v=0;v<c.length;v+=2)g+=String.fromCharCode(c[v]+c[v+1]*256);return g}u.prototype.slice=function(n,i){var c=this.length;n=~~n,i=i===void 0?c:~~i,n<0?(n+=c,n<0&&(n=0)):n>c&&(n=c),i<0?(i+=c,i<0&&(i=0)):i>c&&(i=c),i<n&&(i=n);var g;if(u.TYPED_ARRAY_SUPPORT)g=this.subarray(n,i),g.__proto__=u.prototype;else{var v=i-n;g=new u(v,void 0);for(var m=0;m<v;++m)g[m]=this[m+n]}return g};function F(h,n,i){if(h%1!==0||h<0)throw new RangeError("offset is not uint");if(h+n>i)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(n,i,c){n=n|0,i=i|0,c||F(n,i,this.length);for(var g=this[n],v=1,m=0;++m<i&&(v*=256);)g+=this[n+m]*v;return g},u.prototype.readUIntBE=function(n,i,c){n=n|0,i=i|0,c||F(n,i,this.length);for(var g=this[n+--i],v=1;i>0&&(v*=256);)g+=this[n+--i]*v;return g},u.prototype.readUInt8=function(n,i){return i||F(n,1,this.length),this[n]},u.prototype.readUInt16LE=function(n,i){return i||F(n,2,this.length),this[n]|this[n+1]<<8},u.prototype.readUInt16BE=function(n,i){return i||F(n,2,this.length),this[n]<<8|this[n+1]},u.prototype.readUInt32LE=function(n,i){return i||F(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},u.prototype.readUInt32BE=function(n,i){return i||F(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},u.prototype.readIntLE=function(n,i,c){n=n|0,i=i|0,c||F(n,i,this.length);for(var g=this[n],v=1,m=0;++m<i&&(v*=256);)g+=this[n+m]*v;return v*=128,g>=v&&(g-=Math.pow(2,8*i)),g},u.prototype.readIntBE=function(n,i,c){n=n|0,i=i|0,c||F(n,i,this.length);for(var g=i,v=1,m=this[n+--g];g>0&&(v*=256);)m+=this[n+--g]*v;return v*=128,m>=v&&(m-=Math.pow(2,8*i)),m},u.prototype.readInt8=function(n,i){return i||F(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},u.prototype.readInt16LE=function(n,i){i||F(n,2,this.length);var c=this[n]|this[n+1]<<8;return c&32768?c|4294901760:c},u.prototype.readInt16BE=function(n,i){i||F(n,2,this.length);var c=this[n+1]|this[n]<<8;return c&32768?c|4294901760:c},u.prototype.readInt32LE=function(n,i){return i||F(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},u.prototype.readInt32BE=function(n,i){return i||F(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},u.prototype.readFloatLE=function(n,i){return i||F(n,4,this.length),r.read(this,n,!0,23,4)},u.prototype.readFloatBE=function(n,i){return i||F(n,4,this.length),r.read(this,n,!1,23,4)},u.prototype.readDoubleLE=function(n,i){return i||F(n,8,this.length),r.read(this,n,!0,52,8)},u.prototype.readDoubleBE=function(n,i){return i||F(n,8,this.length),r.read(this,n,!1,52,8)};function M(h,n,i,c,g,v){if(!u.isBuffer(h))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>g||n<v)throw new RangeError('"value" argument is out of bounds');if(i+c>h.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(n,i,c,g){if(n=+n,i=i|0,c=c|0,!g){var v=Math.pow(2,8*c)-1;M(this,n,i,c,v,0)}var m=1,E=0;for(this[i]=n&255;++E<c&&(m*=256);)this[i+E]=n/m&255;return i+c},u.prototype.writeUIntBE=function(n,i,c,g){if(n=+n,i=i|0,c=c|0,!g){var v=Math.pow(2,8*c)-1;M(this,n,i,c,v,0)}var m=c-1,E=1;for(this[i+m]=n&255;--m>=0&&(E*=256);)this[i+m]=n/E&255;return i+c},u.prototype.writeUInt8=function(n,i,c){return n=+n,i=i|0,c||M(this,n,i,1,255,0),u.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[i]=n&255,i+1};function ge(h,n,i,c){n<0&&(n=65535+n+1);for(var g=0,v=Math.min(h.length-i,2);g<v;++g)h[i+g]=(n&255<<8*(c?g:1-g))>>>(c?g:1-g)*8}u.prototype.writeUInt16LE=function(n,i,c){return n=+n,i=i|0,c||M(this,n,i,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[i]=n&255,this[i+1]=n>>>8):ge(this,n,i,!0),i+2},u.prototype.writeUInt16BE=function(n,i,c){return n=+n,i=i|0,c||M(this,n,i,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[i]=n>>>8,this[i+1]=n&255):ge(this,n,i,!1),i+2};function de(h,n,i,c){n<0&&(n=4294967295+n+1);for(var g=0,v=Math.min(h.length-i,4);g<v;++g)h[i+g]=n>>>(c?g:3-g)*8&255}u.prototype.writeUInt32LE=function(n,i,c){return n=+n,i=i|0,c||M(this,n,i,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[i+3]=n>>>24,this[i+2]=n>>>16,this[i+1]=n>>>8,this[i]=n&255):de(this,n,i,!0),i+4},u.prototype.writeUInt32BE=function(n,i,c){return n=+n,i=i|0,c||M(this,n,i,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255):de(this,n,i,!1),i+4},u.prototype.writeIntLE=function(n,i,c,g){if(n=+n,i=i|0,!g){var v=Math.pow(2,8*c-1);M(this,n,i,c,v-1,-v)}var m=0,E=1,x=0;for(this[i]=n&255;++m<c&&(E*=256);)n<0&&x===0&&this[i+m-1]!==0&&(x=1),this[i+m]=(n/E>>0)-x&255;return i+c},u.prototype.writeIntBE=function(n,i,c,g){if(n=+n,i=i|0,!g){var v=Math.pow(2,8*c-1);M(this,n,i,c,v-1,-v)}var m=c-1,E=1,x=0;for(this[i+m]=n&255;--m>=0&&(E*=256);)n<0&&x===0&&this[i+m+1]!==0&&(x=1),this[i+m]=(n/E>>0)-x&255;return i+c},u.prototype.writeInt8=function(n,i,c){return n=+n,i=i|0,c||M(this,n,i,1,127,-128),u.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[i]=n&255,i+1},u.prototype.writeInt16LE=function(n,i,c){return n=+n,i=i|0,c||M(this,n,i,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[i]=n&255,this[i+1]=n>>>8):ge(this,n,i,!0),i+2},u.prototype.writeInt16BE=function(n,i,c){return n=+n,i=i|0,c||M(this,n,i,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[i]=n>>>8,this[i+1]=n&255):ge(this,n,i,!1),i+2},u.prototype.writeInt32LE=function(n,i,c){return n=+n,i=i|0,c||M(this,n,i,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[i]=n&255,this[i+1]=n>>>8,this[i+2]=n>>>16,this[i+3]=n>>>24):de(this,n,i,!0),i+4},u.prototype.writeInt32BE=function(n,i,c){return n=+n,i=i|0,c||M(this,n,i,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),u.TYPED_ARRAY_SUPPORT?(this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255):de(this,n,i,!1),i+4};function qe(h,n,i,c,g,v){if(i+c>h.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Ve(h,n,i,c,g){return g||qe(h,n,i,4),r.write(h,n,i,c,23,4),i+4}u.prototype.writeFloatLE=function(n,i,c){return Ve(this,n,i,!0,c)},u.prototype.writeFloatBE=function(n,i,c){return Ve(this,n,i,!1,c)};function Le(h,n,i,c,g){return g||qe(h,n,i,8),r.write(h,n,i,c,52,8),i+8}u.prototype.writeDoubleLE=function(n,i,c){return Le(this,n,i,!0,c)},u.prototype.writeDoubleBE=function(n,i,c){return Le(this,n,i,!1,c)},u.prototype.copy=function(n,i,c,g){if(c||(c=0),!g&&g!==0&&(g=this.length),i>=n.length&&(i=n.length),i||(i=0),g>0&&g<c&&(g=c),g===c||n.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(c<0||c>=this.length)throw new RangeError("sourceStart out of bounds");if(g<0)throw new RangeError("sourceEnd out of bounds");g>this.length&&(g=this.length),n.length-i<g-c&&(g=n.length-i+c);var v=g-c,m;if(this===n&&c<i&&i<g)for(m=v-1;m>=0;--m)n[m+i]=this[m+c];else if(v<1e3||!u.TYPED_ARRAY_SUPPORT)for(m=0;m<v;++m)n[m+i]=this[m+c];else Uint8Array.prototype.set.call(n,this.subarray(c,c+v),i);return v},u.prototype.fill=function(n,i,c,g){if(typeof n=="string"){if(typeof i=="string"?(g=i,i=0,c=this.length):typeof c=="string"&&(g=c,c=this.length),n.length===1){var v=n.charCodeAt(0);v<256&&(n=v)}if(g!==void 0&&typeof g!="string")throw new TypeError("encoding must be a string");if(typeof g=="string"&&!u.isEncoding(g))throw new TypeError("Unknown encoding: "+g)}else typeof n=="number"&&(n=n&255);if(i<0||this.length<i||this.length<c)throw new RangeError("Out of range index");if(c<=i)return this;i=i>>>0,c=c===void 0?this.length:c>>>0,n||(n=0);var m;if(typeof n=="number")for(m=i;m<c;++m)this[m]=n;else{var E=u.isBuffer(n)?n:ve(new u(n,g).toString()),x=E.length;for(m=0;m<c-i;++m)this[m+i]=E[m%x]}return this};var _t=/[^+\/0-9A-Za-z-_]/g;function Rt(h){if(h=Pt(h).replace(_t,""),h.length<2)return"";for(;h.length%4!==0;)h=h+"=";return h}function Pt(h){return h.trim?h.trim():h.replace(/^\s+|\s+$/g,"")}function Ft(h){return h<16?"0"+h.toString(16):h.toString(16)}function ve(h,n){n=n||1/0;for(var i,c=h.length,g=null,v=[],m=0;m<c;++m){if(i=h.charCodeAt(m),i>55295&&i<57344){if(!g){if(i>56319){(n-=3)>-1&&v.push(239,191,189);continue}else if(m+1===c){(n-=3)>-1&&v.push(239,191,189);continue}g=i;continue}if(i<56320){(n-=3)>-1&&v.push(239,191,189),g=i;continue}i=(g-55296<<10|i-56320)+65536}else g&&(n-=3)>-1&&v.push(239,191,189);if(g=null,i<128){if((n-=1)<0)break;v.push(i)}else if(i<2048){if((n-=2)<0)break;v.push(i>>6|192,i&63|128)}else if(i<65536){if((n-=3)<0)break;v.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((n-=4)<0)break;v.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return v}function Bt(h){for(var n=[],i=0;i<h.length;++i)n.push(h.charCodeAt(i)&255);return n}function bt(h,n){for(var i,c,g,v=[],m=0;m<h.length&&!((n-=2)<0);++m)i=h.charCodeAt(m),c=i>>8,g=i%256,v.push(g),v.push(c);return v}function je(h){return t.toByteArray(Rt(h))}function me(h,n,i,c){for(var g=0;g<c&&!(g+i>=n.length||g>=h.length);++g)n[g+i]=h[g];return g}function Mt(h){return h!==h}})(Ae)),Ae}var I=Vt(),q;typeof window<"u"&&window.crypto&&(q=window.crypto);!q&&typeof window<"u"&&window.msCrypto&&(q=window.msCrypto);!q&&typeof global<"u"&&global.crypto&&(q=global.crypto);if(!q&&typeof kt=="function")try{q=Kt}catch{}function Lt(){if(q){if(typeof q.getRandomValues=="function")try{return q.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof q.randomBytes=="function")try{return q.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")}function jt(o){for(var t=o.words,r=o.sigBytes,e=[],a=0;a<r;a++){var s=t[a>>>2]>>>24-a%4*8&255;e.push((s>>>4).toString(16)),e.push((s&15).toString(16))}return e.join("")}var Ht=(function(){function o(r,e){r=this.words=r||[],e!=null?this.sigBytes=e:this.sigBytes=r.length*4}var t=o.prototype;return t.random=function(e){for(var a=[],s=0;s<e;s+=4)a.push(Lt());return new o(a,e)},t.toString=function(){return jt(this)},o})(),Ee={};/*! *****************************************************************************
10
+ Copyright (c) Microsoft Corporation.
11
+
12
+ Permission to use, copy, modify, and/or distribute this software for any
13
+ purpose with or without fee is hereby granted.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
+ PERFORMANCE OF THIS SOFTWARE.
22
+ ***************************************************************************** */var _e=function(o,t){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var a in e)e.hasOwnProperty(a)&&(r[a]=e[a])},_e(o,t)};function Yt(o,t){_e(o,t);function r(){this.constructor=o}o.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Re=function(){return Re=Object.assign||function(t){for(var r,e=1,a=arguments.length;e<a;e++){r=arguments[e];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Re.apply(this,arguments)};function Wt(o,t){var r={};for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&t.indexOf(e)<0&&(r[e]=o[e]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,e=Object.getOwnPropertySymbols(o);a<e.length;a++)t.indexOf(e[a])<0&&Object.prototype.propertyIsEnumerable.call(o,e[a])&&(r[e[a]]=o[e[a]]);return r}function Jt(o,t,r,e){var a=arguments.length,s=a<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,r):e,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,t,r,e);else for(var u=o.length-1;u>=0;u--)(f=o[u])&&(s=(a<3?f(s):a>3?f(t,r,s):f(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s}function Gt(o,t){return function(r,e){t(r,e,o)}}function Zt(o,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,t)}function zt(o,t,r,e){function a(s){return s instanceof r?s:new r(function(f){f(s)})}return new(r||(r=Promise))(function(s,f){function u(d){try{p(e.next(d))}catch(y){f(y)}}function l(d){try{p(e.throw(d))}catch(y){f(y)}}function p(d){d.done?s(d.value):a(d.value).then(u,l)}p((e=e.apply(o,t||[])).next())})}function $t(o,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},e,a,s,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(p){return function(d){return l([p,d])}}function l(p){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){r.label=p[1];break}if(p[0]===6&&r.label<s[1]){r.label=s[1],s=p;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(p);break}s[2]&&r.ops.pop(),r.trys.pop();continue}p=t.call(o,r)}catch(d){p=[6,d],a=0}finally{e=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function Xt(o,t,r,e){e===void 0&&(e=r),o[e]=t[r]}function Qt(o,t){for(var r in o)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=o[r])}function Pe(o){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&o[t],e=0;if(r)return r.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&e>=o.length&&(o=void 0),{value:o&&o[e++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function mt(o,t){var r=typeof Symbol=="function"&&o[Symbol.iterator];if(!r)return o;var e=r.call(o),a,s=[],f;try{for(;(t===void 0||t-- >0)&&!(a=e.next()).done;)s.push(a.value)}catch(u){f={error:u}}finally{try{a&&!a.done&&(r=e.return)&&r.call(e)}finally{if(f)throw f.error}}return s}function er(){for(var o=[],t=0;t<arguments.length;t++)o=o.concat(mt(arguments[t]));return o}function tr(){for(var o=0,t=0,r=arguments.length;t<r;t++)o+=arguments[t].length;for(var e=Array(o),a=0,t=0;t<r;t++)for(var s=arguments[t],f=0,u=s.length;f<u;f++,a++)e[a]=s[f];return e}function le(o){return this instanceof le?(this.v=o,this):new le(o)}function rr(o,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r.apply(o,t||[]),a,s=[];return a={},f("next"),f("throw"),f("return"),a[Symbol.asyncIterator]=function(){return this},a;function f(S){e[S]&&(a[S]=function(U){return new Promise(function(A,C){s.push([S,U,A,C])>1||u(S,U)})})}function u(S,U){try{l(e[S](U))}catch(A){y(s[0][3],A)}}function l(S){S.value instanceof le?Promise.resolve(S.value.v).then(p,d):y(s[0][2],S)}function p(S){u("next",S)}function d(S){u("throw",S)}function y(S,U){S(U),s.shift(),s.length&&u(s[0][0],s[0][1])}}function nr(o){var t,r;return t={},e("next"),e("throw",function(a){throw a}),e("return"),t[Symbol.iterator]=function(){return this},t;function e(a,s){t[a]=o[a]?function(f){return(r=!r)?{value:le(o[a](f)),done:a==="return"}:s?s(f):f}:s}}function ir(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=o[Symbol.asyncIterator],r;return t?t.call(o):(o=typeof Pe=="function"?Pe(o):o[Symbol.iterator](),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r);function e(s){r[s]=o[s]&&function(f){return new Promise(function(u,l){f=o[s](f),a(u,l,f.done,f.value)})}}function a(s,f,u,l){Promise.resolve(l).then(function(p){s({value:p,done:u})},f)}}function sr(o,t){return Object.defineProperty?Object.defineProperty(o,"raw",{value:t}):o.raw=t,o}function or(o){if(o&&o.__esModule)return o;var t={};if(o!=null)for(var r in o)Object.hasOwnProperty.call(o,r)&&(t[r]=o[r]);return t.default=o,t}function ar(o){return o&&o.__esModule?o:{default:o}}function ur(o,t){if(!t.has(o))throw new TypeError("attempted to get private field on non-instance");return t.get(o)}function fr(o,t,r){if(!t.has(o))throw new TypeError("attempted to set private field on non-instance");return t.set(o,r),r}const hr=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Re},__asyncDelegator:nr,__asyncGenerator:rr,__asyncValues:ir,__await:le,__awaiter:zt,__classPrivateFieldGet:ur,__classPrivateFieldSet:fr,__createBinding:Xt,__decorate:Jt,__exportStar:Qt,__extends:Yt,__generator:$t,__importDefault:ar,__importStar:or,__makeTemplateObject:sr,__metadata:Zt,__param:Gt,__read:mt,__rest:Wt,__spread:er,__spreadArrays:tr,__values:Pe},Symbol.toStringTag,{value:"Module"})),yt=Oe(hr);var ie={},N={},Ze;function St(){return Ze||(Ze=1,Object.defineProperty(N,"__esModule",{value:!0}),N.MAX_HASHABLE_LENGTH=N.INIT=N.KEY=N.DIGEST_LENGTH=N.BLOCK_SIZE=void 0,N.BLOCK_SIZE=64,N.DIGEST_LENGTH=32,N.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),N.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],N.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),N}var se={},ze;function cr(){if(ze)return se;ze=1,Object.defineProperty(se,"__esModule",{value:!0}),se.RawSha256=void 0;var o=St(),t=(function(){function r(){this.state=Int32Array.from(o.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var a=0,s=e.byteLength;if(this.bytesHashed+=s,this.bytesHashed*8>o.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=e[a++],s--,this.bufferLength===o.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,a=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(a.setUint8(this.bufferLength++,128),s%o.BLOCK_SIZE>=o.BLOCK_SIZE-8){for(var f=this.bufferLength;f<o.BLOCK_SIZE;f++)a.setUint8(f,0);this.hashBuffer(),this.bufferLength=0}for(var f=this.bufferLength;f<o.BLOCK_SIZE-8;f++)a.setUint8(f,0);a.setUint32(o.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),a.setUint32(o.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}for(var u=new Uint8Array(o.DIGEST_LENGTH),f=0;f<8;f++)u[f*4]=this.state[f]>>>24&255,u[f*4+1]=this.state[f]>>>16&255,u[f*4+2]=this.state[f]>>>8&255,u[f*4+3]=this.state[f]>>>0&255;return u},r.prototype.hashBuffer=function(){for(var e=this,a=e.buffer,s=e.state,f=s[0],u=s[1],l=s[2],p=s[3],d=s[4],y=s[5],S=s[6],U=s[7],A=0;A<o.BLOCK_SIZE;A++){if(A<16)this.temp[A]=(a[A*4]&255)<<24|(a[A*4+1]&255)<<16|(a[A*4+2]&255)<<8|a[A*4+3]&255;else{var C=this.temp[A-2],D=(C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10;C=this.temp[A-15];var T=(C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3;this.temp[A]=(D+this.temp[A-7]|0)+(T+this.temp[A-16]|0)}var P=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&y^~d&S)|0)+(U+(o.KEY[A]+this.temp[A]|0)|0)|0,j=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&u^f&l^u&l)|0;U=S,S=y,y=d,d=p+P|0,p=l,l=u,u=f,f=P+j|0}s[0]+=f,s[1]+=u,s[2]+=l,s[3]+=p,s[4]+=d,s[5]+=y,s[6]+=S,s[7]+=U},r})();return se.RawSha256=t,se}var Te={},oe={};const lr=o=>{const t=[];for(let r=0,e=o.length;r<e;r++){const a=o.charCodeAt(r);if(a<128)t.push(a);else if(a<2048)t.push(a>>6|192,a&63|128);else if(r+1<o.length&&(a&64512)===55296&&(o.charCodeAt(r+1)&64512)===56320){const s=65536+((a&1023)<<10)+(o.charCodeAt(++r)&1023);t.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else t.push(a>>12|224,a>>6&63|128,a&63|128)}return Uint8Array.from(t)},pr=o=>{let t="";for(let r=0,e=o.length;r<e;r++){const a=o[r];if(a<128)t+=String.fromCharCode(a);else if(192<=a&&a<224){const s=o[++r];t+=String.fromCharCode((a&31)<<6|s&63)}else if(240<=a&&a<365){const f="%"+[a,o[++r],o[++r],o[++r]].map(u=>u.toString(16)).join("%");t+=decodeURIComponent(f)}else t+=String.fromCharCode((a&15)<<12|(o[++r]&63)<<6|o[++r]&63)}return t};function gr(o){return new TextEncoder().encode(o)}function dr(o){return new TextDecoder("utf-8").decode(o)}const vr=o=>typeof TextEncoder=="function"?gr(o):lr(o),mr=o=>typeof TextDecoder=="function"?dr(o):pr(o),yr=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:vr,toUtf8:mr},Symbol.toStringTag,{value:"Module"})),Sr=Oe(yr);var $e;function wr(){if($e)return oe;$e=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.convertToBuffer=void 0;var o=Sr,t=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:o.fromUtf8;function r(e){return e instanceof Uint8Array?e:typeof e=="string"?t(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}return oe.convertToBuffer=r,oe}var ae={},Xe;function Cr(){if(Xe)return ae;Xe=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.isEmptyData=void 0;function o(t){return typeof t=="string"?t.length===0:t.byteLength===0}return ae.isEmptyData=o,ae}var ue={},Qe;function Ar(){if(Qe)return ue;Qe=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.numToUint8=void 0;function o(t){return new Uint8Array([(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255])}return ue.numToUint8=o,ue}var fe={},et;function Ur(){if(et)return fe;et=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.uint32ArrayFrom=void 0;function o(t){if(!Array.from){for(var r=new Uint32Array(t.length),e=0;e<t.length;)r[e]=t[e];return r}return Uint32Array.from(t)}return fe.uint32ArrayFrom=o,fe}var tt;function Er(){return tt||(tt=1,(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.uint32ArrayFrom=o.numToUint8=o.isEmptyData=o.convertToBuffer=void 0;var t=wr();Object.defineProperty(o,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var r=Cr();Object.defineProperty(o,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var e=Ar();Object.defineProperty(o,"numToUint8",{enumerable:!0,get:function(){return e.numToUint8}});var a=Ur();Object.defineProperty(o,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})})(Te)),Te}var rt;function Tr(){if(rt)return ie;rt=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.Sha256=void 0;var o=yt,t=St(),r=cr(),e=Er(),a=(function(){function f(u){if(this.hash=new r.RawSha256,u){this.outer=new r.RawSha256;var l=s(u),p=new Uint8Array(t.BLOCK_SIZE);p.set(l);for(var d=0;d<t.BLOCK_SIZE;d++)l[d]^=54,p[d]^=92;this.hash.update(l),this.outer.update(p);for(var d=0;d<l.byteLength;d++)l[d]=0}}return f.prototype.update=function(u){if(!((0,e.isEmptyData)(u)||this.error))try{this.hash.update((0,e.convertToBuffer)(u))}catch(l){this.error=l}},f.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()},f.prototype.digest=function(){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(u){return[2,this.digestSync()]})})},f})();ie.Sha256=a;function s(f){var u=(0,e.convertToBuffer)(f);if(u.byteLength>t.BLOCK_SIZE){var l=new r.RawSha256;l.update(u),u=l.digest()}var p=new Uint8Array(t.BLOCK_SIZE);return p.set(u),p}return ie}var nt;function Dr(){return nt||(nt=1,(function(o){Object.defineProperty(o,"__esModule",{value:!0});var t=yt;(0,t.__exportStar)(Tr(),o)})(Ee)),Ee}var ce=Dr();function w(o,t){o!=null&&this.fromString(o,t)}function b(){return new w(null)}var H,xr=0xdeadbeefcafe,it=(xr&16777215)==15715070;function Ir(o,t,r,e,a,s){for(;--s>=0;){var f=t*this[o++]+r[e]+a;a=Math.floor(f/67108864),r[e++]=f&67108863}return a}function _r(o,t,r,e,a,s){for(var f=t&32767,u=t>>15;--s>=0;){var l=this[o]&32767,p=this[o++]>>15,d=u*l+p*f;l=f*l+((d&32767)<<15)+r[e]+(a&1073741823),a=(l>>>30)+(d>>>15)+u*p+(a>>>30),r[e++]=l&1073741823}return a}function Rr(o,t,r,e,a,s){for(var f=t&16383,u=t>>14;--s>=0;){var l=this[o]&16383,p=this[o++]>>14,d=u*l+p*f;l=f*l+((d&16383)<<14)+r[e]+a,a=(l>>28)+(d>>14)+u*p,r[e++]=l&268435455}return a}var st=typeof navigator<"u";st&&it&&navigator.appName=="Microsoft Internet Explorer"?(w.prototype.am=_r,H=30):st&&it&&navigator.appName!="Netscape"?(w.prototype.am=Ir,H=26):(w.prototype.am=Rr,H=28);w.prototype.DB=H;w.prototype.DM=(1<<H)-1;w.prototype.DV=1<<H;var Ne=52;w.prototype.FV=Math.pow(2,Ne);w.prototype.F1=Ne-H;w.prototype.F2=2*H-Ne;var Pr="0123456789abcdefghijklmnopqrstuvwxyz",we=new Array,Q,V;Q=48;for(V=0;V<=9;++V)we[Q++]=V;Q=97;for(V=10;V<36;++V)we[Q++]=V;Q=65;for(V=10;V<36;++V)we[Q++]=V;function ot(o){return Pr.charAt(o)}function Fr(o,t){var r=we[o.charCodeAt(t)];return r??-1}function Br(o){for(var t=this.t-1;t>=0;--t)o[t]=this[t];o.t=this.t,o.s=this.s}function br(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0}function Ke(o){var t=b();return t.fromInt(o),t}function Mr(o,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var e=o.length,a=!1,s=0;--e>=0;){var f=Fr(o,e);if(f<0){o.charAt(e)=="-"&&(a=!0);continue}a=!1,s==0?this[this.t++]=f:s+r>this.DB?(this[this.t-1]|=(f&(1<<this.DB-s)-1)<<s,this[this.t++]=f>>this.DB-s):this[this.t-1]|=f<<s,s+=r,s>=this.DB&&(s-=this.DB)}this.clamp(),a&&w.ZERO.subTo(this,this)}function Or(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t}function Nr(o){if(this.s<0)return"-"+this.negate().toString(o);var t;if(o==16)t=4;else if(o==8)t=3;else if(o==2)t=1;else if(o==32)t=5;else if(o==4)t=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var r=(1<<t)-1,e,a=!1,s="",f=this.t,u=this.DB-f*this.DB%t;if(f-- >0)for(u<this.DB&&(e=this[f]>>u)>0&&(a=!0,s=ot(e));f>=0;)u<t?(e=(this[f]&(1<<u)-1)<<t-u,e|=this[--f]>>(u+=this.DB-t)):(e=this[f]>>(u-=t)&r,u<=0&&(u+=this.DB,--f)),e>0&&(a=!0),a&&(s+=ot(e));return a?s:"0"}function Kr(){var o=b();return w.ZERO.subTo(this,o),o}function kr(){return this.s<0?this.negate():this}function qr(o){var t=this.s-o.s;if(t!=0)return t;var r=this.t;if(t=r-o.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-o[r])!=0)return t;return 0}function ke(o){var t=1,r;return(r=o>>>16)!=0&&(o=r,t+=16),(r=o>>8)!=0&&(o=r,t+=8),(r=o>>4)!=0&&(o=r,t+=4),(r=o>>2)!=0&&(o=r,t+=2),(r=o>>1)!=0&&(o=r,t+=1),t}function Vr(){return this.t<=0?0:this.DB*(this.t-1)+ke(this[this.t-1]^this.s&this.DM)}function Lr(o,t){var r;for(r=this.t-1;r>=0;--r)t[r+o]=this[r];for(r=o-1;r>=0;--r)t[r]=0;t.t=this.t+o,t.s=this.s}function jr(o,t){for(var r=o;r<this.t;++r)t[r-o]=this[r];t.t=Math.max(this.t-o,0),t.s=this.s}function Hr(o,t){var r=o%this.DB,e=this.DB-r,a=(1<<e)-1,s=Math.floor(o/this.DB),f=this.s<<r&this.DM,u;for(u=this.t-1;u>=0;--u)t[u+s+1]=this[u]>>e|f,f=(this[u]&a)<<r;for(u=s-1;u>=0;--u)t[u]=0;t[s]=f,t.t=this.t+s+1,t.s=this.s,t.clamp()}function Yr(o,t){t.s=this.s;var r=Math.floor(o/this.DB);if(r>=this.t){t.t=0;return}var e=o%this.DB,a=this.DB-e,s=(1<<e)-1;t[0]=this[r]>>e;for(var f=r+1;f<this.t;++f)t[f-r-1]|=(this[f]&s)<<a,t[f-r]=this[f]>>e;e>0&&(t[this.t-r-1]|=(this.s&s)<<a),t.t=this.t-r,t.clamp()}function Wr(o,t){for(var r=0,e=0,a=Math.min(o.t,this.t);r<a;)e+=this[r]-o[r],t[r++]=e&this.DM,e>>=this.DB;if(o.t<this.t){for(e-=o.s;r<this.t;)e+=this[r],t[r++]=e&this.DM,e>>=this.DB;e+=this.s}else{for(e+=this.s;r<o.t;)e-=o[r],t[r++]=e&this.DM,e>>=this.DB;e-=o.s}t.s=e<0?-1:0,e<-1?t[r++]=this.DV+e:e>0&&(t[r++]=e),t.t=r,t.clamp()}function Jr(o,t){var r=this.abs(),e=o.abs(),a=r.t;for(t.t=a+e.t;--a>=0;)t[a]=0;for(a=0;a<e.t;++a)t[a+r.t]=r.am(0,e[a],t,a,0,r.t);t.s=0,t.clamp(),this.s!=o.s&&w.ZERO.subTo(t,t)}function Gr(o){for(var t=this.abs(),r=o.t=2*t.t;--r>=0;)o[r]=0;for(r=0;r<t.t-1;++r){var e=t.am(r,t[r],o,2*r,0,1);(o[r+t.t]+=t.am(r+1,2*t[r],o,2*r+1,e,t.t-r-1))>=t.DV&&(o[r+t.t]-=t.DV,o[r+t.t+1]=1)}o.t>0&&(o[o.t-1]+=t.am(r,t[r],o,2*r,0,1)),o.s=0,o.clamp()}function Zr(o,t,r){var e=o.abs();if(!(e.t<=0)){var a=this.abs();if(a.t<e.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=b());var s=b(),f=this.s,u=o.s,l=this.DB-ke(e[e.t-1]);l>0?(e.lShiftTo(l,s),a.lShiftTo(l,r)):(e.copyTo(s),a.copyTo(r));var p=s.t,d=s[p-1];if(d!=0){var y=d*(1<<this.F1)+(p>1?s[p-2]>>this.F2:0),S=this.FV/y,U=(1<<this.F1)/y,A=1<<this.F2,C=r.t,D=C-p,T=t??b();for(s.dlShiftTo(D,T),r.compareTo(T)>=0&&(r[r.t++]=1,r.subTo(T,r)),w.ONE.dlShiftTo(p,T),T.subTo(s,s);s.t<p;)s[s.t++]=0;for(;--D>=0;){var P=r[--C]==d?this.DM:Math.floor(r[C]*S+(r[C-1]+A)*U);if((r[C]+=s.am(0,P,r,D,0,p))<P)for(s.dlShiftTo(D,T),r.subTo(T,r);r[C]<--P;)r.subTo(T,r)}t!=null&&(r.drShiftTo(p,t),f!=u&&w.ZERO.subTo(t,t)),r.t=p,r.clamp(),l>0&&r.rShiftTo(l,r),f<0&&w.ZERO.subTo(r,r)}}}function zr(o){var t=b();return this.abs().divRemTo(o,null,t),this.s<0&&t.compareTo(w.ZERO)>0&&o.subTo(t,t),t}function $r(){if(this.t<1)return 0;var o=this[0];if((o&1)==0)return 0;var t=o&3;return t=t*(2-(o&15)*t)&15,t=t*(2-(o&255)*t)&255,t=t*(2-((o&65535)*t&65535))&65535,t=t*(2-o*t%this.DV)%this.DV,t>0?this.DV-t:-t}function Xr(o){return this.compareTo(o)==0}function Qr(o,t){for(var r=0,e=0,a=Math.min(o.t,this.t);r<a;)e+=this[r]+o[r],t[r++]=e&this.DM,e>>=this.DB;if(o.t<this.t){for(e+=o.s;r<this.t;)e+=this[r],t[r++]=e&this.DM,e>>=this.DB;e+=this.s}else{for(e+=this.s;r<o.t;)e+=o[r],t[r++]=e&this.DM,e>>=this.DB;e+=o.s}t.s=e<0?-1:0,e>0?t[r++]=e:e<-1&&(t[r++]=this.DV+e),t.t=r,t.clamp()}function en(o){var t=b();return this.addTo(o,t),t}function tn(o){var t=b();return this.subTo(o,t),t}function rn(o){var t=b();return this.multiplyTo(o,t),t}function nn(o){var t=b();return this.divRemTo(o,t,null),t}function ee(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}function sn(o){var t=b();return o.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),o.s<0&&t.compareTo(w.ZERO)>0&&this.m.subTo(t,t),t}function on(o){var t=b();return o.copyTo(t),this.reduce(t),t}function an(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var t=0;t<this.m.t;++t){var r=o[t]&32767,e=r*this.mpl+((r*this.mph+(o[t]>>15)*this.mpl&this.um)<<15)&o.DM;for(r=t+this.m.t,o[r]+=this.m.am(0,e,o,t,0,this.m.t);o[r]>=o.DV;)o[r]-=o.DV,o[++r]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)}function un(o,t){o.squareTo(t),this.reduce(t)}function fn(o,t,r){o.multiplyTo(t,r),this.reduce(r)}ee.prototype.convert=sn;ee.prototype.revert=on;ee.prototype.reduce=an;ee.prototype.mulTo=fn;ee.prototype.sqrTo=un;function hn(o,t,r){var e=o.bitLength(),a,s=Ke(1),f=new ee(t);if(e<=0)return s;e<18?a=1:e<48?a=3:e<144?a=4:e<768?a=5:a=6;var u=new Array,l=3,p=a-1,d=(1<<a)-1;if(u[1]=f.convert(this),a>1){var y=b();for(f.sqrTo(u[1],y);l<=d;)u[l]=b(),f.mulTo(y,u[l-2],u[l]),l+=2}var S=o.t-1,U,A=!0,C=b(),D;for(e=ke(o[S])-1;S>=0;){for(e>=p?U=o[S]>>e-p&d:(U=(o[S]&(1<<e+1)-1)<<p-e,S>0&&(U|=o[S-1]>>this.DB+e-p)),l=a;(U&1)==0;)U>>=1,--l;if((e-=l)<0&&(e+=this.DB,--S),A)u[U].copyTo(s),A=!1;else{for(;l>1;)f.sqrTo(s,C),f.sqrTo(C,s),l-=2;l>0?f.sqrTo(s,C):(D=s,s=C,C=D),f.mulTo(C,u[U],s)}for(;S>=0&&(o[S]&1<<e)==0;)f.sqrTo(s,C),D=s,s=C,C=D,--e<0&&(e=this.DB-1,--S)}var T=f.revert(s);return r(null,T),T}w.prototype.copyTo=Br;w.prototype.fromInt=br;w.prototype.fromString=Mr;w.prototype.clamp=Or;w.prototype.dlShiftTo=Lr;w.prototype.drShiftTo=jr;w.prototype.lShiftTo=Hr;w.prototype.rShiftTo=Yr;w.prototype.subTo=Wr;w.prototype.multiplyTo=Jr;w.prototype.squareTo=Gr;w.prototype.divRemTo=Zr;w.prototype.invDigit=$r;w.prototype.addTo=Qr;w.prototype.toString=Nr;w.prototype.negate=Kr;w.prototype.abs=kr;w.prototype.compareTo=qr;w.prototype.bitLength=Vr;w.prototype.mod=zr;w.prototype.equals=Xr;w.prototype.add=en;w.prototype.subtract=tn;w.prototype.multiply=rn;w.prototype.divide=nn;w.prototype.modPow=hn;w.ZERO=Ke(0);w.ONE=Ke(1);/*!
23
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
24
+ * SPDX-License-Identifier: Apache-2.0
25
+ */function De(o){return I.Buffer.from(new Ht().random(o).toString(),"hex")}var cn=/^[89a-f]/i,ln="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",pn="userAttributes.",X=(function(){function o(r){this.N=new w(ln,16),this.g=new w("2",16),this.k=new w(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=I.Buffer.from("Caldera Derived Key","utf8"),this.poolName=r}var t=o.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(e){var a=this;this.largeAValue?e(null,this.largeAValue):this.calculateA(this.smallAValue,function(s,f){s&&e(s,null),a.largeAValue=f,e(null,a.largeAValue)})},t.generateRandomSmallA=function(){var e=De(128).toString("hex"),a=new w(e,16);return a},t.generateRandomString=function(){return De(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(e,a,s){var f=this;this.randomPassword=this.generateRandomString();var u=""+e+a+":"+this.randomPassword,l=this.hash(u),p=De(16).toString("hex");this.SaltToHashDevices=this.padHex(new w(p,16)),this.g.modPow(new w(this.hexHash(this.SaltToHashDevices+l),16),this.N,function(d,y){d&&s(d,null),f.verifierDevices=f.padHex(y),s(null,null)})},t.calculateA=function(e,a){var s=this;this.g.modPow(e,this.N,function(f,u){f&&a(f,null),u.mod(s.N).equals(w.ZERO)&&a(new Error("Illegal paramater. A mod N cannot be 0."),null),a(null,u)})},t.calculateU=function(e,a){this.UHexHash=this.hexHash(this.padHex(e)+this.padHex(a));var s=new w(this.UHexHash,16);return s},t.hash=function(e){var a=new ce.Sha256;a.update(e);var s=a.digestSync(),f=I.Buffer.from(s).toString("hex");return new Array(64-f.length).join("0")+f},t.hexHash=function(e){return this.hash(I.Buffer.from(e,"hex"))},t.computehkdf=function(e,a){var s=I.Buffer.concat([this.infoBits,I.Buffer.from("","utf8")]),f=new ce.Sha256(a);f.update(e);var u=f.digestSync(),l=new ce.Sha256(u);l.update(s);var p=l.digestSync(),d=p,y=d.slice(0,16);return y},t.getPasswordAuthenticationKey=function(e,a,s,f,u){var l=this;if(s.mod(this.N).equals(w.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,s),this.UValue.equals(w.ZERO))throw new Error("U cannot be zero.");var p=""+this.poolName+e+":"+a,d=this.hash(p),y=new w(this.hexHash(this.padHex(f)+d),16);this.calculateS(y,s,function(S,U){S&&u(S,null);var A=l.computehkdf(I.Buffer.from(l.padHex(U),"hex"),I.Buffer.from(l.padHex(l.UValue),"hex"));u(null,A)})},t.calculateS=function(e,a,s){var f=this;this.g.modPow(e,this.N,function(u,l){u&&s(u,null);var p=a.subtract(f.k.multiply(l));p.modPow(f.smallAValue.add(f.UValue.multiply(e)),f.N,function(d,y){d&&s(d,null),s(null,y.mod(f.N))})})},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return pn},t.padHex=function(e){if(!(e instanceof w))throw new Error("Not a BigInteger");var a=e.compareTo(w.ZERO)<0,s=e.abs().toString(16);if(s=s.length%2!==0?"0"+s:s,s=cn.test(s)?"00"+s:s,a){var f=s.split("").map(function(l){var p=~parseInt(l,16)&15;return"0123456789ABCDEF".charAt(p)}).join(""),u=new w(f,16).add(w.ONE);s=u.toString(16),s.toUpperCase().startsWith("FF8")&&(s=s.substring(2))}return s},o})();/*!
26
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
27
+ * SPDX-License-Identifier: Apache-2.0
28
+ */var wt=(function(){function o(r){this.jwtToken=r||"",this.payload=this.decodePayload()}var t=o.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var e=this.jwtToken.split(".")[1];try{return JSON.parse(I.Buffer.from(e,"base64").toString("utf8"))}catch{return{}}},o})();function gn(o,t){o.prototype=Object.create(t.prototype),o.prototype.constructor=o,Fe(o,t)}function Fe(o,t){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},Fe(o,t)}var at=(function(o){function t(r){var e=r===void 0?{}:r,a=e.AccessToken;return o.call(this,a||"")||this}return gn(t,o),t})(wt);function dn(o,t){o.prototype=Object.create(t.prototype),o.prototype.constructor=o,Be(o,t)}function Be(o,t){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},Be(o,t)}var ut=(function(o){function t(r){var e=r===void 0?{}:r,a=e.IdToken;return o.call(this,a||"")||this}return dn(t,o),t})(wt);/*!
29
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
30
+ * SPDX-License-Identifier: Apache-2.0
31
+ */var ft=(function(){function o(r){var e=r===void 0?{}:r,a=e.RefreshToken;this.token=a||""}var t=o.prototype;return t.getToken=function(){return this.token},o})(),vn="5.0.4";/*!
32
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
+ * SPDX-License-Identifier: Apache-2.0
34
+ */var mn="aws-amplify/"+vn,Ct={userAgent:mn,isReactNative:typeof navigator<"u"&&navigator.product==="ReactNative"},yn=function(){return Ct.userAgent};/*!
35
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
36
+ * SPDX-License-Identifier: Apache-2.0
37
+ */var ht=(function(){function o(r){var e=r===void 0?{}:r,a=e.IdToken,s=e.RefreshToken,f=e.AccessToken,u=e.ClockDrift;if(f==null||a==null)throw new Error("Id token and Access Token must be present.");this.idToken=a,this.refreshToken=s,this.accessToken=f,this.clockDrift=u===void 0?this.calculateClockDrift():u}var t=o.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){var e=Math.floor(new Date/1e3),a=Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt());return e-a},t.isValid=function(){var e=Math.floor(new Date/1e3),a=e-this.clockDrift;return a<this.accessToken.getExpiration()&&a<this.idToken.getExpiration()},o})();/*!
38
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
39
+ * SPDX-License-Identifier: Apache-2.0
40
+ */var Sn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wn=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ct=(function(){function o(){}var t=o.prototype;return t.getNowString=function(){var e=new Date,a=wn[e.getUTCDay()],s=Sn[e.getUTCMonth()],f=e.getUTCDate(),u=e.getUTCHours();u<10&&(u="0"+u);var l=e.getUTCMinutes();l<10&&(l="0"+l);var p=e.getUTCSeconds();p<10&&(p="0"+p);var d=e.getUTCFullYear(),y=a+" "+s+" "+f+" "+u+":"+l+":"+p+" UTC "+d;return y},o})();/*!
41
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
42
+ * SPDX-License-Identifier: Apache-2.0
43
+ */var Cn=(function(){function o(r){var e=r===void 0?{}:r,a=e.Name,s=e.Value;this.Name=a||"",this.Value=s||""}var t=o.prototype;return t.getValue=function(){return this.Value},t.setValue=function(e){return this.Value=e,this},t.getName=function(){return this.Name},t.setName=function(e){return this.Name=e,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},o})();/*!
44
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
45
+ * SPDX-License-Identifier: Apache-2.0
46
+ */var Z={},An=(function(){function o(){}return o.setItem=function(r,e){return Z[r]=e,Z[r]},o.getItem=function(r){return Object.prototype.hasOwnProperty.call(Z,r)?Z[r]:void 0},o.removeItem=function(r){return delete Z[r]},o.clear=function(){return Z={},Z},o})(),At=(function(){function o(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch{this.storageWindow=An}}var t=o.prototype;return t.getStorage=function(){return this.storageWindow},o})();/*!
47
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
48
+ * SPDX-License-Identifier: Apache-2.0
49
+ */var Un=typeof navigator<"u",lt=Un?Ct.isReactNative?"react-native":navigator.userAgent:"nodejs",pt=(function(){function o(r){if(r==null||r.Username==null||r.Pool==null)throw new Error("Username and Pool information are required.");this.username=r.Username||"",this.pool=r.Pool,this.Session=null,this.client=r.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=r.Storage||new At().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=o.prototype;return t.setSignInUserSession=function(e){this.clearCachedUserData(),this.signInUserSession=e,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(e){this.authenticationFlowType=e},t.initiateAuth=function(e,a){var s=this,f=e.getAuthParameters();f.USERNAME=this.username;var u=Object.keys(e.getValidationData()).length!==0?e.getValidationData():e.getClientMetadata(),l={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:f,ClientMetadata:u};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",l,function(p,d){if(p)return a.onFailure(p);var y=d.ChallengeName,S=d.ChallengeParameters;return y==="CUSTOM_CHALLENGE"?(s.Session=d.Session,a.customChallenge(S)):(s.signInUserSession=s.getCognitoUserSession(d.AuthenticationResult),s.cacheTokens(),a.onSuccess(s.signInUserSession))})},t.authenticateUser=function(e,a){return this.authenticationFlowType==="USER_PASSWORD_AUTH"?this.authenticateUserPlainUsernamePassword(e,a):this.authenticationFlowType==="USER_SRP_AUTH"||this.authenticationFlowType==="CUSTOM_AUTH"?this.authenticateUserDefaultAuth(e,a):a.onFailure(new Error("Authentication flow type is invalid."))},t.authenticateUserDefaultAuth=function(e,a){var s=this,f=new X(this.pool.getUserPoolName()),u=new ct,l,p,d={};this.deviceKey!=null&&(d.DEVICE_KEY=this.deviceKey),d.USERNAME=this.username,f.getLargeAValue(function(y,S){y&&a.onFailure(y),d.SRP_A=S.toString(16),s.authenticationFlowType==="CUSTOM_AUTH"&&(d.CHALLENGE_NAME="SRP_A");var U=Object.keys(e.getValidationData()).length!==0?e.getValidationData():e.getClientMetadata(),A={AuthFlow:s.authenticationFlowType,ClientId:s.pool.getClientId(),AuthParameters:d,ClientMetadata:U};s.getUserContextData(s.username)&&(A.UserContextData=s.getUserContextData(s.username)),s.client.request("InitiateAuth",A,function(C,D){if(C)return a.onFailure(C);var T=D.ChallengeParameters;s.username=T.USER_ID_FOR_SRP,s.userDataKey=s.keyPrefix+"."+s.username+".userData",l=new w(T.SRP_B,16),p=new w(T.SALT,16),s.getCachedDeviceKeyAndPassword(),f.getPasswordAuthenticationKey(s.username,e.getPassword(),l,p,function(P,j){P&&a.onFailure(P);var k=u.getNowString(),Y=I.Buffer.concat([I.Buffer.from(s.pool.getUserPoolName(),"utf8"),I.Buffer.from(s.username,"utf8"),I.Buffer.from(T.SECRET_BLOCK,"base64"),I.Buffer.from(k,"utf8")]),W=new ce.Sha256(j);W.update(Y);var te=W.digestSync(),L=I.Buffer.from(te).toString("base64"),O={};O.USERNAME=s.username,O.PASSWORD_CLAIM_SECRET_BLOCK=T.SECRET_BLOCK,O.TIMESTAMP=k,O.PASSWORD_CLAIM_SIGNATURE=L,s.deviceKey!=null&&(O.DEVICE_KEY=s.deviceKey);var J=function($,ne){return s.client.request("RespondToAuthChallenge",$,function(G,Ce){return G&&G.code==="ResourceNotFoundException"&&G.message.toLowerCase().indexOf("device")!==-1?(O.DEVICE_KEY=null,s.deviceKey=null,s.randomPassword=null,s.deviceGroupKey=null,s.clearCachedDeviceKeyAndPassword(),J($,ne)):ne(G,Ce)})},z={ChallengeName:"PASSWORD_VERIFIER",ClientId:s.pool.getClientId(),ChallengeResponses:O,Session:D.Session,ClientMetadata:U};s.getUserContextData()&&(z.UserContextData=s.getUserContextData()),J(z,function(re,$){return re?a.onFailure(re):s.authenticateUserInternal($,f,a)})})})})},t.authenticateUserPlainUsernamePassword=function(e,a){var s=this,f={};if(f.USERNAME=this.username,f.PASSWORD=e.getPassword(),!f.PASSWORD){a.onFailure(new Error("PASSWORD parameter is required"));return}var u=new X(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(f.DEVICE_KEY=this.deviceKey);var l=Object.keys(e.getValidationData()).length!==0?e.getValidationData():e.getClientMetadata(),p={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:f,ClientMetadata:l};this.getUserContextData(this.username)&&(p.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",p,function(d,y){return d?a.onFailure(d):s.authenticateUserInternal(y,u,a)})},t.authenticateUserInternal=function(e,a,s){var f=this,u=e.ChallengeName,l=e.ChallengeParameters;if(u==="SMS_MFA")return this.Session=e.Session,s.mfaRequired(u,l);if(u==="SELECT_MFA_TYPE")return this.Session=e.Session,s.selectMFAType(u,l);if(u==="MFA_SETUP")return this.Session=e.Session,s.mfaSetup(u,l);if(u==="SOFTWARE_TOKEN_MFA")return this.Session=e.Session,s.totpRequired(u,l);if(u==="CUSTOM_CHALLENGE")return this.Session=e.Session,s.customChallenge(l);if(u==="NEW_PASSWORD_REQUIRED"){this.Session=e.Session;var p=null,d=null,y=[],S=a.getNewPasswordRequiredChallengeUserAttributePrefix();if(l&&(p=JSON.parse(e.ChallengeParameters.userAttributes),d=JSON.parse(e.ChallengeParameters.requiredAttributes)),d)for(var U=0;U<d.length;U++)y[U]=d[U].substr(S.length);return s.newPasswordRequired(p,y)}if(u==="DEVICE_SRP_AUTH"){this.Session=e.Session,this.getDeviceResponse(s);return}this.signInUserSession=this.getCognitoUserSession(e.AuthenticationResult),this.challengeName=u,this.cacheTokens();var A=e.AuthenticationResult.NewDeviceMetadata;if(A==null)return s.onSuccess(this.signInUserSession);a.generateHashDevice(e.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,e.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(C){if(C)return s.onFailure(C);var D={Salt:I.Buffer.from(a.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:I.Buffer.from(a.getVerifierDevices(),"hex").toString("base64")};f.verifierDevices=D.PasswordVerifier,f.deviceGroupKey=A.DeviceGroupKey,f.randomPassword=a.getRandomPassword(),f.client.request("ConfirmDevice",{DeviceKey:A.DeviceKey,AccessToken:f.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:D,DeviceName:lt},function(T,P){return T?s.onFailure(T):(f.deviceKey=e.AuthenticationResult.NewDeviceMetadata.DeviceKey,f.cacheDeviceKeyAndPassword(),P.UserConfirmationNecessary===!0?s.onSuccess(f.signInUserSession,P.UserConfirmationNecessary):s.onSuccess(f.signInUserSession))})})},t.completeNewPasswordChallenge=function(e,a,s,f){var u=this;if(!e)return s.onFailure(new Error("New password is required."));var l=new X(this.pool.getUserPoolName()),p=l.getNewPasswordRequiredChallengeUserAttributePrefix(),d={};a&&Object.keys(a).forEach(function(S){d[p+S]=a[S]}),d.NEW_PASSWORD=e,d.USERNAME=this.username;var y={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:d,Session:this.Session,ClientMetadata:f};this.getUserContextData()&&(y.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",y,function(S,U){return S?s.onFailure(S):u.authenticateUserInternal(U,l,s)})},t.getDeviceResponse=function(e,a){var s=this,f=new X(this.deviceGroupKey),u=new ct,l={};l.USERNAME=this.username,l.DEVICE_KEY=this.deviceKey,f.getLargeAValue(function(p,d){p&&e.onFailure(p),l.SRP_A=d.toString(16);var y={ChallengeName:"DEVICE_SRP_AUTH",ClientId:s.pool.getClientId(),ChallengeResponses:l,ClientMetadata:a,Session:s.Session};s.getUserContextData()&&(y.UserContextData=s.getUserContextData()),s.client.request("RespondToAuthChallenge",y,function(S,U){if(S)return e.onFailure(S);var A=U.ChallengeParameters,C=new w(A.SRP_B,16),D=new w(A.SALT,16);f.getPasswordAuthenticationKey(s.deviceKey,s.randomPassword,C,D,function(T,P){if(T)return e.onFailure(T);var j=u.getNowString(),k=I.Buffer.concat([I.Buffer.from(s.deviceGroupKey,"utf8"),I.Buffer.from(s.deviceKey,"utf8"),I.Buffer.from(A.SECRET_BLOCK,"base64"),I.Buffer.from(j,"utf8")]),Y=new ce.Sha256(P);Y.update(k);var W=Y.digestSync(),te=I.Buffer.from(W).toString("base64"),L={};L.USERNAME=s.username,L.PASSWORD_CLAIM_SECRET_BLOCK=A.SECRET_BLOCK,L.TIMESTAMP=j,L.PASSWORD_CLAIM_SIGNATURE=te,L.DEVICE_KEY=s.deviceKey;var O={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:s.pool.getClientId(),ChallengeResponses:L,Session:U.Session};s.getUserContextData()&&(O.UserContextData=s.getUserContextData()),s.client.request("RespondToAuthChallenge",O,function(J,z){return J?e.onFailure(J):(s.signInUserSession=s.getCognitoUserSession(z.AuthenticationResult),s.cacheTokens(),e.onSuccess(s.signInUserSession))})})})})},t.confirmRegistration=function(e,a,s,f){var u={ClientId:this.pool.getClientId(),ConfirmationCode:e,Username:this.username,ForceAliasCreation:a,ClientMetadata:f};this.getUserContextData()&&(u.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",u,function(l){return l?s(l,null):s(null,"SUCCESS")})},t.sendCustomChallengeAnswer=function(e,a,s){var f=this,u={};u.USERNAME=this.username,u.ANSWER=e;var l=new X(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(u.DEVICE_KEY=this.deviceKey);var p={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:u,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:s};this.getUserContextData()&&(p.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",p,function(d,y){return d?a.onFailure(d):f.authenticateUserInternal(y,l,a)})},t.sendMFACode=function(e,a,s,f){var u=this,l={};l.USERNAME=this.username,l.SMS_MFA_CODE=e;var p=s||"SMS_MFA";p==="SOFTWARE_TOKEN_MFA"&&(l.SOFTWARE_TOKEN_MFA_CODE=e),this.deviceKey!=null&&(l.DEVICE_KEY=this.deviceKey);var d={ChallengeName:p,ChallengeResponses:l,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:f};this.getUserContextData()&&(d.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",d,function(y,S){if(y)return a.onFailure(y);var U=S.ChallengeName;if(U==="DEVICE_SRP_AUTH"){u.getDeviceResponse(a);return}if(u.signInUserSession=u.getCognitoUserSession(S.AuthenticationResult),u.cacheTokens(),S.AuthenticationResult.NewDeviceMetadata==null)return a.onSuccess(u.signInUserSession);var A=new X(u.pool.getUserPoolName());A.generateHashDevice(S.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,S.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(C){if(C)return a.onFailure(C);var D={Salt:I.Buffer.from(A.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:I.Buffer.from(A.getVerifierDevices(),"hex").toString("base64")};u.verifierDevices=D.PasswordVerifier,u.deviceGroupKey=S.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,u.randomPassword=A.getRandomPassword(),u.client.request("ConfirmDevice",{DeviceKey:S.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:u.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:D,DeviceName:lt},function(T,P){return T?a.onFailure(T):(u.deviceKey=S.AuthenticationResult.NewDeviceMetadata.DeviceKey,u.cacheDeviceKeyAndPassword(),P.UserConfirmationNecessary===!0?a.onSuccess(u.signInUserSession,P.UserConfirmationNecessary):a.onSuccess(u.signInUserSession))})})})},t.changePassword=function(e,a,s,f){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return s(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:e,ProposedPassword:a,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:f},function(u){return u?s(u,null):s(null,"SUCCESS")})},t.enableMFA=function(e){if(this.signInUserSession==null||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);var a=[],s={DeliveryMedium:"SMS",AttributeName:"phone_number"};a.push(s),this.client.request("SetUserSettings",{MFAOptions:a,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f){return f?e(f,null):e(null,"SUCCESS")})},t.setUserMfaPreference=function(e,a,s){if(this.signInUserSession==null||!this.signInUserSession.isValid())return s(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:e,SoftwareTokenMfaSettings:a,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f){return f?s(f,null):s(null,"SUCCESS")})},t.disableMFA=function(e){if(this.signInUserSession==null||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);var a=[];this.client.request("SetUserSettings",{MFAOptions:a,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s){return s?e(s,null):e(null,"SUCCESS")})},t.deleteUser=function(e,a){var s=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:a},function(f){return f?e(f,null):(s.clearCachedUser(),e(null,"SUCCESS"))})},t.updateAttributes=function(e,a,s){var f=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return a(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:e,ClientMetadata:s},function(u,l){return u?a(u,null):f.getUserData(function(){return a(null,"SUCCESS",l)},{bypassCache:!0})})},t.getUserAttributes=function(e){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return e(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a,s){if(a)return e(a,null);for(var f=[],u=0;u<s.UserAttributes.length;u++){var l={Name:s.UserAttributes[u].Name,Value:s.UserAttributes[u].Value},p=new Cn(l);f.push(p)}return e(null,f)})},t.getMFAOptions=function(e){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return e(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a,s){return a?e(a,null):e(null,s.MFAOptions)})},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(e){var a=this;return e===void 0&&(e={}),new Promise(function(s){var f=a.signInUserSession.getRefreshToken();f&&f.getToken()?a.refreshSession(f,s,e.clientMetadata):s()})},t.getUserData=function(e,a){var s=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return this.clearCachedUserData(),e(new Error("User is not authenticated"),null);var f=this.getUserDataFromCache();if(!f){this.fetchUserData().then(function(u){e(null,u)}).catch(e);return}if(this.isFetchUserDataAndTokenRequired(a)){this.fetchUserData().then(function(u){return s.refreshSessionIfPossible(a).then(function(){return u})}).then(function(u){return e(null,u)}).catch(e);return}try{e(null,JSON.parse(f));return}catch(u){this.clearCachedUserData(),e(u,null);return}},t.getUserDataFromCache=function(){var e=this.storage.getItem(this.userDataKey);return e},t.isFetchUserDataAndTokenRequired=function(e){var a=e||{},s=a.bypassCache,f=s===void 0?!1:s;return f},t.fetchUserData=function(){var e=this;return this.createGetUserRequest().then(function(a){return e.cacheUserData(a),a})},t.deleteAttributes=function(e,a){var s=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return a(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f){return f?a(f,null):s.getUserData(function(){return a(null,"SUCCESS")},{bypassCache:!0})})},t.resendConfirmationCode=function(e,a){var s={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:a};this.client.request("ResendConfirmationCode",s,function(f,u){return f?e(f,null):e(null,u)})},t.getSession=function(e,a){if(a===void 0&&(a={}),this.username==null)return e(new Error("Username is null. Cannot retrieve a new session"),null);if(this.signInUserSession!=null&&this.signInUserSession.isValid())return e(null,this.signInUserSession);var s="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,f=s+".idToken",u=s+".accessToken",l=s+".refreshToken",p=s+".clockDrift";if(this.storage.getItem(f)){var d=new ut({IdToken:this.storage.getItem(f)}),y=new at({AccessToken:this.storage.getItem(u)}),S=new ft({RefreshToken:this.storage.getItem(l)}),U=parseInt(this.storage.getItem(p),0)||0,A={IdToken:d,AccessToken:y,RefreshToken:S,ClockDrift:U},C=new ht(A);if(C.isValid())return this.signInUserSession=C,e(null,this.signInUserSession);if(!S.getToken())return e(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(S,e,a.clientMetadata)}else e(new Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(e,a,s){var f=this,u=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(a):a,l={};l.REFRESH_TOKEN=e.getToken();var p="CognitoIdentityServiceProvider."+this.pool.getClientId(),d=p+".LastAuthUser";if(this.storage.getItem(d)){this.username=this.storage.getItem(d);var y=p+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(y),l.DEVICE_KEY=this.deviceKey}var S={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:l,ClientMetadata:s};this.getUserContextData()&&(S.UserContextData=this.getUserContextData()),this.client.requestWithRetry("InitiateAuth",S,function(U,A){if(U)return U.code==="NotAuthorizedException"&&f.clearCachedUser(),u(U,null);if(A){var C=A.AuthenticationResult;return Object.prototype.hasOwnProperty.call(C,"RefreshToken")||(C.RefreshToken=e.getToken()),f.signInUserSession=f.getCognitoUserSession(C),f.cacheTokens(),u(null,f.signInUserSession)}})},t.cacheTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),a=e+"."+this.username+".idToken",s=e+"."+this.username+".accessToken",f=e+"."+this.username+".refreshToken",u=e+"."+this.username+".clockDrift",l=e+".LastAuthUser";this.storage.setItem(a,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(s,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(f,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(u,""+this.signInUserSession.getClockDrift()),this.storage.setItem(l,this.username)},t.cacheUserData=function(e){this.storage.setItem(this.userDataKey,JSON.stringify(e))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},t.cacheDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,a=e+".deviceKey",s=e+".randomPasswordKey",f=e+".deviceGroupKey";this.storage.setItem(a,this.deviceKey),this.storage.setItem(s,this.randomPassword),this.storage.setItem(f,this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,a=e+".deviceKey",s=e+".randomPasswordKey",f=e+".deviceGroupKey";this.storage.getItem(a)&&(this.deviceKey=this.storage.getItem(a),this.randomPassword=this.storage.getItem(s),this.deviceGroupKey=this.storage.getItem(f))},t.clearCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,a=e+".deviceKey",s=e+".randomPasswordKey",f=e+".deviceGroupKey";this.storage.removeItem(a),this.storage.removeItem(s),this.storage.removeItem(f)},t.clearCachedTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),a=e+"."+this.username+".idToken",s=e+"."+this.username+".accessToken",f=e+"."+this.username+".refreshToken",u=e+".LastAuthUser",l=e+"."+this.username+".clockDrift";this.storage.removeItem(a),this.storage.removeItem(s),this.storage.removeItem(f),this.storage.removeItem(u),this.storage.removeItem(l)},t.getCognitoUserSession=function(e){var a=new ut(e),s=new at(e),f=new ft(e),u={IdToken:a,AccessToken:s,RefreshToken:f};return new ht(u)},t.forgotPassword=function(e,a){var s={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:a};this.getUserContextData()&&(s.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",s,function(f,u){return f?e.onFailure(f):typeof e.inputVerificationCode=="function"?e.inputVerificationCode(u):e.onSuccess(u)})},t.confirmPassword=function(e,a,s,f){var u={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:e,Password:a,ClientMetadata:f};this.getUserContextData()&&(u.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",u,function(l){return l?s.onFailure(l):s.onSuccess("SUCCESS")})},t.getAttributeVerificationCode=function(e,a,s){if(this.signInUserSession==null||!this.signInUserSession.isValid())return a.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:s},function(f,u){return f?a.onFailure(f):typeof a.inputVerificationCode=="function"?a.inputVerificationCode(u):a.onSuccess("SUCCESS")})},t.verifyAttribute=function(e,a,s){if(this.signInUserSession==null||!this.signInUserSession.isValid())return s.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:e,Code:a,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f){return f?s.onFailure(f):s.onSuccess("SUCCESS")})},t.getDevice=function(e){if(this.signInUserSession==null||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(a,s){return a?e.onFailure(a):e.onSuccess(s)})},t.forgetSpecificDevice=function(e,a){if(this.signInUserSession==null||!this.signInUserSession.isValid())return a.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:e},function(s){return s?a.onFailure(s):a.onSuccess("SUCCESS")})},t.forgetDevice=function(e){var a=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:e.onFailure,onSuccess:function(f){return a.deviceKey=null,a.deviceGroupKey=null,a.randomPassword=null,a.clearCachedDeviceKeyAndPassword(),e.onSuccess(f)}})},t.setDeviceStatusRemembered=function(e){if(this.signInUserSession==null||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(a){return a?e.onFailure(a):e.onSuccess("SUCCESS")})},t.setDeviceStatusNotRemembered=function(e){if(this.signInUserSession==null||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(a){return a?e.onFailure(a):e.onSuccess("SUCCESS")})},t.listDevices=function(e,a,s){if(this.signInUserSession==null||!this.signInUserSession.isValid())return s.onFailure(new Error("User is not authenticated"));var f={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:e};a&&(f.PaginationToken=a),this.client.request("ListDevices",f,function(u,l){return u?s.onFailure(u):s.onSuccess(l)})},t.globalSignOut=function(e){var a=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s){return s?e.onFailure(s):(a.clearCachedUser(),e.onSuccess("SUCCESS"))})},t.signOut=function(e){var a=this;if(!e||typeof e!="function"){this.cleanClientData();return}this.getSession(function(s,f){if(s)return e(s);a.revokeTokens(function(u){a.cleanClientData(),e(u)})})},t.revokeTokens=function(e){if(e===void 0&&(e=function(){}),typeof e!="function")throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession){var a=new Error("User is not authenticated");return e(a)}if(!this.signInUserSession.getAccessToken()){var s=new Error("No Access token available");return e(s)}var f=this.signInUserSession.getRefreshToken().getToken(),u=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(u)&&f)return this.revokeToken({token:f,callback:e});e()},t.isSessionRevocable=function(e){if(e&&typeof e.decodePayload=="function")try{var a=e.decodePayload(),s=a.origin_jti;return!!s}catch{}return!1},t.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},t.revokeToken=function(e){var a=e.token,s=e.callback;this.client.requestWithRetry("RevokeToken",{Token:a,ClientId:this.pool.getClientId()},function(f){if(f)return s(f);s()})},t.sendMFASelectionAnswer=function(e,a){var s=this,f={};f.USERNAME=this.username,f.ANSWER=e;var u={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:f,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(u.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",u,function(l,p){if(l)return a.onFailure(l);if(s.Session=p.Session,e==="SMS_MFA")return a.mfaRequired(p.ChallengeName,p.ChallengeParameters);if(e==="SOFTWARE_TOKEN_MFA")return a.totpRequired(p.ChallengeName,p.ChallengeParameters)})},t.getUserContextData=function(){var e=this.pool;return e.getUserContextData(this.username)},t.associateSoftwareToken=function(e){var a=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s,f){return s?e.onFailure(s):e.associateSecretCode(f.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(s,f){return s?e.onFailure(s):(a.Session=f.Session,e.associateSecretCode(f.SecretCode))})},t.verifySoftwareToken=function(e,a,s){var f=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:e,FriendlyDeviceName:a},function(u,l){return u?s.onFailure(u):s.onSuccess(l)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:e,FriendlyDeviceName:a},function(u,l){if(u)return s.onFailure(u);f.Session=l.Session;var p={};p.USERNAME=f.username;var d={ChallengeName:"MFA_SETUP",ClientId:f.pool.getClientId(),ChallengeResponses:p,Session:f.Session};f.getUserContextData()&&(d.UserContextData=f.getUserContextData()),f.client.request("RespondToAuthChallenge",d,function(y,S){return y?s.onFailure(y):(f.signInUserSession=f.getCognitoUserSession(S.AuthenticationResult),f.cacheTokens(),s.onSuccess(f.signInUserSession))})})},o})();function En(o,t){return t=t||{},new Promise(function(r,e){var a=new XMLHttpRequest,s=[],f=[],u={},l=function(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){return Promise.resolve(a.responseText)},json:function(){return Promise.resolve(a.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([a.response]))},clone:l,headers:{keys:function(){return s},entries:function(){return f},get:function(d){return u[d.toLowerCase()]},has:function(d){return d.toLowerCase()in u}}}};for(var p in a.open(t.method||"get",o,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(d,y,S){s.push(y=y.toLowerCase()),f.push([y,S]),u[y]=u[y]?u[y]+","+S:S}),r(l())},a.onerror=e,a.withCredentials=t.credentials=="include",t.headers)a.setRequestHeader(p,t.headers[p]);a.send(t.body||null)})}const Tn=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),gt=Oe(Tn);var xe,dt;function Dn(){return dt||(dt=1,xe=self.fetch||(self.fetch=gt.default||gt)),xe}Dn();function K(){}K.prototype.userAgent=yn();var jn=function(t){t&&(K.prototype.userAgent&&!K.prototype.userAgent.includes(t)&&(K.prototype.userAgent=K.prototype.userAgent.concat(" ",t)),(!K.prototype.userAgent||K.prototype.userAgent==="")&&(K.prototype.userAgent=t))},xn=function(t){var r=K.category?" "+K.category:"",e=K.framework?" framework/"+K.framework:"",a=""+K.prototype.userAgent+r+e;return a};function In(o,t){o.prototype=Object.create(t.prototype),o.prototype.constructor=o,pe(o,t)}function be(o){var t=typeof Map=="function"?new Map:void 0;return be=function(e){if(e===null||!Rn(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return _n(e,arguments,Me(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),pe(a,e)},be(o)}function _n(o,t,r){if(Ut())return Reflect.construct.apply(null,arguments);var e=[null];e.push.apply(e,t);var a=new(o.bind.apply(o,e));return r&&pe(a,r.prototype),a}function Ut(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ut=function(){return!!o})()}function Rn(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}function pe(o,t){return pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},pe(o,t)}function Me(o){return Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Me(o)}var Pn=(function(o){function t(r,e,a,s){var f;return f=o.call(this,r)||this,f.code=e,f.name=a,f.statusCode=s,f}return In(t,o),t})(be(Error)),Fn=(function(){function o(r,e,a){this.endpoint=e||"https://cognito-idp."+r+".amazonaws.com/";var s=a||{},f=s.credentials;this.fetchOptions=f?{credentials:f}:{}}var t=o.prototype;return t.promisifyRequest=function(e,a){var s=this;return new Promise(function(f,u){s.request(e,a,function(l,p){l?u(new Pn(l.message,l.code,l.name,l.statusCode)):f(p)})})},t.requestWithRetry=function(e,a,s){var f=this,u=5*1e3;Mn(function(l){return new Promise(function(p,d){f.request(e,l,function(y,S){y?d(y):p(S)})})},[a],u).then(function(l){return s(null,l)}).catch(function(l){return s(l)})},t.request=function(e,a,s){var f={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":xn(),"Cache-Control":"no-store"},u=Object.assign({},this.fetchOptions,{headers:f,method:"POST",mode:"cors",body:JSON.stringify(a)}),l;fetch(this.endpoint,u).then(function(p){return l=p,p},function(p){throw p instanceof TypeError?new Error("Network error"):p}).then(function(p){return p.json().catch(function(){return{}})}).then(function(p){if(l.ok)return s(null,p);var d=(p.__type||p.code).split("#").pop(),y=new Error(p.message||p.Message||null);return y.name=d,y.code=d,s(y)}).catch(function(p){if(l&&l.headers&&l.headers.get("x-amzn-errortype"))try{var d=l.headers.get("x-amzn-errortype").split(":")[0],y=new Error(l.status?l.status.toString():null);return y.code=d,y.name=d,y.statusCode=l.status,s(y)}catch{return s(p)}else p instanceof Error&&p.message==="Network error"&&(p.code="NetworkError");return s(p)})},o})(),Se={debug:function(){}},Bn=function(t){var r="nonRetryable";return t&&t[r]};function Et(o,t,r,e){if(e===void 0&&(e=1),typeof o!="function")throw Error("functionToRetry must be a function");return Se.debug(o.name+" attempt #"+e+" with args: "+JSON.stringify(t)),o.apply(void 0,t).catch(function(a){if(Se.debug("error on "+o.name,a),Bn(a))throw Se.debug(o.name+" non retryable error",a),a;var s=r(e,t,a);if(Se.debug(o.name+" retrying in "+s+" ms"),s!==!1)return new Promise(function(f){return setTimeout(f,s)}).then(function(){return Et(o,t,r,e+1)});throw a})}function bn(o){var t=100,r=100;return function(e){var a=Math.pow(2,e)*t+r*Math.random();return a>o?!1:a}}function Mn(o,t,r){return Et(o,t,bn(r))}/*!
50
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
51
+ * SPDX-License-Identifier: Apache-2.0
52
+ */var On=55,Hn=(function(){function o(r,e){var a=r||{},s=a.UserPoolId,f=a.ClientId,u=a.endpoint,l=a.fetchOptions,p=a.AdvancedSecurityDataCollectionFlag;if(!s||!f)throw new Error("Both UserPoolId and ClientId are required.");if(s.length>On||!/^[\w-]+_[0-9a-zA-Z]+$/.test(s))throw new Error("Invalid UserPoolId format.");var d=s.split("_")[0];this.userPoolId=s,this.clientId=f,this.client=new Fn(d,u,l),this.advancedSecurityDataCollectionFlag=p!==!1,this.storage=r.Storage||new At().getStorage(),e&&(this.wrapRefreshSessionCallback=e)}var t=o.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},t.getClientId=function(){return this.clientId},t.signUp=function(e,a,s,f,u,l){var p=this,d={ClientId:this.clientId,Username:e,Password:a,UserAttributes:s,ValidationData:f,ClientMetadata:l};this.getUserContextData(e)&&(d.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",d,function(y,S){if(y)return u(y,null);var U={Username:e,Pool:p,Storage:p.storage},A={user:new pt(U),userConfirmed:S.UserConfirmed,userSub:S.UserSub,codeDeliveryDetails:S.CodeDeliveryDetails};return u(null,A)})},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",a=this.storage.getItem(e);if(a){var s={Username:a,Pool:this,Storage:this.storage};return new pt(s)}return null},t.getUserContextData=function(e){if(!(typeof AmazonCognitoAdvancedSecurityData>"u")){var a=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var s=a.getData(e,this.userPoolId,this.clientId);if(s){var f={EncodedData:s};return f}}return{}}},o})(),Ie={exports:{}};/*!
53
+ * JavaScript Cookie v2.2.1
54
+ * https://github.com/js-cookie/js-cookie
55
+ *
56
+ * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
57
+ * Released under the MIT license
58
+ */var vt;function Nn(){return vt||(vt=1,(function(o,t){(function(r){var e;if(o.exports=r(),e=!0,!e){var a=window.Cookies,s=window.Cookies=r();s.noConflict=function(){return window.Cookies=a,s}}})(function(){function r(){for(var s=0,f={};s<arguments.length;s++){var u=arguments[s];for(var l in u)f[l]=u[l]}return f}function e(s){return s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function a(s){function f(){}function u(p,d,y){if(!(typeof document>"u")){y=r({path:"/"},f.defaults,y),typeof y.expires=="number"&&(y.expires=new Date(new Date*1+y.expires*864e5)),y.expires=y.expires?y.expires.toUTCString():"";try{var S=JSON.stringify(d);/^[\{\[]/.test(S)&&(d=S)}catch{}d=s.write?s.write(d,p):encodeURIComponent(String(d)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),p=encodeURIComponent(String(p)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var U="";for(var A in y)y[A]&&(U+="; "+A,y[A]!==!0&&(U+="="+y[A].split(";")[0]));return document.cookie=p+"="+d+U}}function l(p,d){if(!(typeof document>"u")){for(var y={},S=document.cookie?document.cookie.split("; "):[],U=0;U<S.length;U++){var A=S[U].split("="),C=A.slice(1).join("=");!d&&C.charAt(0)==='"'&&(C=C.slice(1,-1));try{var D=e(A[0]);if(C=(s.read||s)(C,D)||e(C),d)try{C=JSON.parse(C)}catch{}if(y[D]=C,p===D)break}catch{}}return p?y[p]:y}}return f.set=u,f.get=function(p){return l(p,!1)},f.getJSON=function(p){return l(p,!0)},f.remove=function(p,d){u(p,"",r(d,{expires:-1}))},f.defaults={},f.withConverter=a,f}return a(function(){})})})(Ie)),Ie.exports}var he=Nn(),Yn=(function(){function o(r){if(r===void 0&&(r={}),r.domain&&(this.domain=r.domain),r.path?this.path=r.path:this.path="/",Object.prototype.hasOwnProperty.call(r,"expires")?this.expires=r.expires:this.expires=365,Object.prototype.hasOwnProperty.call(r,"secure")?this.secure=r.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(r,"sameSite")){if(!["strict","lax","none"].includes(r.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(r.sameSite==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=r.sameSite}else this.sameSite=null}var t=o.prototype;return t.setItem=function(e,a){var s={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(s.sameSite=this.sameSite),he.set(e,a,s),he.get(e)},t.getItem=function(e){return he.get(e)},t.removeItem=function(e){var a={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(a.sameSite=this.sameSite),he.remove(e,a)},t.clear=function(){for(var e=he.get(),a=Object.keys(e).length,s=0;s<a;++s)this.removeItem(Object.keys(e)[s]);return{}},o})();export{Ln as AuthenticationDetails,X as AuthenticationHelper,at as CognitoAccessToken,ut as CognitoIdToken,ft as CognitoRefreshToken,pt as CognitoUser,Cn as CognitoUserAttribute,Hn as CognitoUserPool,ht as CognitoUserSession,Yn as CookieStorage,ct as DateHelper,Ht as WordArray,jn as appendToCognitoUserAgent};