@ututrust/utu-metamask-snap 1.10.9 → 1.10.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e={4:(e,t,r)=>{"use strict";var n=r(528),o=r(607),i=r(660),a=r(468),s=n("%Map%",!0),c=o("Map.prototype.get",!0),l=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),p=o("Map.prototype.delete",!0),f=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=p(e,t);return 0===f(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,r){e||(e=new s),l(e,t,r)}};return t}},95:e=>{"use strict";e.exports=Function.prototype.apply},110:e=>{"use strict";e.exports=EvalError},129:e=>{"use strict";e.exports=Math.max},138:(e,t,r)=>{"use strict";var n=r(794);e.exports=Function.prototype.bind||n},140:e=>{"use strict";e.exports=URIError},155:e=>{"use strict";e.exports=RangeError},165:(e,t,r)=>{"use strict";var n=r(138),o=r(95),i=r(531),a=r(196);e.exports=a||n.call(i,o)},193:(e,t,r)=>{"use strict";var n=r(539),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t,r,i){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=l?a.slice(0,l.index):a,p=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;p.push(u)}for(var f=0;r.depth>0&&null!==(l=s.exec(a))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(l[1])}if(l){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");p.push("["+a.slice(l.index)+"]")}return function(e,t,r,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=o?t:c(t,r,i),l=e.length-1;l>=0;--l){var u,p=e[l];if("[]"===p&&r.parseArrays)u=r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:n.combine([],s);else{u=r.plainObjects?{__proto__:null}:{};var f="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,h=parseInt(y,10);r.parseArrays||""!==y?!isNaN(h)&&p!==y&&String(h)===y&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(u=[])[h]=s:"__proto__"!==y&&(u[y]=s):u={0:s}}s=u}return s}(p,t,r,i)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var u="string"==typeof e?function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,p=l.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&p.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var f,y=-1,h=t.charset;if(t.charsetSentinel)for(f=0;f<p.length;++f)0===p[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[f]?h="utf-8":"utf8=%26%2310003%3B"===p[f]&&(h="iso-8859-1"),y=f,f=p.length);for(f=0;f<p.length;++f)if(f!==y){var d,g,m=p[f],b=m.indexOf("]="),v=-1===b?m.indexOf("="):b+1;-1===v?(d=t.decoder(m,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(d=t.decoder(m.slice(0,v),a.decoder,h,"key"),g=n.maybeMap(c(m.slice(v+1),t,i(r[d])?r[d].length:0),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(String(g))),m.indexOf("[]=")>-1&&(g=i(g)?[g]:g);var w=o.call(r,d);w&&"combine"===t.duplicates?r[d]=n.combine(r[d],g):w&&"last"!==t.duplicates||(r[d]=g)}return r}(e,r):e,p=r.plainObjects?{__proto__:null}:{},f=Object.keys(u),y=0;y<f.length;++y){var h=f[y],d=l(h,u[h],r,"string"==typeof e);p=n.merge(p,d,r)}return!0===r.allowSparse?p:n.compact(p)}},196:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},292:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},319:e=>{"use strict";e.exports=Math.round},336:(e,t,r)=>{"use strict";var n=r(292);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},345:(e,t,r)=>{"use strict";var n=r(629);e.exports=n.getPrototypeOf||null},346:(e,t,r)=>{"use strict";var n=r(660),o=r(468),i=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return i(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=i(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=i(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},348:(e,t,r)=>{"use strict";var n=r(528),o=r(607),i=r(660),a=r(4),s=r(468),c=n("%WeakMap%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?l(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?p(e,r):!!t&&t.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),u(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},369:(e,t,r)=>{"use strict";var n=r(859),o=r(345),i=r(423);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},387:e=>{"use strict";e.exports=Math.min},422:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},423:(e,t,r)=>{"use strict";var n,o=r(903),i=r(336);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},449:e=>{"use strict";e.exports=Math.floor},468:e=>{"use strict";e.exports=TypeError},479:e=>{"use strict";e.exports=Math.abs},528:(e,t,r)=>{"use strict";var n,o=r(629),i=r(838),a=r(110),s=r(155),c=r(943),l=r(731),u=r(468),p=r(140),f=r(479),y=r(449),h=r(129),d=r(387),g=r(865),m=r(319),b=r(882),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},E=r(336),S=r(940),A=function(){throw new u},C=E?function(){try{return A}catch(e){try{return E(arguments,"callee").get}catch(e){return A}}}():A,O=r(558)(),N=r(369),T=r(345),x=r(859),k=r(95),I=r(531),R={},U="undefined"!=typeof Uint8Array&&N?N(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":O&&N?N([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":R,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&N?N(N([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&N?N((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&N?N((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&N?N(""[Symbol.iterator]()):n,"%Symbol%":O?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":C,"%TypedArray%":U,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":k,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":f,"%Math.floor%":y,"%Math.max%":h,"%Math.min%":d,"%Math.pow%":g,"%Math.round%":m,"%Math.sign%":b,"%Reflect.getPrototypeOf%":x};if(N)try{null.error}catch(e){var P=N(N(e));_["%Error.prototype%"]=P}var j=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&N&&(r=N(o.prototype))}return _[t]=r,r},L={__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"]},M=r(138),D=r(554),F=M.call(I,Array.prototype.concat),B=M.call(k,Array.prototype.splice),$=M.call(I,String.prototype.replace),G=M.call(I,String.prototype.slice),W=M.call(I,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,J=function(e,t){var r,n=e;if(D(L,n)&&(n="%"+(r=L[n])[0]+"%"),D(_,n)){var o=_[n];if(o===R&&(o=j(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=G(e,0,1),r=G(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return $(e,H,(function(e,t,r,o){n[n.length]=r?$(o,z,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=J("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],B(r,F([0,1],c)));for(var p=1,f=!0;p<r.length;p+=1){var y=r[p],h=G(y,0,1),d=G(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===d||"'"===d||"`"===d)&&h!==d)throw new l("property names with quotes must have matching quotes");if("constructor"!==y&&f||(s=!0),D(_,i="%"+(n+="."+y)+"%"))a=_[i];else if(null!=a){if(!(y in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(E&&p+1>=r.length){var g=E(a,y);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[y]}else f=D(a,y),a=a[y];f&&!s&&(_[i]=a)}}return a}},531:e=>{"use strict";e.exports=Function.prototype.call},539:(e,t,r)=>{"use strict";var n=r(830),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},c=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;u+=c){for(var p=s.length>=c?s.slice(u,u+c):s,f=[],y=0;y<p.length;++y){var h=p.charCodeAt(y);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===n.RFC1738&&(40===h||41===h)?f[f.length]=p.charAt(y):h<128?f[f.length]=a[h]:h<2048?f[f.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?f[f.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(y+=1,h=65536+((1023&h)<<10|1023&p.charCodeAt(y)),f[f.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}l+=f.join("")}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=s(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},554:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(138);e.exports=i.call(n,o)},558:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(908);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},573:(e,t,r)=>{var n;!function(){"use strict";var o="input is invalid type",i="object"==typeof window,a=i?window:{};a.JS_SHA3_NO_WINDOW&&(i=!1);var s=!i&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?a=r.g:s&&(a=self);var c=!a.JS_SHA3_NO_COMMON_JS&&e.exports,l=r.amdO,u=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),f=[4,1024,262144,67108864],y=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],d=[224,256,384,512],g=[128,256],m=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!u||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var v=function(e,t,r){return function(n){return new P(e,t,e).update(n)[r]()}},w=function(e,t,r){return function(n,o){return new P(e,t,o).update(n)[r]()}},E=function(e,t,r){return function(t,n,o,i){return N["cshake"+e].update(t,n,o,i)[r]()}},S=function(e,t,r){return function(t,n,o,i){return N["kmac"+e].update(t,n,o,i)[r]()}},A=function(e,t,r,n){for(var o=0;o<m.length;++o){var i=m[o];e[i]=t(r,n,i)}return e},C=function(e,t){var r=v(e,t,"hex");return r.create=function(){return new P(e,t,e)},r.update=function(e){return r.create().update(e)},A(r,v,e,t)},O=[{name:"keccak",padding:[1,256,65536,16777216],bits:d,createMethod:C},{name:"sha3",padding:[6,1536,393216,100663296],bits:d,createMethod:C},{name:"shake",padding:[31,7936,2031616,520093696],bits:g,createMethod:function(e,t){var r=w(e,t,"hex");return r.create=function(r){return new P(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},A(r,w,e,t)}},{name:"cshake",padding:f,bits:g,createMethod:function(e,t){var r=b[e],n=E(e,0,"hex");return n.create=function(n,o,i){return o||i?new P(e,t,n).bytepad([o,i],r):N["shake"+e].create(n)},n.update=function(e,t,r,o){return n.create(t,r,o).update(e)},A(n,E,e,t)}},{name:"kmac",padding:f,bits:g,createMethod:function(e,t){var r=b[e],n=S(e,0,"hex");return n.create=function(n,o,i){return new j(e,t,o).bytepad(["KMAC",i],r).bytepad([n],r)},n.update=function(e,t,r,o){return n.create(e,r,o).update(t)},A(n,S,e,t)}}],N={},T=[],x=0;x<O.length;++x)for(var k=O[x],I=k.bits,R=0;R<I.length;++R){var U=k.name+"_"+I[R];if(T.push(U),N[U]=k.createMethod(I[R],k.padding),"sha3"!==k.name){var _=k.name+I[R];T.push(_),N[_]=N[U]}}function P(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function j(e,t,r){P.call(this,e,t,r)}P.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(o);if(null===e)throw new Error(o);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||u&&ArrayBuffer.isView(e)))throw new Error(o);t=!0}for(var n,i,a=this.blocks,s=this.byteCount,c=e.length,l=this.blockCount,p=0,f=this.s;p<c;){if(this.reset)for(this.reset=!1,a[0]=this.block,n=1;n<l+1;++n)a[n]=0;if(t)for(n=this.start;p<c&&n<s;++p)a[n>>2]|=e[p]<<y[3&n++];else for(n=this.start;p<c&&n<s;++p)(i=e.charCodeAt(p))<128?a[n>>2]|=i<<y[3&n++]:i<2048?(a[n>>2]|=(192|i>>6)<<y[3&n++],a[n>>2]|=(128|63&i)<<y[3&n++]):i<55296||i>=57344?(a[n>>2]|=(224|i>>12)<<y[3&n++],a[n>>2]|=(128|i>>6&63)<<y[3&n++],a[n>>2]|=(128|63&i)<<y[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++p)),a[n>>2]|=(240|i>>18)<<y[3&n++],a[n>>2]|=(128|i>>12&63)<<y[3&n++],a[n>>2]|=(128|i>>6&63)<<y[3&n++],a[n>>2]|=(128|63&i)<<y[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=a[l],n=0;n<l;++n)f[n]^=a[n];L(f),this.reset=!0}else this.start=n}return this},P.prototype.encode=function(e,t){var r=255&e,n=1,o=[r];for(r=255&(e>>=8);r>0;)o.unshift(r),r=255&(e>>=8),++n;return t?o.push(n):o.unshift(n),this.update(o),o.length},P.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(o);if(null===e)throw new Error(o);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||u&&ArrayBuffer.isView(e)))throw new Error(o);t=!0}var n=0,i=e.length;if(t)n=i;else for(var a=0;a<e.length;++a){var s=e.charCodeAt(a);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),n+=4)}return n+=this.encode(8*n),this.update(e),n},P.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var o=t-r%t,i=[];return i.length=o,this.update(i),this},P.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];L(n)}},P.prototype.toString=P.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,i=0,a=0,s="";a<n;){for(i=0;i<t&&a<n;++i,++a)e=r[i],s+=p[e>>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];a%t==0&&(L(r),i=0)}return o&&(e=r[i],s+=p[e>>4&15]+p[15&e],o>1&&(s+=p[e>>12&15]+p[e>>8&15]),o>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},P.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,i=0,a=0,s=this.outputBits>>3;e=o?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<n;){for(i=0;i<t&&a<n;++i,++a)c[a]=r[i];a%t==0&&L(r)}return o&&(c[i]=r[i],e=e.slice(0,s)),e},P.prototype.buffer=P.prototype.arrayBuffer,P.prototype.digest=P.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,o=this.outputBlocks,i=this.extraBytes,a=0,s=0,c=[];s<o;){for(a=0;a<r&&s<o;++a,++s)e=s<<2,t=n[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%r==0&&L(n)}return i&&(e=s<<2,t=n[a],c[e]=255&t,i>1&&(c[e+1]=t>>8&255),i>2&&(c[e+2]=t>>16&255)),c},j.prototype=new P,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),P.prototype.finalize.call(this)};var L=function(e){var t,r,n,o,i,a,s,c,l,u,p,f,y,d,g,m,b,v,w,E,S,A,C,O,N,T,x,k,I,R,U,_,P,j,L,M,D,F,B,$,G,W,H,z,J,K,q,V,X,Z,Q,Y,ee,te,re,ne,oe,ie,ae,se,ce,le,ue;for(n=0;n<48;n+=2)o=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],t=(f=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(y=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=o^(c<<1|l>>>31),r=i^(l<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(u<<1|p>>>31),r=s^(p<<1|u>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(f<<1|y>>>31),r=l^(y<<1|f>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=u^(o<<1|i>>>31),r=p^(i<<1|o>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,d=e[0],g=e[1],K=e[11]<<4|e[10]>>>28,q=e[10]<<4|e[11]>>>28,k=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,W=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,L=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,V=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,R=e[33]<<13|e[32]>>>19,U=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,M=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,_=e[45]<<29|e[44]>>>3,P=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,N=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,oe=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,B=e[27]<<25|e[26]>>>7,E=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,Y=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,z=e[8]<<27|e[9]>>>5,J=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,x=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,$=e[38]<<8|e[39]>>>24,G=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,C=e[49]<<14|e[48]>>>18,e[0]=d^~m&v,e[1]=g^~b&w,e[10]=O^~T&k,e[11]=N^~x&I,e[20]=j^~M&F,e[21]=L^~D&B,e[30]=z^~K&V,e[31]=J^~q&X,e[40]=te^~ne&ie,e[41]=re^~oe&ae,e[2]=m^~v&E,e[3]=b^~w&S,e[12]=T^~k&R,e[13]=x^~I&U,e[22]=M^~F&$,e[23]=D^~B&G,e[32]=K^~V&Z,e[33]=q^~X&Q,e[42]=ne^~ie&se,e[43]=oe^~ae&ce,e[4]=v^~E&A,e[5]=w^~S&C,e[14]=k^~R&_,e[15]=I^~U&P,e[24]=F^~$&W,e[25]=B^~G&H,e[34]=V^~Z&Y,e[35]=X^~Q&ee,e[44]=ie^~se&le,e[45]=ae^~ce&ue,e[6]=E^~A&d,e[7]=S^~C&g,e[16]=R^~_&O,e[17]=U^~P&N,e[26]=$^~W&j,e[27]=G^~H&L,e[36]=Z^~Y&z,e[37]=Q^~ee&J,e[46]=se^~le&te,e[47]=ce^~ue&re,e[8]=A^~d&m,e[9]=C^~g&b,e[18]=_^~O&T,e[19]=P^~N&x,e[28]=W^~j&M,e[29]=H^~L&D,e[38]=Y^~z&K,e[39]=ee^~J&q,e[48]=le^~te&ne,e[49]=ue^~re&oe,e[0]^=h[n],e[1]^=h[n+1]};if(c)e.exports=N;else{for(x=0;x<T.length;++x)a[T[x]]=N[T[x]];l&&(void 0===(n=function(){return N}.call(t,r,t,e))||(e.exports=n))}}()},575:(e,t,r)=>{"use strict";var n=r(468),o=r(660),i=r(346),a=r(4),s=r(348)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},607:(e,t,r)=>{"use strict";var n=r(528),o=r(903),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},623:(e,t,r)=>{"use strict";var n=r(575),o=r(539),i=r(830),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},d=function e(t,r,i,a,s,l,p,f,d,g,m,b,v,w,E,S,A,C){for(var O,N=t,T=C,x=0,k=!1;void 0!==(T=T.get(h))&&!k;){var I=T.get(t);if(x+=1,void 0!==I){if(I===x)throw new RangeError("Cyclic object value");k=!0}void 0===T.get(h)&&(x=0)}if("function"==typeof g?N=g(r,N):N instanceof Date?N=v(N):"comma"===i&&c(N)&&(N=o.maybeMap(N,(function(e){return e instanceof Date?v(e):e}))),null===N){if(l)return d&&!S?d(r,y.encoder,A,"key",w):r;N=""}if("string"==typeof(O=N)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||o.isBuffer(N))return d?[E(S?r:d(r,y.encoder,A,"key",w))+"="+E(d(N,y.encoder,A,"value",w))]:[E(r)+"="+E(String(N))];var R,U=[];if(void 0===N)return U;if("comma"===i&&c(N))S&&d&&(N=o.maybeMap(N,d)),R=[{value:N.length>0?N.join(",")||null:void 0}];else if(c(g))R=g;else{var _=Object.keys(N);R=m?_.sort(m):_}var P=f?String(r).replace(/\./g,"%2E"):String(r),j=a&&c(N)&&1===N.length?P+"[]":P;if(s&&c(N)&&0===N.length)return j+"[]";for(var L=0;L<R.length;++L){var M=R[L],D="object"==typeof M&&M&&void 0!==M.value?M.value:N[M];if(!p||null!==D){var F=b&&f?String(M).replace(/\./g,"%2E"):String(M),B=c(N)?"function"==typeof i?i(j,F):j:j+(b?"."+F:"["+F+"]");C.set(t,x);var $=n();$.set(h,C),u(U,e(D,B,i,a,s,l,p,f,"comma"===i&&S&&c(N)?null:d,g,m,b,v,w,E,S,A,$))}}return U};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=i.formatters[r],l=y.filter;if(("function"==typeof e.filter||c(e.filter))&&(l=e.filter),n=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:l,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):c(l.filter)&&(r=l.filter);var p=[];if("object"!=typeof o||null===o)return"";var f=s[l.arrayFormat],h="comma"===f&&l.commaRoundTrip;r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var g=n(),m=0;m<r.length;++m){var b=r[m],v=o[b];l.skipNulls&&null===v||u(p,d(v,b,f,h,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var w=p.join(l.delimiter),E=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),w.length>0?E+w:""}},629:e=>{"use strict";e.exports=Object},660:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,d=Object.prototype.toString,g=Function.prototype.toString,m=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,S=RegExp.prototype.test,A=Array.prototype.concat,C=Array.prototype.join,O=Array.prototype.slice,N=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,_=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-N(-e):N(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var j=r(973),L=j.custom,M=z(L)?L:null,D={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,r){var n=r.quoteStyle||t,o=D[n];return o+e+o}function $(e){return v.call(String(e),/"/g,"&quot;")}function G(e){return!R||!("object"==typeof e&&(R in e||void 0!==e[R]))}function W(e){return"[object Array]"===q(e)&&G(e)}function H(e){return"[object RegExp]"===q(e)&&G(e)}function z(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var c=n||{};if(K(c,"quoteStyle")&&!K(D,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(K(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!K(c,"customInspect")||c.customInspect;if("boolean"!=typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return X(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return w?P(t,S):S}if("bigint"==typeof t){var N=String(t)+"n";return w?P(t,N):N}var x=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=x&&x>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var L=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=C.call(Array(e.indent+1)," ")}return{base:r,prev:C.call(Array(t+1),r)}}(c,o);if(void 0===s)s=[];else if(V(s,t)>=0)return"[Circular]";function F(t,r,n){if(r&&(s=O.call(s)).push(r),n){var i={depth:c.depth};return K(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!H(t)){var J=function(e){if(e.name)return e.name;var t=m.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Z=re(t,F);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(Z.length>0?" { "+C.call(Z,", ")+" }":"")}if(z(t)){var ne=I?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||I?ne:Q(ne)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var oe="<"+E.call(String(t.nodeName)),ie=t.attributes||[],ae=0;ae<ie.length;ae++)oe+=" "+ie[ae].name+"="+B($(ie[ae].value),"double",c);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+="</"+E.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var se=re(t,F);return L&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(se)?"["+te(se,L)+"]":"[ "+C.call(se,", ")+" ]"}if(function(e){return"[object Error]"===q(e)&&G(e)}(t)){var ce=re(t,F);return"cause"in Error.prototype||!("cause"in t)||U.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(ce,", ")+" }":"{ ["+String(t)+"] "+C.call(A.call("[cause]: "+F(t.cause),ce),", ")+" }"}if("object"==typeof t&&d){if(M&&"function"==typeof t[M]&&j)return j(t,{depth:x-o});if("symbol"!==d&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,r){le.push(F(r,t,!0)+" => "+F(e,t))})),ee("Map",i.call(t),le,L)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return u&&u.call(t,(function(e){ue.push(F(e,t))})),ee("Set",l.call(t),ue,L)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===q(e)&&G(e)}(t))return Q(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}(t))return Q(F(T.call(t)));if(function(e){return"[object Boolean]"===q(e)&&G(e)}(t))return Q(h.call(t));if(function(e){return"[object String]"===q(e)&&G(e)}(t))return Q(F(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===q(e)&&G(e)}(t)&&!H(t)){var pe=re(t,F),fe=_?_(t)===Object.prototype:t instanceof Object||t.constructor===Object,ye=t instanceof Object?"":"null prototype",he=!fe&&R&&Object(t)===t&&R in t?b.call(q(t),8,-1):ye?"Object":"",de=(fe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||ye?"["+C.call(A.call([],he||[],ye||[]),": ")+"] ":"");return 0===pe.length?de+"{}":L?de+"{"+te(pe,L)+"}":de+"{ "+C.call(pe,", ")+" }"}return String(t)};var J=Object.prototype.hasOwnProperty||function(e){return e in this};function K(e,t){return J.call(e,t)}function q(e){return d.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function X(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return X(b.call(e,0,t.maxStringLength),t)+n}var o=F[t.quoteStyle||"single"];return o.lastIndex=0,B(v.call(v.call(e,o,"\\$1"),/[\x00-\x1f]/g,Z),"single",t)}function Z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Q(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):C.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+C.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=W(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=K(e,o)?t(e[o],e):""}var i,a="function"==typeof x?x(e):[];if(I){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)K(e,c)&&(r&&String(Number(c))===c&&c<e.length||I&&i["$"+c]instanceof Symbol||(S.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof x)for(var l=0;l<a.length;l++)U.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}},731:e=>{"use strict";e.exports=SyntaxError},794:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),s=r(0,o.length-a.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},810:(e,t,r)=>{"use strict";var n=r(623),o=r(193),i=r(830);e.exports={formats:i,parse:o,stringify:n}},830:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:o}},838:e=>{"use strict";e.exports=Error},859:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},865:e=>{"use strict";e.exports=Math.pow},882:(e,t,r)=>{"use strict";var n=r(422);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},903:(e,t,r)=>{"use strict";var n=r(138),o=r(468),i=r(531),a=r(165);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},908:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},940:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},943:e=>{"use strict";e.exports=ReferenceError},973:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.amdO={},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";function e(e,t,r){if("string"==typeof e)throw new Error(`An HTML element ("${String(e)}") was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.`);if(!e)throw new Error("A JSX fragment was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.");return e({...t,key:r})}function t(t,r,n){return e(t,r,n)}r.r(n),r.d(n,{onHomePage:()=>Ie,onInstall:()=>_e,onRpcRequest:()=>Ue,onSignature:()=>De,onTransaction:()=>Me,onUserInput:()=>Re});class o extends TypeError{constructor(e,t){let r;const{message:n,explanation:o,...i}=e,{path:a}=e,s=0===a.length?n:`At path: ${a.join(".")} -- ${n}`;super(o??s),null!=o&&(this.cause=s),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}function i(e){return"object"==typeof e&&null!==e}function a(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function s(e,t,r,n){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:o,branch:i}=t,{type:s}=r,{refinement:c,message:l=`Expected a value of type \`${s}\`${c?` with refinement \`${c}\``:""}, but received: \`${a(n)}\``}=e;return{value:n,type:s,refinement:c,key:o[o.length-1],path:o,branch:i,...e,message:l}}function*c(e,t,r,n){(function(e){return i(e)&&"function"==typeof e[Symbol.iterator]})(e)||(e=[e]);for(const o of e){const e=s(o,t,r,n);e&&(yield e)}}function*l(e,t,r={}){const{path:n=[],branch:o=[e],coerce:a=!1,mask:s=!1}=r,c={path:n,branch:o};if(a&&(e=t.coercer(e,c),s&&"type"!==t.type&&i(t.schema)&&i(e)&&!Array.isArray(e)))for(const r in e)void 0===t.schema[r]&&delete e[r];let u="valid";for(const n of t.validator(e,c))n.explanation=r.message,u="not_valid",yield[n,void 0];for(let[p,f,y]of t.entries(e,c)){const t=l(f,y,{path:void 0===p?n:[...n,p],branch:void 0===p?o:[...o,f],coerce:a,mask:s,message:r.message});for(const r of t)r[0]?(u=null===r[0].refinement||void 0===r[0].refinement?"not_valid":"not_refined",yield[r[0],void 0]):a&&(f=r[1],void 0===p?e=f:e instanceof Map?e.set(p,f):e instanceof Set?e.add(f):i(e)&&(void 0!==f||p in e)&&(e[p]=f))}if("not_valid"!==u)for(const n of t.refiner(e,c))n.explanation=r.message,u="not_refined",yield[n,void 0];"valid"===u&&(yield[void 0,e])}class u{constructor(e){const{type:t,schema:r,validator:n,refiner:o,coercer:i=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=r,this.entries=a,this.coercer=i,this.validator=n?(e,t)=>c(n(e,t),t,this,e):()=>[],this.refiner=o?(e,t)=>c(o(e,t),t,this,e):()=>[]}assert(e,t){return function(e,t,r){const n=p(e,t,{message:r});if(n[0])throw n[0]}(e,this,t)}create(e,t){return function(e,t,r){const n=p(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}(e,this,t)}is(e){return function(e,t){const r=p(e,t);return!r[0]}(e,this)}mask(e,t){return function(e,t,r){const n=p(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}(e,this,t)}validate(e,t={}){return p(e,this,t)}}function p(e,t,r={}){const n=l(e,t,r),i=function(e){const{done:t,value:r}=e.next();return t?void 0:r}(n);if(i[0]){return[new o(i[0],(function*(){for(const e of n)e[0]&&(yield e[0])})),void 0]}return[void 0,i[1]]}function f(...e){const t="type"===e[0]?.type,r=e.map((({schema:e})=>e)),n=Object.assign({},...r);return t?function(e){const t=Object.keys(e);return new u({type:"type",schema:e,*entries(r){if(i(r))for(const n of t)yield[n,r[n],e[n]]},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`,coercer:e=>i(e)?{...e}:e})}(n):b(n)}function y(e,t){return new u({type:e,schema:null,validator:t})}function h(){return y("boolean",(e=>"boolean"==typeof e))}function d(e){const t=a(e),r=typeof e;return new u({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${a(r)}`})}function g(){return y("never",(()=>!1))}function m(e){return new u({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})}function b(e){const t=e?Object.keys(e):[],r=g();return new u({type:"object",schema:e??null,*entries(n){if(e&&i(n)){const o=new Set(Object.keys(n));for(const r of t)o.delete(r),yield[r,n[r],e[r]];for(const e of o)yield[e,n[e],r]}},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`,coercer:e=>i(e)?{...e}:e})}function v(e){return new u({...e,validator:(t,r)=>void 0===t||e.validator(t,r),refiner:(t,r)=>void 0===t||e.refiner(t,r)})}function w(){return y("string",(e=>"string"==typeof e||`Expected a string, but received: ${a(e)}`))}function E(e){const t=e.map((e=>e.type)).join(" | ");return new u({type:"union",schema:null,coercer(t){for(const r of e){const[e,n]=r.validate(t,{coerce:!0});if(!e)return n}return t},validator(r,n){const o=[];for(const t of e){const[...e]=l(r,t,n),[i]=e;if(!i?.[0])return[];for(const[t]of e)t&&o.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${a(r)}`,...o]}})}var S;!function(e){e.ButtonClickEvent="ButtonClickEvent",e.FormSubmitEvent="FormSubmitEvent",e.InputChangeEvent="InputChangeEvent",e.FileUploadEvent="FileUploadEvent"}(S||(S={}));const A=b({type:w(),name:v(w())}),C=f(A,b({type:d(S.ButtonClickEvent),name:v(w())})),O=b({name:w(),size:y("number",(e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${a(e)}`)),contentType:w(),contents:w()}),N=f(A,b({type:d(S.FormSubmitEvent),value:(T=w(),x=m(E([w(),O,h()])),new u({type:"record",schema:null,*entries(e){if(i(e))for(const t in e){const r=e[t];yield[t,t,T],yield[t,r,x]}},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`})),name:w()}));var T,x;const k=f(A,b({type:d(S.InputChangeEvent),name:w(),value:E([w(),h()])}));E([C,N,k,f(A,b({type:d(S.FileUploadEvent),name:w(),file:m(O)}))]);function I(e){return Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==e)))}function R(e){return t=>{const{key:r=null,...n}=t;return{type:e,props:I(n),key:r}}}const U=R("Box"),_=R("Heading"),P=R("Text"),j=R("Button"),L=R("Link");var M=r(573),D=r.n(M);let F=!1,B=!1;const $={debug:1,default:2,info:2,warning:3,error:4,off:5};let G=$.default,W=null;const H=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var z,J;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(z||(z={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(J||(J={}));const K="0123456789abcdef";class q{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==$[r]&&this.throwArgumentError("invalid log level name","logLevel",e),G>$[r]||console.log.apply(console,t)}debug(...e){this._log(q.levels.DEBUG,e)}info(...e){this._log(q.levels.INFO,e)}warn(...e){this._log(q.levels.WARNING,e)}makeError(e,t,r){if(B)return this.makeError("censored error",t,{});t||(t=q.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((e=>{const t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=K[t[e]>>4],r+=K[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}})),n.push(`code=${t}`),n.push(`version=${this.version}`);const o=e;let i="";switch(t){case J.NUMERIC_FAULT:{i="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":i+="-"+t;break;case"negative-power":case"negative-width":i+="-unsupported";break;case"unbound-bitwise-result":i+="-unbound-result"}break}case J.CALL_EXCEPTION:case J.INSUFFICIENT_FUNDS:case J.MISSING_NEW:case J.NONCE_EXPIRED:case J.REPLACEMENT_UNDERPRICED:case J.TRANSACTION_REPLACED:case J.UNPREDICTABLE_GAS_LIMIT:i=t}i&&(e+=" [ See: https://links.ethers.org/v5-errors-"+i+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const a=new Error(e);return a.reason=o,a.code=t,Object.keys(r).forEach((function(e){a[e]=r[e]})),a}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,q.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),H&&this.throwError("platform missing String.prototype.normalize",q.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:H})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,q.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,q.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,q.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,q.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",q.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",q.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",q.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return W||(W=new q("logger/5.8.0")),W}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",q.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),F){if(!e)return;this.globalLogger().throwError("error censorship permanent",q.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}B=!!e,F=!!t}static setLogLevel(e){const t=$[e.toLowerCase()];null!=t?G=t:q.globalLogger().warn("invalid log level - "+e)}static from(e){return new q(e)}}q.errors=J,q.levels=z;const V=new q("bytes/5.8.0");function X(e){return!!e.toHexString}function Z(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return Z(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Q(e){return"number"==typeof e&&e==e&&e%1==0}function Y(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!Q(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){const r=e[t];if(!Q(r)||r<0||r>=256)return!1}return!0}function ee(e,t){if(t||(t={}),"number"==typeof e){V.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),Z(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),X(e)&&(e=e.toHexString()),te(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":V.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let e=0;e<r.length;e+=2)n.push(parseInt(r.substring(e,e+2),16));return Z(new Uint8Array(n))}return Y(e)?Z(new Uint8Array(e)):V.throwArgumentError("invalid arrayify value","value",e)}function te(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const re=new q("strings/5.8.0");var ne,oe;function ie(e,t,r,n,o){if(e===oe.BAD_PREFIX||e===oe.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return e===oe.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(ne||(ne={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(oe||(oe={}));Object.freeze({error:function(e,t,r,n,o){return re.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:ie,replace:function(e,t,r,n,o){return e===oe.OVERLONG?(n.push(o),0):(n.push(65533),ie(e,t,r))}});function ae(e,t=ne.current){t!=ne.current&&(re.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if(55296==(64512&n)){t++;const o=e.charCodeAt(t);if(t>=e.length||56320!=(64512&o))throw new Error("invalid utf-8 string");const i=65536+((1023&n)<<10)+(1023&o);r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return ee(r)}function se(e){return t=ae(e),"0x"+D().keccak_256(ee(t));var t}var ce=r(810),le=r.n(ce);const ue=e=>({ids:{uuid:e}}),pe=async(e,t,r)=>{var n;const o=new Headers({Authorization:`Bearer ${r}`});const i=e,a=[t],s=le().stringify({sourceCriteria:JSON.stringify(ue(i)),targetType:"Address",targetCriterias:null===(n=a)||void 0===n?void 0:n.map((e=>JSON.stringify(ue(e))))}),c=new Request(`https://stage-api.ututrust.com/core-api-v2/ranking?${s}`,{method:"GET",headers:o}),l=await fetch(c);if(!l.ok){if(401===l.status)throw new Error("401: Token Expired");throw new Error(`Request failed with status: ${l.status}`)}return await l.text()},fe=async(e,t)=>await pe(e.from,e.to,t),ye=async(e,t,r)=>await pe(e,t,r),he=e=>`https://localhost:5173/signal/get?source=${e.from}&target=${e.to}&targetType=Address&targetHumanReadable=${e.to}`,de=e=>`https://localhost:5173/signal/create?source=${e.from}&target=${e.to}&targetType=Address&targetHumanReadable=${e.to}`,ge=(e,t,r)=>`https://localhost:5173/signal/get?source=${t}&target=${r}&targetType=Domain&targetHumanReadable=${e}`,me=(e,t,r)=>`https://localhost:5173/signal/create?source=${t}&target=${r}&targetType=Domain&targetHumanReadable=${e}`,be=()=>"https://localhost:5173?source=snap",ve=()=>"https://localhost:5173/connect",we=e=>new URL(e).hostname,Ee=e=>se(e).slice(0,42).toLowerCase(),Se=R("Image"),Ae=R("Divider"),Ce=()=>t(U,{children:[e(_,{children:"UTU Trust"}),e(Se,{src:'<?xml version="1.0" encoding="UTF-8"?>\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="148px" height="60px" viewBox="0 0 147 60" version="1.1">\n<g id="surface1">\n<path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 55.027344 23.53125 C 52.59375 23.53125 50.617188 25.503906 50.617188 27.941406 C 50.617188 28.203125 50.640625 28.460938 50.6875 28.71875 L 44.886719 30.34375 L 45.175781 31.351562 L 50.988281 29.722656 C 51.871094 31.746094 54.109375 32.808594 56.230469 32.210938 C 58.355469 31.609375 59.707031 29.53125 59.402344 27.34375 C 59.097656 25.15625 57.222656 23.53125 55.015625 23.539062 Z M 55.027344 23.53125 "/>\n<path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 53.847656 35.3125 C 52.273438 35.308594 50.859375 36.273438 50.289062 37.742188 L 45.457031 36.980469 L 45.296875 37.992188 L 50.046875 38.738281 C 50.039062 38.859375 50.039062 38.984375 50.046875 39.105469 C 50.03125 40.660156 50.957031 42.066406 52.386719 42.667969 C 53.816406 43.273438 55.46875 42.949219 56.566406 41.851562 C 57.664062 40.757812 57.996094 39.105469 57.398438 37.667969 C 56.800781 36.234375 55.398438 35.304688 53.847656 35.3125 Z M 53.847656 35.3125 "/>\n<path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 49.738281 44.699219 C 48.648438 44.703125 47.632812 45.257812 47.039062 46.171875 C 46.445312 47.085938 46.347656 48.238281 46.789062 49.238281 L 43.992188 51.53125 C 43.28125 50.570312 42.164062 49.996094 40.96875 49.980469 L 39.578125 44.765625 L 38.574219 45.039062 L 39.925781 50.132812 C 38.519531 50.515625 37.449219 51.664062 37.171875 53.097656 L 33.5625 52.96875 C 33.441406 50.195312 31.644531 47.773438 29.027344 46.863281 L 30.785156 43.617188 L 29.863281 43.109375 L 28.011719 46.5625 C 27.613281 46.492188 27.214844 46.457031 26.8125 46.457031 C 23.183594 46.460938 20.203125 49.335938 20.070312 52.96875 C 19.9375 56.601562 22.691406 59.691406 26.3125 59.964844 C 29.929688 60.238281 33.121094 57.597656 33.53125 53.988281 L 37.117188 54.128906 C 37.234375 55.621094 38.210938 56.910156 39.617188 57.421875 C 41.023438 57.933594 42.597656 57.582031 43.648438 56.511719 C 44.699219 55.445312 45.03125 53.863281 44.5 52.464844 L 47.367188 50.117188 C 48.371094 51.207031 49.984375 51.472656 51.285156 50.765625 C 52.585938 50.054688 53.238281 48.554688 52.875 47.121094 C 52.507812 45.683594 51.21875 44.679688 49.738281 44.679688 Z M 49.738281 44.699219 "/>\n<path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 18.828125 42.035156 C 19.304688 42.238281 19.820312 42.34375 20.339844 42.34375 C 22.152344 42.347656 23.71875 41.074219 24.085938 39.296875 C 24.453125 37.519531 23.515625 35.726562 21.851562 35.015625 L 22.238281 29.96875 C 22.390625 29.96875 22.539062 29.96875 22.691406 29.96875 C 24.226562 29.972656 25.675781 29.265625 26.621094 28.058594 L 30.394531 30.421875 L 30.941406 29.535156 L 27.179688 27.171875 C 27.515625 26.484375 27.6875 25.734375 27.683594 24.96875 C 27.683594 22.582031 25.996094 20.523438 23.652344 20.0625 L 25.5 15.132812 C 27.710938 15.597656 30.011719 15.0625 31.792969 13.675781 L 34.617188 15.453125 C 33.566406 16.804688 33.277344 18.601562 33.851562 20.214844 C 34.429688 21.828125 35.789062 23.035156 37.460938 23.410156 L 36.890625 28.394531 L 37.925781 28.511719 L 38.5 23.53125 L 38.558594 23.53125 C 40.890625 23.539062 42.914062 21.925781 43.4375 19.652344 C 43.960938 17.375 42.84375 15.039062 40.742188 14.023438 L 41.828125 10.890625 C 42.957031 11.34375 44.230469 11.230469 45.265625 10.59375 L 47.835938 12.804688 C 45.722656 14.449219 45.265625 17.460938 46.789062 19.660156 C 48.316406 21.863281 51.292969 22.484375 53.570312 21.078125 C 55.847656 19.671875 56.628906 16.730469 55.351562 14.375 C 54.074219 12.023438 51.183594 11.078125 48.765625 12.226562 L 46.082031 9.9375 C 47.117188 8.8125 47.386719 7.175781 46.761719 5.78125 C 46.136719 4.382812 44.738281 3.496094 43.210938 3.519531 C 41.683594 3.546875 40.316406 4.484375 39.742188 5.902344 L 34.5625 5.996094 C 33.777344 2.425781 30.578125 -0.0898438 26.925781 -0.0078125 C 23.277344 0.0742188 20.195312 2.734375 19.570312 6.339844 C 18.949219 9.945312 20.960938 13.484375 24.375 14.789062 L 22.429688 20.007812 C 19.777344 20.148438 17.699219 22.339844 17.695312 25 C 17.695312 25.167969 17.695312 25.332031 17.71875 25.503906 L 13.574219 26.878906 C 12.121094 25.132812 9.96875 24.125 7.703125 24.128906 L 7.554688 24.128906 L 7.226562 21.050781 C 8.71875 20.648438 9.820312 19.386719 10.019531 17.851562 L 12.4375 17.800781 C 12.671875 19.488281 14.171875 20.707031 15.867188 20.585938 C 17.566406 20.46875 18.878906 19.050781 18.871094 17.347656 C 18.867188 15.640625 17.542969 14.234375 15.847656 14.125 L 15.574219 11.566406 C 17.144531 10.992188 18.019531 9.3125 17.589844 7.695312 C 17.160156 6.078125 15.570312 5.054688 13.921875 5.332031 C 12.273438 5.613281 11.113281 7.105469 11.238281 8.773438 C 11.367188 10.441406 12.746094 11.738281 14.414062 11.765625 L 14.679688 14.285156 C 13.582031 14.628906 12.75 15.523438 12.488281 16.640625 L 9.96875 16.699219 C 9.617188 14.722656 7.804688 13.355469 5.8125 13.5625 C 3.820312 13.773438 2.328125 15.484375 2.394531 17.492188 C 2.457031 19.496094 4.058594 21.109375 6.058594 21.1875 L 6.382812 24.214844 C 2.40625 24.917969 -0.335938 28.605469 0.125 32.621094 C 0.589844 36.640625 4.101562 39.605469 8.132812 39.378906 C 12.167969 39.15625 15.328125 35.828125 15.347656 31.78125 C 15.351562 30.410156 14.980469 29.0625 14.28125 27.886719 L 17.976562 26.664062 C 18.484375 28.117188 19.632812 29.253906 21.085938 29.746094 L 20.710938 34.722656 C 20.597656 34.722656 20.476562 34.722656 20.359375 34.722656 C 18.75 34.71875 17.3125 35.726562 16.769531 37.242188 C 16.222656 38.757812 16.683594 40.453125 17.921875 41.480469 L 15.726562 43.519531 C 13.527344 41.738281 10.320312 42 8.4375 44.113281 C 6.554688 46.222656 6.652344 49.445312 8.667969 51.433594 C 10.679688 53.421875 13.894531 53.480469 15.980469 51.5625 C 18.0625 49.648438 18.277344 46.433594 16.472656 44.257812 Z M 39.480469 6.945312 C 39.472656 7.082031 39.472656 7.214844 39.480469 7.351562 C 39.480469 8.519531 40.011719 9.625 40.929688 10.351562 L 39.761719 13.671875 C 39.371094 13.574219 38.96875 13.523438 38.566406 13.523438 C 37.398438 13.523438 36.265625 13.933594 35.367188 14.683594 L 32.609375 12.949219 C 33.980469 11.527344 34.746094 9.625 34.746094 7.648438 C 34.746094 7.441406 34.746094 7.238281 34.746094 7.039062 Z M 39.480469 6.945312 "/>\n<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,86.666667%,20%);fill-opacity:1;" d="M 37.101562 25.882812 C 42.941406 25.882812 47.679688 30.625 47.679688 36.476562 C 47.679688 42.328125 42.941406 47.070312 37.101562 47.070312 C 31.261719 47.070312 26.523438 42.328125 26.523438 36.476562 C 26.523438 30.625 31.261719 25.882812 37.101562 25.882812 Z M 37.101562 25.882812 "/>\n<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 75.375 32.007812 L 75.375 19.394531 C 75.363281 18.621094 75.671875 17.875 76.234375 17.339844 C 76.777344 16.785156 77.527344 16.480469 78.300781 16.496094 C 79.074219 16.492188 79.816406 16.792969 80.359375 17.339844 C 80.90625 17.886719 81.210938 18.628906 81.203125 19.402344 L 81.203125 32.011719 C 81.140625 33.277344 81.515625 34.527344 82.265625 35.542969 C 82.980469 36.433594 84.25 36.878906 86.074219 36.878906 C 89.273438 36.878906 90.875 35.261719 90.875 32.019531 L 90.875 19.40625 C 90.859375 18.628906 91.167969 17.878906 91.730469 17.34375 C 92.277344 16.792969 93.023438 16.488281 93.796875 16.5 C 94.566406 16.492188 95.308594 16.796875 95.855469 17.339844 C 96.398438 17.886719 96.703125 18.628906 96.695312 19.402344 L 96.695312 32.011719 C 96.714844 33.3125 96.558594 34.609375 96.234375 35.867188 C 95.914062 37.015625 95.378906 38.09375 94.65625 39.042969 C 93.804688 40.121094 92.660156 40.925781 91.363281 41.367188 C 89.664062 41.949219 87.871094 42.226562 86.074219 42.183594 C 84.582031 42.199219 83.097656 42.011719 81.65625 41.617188 C 80.546875 41.324219 79.5 40.824219 78.574219 40.140625 C 77.789062 39.523438 77.144531 38.75 76.675781 37.871094 C 76.203125 37.007812 75.867188 36.082031 75.667969 35.121094 C 75.472656 34.09375 75.375 33.050781 75.375 32.007812 Z M 75.375 32.007812 "/>\n<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 104.75 21.136719 C 104.289062 20.671875 104.03125 20.039062 104.039062 19.382812 C 104.035156 18.734375 104.292969 18.113281 104.75 17.65625 C 105.195312 17.183594 105.820312 16.921875 106.46875 16.929688 L 107.703125 16.929688 L 107.703125 12.441406 C 107.695312 11.6875 108.007812 10.964844 108.5625 10.457031 C 109.09375 9.914062 109.820312 9.613281 110.578125 9.621094 C 111.335938 9.605469 112.066406 9.910156 112.59375 10.457031 C 113.140625 10.96875 113.445312 11.691406 113.4375 12.441406 L 113.4375 16.929688 L 115.863281 16.929688 C 116.507812 16.921875 117.128906 17.183594 117.574219 17.65625 C 118.039062 18.117188 118.296875 18.746094 118.289062 19.402344 C 118.296875 20.058594 118.039062 20.691406 117.574219 21.15625 C 117.132812 21.632812 116.511719 21.902344 115.863281 21.894531 L 113.4375 21.894531 L 113.4375 34.957031 C 113.421875 35.503906 113.652344 36.023438 114.070312 36.375 C 114.460938 36.722656 114.96875 36.917969 115.496094 36.917969 C 116.164062 36.90625 116.8125 37.167969 117.289062 37.640625 C 117.761719 38.105469 118.03125 38.742188 118.03125 39.40625 C 118.03125 40.074219 117.761719 40.710938 117.289062 41.171875 C 116.804688 41.640625 116.152344 41.890625 115.480469 41.871094 C 113.105469 41.871094 111.214844 41.195312 109.8125 39.851562 C 108.398438 38.472656 107.628906 36.558594 107.703125 34.582031 L 107.703125 21.875 L 106.46875 21.875 C 105.816406 21.878906 105.195312 21.613281 104.75 21.136719 Z M 104.75 21.136719 "/>\n<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 125.617188 32.007812 L 125.617188 19.394531 C 125.605469 18.621094 125.914062 17.875 126.472656 17.339844 C 127.304688 16.5 128.558594 16.25 129.648438 16.703125 C 130.738281 17.15625 131.445312 18.222656 131.441406 19.402344 L 131.441406 32.011719 C 131.378906 33.277344 131.753906 34.527344 132.507812 35.542969 C 133.21875 36.433594 134.488281 36.878906 136.316406 36.878906 C 139.515625 36.878906 141.113281 35.261719 141.109375 32.019531 L 141.109375 19.40625 C 141.097656 18.628906 141.40625 17.882812 141.96875 17.34375 C 142.515625 16.792969 143.261719 16.488281 144.039062 16.5 C 144.808594 16.496094 145.546875 16.800781 146.09375 17.34375 C 146.636719 17.890625 146.941406 18.628906 146.9375 19.402344 L 146.9375 32.011719 C 146.957031 33.3125 146.800781 34.609375 146.476562 35.867188 C 146.15625 37.015625 145.617188 38.097656 144.894531 39.042969 C 144.042969 40.125 142.898438 40.929688 141.59375 41.367188 C 139.894531 41.949219 138.105469 42.226562 136.3125 42.183594 C 134.8125 42.207031 133.316406 42.023438 131.867188 41.632812 C 130.757812 41.339844 129.710938 40.839844 128.785156 40.15625 C 128.003906 39.539062 127.355469 38.765625 126.886719 37.882812 C 126.417969 37.023438 126.078125 36.097656 125.878906 35.136719 C 125.691406 34.105469 125.601562 33.054688 125.617188 32.007812 Z M 125.617188 32.007812 "/>\n</g>\n</svg>\n'}),e(Ae,{})]});var Oe;!function(e){e.FurtherHelpBtn="btnHomePage_FurtherHelp"}(Oe||(Oe={}));const Ne=()=>t(U,{children:[e(Ce,{}),e(P,{children:"UTU Trust shows you what your friends and network think about things you find on the web, just at the critical moment when you’re about to interact with them. We call this information “signal.” Signals help keep you safe when connecting your wallet to a new DAPP, or sending tokens to a new address, or even buying a coin on an exchange."}),e(P,{children:'When you are about to confirm a transaction in MetaMask you will see a tab for "Insights from UTU Trust." We’ll show you a summary of any available signal for the “TO” address, D-app, or Token and a link to see the details.'}),e(j,{name:Oe.FurtherHelpBtn,children:"Next →"})]});var Te;!function(e){e.HomePageBtn="btnFurtherInfo_HomePage"}(Te||(Te={}));const xe=async()=>{const r=await snap.request({method:"snap_manageState",params:{operation:"get"}});console.log("ZZ accessTokenRecord",r);let n="production";r&&(n=r.env);const o=ve();return t(U,"production"===n?{children:[e(Ce,{}),t(P,{children:["We only show you signal from wallets you’ve interacted with and from folks you follow or are connected with on social media. ",e(L,{href:o,children:"Connect your Socials"})," to UTU and earn 10k UTT for each (our reputation token), which you can use to stake on things you find on the web."]})]}:{children:[e(Ce,{}),t(P,{children:["We only show you signal from wallets you’ve interacted with and from folks you follow or are connected with on social media. ",e(L,{href:o,children:"Connect your Socials"})," to UTU and earn 10k UTT for each (our reputation token), which you can use to stake on things you find on the web."]}),t(P,{children:["In this testing version, you’ll need to purchase a membership via Unlock Protocol for a small fee in $UTU Mock to see signal. You can",e(L,{href:"https://docs.google.com/forms/d/e/1FAIpQLSdqmuNdnRG6CefOYZHk9MnWm23e4q2qs9ZGynOqMwGrl6kJRw/viewform",children:"Request $UTU Mock here"}),"."]}),e(j,{name:Te.HomePageBtn,children:"Back to Home →"})]})},ke="BB",Ie=async()=>(console.log(`${ke} onHomePage`),{content:e(Ne,{})}),Re=async({id:t,event:r,context:n})=>{if(r.type===S.ButtonClickEvent)switch(r.name){default:case Oe.FurtherHelpBtn:await(async t=>{await snap.request({method:"snap_updateInterface",params:{id:t,ui:e(xe,{})}})})(t);break;case Te.HomePageBtn:await(async t=>{await snap.request({method:"snap_updateInterface",params:{id:t,ui:e(Ne,{})}})})(t)}},Ue=async({request:r})=>{if("authorizeUTUSnap"===r.method)return await(async r=>{console.log("Inside authorizeUTUSnap");const{token:n,env:o}=r.params;return await snap.request({method:"snap_manageState",params:{operation:"update",newState:{token:n,env:o}}}),console.log(`${ke} saved utu details...`),await snap.request({method:"snap_dialog",params:{type:"alert",content:t(U,{children:[e(_,{children:"UTU Trust Linked"}),e(P,{children:"You have now connected your snap to the UTU web3 application."}),e(P,{children:"Behind the scenes a JWT security token has been sent from the UTU app to the Snap. The snap uses the security token to access the UTU backend so it can see if there is any signal available. Signal is available when about to sign or make a transaction in MetaMask."}),e(j,{name:Te.HomePageBtn,children:"Home →"})]})}})})(r);throw new Error("Method not found.")},_e=async()=>{console.log(`${ke} onInstall`);const r=be();await snap.request({method:"snap_dialog",params:{type:"alert",content:t(U,{children:[e(_,{children:"Thank you for installing the UTU Trust Snap"}),e(P,{children:"In order to enable the Snap you need to Connect to the Utu App."}),e(P,{children:"Click on the link and when you arrive at Utu App connect with your wallet. The UTU app will then connect back to this snap and initialise it with credentials to talk to the UTU Trust backend."}),e(L,{href:r,children:"Go To Utu App to Connect"})]})}})},Pe=()=>{const r=be();return{content:t(U,{children:[e(_,{children:"Transaction Trust Insights Snap"}),e(P,{children:"Looks like you have not yet connected your wallet on UTU App."}),e(P,{children:"In order to enable the Snap you need to connect to Utu App."}),e(P,{children:"Click on the link and when you arrive at Utu App connect with your wallet. The UTU app will then connect back to this snap and initialise it with credentials to talk to the UTU Trust Network."}),e(L,{href:r,children:"Go To Utu App to connect"})]})}},je=(r,n)=>r?(r=>{const n=he(r),o=de(r);return console.log(`${ke} getSignalLink`,n),console.log(`${ke} giveSignalLink`,o),{content:t(U,{children:[e(_,{children:"Summary of Signal from your Network:"}),t(P,{children:["See the signal here: ",e(L,{href:n,children:"See Details"})]}),t(P,{children:['If you have something to say about the "to address", you can ',e(L,{href:o,children:"Give Signal"})," to help keep your people safe and find things they love."]})]})}})(n):(r=>{const n=de(r);return{content:t(U,{children:[e(_,{children:"Insights from UTU Trust"}),t(P,{children:['Nobody in your network has left signal on this "to address", ',r.to,", yet. Be the first to ",e(L,{href:n,children:"Give Signal"})," on it and help keep your people safe and find things they love."]})]})}})(n),Le=(r,n,o,i)=>r?((r,n,o)=>{const i=ge(r,n,o),a=me(r,n,o);return console.log(`${ke} getSignatureSignalLink`,i),console.log(`${ke} giveSignatureSignalLink`,a),{content:t(U,{children:[e(_,{children:"Summary of Signal from your Network:"}),t(P,{children:["See the signal here: ",e(L,{href:i,children:"See Details"})]}),t(P,{children:["If you have something to say about the domain, ",r,", you can ",e(L,{href:a,children:"Give Signal"})," to help keep your people safe and find things they love."]})]})}})(n,o,i):((r,n,o)=>{const i=me(r,n,o);return{content:t(U,{children:[e(_,{children:"Insights from UTU Trust"}),t(P,{children:["Nobody in your network has left signal on this domain, ",r,", yet. Be the first to ",e(L,{href:i,children:"Give Signal"})," on it and help keep your people safe and find things they love."]})]})}})(n,o,i),Me=async({transaction:r})=>{if(console.log(`${ke} transaction`,JSON.stringify(r)),r.to){console.log(`${ke} transaction.to`,r.to);const o=await snap.request({method:"snap_manageState",params:{operation:"get"}});if(console.log(`${ke} accessTokenRecord`,o),o){const i=o.token;o.env;try{const e=await(async(e,t)=>{const r=await fe(e,t),n=JSON.parse(r),{status:o,result:i}=n;console.log(`${ke} jsonObject`,n),console.log(`${ke} status`,o),console.log(`${ke} result`,JSON.stringify(i));let a=null;"success"===o&&i.length>0&&i[0].summaryText&&(a=`Summary of available Signal: ${i[0].summaryText}`);return a})(r,i);return console.log(`${ke} insights`,e),je(e,r)}catch(r){return console.error(`${ke} error`,r),r instanceof Error&&r.message.startsWith("401")?(()=>{const r=be();return{content:t(U,{children:[e(_,{children:"Credentials Expired"}),e(P,{children:"The credentials to connect to the UTU Trust Network have expired."}),e(P,{children:"Click on the link and when you arrive at Utu App connect with your wallet. The UTU app will then connect back to this snap and re-initialise it with up to date credentials so the snap can talk to the UTU Trust Network."}),e(L,{href:r,children:"Go To Utu App to Connect"})]})}})():(n="Network error retrieving Insight",{content:t(U,{children:[e(_,{children:"Transaction Trust Insights Snap"}),t(P,{children:["Error: ",n]})]})})}}return Pe()}var n;return{content:t(U,{children:[e(_,{children:"Transaction Trust Insights Snap"}),e(P,{children:"There is no transaction to address so no insights can be given."})]})}},De=async({signature:r,signatureOrigin:n})=>{const o=JSON.stringify(r);if(console.log(`${ke} signatureJson: ${o}`),!n)return t(U,{children:[e(_,{children:"Signature Trust Insights Snap"}),e(P,{children:"There is no signature origin so no insights can be given."})]});console.log(`${ke} signatureOrigin: ${n}`);const i=we(n),a=Ee(i),s=r.from,c=await snap.request({method:"snap_manageState",params:{operation:"get"}});if(console.log(`${ke} accessTokenRecord`,c),c){const e=c.token,t=await(async(e,t,r)=>{const n=await ye(e,t,r),o=JSON.parse(n),{status:i,result:a}=o;console.log(`${ke} jsonObject`,o),console.log(`${ke} status`,i),console.log(`${ke} result`,JSON.stringify(a));let s=null;"success"===i&&a.length>0&&a[0].summaryText&&(s=`Summary of available Signal: ${a[0].summaryText}`);return s})(s,a,e);return Le(t,i,s,a)}return Pe()}})(),module.exports=n})();
1
+ (()=>{var e={4:(e,t,r)=>{"use strict";var n=r(528),o=r(607),i=r(660),a=r(468),s=n("%Map%",!0),c=o("Map.prototype.get",!0),l=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),p=o("Map.prototype.delete",!0),f=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=p(e,t);return 0===f(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,r){e||(e=new s),l(e,t,r)}};return t}},95:e=>{"use strict";e.exports=Function.prototype.apply},110:e=>{"use strict";e.exports=EvalError},129:e=>{"use strict";e.exports=Math.max},138:(e,t,r)=>{"use strict";var n=r(794);e.exports=Function.prototype.bind||n},140:e=>{"use strict";e.exports=URIError},155:e=>{"use strict";e.exports=RangeError},165:(e,t,r)=>{"use strict";var n=r(138),o=r(95),i=r(531),a=r(196);e.exports=a||n.call(i,o)},193:(e,t,r)=>{"use strict";var n=r(539),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t,r,i){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=l?a.slice(0,l.index):a,p=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;p.push(u)}for(var f=0;r.depth>0&&null!==(l=s.exec(a))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(l[1])}if(l){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");p.push("["+a.slice(l.index)+"]")}return function(e,t,r,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var s=o?t:c(t,r,i),l=e.length-1;l>=0;--l){var u,p=e[l];if("[]"===p&&r.parseArrays)u=r.allowEmptyArrays&&(""===s||r.strictNullHandling&&null===s)?[]:n.combine([],s);else{u=r.plainObjects?{__proto__:null}:{};var f="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,d=parseInt(y,10);r.parseArrays||""!==y?!isNaN(d)&&p!==y&&String(d)===y&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(u=[])[d]=s:"__proto__"!==y&&(u[y]=s):u={0:s}}s=u}return s}(p,t,r,i)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var u="string"==typeof e?function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,p=l.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&p.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var f,y=-1,d=t.charset;if(t.charsetSentinel)for(f=0;f<p.length;++f)0===p[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[f]?d="utf-8":"utf8=%26%2310003%3B"===p[f]&&(d="iso-8859-1"),y=f,f=p.length);for(f=0;f<p.length;++f)if(f!==y){var h,g,m=p[f],b=m.indexOf("]="),v=-1===b?m.indexOf("="):b+1;-1===v?(h=t.decoder(m,a.decoder,d,"key"),g=t.strictNullHandling?null:""):(h=t.decoder(m.slice(0,v),a.decoder,d,"key"),g=n.maybeMap(c(m.slice(v+1),t,i(r[h])?r[h].length:0),(function(e){return t.decoder(e,a.decoder,d,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===d&&(g=s(String(g))),m.indexOf("[]=")>-1&&(g=i(g)?[g]:g);var w=o.call(r,h);w&&"combine"===t.duplicates?r[h]=n.combine(r[h],g):w&&"last"!==t.duplicates||(r[h]=g)}return r}(e,r):e,p=r.plainObjects?{__proto__:null}:{},f=Object.keys(u),y=0;y<f.length;++y){var d=f[y],h=l(d,u[d],r,"string"==typeof e);p=n.merge(p,h,r)}return!0===r.allowSparse?p:n.compact(p)}},196:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},292:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},319:e=>{"use strict";e.exports=Math.round},336:(e,t,r)=>{"use strict";var n=r(292);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},345:(e,t,r)=>{"use strict";var n=r(629);e.exports=n.getPrototypeOf||null},346:(e,t,r)=>{"use strict";var n=r(660),o=r(468),i=function(e,t,r){for(var n,o=e;null!=(n=o.next);o=n)if(n.key===t)return o.next=n.next,r||(n.next=e.next,e.next=n),n};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=function(e,t){if(e)return i(e,t,!0)}(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var r=i(e,t);return r&&r.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,r){e||(e={next:void 0}),function(e,t,r){var n=i(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(e,t,r)}};return t}},348:(e,t,r)=>{"use strict";var n=r(528),o=r(607),i=r(660),a=r(4),s=r(468),c=n("%WeakMap%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?l(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?p(e,r):!!t&&t.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),u(e,r,n)):a&&(t||(t=a()),t.set(r,n))}};return r}:a},369:(e,t,r)=>{"use strict";var n=r(859),o=r(345),i=r(423);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},387:e=>{"use strict";e.exports=Math.min},422:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},423:(e,t,r)=>{"use strict";var n,o=r(903),i=r(336);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},449:e=>{"use strict";e.exports=Math.floor},468:e=>{"use strict";e.exports=TypeError},479:e=>{"use strict";e.exports=Math.abs},528:(e,t,r)=>{"use strict";var n,o=r(629),i=r(838),a=r(110),s=r(155),c=r(943),l=r(731),u=r(468),p=r(140),f=r(479),y=r(449),d=r(129),h=r(387),g=r(865),m=r(319),b=r(882),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},E=r(336),S=r(940),A=function(){throw new u},C=E?function(){try{return A}catch(e){try{return E(arguments,"callee").get}catch(e){return A}}}():A,O=r(558)(),N=r(369),T=r(345),I=r(859),x=r(95),k=r(531),R={},_="undefined"!=typeof Uint8Array&&N?N(Uint8Array):n,U={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":O&&N?N([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":R,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&N?N(N([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&N?N((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&N?N((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&N?N(""[Symbol.iterator]()):n,"%Symbol%":O?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":C,"%TypedArray%":_,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":x,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":f,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":g,"%Math.round%":m,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(N)try{null.error}catch(e){var P=N(N(e));U["%Error.prototype%"]=P}var j=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&N&&(r=N(o.prototype))}return U[t]=r,r},L={__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"]},M=r(138),D=r(554),F=M.call(k,Array.prototype.concat),B=M.call(x,Array.prototype.splice),$=M.call(k,String.prototype.replace),z=M.call(k,String.prototype.slice),W=M.call(k,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,J=function(e,t){var r,n=e;if(D(L,n)&&(n="%"+(r=L[n])[0]+"%"),D(U,n)){var o=U[n];if(o===R&&(o=j(n)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=z(e,0,1),r=z(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return $(e,G,(function(e,t,r,o){n[n.length]=r?$(o,H,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=J("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],B(r,F([0,1],c)));for(var p=1,f=!0;p<r.length;p+=1){var y=r[p],d=z(y,0,1),h=z(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new l("property names with quotes must have matching quotes");if("constructor"!==y&&f||(s=!0),D(U,i="%"+(n+="."+y)+"%"))a=U[i];else if(null!=a){if(!(y in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(E&&p+1>=r.length){var g=E(a,y);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[y]}else f=D(a,y),a=a[y];f&&!s&&(U[i]=a)}}return a}},531:e=>{"use strict";e.exports=Function.prototype.call},539:(e,t,r)=>{"use strict";var n=r(830),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},c=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;u+=c){for(var p=s.length>=c?s.slice(u,u+c):s,f=[],y=0;y<p.length;++y){var d=p.charCodeAt(y);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===n.RFC1738&&(40===d||41===d)?f[f.length]=p.charAt(y):d<128?f[f.length]=a[d]:d<2048?f[f.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?f[f.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&p.charCodeAt(y)),f[f.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}l+=f.join("")}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=s(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},554:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(138);e.exports=i.call(n,o)},558:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(908);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},575:(e,t,r)=>{"use strict";var n=r(468),o=r(660),i=r(346),a=r(4),s=r(348)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},607:(e,t,r)=>{"use strict";var n=r(528),o=r(903),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},623:(e,t,r)=>{"use strict";var n=r(575),o=r(539),i=r(830),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},d={},h=function e(t,r,i,a,s,l,p,f,h,g,m,b,v,w,E,S,A,C){for(var O,N=t,T=C,I=0,x=!1;void 0!==(T=T.get(d))&&!x;){var k=T.get(t);if(I+=1,void 0!==k){if(k===I)throw new RangeError("Cyclic object value");x=!0}void 0===T.get(d)&&(I=0)}if("function"==typeof g?N=g(r,N):N instanceof Date?N=v(N):"comma"===i&&c(N)&&(N=o.maybeMap(N,(function(e){return e instanceof Date?v(e):e}))),null===N){if(l)return h&&!S?h(r,y.encoder,A,"key",w):r;N=""}if("string"==typeof(O=N)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||o.isBuffer(N))return h?[E(S?r:h(r,y.encoder,A,"key",w))+"="+E(h(N,y.encoder,A,"value",w))]:[E(r)+"="+E(String(N))];var R,_=[];if(void 0===N)return _;if("comma"===i&&c(N))S&&h&&(N=o.maybeMap(N,h)),R=[{value:N.length>0?N.join(",")||null:void 0}];else if(c(g))R=g;else{var U=Object.keys(N);R=m?U.sort(m):U}var P=f?String(r).replace(/\./g,"%2E"):String(r),j=a&&c(N)&&1===N.length?P+"[]":P;if(s&&c(N)&&0===N.length)return j+"[]";for(var L=0;L<R.length;++L){var M=R[L],D="object"==typeof M&&M&&void 0!==M.value?M.value:N[M];if(!p||null!==D){var F=b&&f?String(M).replace(/\./g,"%2E"):String(M),B=c(N)?"function"==typeof i?i(j,F):j:j+(b?"."+F:"["+F+"]");C.set(t,I);var $=n();$.set(d,C),u(_,e(D,B,i,a,s,l,p,f,"comma"===i&&S&&c(N)?null:h,g,m,b,v,w,E,S,A,$))}}return _};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=i.formatters[r],l=y.filter;if(("function"==typeof e.filter||c(e.filter))&&(l=e.filter),n=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:l,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):c(l.filter)&&(r=l.filter);var p=[];if("object"!=typeof o||null===o)return"";var f=s[l.arrayFormat],d="comma"===f&&l.commaRoundTrip;r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var g=n(),m=0;m<r.length;++m){var b=r[m],v=o[b];l.skipNulls&&null===v||u(p,h(v,b,f,d,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var w=p.join(l.delimiter),E=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),w.length>0?E+w:""}},629:e=>{"use strict";e.exports=Object},660:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,g=Function.prototype.toString,m=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,S=RegExp.prototype.test,A=Array.prototype.concat,C=Array.prototype.join,O=Array.prototype.slice,N=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||"symbol")?Symbol.toStringTag:null,_=Object.prototype.propertyIsEnumerable,U=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-N(-e):N(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var j=r(973),L=j.custom,M=H(L)?L:null,D={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,r){var n=r.quoteStyle||t,o=D[n];return o+e+o}function $(e){return v.call(String(e),/"/g,"&quot;")}function z(e){return!R||!("object"==typeof e&&(R in e||void 0!==e[R]))}function W(e){return"[object Array]"===q(e)&&z(e)}function G(e){return"[object RegExp]"===q(e)&&z(e)}function H(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var c=n||{};if(K(c,"quoteStyle")&&!K(D,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(K(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!K(c,"customInspect")||c.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Z(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return w?P(t,S):S}if("bigint"==typeof t){var N=String(t)+"n";return w?P(t,N):N}var I=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=I&&I>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var L=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=C.call(Array(e.indent+1)," ")}return{base:r,prev:C.call(Array(t+1),r)}}(c,o);if(void 0===s)s=[];else if(V(s,t)>=0)return"[Circular]";function F(t,r,n){if(r&&(s=O.call(s)).push(r),n){var i={depth:c.depth};return K(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!G(t)){var J=function(e){if(e.name)return e.name;var t=m.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),X=re(t,F);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(X.length>0?" { "+C.call(X,", ")+" }":"")}if(H(t)){var ne=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||k?ne:Q(ne)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var oe="<"+E.call(String(t.nodeName)),ie=t.attributes||[],ae=0;ae<ie.length;ae++)oe+=" "+ie[ae].name+"="+B($(ie[ae].value),"double",c);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+="</"+E.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var se=re(t,F);return L&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(se)?"["+te(se,L)+"]":"[ "+C.call(se,", ")+" ]"}if(function(e){return"[object Error]"===q(e)&&z(e)}(t)){var ce=re(t,F);return"cause"in Error.prototype||!("cause"in t)||_.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(ce,", ")+" }":"{ ["+String(t)+"] "+C.call(A.call("[cause]: "+F(t.cause),ce),", ")+" }"}if("object"==typeof t&&h){if(M&&"function"==typeof t[M]&&j)return j(t,{depth:I-o});if("symbol"!==h&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,r){le.push(F(r,t,!0)+" => "+F(e,t))})),ee("Map",i.call(t),le,L)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return u&&u.call(t,(function(e){ue.push(F(e,t))})),ee("Set",l.call(t),ue,L)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===q(e)&&z(e)}(t))return Q(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}(t))return Q(F(T.call(t)));if(function(e){return"[object Boolean]"===q(e)&&z(e)}(t))return Q(d.call(t));if(function(e){return"[object String]"===q(e)&&z(e)}(t))return Q(F(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===q(e)&&z(e)}(t)&&!G(t)){var pe=re(t,F),fe=U?U(t)===Object.prototype:t instanceof Object||t.constructor===Object,ye=t instanceof Object?"":"null prototype",de=!fe&&R&&Object(t)===t&&R in t?b.call(q(t),8,-1):ye?"Object":"",he=(fe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||ye?"["+C.call(A.call([],de||[],ye||[]),": ")+"] ":"");return 0===pe.length?he+"{}":L?he+"{"+te(pe,L)+"}":he+"{ "+C.call(pe,", ")+" }"}return String(t)};var J=Object.prototype.hasOwnProperty||function(e){return e in this};function K(e,t){return J.call(e,t)}function q(e){return h.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Z(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Z(b.call(e,0,t.maxStringLength),t)+n}var o=F[t.quoteStyle||"single"];return o.lastIndex=0,B(v.call(v.call(e,o,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Q(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):C.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+C.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=W(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=K(e,o)?t(e[o],e):""}var i,a="function"==typeof I?I(e):[];if(k){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)K(e,c)&&(r&&String(Number(c))===c&&c<e.length||k&&i["$"+c]instanceof Symbol||(S.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof I)for(var l=0;l<a.length;l++)_.call(e,a[l])&&n.push("["+t(a[l])+"]: "+t(e[a[l]],e));return n}},671:(e,t,r)=>{var n;!function(){"use strict";var o="input is invalid type",i="object"==typeof window,a=i?window:{};a.JS_SHA3_NO_WINDOW&&(i=!1);var s=!i&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?a=r.g:s&&(a=self);var c=!a.JS_SHA3_NO_COMMON_JS&&e.exports,l=r.amdO,u=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),f=[4,1024,262144,67108864],y=[0,8,16,24],d=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],h=[224,256,384,512],g=[128,256],m=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!u||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var v=function(e,t,r){return function(n){return new P(e,t,e).update(n)[r]()}},w=function(e,t,r){return function(n,o){return new P(e,t,o).update(n)[r]()}},E=function(e,t,r){return function(t,n,o,i){return N["cshake"+e].update(t,n,o,i)[r]()}},S=function(e,t,r){return function(t,n,o,i){return N["kmac"+e].update(t,n,o,i)[r]()}},A=function(e,t,r,n){for(var o=0;o<m.length;++o){var i=m[o];e[i]=t(r,n,i)}return e},C=function(e,t){var r=v(e,t,"hex");return r.create=function(){return new P(e,t,e)},r.update=function(e){return r.create().update(e)},A(r,v,e,t)},O=[{name:"keccak",padding:[1,256,65536,16777216],bits:h,createMethod:C},{name:"sha3",padding:[6,1536,393216,100663296],bits:h,createMethod:C},{name:"shake",padding:[31,7936,2031616,520093696],bits:g,createMethod:function(e,t){var r=w(e,t,"hex");return r.create=function(r){return new P(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},A(r,w,e,t)}},{name:"cshake",padding:f,bits:g,createMethod:function(e,t){var r=b[e],n=E(e,0,"hex");return n.create=function(n,o,i){return o||i?new P(e,t,n).bytepad([o,i],r):N["shake"+e].create(n)},n.update=function(e,t,r,o){return n.create(t,r,o).update(e)},A(n,E,e,t)}},{name:"kmac",padding:f,bits:g,createMethod:function(e,t){var r=b[e],n=S(e,0,"hex");return n.create=function(n,o,i){return new j(e,t,o).bytepad(["KMAC",i],r).bytepad([n],r)},n.update=function(e,t,r,o){return n.create(e,r,o).update(t)},A(n,S,e,t)}}],N={},T=[],I=0;I<O.length;++I)for(var x=O[I],k=x.bits,R=0;R<k.length;++R){var _=x.name+"_"+k[R];if(T.push(_),N[_]=x.createMethod(k[R],x.padding),"sha3"!==x.name){var U=x.name+k[R];T.push(U),N[U]=N[_]}}function P(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function j(e,t,r){P.call(this,e,t,r)}P.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(o);if(null===e)throw new Error(o);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||u&&ArrayBuffer.isView(e)))throw new Error(o);t=!0}for(var n,i,a=this.blocks,s=this.byteCount,c=e.length,l=this.blockCount,p=0,f=this.s;p<c;){if(this.reset)for(this.reset=!1,a[0]=this.block,n=1;n<l+1;++n)a[n]=0;if(t)for(n=this.start;p<c&&n<s;++p)a[n>>2]|=e[p]<<y[3&n++];else for(n=this.start;p<c&&n<s;++p)(i=e.charCodeAt(p))<128?a[n>>2]|=i<<y[3&n++]:i<2048?(a[n>>2]|=(192|i>>6)<<y[3&n++],a[n>>2]|=(128|63&i)<<y[3&n++]):i<55296||i>=57344?(a[n>>2]|=(224|i>>12)<<y[3&n++],a[n>>2]|=(128|i>>6&63)<<y[3&n++],a[n>>2]|=(128|63&i)<<y[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++p)),a[n>>2]|=(240|i>>18)<<y[3&n++],a[n>>2]|=(128|i>>12&63)<<y[3&n++],a[n>>2]|=(128|i>>6&63)<<y[3&n++],a[n>>2]|=(128|63&i)<<y[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=a[l],n=0;n<l;++n)f[n]^=a[n];L(f),this.reset=!0}else this.start=n}return this},P.prototype.encode=function(e,t){var r=255&e,n=1,o=[r];for(r=255&(e>>=8);r>0;)o.unshift(r),r=255&(e>>=8),++n;return t?o.push(n):o.unshift(n),this.update(o),o.length},P.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(o);if(null===e)throw new Error(o);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||u&&ArrayBuffer.isView(e)))throw new Error(o);t=!0}var n=0,i=e.length;if(t)n=i;else for(var a=0;a<e.length;++a){var s=e.charCodeAt(a);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),n+=4)}return n+=this.encode(8*n),this.update(e),n},P.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var o=t-r%t,i=[];return i.length=o,this.update(i),this},P.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];L(n)}},P.prototype.toString=P.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,i=0,a=0,s="";a<n;){for(i=0;i<t&&a<n;++i,++a)e=r[i],s+=p[e>>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];a%t===0&&(L(r),i=0)}return o&&(e=r[i],s+=p[e>>4&15]+p[15&e],o>1&&(s+=p[e>>12&15]+p[e>>8&15]),o>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},P.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,i=0,a=0,s=this.outputBits>>3;e=o?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<n;){for(i=0;i<t&&a<n;++i,++a)c[a]=r[i];a%t===0&&L(r)}return o&&(c[i]=r[i],e=e.slice(0,s)),e},P.prototype.buffer=P.prototype.arrayBuffer,P.prototype.digest=P.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,o=this.outputBlocks,i=this.extraBytes,a=0,s=0,c=[];s<o;){for(a=0;a<r&&s<o;++a,++s)e=s<<2,t=n[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%r===0&&L(n)}return i&&(e=s<<2,t=n[a],c[e]=255&t,i>1&&(c[e+1]=t>>8&255),i>2&&(c[e+2]=t>>16&255)),c},j.prototype=new P,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),P.prototype.finalize.call(this)};var L=function(e){var t,r,n,o,i,a,s,c,l,u,p,f,y,h,g,m,b,v,w,E,S,A,C,O,N,T,I,x,k,R,_,U,P,j,L,M,D,F,B,$,z,W,G,H,J,K,q,V,Z,X,Q,Y,ee,te,re,ne,oe,ie,ae,se,ce,le,ue;for(n=0;n<48;n+=2)o=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],t=(f=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(y=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=o^(c<<1|l>>>31),r=i^(l<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(u<<1|p>>>31),r=s^(p<<1|u>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(f<<1|y>>>31),r=l^(y<<1|f>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=u^(o<<1|i>>>31),r=p^(i<<1|o>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,h=e[0],g=e[1],K=e[11]<<4|e[10]>>>28,q=e[10]<<4|e[11]>>>28,x=e[20]<<3|e[21]>>>29,k=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,W=e[40]<<18|e[41]>>>14,G=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,L=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,V=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,R=e[33]<<13|e[32]>>>19,_=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,M=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,U=e[45]<<29|e[44]>>>3,P=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,N=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,oe=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,B=e[27]<<25|e[26]>>>7,E=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,Y=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,H=e[8]<<27|e[9]>>>5,J=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,I=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,$=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,A=e[48]<<14|e[49]>>>18,C=e[49]<<14|e[48]>>>18,e[0]=h^~m&v,e[1]=g^~b&w,e[10]=O^~T&x,e[11]=N^~I&k,e[20]=j^~M&F,e[21]=L^~D&B,e[30]=H^~K&V,e[31]=J^~q&Z,e[40]=te^~ne&ie,e[41]=re^~oe&ae,e[2]=m^~v&E,e[3]=b^~w&S,e[12]=T^~x&R,e[13]=I^~k&_,e[22]=M^~F&$,e[23]=D^~B&z,e[32]=K^~V&X,e[33]=q^~Z&Q,e[42]=ne^~ie&se,e[43]=oe^~ae&ce,e[4]=v^~E&A,e[5]=w^~S&C,e[14]=x^~R&U,e[15]=k^~_&P,e[24]=F^~$&W,e[25]=B^~z&G,e[34]=V^~X&Y,e[35]=Z^~Q&ee,e[44]=ie^~se&le,e[45]=ae^~ce&ue,e[6]=E^~A&h,e[7]=S^~C&g,e[16]=R^~U&O,e[17]=_^~P&N,e[26]=$^~W&j,e[27]=z^~G&L,e[36]=X^~Y&H,e[37]=Q^~ee&J,e[46]=se^~le&te,e[47]=ce^~ue&re,e[8]=A^~h&m,e[9]=C^~g&b,e[18]=U^~O&T,e[19]=P^~N&I,e[28]=W^~j&M,e[29]=G^~L&D,e[38]=Y^~H&K,e[39]=ee^~J&q,e[48]=le^~te&ne,e[49]=ue^~re&oe,e[0]^=d[n],e[1]^=d[n+1]};if(c)e.exports=N;else{for(I=0;I<T.length;++I)a[T[I]]=N[T[I]];l&&(void 0===(n=function(){return N}.call(t,r,t,e))||(e.exports=n))}}()},731:e=>{"use strict";e.exports=SyntaxError},794:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),s=r(0,o.length-a.length),c=[],l=0;l<s;l++)c[l]="$"+l;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(a,arguments));return Object(t)===t?t:this}return o.apply(e,n(a,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},810:(e,t,r)=>{"use strict";var n=r(623),o=r(193),i=r(830);e.exports={formats:i,parse:o,stringify:n}},830:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:o}},838:e=>{"use strict";e.exports=Error},859:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},865:e=>{"use strict";e.exports=Math.pow},882:(e,t,r)=>{"use strict";var n=r(422);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},903:(e,t,r)=>{"use strict";var n=r(138),o=r(468),i=r(531),a=r(165);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},908:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},940:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},943:e=>{"use strict";e.exports=ReferenceError},973:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.amdO={},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";function e(e,t,r){if("string"==typeof e)throw new Error(`An HTML element ("${String(e)}") was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.`);if(!e)throw new Error("A JSX fragment was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.");return e({...t,key:r})}function t(t,r,n){return e(t,r,n)}r.r(n),r.d(n,{onHomePage:()=>Ke,onInstall:()=>Ze,onRpcRequest:()=>Ve,onSignature:()=>tt,onTransaction:()=>et,onUserInput:()=>qe});class o extends TypeError{constructor(e,t){let r;const{message:n,explanation:o,...i}=e,{path:a}=e,s=0===a.length?n:`At path: ${a.join(".")} -- ${n}`;super(o??s),null!=o&&(this.cause=s),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}function i(e){return"object"==typeof e&&null!==e}function a(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function s(e,t,r,n){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:o,branch:i}=t,{type:s}=r,{refinement:c,message:l=`Expected a value of type \`${s}\`${c?` with refinement \`${c}\``:""}, but received: \`${a(n)}\``}=e;return{value:n,type:s,refinement:c,key:o[o.length-1],path:o,branch:i,...e,message:l}}function*c(e,t,r,n){(function(e){return i(e)&&"function"==typeof e[Symbol.iterator]})(e)||(e=[e]);for(const o of e){const e=s(o,t,r,n);e&&(yield e)}}function*l(e,t,r={}){const{path:n=[],branch:o=[e],coerce:a=!1,mask:s=!1}=r,c={path:n,branch:o};if(a&&(e=t.coercer(e,c),s&&"type"!==t.type&&i(t.schema)&&i(e)&&!Array.isArray(e)))for(const r in e)void 0===t.schema[r]&&delete e[r];let u="valid";for(const n of t.validator(e,c))n.explanation=r.message,u="not_valid",yield[n,void 0];for(let[p,f,y]of t.entries(e,c)){const t=l(f,y,{path:void 0===p?n:[...n,p],branch:void 0===p?o:[...o,f],coerce:a,mask:s,message:r.message});for(const r of t)r[0]?(u=null===r[0].refinement||void 0===r[0].refinement?"not_valid":"not_refined",yield[r[0],void 0]):a&&(f=r[1],void 0===p?e=f:e instanceof Map?e.set(p,f):e instanceof Set?e.add(f):i(e)&&(void 0!==f||p in e)&&(e[p]=f))}if("not_valid"!==u)for(const n of t.refiner(e,c))n.explanation=r.message,u="not_refined",yield[n,void 0];"valid"===u&&(yield[void 0,e])}class u{constructor(e){const{type:t,schema:r,validator:n,refiner:o,coercer:i=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=r,this.entries=a,this.coercer=i,this.validator=n?(e,t)=>c(n(e,t),t,this,e):()=>[],this.refiner=o?(e,t)=>c(o(e,t),t,this,e):()=>[]}assert(e,t){return function(e,t,r){const n=y(e,t,{message:r});if(n[0])throw n[0]}(e,this,t)}create(e,t){return function(e,t,r){const n=y(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}(e,this,t)}is(e){return function(e,t){const r=y(e,t);return!r[0]}(e,this)}mask(e,t){return function(e,t,r){const n=y(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}(e,this,t)}validate(e,t={}){return y(e,this,t)}}const p="EXACT_OPTIONAL";class f extends u{constructor(e){super({...e,type:`exact optional ${e.type}`}),this.brand=p}static isExactOptional(e){return i(e)&&"brand"in e&&e.brand===p}}function y(e,t,r={}){const n=l(e,t,r),i=function(e){const{done:t,value:r}=e.next();return t?void 0:r}(n);if(i[0]){return[new o(i[0],(function*(){for(const e of n)e[0]&&(yield e[0])})),void 0]}return[void 0,i[1]]}function d(...e){const t="type"===e[0]?.type,r=e.map((({schema:e})=>e)),n=Object.assign({},...r);return t?function(e){const t=Object.keys(e);return new u({type:"type",schema:e,*entries(r){if(i(r))for(const n of t)yield[n,r[n],e[n]]},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`,coercer:e=>i(e)?{...e}:e})}(n):v(n)}function h(e,t){return new u({type:e,schema:null,validator:t})}function g(){return h("boolean",(e=>"boolean"==typeof e))}function m(){return h("never",(()=>!1))}function b(e){return new u({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})}function v(e){const t=e?Object.keys(e):[],r=m();return new u({type:"object",schema:e??null,*entries(n){if(e&&i(n)){const o=new Set(Object.keys(n));for(const r of t){o.delete(r);const t=e[r];f.isExactOptional(t)&&!Object.prototype.hasOwnProperty.call(n,r)||(yield[r,n[r],e[r]])}for(const e of o)yield[e,n[e],r]}},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`,coercer:e=>i(e)?{...e}:e})}function w(e){return new u({...e,validator:(t,r)=>void 0===t||e.validator(t,r),refiner:(t,r)=>void 0===t||e.refiner(t,r)})}function E(){return h("string",(e=>"string"==typeof e||`Expected a string, but received: ${a(e)}`))}function S(e){const t=e.map((e=>e.type)).join(" | ");return new u({type:"union",schema:null,coercer(t){for(const r of e){const[e,n]=r.validate(t,{coerce:!0});if(!e)return n}return t},validator(r,n){const o=[];for(const t of e){const[...e]=l(r,t,n),[i]=e;if(!i?.[0])return[];for(const[t]of e)t&&o.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${a(r)}`,...o]}})}function A(e,t){return h(e,(e=>"string"==typeof e&&t.test(e)))}const C=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u,O=/^[-a-z0-9]{3,8}$/u,N=/^[-_a-zA-Z0-9]{1,32}$/u,T=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u,I=/^[-.%a-zA-Z0-9]{1,128}$/u,x=/^[-a-z0-9]{3,8}$/u,k=/^[-.%a-zA-Z0-9]{1,128}$/u,R=/^[-.%a-zA-Z0-9]{1,78}$/u,_=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u,U=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u,P=(A("CaipChainId",C),A("CaipNamespace",O),A("CaipReference",N),A("CaipAccountId",T),A("CaipAccountAddress",I),A("CaipAssetNamespace",x),A("CaipAssetReference",k),A("CaipTokenId",R),A("CaipAssetType",_));A("CaipAssetId",U),A("CaipAssetTypeOrId",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})(\/(?<tokenId>[-.%a-zA-Z0-9]{1,78}))?$/u);var j;function L(e){return Boolean(e)&&"object"==typeof e&&!Array.isArray(e)}!function(e){e.Bip122="bip122",e.Solana="solana",e.Eip155="eip155",e.Wallet="wallet"}(j=j||(j={}));const M=(e,t)=>Object.hasOwnProperty.call(e,t);var D;!function(e){e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date"}(D=D||(D={}));function F(e){return h(JSON.stringify(e),function(e){const t=a(e),r=typeof e;return new u({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${a(r)}`})}(e).validator)}var B;!function(e){e.ButtonClickEvent="ButtonClickEvent",e.FormSubmitEvent="FormSubmitEvent",e.InputChangeEvent="InputChangeEvent",e.FileUploadEvent="FileUploadEvent"}(B||(B={}));const $=v({type:E(),name:w(E())}),z=d($,v({type:F(B.ButtonClickEvent),name:w(E())})),W=v({name:E(),size:h("number",(e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${a(e)}`)),contentType:E(),contents:E()}),G=v({asset:P,name:E(),symbol:E()});var H,J;!function(e){const t=e.map((e=>"union"===e.type&&Array.isArray(e.schema)?e.schema:e)).flat(1/0),r=t.map((({schema:e})=>e.type.type)),n=t.reduce(((e,t)=>(e[JSON.parse(t.schema.type.type)]=t,e)),{});new u({type:"union",schema:t,*entries(e,t){if(!L(e)||!M(e,"type")||"string"!=typeof e.type)return;const{type:r}=e,o=n[r];if(o)for(const r of o.entries(e,t))yield r},coercer(e,t){if(!L(e)||!M(e,"type")||"string"!=typeof e.type)return e;const{type:r}=e,o=n[r];return o?o.coercer(e,t):e},*refiner(e,t){const r=n[e.type];yield*r.refiner(e,t)},validator(e,t){if(!L(e)||!M(e,"type")||"string"!=typeof e.type)return`Expected type to be one of: ${r.join(", ")}, but received: undefined`;const{type:o}=e,i=n[o];return i?i.validator(e,t):`Expected type to be one of: ${r.join(", ")}, but received: "${o}"`}})}([z,d($,v({type:F(B.FormSubmitEvent),value:(H=E(),J=b(S([E(),W,g(),G])),new u({type:"record",schema:null,*entries(e){if(i(e))for(const t in e){const r=e[t];yield[t,t,H],yield[t,r,J]}},validator:e=>i(e)||`Expected an object, but received: ${a(e)}`})),name:E()})),d($,v({type:F(B.InputChangeEvent),name:E(),value:S([E(),g(),G])})),d($,v({type:F(B.FileUploadEvent),name:E(),file:b(W)}))]);function K(e){return Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==e)))}function q(e){return t=>{const{key:r=null,...n}=t;return{type:e,props:K(n),key:r}}}const V=q("Box"),Z=q("Heading"),X=q("Text"),Q=q("Button"),Y=q("Link");var ee=r(671),te=r.n(ee);let re=!1,ne=!1;const oe={debug:1,default:2,info:2,warning:3,error:4,off:5};let ie=oe.default,ae=null;const se=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var ce,le;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(ce||(ce={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(le||(le={}));const ue="0123456789abcdef";class pe{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==oe[r]&&this.throwArgumentError("invalid log level name","logLevel",e),ie>oe[r]||console.log.apply(console,t)}debug(...e){this._log(pe.levels.DEBUG,e)}info(...e){this._log(pe.levels.INFO,e)}warn(...e){this._log(pe.levels.WARNING,e)}makeError(e,t,r){if(ne)return this.makeError("censored error",t,{});t||(t=pe.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((e=>{const t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=ue[t[e]>>4],r+=ue[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}})),n.push(`code=${t}`),n.push(`version=${this.version}`);const o=e;let i="";switch(t){case le.NUMERIC_FAULT:{i="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":i+="-"+t;break;case"negative-power":case"negative-width":i+="-unsupported";break;case"unbound-bitwise-result":i+="-unbound-result"}break}case le.CALL_EXCEPTION:case le.INSUFFICIENT_FUNDS:case le.MISSING_NEW:case le.NONCE_EXPIRED:case le.REPLACEMENT_UNDERPRICED:case le.TRANSACTION_REPLACED:case le.UNPREDICTABLE_GAS_LIMIT:i=t}i&&(e+=" [ See: https://links.ethers.org/v5-errors-"+i+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const a=new Error(e);return a.reason=o,a.code=t,Object.keys(r).forEach((function(e){a[e]=r[e]})),a}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,pe.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),se&&this.throwError("platform missing String.prototype.normalize",pe.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:se})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,pe.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,pe.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,pe.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,pe.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",pe.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",pe.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",pe.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return ae||(ae=new pe("logger/5.8.0")),ae}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",pe.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),re){if(!e)return;this.globalLogger().throwError("error censorship permanent",pe.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ne=!!e,re=!!t}static setLogLevel(e){const t=oe[e.toLowerCase()];null!=t?ie=t:pe.globalLogger().warn("invalid log level - "+e)}static from(e){return new pe(e)}}pe.errors=le,pe.levels=ce;const fe=new pe("bytes/5.8.0");function ye(e){return!!e.toHexString}function de(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return de(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function he(e){return"number"==typeof e&&e==e&&e%1==0}function ge(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!he(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){const r=e[t];if(!he(r)||r<0||r>=256)return!1}return!0}function me(e,t){if(t||(t={}),"number"==typeof e){fe.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),de(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),ye(e)&&(e=e.toHexString()),be(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":fe.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let e=0;e<r.length;e+=2)n.push(parseInt(r.substring(e,e+2),16));return de(new Uint8Array(n))}return ge(e)?de(new Uint8Array(e)):fe.throwArgumentError("invalid arrayify value","value",e)}function be(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const ve=new pe("strings/5.8.0");var we,Ee;function Se(e,t,r,n,o){if(e===Ee.BAD_PREFIX||e===Ee.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return e===Ee.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(we||(we={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(Ee||(Ee={}));Object.freeze({error:function(e,t,r,n,o){return ve.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:Se,replace:function(e,t,r,n,o){return e===Ee.OVERLONG?(n.push(o),0):(n.push(65533),Se(e,t,r))}});function Ae(e,t=we.current){t!=we.current&&(ve.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if(55296==(64512&n)){t++;const o=e.charCodeAt(t);if(t>=e.length||56320!=(64512&o))throw new Error("invalid utf-8 string");const i=65536+((1023&n)<<10)+(1023&o);r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return me(r)}function Ce(e){return t=Ae(e),"0x"+te().keccak_256(me(t));var t}var Oe=r(810),Ne=r.n(Oe);const Te=e=>({ids:{uuid:e}}),Ie=async(e,t,r)=>{var n;const o=new Headers({Authorization:`Bearer ${r}`});const i=e,a=[t],s=Ne().stringify({sourceCriteria:JSON.stringify(Te(i)),targetType:"Address",targetCriterias:null===(n=a)||void 0===n?void 0:n.map((e=>JSON.stringify(Te(e))))}),c=new Request(`https://stage-api.ututrust.com/core-api-v2/ranking?${s}`,{method:"GET",headers:o}),l=await fetch(c);if(!l.ok){if(401===l.status)throw new Error("401: Token Expired");throw new Error(`Request failed with status: ${l.status}`)}return await l.text()},xe=async(e,t)=>await Ie(e.from,e.to,t),ke=async(e,t,r)=>await Ie(e,t,r),Re=e=>`https://stage-app.utu.io/signal/get?source=${e.from}&target=${e.to}&targetType=Address&targetHumanReadable=${e.to}`,_e=e=>`https://stage-app.utu.io/signal/create?source=${e.from}&target=${e.to}&targetType=Address&targetHumanReadable=${e.to}`,Ue=(e,t,r)=>`https://stage-app.utu.io/signal/get?source=${t}&target=${r}&targetType=Domain&targetHumanReadable=${e}`,Pe=(e,t,r)=>`https://stage-app.utu.io/signal/create?source=${t}&target=${r}&targetType=Domain&targetHumanReadable=${e}`,je=()=>"https://stage-app.utu.io?source=snap",Le=()=>"https://stage-app.utu.io/connect",Me=e=>new URL(e).hostname,De=e=>Ce(e).slice(0,42).toLowerCase(),Fe=q("Image"),Be=q("Divider"),$e=()=>t(V,{children:[e(Z,{children:"UTU Trust"}),e(Fe,{src:'<?xml version="1.0" encoding="UTF-8"?>\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="148px" height="60px" viewBox="0 0 147 60" version="1.1">\n<g id="surface1">\n<path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 55.027344 23.53125 C 52.59375 23.53125 50.617188 25.503906 50.617188 27.941406 C 50.617188 28.203125 50.640625 28.460938 50.6875 28.71875 L 44.886719 30.34375 L 45.175781 31.351562 L 50.988281 29.722656 C 51.871094 31.746094 54.109375 32.808594 56.230469 32.210938 C 58.355469 31.609375 59.707031 29.53125 59.402344 27.34375 C 59.097656 25.15625 57.222656 23.53125 55.015625 23.539062 Z M 55.027344 23.53125 "/>\n<path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 53.847656 35.3125 C 52.273438 35.308594 50.859375 36.273438 50.289062 37.742188 L 45.457031 36.980469 L 45.296875 37.992188 L 50.046875 38.738281 C 50.039062 38.859375 50.039062 38.984375 50.046875 39.105469 C 50.03125 40.660156 50.957031 42.066406 52.386719 42.667969 C 53.816406 43.273438 55.46875 42.949219 56.566406 41.851562 C 57.664062 40.757812 57.996094 39.105469 57.398438 37.667969 C 56.800781 36.234375 55.398438 35.304688 53.847656 35.3125 Z M 53.847656 35.3125 "/>\n<path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 49.738281 44.699219 C 48.648438 44.703125 47.632812 45.257812 47.039062 46.171875 C 46.445312 47.085938 46.347656 48.238281 46.789062 49.238281 L 43.992188 51.53125 C 43.28125 50.570312 42.164062 49.996094 40.96875 49.980469 L 39.578125 44.765625 L 38.574219 45.039062 L 39.925781 50.132812 C 38.519531 50.515625 37.449219 51.664062 37.171875 53.097656 L 33.5625 52.96875 C 33.441406 50.195312 31.644531 47.773438 29.027344 46.863281 L 30.785156 43.617188 L 29.863281 43.109375 L 28.011719 46.5625 C 27.613281 46.492188 27.214844 46.457031 26.8125 46.457031 C 23.183594 46.460938 20.203125 49.335938 20.070312 52.96875 C 19.9375 56.601562 22.691406 59.691406 26.3125 59.964844 C 29.929688 60.238281 33.121094 57.597656 33.53125 53.988281 L 37.117188 54.128906 C 37.234375 55.621094 38.210938 56.910156 39.617188 57.421875 C 41.023438 57.933594 42.597656 57.582031 43.648438 56.511719 C 44.699219 55.445312 45.03125 53.863281 44.5 52.464844 L 47.367188 50.117188 C 48.371094 51.207031 49.984375 51.472656 51.285156 50.765625 C 52.585938 50.054688 53.238281 48.554688 52.875 47.121094 C 52.507812 45.683594 51.21875 44.679688 49.738281 44.679688 Z M 49.738281 44.699219 "/>\n<path style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 18.828125 42.035156 C 19.304688 42.238281 19.820312 42.34375 20.339844 42.34375 C 22.152344 42.347656 23.71875 41.074219 24.085938 39.296875 C 24.453125 37.519531 23.515625 35.726562 21.851562 35.015625 L 22.238281 29.96875 C 22.390625 29.96875 22.539062 29.96875 22.691406 29.96875 C 24.226562 29.972656 25.675781 29.265625 26.621094 28.058594 L 30.394531 30.421875 L 30.941406 29.535156 L 27.179688 27.171875 C 27.515625 26.484375 27.6875 25.734375 27.683594 24.96875 C 27.683594 22.582031 25.996094 20.523438 23.652344 20.0625 L 25.5 15.132812 C 27.710938 15.597656 30.011719 15.0625 31.792969 13.675781 L 34.617188 15.453125 C 33.566406 16.804688 33.277344 18.601562 33.851562 20.214844 C 34.429688 21.828125 35.789062 23.035156 37.460938 23.410156 L 36.890625 28.394531 L 37.925781 28.511719 L 38.5 23.53125 L 38.558594 23.53125 C 40.890625 23.539062 42.914062 21.925781 43.4375 19.652344 C 43.960938 17.375 42.84375 15.039062 40.742188 14.023438 L 41.828125 10.890625 C 42.957031 11.34375 44.230469 11.230469 45.265625 10.59375 L 47.835938 12.804688 C 45.722656 14.449219 45.265625 17.460938 46.789062 19.660156 C 48.316406 21.863281 51.292969 22.484375 53.570312 21.078125 C 55.847656 19.671875 56.628906 16.730469 55.351562 14.375 C 54.074219 12.023438 51.183594 11.078125 48.765625 12.226562 L 46.082031 9.9375 C 47.117188 8.8125 47.386719 7.175781 46.761719 5.78125 C 46.136719 4.382812 44.738281 3.496094 43.210938 3.519531 C 41.683594 3.546875 40.316406 4.484375 39.742188 5.902344 L 34.5625 5.996094 C 33.777344 2.425781 30.578125 -0.0898438 26.925781 -0.0078125 C 23.277344 0.0742188 20.195312 2.734375 19.570312 6.339844 C 18.949219 9.945312 20.960938 13.484375 24.375 14.789062 L 22.429688 20.007812 C 19.777344 20.148438 17.699219 22.339844 17.695312 25 C 17.695312 25.167969 17.695312 25.332031 17.71875 25.503906 L 13.574219 26.878906 C 12.121094 25.132812 9.96875 24.125 7.703125 24.128906 L 7.554688 24.128906 L 7.226562 21.050781 C 8.71875 20.648438 9.820312 19.386719 10.019531 17.851562 L 12.4375 17.800781 C 12.671875 19.488281 14.171875 20.707031 15.867188 20.585938 C 17.566406 20.46875 18.878906 19.050781 18.871094 17.347656 C 18.867188 15.640625 17.542969 14.234375 15.847656 14.125 L 15.574219 11.566406 C 17.144531 10.992188 18.019531 9.3125 17.589844 7.695312 C 17.160156 6.078125 15.570312 5.054688 13.921875 5.332031 C 12.273438 5.613281 11.113281 7.105469 11.238281 8.773438 C 11.367188 10.441406 12.746094 11.738281 14.414062 11.765625 L 14.679688 14.285156 C 13.582031 14.628906 12.75 15.523438 12.488281 16.640625 L 9.96875 16.699219 C 9.617188 14.722656 7.804688 13.355469 5.8125 13.5625 C 3.820312 13.773438 2.328125 15.484375 2.394531 17.492188 C 2.457031 19.496094 4.058594 21.109375 6.058594 21.1875 L 6.382812 24.214844 C 2.40625 24.917969 -0.335938 28.605469 0.125 32.621094 C 0.589844 36.640625 4.101562 39.605469 8.132812 39.378906 C 12.167969 39.15625 15.328125 35.828125 15.347656 31.78125 C 15.351562 30.410156 14.980469 29.0625 14.28125 27.886719 L 17.976562 26.664062 C 18.484375 28.117188 19.632812 29.253906 21.085938 29.746094 L 20.710938 34.722656 C 20.597656 34.722656 20.476562 34.722656 20.359375 34.722656 C 18.75 34.71875 17.3125 35.726562 16.769531 37.242188 C 16.222656 38.757812 16.683594 40.453125 17.921875 41.480469 L 15.726562 43.519531 C 13.527344 41.738281 10.320312 42 8.4375 44.113281 C 6.554688 46.222656 6.652344 49.445312 8.667969 51.433594 C 10.679688 53.421875 13.894531 53.480469 15.980469 51.5625 C 18.0625 49.648438 18.277344 46.433594 16.472656 44.257812 Z M 39.480469 6.945312 C 39.472656 7.082031 39.472656 7.214844 39.480469 7.351562 C 39.480469 8.519531 40.011719 9.625 40.929688 10.351562 L 39.761719 13.671875 C 39.371094 13.574219 38.96875 13.523438 38.566406 13.523438 C 37.398438 13.523438 36.265625 13.933594 35.367188 14.683594 L 32.609375 12.949219 C 33.980469 11.527344 34.746094 9.625 34.746094 7.648438 C 34.746094 7.441406 34.746094 7.238281 34.746094 7.039062 Z M 39.480469 6.945312 "/>\n<path style=" stroke:none;fill-rule:evenodd;fill:rgb(100%,86.666667%,20%);fill-opacity:1;" d="M 37.101562 25.882812 C 42.941406 25.882812 47.679688 30.625 47.679688 36.476562 C 47.679688 42.328125 42.941406 47.070312 37.101562 47.070312 C 31.261719 47.070312 26.523438 42.328125 26.523438 36.476562 C 26.523438 30.625 31.261719 25.882812 37.101562 25.882812 Z M 37.101562 25.882812 "/>\n<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 75.375 32.007812 L 75.375 19.394531 C 75.363281 18.621094 75.671875 17.875 76.234375 17.339844 C 76.777344 16.785156 77.527344 16.480469 78.300781 16.496094 C 79.074219 16.492188 79.816406 16.792969 80.359375 17.339844 C 80.90625 17.886719 81.210938 18.628906 81.203125 19.402344 L 81.203125 32.011719 C 81.140625 33.277344 81.515625 34.527344 82.265625 35.542969 C 82.980469 36.433594 84.25 36.878906 86.074219 36.878906 C 89.273438 36.878906 90.875 35.261719 90.875 32.019531 L 90.875 19.40625 C 90.859375 18.628906 91.167969 17.878906 91.730469 17.34375 C 92.277344 16.792969 93.023438 16.488281 93.796875 16.5 C 94.566406 16.492188 95.308594 16.796875 95.855469 17.339844 C 96.398438 17.886719 96.703125 18.628906 96.695312 19.402344 L 96.695312 32.011719 C 96.714844 33.3125 96.558594 34.609375 96.234375 35.867188 C 95.914062 37.015625 95.378906 38.09375 94.65625 39.042969 C 93.804688 40.121094 92.660156 40.925781 91.363281 41.367188 C 89.664062 41.949219 87.871094 42.226562 86.074219 42.183594 C 84.582031 42.199219 83.097656 42.011719 81.65625 41.617188 C 80.546875 41.324219 79.5 40.824219 78.574219 40.140625 C 77.789062 39.523438 77.144531 38.75 76.675781 37.871094 C 76.203125 37.007812 75.867188 36.082031 75.667969 35.121094 C 75.472656 34.09375 75.375 33.050781 75.375 32.007812 Z M 75.375 32.007812 "/>\n<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 104.75 21.136719 C 104.289062 20.671875 104.03125 20.039062 104.039062 19.382812 C 104.035156 18.734375 104.292969 18.113281 104.75 17.65625 C 105.195312 17.183594 105.820312 16.921875 106.46875 16.929688 L 107.703125 16.929688 L 107.703125 12.441406 C 107.695312 11.6875 108.007812 10.964844 108.5625 10.457031 C 109.09375 9.914062 109.820312 9.613281 110.578125 9.621094 C 111.335938 9.605469 112.066406 9.910156 112.59375 10.457031 C 113.140625 10.96875 113.445312 11.691406 113.4375 12.441406 L 113.4375 16.929688 L 115.863281 16.929688 C 116.507812 16.921875 117.128906 17.183594 117.574219 17.65625 C 118.039062 18.117188 118.296875 18.746094 118.289062 19.402344 C 118.296875 20.058594 118.039062 20.691406 117.574219 21.15625 C 117.132812 21.632812 116.511719 21.902344 115.863281 21.894531 L 113.4375 21.894531 L 113.4375 34.957031 C 113.421875 35.503906 113.652344 36.023438 114.070312 36.375 C 114.460938 36.722656 114.96875 36.917969 115.496094 36.917969 C 116.164062 36.90625 116.8125 37.167969 117.289062 37.640625 C 117.761719 38.105469 118.03125 38.742188 118.03125 39.40625 C 118.03125 40.074219 117.761719 40.710938 117.289062 41.171875 C 116.804688 41.640625 116.152344 41.890625 115.480469 41.871094 C 113.105469 41.871094 111.214844 41.195312 109.8125 39.851562 C 108.398438 38.472656 107.628906 36.558594 107.703125 34.582031 L 107.703125 21.875 L 106.46875 21.875 C 105.816406 21.878906 105.195312 21.613281 104.75 21.136719 Z M 104.75 21.136719 "/>\n<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 125.617188 32.007812 L 125.617188 19.394531 C 125.605469 18.621094 125.914062 17.875 126.472656 17.339844 C 127.304688 16.5 128.558594 16.25 129.648438 16.703125 C 130.738281 17.15625 131.445312 18.222656 131.441406 19.402344 L 131.441406 32.011719 C 131.378906 33.277344 131.753906 34.527344 132.507812 35.542969 C 133.21875 36.433594 134.488281 36.878906 136.316406 36.878906 C 139.515625 36.878906 141.113281 35.261719 141.109375 32.019531 L 141.109375 19.40625 C 141.097656 18.628906 141.40625 17.882812 141.96875 17.34375 C 142.515625 16.792969 143.261719 16.488281 144.039062 16.5 C 144.808594 16.496094 145.546875 16.800781 146.09375 17.34375 C 146.636719 17.890625 146.941406 18.628906 146.9375 19.402344 L 146.9375 32.011719 C 146.957031 33.3125 146.800781 34.609375 146.476562 35.867188 C 146.15625 37.015625 145.617188 38.097656 144.894531 39.042969 C 144.042969 40.125 142.898438 40.929688 141.59375 41.367188 C 139.894531 41.949219 138.105469 42.226562 136.3125 42.183594 C 134.8125 42.207031 133.316406 42.023438 131.867188 41.632812 C 130.757812 41.339844 129.710938 40.839844 128.785156 40.15625 C 128.003906 39.539062 127.355469 38.765625 126.886719 37.882812 C 126.417969 37.023438 126.078125 36.097656 125.878906 35.136719 C 125.691406 34.105469 125.601562 33.054688 125.617188 32.007812 Z M 125.617188 32.007812 "/>\n</g>\n</svg>\n'}),e(Be,{})]});var ze;!function(e){e.FurtherHelpBtn="btnHomePage_FurtherHelp"}(ze||(ze={}));const We=()=>t(V,{children:[e($e,{}),e(X,{children:"UTU Trust shows you what your friends and network think about things you find on the web, just at the critical moment when you’re about to interact with them. We call this information “signal.” Signals help keep you safe when connecting your wallet to a new DAPP, or sending tokens to a new address, or even buying a coin on an exchange."}),e(X,{children:'When you are about to confirm a transaction in MetaMask you will see a tab for "Insights from UTU Trust." We’ll show you a summary of any available signal for the “TO” address, D-app, or Token and a link to see the details.'}),e(Q,{name:ze.FurtherHelpBtn,children:"Next →"})]});var Ge;!function(e){e.HomePageBtn="btnFurtherInfo_HomePage"}(Ge||(Ge={}));const He=async()=>{const r=await snap.request({method:"snap_manageState",params:{operation:"get"}});console.log("ZZ accessTokenRecord",r);let n="production";r&&(n=r.env);const o=Le();return t(V,"production"===n?{children:[e($e,{}),t(X,{children:["We only show you signal from wallets you’ve interacted with and from folks you follow or are connected with on social media. ",e(Y,{href:o,children:"Connect your Socials"})," to UTU and earn 10k UTT for each (our reputation token), which you can use to stake on things you find on the web."]})]}:{children:[e($e,{}),t(X,{children:["We only show you signal from wallets you’ve interacted with and from folks you follow or are connected with on social media. ",e(Y,{href:o,children:"Connect your Socials"})," to UTU and earn 10k UTT for each (our reputation token), which you can use to stake on things you find on the web."]}),t(X,{children:["In this testing version, you’ll need to purchase a membership via Unlock Protocol for a small fee in $UTU Mock to see signal. You can",e(Y,{href:"https://docs.google.com/forms/d/e/1FAIpQLSdqmuNdnRG6CefOYZHk9MnWm23e4q2qs9ZGynOqMwGrl6kJRw/viewform",children:"Request $UTU Mock here"}),"."]}),e(Q,{name:Ge.HomePageBtn,children:"Back to Home →"})]})},Je="BB",Ke=async()=>(console.log(`${Je} onHomePage`),{content:e(We,{})}),qe=async({id:t,event:r,context:n})=>{if(r.type===B.ButtonClickEvent)switch(r.name){default:case ze.FurtherHelpBtn:await(async t=>{await snap.request({method:"snap_updateInterface",params:{id:t,ui:e(He,{})}})})(t);break;case Ge.HomePageBtn:await(async t=>{await snap.request({method:"snap_updateInterface",params:{id:t,ui:e(We,{})}})})(t)}},Ve=async({request:r})=>{if("authorizeUTUSnap"===r.method)return await(async r=>{console.log("Inside authorizeUTUSnap");const{token:n,env:o}=r.params;return await snap.request({method:"snap_manageState",params:{operation:"update",newState:{token:n,env:o}}}),console.log(`${Je} saved utu details...`),await snap.request({method:"snap_dialog",params:{type:"alert",content:t(V,{children:[e(Z,{children:"UTU Trust Linked"}),e(X,{children:"You have now connected your snap to the UTU web3 application."}),e(X,{children:"Behind the scenes a JWT security token has been sent from the UTU app to the Snap. The snap uses the security token to access the UTU backend so it can see if there is any signal available. Signal is available when about to sign or make a transaction in MetaMask."}),e(Q,{name:Ge.HomePageBtn,children:"Home →"})]})}})})(r);throw new Error("Method not found.")},Ze=async()=>{console.log(`${Je} onInstall`);const r=je();await snap.request({method:"snap_dialog",params:{type:"alert",content:t(V,{children:[e(Z,{children:"Thank you for installing the UTU Trust Snap"}),e(X,{children:"In order to enable the Snap you need to Connect to the Utu App."}),e(X,{children:"Click on the link and when you arrive at Utu App connect with your wallet. The UTU app will then connect back to this snap and initialise it with credentials to talk to the UTU Trust backend."}),e(Y,{href:r,children:"Go To Utu App to Connect"})]})}})},Xe=()=>{const r=je();return{content:t(V,{children:[e(Z,{children:"Transaction Trust Insights Snap"}),e(X,{children:"Looks like you have not yet connected your wallet on UTU App."}),e(X,{children:"In order to enable the Snap you need to connect to Utu App."}),e(X,{children:"Click on the link and when you arrive at Utu App connect with your wallet. The UTU app will then connect back to this snap and initialise it with credentials to talk to the UTU Trust Network."}),e(Y,{href:r,children:"Go To Utu App to connect"})]})}},Qe=(r,n)=>r?(r=>{const n=Re(r),o=_e(r);return console.log(`${Je} getSignalLink`,n),console.log(`${Je} giveSignalLink`,o),{content:t(V,{children:[e(Z,{children:"Summary of Signal from your Network:"}),t(X,{children:["See the signal here: ",e(Y,{href:n,children:"See Details"})]}),t(X,{children:['If you have something to say about the "to address", you can ',e(Y,{href:o,children:"Give Signal"})," to help keep your people safe and find things they love."]})]})}})(n):(r=>{const n=_e(r);return{content:t(V,{children:[e(Z,{children:"Insights from UTU Trust"}),t(X,{children:['Nobody in your network has left signal on this "to address", ',r.to,", yet. Be the first to ",e(Y,{href:n,children:"Give Signal"})," on it and help keep your people safe and find things they love."]})]})}})(n),Ye=(r,n,o,i)=>r?((r,n,o)=>{const i=Ue(r,n,o),a=Pe(r,n,o);return console.log(`${Je} getSignatureSignalLink`,i),console.log(`${Je} giveSignatureSignalLink`,a),{content:t(V,{children:[e(Z,{children:"Summary of Signal from your Network:"}),t(X,{children:["See the signal here: ",e(Y,{href:i,children:"See Details"})]}),t(X,{children:["If you have something to say about the domain, ",r,", you can ",e(Y,{href:a,children:"Give Signal"})," to help keep your people safe and find things they love."]})]})}})(n,o,i):((r,n,o)=>{const i=Pe(r,n,o);return{content:t(V,{children:[e(Z,{children:"Insights from UTU Trust"}),t(X,{children:["Nobody in your network has left signal on this domain, ",r,", yet. Be the first to ",e(Y,{href:i,children:"Give Signal"})," on it and help keep your people safe and find things they love."]})]})}})(n,o,i),et=async({transaction:r})=>{if(console.log(`${Je} transaction`,JSON.stringify(r)),r.to){console.log(`${Je} transaction.to`,r.to);const o=await snap.request({method:"snap_manageState",params:{operation:"get"}});if(console.log(`${Je} accessTokenRecord`,o),o){const i=o.token;o.env;try{const e=await(async(e,t)=>{const r=await xe(e,t),n=JSON.parse(r),{status:o,result:i}=n;console.log(`${Je} jsonObject`,n),console.log(`${Je} status`,o),console.log(`${Je} result`,JSON.stringify(i));let a=null;"success"===o&&i.length>0&&i[0].summaryText&&(a=`Summary of available Signal: ${i[0].summaryText}`);return a})(r,i);return console.log(`${Je} insights`,e),Qe(e,r)}catch(r){return console.error(`${Je} error`,r),r instanceof Error&&r.message.startsWith("401")?(()=>{const r=je();return{content:t(V,{children:[e(Z,{children:"Credentials Expired"}),e(X,{children:"The credentials to connect to the UTU Trust Network have expired."}),e(X,{children:"Click on the link and when you arrive at Utu App connect with your wallet. The UTU app will then connect back to this snap and re-initialise it with up to date credentials so the snap can talk to the UTU Trust Network."}),e(Y,{href:r,children:"Go To Utu App to Connect"})]})}})():(n="Network error retrieving Insight",{content:t(V,{children:[e(Z,{children:"Transaction Trust Insights Snap"}),t(X,{children:["Error: ",n]})]})})}}return Xe()}var n;return{content:t(V,{children:[e(Z,{children:"Transaction Trust Insights Snap"}),e(X,{children:"There is no transaction to address so no insights can be given."})]})}},tt=async({signature:r,signatureOrigin:n})=>{const o=JSON.stringify(r);if(console.log(`${Je} signatureJson: ${o}`),!n)return t(V,{children:[e(Z,{children:"Signature Trust Insights Snap"}),e(X,{children:"There is no signature origin so no insights can be given."})]});console.log(`${Je} signatureOrigin: ${n}`);const i=Me(n),a=De(i),s=r.from,c=await snap.request({method:"snap_manageState",params:{operation:"get"}});if(console.log(`${Je} accessTokenRecord`,c),c){const e=c.token,t=await(async(e,t,r)=>{const n=await ke(e,t,r),o=JSON.parse(n),{status:i,result:a}=o;console.log(`${Je} jsonObject`,o),console.log(`${Je} status`,i),console.log(`${Je} result`,JSON.stringify(a));let s=null;"success"===i&&a.length>0&&a[0].summaryText&&(s=`Summary of available Signal: ${a[0].summaryText}`);return s})(s,a,e);return Ye(t,i,s,a)}return Xe()}})(),module.exports=n})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ututrust/utu-metamask-snap",
3
- "version": "1.10.9",
3
+ "version": "1.10.11",
4
4
  "description": "UTU Trust MetaMask Snap",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.10.9",
2
+ "version": "1.10.11",
3
3
  "description": "Snap giving UTU Trust!",
4
4
  "proposedName": "UTU Trust",
5
5
  "repository": {
@@ -7,7 +7,7 @@
7
7
  "url": "https://gitlab.com/ututrust/utu-metamask-snap.git"
8
8
  },
9
9
  "source": {
10
- "shasum": "neO9pHx65mNcK3h6cjvu/Ejvw1H3rcJ7gH9aE1Lxtk4=",
10
+ "shasum": "cj2SCQgj6RZYGRYjacjAOkaf7u3UkhwoSQ8afYbiK3Q=",
11
11
  "location": {
12
12
  "npm": {
13
13
  "filePath": "dist/bundle.js",
@@ -33,6 +33,6 @@
33
33
  "allowSignatureOrigin": true
34
34
  }
35
35
  },
36
- "platformVersion": "6.19.0",
36
+ "platformVersion": "6.24.0",
37
37
  "manifestVersion": "0.1"
38
38
  }