LavaPack.loadBundle([[5849,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;
/**
   * @license
   * Copyright 2009 The Closure Library Authors
   * Copyright 2020 Daniel Wirtz / The long.js Authors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   *
   * SPDX-License-Identifier: Apache-2.0
   */
var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function r(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function n(e){return!0===(e&&e.__isLong__)}function i(e){var t=Math.clz32(e&-e);return e?31-t:t}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=n;var s={},o={};function a(e,t){var r,n,i;return t?(i=0<=(e>>>=0)&&e<256)&&(n=o[e])?n:(r=c(e,0,!0),i&&(o[e]=r),r):(i=-128<=(e|=0)&&e<128)&&(n=s[e])?n:(r=c(e,e<0?-1:0,!1),i&&(s[e]=r),r)}function u(e,t){if(isNaN(e))return t?g:b;if(t){if(e<0)return g;if(e>=f)return T}else{if(e<=-m)return O;if(e+1>=m)return v}return e<0?u(-e,t).neg():c(e%p|0,e/p|0,t)}function c(e,t,n){return new r(e,t,n)}r.fromInt=a,r.fromNumber=u,r.fromBits=c;var l=Math.pow;function d(e,t,r){if(0===e.length)throw Error("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?g:b;if((r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return d(e.substring(1),t,r).neg();for(var i=u(l(r,8)),s=b,o=0;o<e.length;o+=8){var a=Math.min(8,e.length-o),c=parseInt(e.substring(o,o+a),r);if(a<8){var h=u(l(r,a));s=s.mul(h).add(u(c))}else s=(s=s.mul(i)).add(u(c))}return s.unsigned=t,s}function h(e,t){return"number"==typeof e?u(e,t):"string"==typeof e?d(e,t):c(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=d,r.fromValue=h;var p=4294967296,f=p*p,m=f/2,y=a(1<<24),b=a(0);r.ZERO=b;var g=a(0,!0);r.UZERO=g;var w=a(1);r.ONE=w;var _=a(1,!0);r.UONE=_;var x=a(-1);r.NEG_ONE=x;var v=c(-1,2147483647,!1);r.MAX_VALUE=v;var T=c(-1,-1,!0);r.MAX_UNSIGNED_VALUE=T;var O=c(0,-2147483648,!1);r.MIN_VALUE=O;var E=r.prototype;E.toInt=function(){return this.unsigned?this.low>>>0:this.low},E.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},E.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(O)){var t=u(e),r=this.div(t),n=r.mul(t).sub(this);return r.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=u(l(e,6),this.unsigned),s=this,o="";;){var a=s.div(i),c=(s.sub(a.mul(i)).toInt()>>>0).toString(e);if((s=a).isZero())return c+o;for(;c.length<6;)c="0"+c;o=""+c+o}},E.getHighBits=function(){return this.high},E.getHighBitsUnsigned=function(){return this.high>>>0},E.getLowBits=function(){return this.low},E.getLowBitsUnsigned=function(){return this.low>>>0},E.getNumBitsAbs=function(){if(this.isNegative())return this.eq(O)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},E.isZero=function(){return 0===this.high&&0===this.low},E.eqz=E.isZero,E.isNegative=function(){return!this.unsigned&&this.high<0},E.isPositive=function(){return this.unsigned||this.high>=0},E.isOdd=function(){return!(1&~this.low)},E.isEven=function(){return!(1&this.low)},E.equals=function(e){return n(e)||(e=h(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},E.eq=E.equals,E.notEquals=function(e){return!this.eq(e)},E.neq=E.notEquals,E.ne=E.notEquals,E.lessThan=function(e){return this.comp(e)<0},E.lt=E.lessThan,E.lessThanOrEqual=function(e){return this.comp(e)<=0},E.lte=E.lessThanOrEqual,E.le=E.lessThanOrEqual,E.greaterThan=function(e){return this.comp(e)>0},E.gt=E.greaterThan,E.greaterThanOrEqual=function(e){return this.comp(e)>=0},E.gte=E.greaterThanOrEqual,E.ge=E.greaterThanOrEqual,E.compare=function(e){if(n(e)||(e=h(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},E.comp=E.compare,E.negate=function(){return!this.unsigned&&this.eq(O)?O:this.not().add(w)},E.neg=E.negate,E.add=function(e){n(e)||(e=h(e));var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,s=65535&this.low,o=e.high>>>16,a=65535&e.high,u=e.low>>>16,l=0,d=0,p=0,f=0;return p+=(f+=s+(65535&e.low))>>>16,d+=(p+=i+u)>>>16,l+=(d+=r+a)>>>16,l+=t+o,c((p&=65535)<<16|(f&=65535),(l&=65535)<<16|(d&=65535),this.unsigned)},E.subtract=function(e){return n(e)||(e=h(e)),this.add(e.neg())},E.sub=E.subtract,E.multiply=function(e){if(this.isZero())return this;if(n(e)||(e=h(e)),t)return c(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?g:b;if(this.eq(O))return e.isOdd()?O:b;if(e.eq(O))return this.isOdd()?O:b;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(y)&&e.lt(y))return u(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,i=65535&this.high,s=this.low>>>16,o=65535&this.low,a=e.high>>>16,l=65535&e.high,d=e.low>>>16,p=65535&e.low,f=0,m=0,w=0,_=0;return w+=(_+=o*p)>>>16,m+=(w+=s*p)>>>16,w&=65535,m+=(w+=o*d)>>>16,f+=(m+=i*p)>>>16,m&=65535,f+=(m+=s*d)>>>16,m&=65535,f+=(m+=o*l)>>>16,f+=r*p+i*d+s*l+o*a,c((w&=65535)<<16|(_&=65535),(f&=65535)<<16|(m&=65535),this.unsigned)},E.mul=E.multiply,E.divide=function(e){if(n(e)||(e=h(e)),e.isZero())throw Error("division by zero");var r,i,s;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?g:b;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return g;if(e.gt(this.shru(1)))return _;s=g}else{if(this.eq(O))return e.eq(w)||e.eq(x)?O:e.eq(O)?w:(r=this.shr(1).div(e).shl(1)).eq(b)?e.isNegative()?w:x:(i=this.sub(e.mul(r)),s=r.add(i.div(e)));if(e.eq(O))return this.unsigned?g:b;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();s=b}for(i=this;i.gte(e);){r=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(r)/Math.LN2),a=o<=48?1:l(2,o-48),d=u(r),p=d.mul(e);p.isNegative()||p.gt(i);)p=(d=u(r-=a,this.unsigned)).mul(e);d.isZero()&&(d=w),s=s.add(d),i=i.sub(p)}return s},E.div=E.divide,E.modulo=function(e){return n(e)||(e=h(e)),t?c((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},E.mod=E.modulo,E.rem=E.modulo,E.not=function(){return c(~this.low,~this.high,this.unsigned)},E.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},E.clz=E.countLeadingZeros,E.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},E.ctz=E.countTrailingZeros,E.and=function(e){return n(e)||(e=h(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},E.or=function(e){return n(e)||(e=h(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},E.xor=function(e){return n(e)||(e=h(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},E.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):c(0,this.low<<e-32,this.unsigned)},E.shl=E.shiftLeft,E.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},E.shr=E.shiftRight,E.shiftRightUnsigned=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):c(32===e?this.high:this.high>>>e-32,0,this.unsigned)},E.shru=E.shiftRightUnsigned,E.shr_u=E.shiftRightUnsigned,E.rotateLeft=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?c(this.high,this.low,this.unsigned):e<32?(t=32-e,c(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),c(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},E.rotl=E.rotateLeft,E.rotateRight=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?c(this.high,this.low,this.unsigned):e<32?(t=32-e,c(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),c(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},E.rotr=E.rotateRight,E.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},E.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},E.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},E.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},E.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};var M=r;return e.default=M,"default"in e?e.default:e}({});"function"==typeof define&&define.amd?define([],function(){return n}):"object"==typeof t&&"object"==typeof r&&(t.exports=n)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>long",file:"node_modules/@trezor/protobuf/node_modules/long/umd/index.js"}],[5850,{"@sinclair/typebox":5861},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ArrayBufferBuilder=void 0;const n=e("@sinclair/typebox");n.TypeRegistry.Set("ArrayBuffer",(e,t)=>t instanceof ArrayBuffer);class i extends n.JavaScriptTypeBuilder{ArrayBuffer(e){return(0,n.CreateType)({[n.Kind]:"ArrayBuffer",type:"ArrayBuffer"},e)}}r.ArrayBufferBuilder=i}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/custom-types/array-buffer.js"}],[5851,{"@sinclair/typebox":5861,buffer:6542},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.BufferBuilder=void 0;const n=e("@sinclair/typebox");n.TypeRegistry.Set("Buffer",(e,r)=>r instanceof t);class i extends n.JavaScriptTypeBuilder{Buffer(e){return(0,n.CreateType)({[n.Kind]:"Buffer",type:"Buffer"},e)}}r.BufferBuilder=i}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/custom-types/buffer.js"}],[5852,{"./array-buffer":5850,"./buffer":5851,"./keyof-enum":5853,"./uint":5854},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UintBuilder=r.KeyofEnumBuilder=r.BufferBuilder=r.ArrayBufferBuilder=void 0;var n=e("./array-buffer");Object.defineProperty(r,"ArrayBufferBuilder",{enumerable:!0,get:function(){return n.ArrayBufferBuilder}});var i=e("./buffer");Object.defineProperty(r,"BufferBuilder",{enumerable:!0,get:function(){return i.BufferBuilder}});var s=e("./keyof-enum");Object.defineProperty(r,"KeyofEnumBuilder",{enumerable:!0,get:function(){return s.KeyofEnumBuilder}});var o=e("./uint");Object.defineProperty(r,"UintBuilder",{enumerable:!0,get:function(){return o.UintBuilder}})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/custom-types/index.js"}],[5853,{"@sinclair/typebox":5861},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyofEnumBuilder=void 0;const n=e("@sinclair/typebox");class i extends n.JavaScriptTypeBuilder{KeyOfEnum(e,t){const r=Object.keys(e).map(e=>this.Literal(e));return this.Union(r,{...t,[n.Hint]:"KeyOfEnum"})}Enum(e,t){const r=Object.entries(e).filter(([e,t])=>"string"==typeof e||!isNaN(e)).map(([e,t])=>this.Literal(t,{$id:e}));return this.Union(r,{...t,[n.Hint]:"Enum"})}}r.KeyofEnumBuilder=i}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/custom-types/keyof-enum.js"}],[5854,{"@sinclair/typebox":5861},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UintBuilder=void 0;const n=e("@sinclair/typebox");n.TypeRegistry.Set("Uint",(e,t)=>("string"==typeof t||"number"==typeof t)&&!("number"==typeof t&&!Number.isSafeInteger(t)||!/^(?:[1-9]\d*|\d)$/.test(t.toString().replace(/^-/,e.allowNegative?"":"-"))));class i extends n.JavaScriptTypeBuilder{Uint(e){return(0,n.CreateType)({[n.Kind]:"Uint",type:"Uint"},e)}}r.UintBuilder=i}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/custom-types/uint.js"}],[5855,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidParameter=void 0;class n extends Error{field;type;constructor(e,t,r,n){let i="Invalid parameter";i+=` "${t.substring(1)}"`,i+=` (= ${JSON.stringify(n)})`,i+=`: ${e.replace(/'/g,'"')}`,super(i),this.name="InvalidParameter",this.field=t,this.type=r}}r.InvalidParameter=n}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/errors.js"}],[5856,{"./custom-types":5852,"./errors":5855,"./utils":5857,"@sinclair/typebox":5861,"@sinclair/typebox/errors":5860,"ts-mixer":8337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CloneType=r.Optional=r.Type=void 0,r.Validate=l,r.Assert=h,r.AssertWeak=function(e,t){try{h(e,t)}catch(e){if(!(e instanceof a.InvalidParameter))throw e;if(e.type===i.ValueErrorType.ObjectRequiredProperty)throw e;console.warn("Method params validation failed",e)}};const n=e("@sinclair/typebox");Object.defineProperty(r,"CloneType",{enumerable:!0,get:function(){return n.CloneType}}),Object.defineProperty(r,"Optional",{enumerable:!0,get:function(){return n.Optional}});const i=e("@sinclair/typebox/errors"),s=e("ts-mixer"),o=e("./custom-types"),a=e("./errors"),u=e("./utils");class c extends((0,s.Mixin)(n.JavaScriptTypeBuilder,o.ArrayBufferBuilder,o.BufferBuilder,o.KeyofEnumBuilder,o.UintBuilder)){}function l(e,t){try{return h(e,t),!0}catch{return!1}}function d(e){const t=e.value,r=e.schema.anyOf;if(!r.find(e=>l(e,t))){const s=r.filter(e=>"Object"===e[n.Kind]&&!Object.entries(e.properties).find(([e,r])=>r.const&&r.const!==t[e]));if(1===s.length)h(s[0],t);else if(s.length>1){const e=s.map(e=>({schema:e,errors:[...(0,i.Errors)(e,t)]})).sort((e,t)=>e.errors.length-t.errors.length),[r]=e;h(r.schema,t)}throw new a.InvalidParameter(e.message,e.path,e.type,e.value)}}function h(e,t){const r=[...(0,i.Errors)(e,t)];let[s]=r;for(;s;){if("/"===s.path&&r.length>1);else if(null==s.value&&"Optional"===s.schema[n.OptionalKind]);else if(s.type===i.ValueErrorType.Union)d(s);else{if(s.type!==i.ValueErrorType.Number||"string"!=typeof s.value)throw new a.InvalidParameter(s.message,s.path,s.type,s.value);{const e=s.value,r=Number(e);if(Number.isNaN(r)||e!==r.toString())throw new a.InvalidParameter(s.message,s.path,s.type,s.value);{const e=s.path.slice(1).split("/");(0,u.setDeepValue)(t,e,r)}}}r.shift(),[s]=r}}r.Type=new c}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/index.js"}],[5857,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.setDeepValue=function e(t,[r,...n],i){n.length?(r in t||(t[r]={}),e(t[r],n,i)):t[r]=i},r.getDeepValue=function e(t,[r,...n]){return n.length?r in t?e(t[r],n):undefined:t[r]}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils",file:"node_modules/@trezor/schema-utils/lib/utils.js"}],[5858,{"../system/index":5862,"../type/error/index":5900,"../type/extends/extends-undefined":5908,"../type/keyof/index":5946,"../type/never/index":5957,"../type/registry/index":6001,"../type/symbols/index":6023,"../value/check/index":6057,"../value/deref/index":6059,"../value/guard/index":6061,"../value/hash/index":6063,"./function":5859},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueErrorIterator=r.ValueErrorsUnknownTypeError=r.ValueErrorType=void 0,r.Errors=function(...e){const t=3===e.length?x(e[0],e[1],"",e[2]):x(e[0],[],"",e[1]);return new w(t)};const n=e("../system/index"),i=e("../type/keyof/index"),s=e("../type/registry/index"),o=e("../type/extends/extends-undefined"),a=e("./function"),u=e("../type/error/index"),c=e("../value/deref/index"),l=e("../value/hash/index"),d=e("../value/check/index"),h=e("../type/symbols/index"),p=e("../type/never/index"),f=e("../value/guard/index");var m;!function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"}(m||(r.ValueErrorType=m={}));class y extends u.TypeBoxError{constructor(e){super("Unknown type"),this.schema=e}}function b(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function g(e){return e!==undefined}r.ValueErrorsUnknownTypeError=y;class w{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){const e=this.iterator.next();return e.done?undefined:e.value}}function _(e,t,r,n,i=[]){return{type:e,schema:t,path:r,value:n,message:(0,a.GetErrorFunction)()({errorType:e,path:r,schema:t,value:n,errors:i}),errors:i}}function*x(e,t,r,a){const u=g(e.$id)?[...t,e]:t,v=e;switch(v[h.Kind]){case"Any":case"Unknown":return yield*function*(){}();case"Array":return yield*function*(e,t,r,n){if(!(0,f.IsArray)(n))return yield _(m.Array,e,r,n);!g(e.minItems)||n.length>=e.minItems||(yield _(m.ArrayMinItems,e,r,n)),!g(e.maxItems)||n.length<=e.maxItems||(yield _(m.ArrayMaxItems,e,r,n));for(let i=0;i<n.length;i++)yield*x(e.items,t,`${r}/${i}`,n[i]);if(!0!==e.uniqueItems||function(){const e=new Set;for(const t of n){const r=(0,l.Hash)(t);if(e.has(r))return!1;e.add(r)}return!0}()||(yield _(m.ArrayUniqueItems,e,r,n)),!(g(e.contains)||g(e.minContains)||g(e.maxContains)))return;const i=g(e.contains)?e.contains:(0,p.Never)(),s=n.reduce((e,n,s)=>!0===x(i,t,`${r}${s}`,n).next().done?e+1:e,0);0===s&&(yield _(m.ArrayContains,e,r,n)),(0,f.IsNumber)(e.minContains)&&s<e.minContains&&(yield _(m.ArrayMinContains,e,r,n)),(0,f.IsNumber)(e.maxContains)&&s>e.maxContains&&(yield _(m.ArrayMaxContains,e,r,n))}(v,u,r,a);case"AsyncIterator":return yield*function*(e,t,r,n){(0,f.IsAsyncIterator)(n)||(yield _(m.AsyncIterator,e,r,n))}(v,0,r,a);case"BigInt":return yield*function*(e,t,r,n){if(!(0,f.IsBigInt)(n))return yield _(m.BigInt,e,r,n);!g(e.exclusiveMaximum)||n<e.exclusiveMaximum||(yield _(m.BigIntExclusiveMaximum,e,r,n)),!g(e.exclusiveMinimum)||n>e.exclusiveMinimum||(yield _(m.BigIntExclusiveMinimum,e,r,n)),!g(e.maximum)||n<=e.maximum||(yield _(m.BigIntMaximum,e,r,n)),!g(e.minimum)||n>=e.minimum||(yield _(m.BigIntMinimum,e,r,n)),g(e.multipleOf)&&n%e.multipleOf!==BigInt(0)&&(yield _(m.BigIntMultipleOf,e,r,n))}(v,0,r,a);case"Boolean":return yield*function*(e,t,r,n){(0,f.IsBoolean)(n)||(yield _(m.Boolean,e,r,n))}(v,0,r,a);case"Constructor":return yield*function*(e,t,r,n){yield*x(e.returns,t,r,n.prototype)}(v,u,r,a);case"Date":return yield*function*(e,t,r,n){if(!(0,f.IsDate)(n))return yield _(m.Date,e,r,n);!g(e.exclusiveMaximumTimestamp)||n.getTime()<e.exclusiveMaximumTimestamp||(yield _(m.DateExclusiveMaximumTimestamp,e,r,n)),!g(e.exclusiveMinimumTimestamp)||n.getTime()>e.exclusiveMinimumTimestamp||(yield _(m.DateExclusiveMinimumTimestamp,e,r,n)),!g(e.maximumTimestamp)||n.getTime()<=e.maximumTimestamp||(yield _(m.DateMaximumTimestamp,e,r,n)),!g(e.minimumTimestamp)||n.getTime()>=e.minimumTimestamp||(yield _(m.DateMinimumTimestamp,e,r,n)),g(e.multipleOfTimestamp)&&n.getTime()%e.multipleOfTimestamp!==0&&(yield _(m.DateMultipleOfTimestamp,e,r,n))}(v,0,r,a);case"Function":return yield*function*(e,t,r,n){(0,f.IsFunction)(n)||(yield _(m.Function,e,r,n))}(v,0,r,a);case"Integer":return yield*function*(e,t,r,n){if(!(0,f.IsInteger)(n))return yield _(m.Integer,e,r,n);!g(e.exclusiveMaximum)||n<e.exclusiveMaximum||(yield _(m.IntegerExclusiveMaximum,e,r,n)),!g(e.exclusiveMinimum)||n>e.exclusiveMinimum||(yield _(m.IntegerExclusiveMinimum,e,r,n)),!g(e.maximum)||n<=e.maximum||(yield _(m.IntegerMaximum,e,r,n)),!g(e.minimum)||n>=e.minimum||(yield _(m.IntegerMinimum,e,r,n)),g(e.multipleOf)&&n%e.multipleOf!==0&&(yield _(m.IntegerMultipleOf,e,r,n))}(v,0,r,a);case"Intersect":return yield*function*(e,t,r,n){let s=!1;for(const i of e.allOf)for(const e of x(i,t,r,n))s=!0,yield e;if(s)return yield _(m.Intersect,e,r,n);if(!1===e.unevaluatedProperties){const t=new RegExp((0,i.KeyOfPattern)(e));for(const i of Object.getOwnPropertyNames(n))t.test(i)||(yield _(m.IntersectUnevaluatedProperties,e,`${r}/${i}`,n))}if("object"==typeof e.unevaluatedProperties){const s=new RegExp((0,i.KeyOfPattern)(e));for(const i of Object.getOwnPropertyNames(n))if(!s.test(i)){const s=x(e.unevaluatedProperties,t,`${r}/${i}`,n[i]).next();s.done||(yield s.value)}}}(v,u,r,a);case"Iterator":return yield*function*(e,t,r,n){(0,f.IsIterator)(n)||(yield _(m.Iterator,e,r,n))}(v,0,r,a);case"Literal":return yield*function*(e,t,r,n){n!==e.const&&(yield _(m.Literal,e,r,n))}(v,0,r,a);case"Never":return yield*function*(e,t,r,n){yield _(m.Never,e,r,n)}(v,0,r,a);case"Not":return yield*function*(e,t,r,n){!0===x(e.not,t,r,n).next().done&&(yield _(m.Not,e,r,n))}(v,u,r,a);case"Null":return yield*function*(e,t,r,n){(0,f.IsNull)(n)||(yield _(m.Null,e,r,n))}(v,0,r,a);case"Number":return yield*function*(e,t,r,i){if(!n.TypeSystemPolicy.IsNumberLike(i))return yield _(m.Number,e,r,i);!g(e.exclusiveMaximum)||i<e.exclusiveMaximum||(yield _(m.NumberExclusiveMaximum,e,r,i)),!g(e.exclusiveMinimum)||i>e.exclusiveMinimum||(yield _(m.NumberExclusiveMinimum,e,r,i)),!g(e.maximum)||i<=e.maximum||(yield _(m.NumberMaximum,e,r,i)),!g(e.minimum)||i>=e.minimum||(yield _(m.NumberMinimum,e,r,i)),g(e.multipleOf)&&i%e.multipleOf!==0&&(yield _(m.NumberMultipleOf,e,r,i))}(v,0,r,a);case"Object":return yield*function*(e,t,r,i){if(!n.TypeSystemPolicy.IsObjectLike(i))return yield _(m.Object,e,r,i);!g(e.minProperties)||Object.getOwnPropertyNames(i).length>=e.minProperties||(yield _(m.ObjectMinProperties,e,r,i)),!g(e.maxProperties)||Object.getOwnPropertyNames(i).length<=e.maxProperties||(yield _(m.ObjectMaxProperties,e,r,i));const s=Array.isArray(e.required)?e.required:[],a=Object.getOwnPropertyNames(e.properties),u=Object.getOwnPropertyNames(i);for(const t of s)u.includes(t)||(yield _(m.ObjectRequiredProperty,e.properties[t],`${r}/${b(t)}`,undefined));if(!1===e.additionalProperties)for(const t of u)a.includes(t)||(yield _(m.ObjectAdditionalProperties,e,`${r}/${b(t)}`,i[t]));if("object"==typeof e.additionalProperties)for(const n of u)a.includes(n)||(yield*x(e.additionalProperties,t,`${r}/${b(n)}`,i[n]));for(const s of a){const a=e.properties[s];e.required&&e.required.includes(s)?(yield*x(a,t,`${r}/${b(s)}`,i[s]),(0,o.ExtendsUndefinedCheck)(e)&&!(s in i)&&(yield _(m.ObjectRequiredProperty,a,`${r}/${b(s)}`,undefined))):n.TypeSystemPolicy.IsExactOptionalProperty(i,s)&&(yield*x(a,t,`${r}/${b(s)}`,i[s]))}}(v,u,r,a);case"Promise":return yield*function*(e,t,r,n){(0,f.IsPromise)(n)||(yield _(m.Promise,e,r,n))}(v,0,r,a);case"Record":return yield*function*(e,t,r,i){if(!n.TypeSystemPolicy.IsRecordLike(i))return yield _(m.Object,e,r,i);!g(e.minProperties)||Object.getOwnPropertyNames(i).length>=e.minProperties||(yield _(m.ObjectMinProperties,e,r,i)),!g(e.maxProperties)||Object.getOwnPropertyNames(i).length<=e.maxProperties||(yield _(m.ObjectMaxProperties,e,r,i));const[s,o]=Object.entries(e.patternProperties)[0],a=new RegExp(s);for(const[e,n]of Object.entries(i))a.test(e)&&(yield*x(o,t,`${r}/${b(e)}`,n));if("object"==typeof e.additionalProperties)for(const[n,s]of Object.entries(i))a.test(n)||(yield*x(e.additionalProperties,t,`${r}/${b(n)}`,s));if(!1===e.additionalProperties)for(const[t,n]of Object.entries(i))if(!a.test(t))return yield _(m.ObjectAdditionalProperties,e,`${r}/${b(t)}`,n)}(v,u,r,a);case"Ref":case"This":return yield*function*(e,t,r,n){yield*x((0,c.Deref)(e,t),t,r,n)}(v,u,r,a);case"RegExp":return yield*function*(e,t,r,n){return(0,f.IsString)(n)?(!g(e.minLength)||n.length>=e.minLength||(yield _(m.StringMinLength,e,r,n)),!g(e.maxLength)||n.length<=e.maxLength||(yield _(m.StringMaxLength,e,r,n)),new RegExp(e.source,e.flags).test(n)?void 0:yield _(m.RegExp,e,r,n)):yield _(m.String,e,r,n)}(v,0,r,a);case"String":return yield*function*(e,t,r,n){if(!(0,f.IsString)(n))return yield _(m.String,e,r,n);!g(e.minLength)||n.length>=e.minLength||(yield _(m.StringMinLength,e,r,n)),!g(e.maxLength)||n.length<=e.maxLength||(yield _(m.StringMaxLength,e,r,n)),(0,f.IsString)(e.pattern)&&(new RegExp(e.pattern).test(n)||(yield _(m.StringPattern,e,r,n)));(0,f.IsString)(e.format)&&(s.FormatRegistry.Has(e.format)?s.FormatRegistry.Get(e.format)(n)||(yield _(m.StringFormat,e,r,n)):yield _(m.StringFormatUnknown,e,r,n))}(v,0,r,a);case"Symbol":return yield*function*(e,t,r,n){(0,f.IsSymbol)(n)||(yield _(m.Symbol,e,r,n))}(v,0,r,a);case"TemplateLiteral":return yield*function*(e,t,r,n){if(!(0,f.IsString)(n))return yield _(m.String,e,r,n);new RegExp(e.pattern).test(n)||(yield _(m.StringPattern,e,r,n))}(v,0,r,a);case"Tuple":return yield*function*(e,t,r,n){if(!(0,f.IsArray)(n))return yield _(m.Tuple,e,r,n);if(e.items===undefined&&0!==n.length)return yield _(m.TupleLength,e,r,n);if(n.length!==e.maxItems)return yield _(m.TupleLength,e,r,n);if(e.items)for(let i=0;i<e.items.length;i++)yield*x(e.items[i],t,`${r}/${i}`,n[i])}(v,u,r,a);case"Undefined":return yield*function*(e,t,r,n){(0,f.IsUndefined)(n)||(yield _(m.Undefined,e,r,n))}(v,0,r,a);case"Union":return yield*function*(e,t,r,n){if((0,d.Check)(e,t,n))return;const i=e.anyOf.map(e=>new w(x(e,t,r,n)));yield _(m.Union,e,r,n,i)}(v,u,r,a);case"Uint8Array":return yield*function*(e,t,r,n){if(!(0,f.IsUint8Array)(n))return yield _(m.Uint8Array,e,r,n);!g(e.maxByteLength)||n.length<=e.maxByteLength||(yield _(m.Uint8ArrayMaxByteLength,e,r,n)),!g(e.minByteLength)||n.length>=e.minByteLength||(yield _(m.Uint8ArrayMinByteLength,e,r,n))}(v,0,r,a);case"Void":return yield*function*(e,t,r,i){n.TypeSystemPolicy.IsVoidLike(i)||(yield _(m.Void,e,r,i))}(v,0,r,a);default:if(!s.TypeRegistry.Has(v[h.Kind]))throw new y(e);return yield*function*(e,t,r,n){s.TypeRegistry.Get(e[h.Kind])(e,n)||(yield _(m.Kind,e,r,n))}(v,0,r,a)}}r.ValueErrorIterator=w}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/errors/errors.js"}],[5859,{"../type/symbols/index":6023,"./errors":5858},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DefaultErrorFunction=s,r.SetErrorFunction=function(e){o=e},r.GetErrorFunction=function(){return o};const n=e("../type/symbols/index"),i=e("./errors");function s(e){switch(e.errorType){case i.ValueErrorType.ArrayContains:return"Expected array to contain at least one matching value";case i.ValueErrorType.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case i.ValueErrorType.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case i.ValueErrorType.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case i.ValueErrorType.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case i.ValueErrorType.ArrayUniqueItems:return"Expected array elements to be unique";case i.ValueErrorType.Array:return"Expected array";case i.ValueErrorType.AsyncIterator:return"Expected AsyncIterator";case i.ValueErrorType.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case i.ValueErrorType.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case i.ValueErrorType.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case i.ValueErrorType.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case i.ValueErrorType.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case i.ValueErrorType.BigInt:return"Expected bigint";case i.ValueErrorType.Boolean:return"Expected boolean";case i.ValueErrorType.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case i.ValueErrorType.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case i.ValueErrorType.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case i.ValueErrorType.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case i.ValueErrorType.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case i.ValueErrorType.Date:return"Expected Date";case i.ValueErrorType.Function:return"Expected function";case i.ValueErrorType.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case i.ValueErrorType.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case i.ValueErrorType.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case i.ValueErrorType.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case i.ValueErrorType.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case i.ValueErrorType.Integer:return"Expected integer";case i.ValueErrorType.IntersectUnevaluatedProperties:return"Unexpected property";case i.ValueErrorType.Intersect:return"Expected all values to match";case i.ValueErrorType.Iterator:return"Expected Iterator";case i.ValueErrorType.Literal:return`Expected ${"string"==typeof e.schema.const?`'${e.schema.const}'`:e.schema.const}`;case i.ValueErrorType.Never:return"Never";case i.ValueErrorType.Not:return"Value should not match";case i.ValueErrorType.Null:return"Expected null";case i.ValueErrorType.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case i.ValueErrorType.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case i.ValueErrorType.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case i.ValueErrorType.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case i.ValueErrorType.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case i.ValueErrorType.Number:return"Expected number";case i.ValueErrorType.Object:return"Expected object";case i.ValueErrorType.ObjectAdditionalProperties:return"Unexpected property";case i.ValueErrorType.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case i.ValueErrorType.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case i.ValueErrorType.ObjectRequiredProperty:return"Expected required property";case i.ValueErrorType.Promise:return"Expected Promise";case i.ValueErrorType.RegExp:return"Expected string to match regular expression";case i.ValueErrorType.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case i.ValueErrorType.StringFormat:return`Expected string to match '${e.schema.format}' format`;case i.ValueErrorType.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case i.ValueErrorType.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case i.ValueErrorType.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case i.ValueErrorType.String:return"Expected string";case i.ValueErrorType.Symbol:return"Expected symbol";case i.ValueErrorType.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case i.ValueErrorType.Tuple:return"Expected tuple";case i.ValueErrorType.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case i.ValueErrorType.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case i.ValueErrorType.Uint8Array:return"Expected Uint8Array";case i.ValueErrorType.Undefined:return"Expected undefined";case i.ValueErrorType.Union:return"Expected union value";case i.ValueErrorType.Void:return"Expected void";case i.ValueErrorType.Kind:return`Expected kind '${e.schema[n.Kind]}'`;default:return"Unknown error type"}}let o=s}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/errors/function.js"}],[5860,{"./errors":5858,"./function":5859},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./errors"),r),i(e("./function"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/errors/index.js"}],[5861,{"./type/any/index":5866,"./type/array/index":5868,"./type/async-iterator/index":5870,"./type/awaited/index":5872,"./type/bigint/index":5874,"./type/boolean/index":5876,"./type/clone/index":5877,"./type/composite/index":5881,"./type/const/index":5883,"./type/constructor-parameters/index":5885,"./type/constructor/index":5887,"./type/create/index":5889,"./type/date/index":5892,"./type/deref/index":5894,"./type/enum/index":5898,"./type/error/index":5900,"./type/exclude/index":5904,"./type/extends/index":5910,"./type/extract/index":5914,"./type/function/index":5916,"./type/guard/index":5917,"./type/helpers/index":5922,"./type/indexed/index":5923,"./type/instance-type/index":5928,"./type/integer/index":5930,"./type/intersect/index":5932,"./type/intrinsic/index":5938,"./type/iterator/index":5944,"./type/keyof/index":5946,"./type/literal/index":5951,"./type/mapped/index":5953,"./type/never/index":5957,"./type/not/index":5959,"./type/null/index":5961,"./type/number/index":5963,"./type/object/index":5965,"./type/omit/index":5967,"./type/optional/index":5971,"./type/parameters/index":5974,"./type/partial/index":5976,"./type/patterns/index":5979,"./type/pick/index":5981,"./type/promise/index":5985,"./type/readonly-optional/index":5987,"./type/readonly/index":5989,"./type/record/index":5992,"./type/recursive/index":5994,"./type/ref/index":5996,"./type/regexp/index":5998,"./type/registry/index":6001,"./type/required/index":6003,"./type/rest/index":6006,"./type/return-type/index":6008,"./type/schema/index":6011,"./type/sets/index":6013,"./type/static/index":6015,"./type/strict/index":6017,"./type/string/index":6019,"./type/symbol/index":6021,"./type/symbols/index":6023,"./type/template-literal/index":6027,"./type/transform/index":6033,"./type/tuple/index":6035,"./type/type/index":6037,"./type/uint8array/index":6041,"./type/undefined/index":6043,"./type/union/index":6045,"./type/unknown/index":6050,"./type/unsafe/index":6052,"./type/void/index":6054},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./type/clone/index"),r),i(e("./type/create/index"),r),i(e("./type/error/index"),r),i(e("./type/guard/index"),r),i(e("./type/helpers/index"),r),i(e("./type/patterns/index"),r),i(e("./type/registry/index"),r),i(e("./type/sets/index"),r),i(e("./type/symbols/index"),r),i(e("./type/any/index"),r),i(e("./type/array/index"),r),i(e("./type/async-iterator/index"),r),i(e("./type/awaited/index"),r),i(e("./type/bigint/index"),r),i(e("./type/boolean/index"),r),i(e("./type/composite/index"),r),i(e("./type/const/index"),r),i(e("./type/constructor/index"),r),i(e("./type/constructor-parameters/index"),r),i(e("./type/date/index"),r),i(e("./type/deref/index"),r),i(e("./type/enum/index"),r),i(e("./type/exclude/index"),r),i(e("./type/extends/index"),r),i(e("./type/extract/index"),r),i(e("./type/function/index"),r),i(e("./type/indexed/index"),r),i(e("./type/instance-type/index"),r),i(e("./type/integer/index"),r),i(e("./type/intersect/index"),r),i(e("./type/iterator/index"),r),i(e("./type/intrinsic/index"),r),i(e("./type/keyof/index"),r),i(e("./type/literal/index"),r),i(e("./type/mapped/index"),r),i(e("./type/never/index"),r),i(e("./type/not/index"),r),i(e("./type/null/index"),r),i(e("./type/number/index"),r),i(e("./type/object/index"),r),i(e("./type/omit/index"),r),i(e("./type/optional/index"),r),i(e("./type/parameters/index"),r),i(e("./type/partial/index"),r),i(e("./type/pick/index"),r),i(e("./type/promise/index"),r),i(e("./type/readonly/index"),r),i(e("./type/readonly-optional/index"),r),i(e("./type/record/index"),r),i(e("./type/recursive/index"),r),i(e("./type/ref/index"),r),i(e("./type/regexp/index"),r),i(e("./type/required/index"),r),i(e("./type/rest/index"),r),i(e("./type/return-type/index"),r),i(e("./type/schema/index"),r),i(e("./type/static/index"),r),i(e("./type/strict/index"),r),i(e("./type/string/index"),r),i(e("./type/symbol/index"),r),i(e("./type/template-literal/index"),r),i(e("./type/transform/index"),r),i(e("./type/tuple/index"),r),i(e("./type/uint8array/index"),r),i(e("./type/undefined/index"),r),i(e("./type/union/index"),r),i(e("./type/unknown/index"),r),i(e("./type/unsafe/index"),r),i(e("./type/void/index"),r),i(e("./type/type/index"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/index.js"}],[5862,{"./policy":5863,"./system":5864},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./policy"),r),i(e("./system"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/system/index.js"}],[5863,{"../value/guard/index":6061},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeSystemPolicy=void 0;const n=e("../value/guard/index");var i;!function(e){function t(t){const r=(0,n.IsObject)(t);return e.AllowArrayObject?r:r&&!(0,n.IsArray)(t)}e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1,e.IsExactOptionalProperty=function(t,r){return e.ExactOptionalPropertyTypes?r in t:t[r]!==undefined},e.IsObjectLike=t,e.IsRecordLike=function(e){return t(e)&&!(e instanceof Date)&&!(e instanceof Uint8Array)},e.IsNumberLike=function(t){return e.AllowNaN?(0,n.IsNumber)(t):Number.isFinite(t)},e.IsVoidLike=function(t){const r=(0,n.IsUndefined)(t);return e.AllowNullVoid?r||null===t:r}}(i||(r.TypeSystemPolicy=i={}))}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/system/policy.js"}],[5864,{"../type/error/index":5900,"../type/registry/index":6001,"../type/symbols/index":6023,"../type/unsafe/index":6052},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeSystem=r.TypeSystemDuplicateFormat=r.TypeSystemDuplicateTypeKind=void 0;const n=e("../type/registry/index"),i=e("../type/unsafe/index"),s=e("../type/symbols/index"),o=e("../type/error/index");class a extends o.TypeBoxError{constructor(e){super(`Duplicate type kind '${e}' detected`)}}r.TypeSystemDuplicateTypeKind=a;class u extends o.TypeBoxError{constructor(e){super(`Duplicate string format '${e}' detected`)}}var c;r.TypeSystemDuplicateFormat=u,function(e){e.Type=function(e,t){if(n.TypeRegistry.Has(e))throw new a(e);return n.TypeRegistry.Set(e,t),(t={})=>(0,i.Unsafe)({...t,[s.Kind]:e})},e.Format=function(e,t){if(n.FormatRegistry.Has(e))throw new u(e);return n.FormatRegistry.Set(e,t),e}}(c||(r.TypeSystem=c={}))}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/system/system.js"}],[5865,{"../create/index":5889,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Any=function(e){return(0,n.CreateType)({[i.Kind]:"Any"},e)};const n=e("../create/index"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/any/any.js"}],[5866,{"./any":5865},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./any"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/any/index.js"}],[5867,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Array=function(e,t){return(0,n.CreateType)({[i.Kind]:"Array",type:"array",items:e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/array/array.js"}],[5868,{"./array":5867},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./array"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/array/index.js"}],[5869,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncIterator=function(e,t){return(0,i.CreateType)({[n.Kind]:"AsyncIterator",type:"AsyncIterator",items:e},t)};const n=e("../symbols/index"),i=e("../create/type")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.js"}],[5870,{"./async-iterator":5869},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./async-iterator"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.js"}],[5871,{"../create/type":5890,"../guard/kind":5918,"../intersect/index":5932,"../union/index":6045},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Awaited=function(e,t){return(0,s.CreateType)(u(e),t)};const n=e("../intersect/index"),i=e("../union/index"),s=e("../create/type"),o=e("../guard/kind");function a(e){return e.map(e=>u(e))}function u(e){return(0,o.IsIntersect)(e)?function(e){return(0,n.Intersect)(a(e))}(e.allOf):(0,o.IsUnion)(e)?function(e){return(0,i.Union)(a(e))}(e.anyOf):(0,o.IsPromise)(e)?function(e){return u(e)}(e.item):e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.js"}],[5872,{"./awaited":5871},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./awaited"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.js"}],[5873,{"../create/index":5889,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BigInt=function(e){return(0,i.CreateType)({[n.Kind]:"BigInt",type:"bigint"},e)};const n=e("../symbols/index"),i=e("../create/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.js"}],[5874,{"./bigint":5873},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./bigint"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.js"}],[5875,{"../create/index":5889,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Boolean=function(e){return(0,i.CreateType)({[n.Kind]:"Boolean",type:"boolean"},e)};const n=e("../symbols/index"),i=e("../create/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.js"}],[5876,{"./boolean":5875},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./boolean"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.js"}],[5877,{"./type":5878,"./value":5879},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./type"),r),i(e("./value"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/clone/index.js"}],[5878,{"./value":5879},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CloneRest=function(e){return e.map(e=>i(e))},r.CloneType=i;const n=e("./value");function i(e,t){return t===undefined?(0,n.Clone)(e):(0,n.Clone)({...t,...e})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/clone/type.js"}],[5879,{"../guard/value":5920},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Clone=function(e){return i(e)};const n=e("../guard/value");function i(e){return n.IsArray(e)?function(e){return e.map(e=>i(e))}(e):n.IsDate(e)?function(e){return new Date(e.getTime())}(e):n.IsUint8Array(e)?function(e){return new Uint8Array(e)}(e):n.IsRegExp(e)?function(e){return new RegExp(e.source,e.flags)}(e):n.IsObject(e)?function(e){const t={};for(const r of Object.getOwnPropertyNames(e))t[r]=i(e[r]);for(const r of Object.getOwnPropertySymbols(e))t[r]=i(e[r]);return t}(e):e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/clone/value.js"}],[5880,{"../guard/kind":5918,"../indexed/index":5923,"../intersect/index":5932,"../keyof/index":5946,"../object/index":5965,"../sets/index":6013},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Composite=function(e,t){const r=function(e){const t=[];for(const r of e)t.push(...(0,s.KeyOfPropertyKeys)(r));return(0,a.SetDistinct)(t)}(e),i=function(e,t){const r={};for(const i of t)r[i]=(0,n.IntersectEvaluated)(c(e,i));return r}(e,r);return(0,o.Object)(i,t)};const n=e("../intersect/index"),i=e("../indexed/index"),s=e("../keyof/index"),o=e("../object/index"),a=e("../sets/index"),u=e("../guard/kind");function c(e,t){const r=[];for(const n of e)r.push(...(0,i.IndexFromPropertyKeys)(n,[t]));return function(e){return e.filter(e=>!(0,u.IsNever)(e))}(r)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.js"}],[5881,{"./composite":5880},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./composite"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/composite/index.js"}],[5882,{"../any/index":5866,"../bigint/index":5874,"../create/index":5889,"../date/index":5892,"../function/index":5916,"../guard/value":5920,"../literal/index":5951,"../null/index":5961,"../object/index":5965,"../readonly/index":5989,"../symbol/index":6021,"../tuple/index":6035,"../uint8array/index":6041,"../undefined/index":6043,"../unknown/index":6050},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Const=function(e,t){return(0,y.CreateType)(w(e,!0),t)};const n=e("../any/index"),i=e("../bigint/index"),s=e("../date/index"),o=e("../function/index"),a=e("../literal/index"),u=e("../null/index"),c=e("../object/index"),l=e("../symbol/index"),d=e("../tuple/index"),h=e("../readonly/index"),p=e("../undefined/index"),f=e("../uint8array/index"),m=e("../unknown/index"),y=e("../create/index"),b=e("../guard/value");function g(e,t){return!0===t?e:(0,h.Readonly)(e)}function w(e,t){return(0,b.IsAsyncIterator)(e)||(0,b.IsIterator)(e)?g((0,n.Any)(),t):(0,b.IsArray)(e)?(0,h.Readonly)((0,d.Tuple)(e.map(e=>w(e,!1)))):(0,b.IsUint8Array)(e)?(0,f.Uint8Array)():(0,b.IsDate)(e)?(0,s.Date)():(0,b.IsObject)(e)?g((0,c.Object)(function(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,h.Readonly)(w(e[r],!1));return t}(e)),t):(0,b.IsFunction)(e)?g((0,o.Function)([],(0,m.Unknown)()),t):(0,b.IsUndefined)(e)?(0,p.Undefined)():(0,b.IsNull)(e)?(0,u.Null)():(0,b.IsSymbol)(e)?(0,l.Symbol)():(0,b.IsBigInt)(e)?(0,i.BigInt)():(0,b.IsNumber)(e)||(0,b.IsBoolean)(e)||(0,b.IsString)(e)?(0,a.Literal)(e):(0,c.Object)({})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/const/const.js"}],[5883,{"./const":5882},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./const"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/const/index.js"}],[5884,{"../tuple/index":6035},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ConstructorParameters=function(e,t){return(0,n.Tuple)(e.parameters,t)};const n=e("../tuple/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.js"}],[5885,{"./constructor-parameters":5884},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./constructor-parameters"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.js"}],[5886,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Constructor=function(e,t,r){return(0,n.CreateType)({[i.Kind]:"Constructor",type:"Constructor",parameters:e,returns:t},r)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.js"}],[5887,{"./constructor":5886},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./constructor"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.js"}],[5888,{"../guard/value":5920},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Immutable=i;const n=e("../guard/value");function i(e){return n.IsArray(e)?function(e){return globalThis.Object.freeze(e).map(e=>i(e))}(e):n.IsDate(e)||n.IsUint8Array(e)||n.IsRegExp(e)?e:n.IsObject(e)?function(e){const t={};for(const r of Object.getOwnPropertyNames(e))t[r]=i(e[r]);for(const r of Object.getOwnPropertySymbols(e))t[r]=i(e[r]);return globalThis.Object.freeze(t)}(e):e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.js"}],[5889,{"./type":5890},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./type"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/create/index.js"}],[5890,{"../../system/policy":5863,"../clone/value":5879,"./immutable":5888},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CreateType=function(e,t){const r=t!==undefined?{...t,...e}:e;switch(n.TypeSystemPolicy.InstanceMode){case"freeze":return(0,i.Immutable)(r);case"clone":return(0,s.Clone)(r);default:return r}};const n=e("../../system/policy"),i=e("./immutable"),s=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/create/type.js"}],[5891,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Date=function(e){return(0,i.CreateType)({[n.Kind]:"Date",type:"Date"},e)};const n=e("../symbols/index"),i=e("../create/type")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/date/date.js"}],[5892,{"./date":5891},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./date"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/date/index.js"}],[5893,{"../clone/type":5878,"../discard/index":5896,"../guard/kind":5918,"../guard/value":5920},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Deref=l;const n=e("../clone/type"),i=e("../discard/index"),s=e("../guard/value"),o=e("../guard/kind");function a(e,t){return e.map(e=>l(e,t))}function u(e,t){return e.properties=function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=l(e[n],t);return r}(e.properties,t),e}function c(e,t){return(0,o.IsConstructor)(e)||(0,o.IsFunction)(e)?function(e,t){return e.parameters=a(e.parameters,t),e.returns=l(e.returns,t),e}(e,t):(0,o.IsIntersect)(e)?function(e,t){return e.allOf=a(e.allOf,t),e}(e,t):(0,o.IsUnion)(e)?function(e,t){return e.anyOf=a(e.anyOf,t),e}(e,t):(0,o.IsTuple)(e)?function(e,t){return(0,s.IsUndefined)(e.items)||(e.items=a(e.items,t)),e}(e,t):(0,o.IsArray)(e)?function(e,t){return e.items=l(e.items,t),e}(e,t):(0,o.IsObject)(e)?u(e,t):(0,o.IsPromise)(e)?function(e,t){return e.item=l(e.item,t),e}(e,t):(0,o.IsAsyncIterator)(e)||(0,o.IsIterator)(e)?function(e,t){return e.items=l(e.items,t),e}(e,t):(0,o.IsRef)(e)?function(e,t){const r=t.find(t=>t.$id===e.$ref);if(r===undefined)throw Error(`Unable to dereference schema with $id ${e.$ref}`);return l((0,i.Discard)(r,["$id"]),t)}(e,t):e}function l(e,t){return c((0,n.CloneType)(e),(0,n.CloneRest)(t))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/deref/deref.js"}],[5894,{"./deref":5893},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./deref"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/deref/index.js"}],[5895,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Discard=function(e,t){return t.reduce((e,t)=>function(e,t){const{[t]:r,...n}=e;return n}(e,t),e)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.js"}],[5896,{"./discard":5895},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./discard"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/discard/index.js"}],[5897,{"../guard/value":5920,"../literal/index":5951,"../symbols/index":6023,"../union/index":6045},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Enum=function(e,t){if((0,o.IsUndefined)(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter(e=>isNaN(e)).map(t=>e[t]),a=[...new Set(r)].map(e=>(0,n.Literal)(e));return(0,s.Union)(a,{...t,[i.Hint]:"Enum"})};const n=e("../literal/index"),i=e("../symbols/index"),s=e("../union/index"),o=e("../guard/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.js"}],[5898,{"./enum":5897},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./enum"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/enum/index.js"}],[5899,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeBoxError=void 0;class n extends Error{constructor(e){super(e)}}r.TypeBoxError=n}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/error/error.js"}],[5900,{"./error":5899},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./error"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/error/index.js"}],[5901,{"../mapped/index":5953,"./exclude":5903},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExcludeFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Exclude)(e[n],t);return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./exclude")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.js"}],[5902,{"../template-literal/index":6027,"./exclude":5903},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExcludeFromTemplateLiteral=function(e,t){return(0,n.Exclude)((0,i.TemplateLiteralToUnion)(e),t)};const n=e("./exclude"),i=e("../template-literal/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.js"}],[5903,{"../create/type":5890,"../extends/index":5910,"../guard/kind":5918,"../never/index":5957,"../union/index":6045,"./exclude-from-mapped-result":5901,"./exclude-from-template-literal":5902},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exclude=function(e,t,r={}){return(0,c.IsTemplateLiteral)(e)?(0,n.CreateType)((0,u.ExcludeFromTemplateLiteral)(e,t),r):(0,c.IsMappedResult)(e)?(0,n.CreateType)((0,a.ExcludeFromMappedResult)(e,t),r):(0,n.CreateType)((0,c.IsUnion)(e)?function(e,t){const r=e.filter(e=>(0,o.ExtendsCheck)(e,t)===o.ExtendsResult.False);return 1===r.length?r[0]:(0,i.Union)(r)}(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?(0,s.Never)():e,r)};const n=e("../create/type"),i=e("../union/index"),s=e("../never/index"),o=e("../extends/index"),a=e("./exclude-from-mapped-result"),u=e("./exclude-from-template-literal"),c=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.js"}],[5904,{"./exclude":5903,"./exclude-from-mapped-result":5901,"./exclude-from-template-literal":5902},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./exclude-from-mapped-result"),r),i(e("./exclude-from-template-literal"),r),i(e("./exclude"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.js"}],[5905,{"../any/index":5866,"../error/index":5900,"../function/index":5916,"../guard/index":5917,"../number/index":5963,"../patterns/index":5979,"../string/index":6019,"../symbols/index":6023,"../template-literal/index":6027,"../unknown/index":6050},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendsResult=r.ExtendsResolverError=void 0,r.ExtendsCheck=function(e,t){return G(e,t)};const n=e("../any/index"),i=e("../function/index"),s=e("../number/index"),o=e("../string/index"),a=e("../unknown/index"),u=e("../template-literal/index"),c=e("../patterns/index"),l=e("../symbols/index"),d=e("../error/index"),h=e("../guard/index");class p extends d.TypeBoxError{}var f;function m(e){return e===f.False?e:f.True}function y(e){throw new p(e)}function b(e){return h.TypeGuard.IsNever(e)||h.TypeGuard.IsIntersect(e)||h.TypeGuard.IsUnion(e)||h.TypeGuard.IsUnknown(e)||h.TypeGuard.IsAny(e)}function g(e,t){return h.TypeGuard.IsNever(t)?T(e,t):h.TypeGuard.IsIntersect(t)?v(e,t):h.TypeGuard.IsUnion(t)?F(e,t):h.TypeGuard.IsUnknown(t)?$(e,t):h.TypeGuard.IsAny(t)?w(e,t):y("StructuralRight")}function w(e,t){return f.True}function _(e,t){return h.TypeGuard.IsLiteralBoolean(e)||h.TypeGuard.IsBoolean(e)?f.True:f.False}function x(e,t){return h.TypeGuard.IsLiteral(e)&&h.ValueGuard.IsNumber(e.const)||h.TypeGuard.IsNumber(e)||h.TypeGuard.IsInteger(e)?f.True:f.False}function v(e,t){return t.allOf.every(t=>G(e,t)===f.True)?f.True:f.False}function T(e,t){return f.False}function O(e){let[t,r]=[e,0];for(;h.TypeGuard.IsNot(t);)t=t.not,r+=1;return r%2==0?t:(0,a.Unknown)()}function E(e,t){return h.TypeGuard.IsLiteralNumber(e)||h.TypeGuard.IsNumber(e)||h.TypeGuard.IsInteger(e)?f.True:f.False}function M(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function k(e){return I(e)}function j(e){return M(e,0)||M(e,1)&&"description"in e.properties&&h.TypeGuard.IsUnion(e.properties.description)&&2===e.properties.description.anyOf.length&&(h.TypeGuard.IsString(e.properties.description.anyOf[0])&&h.TypeGuard.IsUndefined(e.properties.description.anyOf[1])||h.TypeGuard.IsString(e.properties.description.anyOf[1])&&h.TypeGuard.IsUndefined(e.properties.description.anyOf[0]))}function S(e){return M(e,0)}function A(e){return M(e,0)}function I(e){const t=(0,s.Number)();return M(e,0)||M(e,1)&&"length"in e.properties&&m(G(e.properties.length,t))===f.True}function P(e,t){return G(e,t)===f.False||h.TypeGuard.IsOptional(e)&&!h.TypeGuard.IsOptional(t)?f.False:f.True}function C(e,t){return h.TypeGuard.IsUnknown(e)?f.False:h.TypeGuard.IsAny(e)?f.Union:h.TypeGuard.IsNever(e)||h.TypeGuard.IsLiteralString(e)&&k(t)||h.TypeGuard.IsLiteralNumber(e)&&S(t)||h.TypeGuard.IsLiteralBoolean(e)&&A(t)||h.TypeGuard.IsSymbol(e)&&j(t)||h.TypeGuard.IsBigInt(e)&&M(t,0)||h.TypeGuard.IsString(e)&&k(t)||h.TypeGuard.IsSymbol(e)&&j(t)||h.TypeGuard.IsNumber(e)&&S(t)||h.TypeGuard.IsInteger(e)&&S(t)||h.TypeGuard.IsBoolean(e)&&A(t)||h.TypeGuard.IsUint8Array(e)&&function(e){return I(e)}(t)||h.TypeGuard.IsDate(e)&&function(e){return M(e,0)}(t)||h.TypeGuard.IsConstructor(e)&&function(e){return M(e,0)}(t)||h.TypeGuard.IsFunction(e)&&function(e){const t=(0,s.Number)();return M(e,0)||M(e,1)&&"length"in e.properties&&m(G(e.properties.length,t))===f.True}(t)?f.True:h.TypeGuard.IsRecord(e)&&h.TypeGuard.IsString(R(e))?"Record"===t[l.Hint]?f.True:f.False:h.TypeGuard.IsRecord(e)&&h.TypeGuard.IsNumber(R(e))&&M(t,0)?f.True:f.False}function z(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)&&function(e){const t=(0,i.Function)([(0,n.Any)()],(0,n.Any)());return M(e,0)||M(e,1)&&"then"in e.properties&&m(G(e.properties.then,t))===f.True}(t)?f.True:h.TypeGuard.IsPromise(t)?m(G(e.item,t.item)):f.False}function R(e){return c.PatternNumberExact in e.patternProperties?(0,s.Number)():c.PatternStringExact in e.patternProperties?(0,o.String)():y("Unknown record key pattern")}function N(e){return c.PatternNumberExact in e.patternProperties?e.patternProperties[c.PatternNumberExact]:c.PatternStringExact in e.patternProperties?e.patternProperties[c.PatternStringExact]:y("Unable to get record value schema")}function B(e,t){const[r,n]=[R(t),N(t)];return h.TypeGuard.IsLiteralString(e)&&h.TypeGuard.IsNumber(r)&&m(G(e,n))===f.True?f.True:h.TypeGuard.IsUint8Array(e)&&h.TypeGuard.IsNumber(r)||h.TypeGuard.IsString(e)&&h.TypeGuard.IsNumber(r)||h.TypeGuard.IsArray(e)&&h.TypeGuard.IsNumber(r)?G(e,n):h.TypeGuard.IsObject(e)?(()=>{for(const t of Object.getOwnPropertyNames(e.properties))if(P(n,e.properties[t])===f.False)return f.False;return f.True})():f.False}function L(e,t){return h.TypeGuard.IsLiteral(e)&&h.ValueGuard.IsString(e.const)||h.TypeGuard.IsString(e)?f.True:f.False}function U(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)&&I(t)||h.TypeGuard.IsArray(t)&&function(e,t){return h.TypeGuard.IsArray(t)&&e.items!==undefined&&e.items.every(e=>G(e,t.items)===f.True)}(e,t)?f.True:h.TypeGuard.IsTuple(t)?h.ValueGuard.IsUndefined(e.items)&&!h.ValueGuard.IsUndefined(t.items)||!h.ValueGuard.IsUndefined(e.items)&&h.ValueGuard.IsUndefined(t.items)?f.False:h.ValueGuard.IsUndefined(e.items)&&!h.ValueGuard.IsUndefined(t.items)||e.items.every((e,r)=>G(e,t.items[r])===f.True)?f.True:f.False:f.False}function D(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsVoid(t)?function(e){return h.TypeGuard.IsUndefined(e)||h.TypeGuard.IsUndefined(e)?f.True:f.False}(e):h.TypeGuard.IsUndefined(t)?f.True:f.False}function F(e,t){return t.anyOf.some(t=>G(e,t)===f.True)?f.True:f.False}function $(e,t){return f.True}function K(e,t){return h.TypeGuard.IsNever(t)?T():h.TypeGuard.IsIntersect(t)?v(e,t):h.TypeGuard.IsUnion(t)?F(e,t):h.TypeGuard.IsAny(t)?w():h.TypeGuard.IsString(t)?L(e):h.TypeGuard.IsNumber(t)?E(e):h.TypeGuard.IsInteger(t)?x(e):h.TypeGuard.IsBoolean(t)?_(e):h.TypeGuard.IsArray(t)?function(e){return h.TypeGuard.IsUnknown(e)?f.False:h.TypeGuard.IsAny(e)?f.Union:h.TypeGuard.IsNever(e)?f.True:f.False}(e):h.TypeGuard.IsTuple(t)?function(e){return h.TypeGuard.IsNever(e)?f.True:h.TypeGuard.IsUnknown(e)?f.False:h.TypeGuard.IsAny(e)?f.Union:f.False}(e):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsUnknown(t)?f.True:f.False}function G(e,t){return h.TypeGuard.IsTemplateLiteral(e)||h.TypeGuard.IsTemplateLiteral(t)?function(e,t){return h.TypeGuard.IsTemplateLiteral(e)?G((0,u.TemplateLiteralToUnion)(e),t):h.TypeGuard.IsTemplateLiteral(t)?G(e,(0,u.TemplateLiteralToUnion)(t)):y("Invalid fallthrough for TemplateLiteral")}(e,t):h.TypeGuard.IsRegExp(e)||h.TypeGuard.IsRegExp(t)?function(e,t){return G(h.TypeGuard.IsRegExp(e)?(0,o.String)():e,h.TypeGuard.IsRegExp(t)?(0,o.String)():t)}(e,t):h.TypeGuard.IsNot(e)||h.TypeGuard.IsNot(t)?function(e,t){return h.TypeGuard.IsNot(e)?G(O(e),t):h.TypeGuard.IsNot(t)?G(e,O(t)):y("Invalid fallthrough for Not")}(e,t):h.TypeGuard.IsAny(e)?function(e,t){return h.TypeGuard.IsIntersect(t)?v(e,t):h.TypeGuard.IsUnion(t)&&t.anyOf.some(e=>h.TypeGuard.IsAny(e)||h.TypeGuard.IsUnknown(e))?f.True:h.TypeGuard.IsUnion(t)?f.Union:h.TypeGuard.IsUnknown(t)||h.TypeGuard.IsAny(t)?f.True:f.Union}(e,t):h.TypeGuard.IsArray(e)?function(e,t){return h.TypeGuard.IsObject(t)&&I(t)?f.True:b(t)?g(e,t):h.TypeGuard.IsArray(t)?m(G(e.items,t.items)):f.False}(e,t):h.TypeGuard.IsBigInt(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsBigInt(t)?f.True:f.False}(e,t):h.TypeGuard.IsBoolean(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsBoolean(t)?f.True:f.False}(e,t):h.TypeGuard.IsAsyncIterator(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsAsyncIterator(t)?m(G(e.items,t.items)):f.False}(e,t):h.TypeGuard.IsConstructor(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsConstructor(t)?e.parameters.length>t.parameters.length?f.False:e.parameters.every((e,r)=>m(G(t.parameters[r],e))===f.True)?m(G(e.returns,t.returns)):f.False:f.False}(e,t):h.TypeGuard.IsDate(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsDate(t)?f.True:f.False}(e,t):h.TypeGuard.IsFunction(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsFunction(t)?e.parameters.length>t.parameters.length?f.False:e.parameters.every((e,r)=>m(G(t.parameters[r],e))===f.True)?m(G(e.returns,t.returns)):f.False:f.False}(e,t):h.TypeGuard.IsInteger(e)?function(e,t){return h.TypeGuard.IsInteger(t)||h.TypeGuard.IsNumber(t)?f.True:b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):f.False}(e,t):h.TypeGuard.IsIntersect(e)?function(e,t){return e.allOf.some(e=>G(e,t)===f.True)?f.True:f.False}(e,t):h.TypeGuard.IsIterator(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsIterator(t)?m(G(e.items,t.items)):f.False}(e,t):h.TypeGuard.IsLiteral(e)?function(e,t){return h.TypeGuard.IsLiteral(t)&&t.const===e.const?f.True:b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsString(t)?L(e):h.TypeGuard.IsNumber(t)?E(e):h.TypeGuard.IsInteger(t)?x(e):h.TypeGuard.IsBoolean(t)?_(e):f.False}(e,t):h.TypeGuard.IsNever(e)?f.True:h.TypeGuard.IsNull(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsNull(t)?f.True:f.False}(e,t):h.TypeGuard.IsNumber(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsInteger(t)||h.TypeGuard.IsNumber(t)?f.True:f.False}(e,t):h.TypeGuard.IsObject(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsObject(t)?(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!h.TypeGuard.IsOptional(t.properties[r]))return f.False;if(h.TypeGuard.IsOptional(t.properties[r]))return f.True;if(P(e.properties[r],t.properties[r])===f.False)return f.False}return f.True})():f.False}(e,t):h.TypeGuard.IsRecord(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?G(N(e),N(t)):f.False}(e,t):h.TypeGuard.IsString(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsString(t)?f.True:f.False}(e,t):h.TypeGuard.IsSymbol(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsSymbol(t)?f.True:f.False}(e,t):h.TypeGuard.IsTuple(e)?U(e,t):h.TypeGuard.IsPromise(e)?z(e,t):h.TypeGuard.IsUint8Array(e)?function(e,t){return b(t)?g(e,t):h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsRecord(t)?B(e,t):h.TypeGuard.IsUint8Array(t)?f.True:f.False}(e,t):h.TypeGuard.IsUndefined(e)?D(e,t):h.TypeGuard.IsUnion(e)?function(e,t){return e.anyOf.every(e=>G(e,t)===f.True)?f.True:f.False}(e,t):h.TypeGuard.IsUnknown(e)?K(e,t):h.TypeGuard.IsVoid(e)?function(e,t){return h.TypeGuard.IsIntersect(t)?v(e,t):h.TypeGuard.IsUnion(t)?F(e,t):h.TypeGuard.IsUnknown(t)?$():h.TypeGuard.IsAny(t)?w():h.TypeGuard.IsObject(t)?C(e,t):h.TypeGuard.IsVoid(t)?f.True:f.False}(e,t):y(`Unknown left type operand '${e[l.Kind]}'`)}r.ExtendsResolverError=p,function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"}(f||(r.ExtendsResult=f={}))}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.js"}],[5906,{"../clone/value":5879,"../literal/index":5951,"../mapped/index":5953,"./extends":5909},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendsFromMappedKey=function(e,t,r,i,s){const o=function(e,t,r,n,i){return function(e,t,r,n,i){return e.reduce((e,s)=>({...e,...a(s,t,r,n,i)}),{})}(e.keys,t,r,n,i)}(e,t,r,i,s);return(0,n.MappedResult)(o)};const n=e("../mapped/index"),i=e("../literal/index"),s=e("./extends"),o=e("../clone/value");function a(e,t,r,n,a){return{[e]:(0,s.Extends)((0,i.Literal)(e),t,r,n,(0,o.Clone)(a))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.js"}],[5907,{"../clone/value":5879,"../mapped/index":5953,"./extends":5909},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendsFromMappedResult=function(e,t,r,o,a){const u=function(e,t,r,n,o){return function(e,t,r,n,o){const a={};for(const u of globalThis.Object.getOwnPropertyNames(e))a[u]=(0,i.Extends)(e[u],t,r,n,(0,s.Clone)(o));return a}(e.properties,t,r,n,o)}(e,t,r,o,a);return(0,n.MappedResult)(u)};const n=e("../mapped/index"),i=e("./extends"),s=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.js"}],[5908,{"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendsUndefinedCheck=i;const n=e("../symbols/index");function i(e){return"Intersect"===e[n.Kind]?function(e){return e.allOf.every(e=>i(e))}(e):"Union"===e[n.Kind]?function(e){return e.anyOf.some(e=>i(e))}(e):"Not"===e[n.Kind]?function(e){return!i(e.not)}(e):"Undefined"===e[n.Kind]}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.js"}],[5909,{"../create/type":5890,"../guard/kind":5918,"../union/index":6045,"./extends-check":5905,"./extends-from-mapped-key":5906,"./extends-from-mapped-result":5907},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Extends=function(e,t,r,c,l){return(0,u.IsMappedResult)(e)?(0,a.ExtendsFromMappedResult)(e,t,r,c,l):(0,u.IsMappedKey)(e)?(0,n.CreateType)((0,o.ExtendsFromMappedKey)(e,t,r,c,l)):(0,n.CreateType)(function(e,t,r,n){const o=(0,s.ExtendsCheck)(e,t);return o===s.ExtendsResult.Union?(0,i.Union)([r,n]):o===s.ExtendsResult.True?r:n}(e,t,r,c),l)};const n=e("../create/type"),i=e("../union/index"),s=e("./extends-check"),o=e("./extends-from-mapped-key"),a=e("./extends-from-mapped-result"),u=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.js"}],[5910,{"./extends":5909,"./extends-check":5905,"./extends-from-mapped-key":5906,"./extends-from-mapped-result":5907,"./extends-undefined":5908},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./extends-check"),r),i(e("./extends-from-mapped-key"),r),i(e("./extends-from-mapped-result"),r),i(e("./extends-undefined"),r),i(e("./extends"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extends/index.js"}],[5911,{"../mapped/index":5953,"./extract":5913},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtractFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Extract)(e[n],t);return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./extract")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.js"}],[5912,{"../template-literal/index":6027,"./extract":5913},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ExtractFromTemplateLiteral=function(e,t){return(0,n.Extract)((0,i.TemplateLiteralToUnion)(e),t)};const n=e("./extract"),i=e("../template-literal/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.js"}],[5913,{"../create/type":5890,"../extends/index":5910,"../guard/kind":5918,"../never/index":5957,"../union/index":6045,"./extract-from-mapped-result":5911,"./extract-from-template-literal":5912},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Extract=function(e,t,r){return(0,c.IsTemplateLiteral)(e)?(0,n.CreateType)((0,u.ExtractFromTemplateLiteral)(e,t),r):(0,c.IsMappedResult)(e)?(0,n.CreateType)((0,a.ExtractFromMappedResult)(e,t),r):(0,n.CreateType)((0,c.IsUnion)(e)?function(e,t){const r=e.filter(e=>(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False);return 1===r.length?r[0]:(0,i.Union)(r)}(e.anyOf,t):(0,o.ExtendsCheck)(e,t)!==o.ExtendsResult.False?e:(0,s.Never)(),r)};const n=e("../create/type"),i=e("../union/index"),s=e("../never/index"),o=e("../extends/index"),a=e("./extract-from-mapped-result"),u=e("./extract-from-template-literal"),c=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.js"}],[5914,{"./extract":5913,"./extract-from-mapped-result":5911,"./extract-from-template-literal":5912},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./extract-from-mapped-result"),r),i(e("./extract-from-template-literal"),r),i(e("./extract"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/extract/index.js"}],[5915,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Function=function(e,t,r){return(0,n.CreateType)({[i.Kind]:"Function",type:"Function",parameters:e,returns:t},r)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/function/function.js"}],[5916,{"./function":5915},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./function"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/function/index.js"}],[5917,{"./kind":5918,"./type":5919,"./value":5920},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueGuard=r.TypeGuard=r.KindGuard=void 0,r.KindGuard=e("./kind"),r.TypeGuard=e("./type"),r.ValueGuard=e("./value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/guard/index.js"}],[5918,{"../symbols/index":6023,"./value":5920},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IsReadonly=function(e){return n.IsObject(e)&&"Readonly"===e[i.ReadonlyKind]},r.IsOptional=function(e){return n.IsObject(e)&&"Optional"===e[i.OptionalKind]},r.IsAny=s,r.IsArray=o,r.IsAsyncIterator=a,r.IsBigInt=u,r.IsBoolean=c,r.IsConstructor=l,r.IsDate=d,r.IsFunction=h,r.IsInteger=p,r.IsProperties=function(e){return n.IsObject(e)},r.IsIntersect=f,r.IsIterator=m,r.IsKindOf=y,r.IsLiteralString=function(e){return b(e)&&n.IsString(e.const)},r.IsLiteralNumber=function(e){return b(e)&&n.IsNumber(e.const)},r.IsLiteralBoolean=function(e){return b(e)&&n.IsBoolean(e.const)},r.IsLiteral=b,r.IsMappedKey=g,r.IsMappedResult=w,r.IsNever=_,r.IsNot=x,r.IsNull=v,r.IsNumber=T,r.IsObject=O,r.IsPromise=E,r.IsRecord=M,r.IsRecursive=function(e){return n.IsObject(e)&&i.Hint in e&&"Recursive"===e[i.Hint]},r.IsRef=k,r.IsRegExp=j,r.IsString=S,r.IsSymbol=A,r.IsTemplateLiteral=I,r.IsThis=P,r.IsTransform=function(e){return n.IsObject(e)&&i.TransformKind in e},r.IsTuple=C,r.IsUndefined=z,r.IsUnion=R,r.IsUint8Array=N,r.IsUnknown=B,r.IsUnsafe=L,r.IsVoid=U,r.IsKind=D,r.IsSchema=function(e){return s(e)||o(e)||c(e)||u(e)||a(e)||l(e)||d(e)||h(e)||p(e)||f(e)||m(e)||b(e)||g(e)||w(e)||_(e)||x(e)||v(e)||T(e)||O(e)||E(e)||M(e)||k(e)||j(e)||S(e)||A(e)||I(e)||P(e)||C(e)||z(e)||R(e)||N(e)||B(e)||L(e)||U(e)||D(e)};const n=e("./value"),i=e("../symbols/index");function s(e){return y(e,"Any")}function o(e){return y(e,"Array")}function a(e){return y(e,"AsyncIterator")}function u(e){return y(e,"BigInt")}function c(e){return y(e,"Boolean")}function l(e){return y(e,"Constructor")}function d(e){return y(e,"Date")}function h(e){return y(e,"Function")}function p(e){return y(e,"Integer")}function f(e){return y(e,"Intersect")}function m(e){return y(e,"Iterator")}function y(e,t){return n.IsObject(e)&&i.Kind in e&&e[i.Kind]===t}function b(e){return y(e,"Literal")}function g(e){return y(e,"MappedKey")}function w(e){return y(e,"MappedResult")}function _(e){return y(e,"Never")}function x(e){return y(e,"Not")}function v(e){return y(e,"Null")}function T(e){return y(e,"Number")}function O(e){return y(e,"Object")}function E(e){return y(e,"Promise")}function M(e){return y(e,"Record")}function k(e){return y(e,"Ref")}function j(e){return y(e,"RegExp")}function S(e){return y(e,"String")}function A(e){return y(e,"Symbol")}function I(e){return y(e,"TemplateLiteral")}function P(e){return y(e,"This")}function C(e){return y(e,"Tuple")}function z(e){return y(e,"Undefined")}function R(e){return y(e,"Union")}function N(e){return y(e,"Uint8Array")}function B(e){return y(e,"Unknown")}function L(e){return y(e,"Unsafe")}function U(e){return y(e,"Void")}function D(e){return n.IsObject(e)&&i.Kind in e&&n.IsString(e[i.Kind])}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.js"}],[5919,{"../error/index":5900,"../symbols/index":6023,"./value":5920},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeGuardUnknownTypeError=void 0,r.IsReadonly=function(e){return n.IsObject(e)&&"Readonly"===e[i.ReadonlyKind]},r.IsOptional=function(e){return n.IsObject(e)&&"Optional"===e[i.OptionalKind]},r.IsAny=y,r.IsArray=b,r.IsAsyncIterator=g,r.IsBigInt=w,r.IsBoolean=_,r.IsConstructor=x,r.IsDate=v,r.IsFunction=T,r.IsInteger=O,r.IsProperties=E,r.IsIntersect=M,r.IsIterator=k,r.IsKindOf=j,r.IsLiteralString=S,r.IsLiteralNumber=A,r.IsLiteralBoolean=function(e){return I(e)&&n.IsBoolean(e.const)},r.IsLiteral=I,r.IsLiteralValue=P,r.IsMappedKey=C,r.IsMappedResult=z,r.IsNever=R,r.IsNot=N,r.IsNull=B,r.IsNumber=L,r.IsObject=U,r.IsPromise=D,r.IsRecord=F,r.IsRecursive=function(e){return n.IsObject(e)&&i.Hint in e&&"Recursive"===e[i.Hint]},r.IsRef=$,r.IsRegExp=K,r.IsString=G,r.IsSymbol=H,r.IsTemplateLiteral=V,r.IsThis=q,r.IsTransform=W,r.IsTuple=Z,r.IsUndefined=Y,r.IsUnionLiteral=function(e){return J(e)&&e.anyOf.every(e=>S(e)||A(e))},r.IsUnion=J,r.IsUint8Array=X,r.IsUnknown=Q,r.IsUnsafe=ee,r.IsVoid=te,r.IsKind=re,r.IsSchema=ne;const n=e("./value"),i=e("../symbols/index"),s=e("../error/index");class o extends s.TypeBoxError{}r.TypeGuardUnknownTypeError=o;const a=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function u(e){try{return new RegExp(e),!0}catch{return!1}}function c(e){if(!n.IsString(e))return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r>=7&&r<=13||27===r||127===r)return!1}return!0}function l(e){return p(e)||ne(e)}function d(e){return n.IsUndefined(e)||n.IsBigInt(e)}function h(e){return n.IsUndefined(e)||n.IsNumber(e)}function p(e){return n.IsUndefined(e)||n.IsBoolean(e)}function f(e){return n.IsUndefined(e)||n.IsString(e)}function m(e){return n.IsUndefined(e)||ne(e)}function y(e){return j(e,"Any")&&f(e.$id)}function b(e){return j(e,"Array")&&"array"===e.type&&f(e.$id)&&ne(e.items)&&h(e.minItems)&&h(e.maxItems)&&p(e.uniqueItems)&&m(e.contains)&&h(e.minContains)&&h(e.maxContains)}function g(e){return j(e,"AsyncIterator")&&"AsyncIterator"===e.type&&f(e.$id)&&ne(e.items)}function w(e){return j(e,"BigInt")&&"bigint"===e.type&&f(e.$id)&&d(e.exclusiveMaximum)&&d(e.exclusiveMinimum)&&d(e.maximum)&&d(e.minimum)&&d(e.multipleOf)}function _(e){return j(e,"Boolean")&&"boolean"===e.type&&f(e.$id)}function x(e){return j(e,"Constructor")&&"Constructor"===e.type&&f(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every(e=>ne(e))&&ne(e.returns)}function v(e){return j(e,"Date")&&"Date"===e.type&&f(e.$id)&&h(e.exclusiveMaximumTimestamp)&&h(e.exclusiveMinimumTimestamp)&&h(e.maximumTimestamp)&&h(e.minimumTimestamp)&&h(e.multipleOfTimestamp)}function T(e){return j(e,"Function")&&"Function"===e.type&&f(e.$id)&&n.IsArray(e.parameters)&&e.parameters.every(e=>ne(e))&&ne(e.returns)}function O(e){return j(e,"Integer")&&"integer"===e.type&&f(e.$id)&&h(e.exclusiveMaximum)&&h(e.exclusiveMinimum)&&h(e.maximum)&&h(e.minimum)&&h(e.multipleOf)}function E(e){return n.IsObject(e)&&Object.entries(e).every(([e,t])=>c(e)&&ne(t))}function M(e){return j(e,"Intersect")&&(!n.IsString(e.type)||"object"===e.type)&&n.IsArray(e.allOf)&&e.allOf.every(e=>ne(e)&&!W(e))&&f(e.type)&&(p(e.unevaluatedProperties)||m(e.unevaluatedProperties))&&f(e.$id)}function k(e){return j(e,"Iterator")&&"Iterator"===e.type&&f(e.$id)&&ne(e.items)}function j(e,t){return n.IsObject(e)&&i.Kind in e&&e[i.Kind]===t}function S(e){return I(e)&&n.IsString(e.const)}function A(e){return I(e)&&n.IsNumber(e.const)}function I(e){return j(e,"Literal")&&f(e.$id)&&P(e.const)}function P(e){return n.IsBoolean(e)||n.IsNumber(e)||n.IsString(e)}function C(e){return j(e,"MappedKey")&&n.IsArray(e.keys)&&e.keys.every(e=>n.IsNumber(e)||n.IsString(e))}function z(e){return j(e,"MappedResult")&&E(e.properties)}function R(e){return j(e,"Never")&&n.IsObject(e.not)&&0===Object.getOwnPropertyNames(e.not).length}function N(e){return j(e,"Not")&&ne(e.not)}function B(e){return j(e,"Null")&&"null"===e.type&&f(e.$id)}function L(e){return j(e,"Number")&&"number"===e.type&&f(e.$id)&&h(e.exclusiveMaximum)&&h(e.exclusiveMinimum)&&h(e.maximum)&&h(e.minimum)&&h(e.multipleOf)}function U(e){return j(e,"Object")&&"object"===e.type&&f(e.$id)&&E(e.properties)&&l(e.additionalProperties)&&h(e.minProperties)&&h(e.maxProperties)}function D(e){return j(e,"Promise")&&"Promise"===e.type&&f(e.$id)&&ne(e.item)}function F(e){return j(e,"Record")&&"object"===e.type&&f(e.$id)&&l(e.additionalProperties)&&n.IsObject(e.patternProperties)&&(e=>{const t=Object.getOwnPropertyNames(e.patternProperties);return 1===t.length&&u(t[0])&&n.IsObject(e.patternProperties)&&ne(e.patternProperties[t[0]])})(e)}function $(e){return j(e,"Ref")&&f(e.$id)&&n.IsString(e.$ref)}function K(e){return j(e,"RegExp")&&f(e.$id)&&n.IsString(e.source)&&n.IsString(e.flags)&&h(e.maxLength)&&h(e.minLength)}function G(e){return j(e,"String")&&"string"===e.type&&f(e.$id)&&h(e.minLength)&&h(e.maxLength)&&function(e){return n.IsUndefined(e)||n.IsString(e)&&c(e)&&u(e)}(e.pattern)&&function(e){return n.IsUndefined(e)||n.IsString(e)&&c(e)}(e.format)}function H(e){return j(e,"Symbol")&&"symbol"===e.type&&f(e.$id)}function V(e){return j(e,"TemplateLiteral")&&"string"===e.type&&n.IsString(e.pattern)&&"^"===e.pattern[0]&&"$"===e.pattern[e.pattern.length-1]}function q(e){return j(e,"This")&&f(e.$id)&&n.IsString(e.$ref)}function W(e){return n.IsObject(e)&&i.TransformKind in e}function Z(e){return j(e,"Tuple")&&"array"===e.type&&f(e.$id)&&n.IsNumber(e.minItems)&&n.IsNumber(e.maxItems)&&e.minItems===e.maxItems&&(n.IsUndefined(e.items)&&n.IsUndefined(e.additionalItems)&&0===e.minItems||n.IsArray(e.items)&&e.items.every(e=>ne(e)))}function Y(e){return j(e,"Undefined")&&"undefined"===e.type&&f(e.$id)}function J(e){return j(e,"Union")&&f(e.$id)&&n.IsObject(e)&&n.IsArray(e.anyOf)&&e.anyOf.every(e=>ne(e))}function X(e){return j(e,"Uint8Array")&&"Uint8Array"===e.type&&f(e.$id)&&h(e.minByteLength)&&h(e.maxByteLength)}function Q(e){return j(e,"Unknown")&&f(e.$id)}function ee(e){return j(e,"Unsafe")}function te(e){return j(e,"Void")&&"void"===e.type&&f(e.$id)}function re(e){return n.IsObject(e)&&i.Kind in e&&n.IsString(e[i.Kind])&&!a.includes(e[i.Kind])}function ne(e){return n.IsObject(e)&&(y(e)||b(e)||_(e)||w(e)||g(e)||x(e)||v(e)||T(e)||O(e)||M(e)||k(e)||I(e)||C(e)||z(e)||R(e)||N(e)||B(e)||L(e)||U(e)||D(e)||F(e)||$(e)||K(e)||G(e)||H(e)||V(e)||q(e)||Z(e)||Y(e)||J(e)||X(e)||Q(e)||ee(e)||te(e)||re(e))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/guard/type.js"}],[5920,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return Array.isArray(e)}function i(e){return"object"==typeof e&&null!==e}function s(e){return e instanceof globalThis.Uint8Array}Object.defineProperty(r,"__esModule",{value:!0}),r.HasPropertyKey=function(e,t){return t in e},r.IsAsyncIterator=function(e){return i(e)&&!n(e)&&!s(e)&&Symbol.asyncIterator in e},r.IsArray=n,r.IsBigInt=function(e){return"bigint"==typeof e},r.IsBoolean=function(e){return"boolean"==typeof e},r.IsDate=function(e){return e instanceof globalThis.Date},r.IsFunction=function(e){return"function"==typeof e},r.IsIterator=function(e){return i(e)&&!n(e)&&!s(e)&&Symbol.iterator in e},r.IsNull=function(e){return null===e},r.IsNumber=function(e){return"number"==typeof e},r.IsObject=i,r.IsRegExp=function(e){return e instanceof globalThis.RegExp},r.IsString=function(e){return"string"==typeof e},r.IsSymbol=function(e){return"symbol"==typeof e},r.IsUint8Array=s,r.IsUndefined=function(e){return e===undefined}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/guard/value.js"}],[5921,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Increment=function(e){return(parseInt(e)+1).toString()}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.js"}],[5922,{"./helpers":5921},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./helpers"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.js"}],[5923,{"./indexed":5927,"./indexed-from-mapped-key":5924,"./indexed-from-mapped-result":5925,"./indexed-property-keys":5926},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./indexed-from-mapped-key"),r),i(e("./indexed-from-mapped-result"),r),i(e("./indexed-property-keys"),r),i(e("./indexed"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.js"}],[5924,{"../clone/value":5879,"../mapped/index":5953,"./indexed":5927},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IndexFromMappedKey=function(e,t,r){const n=function(e,t,r){return function(e,t,r){return t.reduce((t,n)=>({...t,...o(e,n,r)}),{})}(e,t.keys,r)}(e,t,r);return(0,i.MappedResult)(n)};const n=e("./indexed"),i=e("../mapped/index"),s=e("../clone/value");function o(e,t,r){return{[t]:(0,n.Index)(e,[t],(0,s.Clone)(r))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.js"}],[5925,{"../mapped/index":5953,"./index":5923,"./indexed-property-keys":5926},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IndexFromMappedResult=function(e,t,r){const o=function(e,t,r){return function(e,t,r){const n={};for(const o of Object.getOwnPropertyNames(t))n[o]=(0,s.Index)(e,(0,i.IndexPropertyKeys)(t[o]),r);return n}(e,t.properties,r)}(e,t,r);return(0,n.MappedResult)(o)};const n=e("../mapped/index"),i=e("./indexed-property-keys"),s=e("./index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.js"}],[5926,{"../guard/kind":5918,"../template-literal/index":6027},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IndexPropertyKeys=u;const n=e("../template-literal/index"),i=e("../guard/kind");function s(e){return(0,n.TemplateLiteralGenerate)(e).map(e=>e.toString())}function o(e){const t=[];for(const r of e)t.push(...u(r));return t}function a(e){return[e.toString()]}function u(e){return[...new Set((0,i.IsTemplateLiteral)(e)?s(e):(0,i.IsUnion)(e)?o(e.anyOf):(0,i.IsLiteral)(e)?a(e.const):(0,i.IsNumber)(e)||(0,i.IsInteger)(e)?["[number]"]:[])]}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.js"}],[5927,{"../create/type":5890,"../guard/kind":5918,"../intersect/index":5932,"../never/index":5957,"../union/index":6045,"./indexed-from-mapped-key":5924,"./indexed-from-mapped-result":5925,"./indexed-property-keys":5926},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IndexFromPropertyKey=f,r.IndexFromPropertyKeys=m,r.Index=function(e,t,r){return(0,l.IsMappedResult)(t)?(0,c.IndexFromMappedResult)(e,t,r):(0,l.IsMappedKey)(t)?(0,u.IndexFromMappedKey)(e,t,r):(0,n.CreateType)((0,l.IsSchema)(t)?y(e,(0,a.IndexPropertyKeys)(t)):y(e,t),r)};const n=e("../create/type"),i=e("../never/index"),s=e("../intersect/index"),o=e("../union/index"),a=e("./indexed-property-keys"),u=e("./indexed-from-mapped-key"),c=e("./indexed-from-mapped-result"),l=e("../guard/kind");function d(e,t){return e.map(e=>f(e,t))}function h(e,t){return(0,s.IntersectEvaluated)(function(e){return e.filter(e=>!(0,l.IsNever)(e))}(d(e,t)))}function p(e,t){return(0,o.UnionEvaluated)(function(e){return e.some(e=>(0,l.IsNever)(e))?[]:e}(d(e,t)))}function f(e,t){return(0,l.IsIntersect)(e)?h(e.allOf,t):(0,l.IsUnion)(e)?p(e.anyOf,t):(0,l.IsTuple)(e)?function(e,t){return t in e?e[t]:"[number]"===t?(0,o.UnionEvaluated)(e):(0,i.Never)()}(e.items??[],t):(0,l.IsArray)(e)?function(e,t){return"[number]"===t?e:(0,i.Never)()}(e.items,t):(0,l.IsObject)(e)?function(e,t){return t in e?e[t]:(0,i.Never)()}(e.properties,t):(0,i.Never)()}function m(e,t){return t.map(t=>f(e,t))}function y(e,t){return(0,o.UnionEvaluated)(m(e,t))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.js"}],[5928,{"./instance-type":5929},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./instance-type"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.js"}],[5929,{"../create/type":5890},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InstanceType=function(e,t){return(0,n.CreateType)(e.returns,t)};const n=e("../create/type")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.js"}],[5930,{"./integer":5931},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./integer"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/integer/index.js"}],[5931,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Integer=function(e){return(0,n.CreateType)({[i.Kind]:"Integer",type:"integer"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.js"}],[5932,{"./intersect":5936,"./intersect-evaluated":5934,"./intersect-type":5935},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./intersect-evaluated"),r),i(e("./intersect-type"),r),i(e("./intersect"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.js"}],[5933,{"../create/type":5890,"../guard/kind":5918,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IntersectCreate=function(e,t={}){const r=e.every(e=>(0,s.IsObject)(e)),o=(0,s.IsSchema)(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return(0,n.CreateType)(!1===t.unevaluatedProperties||(0,s.IsSchema)(t.unevaluatedProperties)||r?{...o,[i.Kind]:"Intersect",type:"object",allOf:e}:{...o,[i.Kind]:"Intersect",allOf:e},t)};const n=e("../create/type"),i=e("../symbols/index"),s=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.js"}],[5934,{"../create/type":5890,"../discard/index":5896,"../guard/kind":5918,"../never/index":5957,"../optional/index":5971,"../symbols/index":6023,"./intersect-create":5933},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IntersectEvaluated=function(e,t={}){if(0===e.length)return(0,o.Never)(t);if(1===e.length)return(0,i.CreateType)(e[0],t);if(e.some(e=>(0,c.IsTransform)(e)))throw new Error("Cannot intersect transform types");return function(e,t){return function(e){return e.every(e=>(0,c.IsOptional)(e))}(e)?(0,a.Optional)((0,u.IntersectCreate)(l(e),t)):(0,u.IntersectCreate)(l(e),t)}(e,t)};const n=e("../symbols/index"),i=e("../create/type"),s=e("../discard/index"),o=e("../never/index"),a=e("../optional/index"),u=e("./intersect-create"),c=e("../guard/kind");function l(e){return e.map(e=>(0,c.IsOptional)(e)?function(e){return(0,s.Discard)(e,[n.OptionalKind])}(e):e)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.js"}],[5935,{"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.js"}],[5936,{"../create/type":5890,"../guard/kind":5918,"../never/index":5957,"./intersect-create":5933},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Intersect=function(e,t){if(0===e.length)return(0,i.Never)(t);if(1===e.length)return(0,n.CreateType)(e[0],t);if(e.some(e=>(0,o.IsTransform)(e)))throw new Error("Cannot intersect transform types");return(0,s.IntersectCreate)(e,t)};const n=e("../create/type"),i=e("../never/index"),s=e("./intersect-create"),o=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.js"}],[5937,{"./intrinsic":5940},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Capitalize=function(e,t={}){return(0,n.Intrinsic)(e,"Capitalize",t)};const n=e("./intrinsic")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.js"}],[5938,{"./capitalize":5937,"./intrinsic":5940,"./intrinsic-from-mapped-key":5939,"./lowercase":5941,"./uncapitalize":5942,"./uppercase":5943},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./capitalize"),r),i(e("./intrinsic-from-mapped-key"),r),i(e("./intrinsic"),r),i(e("./lowercase"),r),i(e("./uncapitalize"),r),i(e("./uppercase"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.js"}],[5939,{"../clone/value":5879,"../literal/index":5951,"../mapped/index":5953,"./intrinsic":5940},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IntrinsicFromMappedKey=function(e,t,r){const i=function(e,t,r){return function(e,t,r){const n=e.reduce((e,n)=>({...e,...a(n,t,r)}),{});return n}(e.keys,t,r)}(e,t,r);return(0,n.MappedResult)(i)};const n=e("../mapped/index"),i=e("./intrinsic"),s=e("../literal/index"),o=e("../clone/value");function a(e,t,r){return{[e]:(0,i.Intrinsic)((0,s.Literal)(e),t,(0,o.Clone)(r))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.js"}],[5940,{"../create/type":5890,"../guard/kind":5918,"../literal/index":5951,"../template-literal/index":6027,"../union/index":6045,"./intrinsic-from-mapped-key":5939},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Intrinsic=d;const n=e("../create/type"),i=e("../template-literal/index"),s=e("./intrinsic-from-mapped-key"),o=e("../literal/index"),a=e("../union/index"),u=e("../guard/kind");function c(e,t){return"string"==typeof e?"Uncapitalize"===t?function(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}(e):"Capitalize"===t?function(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}(e):"Uppercase"===t?function(e){return e.toUpperCase()}(e):"Lowercase"===t?function(e){return e.toLowerCase()}(e):e:e.toString()}function l(e,t){return e.map(e=>d(e,t))}function d(e,t,r={}){return(0,u.IsMappedKey)(e)?(0,s.IntrinsicFromMappedKey)(e,t,r):(0,u.IsTemplateLiteral)(e)?function(e,t,r){const n=(0,i.TemplateLiteralParseExact)(e.pattern);if(!(0,i.IsTemplateLiteralExpressionFinite)(n))return{...e,pattern:c(e.pattern,t)};const s=l([...(0,i.TemplateLiteralExpressionGenerate)(n)].map(e=>(0,o.Literal)(e)),t),u=(0,a.Union)(s);return(0,i.TemplateLiteral)([u],r)}(e,t,r):(0,u.IsUnion)(e)?(0,a.Union)(l(e.anyOf,t),r):(0,u.IsLiteral)(e)?(0,o.Literal)(c(e.const,t),r):(0,n.CreateType)(e,r)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.js"}],[5941,{"./intrinsic":5940},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Lowercase=function(e,t={}){return(0,n.Intrinsic)(e,"Lowercase",t)};const n=e("./intrinsic")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.js"}],[5942,{"./intrinsic":5940},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Uncapitalize=function(e,t={}){return(0,n.Intrinsic)(e,"Uncapitalize",t)};const n=e("./intrinsic")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.js"}],[5943,{"./intrinsic":5940},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Uppercase=function(e,t={}){return(0,n.Intrinsic)(e,"Uppercase",t)};const n=e("./intrinsic")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.js"}],[5944,{"./iterator":5945},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./iterator"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.js"}],[5945,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Iterator=function(e,t){return(0,n.CreateType)({[i.Kind]:"Iterator",type:"Iterator",items:e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.js"}],[5946,{"./keyof":5950,"./keyof-from-mapped-result":5947,"./keyof-property-entries":5948,"./keyof-property-keys":5949},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./keyof-from-mapped-result"),r),i(e("./keyof-property-entries"),r),i(e("./keyof-property-keys"),r),i(e("./keyof"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.js"}],[5947,{"../clone/value":5879,"../mapped/index":5953,"./keyof":5950},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyOfFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.KeyOf)(e[n],(0,s.Clone)(t));return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./keyof"),s=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.js"}],[5948,{"../indexed/indexed":5927,"./keyof-property-keys":5949},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyOfPropertyEntries=function(e){const t=(0,i.KeyOfPropertyKeys)(e),r=(0,n.IndexFromPropertyKeys)(e,t);return t.map((e,n)=>[t[n],r[n]])};const n=e("../indexed/indexed"),i=e("./keyof-property-keys")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.js"}],[5949,{"../guard/kind":5918,"../sets/index":6013},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyOfPropertyKeys=o,r.KeyOfPattern=function(e){a=!0;const t=o(e);a=!1;return`^(${t.map(e=>`(${e})`).join("|")})$`};const n=e("../sets/index"),i=e("../guard/kind");function s(e){const t=[];for(const r of e)t.push(o(r));return t}function o(e){return(0,i.IsIntersect)(e)?function(e){const t=s(e);return(0,n.SetUnionMany)(t)}(e.allOf):(0,i.IsUnion)(e)?function(e){const t=s(e);return(0,n.SetIntersectMany)(t)}(e.anyOf):(0,i.IsTuple)(e)?function(e){return e.map((e,t)=>t.toString())}(e.items??[]):(0,i.IsArray)(e)?(e.items,["[number]"]):(0,i.IsObject)(e)?function(e){return globalThis.Object.getOwnPropertyNames(e)}(e.properties):(0,i.IsRecord)(e)?(t=e.patternProperties,a?globalThis.Object.getOwnPropertyNames(t).map(e=>"^"===e[0]&&"$"===e[e.length-1]?e.slice(1,e.length-1):e):[]):[];var t}let a=!1}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.js"}],[5950,{"../create/type":5890,"../guard/kind":5918,"../literal/index":5951,"../number/index":5963,"../union/index":6045,"./keyof-from-mapped-result":5947,"./keyof-property-keys":5949},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyOfPropertyKeysToRest=l,r.KeyOf=function(e,t){if((0,c.IsMappedResult)(e))return(0,u.KeyOfFromMappedResult)(e,t);{const r=l((0,o.KeyOfPropertyKeys)(e)),i=(0,a.UnionEvaluated)(r);return(0,n.CreateType)(i,t)}};const n=e("../create/type"),i=e("../literal/index"),s=e("../number/index"),o=e("./keyof-property-keys"),a=e("../union/index"),u=e("./keyof-from-mapped-result"),c=e("../guard/kind");function l(e){return e.map(e=>"[number]"===e?(0,s.Number)():(0,i.Literal)(e))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.js"}],[5951,{"./literal":5952},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./literal"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/literal/index.js"}],[5952,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Literal=function(e,t){return(0,n.CreateType)({[i.Kind]:"Literal",const:e,type:typeof e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.js"}],[5953,{"./mapped":5956,"./mapped-key":5954,"./mapped-result":5955},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./mapped-key"),r),i(e("./mapped-result"),r),i(e("./mapped"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.js"}],[5954,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MappedKey=function(e){return(0,n.CreateType)({[i.Kind]:"MappedKey",keys:e})};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.js"}],[5955,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MappedResult=function(e){return(0,n.CreateType)({[i.Kind]:"MappedResult",properties:e})};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.js"}],[5956,{"../array/index":5868,"../async-iterator/index":5870,"../constructor/index":5887,"../discard/index":5896,"../function/index":5916,"../guard/kind":5918,"../indexed/index":5923,"../intersect/index":5932,"../iterator/index":5944,"../literal/index":5951,"../object/index":5965,"../optional/index":5971,"../promise/index":5985,"../readonly/index":5989,"../sets/index":6013,"../symbols/index":6023,"../tuple/index":6035,"../union/index":6045,"./mapped-result":5955},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MappedFunctionReturnType=M,r.Mapped=function(e,t,r){const i=(0,x.IsSchema)(e)?(0,c.IndexPropertyKeys)(e):e,s=t({[n.Kind]:"MappedKey",keys:i}),o=M(i,s);return(0,p.Object)(o,r)};const n=e("../symbols/index"),i=e("../discard/index"),s=e("../array/index"),o=e("../async-iterator/index"),a=e("../constructor/index"),u=e("../function/index"),c=e("../indexed/index"),l=e("../intersect/index"),d=e("../iterator/index"),h=e("../literal/index"),p=e("../object/index"),f=e("../optional/index"),m=e("../promise/index"),y=e("../readonly/index"),b=e("../tuple/index"),g=e("../union/index"),w=e("../sets/index"),_=e("./mapped-result"),x=e("../guard/kind");function v(e,t){return e in t?E(e,t[e]):(0,_.MappedResult)(t)}function T(e,t){return(0,w.SetIncludes)(t,e)?function(e){return{[e]:(0,h.Literal)(e)}}(e):function(e){const t={};for(const r of e)t[r]=(0,h.Literal)(r);return t}(t)}function O(e,t){return t.map(t=>E(e,t))}function E(e,t){const r={...t};return(0,x.IsOptional)(t)?(0,f.Optional)(E(e,(0,i.Discard)(t,[n.OptionalKind]))):(0,x.IsReadonly)(t)?(0,y.Readonly)(E(e,(0,i.Discard)(t,[n.ReadonlyKind]))):(0,x.IsMappedResult)(t)?v(e,t.properties):(0,x.IsMappedKey)(t)?function(e,t){return v(e,T(e,t))}(e,t.keys):(0,x.IsConstructor)(t)?(0,a.Constructor)(O(e,t.parameters),E(e,t.returns),r):(0,x.IsFunction)(t)?(0,u.Function)(O(e,t.parameters),E(e,t.returns),r):(0,x.IsAsyncIterator)(t)?(0,o.AsyncIterator)(E(e,t.items),r):(0,x.IsIterator)(t)?(0,d.Iterator)(E(e,t.items),r):(0,x.IsIntersect)(t)?(0,l.Intersect)(O(e,t.allOf),r):(0,x.IsUnion)(t)?(0,g.Union)(O(e,t.anyOf),r):(0,x.IsTuple)(t)?(0,b.Tuple)(O(e,t.items??[]),r):(0,x.IsObject)(t)?(0,p.Object)(function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(t))r[n]=E(e,t[n]);return r}(e,t.properties),r):(0,x.IsArray)(t)?(0,s.Array)(E(e,t.items),r):(0,x.IsPromise)(t)?(0,m.Promise)(E(e,t.item),r):t}function M(e,t){const r={};for(const n of e)r[n]=E(n,t);return r}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.js"}],[5957,{"./never":5958},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./never"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/never/index.js"}],[5958,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Never=function(e){return(0,n.CreateType)({[i.Kind]:"Never",not:{}},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/never/never.js"}],[5959,{"./not":5960},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./not"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/not/index.js"}],[5960,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Not=function(e,t){return(0,n.CreateType)({[i.Kind]:"Not",not:e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/not/not.js"}],[5961,{"./null":5962},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./null"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/null/index.js"}],[5962,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Null=function(e){return(0,n.CreateType)({[i.Kind]:"Null",type:"null"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/null/null.js"}],[5963,{"./number":5964},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./number"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/number/index.js"}],[5964,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Number=function(e){return(0,n.CreateType)({[i.Kind]:"Number",type:"number"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/number/number.js"}],[5965,{"./object":5966},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./object"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/object/index.js"}],[5966,{"../create/type":5890,"../guard/kind":5918,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Object=void 0;const n=e("../create/type"),i=e("../symbols/index"),s=e("../guard/kind");r.Object=function(e,t){const r=function(e){const t=[];for(let r in e)(0,s.IsOptional)(e[r])||t.push(r);return t}(e),o=r.length>0?{[i.Kind]:"Object",type:"object",properties:e,required:r}:{[i.Kind]:"Object",type:"object",properties:e};return(0,n.CreateType)(o,t)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/object/object.js"}],[5967,{"./omit":5970,"./omit-from-mapped-key":5968,"./omit-from-mapped-result":5969},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./omit-from-mapped-key"),r),i(e("./omit-from-mapped-result"),r),i(e("./omit"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/omit/index.js"}],[5968,{"../clone/value":5879,"../mapped/index":5953,"./omit":5970},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OmitFromMappedKey=function(e,t,r){const i=function(e,t,r){return function(e,t,r){return t.reduce((t,n)=>({...t,...o(e,n,r)}),{})}(e,t.keys,r)}(e,t,r);return(0,n.MappedResult)(i)};const n=e("../mapped/index"),i=e("./omit"),s=e("../clone/value");function o(e,t,r){return{[t]:(0,i.Omit)(e,[t],(0,s.Clone)(r))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.js"}],[5969,{"../clone/value":5879,"../mapped/index":5953,"./omit":5970},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OmitFromMappedResult=function(e,t,r){const o=function(e,t,r){return function(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,i.Omit)(e[o],t,(0,s.Clone)(r));return n}(e.properties,t,r)}(e,t,r);return(0,n.MappedResult)(o)};const n=e("../mapped/index"),i=e("./omit"),s=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.js"}],[5970,{"../create/type":5890,"../discard/discard":5895,"../guard/kind":5918,"../indexed/index":5923,"../intersect/index":5932,"../object/index":5965,"../symbols/symbols":6024,"../union/index":6045,"./omit-from-mapped-key":5968,"./omit-from-mapped-result":5969},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Omit=function(e,t,r){if((0,h.IsMappedKey)(t))return(0,c.OmitFromMappedKey)(e,t,r);if((0,h.IsMappedResult)(e))return(0,l.OmitFromMappedResult)(e,t,r);const i=(0,h.IsSchema)(t)?(0,u.IndexPropertyKeys)(t):t;return(0,n.CreateType)({...p(e,i),...r})};const n=e("../create/type"),i=e("../discard/discard"),s=e("../intersect/index"),o=e("../union/index"),a=e("../object/index"),u=e("../indexed/index"),c=e("./omit-from-mapped-key"),l=e("./omit-from-mapped-result"),d=e("../symbols/symbols"),h=e("../guard/kind");function p(e,t){return(0,h.IsIntersect)(e)?(0,s.Intersect)(function(e,t){return e.map(e=>p(e,t))}(e.allOf,t)):(0,h.IsUnion)(e)?(0,o.Union)(function(e,t){return e.map(e=>p(e,t))}(e.anyOf,t)):(0,h.IsObject)(e)?function(e,t){const r=(0,i.Discard)(e,[d.TransformKind,"$id","required","properties"]),n=function(e,t){return t.reduce((e,t)=>function(e,t){const{[t]:r,...n}=e;return n}(e,t),e)}(e.properties,t);return(0,a.Object)(n,r)}(e,t):(0,a.Object)({})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.js"}],[5971,{"./optional":5973,"./optional-from-mapped-result":5972},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./optional-from-mapped-result"),r),i(e("./optional"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/optional/index.js"}],[5972,{"../mapped/index":5953,"./optional":5973},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OptionalFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Optional)(e[n],t);return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./optional")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.js"}],[5973,{"../create/type":5890,"../discard/index":5896,"../guard/kind":5918,"../symbols/index":6023,"./optional-from-mapped-result":5972},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Optional=function(e,t){const r=t??!0;return(0,a.IsMappedResult)(e)?(0,o.OptionalFromMappedResult)(e,r):function(e,t){return!1===t?function(e){return(0,n.CreateType)((0,s.Discard)(e,[i.OptionalKind]))}(e):function(e){return(0,n.CreateType)({...e,[i.OptionalKind]:"Optional"})}(e)}(e,r)};const n=e("../create/type"),i=e("../symbols/index"),s=e("../discard/index"),o=e("./optional-from-mapped-result"),a=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.js"}],[5974,{"./parameters":5975},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./parameters"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.js"}],[5975,{"../tuple/index":6035},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Parameters=function(e,t){return(0,n.Tuple)(e.parameters,t)};const n=e("../tuple/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.js"}],[5976,{"./partial":5978,"./partial-from-mapped-result":5977},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./partial-from-mapped-result"),r),i(e("./partial"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/partial/index.js"}],[5977,{"../clone/value":5879,"../mapped/index":5953,"./partial":5978},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PartialFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Partial)(e[n],(0,s.Clone)(t));return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./partial"),s=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.js"}],[5978,{"../create/type":5890,"../discard/index":5896,"../guard/kind":5918,"../intersect/index":5932,"../object/index":5965,"../optional/index":5971,"../symbols/index":6023,"../union/index":6045,"./partial-from-mapped-result":5977},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Partial=function(e,t){return(0,d.IsMappedResult)(e)?(0,l.PartialFromMappedResult)(e,t):(0,n.CreateType)({...f(e),...t})};const n=e("../create/type"),i=e("../optional/index"),s=e("../object/index"),o=e("../intersect/index"),a=e("../union/index"),u=e("../discard/index"),c=e("../symbols/index"),l=e("./partial-from-mapped-result"),d=e("../guard/kind");function h(e){return e.map(e=>f(e))}function p(e){const t=(0,u.Discard)(e,[c.TransformKind,"$id","required","properties"]),r=function(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,i.Optional)(e[r]);return t}(e.properties);return(0,s.Object)(r,t)}function f(e){return(0,d.IsIntersect)(e)?(0,o.Intersect)(h(e.allOf)):(0,d.IsUnion)(e)?(0,a.Union)(h(e.anyOf)):(0,d.IsObject)(e)?p(e):(0,s.Object)({})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.js"}],[5979,{"./patterns":5980},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./patterns"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.js"}],[5980,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PatternNeverExact=r.PatternStringExact=r.PatternNumberExact=r.PatternBooleanExact=r.PatternNever=r.PatternString=r.PatternNumber=r.PatternBoolean=void 0,r.PatternBoolean="(true|false)",r.PatternNumber="(0|[1-9][0-9]*)",r.PatternString="(.*)",r.PatternNever="(?!.*)",r.PatternBooleanExact=`^${r.PatternBoolean}$`,r.PatternNumberExact=`^${r.PatternNumber}$`,r.PatternStringExact=`^${r.PatternString}$`,r.PatternNeverExact=`^${r.PatternNever}$`}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.js"}],[5981,{"./pick":5984,"./pick-from-mapped-key":5982,"./pick-from-mapped-result":5983},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./pick-from-mapped-key"),r),i(e("./pick-from-mapped-result"),r),i(e("./pick"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/pick/index.js"}],[5982,{"../clone/value":5879,"../mapped/index":5953,"./pick":5984},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PickFromMappedKey=function(e,t,r){const i=function(e,t,r){return function(e,t,r){return t.reduce((t,n)=>({...t,...o(e,n,r)}),{})}(e,t.keys,r)}(e,t,r);return(0,n.MappedResult)(i)};const n=e("../mapped/index"),i=e("./pick"),s=e("../clone/value");function o(e,t,r){return{[t]:(0,i.Pick)(e,[t],(0,s.Clone)(r))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.js"}],[5983,{"../clone/value":5879,"../mapped/index":5953,"./pick":5984},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PickFromMappedResult=function(e,t,r){const o=function(e,t,r){return function(e,t,r){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=(0,i.Pick)(e[o],t,(0,s.Clone)(r));return n}(e.properties,t,r)}(e,t,r);return(0,n.MappedResult)(o)};const n=e("../mapped/index"),i=e("./pick"),s=e("../clone/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.js"}],[5984,{"../create/type":5890,"../discard/discard":5895,"../guard/kind":5918,"../indexed/index":5923,"../intersect/index":5932,"../object/index":5965,"../symbols/symbols":6024,"../union/index":6045,"./pick-from-mapped-key":5982,"./pick-from-mapped-result":5983},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Pick=function(e,t,r){if((0,h.IsMappedKey)(t))return(0,c.PickFromMappedKey)(e,t,r);if((0,h.IsMappedResult)(e))return(0,l.PickFromMappedResult)(e,t,r);const i=(0,h.IsSchema)(t)?(0,u.IndexPropertyKeys)(t):t;return(0,n.CreateType)({...p(e,i),...r})};const n=e("../create/type"),i=e("../discard/discard"),s=e("../intersect/index"),o=e("../union/index"),a=e("../object/index"),u=e("../indexed/index"),c=e("./pick-from-mapped-key"),l=e("./pick-from-mapped-result"),d=e("../symbols/symbols"),h=e("../guard/kind");function p(e,t){return(0,h.IsIntersect)(e)?(0,s.Intersect)(function(e,t){return e.map(e=>p(e,t))}(e.allOf,t)):(0,h.IsUnion)(e)?(0,o.Union)(function(e,t){return e.map(e=>p(e,t))}(e.anyOf,t)):(0,h.IsObject)(e)?function(e,t){const r=(0,i.Discard)(e,[d.TransformKind,"$id","required","properties"]),n=function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(e.properties,t);return(0,a.Object)(n,r)}(e,t):(0,a.Object)({})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.js"}],[5985,{"./promise":5986},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./promise"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/promise/index.js"}],[5986,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Promise=function(e,t){return(0,n.CreateType)({[i.Kind]:"Promise",type:"Promise",item:e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.js"}],[5987,{"./readonly-optional":5988},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./readonly-optional"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.js"}],[5988,{"../optional/index":5971,"../readonly/index":5989},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ReadonlyOptional=function(e){return(0,n.Readonly)((0,i.Optional)(e))};const n=e("../readonly/index"),i=e("../optional/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.js"}],[5989,{"./readonly":5991,"./readonly-from-mapped-result":5990},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./readonly-from-mapped-result"),r),i(e("./readonly"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.js"}],[5990,{"../mapped/index":5953,"./readonly":5991},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ReadonlyFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Readonly)(e[n],t);return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./readonly")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.js"}],[5991,{"../create/type":5890,"../discard/index":5896,"../guard/kind":5918,"../symbols/index":6023,"./readonly-from-mapped-result":5990},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Readonly=function(e,t){const r=t??!0;return(0,a.IsMappedResult)(e)?(0,o.ReadonlyFromMappedResult)(e,r):function(e,t){return!1===t?function(e){return(0,n.CreateType)((0,s.Discard)(e,[i.ReadonlyKind]))}(e):function(e){return(0,n.CreateType)({...e,[i.ReadonlyKind]:"Readonly"})}(e)}(e,r)};const n=e("../create/type"),i=e("../symbols/index"),s=e("../discard/index"),o=e("./readonly-from-mapped-result"),a=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.js"}],[5992,{"./record":5993},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./record"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/record/index.js"}],[5993,{"../create/type":5890,"../guard/kind":5918,"../guard/value":5920,"../indexed/index":5923,"../never/index":5957,"../object/index":5965,"../patterns/index":5979,"../symbols/index":6023,"../template-literal/index":6027,"../union/index":6045},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Record=function(e,t,r={}){return(0,h.IsUnion)(e)?function(e,t,r){return f((0,c.IndexPropertyKeys)((0,o.Union)(e)),t,r)}(e.anyOf,t,r):(0,h.IsTemplateLiteral)(e)?function(e,t,r){return(0,a.IsTemplateLiteralFinite)(e)?f((0,c.IndexPropertyKeys)(e),t,r):p(e.pattern,t,r)}(e,t,r):(0,h.IsLiteral)(e)?function(e,t,r){return f([e.toString()],t,r)}(e.const,t,r):(0,h.IsInteger)(e)||(0,h.IsNumber)(e)?function(e,t,r){return p(u.PatternNumberExact,t,r)}(0,t,r):(0,h.IsRegExp)(e)?function(e,t,r){return p(e.source,t,r)}(e,t,r):(0,h.IsString)(e)?function(e,t,r){const n=(0,d.IsUndefined)(e.pattern)?u.PatternStringExact:e.pattern;return p(n,t,r)}(e,t,r):(0,h.IsAny)(e)?function(e,t,r){return p(u.PatternStringExact,t,r)}(0,t,r):(0,h.IsNever)(e)?function(e,t,r){return p(u.PatternNeverExact,t,r)}(0,t,r):(0,s.Never)(r)};const n=e("../create/type"),i=e("../object/index"),s=e("../never/index"),o=e("../union/index"),a=e("../template-literal/index"),u=e("../patterns/index"),c=e("../indexed/index"),l=e("../symbols/index"),d=e("../guard/value"),h=e("../guard/kind");function p(e,t,r){return(0,n.CreateType)({[l.Kind]:"Record",type:"object",patternProperties:{[e]:t}},r)}function f(e,t,r){const n={};for(const r of e)n[r]=t;return(0,i.Object)(n,{...r,[l.Hint]:"Record"})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/record/record.js"}],[5994,{"./recursive":5995},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./recursive"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.js"}],[5995,{"../clone/type":5878,"../create/type":5890,"../guard/value":5920,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Recursive=function(e,t={}){(0,s.IsUndefined)(t.$id)&&(t.$id="T"+a++);const r=(0,n.CloneType)(e({[o.Kind]:"This",$ref:`${t.$id}`}));return r.$id=t.$id,(0,i.CreateType)({[o.Hint]:"Recursive",...r},t)};const n=e("../clone/type"),i=e("../create/type"),s=e("../guard/value"),o=e("../symbols/index");let a=0}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.js"}],[5996,{"./ref":5997},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./ref"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/ref/index.js"}],[5997,{"../create/type":5890,"../guard/value":5920,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Ref=function(e,t){if((0,s.IsString)(e))return(0,n.CreateType)({[i.Kind]:"Ref",$ref:e},t);if((0,s.IsUndefined)(e.$id))throw new Error("Reference target type must specify an $id");return(0,n.CreateType)({[i.Kind]:"Ref",$ref:e.$id},t)};const n=e("../create/type"),i=e("../symbols/index"),s=e("../guard/value")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.js"}],[5998,{"./regexp":5999},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./regexp"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.js"}],[5999,{"../create/type":5890,"../guard/value":5920,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RegExp=function(e,t){const r=(0,i.IsString)(e)?new globalThis.RegExp(e):e;return(0,n.CreateType)({[s.Kind]:"RegExp",type:"RegExp",source:r.source,flags:r.flags},t)};const n=e("../create/type"),i=e("../guard/value"),s=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.js"}],[6e3,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Entries=function(){return new Map(n)},r.Clear=function(){return n.clear()},r.Delete=function(e){return n.delete(e)},r.Has=function(e){return n.has(e)},r.Set=function(e,t){n.set(e,t)},r.Get=function(e){return n.get(e)};const n=new Map}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/registry/format.js"}],[6001,{"./format":6e3,"./type":6002},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeRegistry=r.FormatRegistry=void 0,r.FormatRegistry=e("./format"),r.TypeRegistry=e("./type")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/registry/index.js"}],[6002,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Entries=function(){return new Map(n)},r.Clear=function(){return n.clear()},r.Delete=function(e){return n.delete(e)},r.Has=function(e){return n.has(e)},r.Set=function(e,t){n.set(e,t)},r.Get=function(e){return n.get(e)};const n=new Map}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/registry/type.js"}],[6003,{"./required":6005,"./required-from-mapped-result":6004},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./required-from-mapped-result"),r),i(e("./required"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/required/index.js"}],[6004,{"../mapped/index":5953,"./required":6005},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RequiredFromMappedResult=function(e,t){const r=function(e,t){return function(e,t){const r={};for(const n of globalThis.Object.getOwnPropertyNames(e))r[n]=(0,i.Required)(e[n],t);return r}(e.properties,t)}(e,t);return(0,n.MappedResult)(r)};const n=e("../mapped/index"),i=e("./required")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.js"}],[6005,{"../create/type":5890,"../discard/index":5896,"../guard/kind":5918,"../intersect/index":5932,"../object/index":5965,"../symbols/index":6023,"../union/index":6045,"./required-from-mapped-result":6004},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Required=function(e,t){return(0,l.IsMappedResult)(e)?(0,c.RequiredFromMappedResult)(e,t):(0,n.CreateType)({...p(e),...t})};const n=e("../create/type"),i=e("../intersect/index"),s=e("../union/index"),o=e("../object/index"),a=e("../symbols/index"),u=e("../discard/index"),c=e("./required-from-mapped-result"),l=e("../guard/kind");function d(e){return e.map(e=>p(e))}function h(e){const t=(0,u.Discard)(e,[a.TransformKind,"$id","required","properties"]),r=function(e){const t={};for(const r of globalThis.Object.getOwnPropertyNames(e))t[r]=(0,u.Discard)(e[r],[a.OptionalKind]);return t}(e.properties);return(0,o.Object)(r,t)}function p(e){return(0,l.IsIntersect)(e)?(0,i.Intersect)(d(e.allOf)):(0,l.IsUnion)(e)?(0,s.Union)(d(e.anyOf)):(0,l.IsObject)(e)?h(e):(0,o.Object)({})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/required/required.js"}],[6006,{"./rest":6007},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./rest"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/rest/index.js"}],[6007,{"../guard/kind":5918},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Rest=function(e){return function(e){return(0,n.IsIntersect)(e)?e.allOf:(0,n.IsUnion)(e)?e.anyOf:(0,n.IsTuple)(e)?e.items??[]:[]}(e)};const n=e("../guard/kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.js"}],[6008,{"./return-type":6009},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./return-type"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.js"}],[6009,{"../create/type":5890},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ReturnType=function(e,t){return(0,n.CreateType)(e.returns,t)};const n=e("../create/type")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.js"}],[6010,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.js"}],[6011,{"./anyschema":6010,"./schema":6012},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./anyschema"),r),i(e("./schema"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/schema/index.js"}],[6012,{"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.js"}],[6013,{"./set":6014},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./set"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/sets/index.js"}],[6014,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t){return e.includes(t)}function i(e,t){return e.filter(e=>t.includes(e))}Object.defineProperty(r,"__esModule",{value:!0}),r.SetIncludes=n,r.SetIsSubset=function(e,t){return e.every(e=>n(t,e))},r.SetDistinct=function(e){return[...new Set(e)]},r.SetIntersect=i,r.SetUnion=function(e,t){return[...e,...t]},r.SetComplement=function(e,t){return e.filter(e=>!t.includes(e))},r.SetIntersectMany=function(e){return 1===e.length?e[0]:e.length>1?function(e,t){return e.reduce((e,t)=>i(e,t),t)}(e.slice(1),e[0]):[]},r.SetUnionMany=function(e){const t=[];for(const r of e)t.push(...r);return t}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/sets/set.js"}],[6015,{"./static":6016},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./static"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/static/index.js"}],[6016,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/static/static.js"}],[6017,{"./strict":6018},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./strict"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/strict/index.js"}],[6018,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Strict=function(e){return JSON.parse(JSON.stringify(e))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/strict/strict.js"}],[6019,{"./string":6020},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./string"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/string/index.js"}],[6020,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.String=function(e){return(0,n.CreateType)({[i.Kind]:"String",type:"string"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/string/string.js"}],[6021,{"./symbol":6022},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./symbol"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.js"}],[6022,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Symbol=function(e){return(0,n.CreateType)({[i.Kind]:"Symbol",type:"symbol"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.js"}],[6023,{"./symbols":6024},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./symbols"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.js"}],[6024,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Kind=r.Hint=r.OptionalKind=r.ReadonlyKind=r.TransformKind=void 0,r.TransformKind=Symbol.for("TypeBox.Transform"),r.ReadonlyKind=Symbol.for("TypeBox.Readonly"),r.OptionalKind=Symbol.for("TypeBox.Optional"),r.Hint=Symbol.for("TypeBox.Hint"),r.Kind=Symbol.for("TypeBox.Kind")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.js"}],[6025,{"../error/index":5900,"./parse":6028},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralFiniteError=void 0,r.IsTemplateLiteralExpressionFinite=o,r.IsTemplateLiteralFinite=function(e){return o((0,n.TemplateLiteralParseExact)(e.pattern))};const n=e("./parse"),i=e("../error/index");class s extends i.TypeBoxError{}function o(e){return!function(e){return"or"===e.type&&2===e.expr.length&&"const"===e.expr[0].type&&"0"===e.expr[0].const&&"const"===e.expr[1].type&&"[1-9][0-9]*"===e.expr[1].const}(e)&&!function(e){return"const"===e.type&&".*"===e.const}(e)&&(!!function(e){return"or"===e.type&&2===e.expr.length&&"const"===e.expr[0].type&&"true"===e.expr[0].const&&"const"===e.expr[1].type&&"false"===e.expr[1].const}(e)||("and"===e.type||"or"===e.type?e.expr.every(e=>o(e)):"const"===e.type||(()=>{throw new s("Unknown expression type")})()))}r.TemplateLiteralFiniteError=s}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.js"}],[6026,{"../error/index":5900,"./finite":6025,"./parse":6028},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralGenerateError=void 0,r.TemplateLiteralExpressionGenerate=c,r.TemplateLiteralGenerate=function(e){const t=(0,i.TemplateLiteralParseExact)(e.pattern);return(0,n.IsTemplateLiteralExpressionFinite)(t)?[...c(t)]:[]};const n=e("./finite"),i=e("./parse"),s=e("../error/index");class o extends s.TypeBoxError{}function*a(e){if(1===e.length)return yield*e[0];for(const t of e[0])for(const r of a(e.slice(1)))yield`${t}${r}`}function*u(e){return yield*a(e.expr.map(e=>[...c(e)]))}function*c(e){return"and"===e.type?yield*u(e):"or"===e.type?yield*function*(e){for(const t of e.expr)yield*c(t)}(e):"const"===e.type?yield*function*(e){return yield e.const}(e):(()=>{throw new o("Unknown expression")})()}r.TemplateLiteralGenerateError=o}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.js"}],[6027,{"./finite":6025,"./generate":6026,"./parse":6028,"./pattern":6029,"./syntax":6030,"./template-literal":6031,"./union":6032},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./finite"),r),i(e("./generate"),r),i(e("./syntax"),r),i(e("./parse"),r),i(e("./pattern"),r),i(e("./union"),r),i(e("./template-literal"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.js"}],[6028,{"../error/index":5900},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralParserError=void 0,r.TemplateLiteralParse=l,r.TemplateLiteralParseExact=function(e){return l(e.slice(1,e.length-1))};const n=e("../error/index");class i extends n.TypeBoxError{}function s(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function o(e,t,r){return e[t]===r&&92!==e.charCodeAt(t-1)}function a(e,t){return o(e,t,"(")}function u(e,t){return o(e,t,")")}function c(e,t){return o(e,t,"|")}function l(e){return function(e){if(!a(e,0)||!u(e,e.length-1))return!1;let t=0;for(let r=0;r<e.length;r++)if(a(e,r)&&(t+=1),u(e,r)&&(t-=1),0===t&&r!==e.length-1)return!1;return!0}(e)?l(function(e){return e.slice(1,e.length-1)}(e)):function(e){let t=0;for(let r=0;r<e.length;r++)if(a(e,r)&&(t+=1),u(e,r)&&(t-=1),c(e,r)&&0===t)return!0;return!1}(e)?function(e){let[t,r]=[0,0];const n=[];for(let i=0;i<e.length;i++)if(a(e,i)&&(t+=1),u(e,i)&&(t-=1),c(e,i)&&0===t){const t=e.slice(r,i);t.length>0&&n.push(l(t)),r=i+1}const i=e.slice(r);return i.length>0&&n.push(l(i)),0===n.length?{type:"const",const:""}:1===n.length?n[0]:{type:"or",expr:n}}(e):function(e){for(let t=0;t<e.length;t++)if(a(e,t))return!0;return!1}(e)?function(e){function t(e,t){if(!a(e,t))throw new i("TemplateLiteralParser: Index must point to open parens");let r=0;for(let n=t;n<e.length;n++)if(a(e,n)&&(r+=1),u(e,n)&&(r-=1),0===r)return[t,n];throw new i("TemplateLiteralParser: Unclosed group parens in expression")}function r(e,t){for(let r=t;r<e.length;r++)if(a(e,r))return[t,r];return[t,e.length]}const n=[];for(let i=0;i<e.length;i++)if(a(e,i)){const[r,s]=t(e,i),o=e.slice(r,s+1);n.push(l(o)),i=s}else{const[t,s]=r(e,i),o=e.slice(t,s);o.length>0&&n.push(l(o)),i=s-1}return 0===n.length?{type:"const",const:""}:1===n.length?n[0]:{type:"and",expr:n}}(e):{type:"const",const:s(e)}}r.TemplateLiteralParserError=i}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.js"}],[6029,{"../error/index":5900,"../guard/kind":5918,"../patterns/index":5979,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralPatternError=void 0,r.TemplateLiteralPattern=function(e){return`^${e.map(e=>u(e,"")).join("")}$`};const n=e("../patterns/index"),i=e("../symbols/index"),s=e("../error/index"),o=e("../guard/kind");class a extends s.TypeBoxError{}function u(e,t){return(0,o.IsTemplateLiteral)(e)?e.pattern.slice(1,e.pattern.length-1):(0,o.IsUnion)(e)?`(${e.anyOf.map(e=>u(e,t)).join("|")})`:(0,o.IsNumber)(e)||(0,o.IsInteger)(e)||(0,o.IsBigInt)(e)?`${t}${n.PatternNumber}`:(0,o.IsString)(e)?`${t}${n.PatternString}`:(0,o.IsLiteral)(e)?`${t}${r=e.const.toString(),r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`:(0,o.IsBoolean)(e)?`${t}${n.PatternBoolean}`:(()=>{throw new a(`Unexpected Kind '${e[i.Kind]}'`)})();var r}r.TemplateLiteralPatternError=a}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.js"}],[6030,{"../bigint/index":5874,"../boolean/index":5876,"../literal/index":5951,"../never/index":5957,"../number/index":5963,"../string/index":6019,"../union/index":6045},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralSyntax=function(e){return[...h(e)]};const n=e("../literal/index"),i=e("../boolean/index"),s=e("../bigint/index"),o=e("../number/index"),a=e("../string/index"),u=e("../union/index"),c=e("../never/index");function*l(e){const t=e.trim().replace(/"|'/g,"");return"boolean"===t?yield(0,i.Boolean)():"number"===t?yield(0,o.Number)():"bigint"===t?yield(0,s.BigInt)():"string"===t?yield(0,a.String)():yield(()=>{const e=t.split("|").map(e=>(0,n.Literal)(e.trim()));return 0===e.length?(0,c.Never)():1===e.length?e[0]:(0,u.UnionEvaluated)(e)})()}function*d(e){if("{"!==e[1]){const t=(0,n.Literal)("$"),r=h(e.slice(1));return yield*[t,...r]}for(let t=2;t<e.length;t++)if("}"===e[t]){const r=l(e.slice(2,t)),n=h(e.slice(t+1));return yield*[...r,...n]}yield(0,n.Literal)(e)}function*h(e){for(let t=0;t<e.length;t++)if("$"===e[t]){const r=(0,n.Literal)(e.slice(0,t)),i=d(e.slice(t));return yield*[r,...i]}yield(0,n.Literal)(e)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.js"}],[6031,{"../create/type":5890,"../guard/value":5920,"../symbols/index":6023,"./pattern":6029,"./syntax":6030},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteral=function(e,t){const r=(0,o.IsString)(e)?(0,s.TemplateLiteralPattern)((0,i.TemplateLiteralSyntax)(e)):(0,s.TemplateLiteralPattern)(e);return(0,n.CreateType)({[a.Kind]:"TemplateLiteral",type:"string",pattern:r},t)};const n=e("../create/type"),i=e("./syntax"),s=e("./pattern"),o=e("../guard/value"),a=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.js"}],[6032,{"../literal/index":5951,"../union/index":6045,"./generate":6026},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TemplateLiteralToUnion=function(e){const t=(0,s.TemplateLiteralGenerate)(e).map(e=>(0,i.Literal)(e));return(0,n.UnionEvaluated)(t)};const n=e("../union/index"),i=e("../literal/index"),s=e("./generate")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.js"}],[6033,{"./transform":6034},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./transform"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/transform/index.js"}],[6034,{"../guard/kind":5918,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TransformEncodeBuilder=r.TransformDecodeBuilder=void 0,r.Transform=function(e){return new s(e)};const n=e("../symbols/index"),i=e("../guard/kind");class s{constructor(e){this.schema=e}Decode(e){return new o(this.schema,e)}}r.TransformDecodeBuilder=s;class o{constructor(e,t){this.schema=e,this.decode=t}EncodeTransform(e,t){const r={Encode:r=>t[n.TransformKind].Encode(e(r)),Decode:e=>this.decode(t[n.TransformKind].Decode(e))};return{...t,[n.TransformKind]:r}}EncodeSchema(e,t){const r={Decode:this.decode,Encode:e};return{...t,[n.TransformKind]:r}}Encode(e){return(0,i.IsTransform)(this.schema)?this.EncodeTransform(e,this.schema):this.EncodeSchema(e,this.schema)}}r.TransformEncodeBuilder=o}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.js"}],[6035,{"./tuple":6036},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./tuple"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.js"}],[6036,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Tuple=function(e,t){return(0,n.CreateType)(e.length>0?{[i.Kind]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[i.Kind]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.js"}],[6037,{"./javascript":6038,"./json":6039,"./type":6040},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Type=r.JavaScriptTypeBuilder=r.JsonTypeBuilder=void 0;var n=e("./json");Object.defineProperty(r,"JsonTypeBuilder",{enumerable:!0,get:function(){return n.JsonTypeBuilder}});const i=e("./type"),s=e("./javascript");Object.defineProperty(r,"JavaScriptTypeBuilder",{enumerable:!0,get:function(){return s.JavaScriptTypeBuilder}});const o=i;r.Type=o}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/type/index.js"}],[6038,{"../async-iterator/index":5870,"../awaited/index":5872,"../bigint/index":5874,"../constructor-parameters/index":5885,"../constructor/index":5887,"../date/index":5892,"../function/index":5916,"../instance-type/index":5928,"../iterator/index":5944,"../parameters/index":5974,"../promise/index":5985,"../regexp/index":5998,"../return-type/index":6008,"../symbol/index":6021,"../uint8array/index":6041,"../undefined/index":6043,"../void/index":6054,"./json":6039},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.JavaScriptTypeBuilder=void 0;const n=e("./json"),i=e("../async-iterator/index"),s=e("../awaited/index"),o=e("../bigint/index"),a=e("../constructor/index"),u=e("../constructor-parameters/index"),c=e("../date/index"),l=e("../function/index"),d=e("../instance-type/index"),h=e("../iterator/index"),p=e("../parameters/index"),f=e("../promise/index"),m=e("../regexp/index"),y=e("../return-type/index"),b=e("../symbol/index"),g=e("../uint8array/index"),w=e("../undefined/index"),_=e("../void/index");class x extends n.JsonTypeBuilder{AsyncIterator(e,t){return(0,i.AsyncIterator)(e,t)}Awaited(e,t){return(0,s.Awaited)(e,t)}BigInt(e){return(0,o.BigInt)(e)}ConstructorParameters(e,t){return(0,u.ConstructorParameters)(e,t)}Constructor(e,t,r){return(0,a.Constructor)(e,t,r)}Date(e={}){return(0,c.Date)(e)}Function(e,t,r){return(0,l.Function)(e,t,r)}InstanceType(e,t){return(0,d.InstanceType)(e,t)}Iterator(e,t){return(0,h.Iterator)(e,t)}Parameters(e,t){return(0,p.Parameters)(e,t)}Promise(e,t){return(0,f.Promise)(e,t)}RegExp(e,t){return(0,m.RegExp)(e,t)}ReturnType(e,t){return(0,y.ReturnType)(e,t)}Symbol(e){return(0,b.Symbol)(e)}Undefined(e){return(0,w.Undefined)(e)}Uint8Array(e){return(0,g.Uint8Array)(e)}Void(e){return(0,_.Void)(e)}}r.JavaScriptTypeBuilder=x}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.js"}],[6039,{"../any/index":5866,"../array/index":5868,"../boolean/index":5876,"../composite/index":5881,"../const/index":5883,"../deref/index":5894,"../enum/index":5898,"../exclude/index":5904,"../extends/index":5910,"../extract/index":5914,"../indexed/index":5923,"../integer/index":5930,"../intersect/index":5932,"../intrinsic/index":5938,"../keyof/index":5946,"../literal/index":5951,"../mapped/index":5953,"../never/index":5957,"../not/index":5959,"../null/index":5961,"../number/index":5963,"../object/index":5965,"../omit/index":5967,"../optional/index":5971,"../partial/index":5976,"../pick/index":5981,"../readonly-optional/index":5987,"../readonly/index":5989,"../record/index":5992,"../recursive/index":5994,"../ref/index":5996,"../required/index":6003,"../rest/index":6006,"../strict/index":6017,"../string/index":6019,"../template-literal/index":6027,"../transform/index":6033,"../tuple/index":6035,"../union/index":6045,"../unknown/index":6050,"../unsafe/index":6052},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.JsonTypeBuilder=void 0;const n=e("../any/index"),i=e("../array/index"),s=e("../boolean/index"),o=e("../composite/index"),a=e("../const/index"),u=e("../deref/index"),c=e("../enum/index"),l=e("../exclude/index"),d=e("../extends/index"),h=e("../extract/index"),p=e("../indexed/index"),f=e("../integer/index"),m=e("../intersect/index"),y=e("../intrinsic/index"),b=e("../keyof/index"),g=e("../literal/index"),w=e("../mapped/index"),_=e("../never/index"),x=e("../not/index"),v=e("../null/index"),T=e("../number/index"),O=e("../object/index"),E=e("../omit/index"),M=e("../optional/index"),k=e("../partial/index"),j=e("../pick/index"),S=e("../readonly/index"),A=e("../readonly-optional/index"),I=e("../record/index"),P=e("../recursive/index"),C=e("../ref/index"),z=e("../required/index"),R=e("../rest/index"),N=e("../strict/index"),B=e("../string/index"),L=e("../template-literal/index"),U=e("../transform/index"),D=e("../tuple/index"),F=e("../union/index"),$=e("../unknown/index"),K=e("../unsafe/index");r.JsonTypeBuilder=class{Strict(e){return(0,N.Strict)(e)}ReadonlyOptional(e){return(0,A.ReadonlyOptional)(e)}Readonly(e,t){return(0,S.Readonly)(e,t??!0)}Optional(e,t){return(0,M.Optional)(e,t??!0)}Any(e){return(0,n.Any)(e)}Array(e,t){return(0,i.Array)(e,t)}Boolean(e){return(0,s.Boolean)(e)}Capitalize(e,t){return(0,y.Capitalize)(e,t)}Composite(e,t){return(0,o.Composite)(e,t)}Const(e,t){return(0,a.Const)(e,t)}Deref(e,t){return(0,u.Deref)(e,t)}Enum(e,t){return(0,c.Enum)(e,t)}Exclude(e,t,r){return(0,l.Exclude)(e,t,r)}Extends(e,t,r,n,i){return(0,d.Extends)(e,t,r,n,i)}Extract(e,t,r){return(0,h.Extract)(e,t,r)}Index(e,t,r){return(0,p.Index)(e,t,r)}Integer(e){return(0,f.Integer)(e)}Intersect(e,t){return(0,m.Intersect)(e,t)}KeyOf(e,t){return(0,b.KeyOf)(e,t)}Literal(e,t){return(0,g.Literal)(e,t)}Lowercase(e,t){return(0,y.Lowercase)(e,t)}Mapped(e,t,r){return(0,w.Mapped)(e,t,r)}Never(e){return(0,_.Never)(e)}Not(e,t){return(0,x.Not)(e,t)}Null(e){return(0,v.Null)(e)}Number(e){return(0,T.Number)(e)}Object(e,t){return(0,O.Object)(e,t)}Omit(e,t,r){return(0,E.Omit)(e,t,r)}Partial(e,t){return(0,k.Partial)(e,t)}Pick(e,t,r){return(0,j.Pick)(e,t,r)}Record(e,t,r){return(0,I.Record)(e,t,r)}Recursive(e,t){return(0,P.Recursive)(e,t)}Ref(e,t){return(0,C.Ref)(e,t)}Required(e,t){return(0,z.Required)(e,t)}Rest(e){return(0,R.Rest)(e)}String(e){return(0,B.String)(e)}TemplateLiteral(e,t){return(0,L.TemplateLiteral)(e,t)}Transform(e){return(0,U.Transform)(e)}Tuple(e,t){return(0,D.Tuple)(e,t)}Uncapitalize(e,t){return(0,y.Uncapitalize)(e,t)}Union(e,t){return(0,F.Union)(e,t)}Unknown(e){return(0,$.Unknown)(e)}Unsafe(e){return(0,K.Unsafe)(e)}Uppercase(e,t){return(0,y.Uppercase)(e,t)}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/type/json.js"}],[6040,{"../any/index":5866,"../array/index":5868,"../async-iterator/index":5870,"../awaited/index":5872,"../bigint/index":5874,"../boolean/index":5876,"../composite/index":5881,"../const/index":5883,"../constructor-parameters/index":5885,"../constructor/index":5887,"../date/index":5892,"../deref/index":5894,"../enum/index":5898,"../exclude/index":5904,"../extends/index":5910,"../extract/index":5914,"../function/index":5916,"../indexed/index":5923,"../instance-type/index":5928,"../integer/index":5930,"../intersect/index":5932,"../intrinsic/index":5938,"../iterator/index":5944,"../keyof/index":5946,"../literal/index":5951,"../mapped/index":5953,"../never/index":5957,"../not/index":5959,"../null/index":5961,"../number/index":5963,"../object/index":5965,"../omit/index":5967,"../optional/index":5971,"../parameters/index":5974,"../partial/index":5976,"../pick/index":5981,"../promise/index":5985,"../readonly-optional/index":5987,"../readonly/index":5989,"../record/index":5992,"../recursive/index":5994,"../ref/index":5996,"../regexp/index":5998,"../required/index":6003,"../rest/index":6006,"../return-type/index":6008,"../strict/index":6017,"../string/index":6019,"../symbol/index":6021,"../template-literal/index":6027,"../transform/index":6033,"../tuple/index":6035,"../uint8array/index":6041,"../undefined/index":6043,"../union/index":6045,"../unknown/index":6050,"../unsafe/index":6052,"../void/index":6054},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.String=r.ReturnType=r.Rest=r.Required=r.RegExp=r.Ref=r.Recursive=r.Record=r.ReadonlyOptional=r.Readonly=r.Promise=r.Pick=r.Partial=r.Parameters=r.Optional=r.Omit=r.Object=r.Number=r.Null=r.Not=r.Never=r.Mapped=r.Literal=r.KeyOf=r.Iterator=r.Uppercase=r.Lowercase=r.Uncapitalize=r.Capitalize=r.Intersect=r.Integer=r.InstanceType=r.Index=r.Function=r.Extract=r.Extends=r.Exclude=r.Enum=r.Deref=r.Date=r.ConstructorParameters=r.Constructor=r.Const=r.Composite=r.Boolean=r.BigInt=r.Awaited=r.AsyncIterator=r.Array=r.Any=void 0,r.Void=r.Unsafe=r.Unknown=r.Union=r.Undefined=r.Uint8Array=r.Tuple=r.Transform=r.TemplateLiteral=r.Symbol=r.Strict=void 0;var n=e("../any/index");Object.defineProperty(r,"Any",{enumerable:!0,get:function(){return n.Any}});var i=e("../array/index");Object.defineProperty(r,"Array",{enumerable:!0,get:function(){return i.Array}});var s=e("../async-iterator/index");Object.defineProperty(r,"AsyncIterator",{enumerable:!0,get:function(){return s.AsyncIterator}});var o=e("../awaited/index");Object.defineProperty(r,"Awaited",{enumerable:!0,get:function(){return o.Awaited}});var a=e("../bigint/index");Object.defineProperty(r,"BigInt",{enumerable:!0,get:function(){return a.BigInt}});var u=e("../boolean/index");Object.defineProperty(r,"Boolean",{enumerable:!0,get:function(){return u.Boolean}});var c=e("../composite/index");Object.defineProperty(r,"Composite",{enumerable:!0,get:function(){return c.Composite}});var l=e("../const/index");Object.defineProperty(r,"Const",{enumerable:!0,get:function(){return l.Const}});var d=e("../constructor/index");Object.defineProperty(r,"Constructor",{enumerable:!0,get:function(){return d.Constructor}});var h=e("../constructor-parameters/index");Object.defineProperty(r,"ConstructorParameters",{enumerable:!0,get:function(){return h.ConstructorParameters}});var p=e("../date/index");Object.defineProperty(r,"Date",{enumerable:!0,get:function(){return p.Date}});var f=e("../deref/index");Object.defineProperty(r,"Deref",{enumerable:!0,get:function(){return f.Deref}});var m=e("../enum/index");Object.defineProperty(r,"Enum",{enumerable:!0,get:function(){return m.Enum}});var y=e("../exclude/index");Object.defineProperty(r,"Exclude",{enumerable:!0,get:function(){return y.Exclude}});var b=e("../extends/index");Object.defineProperty(r,"Extends",{enumerable:!0,get:function(){return b.Extends}});var g=e("../extract/index");Object.defineProperty(r,"Extract",{enumerable:!0,get:function(){return g.Extract}});var w=e("../function/index");Object.defineProperty(r,"Function",{enumerable:!0,get:function(){return w.Function}});var _=e("../indexed/index");Object.defineProperty(r,"Index",{enumerable:!0,get:function(){return _.Index}});var x=e("../instance-type/index");Object.defineProperty(r,"InstanceType",{enumerable:!0,get:function(){return x.InstanceType}});var v=e("../integer/index");Object.defineProperty(r,"Integer",{enumerable:!0,get:function(){return v.Integer}});var T=e("../intersect/index");Object.defineProperty(r,"Intersect",{enumerable:!0,get:function(){return T.Intersect}});var O=e("../intrinsic/index");Object.defineProperty(r,"Capitalize",{enumerable:!0,get:function(){return O.Capitalize}}),Object.defineProperty(r,"Uncapitalize",{enumerable:!0,get:function(){return O.Uncapitalize}}),Object.defineProperty(r,"Lowercase",{enumerable:!0,get:function(){return O.Lowercase}}),Object.defineProperty(r,"Uppercase",{enumerable:!0,get:function(){return O.Uppercase}});var E=e("../iterator/index");Object.defineProperty(r,"Iterator",{enumerable:!0,get:function(){return E.Iterator}});var M=e("../keyof/index");Object.defineProperty(r,"KeyOf",{enumerable:!0,get:function(){return M.KeyOf}});var k=e("../literal/index");Object.defineProperty(r,"Literal",{enumerable:!0,get:function(){return k.Literal}});var j=e("../mapped/index");Object.defineProperty(r,"Mapped",{enumerable:!0,get:function(){return j.Mapped}});var S=e("../never/index");Object.defineProperty(r,"Never",{enumerable:!0,get:function(){return S.Never}});var A=e("../not/index");Object.defineProperty(r,"Not",{enumerable:!0,get:function(){return A.Not}});var I=e("../null/index");Object.defineProperty(r,"Null",{enumerable:!0,get:function(){return I.Null}});var P=e("../number/index");Object.defineProperty(r,"Number",{enumerable:!0,get:function(){return P.Number}});var C=e("../object/index");Object.defineProperty(r,"Object",{enumerable:!0,get:function(){return C.Object}});var z=e("../omit/index");Object.defineProperty(r,"Omit",{enumerable:!0,get:function(){return z.Omit}});var R=e("../optional/index");Object.defineProperty(r,"Optional",{enumerable:!0,get:function(){return R.Optional}});var N=e("../parameters/index");Object.defineProperty(r,"Parameters",{enumerable:!0,get:function(){return N.Parameters}});var B=e("../partial/index");Object.defineProperty(r,"Partial",{enumerable:!0,get:function(){return B.Partial}});var L=e("../pick/index");Object.defineProperty(r,"Pick",{enumerable:!0,get:function(){return L.Pick}});var U=e("../promise/index");Object.defineProperty(r,"Promise",{enumerable:!0,get:function(){return U.Promise}});var D=e("../readonly/index");Object.defineProperty(r,"Readonly",{enumerable:!0,get:function(){return D.Readonly}});var F=e("../readonly-optional/index");Object.defineProperty(r,"ReadonlyOptional",{enumerable:!0,get:function(){return F.ReadonlyOptional}});var $=e("../record/index");Object.defineProperty(r,"Record",{enumerable:!0,get:function(){return $.Record}});var K=e("../recursive/index");Object.defineProperty(r,"Recursive",{enumerable:!0,get:function(){return K.Recursive}});var G=e("../ref/index");Object.defineProperty(r,"Ref",{enumerable:!0,get:function(){return G.Ref}});var H=e("../regexp/index");Object.defineProperty(r,"RegExp",{enumerable:!0,get:function(){return H.RegExp}});var V=e("../required/index");Object.defineProperty(r,"Required",{enumerable:!0,get:function(){return V.Required}});var q=e("../rest/index");Object.defineProperty(r,"Rest",{enumerable:!0,get:function(){return q.Rest}});var W=e("../return-type/index");Object.defineProperty(r,"ReturnType",{enumerable:!0,get:function(){return W.ReturnType}});var Z=e("../string/index");Object.defineProperty(r,"String",{enumerable:!0,get:function(){return Z.String}});var Y=e("../strict/index");Object.defineProperty(r,"Strict",{enumerable:!0,get:function(){return Y.Strict}});var J=e("../symbol/index");Object.defineProperty(r,"Symbol",{enumerable:!0,get:function(){return J.Symbol}});var X=e("../template-literal/index");Object.defineProperty(r,"TemplateLiteral",{enumerable:!0,get:function(){return X.TemplateLiteral}});var Q=e("../transform/index");Object.defineProperty(r,"Transform",{enumerable:!0,get:function(){return Q.Transform}});var ee=e("../tuple/index");Object.defineProperty(r,"Tuple",{enumerable:!0,get:function(){return ee.Tuple}});var te=e("../uint8array/index");Object.defineProperty(r,"Uint8Array",{enumerable:!0,get:function(){return te.Uint8Array}});var re=e("../undefined/index");Object.defineProperty(r,"Undefined",{enumerable:!0,get:function(){return re.Undefined}});var ne=e("../union/index");Object.defineProperty(r,"Union",{enumerable:!0,get:function(){return ne.Union}});var ie=e("../unknown/index");Object.defineProperty(r,"Unknown",{enumerable:!0,get:function(){return ie.Unknown}});var se=e("../unsafe/index");Object.defineProperty(r,"Unsafe",{enumerable:!0,get:function(){return se.Unsafe}});var oe=e("../void/index");Object.defineProperty(r,"Void",{enumerable:!0,get:function(){return oe.Void}})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/type/type.js"}],[6041,{"./uint8array":6042},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./uint8array"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.js"}],[6042,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Uint8Array=function(e){return(0,n.CreateType)({[i.Kind]:"Uint8Array",type:"Uint8Array"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.js"}],[6043,{"./undefined":6044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./undefined"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.js"}],[6044,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Undefined=function(e){return(0,n.CreateType)({[i.Kind]:"Undefined",type:"undefined"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.js"}],[6045,{"./union":6049,"./union-evaluated":6047,"./union-type":6048},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./union-evaluated"),r),i(e("./union-type"),r),i(e("./union"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/union/index.js"}],[6046,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UnionCreate=function(e,t){return(0,n.CreateType)({[i.Kind]:"Union",anyOf:e},t)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.js"}],[6047,{"../create/type":5890,"../discard/index":5896,"../guard/kind":5918,"../never/index":5957,"../optional/index":5971,"../symbols/index":6023,"./union-create":6046},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UnionEvaluated=function(e,t){return 0===e.length?(0,o.Never)(t):1===e.length?(0,n.CreateType)(e[0],t):function(e,t){return function(e){return e.some(e=>(0,c.IsOptional)(e))}(e)?(0,a.Optional)((0,u.UnionCreate)(l(e),t)):(0,u.UnionCreate)(l(e),t)}(e,t)};const n=e("../create/type"),i=e("../symbols/index"),s=e("../discard/index"),o=e("../never/index"),a=e("../optional/index"),u=e("./union-create"),c=e("../guard/kind");function l(e){return e.map(e=>(0,c.IsOptional)(e)?function(e){return(0,s.Discard)(e,[i.OptionalKind])}(e):e)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.js"}],[6048,{"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.js"}],[6049,{"../create/type":5890,"../never/index":5957,"./union-create":6046},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Union=function(e,t){return 0===e.length?(0,n.Never)(t):1===e.length?(0,i.CreateType)(e[0],t):(0,s.UnionCreate)(e,t)};const n=e("../never/index"),i=e("../create/type"),s=e("./union-create")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/union/union.js"}],[6050,{"./unknown":6051},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./unknown"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.js"}],[6051,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Unknown=function(e){return(0,n.CreateType)({[i.Kind]:"Unknown"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.js"}],[6052,{"./unsafe":6053},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./unsafe"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.js"}],[6053,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Unsafe=function(e={}){return(0,n.CreateType)({[i.Kind]:e[i.Kind]??"Unsafe"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.js"}],[6054,{"./void":6055},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./void"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/void/index.js"}],[6055,{"../create/type":5890,"../symbols/index":6023},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Void=function(e){return(0,n.CreateType)({[i.Kind]:"Void",type:"void"},e)};const n=e("../create/type"),i=e("../symbols/index")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/type/void/void.js"}],[6056,{"../../system/index":5862,"../../type/error/index":5900,"../../type/extends/index":5910,"../../type/guard/type":5919,"../../type/keyof/index":5946,"../../type/never/index":5957,"../../type/registry/index":6001,"../../type/symbols/index":6023,"../deref/index":6059,"../guard/index":6061,"../hash/index":6063},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueCheckUnknownTypeError=void 0,r.Check=function(...e){return 3===e.length?b(e[0],e[1],e[2]):b(e[0],[],e[1])};const n=e("../../system/index"),i=e("../deref/index"),s=e("../hash/index"),o=e("../../type/symbols/index"),a=e("../../type/keyof/index"),u=e("../../type/extends/index"),c=e("../../type/registry/index"),l=e("../../type/error/index"),d=e("../../type/never/index"),h=e("../guard/index"),p=e("../../type/guard/type");class f extends l.TypeBoxError{constructor(e){super("Unknown type"),this.schema=e}}function m(e){return"Any"===e[o.Kind]||"Unknown"===e[o.Kind]}function y(e){return e!==undefined}function b(e,t,r){const l=y(e.$id)?[...t,e]:t,g=e;switch(g[o.Kind]){case"Any":case"Unknown":return!0;case"Array":return function(e,t,r){if(!(0,h.IsArray)(r))return!1;if(y(e.minItems)&&!(r.length>=e.minItems))return!1;if(y(e.maxItems)&&!(r.length<=e.maxItems))return!1;if(!r.every(r=>b(e.items,t,r)))return!1;if(!0===e.uniqueItems&&!function(){const e=new Set;for(const t of r){const r=(0,s.Hash)(t);if(e.has(r))return!1;e.add(r)}return!0}())return!1;if(!(y(e.contains)||(0,h.IsNumber)(e.minContains)||(0,h.IsNumber)(e.maxContains)))return!0;const n=y(e.contains)?e.contains:(0,d.Never)(),i=r.reduce((e,r)=>b(n,t,r)?e+1:e,0);return!(0===i||(0,h.IsNumber)(e.minContains)&&i<e.minContains||(0,h.IsNumber)(e.maxContains)&&i>e.maxContains)}(g,l,r);case"AsyncIterator":return function(e,t,r){return(0,h.IsAsyncIterator)(r)}(0,0,r);case"BigInt":return function(e,t,r){return!(!(0,h.IsBigInt)(r)||y(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||y(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||y(e.maximum)&&!(r<=e.maximum)||y(e.minimum)&&!(r>=e.minimum)||y(e.multipleOf)&&r%e.multipleOf!==BigInt(0))}(g,0,r);case"Boolean":return function(e,t,r){return(0,h.IsBoolean)(r)}(0,0,r);case"Constructor":return function(e,t,r){return b(e.returns,t,r.prototype)}(g,l,r);case"Date":return function(e,t,r){return!(!(0,h.IsDate)(r)||y(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)||y(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)||y(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)||y(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)||y(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!==0)}(g,0,r);case"Function":return function(e,t,r){return(0,h.IsFunction)(r)}(0,0,r);case"Integer":return function(e,t,r){return!(!(0,h.IsInteger)(r)||y(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||y(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||y(e.maximum)&&!(r<=e.maximum)||y(e.minimum)&&!(r>=e.minimum)||y(e.multipleOf)&&r%e.multipleOf!==0)}(g,0,r);case"Intersect":return function(e,t,r){const n=e.allOf.every(e=>b(e,t,r));if(!1===e.unevaluatedProperties){const t=new RegExp((0,a.KeyOfPattern)(e)),i=Object.getOwnPropertyNames(r).every(e=>t.test(e));return n&&i}if((0,p.IsSchema)(e.unevaluatedProperties)){const i=new RegExp((0,a.KeyOfPattern)(e)),s=Object.getOwnPropertyNames(r).every(n=>i.test(n)||b(e.unevaluatedProperties,t,r[n]));return n&&s}return n}(g,l,r);case"Iterator":return function(e,t,r){return(0,h.IsIterator)(r)}(0,0,r);case"Literal":return function(e,t,r){return r===e.const}(g,0,r);case"Never":return!1;case"Not":return function(e,t,r){return!b(e.not,t,r)}(g,l,r);case"Null":return function(e,t,r){return(0,h.IsNull)(r)}(0,0,r);case"Number":return function(e,t,r){return!(!n.TypeSystemPolicy.IsNumberLike(r)||y(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||y(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||y(e.minimum)&&!(r>=e.minimum)||y(e.maximum)&&!(r<=e.maximum)||y(e.multipleOf)&&r%e.multipleOf!==0)}(g,0,r);case"Object":return function(e,t,r){if(!n.TypeSystemPolicy.IsObjectLike(r))return!1;if(y(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties))return!1;if(y(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;const i=Object.getOwnPropertyNames(e.properties);for(const s of i){const i=e.properties[s];if(e.required&&e.required.includes(s)){if(!b(i,t,r[s]))return!1;if(((0,u.ExtendsUndefinedCheck)(i)||m(i))&&!(s in r))return!1}else if(n.TypeSystemPolicy.IsExactOptionalProperty(r,s)&&!b(i,t,r[s]))return!1}if(!1===e.additionalProperties){const t=Object.getOwnPropertyNames(r);return!(!e.required||e.required.length!==i.length||t.length!==i.length)||t.every(e=>i.includes(e))}if("object"==typeof e.additionalProperties)return Object.getOwnPropertyNames(r).every(n=>i.includes(n)||b(e.additionalProperties,t,r[n]));return!0}(g,l,r);case"Promise":return function(e,t,r){return(0,h.IsPromise)(r)}(0,0,r);case"Record":return function(e,t,r){if(!n.TypeSystemPolicy.IsRecordLike(r))return!1;if(y(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties))return!1;if(y(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;const[i,s]=Object.entries(e.patternProperties)[0],o=new RegExp(i),a=Object.entries(r).every(([e,r])=>!o.test(e)||b(s,t,r)),u="object"!=typeof e.additionalProperties||Object.entries(r).every(([r,n])=>!!o.test(r)||b(e.additionalProperties,t,n)),c=!1!==e.additionalProperties||Object.getOwnPropertyNames(r).every(e=>o.test(e));return a&&u&&c}(g,l,r);case"Ref":case"This":return function(e,t,r){return b((0,i.Deref)(e,t),t,r)}(g,l,r);case"RegExp":return function(e,t,r){const n=new RegExp(e.source,e.flags);return(!y(e.minLength)||r.length>=e.minLength)&&(!y(e.maxLength)||r.length<=e.maxLength)&&n.test(r)}(g,0,r);case"String":return function(e,t,r){if(!(0,h.IsString)(r))return!1;if(y(e.minLength)&&!(r.length>=e.minLength))return!1;if(y(e.maxLength)&&!(r.length<=e.maxLength))return!1;if(y(e.pattern)&&!new RegExp(e.pattern).test(r))return!1;if(y(e.format))return!!c.FormatRegistry.Has(e.format)&&c.FormatRegistry.Get(e.format)(r);return!0}(g,0,r);case"Symbol":return function(e,t,r){return(0,h.IsSymbol)(r)}(0,0,r);case"TemplateLiteral":return function(e,t,r){return(0,h.IsString)(r)&&new RegExp(e.pattern).test(r)}(g,0,r);case"Tuple":return function(e,t,r){if(!(0,h.IsArray)(r))return!1;if(e.items===undefined&&0!==r.length)return!1;if(r.length!==e.maxItems)return!1;if(!e.items)return!0;for(let n=0;n<e.items.length;n++)if(!b(e.items[n],t,r[n]))return!1;return!0}(g,l,r);case"Undefined":return function(e,t,r){return(0,h.IsUndefined)(r)}(0,0,r);case"Union":return function(e,t,r){return e.anyOf.some(e=>b(e,t,r))}(g,l,r);case"Uint8Array":return function(e,t,r){return!!(0,h.IsUint8Array)(r)&&(!y(e.maxByteLength)||r.length<=e.maxByteLength)&&(!y(e.minByteLength)||r.length>=e.minByteLength)}(g,0,r);case"Void":return function(e,t,r){return n.TypeSystemPolicy.IsVoidLike(r)}(0,0,r);default:if(!c.TypeRegistry.Has(g[o.Kind]))throw new f(g);return function(e,t,r){return!!c.TypeRegistry.Has(e[o.Kind])&&c.TypeRegistry.Get(e[o.Kind])(e,r)}(g,0,r)}}r.ValueCheckUnknownTypeError=f}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/check/check.js"}],[6057,{"./check":6056},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./check"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/check/index.js"}],[6058,{"../../type/error/index":5900,"../../type/symbols/index":6023,"../guard/guard":6060},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypeDereferenceError=void 0,r.Pushref=function(e,t){return!(0,s.IsString)(e.$id)||t.some(t=>t.$id===e.$id)||t.push(e),t},r.Deref=a;const n=e("../../type/error/index"),i=e("../../type/symbols/index"),s=e("../guard/guard");class o extends n.TypeBoxError{constructor(e){super(`Unable to dereference schema with $id '${e.$ref}'`),this.schema=e}}function a(e,t){return"This"===e[i.Kind]||"Ref"===e[i.Kind]?function(e,t){const r=t.find(t=>t.$id===e.$ref);if(r===undefined)throw new o(e);return a(r,t)}(e,t):e}r.TypeDereferenceError=o}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.js"}],[6059,{"./deref":6058},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./deref"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/deref/index.js"}],[6060,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return null!==e&&"object"==typeof e}function i(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}function s(e){return e===undefined}function o(e){return null===e}function a(e){return"boolean"==typeof e}function u(e){return"number"==typeof e}function c(e){return"bigint"==typeof e}function l(e){return"string"==typeof e}function d(e){return"function"==typeof e}function h(e){return"symbol"==typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.IsAsyncIterator=function(e){return n(e)&&Symbol.asyncIterator in e},r.IsIterator=function(e){return n(e)&&Symbol.iterator in e},r.IsStandardObject=function(e){return n(e)&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))},r.IsInstanceObject=function(e){return n(e)&&!i(e)&&d(e.constructor)&&"Object"!==e.constructor.name},r.IsPromise=function(e){return e instanceof Promise},r.IsDate=function(e){return e instanceof Date&&Number.isFinite(e.getTime())},r.IsMap=function(e){return e instanceof globalThis.Map},r.IsSet=function(e){return e instanceof globalThis.Set},r.IsRegExp=function(e){return e instanceof globalThis.RegExp},r.IsTypedArray=function(e){return ArrayBuffer.isView(e)},r.IsInt8Array=function(e){return e instanceof globalThis.Int8Array},r.IsUint8Array=function(e){return e instanceof globalThis.Uint8Array},r.IsUint8ClampedArray=function(e){return e instanceof globalThis.Uint8ClampedArray},r.IsInt16Array=function(e){return e instanceof globalThis.Int16Array},r.IsUint16Array=function(e){return e instanceof globalThis.Uint16Array},r.IsInt32Array=function(e){return e instanceof globalThis.Int32Array},r.IsUint32Array=function(e){return e instanceof globalThis.Uint32Array},r.IsFloat32Array=function(e){return e instanceof globalThis.Float32Array},r.IsFloat64Array=function(e){return e instanceof globalThis.Float64Array},r.IsBigInt64Array=function(e){return e instanceof globalThis.BigInt64Array},r.IsBigUint64Array=function(e){return e instanceof globalThis.BigUint64Array},r.HasPropertyKey=function(e,t){return t in e},r.IsObject=n,r.IsArray=i,r.IsUndefined=s,r.IsNull=o,r.IsBoolean=a,r.IsNumber=u,r.IsInteger=function(e){return Number.isInteger(e)},r.IsBigInt=c,r.IsString=l,r.IsFunction=d,r.IsSymbol=h,r.IsValueType=function(e){return c(e)||a(e)||o(e)||u(e)||l(e)||h(e)||s(e)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.js"}],[6061,{"./guard":6060},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./guard"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/guard/index.js"}],[6062,{"../../type/error/index":5900,"../guard/index":6061},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueHashError=void 0,r.Hash=function(e){return a=BigInt("14695981039346656037"),m(e),a};const n=e("../guard/index"),i=e("../../type/error/index");class s extends i.TypeBoxError{constructor(e){super("Unable to hash value"),this.value=e}}var o;r.ValueHashError=s,function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"}(o||(o={}));let a=BigInt("14695981039346656037");const[u,c]=[BigInt("1099511628211"),BigInt("18446744073709551616")],l=Array.from({length:256}).map((e,t)=>BigInt(t)),d=new Float64Array(1),h=new DataView(d.buffer),p=new Uint8Array(d.buffer);function*f(e){const t=0===e?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r<t;r++)yield e>>8*(t-1-r)&255}function m(e){if((0,n.IsArray)(e))return function(e){y(o.Array);for(const t of e)m(t)}(e);if((0,n.IsBoolean)(e))return function(e){y(o.Boolean),y(e?1:0)}(e);if((0,n.IsBigInt)(e))return function(e){y(o.BigInt),h.setBigInt64(0,e);for(const e of p)y(e)}(e);if((0,n.IsDate)(e))return function(e){y(o.Date),m(e.getTime())}(e);if(!(0,n.IsNull)(e)){if((0,n.IsNumber)(e))return function(e){y(o.Number),h.setFloat64(0,e);for(const e of p)y(e)}(e);if((0,n.IsObject)(e))return function(e){y(o.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort())m(t),m(e[t])}(e);if((0,n.IsString)(e))return function(e){y(o.String);for(let t=0;t<e.length;t++)for(const r of f(e.charCodeAt(t)))y(r)}(e);if((0,n.IsSymbol)(e))return function(e){y(o.Symbol),m(e.description)}(e);if((0,n.IsUint8Array)(e))return function(e){y(o.Uint8Array);for(let t=0;t<e.length;t++)y(e[t])}(e);if((0,n.IsUndefined)(e))return y(o.Undefined);throw new s(e)}y(o.Null)}function y(e){a^=l[e],a=a*u%c}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.js"}],[6063,{"./hash":6062},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./hash"),r)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",file:"node_modules/@trezor/schema-utils/node_modules/@sinclair/typebox/build/cjs/value/hash/index.js"}],[6064,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TRANSPORT=r.ACTION_TIMEOUT=r.TREZOR_USB_DESCRIPTORS=r.WEBUSB_BOOTLOADER_PRODUCT=r.T1_HID_PRODUCT=r.T1_HID_VENDOR=r.DEBUGLINK_ENDPOINT_ID=r.DEBUGLINK_INTERFACE_ID=r.ENDPOINT_ID=r.INTERFACE_ID=r.CONFIGURATION_ID=void 0,r.CONFIGURATION_ID=1,r.INTERFACE_ID=0,r.ENDPOINT_ID=1,r.DEBUGLINK_INTERFACE_ID=1,r.DEBUGLINK_ENDPOINT_ID=2,r.T1_HID_VENDOR=21324,r.T1_HID_PRODUCT=1;r.WEBUSB_BOOTLOADER_PRODUCT=21440,r.TREZOR_USB_DESCRIPTORS=[{vendorId:21324,productId:r.T1_HID_PRODUCT},{vendorId:4617,productId:r.WEBUSB_BOOTLOADER_PRODUCT},{vendorId:4617,productId:21441}],r.ACTION_TIMEOUT=1e4,r.TRANSPORT={START:"transport-start",ERROR:"transport-error",DEVICE_CONNECTED:"transport-device_connected",DEVICE_DISCONNECTED:"transport-device_disconnected",DEVICE_SESSION_CHANGED:"transport-device_session_changed",DEVICE_REQUEST_RELEASE:"transport-device_request_release",DISABLE_WEBUSB:"transport-disable_webusb",REQUEST_DEVICE:"transport-request_device",GET_INFO:"transport-get_info",SET_TRANSPORTS:"transport-set_transports"}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/transport",file:"node_modules/@trezor/transport/lib/constants.js"}],[6065,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.addDashesToSpaces=void 0;r.addDashesToSpaces=e=>e.replace(/\s+/g,"-")}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/addDashesToSpaces.js"}],[6066,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.arrayDistinct=void 0;r.arrayDistinct=(e,t,r)=>r.indexOf(e)===t}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/arrayDistinct.js"}],[6067,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.arrayPartition=void 0;r.arrayPartition=(e,t)=>e.reduce(([e,r],n)=>t(n)?[[...e,n],r]:[e,[...r,n]],[[],[]])}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/arrayPartition.js"}],[6068,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.arrayShuffle=void 0;r.arrayShuffle=(e,{randomInt:t})=>{const r=e.slice();for(let e=r.length-1;e>0;e--){const n=t(0,e+1);[r[e],r[n]]=[r[n],r[e]]}return r}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/arrayShuffle.js"}],[6069,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.arrayToDictionary=void 0;const n=e=>!!["string","number"].includes(typeof e);r.arrayToDictionary=(e,t,r)=>r?e.reduce((e,r)=>{const i=t(r);return n(i)?{...e,[i]:[...e[i]??[],r]}:e},{}):e.reduce((e,r)=>{const i=t(r);return n(i)?{...e,[i]:r}:e},{})}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/arrayToDictionary.js"}],[6070,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isAscii=function(e){return!e||!n.test(e)},r.getNonAsciiChars=function(e){return e?e.match(n):null};const n=/[^\x20-\x7E]/g}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/asciiUtils.js"}],[6071,{"bignumber.js":6125,tslib:8343},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BigNumber=void 0;const n=e("tslib").__importDefault(e("bignumber.js"));r.BigNumber=n.default.clone({EXPONENTIAL_AT:1e9})}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/bigNumber.js"}],[6072,{buffer:6542},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.getChunkSize=r.reverseBuffer=void 0;r.reverseBuffer=t=>{if(t.length<1)return t;const r=e.alloc(t.length);let n=r.length-1;for(let e=0;e<r.length/2;e++)r[e]=t[n],r[n]=t[e],n--;return r};r.getChunkSize=t=>{const r=e.allocUnsafe(1);return r.writeUInt8(t),r}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/bufferUtils.js"}],[6073,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bytesToHumanReadable=void 0;const n=["B","KB","MB","GB","TB"];r.bytesToHumanReadable=e=>{let t=Math.abs(e),r=0;for(;t>=1024||r>=n.length;)t/=1024,r++;return`${t.toFixed(1)} ${n[r]}`}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/bytesToHumanReadable.js"}],[6074,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Cache=void 0;r.Cache=class{store;constructor(){this.store=new Map}set(e,t,r){this.store.set(e,{value:t,ttl:Date.now()+r})}get(e){const t=this.store.get(e);if(t){if(!(t.ttl<Date.now()))return t.value;this.store.delete(e)}}delete(e){this.store.delete(e)}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/cache.js"}],[6075,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.capitalizeFirstLetter=void 0;r.capitalizeFirstLetter=e=>e.charAt(0).toUpperCase()+e.slice(1)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/capitalizeFirstLetter.js"}],[6076,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.cloneObject=void 0;r.cloneObject=(e,t=new WeakMap)=>{if(null===e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);if(e instanceof ArrayBuffer)return e.slice(0);if(ArrayBuffer.isView(e)){return new(0,e.constructor)(e)}const n=Array.isArray(e)?[]:{};t.set(e,n);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=e[i];if("function"==typeof s||"symbol"==typeof s)continue;n[i]=(0,r.cloneObject)(s,t)}return n}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/cloneObject.js"}],[6077,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isChanged=void 0;r.isChanged=(e,t,n)=>{if(e===t)return!1;if(!e||!t)return!0;const i=Object.prototype.toString.call(e),s=Object.prototype.toString.call(t);if(i!==s)return!0;if("[object Array]"===s){if(e.length!==t.length)return!0;for(let i=0;i<t.length;i++)if((0,r.isChanged)(e[i],t[i],n))return!0}else if("[object Object]"===s){const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!0;if(i.find(e=>s.indexOf(e)<0))return!0;for(let i=0;i<s.length;i++){const o=s[i];if(n&&Object.prototype.hasOwnProperty.call(n,o)&&e[o]&&t[o]){const i={},s={};for(let r=0;r<n[o].length;r++){const a=n[o][r];i[a]=e[o][a],s[a]=t[o][a]}if((0,r.isChanged)(i,s))return!0}else if((0,r.isChanged)(e[o],t[o]))return!0}}else if(e!==t)return!0;return!1}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/comparison.js"}],[6078,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.convertTaprootXpub=void 0;r.convertTaprootXpub=({xpub:e,direction:t})=>{const r="h-to-apostrophe"===t?"h":"'",n="h-to-apostrophe"===t?"'":"h",i=e.split("[");if(2===i.length){const[e,t]=i,s=t.split("]");if(2===s.length){const[t,i]=s;return`${e}[${t.replace(new RegExp(r,"g"),n)}]${i}`}}return null}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/convertTaprootXpub.js"}],[6079,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.countBytesInString=void 0;r.countBytesInString=e=>encodeURI(e).split(/%..|./).length-1}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/countBytesInString.js"}],[6080,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createCooldown=void 0;r.createCooldown=e=>{let t=0;return()=>{const r=Date.now();return r-t>=e&&(t=r,!0)}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/createCooldown.js"}],[6081,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createDeferred=void 0;r.createDeferred=e=>{let t=()=>{},r=()=>{};const n=new Promise((e,n)=>{t=e,r=n});return{id:e,resolve:t,reject:r,promise:n}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/createDeferred.js"}],[6082,{"./createDeferred":6081},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createDeferredManager=void 0;const n=e("./createDeferred");r.createDeferredManager=e=>{const{initialId:t=0,timeout:r=0,onTimeout:i}=e??{},s=[];let o,a=t;const u=()=>{const e=Date.now(),t=s.reduce((e,{deadline:t})=>(e&&t?Math.min:Math.max)(e,t),0);o&&clearTimeout(o),o=t?setTimeout(c,Math.max(t-e,0)):undefined},c=()=>{const e=Date.now();s.filter(t=>t.deadline&&t.deadline<=e).forEach(e=>{i?.(e.id),e.deadline=0}),u()},l=e=>{const t=s.findIndex(({id:t})=>t===e),[r]=t>=0?s.splice(t,1):[undefined];return r?.deadline&&u(),r};return{length:()=>s.length,nextId:()=>a,create:(e=r)=>{const t=a++,i=(0,n.createDeferred)(t),o=e&&Date.now()+e;return s.push({...i,deadline:o}),e&&u(),{promiseId:t,promise:i.promise}},resolve:(e,t)=>{const r=l(e);return r?.resolve(t),!!r},reject:(e,t)=>{const r=l(e);return r?.reject(t),!!r},rejectAll:e=>{s.forEach(t=>t.reject(e));s.splice(0,s.length).length&&u()}}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/createDeferredManager.js"}],[6083,{"./createDeferred":6081},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createLazy=void 0;const n=e("./createDeferred");r.createLazy=(e,t)=>{let r,i;return{get:()=>r,getPending:()=>i?.promise,getOrInit:(...t)=>{if(r!==undefined)return Promise.resolve(r);if(!i){const s=(0,n.createDeferred)();i=s,e(...t).then(e=>{r=e,i=undefined,s.resolve(e)}).catch(e=>{i=undefined,s.reject(e)})}return i.promise},dispose:()=>{i&&(i.reject(new Error("Disposed during initialization")),i=undefined),r!==undefined&&(t?.(r),r=undefined)}}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/createLazy.js"}],[6084,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getKeyByValue=function(e,t){return e&&Object.keys(e).find(r=>e[r]===t)},r.getValueByKey=function(e,t){const r=e&&Object.keys(e).find(e=>e===t);return r&&e[r]}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/enumUtils.js"}],[6085,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.extractUrlsFromText=void 0;const n=/\b(?:https?:\/\/|www\.)[a-zA-Z0-9-._~:/?#[\]@!$&'()*+,;=%]+\b|(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(?=\b|\s|$|\])/gi;r.extractUrlsFromText=e=>{const t=[],r=[];let i=0;return[...e.matchAll(n)].forEach(n=>{const s=n[0],o=n.index!==undefined?n.index:-1;i<o&&r.push(e.slice(i,o)),t.push(s),i=o+s.length}),i<e.length&&r.push(e.slice(i)),0===r.length&&t.length>0&&r.push(""),{textParts:r,urls:t}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/extractUrlsFromText.js"}],[6086,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getLocaleSeparators=void 0;r.getLocaleSeparators=e=>{const t=new Intl.NumberFormat(e).formatToParts(10000.1),r=t.find(({type:e})=>"decimal"===e)?.value,n=t.find(({type:e})=>"group"===e)?.value;return{decimalSeparator:r,thousandsSeparator:n}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getLocaleSeparators.js"}],[6087,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getMutex=void 0;r.getMutex=()=>{const e=Symbol(),t={};return async(r=e)=>{for(;t[r];)await t[r];let n=()=>{};return t[r]=new Promise(e=>{n=e}).finally(()=>{delete t[r]}),n}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getMutex.js"}],[6088,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getNumberFromPixelString=void 0;r.getNumberFromPixelString=e=>parseInt(e.replace("px",""),10)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getNumberFromPixelString.js"}],[6089,{crypto:6494},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getRandomInt=void 0;const n=e("crypto");r.getRandomInt=(e,t)=>{if(!Number.isSafeInteger(e))throw new RangeError(`The "min" argument must be a safe integer. Received type ${typeof e} (${e})`);if(!Number.isSafeInteger(t))throw new RangeError(`The "max" argument must be a safe integer. Received type ${typeof t} (${t})`);if(e>=t)throw new RangeError(`The value of "max" is out of range. It must be greater than the value of "min" (${e}). Received ${t}`);const r=4294967296,i=t-e;if(i>r)throw new RangeError("This function only provide 32 bits of entropy, therefore range cannot be more then 2^32.");const s="undefined"!=typeof window?e=>window.crypto.getRandomValues(e):e=>(0,n.getRandomValues)(e),o=new Uint32Array(1),a=r-r%i;let u;do{s(o),u=o[0]}while(u>=a);return e+u%i}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getRandomInt.js"}],[6090,{"./getMutex":6087},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getSynchronize=void 0;const n=e("./getMutex");r.getSynchronize=e=>{const t=e??(0,n.getMutex)();return(e,r)=>t(r).then(t=>Promise.resolve().then(e).finally(t))}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getSynchronize.js"}],[6091,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getWeakRandomId=void 0;r.getWeakRandomId=e=>{let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<e;n++)t+=r.charAt(Math.floor(62*Math.random()));return t}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getWeakRandomId.js"}],[6092,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getWeakRandomInt=void 0;r.getWeakRandomInt=(e,t)=>{if(e>=t)throw new RangeError(`The value of "max" is out of range. It must be greater than the value of "min" (${e}). Received ${t}`);return Math.floor(Math.random()*(t-e)+e)}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getWeakRandomInt.js"}],[6093,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getWeakRandomNumberInRange=void 0;r.getWeakRandomNumberInRange=(e,t)=>Math.floor(Math.random()*(t-e+1))+e}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/getWeakRandomNumberInRange.js"}],[6094,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hasUppercaseLetter=void 0;const n=new RegExp("^(.*[A-Z].*)$");r.hasUppercaseLetter=e=>n.test(e)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/hasUppercaseLetter.js"}],[6095,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hexToRgba=function(e,t){const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);if(t&&t>0)return`rgba(${r}, ${n}, ${i}, ${t})`;return`rgb(${r}, ${n}, ${i})`}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/hexToRgba.js"}],[6096,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hexToRgbaArray=void 0;r.hexToRgbaArray=e=>{const t=e.replace("#",""),r=6===t.length?t+"FF":t;return[parseInt(r.slice(0,2),16)/255,parseInt(r.slice(2,4),16)/255,parseInt(r.slice(4,6),16)/255,parseInt(r.slice(6,8),16)/255]}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/hexToRgbaArray.js"}],[6097,{"./addDashesToSpaces":6065,"./arrayDistinct":6066,"./arrayPartition":6067,"./arrayShuffle":6068,"./arrayToDictionary":6069,"./asciiUtils":6070,"./bigNumber":6071,"./bufferUtils":6072,"./bytesToHumanReadable":6073,"./cache":6074,"./capitalizeFirstLetter":6075,"./cloneObject":6076,"./comparison":6077,"./convertTaprootXpub":6078,"./countBytesInString":6079,"./createCooldown":6080,"./createDeferred":6081,"./createDeferredManager":6082,"./createLazy":6083,"./enumUtils":6084,"./extractUrlsFromText":6085,"./getLocaleSeparators":6086,"./getMutex":6087,"./getNumberFromPixelString":6088,"./getRandomInt":6089,"./getSynchronize":6090,"./getWeakRandomId":6091,"./getWeakRandomInt":6092,"./getWeakRandomNumberInRange":6093,"./hasUppercaseLetter":6094,"./hexToRgba":6095,"./hexToRgbaArray":6096,"./isArrayMember":6098,"./isFullPath":6099,"./isHex":6100,"./isNotUndefined":6101,"./isUrl":6102,"./isWhitelistedHost":6103,"./logs":6104,"./logsManager":6105,"./mergeDeepObject":6106,"./objectPartition":6107,"./parseElectrumUrl":6108,"./parseHostname":6109,"./promiseAllSequence":6110,"./redactUserPath":6111,"./resolveAfter":6112,"./scheduleAction":6113,"./serializeError":6114,"./splitStringEveryNCharacters":6115,"./throttler":6116,"./throwError":6117,"./topologicalSort":6118,"./typedEventEmitter":6119,"./typedObjectKeys":6120,"./urlToOnion":6121,"./versionUtils":6122,"./xssFilters":6123,"./zip":6124,tslib:8343},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hexToRgbaArray=r.hexToRgba=r.xssFilters=r.versionUtils=r.enumUtils=r.bufferUtils=void 0;const n=e("tslib");r.bufferUtils=n.__importStar(e("./bufferUtils")),r.enumUtils=n.__importStar(e("./enumUtils")),r.versionUtils=n.__importStar(e("./versionUtils")),r.xssFilters=n.__importStar(e("./xssFilters")),n.__exportStar(e("./addDashesToSpaces"),r),n.__exportStar(e("./arrayDistinct"),r),n.__exportStar(e("./arrayPartition"),r),n.__exportStar(e("./arrayShuffle"),r),n.__exportStar(e("./arrayToDictionary"),r),n.__exportStar(e("./asciiUtils"),r),n.__exportStar(e("./bigNumber"),r),n.__exportStar(e("./bytesToHumanReadable"),r),n.__exportStar(e("./cache"),r),n.__exportStar(e("./capitalizeFirstLetter"),r),n.__exportStar(e("./cloneObject"),r),n.__exportStar(e("./comparison"),r),n.__exportStar(e("./convertTaprootXpub"),r),n.__exportStar(e("./countBytesInString"),r),n.__exportStar(e("./createCooldown"),r),n.__exportStar(e("./createDeferred"),r),n.__exportStar(e("./createDeferredManager"),r),n.__exportStar(e("./createLazy"),r),n.__exportStar(e("./extractUrlsFromText"),r),n.__exportStar(e("./getLocaleSeparators"),r),n.__exportStar(e("./getMutex"),r),n.__exportStar(e("./getNumberFromPixelString"),r),n.__exportStar(e("./getRandomInt"),r),n.__exportStar(e("./getSynchronize"),r),n.__exportStar(e("./getWeakRandomId"),r),n.__exportStar(e("./getWeakRandomInt"),r),n.__exportStar(e("./getWeakRandomNumberInRange"),r),n.__exportStar(e("./hasUppercaseLetter"),r);var i=e("./hexToRgba");Object.defineProperty(r,"hexToRgba",{enumerable:!0,get:function(){return i.hexToRgba}});var s=e("./hexToRgbaArray");Object.defineProperty(r,"hexToRgbaArray",{enumerable:!0,get:function(){return s.hexToRgbaArray}}),n.__exportStar(e("./isArrayMember"),r),n.__exportStar(e("./isFullPath"),r),n.__exportStar(e("./isHex"),r),n.__exportStar(e("./isNotUndefined"),r),n.__exportStar(e("./isUrl"),r),n.__exportStar(e("./isWhitelistedHost"),r),n.__exportStar(e("./logs"),r),n.__exportStar(e("./logsManager"),r),n.__exportStar(e("./mergeDeepObject"),r),n.__exportStar(e("./objectPartition"),r),n.__exportStar(e("./parseElectrumUrl"),r),n.__exportStar(e("./parseHostname"),r),n.__exportStar(e("./promiseAllSequence"),r),n.__exportStar(e("./redactUserPath"),r),n.__exportStar(e("./resolveAfter"),r),n.__exportStar(e("./scheduleAction"),r),n.__exportStar(e("./serializeError"),r),n.__exportStar(e("./splitStringEveryNCharacters"),r),n.__exportStar(e("./throttler"),r),n.__exportStar(e("./throwError"),r),n.__exportStar(e("./topologicalSort"),r),n.__exportStar(e("./typedEventEmitter"),r),n.__exportStar(e("./typedObjectKeys"),r),n.__exportStar(e("./urlToOnion"),r),n.__exportStar(e("./zip"),r)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/index.js"}],[6098,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isArrayMember=void 0;r.isArrayMember=(e,t)=>t.some(t=>t===e)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isArrayMember.js"}],[6099,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isFullPath=void 0;r.isFullPath=e=>/^(\/|([a-zA-Z]:\\))/.test(e)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isFullPath.js"}],[6100,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isHex=void 0;r.isHex=e=>/^(0x|0X)?[0-9A-Fa-f]+$/g.test(e)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isHex.js"}],[6101,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isNotUndefined=void 0;r.isNotUndefined=e=>void 0!==e}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isNotUndefined.js"}],[6102,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isUrlWithQuery=r.isUrl=void 0;const n=/^(http|ws)s?:\/\/[a-z0-9]([a-z0-9.-]+)?(:[0-9]{1,5})?(\/[a-z0-9-_]+)*\/?$/i,i=/^(http|ws)s?:\/\/[a-z0-9]([a-z0-9.-]+)?(:[0-9]{1,5})?(\/[a-z0-9-_]+)*\/?(\?[a-z0-9-_]+=[a-z0-9-_]+(&[a-z0-9-_]+=[a-z0-9-_]+)*)?$/i;r.isUrl=e=>n.test(e);r.isUrlWithQuery=e=>i.test(e)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isUrl.js"}],[6103,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isWhitelistedHost=void 0;r.isWhitelistedHost=(e,t=["127.0.0.1","localhost"])=>"string"==typeof e&&(""!==e.trim()&&t.some(t=>t===e||e.endsWith(`.${t}`)))}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/isWhitelistedHost.js"}],[6104,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Log=void 0;r.Log=class{prefix;enabled;css="";messages;logWriter;MAX_ENTRIES=100;constructor(e,t,r){this.prefix=e,this.enabled=t,this.messages=[],r&&(this.logWriter=r)}setColors(e){this.css="undefined"!=typeof window&&e[this.prefix]?e[this.prefix]:""}addMessage({level:e,prefix:t,timestamp:r},...n){const i={level:e,prefix:t,css:this.css,message:n,timestamp:r||Date.now()};if(this.messages.push(i),this.logWriter)try{this.logWriter.add(i)}catch(e){console.error("There was an error adding log message",e,i)}this.messages.length>this.MAX_ENTRIES&&this.messages.shift()}setWriter(e){this.logWriter=e}log(...e){this.addMessage({level:"log",prefix:this.prefix},...e),this.enabled&&console.log(`%c${this.prefix}`,this.css,...e)}error(...e){this.addMessage({level:"error",prefix:this.prefix},...e),this.enabled&&console.error(`%c${this.prefix}`,this.css,...e)}info(...e){this.addMessage({level:"info",prefix:this.prefix},...e),this.enabled&&console.info(`%c${this.prefix}`,this.css,...e)}warn(...e){this.addMessage({level:"warn",prefix:this.prefix},...e),this.enabled&&console.warn(`%c${this.prefix}`,this.css,...e)}debug(...e){this.addMessage({level:"debug",prefix:this.prefix},...e),this.enabled&&(this.css?console.log(`%c${this.prefix}`,this.css,...e):console.log(this.prefix,...e))}getLog(){return this.messages}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/logs.js"}],[6105,{"./logs":6104},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.LogsManager=void 0;const n=e("./logs");r.LogsManager=class{logs={};writer;colors={};constructor({colors:e}){this.colors=e}initLog(e,t,r){const i=r||this.writer,s=new n.Log(e,!!t,i);return this.colors&&s.setColors(this.colors),this.logs[e]=s,s}setLogWriter(e){Object.keys(this.logs).forEach(t=>{if(this.writer=e(),this.writer){this.logs[t].setWriter(this.writer);const{messages:e}=this.logs[t];e.forEach(e=>{this.writer?.add(e)})}})}enableLog(e){Object.keys(this.logs).forEach(t=>{this.logs[t].enabled=!!e})}enableLogByPrefix(e,t){this.logs[e]&&(this.logs[e].enabled=t)}getLog(){let e=[];return Object.keys(this.logs).forEach(t=>{e=e.concat(this.logs[t].messages)}),e.sort((e,t)=>e.timestamp-t.timestamp),e}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/logsManager.js"}],[6106,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeDeepObject=void 0;const n=e=>{if("object"==typeof e&&null!==e){if("function"==typeof Object.getPrototypeOf){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return"[object Object]"===Object.prototype.toString.call(e)}return!1},i=(e,t,[r,...o])=>r===undefined?s(e,t):n(e)?{...e,[r]:i(e[r],t,o)}:{[r]:i({},t,o)},s=(e,t)=>Array.isArray(e)&&Array.isArray(t)?r.mergeDeepObject.options.mergeArrays?Array.from(new Set(e.concat(t))):t:n(e)&&n(t)?(0,r.mergeDeepObject)(e,t):t;r.mergeDeepObject=(...e)=>e.reduce((e,t)=>{if(Array.isArray(t))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(t).forEach(n=>{if(!["__proto__","constructor","prototype"].includes(n))if(r.mergeDeepObject.options.dotNotation){const[r,...s]=n.split(".");e[r]=i(e[r],t[n],s)}else e[n]=s(e[n],t[n])}),e},{});const o={mergeArrays:!0,dotNotation:!1};r.mergeDeepObject.options=o,r.mergeDeepObject.withOptions=(e,...t)=>{r.mergeDeepObject.options={...o,...e};const n=(0,r.mergeDeepObject)(...t);return r.mergeDeepObject.options=o,n}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/mergeDeepObject.js"}],[6107,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.objectPartition=void 0;r.objectPartition=(e,t)=>t.reduce(([e,t],r)=>{const{[r]:n,...i}=t;return void 0!==n?[{...e,[r]:n},i]:[e,t]},[{},e])}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/objectPartition.js"}],[6108,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseElectrumUrl=void 0;const n=/^(?:([a-zA-Z0-9.-]+)|\[([a-f0-9:]+)\]):([0-9]{1,5}):([ts])$/;r.parseElectrumUrl=e=>{const t=e.match(n);return t?{host:t[1]??t[2],port:Number.parseInt(t[3],10),protocol:t[4]}:undefined}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/parseElectrumUrl.js"}],[6109,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseHostname=void 0;const n=/^([a-z0-9.+-]+:\/\/)?([a-z0-9.-]+)([:/][^:/]+)*\/?$/i;r.parseHostname=e=>e.match(n)?.[2]?.toLowerCase()}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/parseHostname.js"}],[6110,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.promiseAllSequence=void 0;r.promiseAllSequence=async e=>{const t=[];for(let r=0;r<e.length;++r){const n=await e[r]();t.push(n)}return t}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/promiseAllSequence.js"}],[6111,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.redactUserPathFromString=r.startOfUserPathRegex=void 0,r.startOfUserPathRegex=/([/\\][Uu]sers[/\\]{1,4})([^"^'^[^\]^/^\\]*)/g;r.redactUserPathFromString=e=>e.replace(r.startOfUserPathRegex,"$1[*]")}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/redactUserPath.js"}],[6112,{"./createDeferred":6081},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.resolveAfter=void 0;const n=e("./createDeferred");r.resolveAfter=(e,t,r)=>{const{promise:i,reject:s,resolve:o}=(0,n.createDeferred)(),a=setTimeout(o,e,r),u=()=>s(t?.reason);return t?.addEventListener("abort",u),t?.aborted&&u(),i.finally(()=>{clearTimeout(a),t?.removeEventListener("abort",u)})}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/resolveAfter.js"}],[6113,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleAction=r.ScheduleActionDeadlineError=r.SCHEDULE_ACTION_DEADLINE_ERROR_MESSAGE=r.ScheduleActionTimeoutError=r.SCHEDULE_ACTION_TIMEOUT_ERROR_MESSAGE=r.RejectWhenAbortedError=r.SCHEDULE_ACTION_ABORTED_ERROR_MESSAGE=void 0;const n=e=>Array.isArray(e),i=(e,t)=>new Promise((r,n)=>{if(t.aborted)return n();if(e===undefined)return r();let i;const s=()=>{clearTimeout(i),t.removeEventListener("abort",s),n()};i=setTimeout(()=>{t.removeEventListener("abort",s),r()},e),t.addEventListener("abort",s)}),s=(e,t,r)=>new Promise((n,i)=>{if(r.aborted)return i();let s;const o=()=>{clearTimeout(s),r.removeEventListener("abort",o),i()};s=setTimeout(()=>{r.removeEventListener("abort",o),i(t)},e),r.addEventListener("abort",o)}),o=(e,t,r)=>e===undefined?[]:[s(e,t,r)];r.SCHEDULE_ACTION_ABORTED_ERROR_MESSAGE="Aborted by signal";class a extends Error{constructor(){super(r.SCHEDULE_ACTION_ABORTED_ERROR_MESSAGE)}}r.RejectWhenAbortedError=a;const u=(e,t)=>new Promise((r,n)=>{const i=new a;if(t.aborted)return n(i);if(e?.aborted)return n(i);const s=()=>n(i);e?.addEventListener("abort",s);const o=()=>{e?.removeEventListener("abort",s),t.removeEventListener("abort",o),n()};t.addEventListener("abort",o)}),c=async(e,t)=>{const r=new AbortController;t.aborted&&r.abort();const n=()=>{t.removeEventListener("abort",n),r.abort()};t.addEventListener("abort",n);try{return await new Promise(t=>t(e(r.signal)))}finally{t.aborted||t.removeEventListener("abort",n)}};r.SCHEDULE_ACTION_TIMEOUT_ERROR_MESSAGE="Aborted by timeout";class l extends Error{constructor(){super(r.SCHEDULE_ACTION_TIMEOUT_ERROR_MESSAGE)}}r.ScheduleActionTimeoutError=l,r.SCHEDULE_ACTION_DEADLINE_ERROR_MESSAGE="Aborted by deadline";class d extends Error{constructor(){super(r.SCHEDULE_ACTION_DEADLINE_ERROR_MESSAGE)}}r.ScheduleActionDeadlineError=d;r.scheduleAction=async(e,t)=>{const{signal:r,delay:s,attempts:a,timeout:h,deadline:p,gap:f,attemptFailureHandler:m}=t,y=p&&p-Date.now(),b=n(a)?a.length:a??(p?Infinity:1),g=new AbortController,w=g.signal,_=n(a)?e=>a[e]:()=>({timeout:h,gap:f}),x=new d,v=new l;try{return await Promise.race([u(r,w),...o(y,x,w),i(s,w).then(()=>(async(e,t,r,n)=>{for(let i=0;i<e-1&&!n.aborted;i++){const e=new AbortController,s=()=>e.abort();n.addEventListener("abort",s);try{return await t(i,e.signal)}catch(e){s(),await r(i,e)}finally{n.removeEventListener("abort",s)}}return n.aborted?Promise.reject():t(e-1,n)})(b,(t,r)=>Promise.race([...o(_(t).timeout,v,w),c(e,r)]),(e,t)=>{const r=m?.(t);return r?Promise.reject(r):i(_(e).gap??0,w)},w))])}finally{g.abort()}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/scheduleAction.js"}],[6114,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.serializeError=void 0;r.serializeError=e=>e instanceof Error?JSON.stringify({message:e.toString(),stackTrace:e.stack}):"object"==typeof e?JSON.stringify(e):`${e}`}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/serializeError.js"}],[6115,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.splitStringEveryNCharacters=function(e,t){if(0===t)return[];const r=new RegExp(`.{1,${t}}`,"g");return e.match(r)??[]}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/splitStringEveryNCharacters.js"}],[6116,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Throttler=void 0;r.Throttler=class{delay;intervals;callbacks;constructor(e){this.delay=e,this.intervals={},this.callbacks={}}throttle(e,t){this.intervals[e]?this.callbacks[e]=t:(t(),this.intervals[e]=setInterval(()=>this.tick(e),this.delay))}tick(e){this.callbacks[e]?(this.callbacks[e](),delete this.callbacks[e]):this.cancel(e)}cancel(e){clearInterval(this.intervals[e]),delete this.intervals[e],delete this.callbacks[e]}dispose(){Object.keys(this.intervals).forEach(this.cancel,this)}}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/throttler.js"}],[6117,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throwError=void 0;r.throwError=e=>{throw new Error(e)}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/throwError.js"}],[6118,{"./arrayPartition":6067},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.topologicalSort=void 0;const n=e("./arrayPartition");r.topologicalSort=(e,t,r)=>{const i=[],s=e=>(0,n.arrayPartition)(e,r=>!e.some(e=>t(e,r)));let o=e;for(;o.length;){const[e,t]=s(o);if(!e.length)throw new Error("Cycle detected");i.push(...r?e.sort(r):e),o=t}return i}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/topologicalSort.js"}],[6119,{events:6850},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TypedEmitter=void 0;const n=e("events");class i extends n.EventEmitter{listenerCount(e){return super.listenerCount(e)}}r.TypedEmitter=i}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/typedEventEmitter.js"}],[6120,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.typedObjectKeys=void 0;r.typedObjectKeys=e=>Object.keys(e)}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/typedObjectKeys.js"}],[6121,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.urlToOnion=void 0;r.urlToOnion=(e,t)=>{const[,r,n,i,s]=e.match(/^(http|ws)s?:\/\/([^:/]+\.)?([^/.]+\.[^/.]+)(\/.*)?$/i)??[];if(i&&t[i])return`${r}://${n??""}${t[i]}${s??""}`}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/urlToOnion.js"}],[6122,{"./throwError":6117},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.normalizeVersion=r.isNewerOrEqual=r.isEqual=r.isNewer=r.isVersionArray=void 0;const n=e("./throwError");r.isVersionArray=e=>Array.isArray(e)&&3===e.length&&e.every(e=>"number"==typeof e&&e>=0);const i=e=>("string"==typeof e?(e=>e.match(/^(\d+)\.(\d+)\.(\d+)([+-].*)?$/)?.slice(1,4).map(e=>Number(e)))(e):(e=>(0,r.isVersionArray)(e)?e:null)(e))??(0,n.throwError)(`version string is in wrong format: ${e}`),s=([e,t,r],[n,i,s])=>e-n||t-i||r-s;r.isNewer=(e,t)=>s(i(e),i(t))>0;r.isEqual=(e,t)=>0===s(i(e),i(t));r.isNewerOrEqual=(e,t)=>s(i(e),i(t))>=0;r.normalizeVersion=e=>e.replace(/\b0+(\d)/g,"$1")}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/versionUtils.js"}],[6123,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.inDoubleQuotes=r.inSingleQuotes=r.inHTML=void 0;const n=/</g,i=/'/g,s=/"/g;r.inHTML=e=>e.replace(n,"&lt;");r.inSingleQuotes=e=>e.replace(i,"&#39;");r.inDoubleQuotes=e=>e.replace(s,"&quot;")}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/xssFilters.js"}],[6124,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createZip=void 0;r.createZip=e=>{const t=[],r=[];let n=0;e.forEach(({name:e,content:i})=>{const s=i,o=new Uint8Array(30+e.length),a=new DataView(o.buffer);a.setUint32(0,67324752,!0),a.setUint16(4,0,!0),a.setUint16(6,0,!0),a.setUint16(8,0,!0),a.setUint16(10,0,!0),a.setUint16(12,0,!0),a.setUint32(14,0,!0),a.setUint32(18,s.byteLength,!0),a.setUint32(22,s.byteLength,!0),a.setUint16(26,e.length,!0),o.set((new TextEncoder).encode(e),30),t.push(o,s);const u=new Uint8Array(46+e.length),c=new DataView(u.buffer);c.setUint32(0,33639248,!0),c.setUint16(4,0,!0),c.setUint16(6,0,!0),c.setUint16(8,0,!0),c.setUint16(10,0,!0),c.setUint16(12,0,!0),c.setUint16(14,0,!0),c.setUint32(16,0,!0),c.setUint32(20,s.byteLength,!0),c.setUint32(24,s.byteLength,!0),c.setUint16(28,e.length,!0),c.setUint32(42,n,!0),u.set((new TextEncoder).encode(e),46),r.push(u),n+=o.length+s.byteLength});const i=new Uint8Array(22),s=new DataView(i.buffer);return s.setUint32(0,101010256,!0),s.setUint16(8,r.length,!0),s.setUint16(10,r.length,!0),s.setUint32(12,r.reduce((e,t)=>e+t.byteLength,0),!0),s.setUint32(16,n,!0),new Blob([...t,...r,i],{type:"application/zip"})}}}},{package:"@trezor/connect-web>@trezor/utils",file:"node_modules/@trezor/utils/lib/zip.js"}],[6125,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,s=Math.floor,o="[BigNumber Error] ",a=o+"Number primitive has more than 15 significant digits: ",u=1e14,c=14,l=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,p=1e9;function f(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,r,n=1,i=e.length,s=e[0]+"";n<i;){for(t=e[n++]+"",r=c-t.length;r--;t="0"+t);s+=t}for(i=s.length;48===s.charCodeAt(--i););return s.slice(0,i+1||1)}function y(e,t){var r,n,i=e.c,s=t.c,o=e.s,a=t.s,u=e.e,c=t.e;if(!o||!a)return null;if(r=i&&!i[0],n=s&&!s[0],r||n)return r?n?0:-a:o;if(o!=a)return o;if(r=o<0,n=u==c,!i||!s)return n?0:!i^r?1:-1;if(!n)return u>c^r?1:-1;for(a=(u=i.length)<(c=s.length)?u:c,o=0;o<a;o++)if(i[o]!=s[o])return i[o]>s[o]^r?1:-1;return u==c?0:u>c^r?1:-1}function b(e,t,r,n){if(e<t||e>r||e!==s(e))throw Error(o+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function g(e){var t=e.c.length-1;return f(e.e/c)==t&&e.c[t]%2!=0}function w(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function _(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}r=function e(t){var r,x,v,T,O,E,M,k,j,S,A=G.prototype={constructor:G,toString:null,valueOf:null},I=new G(1),P=20,C=4,z=-7,R=21,N=-1e7,B=1e7,L=!1,U=1,D=0,F={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},$="0123456789abcdefghijklmnopqrstuvwxyz",K=!0;function G(e,t){var r,i,o,u,d,h,p,f,m=this;if(!(m instanceof G))return new G(e,t);if(null==t){if(e&&!0===e._isBigNumber)return m.s=e.s,void(!e.c||e.e>B?m.c=m.e=null:e.e<N?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice()));if((h="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,d=e;d>=10;d/=10,u++);return void(u>B?m.c=m.e=null:(m.e=u,m.c=[e]))}f=String(e)}else{if(!n.test(f=String(e)))return v(m,f,h);m.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(u=f.indexOf("."))>-1&&(f=f.replace(".","")),(d=f.search(/e/i))>0?(u<0&&(u=d),u+=+f.slice(d+1),f=f.substring(0,d)):u<0&&(u=f.length)}else{if(b(t,2,$.length,"Base"),10==t&&K)return W(m=new G(e),P+m.e+1,C);if(f=String(e),h="number"==typeof e){if(0*e!=0)return v(m,f,h,t);if(m.s=1/e<0?(f=f.slice(1),-1):1,G.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else m.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=$.slice(0,t),u=d=0,p=f.length;d<p;d++)if(r.indexOf(i=f.charAt(d))<0){if("."==i){if(d>u){u=p;continue}}else if(!o&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){o=!0,d=-1,u=0;continue}return v(m,String(e),h,t)}h=!1,(u=(f=x(f,t,10,m.s)).indexOf("."))>-1?f=f.replace(".",""):u=f.length}for(d=0;48===f.charCodeAt(d);d++);for(p=f.length;48===f.charCodeAt(--p););if(f=f.slice(d,++p)){if(p-=d,h&&G.DEBUG&&p>15&&(e>l||e!==s(e)))throw Error(a+m.s*e);if((u=u-d-1)>B)m.c=m.e=null;else if(u<N)m.c=[m.e=0];else{if(m.e=u,m.c=[],d=(u+1)%c,u<0&&(d+=c),d<p){for(d&&m.c.push(+f.slice(0,d)),p-=c;d<p;)m.c.push(+f.slice(d,d+=c));d=c-(f=f.slice(d)).length}else d-=p;for(;d--;f+="0");m.c.push(+f)}}else m.c=[m.e=0]}function H(e,t,r,n){var i,s,o,a,u;if(null==r?r=C:b(r,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)u=m(e.c),u=1==n||2==n&&(o<=z||o>=R)?w(u,o):_(u,o,"0");else if(s=(e=W(new G(e),t,r)).e,a=(u=m(e.c)).length,1==n||2==n&&(t<=s||s<=z)){for(;a<t;u+="0",a++);u=w(u,s)}else if(t-=o+(2===n&&s>o),u=_(u,s,"0"),s+1>a){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=s-a)>0)for(s+1==a&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function V(e,t){for(var r,n,i=1,s=new G(e[0]);i<e.length;i++)(!(n=new G(e[i])).s||(r=y(s,n))===t||0===r&&s.s===t)&&(s=n);return s}function q(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*c-1)>B?e.c=e.e=null:r<N?e.c=[e.e=0]:(e.e=r,e.c=t),e}function W(e,t,r,n){var o,a,l,h,p,f,m,y=e.c,b=d;if(y){e:{for(o=1,h=y[0];h>=10;h/=10,o++);if((a=t-o)<0)a+=c,l=t,p=y[f=0],m=s(p/b[o-l-1]%10);else if((f=i((a+1)/c))>=y.length){if(!n)break e;for(;y.length<=f;y.push(0));p=m=0,o=1,l=(a%=c)-c+1}else{for(p=h=y[f],o=1;h>=10;h/=10,o++);m=(l=(a%=c)-c+o)<0?0:s(p/b[o-l-1]%10)}if(n=n||t<0||null!=y[f+1]||(l<0?p:p%b[o-l-1]),n=r<4?(m||n)&&(0==r||r==(e.s<0?3:2)):m>5||5==m&&(4==r||n||6==r&&(a>0?l>0?p/b[o-l]:0:y[f-1])%10&1||r==(e.s<0?8:7)),t<1||!y[0])return y.length=0,n?(t-=e.e+1,y[0]=b[(c-t%c)%c],e.e=-t||0):y[0]=e.e=0,e;if(0==a?(y.length=f,h=1,f--):(y.length=f+1,h=b[c-a],y[f]=l>0?s(p/b[o-l]%b[l])*h:0),n)for(;;){if(0==f){for(a=1,l=y[0];l>=10;l/=10,a++);for(l=y[0]+=h,h=1;l>=10;l/=10,h++);a!=h&&(e.e++,y[0]==u&&(y[0]=1));break}if(y[f]+=h,y[f]!=u)break;y[f--]=0,h=1}for(a=y.length;0===y[--a];y.pop());}e.e>B?e.c=e.e=null:e.e<N&&(e.c=[e.e=0])}return e}function Z(e){var t,r=e.e;return null===r?e.toString():(t=m(e.c),t=r<=z||r>=R?w(t,r):_(t,r,"0"),e.s<0?"-"+t:t)}return G.clone=e,G.ROUND_UP=0,G.ROUND_DOWN=1,G.ROUND_CEIL=2,G.ROUND_FLOOR=3,G.ROUND_HALF_UP=4,G.ROUND_HALF_DOWN=5,G.ROUND_HALF_EVEN=6,G.ROUND_HALF_CEIL=7,G.ROUND_HALF_FLOOR=8,G.EUCLID=9,G.config=G.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(o+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(b(r=e[t],0,p,t),P=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(b(r=e[t],0,8,t),C=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(b(r[0],-p,0,t),b(r[1],0,p,t),z=r[0],R=r[1]):(b(r,-p,p,t),z=-(R=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)b(r[0],-p,-1,t),b(r[1],1,p,t),N=r[0],B=r[1];else{if(b(r,-p,p,t),!r)throw Error(o+t+" cannot be zero: "+r);N=-(B=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(o+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw L=!r,Error(o+"crypto unavailable");L=r}else L=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(b(r=e[t],0,9,t),U=r),e.hasOwnProperty(t="POW_PRECISION")&&(b(r=e[t],0,p,t),D=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(o+t+" not an object: "+r);F=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(o+t+" invalid: "+r);K="0123456789"==r.slice(0,10),$=r}}return{DECIMAL_PLACES:P,ROUNDING_MODE:C,EXPONENTIAL_AT:[z,R],RANGE:[N,B],CRYPTO:L,MODULO_MODE:U,POW_PRECISION:D,FORMAT:F,ALPHABET:$}},G.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!G.DEBUG)return!0;var t,r,n=e.c,i=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&i>=-p&&i<=p&&i===s(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%c)<1&&(t+=c),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=u||r!==s(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(o+"Invalid BigNumber: "+e)},G.maximum=G.max=function(){return V(arguments,-1)},G.minimum=G.min=function(){return V(arguments,1)},G.random=(T=9007199254740992,O=Math.random()*T&2097151?function(){return s(Math.random()*T)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,a,u,l=0,h=[],f=new G(I);if(null==e?e=P:b(e,0,p),a=i(e/c),L)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));l<a;)(u=131072*t[l]+(t[l+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(h.push(u%1e14),l+=2);l=a/2}else{if(!crypto.randomBytes)throw L=!1,Error(o+"crypto unavailable");for(t=crypto.randomBytes(a*=7);l<a;)(u=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?crypto.randomBytes(7).copy(t,l):(h.push(u%1e14),l+=7);l=a/7}if(!L)for(;l<a;)(u=O())<9e15&&(h[l++]=u%1e14);for(a=h[--l],e%=c,a&&e&&(u=d[c-e],h[l]=s(a/u)*u);0===h[l];h.pop(),l--);if(l<0)h=[n=0];else{for(n=-1;0===h[0];h.splice(0,1),n-=c);for(l=1,u=h[0];u>=10;u/=10,l++);l<c&&(n-=c-l)}return f.e=n,f.c=h,f}),G.sum=function(){for(var e=1,t=arguments,r=new G(t[0]);e<t.length;)r=r.plus(t[e++]);return r},x=function(){var e="0123456789";function t(e,t,r,n){for(var i,s,o=[0],a=0,u=e.length;a<u;){for(s=o.length;s--;o[s]*=t);for(o[0]+=n.indexOf(e.charAt(a++)),i=0;i<o.length;i++)o[i]>r-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(n,i,s,o,a){var u,c,l,d,h,p,f,y,b=n.indexOf("."),g=P,w=C;for(b>=0&&(d=D,D=0,n=n.replace(".",""),p=(y=new G(i)).pow(n.length-b),D=d,y.c=t(_(m(p.c),p.e,"0"),10,s,e),y.e=y.c.length),l=d=(f=t(n,i,s,a?(u=$,e):(u=e,$))).length;0==f[--d];f.pop());if(!f[0])return u.charAt(0);if(b<0?--l:(p.c=f,p.e=l,p.s=o,f=(p=r(p,y,g,w,s)).c,h=p.r,l=p.e),b=f[c=l+g+1],d=s/2,h=h||c<0||null!=f[c+1],h=w<4?(null!=b||h)&&(0==w||w==(p.s<0?3:2)):b>d||b==d&&(4==w||h||6==w&&1&f[c-1]||w==(p.s<0?8:7)),c<1||!f[0])n=h?_(u.charAt(1),-g,u.charAt(0)):u.charAt(0);else{if(f.length=c,h)for(--s;++f[--c]>s;)f[c]=0,c||(++l,f=[1].concat(f));for(d=f.length;!f[--d];);for(b=0,n="";b<=d;n+=u.charAt(f[b++]));n=_(n,l,u.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,s,o,a=0,u=e.length,c=t%h,l=t/h|0;for(e=e.slice();u--;)a=((i=c*(s=e[u]%h)+(n=l*s+(o=e[u]/h|0)*c)%h*h+a)/r|0)+(n/h|0)+l*o,e[u]=i%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var i,s;if(r!=n)s=r>n?1:-1;else for(i=s=0;i<r;i++)if(e[i]!=t[i]){s=e[i]>t[i]?1:-1;break}return s}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,l){var d,h,p,m,y,b,g,w,_,x,v,T,O,E,M,k,j,S=n.s==i.s?1:-1,A=n.c,I=i.c;if(!(A&&A[0]&&I&&I[0]))return new G(n.s&&i.s&&(A?!I||A[0]!=I[0]:I)?A&&0==A[0]||!I?0*S:S/0:NaN);for(_=(w=new G(S)).c=[],S=o+(h=n.e-i.e)+1,l||(l=u,h=f(n.e/c)-f(i.e/c),S=S/c|0),p=0;I[p]==(A[p]||0);p++);if(I[p]>(A[p]||0)&&h--,S<0)_.push(1),m=!0;else{for(E=A.length,k=I.length,p=0,S+=2,(y=s(l/(I[0]+1)))>1&&(I=e(I,y,l),A=e(A,y,l),k=I.length,E=A.length),O=k,v=(x=A.slice(0,k)).length;v<k;x[v++]=0);j=I.slice(),j=[0].concat(j),M=I[0],I[1]>=l/2&&M++;do{if(y=0,(d=t(I,x,k,v))<0){if(T=x[0],k!=v&&(T=T*l+(x[1]||0)),(y=s(T/M))>1)for(y>=l&&(y=l-1),g=(b=e(I,y,l)).length,v=x.length;1==t(b,x,g,v);)y--,r(b,k<g?j:I,g,l),g=b.length,d=1;else 0==y&&(d=y=1),g=(b=I.slice()).length;if(g<v&&(b=[0].concat(b)),r(x,b,v,l),v=x.length,-1==d)for(;t(I,x,k,v)<1;)y++,r(x,k<v?j:I,v,l),v=x.length}else 0===d&&(y++,x=[0]);_[p++]=y,x[0]?x[v++]=A[O]||0:(x=[A[O]],v=1)}while((O++<E||null!=x[0])&&S--);m=null!=x[0],_[0]||_.splice(0,1)}if(l==u){for(p=1,S=_[0];S>=10;S/=10,p++);W(w,o+(w.e=p+h*c-1)+1,a,m)}else w.e=h,w.r=+m;return w}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,M=/^([^.]+)\.$/,k=/^\.([^.]+)$/,j=/^-?(Infinity|NaN)$/,S=/^\s*\+(?=[\w.])|^\s+|\s+$/g,v=function(e,t,r,n){var i,s=r?t:t.replace(S,"");if(j.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!r&&(s=s.replace(E,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,s=s.replace(M,"$1").replace(k,"0.$1")),t!=s))return new G(s,i);if(G.DEBUG)throw Error(o+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},A.absoluteValue=A.abs=function(){var e=new G(this);return e.s<0&&(e.s=1),e},A.comparedTo=function(e,t){return y(this,new G(e,t))},A.decimalPlaces=A.dp=function(e,t){var r,n,i,s=this;if(null!=e)return b(e,0,p),null==t?t=C:b(t,0,8),W(new G(s),e+s.e+1,t);if(!(r=s.c))return null;if(n=((i=r.length-1)-f(this.e/c))*c,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},A.dividedBy=A.div=function(e,t){return r(this,new G(e,t),P,C)},A.dividedToIntegerBy=A.idiv=function(e,t){return r(this,new G(e,t),0,1)},A.exponentiatedBy=A.pow=function(e,t){var r,n,a,u,l,d,h,p,f=this;if((e=new G(e)).c&&!e.isInteger())throw Error(o+"Exponent not an integer: "+Z(e));if(null!=t&&(t=new G(t)),l=e.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!e.c||!e.c[0])return p=new G(Math.pow(+Z(f),l?e.s*(2-g(e)):+Z(e))),t?p.mod(t):p;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new G(NaN);(n=!d&&f.isInteger()&&t.isInteger())&&(f=f.mod(t))}else{if(e.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||l&&f.c[1]>=24e7:f.c[0]<8e13||l&&f.c[0]<=9999975e7)))return u=f.s<0&&g(e)?-0:0,f.e>-1&&(u=1/u),new G(d?1/u:u);D&&(u=i(D/c+2))}for(l?(r=new G(.5),d&&(e.s=1),h=g(e)):h=(a=Math.abs(+Z(e)))%2,p=new G(I);;){if(h){if(!(p=p.times(f)).c)break;u?p.c.length>u&&(p.c.length=u):n&&(p=p.mod(t))}if(a){if(0===(a=s(a/2)))break;h=a%2}else if(W(e=e.times(r),e.e+1,1),e.e>14)h=g(e);else{if(0===(a=+Z(e)))break;h=a%2}f=f.times(f),u?f.c&&f.c.length>u&&(f.c.length=u):n&&(f=f.mod(t))}return n?p:(d&&(p=I.div(p)),t?p.mod(t):u?W(p,D,C,undefined):p)},A.integerValue=function(e){var t=new G(this);return null==e?e=C:b(e,0,8),W(t,t.e+1,e)},A.isEqualTo=A.eq=function(e,t){return 0===y(this,new G(e,t))},A.isFinite=function(){return!!this.c},A.isGreaterThan=A.gt=function(e,t){return y(this,new G(e,t))>0},A.isGreaterThanOrEqualTo=A.gte=function(e,t){return 1===(t=y(this,new G(e,t)))||0===t},A.isInteger=function(){return!!this.c&&f(this.e/c)>this.c.length-2},A.isLessThan=A.lt=function(e,t){return y(this,new G(e,t))<0},A.isLessThanOrEqualTo=A.lte=function(e,t){return-1===(t=y(this,new G(e,t)))||0===t},A.isNaN=function(){return!this.s},A.isNegative=function(){return this.s<0},A.isPositive=function(){return this.s>0},A.isZero=function(){return!!this.c&&0==this.c[0]},A.minus=function(e,t){var r,n,i,s,o=this,a=o.s;if(t=(e=new G(e,t)).s,!a||!t)return new G(NaN);if(a!=t)return e.s=-t,o.plus(e);var l=o.e/c,d=e.e/c,h=o.c,p=e.c;if(!l||!d){if(!h||!p)return h?(e.s=-t,e):new G(p?o:NaN);if(!h[0]||!p[0])return p[0]?(e.s=-t,e):new G(h[0]?o:3==C?-0:0)}if(l=f(l),d=f(d),h=h.slice(),a=l-d){for((s=a<0)?(a=-a,i=h):(d=l,i=p),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(s=(a=h.length)<(t=p.length))?a:t,a=t=0;t<n;t++)if(h[t]!=p[t]){s=h[t]<p[t];break}if(s&&(i=h,h=p,p=i,e.s=-e.s),(t=(n=p.length)-(r=h.length))>0)for(;t--;h[r++]=0);for(t=u-1;n>a;){if(h[--n]<p[n]){for(r=n;r&&!h[--r];h[r]=t);--h[r],h[n]+=u}h[n]-=p[n]}for(;0==h[0];h.splice(0,1),--d);return h[0]?q(e,h,d):(e.s=3==C?-1:1,e.c=[e.e=0],e)},A.modulo=A.mod=function(e,t){var n,i,s=this;return e=new G(e,t),!s.c||!e.s||e.c&&!e.c[0]?new G(NaN):!e.c||s.c&&!s.c[0]?new G(s):(9==U?(i=e.s,e.s=1,n=r(s,e,0,3),e.s=i,n.s*=i):n=r(s,e,0,U),(e=s.minus(n.times(e))).c[0]||1!=U||(e.s=s.s),e)},A.multipliedBy=A.times=function(e,t){var r,n,i,s,o,a,l,d,p,m,y,b,g,w,_,x=this,v=x.c,T=(e=new G(e,t)).c;if(!(v&&T&&v[0]&&T[0]))return!x.s||!e.s||v&&!v[0]&&!T||T&&!T[0]&&!v?e.c=e.e=e.s=null:(e.s*=x.s,v&&T?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=f(x.e/c)+f(e.e/c),e.s*=x.s,(l=v.length)<(m=T.length)&&(g=v,v=T,T=g,i=l,l=m,m=i),i=l+m,g=[];i--;g.push(0));for(w=u,_=h,i=m;--i>=0;){for(r=0,y=T[i]%_,b=T[i]/_|0,s=i+(o=l);s>i;)r=((d=y*(d=v[--o]%_)+(a=b*d+(p=v[o]/_|0)*y)%_*_+g[s]+r)/w|0)+(a/_|0)+b*p,g[s--]=d%w;g[s]=r}return r?++n:g.splice(0,1),q(e,g,n)},A.negated=function(){var e=new G(this);return e.s=-e.s||null,e},A.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new G(e,t)).s,!i||!t)return new G(NaN);if(i!=t)return e.s=-t,n.minus(e);var s=n.e/c,o=e.e/c,a=n.c,l=e.c;if(!s||!o){if(!a||!l)return new G(i/0);if(!a[0]||!l[0])return l[0]?e:new G(a[0]?n:0*i)}if(s=f(s),o=f(o),a=a.slice(),i=s-o){for(i>0?(o=s,r=l):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(t=l.length)<0&&(r=l,l=a,a=r,t=i),i=0;t;)i=(a[--t]=a[t]+l[t]+i)/u|0,a[t]=u===a[t]?0:a[t]%u;return i&&(a=[i].concat(a),++o),q(e,a,o)},A.precision=A.sd=function(e,t){var r,n,i,s=this;if(null!=e&&e!==!!e)return b(e,1,p),null==t?t=C:b(t,0,8),W(new G(s),e,t);if(!(r=s.c))return null;if(n=(i=r.length-1)*c+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&s.e+1>n&&(n=s.e+1),n},A.shiftedBy=function(e){return b(e,-9007199254740991,l),this.times("1e"+e)},A.squareRoot=A.sqrt=function(){var e,t,n,i,s,o=this,a=o.c,u=o.s,c=o.e,l=P+4,d=new G("0.5");if(1!==u||!a||!a[0])return new G(!u||u<0&&(!a||a[0])?NaN:a?o:1/0);if(0==(u=Math.sqrt(+Z(o)))||u==1/0?(((t=m(a)).length+c)%2==0&&(t+="0"),u=Math.sqrt(+t),c=f((c+1)/2)-(c<0||c%2),n=new G(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new G(u+""),n.c[0])for((u=(c=n.e)+l)<3&&(u=0);;)if(s=n,n=d.times(s.plus(r(o,s,l,1))),m(s.c).slice(0,u)===(t=m(n.c)).slice(0,u)){if(n.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(W(n,n.e+P+2,1),e=!n.times(n).eq(o));break}if(!i&&(W(s,s.e+P+2,0),s.times(s).eq(o))){n=s;break}l+=4,u+=4,i=1}return W(n,n.e+P+1,C,e)},A.toExponential=function(e,t){return null!=e&&(b(e,0,p),e++),H(this,e,t,1)},A.toFixed=function(e,t){return null!=e&&(b(e,0,p),e=e+this.e+1),H(this,e,t)},A.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=F;else if("object"!=typeof r)throw Error(o+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var s,a=n.split("."),u=+r.groupSize,c=+r.secondaryGroupSize,l=r.groupSeparator||"",d=a[0],h=a[1],p=i.s<0,f=p?d.slice(1):d,m=f.length;if(c&&(s=u,u=c,c=s,m-=s),u>0&&m>0){for(s=m%u||u,d=f.substr(0,s);s<m;s+=u)d+=l+f.substr(s,u);c>0&&(d+=l+f.slice(s)),p&&(d="-"+d)}n=h?d+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):d}return(r.prefix||"")+n+(r.suffix||"")},A.toFraction=function(e){var t,n,i,s,a,u,l,h,p,f,y,b,g=this,w=g.c;if(null!=e&&(!(l=new G(e)).isInteger()&&(l.c||1!==l.s)||l.lt(I)))throw Error(o+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+Z(l));if(!w)return new G(g);for(t=new G(I),p=n=new G(I),i=h=new G(I),b=m(w),a=t.e=b.length-g.e-1,t.c[0]=d[(u=a%c)<0?c+u:u],e=!e||l.comparedTo(t)>0?a>0?t:p:l,u=B,B=1/0,l=new G(b),h.c[0]=0;f=r(l,t,0,1),1!=(s=n.plus(f.times(i))).comparedTo(e);)n=i,i=s,p=h.plus(f.times(s=p)),h=s,t=l.minus(f.times(s=t)),l=s;return s=r(e.minus(n),i,0,1),h=h.plus(s.times(p)),n=n.plus(s.times(i)),h.s=p.s=g.s,y=r(p,i,a*=2,C).minus(g).abs().comparedTo(r(h,n,a,C).minus(g).abs())<1?[p,i]:[h,n],B=u,y},A.toNumber=function(){return+Z(this)},A.toPrecision=function(e,t){return null!=e&&b(e,1,p),H(this,e,t,2)},A.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=z||i>=R?w(m(r.c),i):_(m(r.c),i,"0"):10===e&&K?t=_(m((r=W(new G(r),P+i+1,C)).c),r.e,"0"):(b(e,2,$.length,"Base"),t=x(_(m(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},A.valueOf=A.toJSON=function(){return Z(this)},A._isBigNumber=!0,null!=t&&G.set(t),G}(),r.default=r.BigNumber=r,"function"==typeof define&&define.amd?define(function(){return r}):void 0!==t&&t.exports?t.exports=r:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=r)}(this)}}},{package:"@trezor/connect-web>@trezor/utils>bignumber.js",file:"node_modules/@trezor/utils/node_modules/bignumber.js/bignumber.js"}],[6126,{"@trezor/utils":6097,tslib:8343,ws:6128},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebsocketClient=r.WebsocketError=void 0;const n=e("tslib").__importDefault(e("ws")),i=e("@trezor/utils");class s extends Error{}r.WebsocketError=s;class o extends i.TypedEmitter{options;messages;emitter=this;ws;pingTimeout;connectPromise;ping(){return this.sendMessage({type:"ping"})}constructor(e){super(),this.options=e,this.messages=(0,i.createDeferredManager)({timeout:this.options.timeout||2e4,onTimeout:this.onTimeout.bind(this)})}initWebsocket({url:e,timeout:t,headers:r,agent:i}){if("string"!=typeof e)throw new s("websocket_no_url");return e.startsWith("http")&&(e=e.replace("http","ws")),new n.default(e,{timeout:t,headers:{Origin:"https://node.trezor.io",...r},agent:i})}setPingTimeout(){clearTimeout(this.pingTimeout);this.pingTimeout=this.isConnected()?setTimeout(()=>{if(this.isConnected())return this.onPing().catch(()=>{})},this.options.pingTimeout||5e4):undefined}onPing(){return this.ping()}onTimeout(){const{ws:e}=this;e&&(this.messages.rejectAll(new s("websocket_timeout")),e.close())}onError(){this.onClose()}sendMessage(e,{timeout:t}={}){const{ws:r}=this;if(!r||!this.isConnected())throw new s("websocket_not_initialized");const{promiseId:n,promise:i}=this.messages.create(t),o={id:n.toString(),...e};return this.setPingTimeout(),this.options.onSending?.(e),r.send(JSON.stringify(o)),i}sendRawMessage(e){const{ws:t}=this;if(!t||!this.isConnected())throw new s("websocket_not_initialized");t.send(e,{binary:"string"!=typeof e}),this.setPingTimeout()}onMessage(e,t){try{const r=JSON.parse(e.toString()),n=Number(r.id);try{const e=t?t(r):r;e&&this.messages.resolve(n,e)}catch(e){this.messages.reject(n,e)}}catch{}finally{this.setPingTimeout()}}async connect(){if(this.connectPromise)return this.connectPromise;if(this.isConnected())return Promise.resolve();this.ws?.readyState===n.default.CLOSING&&await new Promise(e=>this.emitter.once("disconnected",e));const e=(0,i.createDeferred)();this.connectPromise=e.promise;const t=this.createWebsocket?this.createWebsocket():this.initWebsocket(this.options),r=setTimeout(()=>{this.onClose(),e.reject(new s("websocket_timeout"));try{t.close()}catch{}},this.options.connectionTimeout||this.options.timeout||2e4);return t.once("error",t=>{clearTimeout(r),this.onClose(),e.reject(new s(t.message))}),t.on("open",()=>{clearTimeout(r),this.init(),e.resolve()}),this.ws=t,e.promise.finally(()=>{this.connectPromise=undefined})}init(){const{ws:e}=this;if(!e||!this.isConnected())throw Error("Websocket init cannot be called");e.removeAllListeners(),e.on("error",e=>this.onError()),e.on("message",e=>this.onMessage(e)),e.on("close",()=>{this.emitter.emit("disconnected"),this.onClose()})}disconnect(){if(this.isConnected()){const e=new Promise(e=>{this.ws?.once("close",e)});return this.ws?.close(),e}return Promise.resolve()}isConnected(){return this.ws?.readyState===n.default.OPEN}onClose(){clearTimeout(this.pingTimeout),this.ws?.removeAllListeners(),this.ws?.on("error",()=>{}),this.messages.rejectAll(new s("Websocket closed unexpectedly"))}dispose(){this.removeAllListeners(),this.disconnect(),this.onClose()}}r.WebsocketClient=o}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client",file:"node_modules/@trezor/websocket-client/lib/client.js"}],[6127,{"./client":6126},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebsocketClient=void 0;var n=e("./client");Object.defineProperty(r,"WebsocketClient",{enumerable:!0,get:function(){return n.WebsocketClient}})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client",file:"node_modules/@trezor/websocket-client/lib/index.js"}],[6128,{"./client":6126,events:6850},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=e("events"),i=e("./client");class s extends n.EventEmitter{_ws;static CONNECTING=0;static OPEN=1;static CLOSING=2;static CLOSED=3;constructor(e,t,r){super(),this._ws=new WebSocket(e),this._ws.onclose=()=>{this.emit("close")},this._ws.onopen=()=>{this.emit("open")},this._ws.onerror=e=>{this.emit("error",new i.WebsocketError(`WsWrapper error. Ready state: ${this.readyState}`))},this._ws.onmessage=e=>{this.emit("message",e.data)}}close(){this.readyState===s.OPEN&&this._ws.close()}send(e){if(this.readyState!==s.OPEN)throw new i.WebsocketError(`Connection is not open. state: ${this.readyState}`);this._ws.send(e)}get readyState(){return this._ws.readyState}}r.default=s}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client",file:"node_modules/@trezor/websocket-client/lib/ws-browser.js"}],[6378,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{AbortController:n}=globalThis;t.exports={AbortController:n}}}},{package:"openai>abort-controller",file:"node_modules/abort-controller/browser.js"}],[6379,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/*!
 * accounting.js v0.4.1
 * Copyright 2014 Open Exchange Rates
 *
 * Freely distributable under the MIT license.
 * Portions of accounting.js are inspired or borrowed from underscore.js
 *
 * Full details and documentation:
 * http://openexchangerates.github.io/accounting.js/
 */
!function(e){var n={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},i=Array.prototype.map,s=Array.isArray,o=Object.prototype.toString;function a(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function u(e){return s?s(e):"[object Array]"===o.call(e)}function c(e){return e&&"[object Object]"===o.call(e)}function l(e,t){var r;for(r in e=e||{},t=t||{})t.hasOwnProperty(r)&&null==e[r]&&(e[r]=t[r]);return e}function d(e,t,r){var n,s,o=[];if(!e)return o;if(i&&e.map===i)return e.map(t,r);for(n=0,s=e.length;n<s;n++)o[n]=t.call(r,e[n],n,e);return o}function h(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function p(e){var t=n.settings.currency.format;return"function"==typeof e&&(e=e()),a(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:a(t)?n.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var f,m=n.unformat=n.parse=function(e,t){if(u(e))return d(e,function(e){return m(e,t)});if("number"==typeof(e=e||0))return e;t=t||n.settings.number.decimal;var r=new RegExp("[^0-9-"+t+"]",["g"]),i=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(r,"").replace(t,"."));return isNaN(i)?0:i},y=n.toFixed=function(e,t){t=h(t,n.settings.number.precision);var r=Math.pow(10,t);return(Math.round(n.unformat(e)*r)/r).toFixed(t)},b=n.formatNumber=n.format=function(e,t,r,i){if(u(e))return d(e,function(e){return b(e,t,r,i)});e=m(e);var s=l(c(t)?t:{precision:t,thousand:r,decimal:i},n.settings.number),o=h(s.precision),a=e<0?"-":"",p=parseInt(y(Math.abs(e||0),o),10)+"",f=p.length>3?p.length%3:0;return a+(f?p.substr(0,f)+s.thousand:"")+p.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+s.thousand)+(o?s.decimal+y(Math.abs(e),o).split(".")[1]:"")},g=n.formatMoney=function(e,t,r,i,s,o){if(u(e))return d(e,function(e){return g(e,t,r,i,s,o)});e=m(e);var a=l(c(t)?t:{symbol:t,precision:r,thousand:i,decimal:s,format:o},n.settings.currency),f=p(a.format);return(e>0?f.pos:e<0?f.neg:f.zero).replace("%s",a.symbol).replace("%v",b(Math.abs(e),h(a.precision),a.thousand,a.decimal))};n.formatColumn=function(e,t,r,i,s,o){if(!e)return[];var f=l(c(t)?t:{symbol:t,precision:r,thousand:i,decimal:s,format:o},n.settings.currency),y=p(f.format),g=y.pos.indexOf("%s")<y.pos.indexOf("%v"),w=0,_=d(e,function(e,t){if(u(e))return n.formatColumn(e,f);var r=((e=m(e))>0?y.pos:e<0?y.neg:y.zero).replace("%s",f.symbol).replace("%v",b(Math.abs(e),h(f.precision),f.thousand,f.decimal));return r.length>w&&(w=r.length),r});return d(_,function(e,t){return a(e)&&e.length<w?g?e.replace(f.symbol,f.symbol+new Array(w-e.length+1).join(" ")):new Array(w-e.length+1).join(" ")+e:e})},void 0!==r?(void 0!==t&&t.exports&&(r=t.exports=n),r.accounting=n):"function"==typeof define&&define.amd?define([],function(){return n}):(n.noConflict=(f=e.accounting,function(){return e.accounting=f,n.noConflict=void 0,n}),e.accounting=n)}(this)}}},{package:"currency-formatter>accounting",file:"node_modules/accounting/accounting.js"}],[6380,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
/*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
!function(e){function n(e){return parseInt(e)===e}function i(e){if(!n(e.length))return!1;for(var t=0;t<e.length;t++)if(!n(e[t])||e[t]<0||e[t]>255)return!1;return!0}function s(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!i(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&i(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function a(e,t,r,n,i){null==n&&null==i||(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var u,c={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r<e.length;){var n=e.charCodeAt(r++);37===n?(t.push(parseInt(e.substr(r,2),16)),r+=2):t.push(n)}return s(t)},fromBytes:function(e){for(var t=[],r=0;r<e.length;){var n=e[r];n<128?(t.push(String.fromCharCode(n)),r++):n>191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},l=(u="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},fromBytes:function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(u[(240&n)>>4]+u[15&n])}return t.join("")}}),d={16:10,24:12,32:14},h=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],p=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],f=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],m=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],y=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],b=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],g=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],w=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],_=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],x=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],v=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],T=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],O=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],M=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function k(e){for(var t=[],r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}var j=function(e){if(!(this instanceof j))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:s(e,!0)}),this._prepare()};j.prototype._prepare=function(){var e=d[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var r,n=4*(e+1),i=this.key.length/4,s=k(this.key);for(t=0;t<i;t++)r=t>>2,this._Ke[r][t%4]=s[t],this._Kd[e-r][t%4]=s[t];for(var o,a=0,u=i;u<n;){if(o=s[i-1],s[0]^=p[o>>16&255]<<24^p[o>>8&255]<<16^p[255&o]<<8^p[o>>24&255]^h[a]<<24,a+=1,8!=i)for(t=1;t<i;t++)s[t]^=s[t-1];else{for(t=1;t<i/2;t++)s[t]^=s[t-1];o=s[i/2-1],s[i/2]^=p[255&o]^p[o>>8&255]<<8^p[o>>16&255]<<16^p[o>>24&255]<<24;for(t=i/2+1;t<i;t++)s[t]^=s[t-1]}for(t=0;t<i&&u<n;)c=u>>2,l=u%4,this._Ke[c][l]=s[t],this._Kd[e-c][l]=s[t++],u++}for(var c=1;c<e;c++)for(var l=0;l<4;l++)o=this._Kd[c][l],this._Kd[c][l]=T[o>>24&255]^O[o>>16&255]^E[o>>8&255]^M[255&o]},j.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=k(e),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var s=1;s<t;s++){for(i=0;i<4;i++)r[i]=m[n[i]>>24&255]^y[n[(i+1)%4]>>16&255]^b[n[(i+2)%4]>>8&255]^g[255&n[(i+3)%4]]^this._Ke[s][i];n=r.slice()}var a,u=o(16);for(i=0;i<4;i++)a=this._Ke[t][i],u[4*i]=255&(p[n[i]>>24&255]^a>>24),u[4*i+1]=255&(p[n[(i+1)%4]>>16&255]^a>>16),u[4*i+2]=255&(p[n[(i+2)%4]>>8&255]^a>>8),u[4*i+3]=255&(p[255&n[(i+3)%4]]^a);return u},j.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=k(e),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var s=1;s<t;s++){for(i=0;i<4;i++)r[i]=w[n[i]>>24&255]^_[n[(i+3)%4]>>16&255]^x[n[(i+2)%4]>>8&255]^v[255&n[(i+1)%4]]^this._Kd[s][i];n=r.slice()}var a,u=o(16);for(i=0;i<4;i++)a=this._Kd[t][i],u[4*i]=255&(f[n[i]>>24&255]^a>>24),u[4*i+1]=255&(f[n[(i+3)%4]>>16&255]^a>>16),u[4*i+2]=255&(f[n[(i+2)%4]>>8&255]^a>>8),u[4*i+3]=255&(f[255&n[(i+1)%4]]^a);return u};var S=function(e){if(!(this instanceof S))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new j(e)};S.prototype.encrypt=function(e){if((e=s(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16)a(e,r,0,n,n+16),a(r=this._aes.encrypt(r),t,n);return t},S.prototype.decrypt=function(e){if((e=s(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16)a(e,r,0,n,n+16),a(r=this._aes.decrypt(r),t,n);return t};var A=function(e,t){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=o(16);this._lastCipherblock=s(t,!0),this._aes=new j(e)};A.prototype.encrypt=function(e){if((e=s(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16){a(e,r,0,n,n+16);for(var i=0;i<16;i++)r[i]^=this._lastCipherblock[i];this._lastCipherblock=this._aes.encrypt(r),a(this._lastCipherblock,t,n)}return t},A.prototype.decrypt=function(e){if((e=s(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),r=o(16),n=0;n<e.length;n+=16){a(e,r,0,n,n+16),r=this._aes.decrypt(r);for(var i=0;i<16;i++)t[n+i]=r[i]^this._lastCipherblock[i];a(e,this._lastCipherblock,0,n,n+16)}return t};var I=function(e,t,r){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 size)")}else t=o(16);r||(r=1),this.segmentSize=r,this._shiftRegister=s(t,!0),this._aes=new j(e)};I.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,r=s(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)r[n+i]^=t[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(r,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r},I.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,r=s(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)r[n+i]^=t[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r};var P=function(e,t){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=o(16);this._lastPrecipher=s(t,!0),this._lastPrecipherIndex=16,this._aes=new j(e)};P.prototype.encrypt=function(e){for(var t=s(e,!0),r=0;r<t.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},P.prototype.decrypt=P.prototype.encrypt;var C=function(e){if(!(this instanceof C))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=o(16),this.setValue(e)):this.setBytes(e)};C.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");if(e>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},C.prototype.setBytes=function(e){if(16!=(e=s(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var z=function(e,t){if(!(this instanceof z))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new j(e)};z.prototype.encrypt=function(e){for(var t=s(e,!0),r=0;r<t.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[r]^=this._remainingCounter[this._remainingCounterIndex++];return t},z.prototype.decrypt=z.prototype.encrypt;var R={AES:j,Counter:C,ModeOfOperation:{ecb:S,cbc:A,cfb:I,ofb:P,ctr:z},utils:{hex:l,utf8:c},padding:{pkcs7:{pad:function(e){var t=16-(e=s(e,!0)).length%16,r=o(e.length+t);a(e,r);for(var n=e.length;n<r.length;n++)r[n]=t;return r},strip:function(e){if((e=s(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n<t;n++)if(e[r+n]!==t)throw new Error("PKCS#7 invalid padding byte");var i=o(r);return a(e,i,0,0,r),i}}},_arrayTest:{coerceArray:s,createArray:o,copyArray:a}};void 0!==r?t.exports=R:"function"==typeof define&&define.amd?define([],function(){return R}):(e.aesjs&&(R._aesjs=e.aesjs),e.aesjs=R)}(this)}}},{package:"eth-lattice-keyring>gridplus-sdk>aes-js",file:"node_modules/aes-js/index.js"}],[6423,{"color-convert":6619},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=(e,t)=>(...r)=>`[${e(...r)+t}m`,i=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};5;${n}m`},s=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`},o=e=>e,a=(e,t,r)=>[e,t,r],u=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})};let c;const l=(t,r,n,i)=>{c===undefined&&(c=e("color-convert"));const s=i?10:0,o={};for(const[e,i]of Object.entries(c)){const a="ansi16"===e?"ansi":e;e===r?o[a]=t(n,s):"object"==typeof i&&(o[a]=t(i[r],s))}return o};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,i]of Object.entries(n))t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[r]=t[r],e.set(i[0],i[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="[39m",t.bgColor.close="[49m",u(t.color,"ansi",()=>l(n,"ansi16",o,!1)),u(t.color,"ansi256",()=>l(i,"ansi256",o,!1)),u(t.color,"ansi16m",()=>l(s,"rgb",a,!1)),u(t.bgColor,"ansi",()=>l(n,"ansi16",o,!0)),u(t.bgColor,"ansi256",()=>l(i,"ansi256",o,!0)),u(t.bgColor,"ansi16m",()=>l(s,"rgb",a,!0)),t}})}}},{package:"chalk>ansi-styles",file:"node_modules/ansi-styles/index.js"}],[6424,{"../apg-conv-api/converter":6436,"../apg-lib/node-exports":6442,"./attributes":6425,"./parser":6426,"./scanner":6432,"./show-rules":6434,buffer:6542},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(t){const{Buffer:r}=e("buffer"),n="api.js: ",i=this,s=e("../apg-lib/node-exports"),o=e("../apg-conv-api/converter"),a=e("./scanner"),u=new(e("./parser")),{attributes:c,showAttributes:l,showAttributeErrors:d,showRuleDependencies:h}=e("./attributes"),p=e("./show-rules"),f=function(e,t,r){const n=`<span class="${s.style.CLASS_CTRLCHAR}">`,i="</span>",o=`<span class="${s.style.CLASS_NOMATCH}">`,a="</span>";let u,c="";for(;Array.isArray(e)&&0!==e.length;){if("number"!=typeof t)throw new Error("abnfToHtml: beg must be type number");if(t>=e.length)break;u="number"!=typeof r||t+r>=e.length?e.length:t+r;let l=0;for(let r=t;r<u;r+=1){const t=e[r];if(t>=32&&t<=126)switch(1===l?(c+=i,l=0):2===l&&(c+=a,l=0),t){case 32:c+="&nbsp;";break;case 60:c+="&lt;";break;case 62:c+="&gt;";break;case 38:c+="&amp;";break;case 34:c+="&quot;";break;case 39:c+="&#039;";break;case 92:c+="&#092;";break;default:c+=String.fromCharCode(t)}else 9===t||10===t||13===t?(0===l?(c+=n,l=1):2===l&&(c+=a+n,l=1),9===t&&(c+="TAB"),10===t&&(c+="LF"),13===t&&(c+="CR")):(0===l?(c+=o,l=2):1===l&&(c+=i+o,l=2),c+=`\\x${s.utils.charToHex(t)}`)}2===l&&(c+=a),1===l&&(c+=i);break}return c},m=function(e,t,r){let n="";for(let i=t;i<t+r;i+=1){const t=e[i];if(t>=32&&t<=126)n+=String.fromCharCode(t);else switch(t){case 9:n+="\\t";break;case 10:n+="\\n";break;case 13:n+="\\r";break;default:n+="\\unknown"}}return n};let y,b=!1,g=!1,w=!1,_=!1,x=0;if(this.errors=[],r.isBuffer(t))this.chars=o.decode("BINARY",t);else if(Array.isArray(t))this.chars=t.slice();else{if("string"!=typeof t)throw new Error(`${n}input source is not a string, byte Buffer or character array`);this.chars=o.decode("STRING",t)}this.sabnf=o.encode("STRING",this.chars),this.scan=function(e,t){this.lines=a(this.chars,this.errors,e,t),b=!0},this.parse=function(e,t,r){if(!b)throw new Error(`${n}grammar not scanned`);u.syntax(this.chars,this.lines,this.errors,e,t,r),g=!0},this.translate=function(){if(!g)throw new Error(`${n}grammar not scanned and parsed`);const e=u.semantic(this.chars,this.lines,this.errors);0===this.errors.length&&(this.rules=e.rules,this.udts=e.udts,y=e.lineMap,w=!0)},this.attributes=function(){if(!w)throw new Error(`${n}grammar not scanned, parsed and translated`);return x=c(this.rules,this.udts,y,this.errors),_=!0,x},this.generate=function(e){if(this.lines=a(this.chars,this.errors,e),this.errors.length)return;if(u.syntax(this.chars,this.lines,this.errors,e),this.errors.length)return;const t=u.semantic(this.chars,this.lines,this.errors);this.errors.length||(this.rules=t.rules,this.udts=t.udts,y=t.lineMap,x=c(this.rules,this.udts,y,this.errors),_=!0)},this.displayRules=function(e="index"){if(!w)throw new Error(`${n}grammar not scanned, parsed and translated`);return p(this.rules,this.udts,e)},this.displayRuleDependencies=function(e="index"){if(!_)throw new Error(`${n}no attributes - must be preceeded by call to attributes()`);return h(e)},this.displayAttributes=function(e="index"){if(!_)throw new Error(`${n}no attributes - must be preceeded by call to attributes()`);return x&&d(e),l(e)},this.displayAttributeErrors=function(){if(!_)throw new Error(`${n}no attributes - must be preceeded by call to attributes()`);return d()},this.toSource=function(e=undefined){if(!_)throw new Error(`${n}can't generate parser source - must be preceeded by call to attributes()`);if(x)throw new Error(`${n}can't generate parser source - attributes have ${x} errors`);return u.generateSource(this.chars,this.lines,this.rules,this.udts,e)},this.toObject=function(){if(!_)throw new Error(`${n}can't generate parser source - must be preceeded by call to attributes()`);if(x)throw new Error(`${n}can't generate parser source - attributes have ${x} errors`);return u.generateObject(this.sabnf,this.rules,this.udts)},this.errorsToAscii=function(){return function(e,t,r){let n,i,s,o;return n="",e.forEach(e=>{i=t[e.line],n+=`${i.lineNo}: `,n+=`${i.beginChar}: `,n+=e.char-i.beginChar+": ",s=i.beginChar,o=e.char-i.beginChar,n+=m(r,s,o),n+=" >> ",s=e.char,o=i.beginChar+i.length-e.char,n+=m(r,s,o),n+="\n",n+=`${i.lineNo}: `,n+=`${i.beginChar}: `,n+=e.char-i.beginChar+": ",n+="error: ",n+=e.msg,n+="\n"}),n}(this.errors,this.lines,this.chars)},this.errorsToHtml=function(e){return function(e,t,r,n){const[i]=s;let o="";const a=`<span class="${i.CLASS_NOMATCH}">&raquo;</span>`;return o+=`<p><table class="${i.CLASS_GRAMMAR}">\n`,n&&"string"==typeof n&&(o+=`<caption>${n}</caption>\n`),o+="<tr><th>line<br>no.</th><th>line<br>offset</th><th>error<br>offset</th><th><br>text</th></tr>\n",e.forEach(e=>{let n,i,u,c,l,d="",h="";0===t.length?(l=a,i=0):(n=t[e.line],u=n.beginChar,e.char>u&&(d=f(r,u,e.char-u)),u=e.char,c=n.beginChar+n.length,u<c&&(h=f(r,u,c-u)),l=d+a+h,i=e.char-n.beginChar,o+="<tr>",o+=`<td>${e.line}</td><td>${n.beginChar}</td><td>${i}</td><td>${l}</td>`,o+="</tr>\n",o+="<tr>",o+=`<td colspan="3"></td><td>&uarr;:&nbsp;${s.utils.stringToAsciiHtml(e.msg)}</td>`,o+="</tr>\n")}),o+="</table></p>\n",o}(this.errors,this.lines,this.chars,e)},this.linesToAscii=function(){return function(e){let t="Annotated Input Grammar";return e.forEach(e=>{t+="\n",t+=`line no: ${e.lineNo}`,t+=` : char index: ${e.beginChar}`,t+=` : length: ${e.length}`,t+=` : abnf: ${m(i.chars,e.beginChar,e.length)}`}),t+="\n",t}(this.lines)},this.linesToHtml=function(){return function(e){let t="";return t+=`<table class="${s.style.CLASS_GRAMMAR}">\n`,t+="<caption>Annotated Input Grammar</caption>\n",t+="<tr>",t+="<th>line<br>no.</th><th>first<br>char</th><th><br>length</th><th><br>text</th>",t+="</tr>\n",e.forEach(e=>{t+="<tr>",t+=`<td>${e.lineNo}`,t+=`</td><td>${e.beginChar}`,t+=`</td><td>${e.length}`,t+=`</td><td>${f(i.chars,e.beginChar,e.length)}`,t+="</td>",t+="</tr>\n"}),t+="</table>\n",t}(this.lines)}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/api.js"}],[6425,{"../apg-lib/identifiers":6441,"./rule-attributes":6427,"./rule-dependencies":6428},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("../apg-lib/identifiers"),{ruleAttributes:r,showAttributes:n,showAttributeErrors:i}=e("./rule-attributes"),{ruleDependencies:s,showRuleDependencies:o}=e("./rule-dependencies");class a{constructor(e,t){this.rules=e,this.udts=t,this.ruleCount=e.length,this.udtCount=t.length,this.startRule=0,this.dependenciesComplete=!1,this.attributesComplete=!1,this.isMutuallyRecursive=!1,this.ruleIndexes=this.indexArray(this.ruleCount),this.ruleAlphaIndexes=this.indexArray(this.ruleCount),this.ruleTypeIndexes=this.indexArray(this.ruleCount),this.udtIndexes=this.indexArray(this.udtCount),this.udtAlphaIndexes=this.indexArray(this.udtCount),this.attrsErrorCount=0,this.attrs=[],this.attrsErrors=[],this.attrsWorking=[],this.ruleDeps=[];for(let t=0;t<this.ruleCount;t+=1)this.attrs.push(this.attrGen(this.rules[t])),this.attrsWorking.push(this.attrGen(this.rules[t])),this.ruleDeps.push(this.rdGen(e[t],this.ruleCount,this.udtCount));this.compRulesAlpha=this.compRulesAlpha.bind(this),this.compUdtsAlpha=this.compUdtsAlpha.bind(this),this.compRulesType=this.compRulesType.bind(this),this.compRulesGroup=this.compRulesGroup.bind(this)}attrGen(e){return{left:!1,nested:!1,right:!1,empty:!1,finite:!1,cyclic:!1,leaf:!1,isOpen:!1,isComplete:!1,rule:e}}attrInit(e){e.left=!1,e.nested=!1,e.right=!1,e.empty=!1,e.finite=!1,e.cyclic=!1,e.leaf=!1,e.isOpen=!1,e.isComplete=!1}attrCopy(e,t){e.left=t.left,e.nested=t.nested,e.right=t.right,e.empty=t.empty,e.finite=t.finite,e.cyclic=t.cyclic,e.leaf=t.leaf,e.isOpen=t.isOpen,e.isComplete=t.isComplete,e.rule=t.rule}rdGen(e,r,n){return{rule:e,recursiveType:t.ATTR_N,groupNumber:-1,refersTo:this.falseArray(r),refersToUdt:this.falseArray(n),referencedBy:this.falseArray(r)}}typeToString(e){switch(e){case t.ATTR_N:return" N";case t.ATTR_R:return" R";case t.ATTR_MR:return"MR";default:return"UNKNOWN"}}falseArray(e){const t=[];if(e>0)for(let r=0;r<e;r+=1)t.push(!1);return t}falsifyArray(e){for(let t=0;t<e.length;t+=1)e[t]=!1}indexArray(e){const t=[];if(e>0)for(let r=0;r<e;r+=1)t.push(r);return t}compRulesAlpha(e,t){return this.rules[e].lower<this.rules[t].lower?-1:this.rules[e].lower>this.rules[t].lower?1:0}compUdtsAlpha(e,t){return this.udts[e].lower<this.udts[t].lower?-1:this.udts[e].lower>this.udts[t].lower?1:0}compRulesType(e,t){return this.ruleDeps[e].recursiveType<this.ruleDeps[t].recursiveType?-1:this.ruleDeps[e].recursiveType>this.ruleDeps[t].recursiveType?1:0}compRulesGroup(e,r){if(this.ruleDeps[e].recursiveType===t.ATTR_MR&&this.ruleDeps[r].recursiveType===t.ATTR_MR){if(this.ruleDeps[e].groupNumber<this.ruleDeps[r].groupNumber)return-1;if(this.ruleDeps[e].groupNumber>this.ruleDeps[r].groupNumber)return 1}return 0}}return{attributes:function(e=[],t=[],n=[],i=[]){const o=new a(e,t);return s(o),r(o),o.attrsErrorCount&&i.push({line:0,char:0,msg:`${o.attrsErrorCount} attribute errors`}),o.attrsErrorCount},showAttributes:n,showAttributeErrors:i,showRuleDependencies:o}}()}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/attributes.js"}],[6426,{"../apg-lib/node-exports":6442,"./sabnf-grammar":6429,"./semantic-callbacks":6433,"./syntax-callbacks":6435},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("../apg-lib/node-exports"),r=t.ids,n=new(e("./syntax-callbacks")),i=new(e("./semantic-callbacks")),s=new(e("./sabnf-grammar")),o=new t.parser;o.ast=new t.ast,o.callbacks=n.callbacks,o.ast.callbacks=i.callbacks;const a=function(e,t,r){if(t<0||t>=r)return-1;for(let r=0;r<e.length;r+=1)if(t>=e[r].beginChar&&t<e[r].beginChar+e[r].length)return r;return-1},u=function(e,t){let r=-1;if(t<e.length)for(let n=t;n<e.length;n+=1)if(null!==e[n]){r=e[n];break}return r};this.syntax=function(e,t,r,n,i,u){if(u){if("traceObject"!==u.traceObject)throw new TypeError("parser: trace argument is not a trace object");o.trace=u}const c={};c.errors=r,c.strict=!!n,c.lite=!!i,c.lines=t,c.findLine=a,c.charsLength=e.length,c.ruleCount=0;o.parse(s,"file",e,c).success||r.push({line:0,char:0,msg:"syntax analysis of input grammar failed"})},this.semantic=function(e,t,n){const i={};return i.errors=n,i.lines=t,i.findLine=a,i.charsLength=e.length,o.ast.translate(i),n.length?null:(i.rules.forEach(e=>{const t=[],n=[];let i=0;e.opcodes.forEach(e=>{e.type===r.ALT&&1===e.children.length||e.type===r.CAT&&1===e.children.length||e.type===r.REP&&1===e.min&&1===e.max?n.push(null):(n.push(i),t.push(e),i+=1)}),n.push(i),t.forEach(e=>{if(e.type===r.ALT||e.type===r.CAT)for(let t=0;t<e.children.length;t+=1)e.children[t]=u(n,e.children[t])}),e.opcodes=t}),{rules:i.rules,udts:i.udts,lineMap:i.rulesLineMap})},this.generateSource=function(e,t,n,i,s){let o,a,u,c="",l=!1,d=!1;s&&(s.typescript?(l=!0,d=!1):s.lite&&(l=!1,d=!0));let h=0,p=Infinity,f=0;const m=[],y=[];let b,g=0,w=0,_=0,x=0,v=0,T=0,O=0,E=0,M=0,k=0,j=0,S=0,A=0,I=0,P=0;return n.forEach(e=>{m.push(e.lower),h+=e.opcodes.length,e.opcodes.forEach(e=>{switch(e.type){case r.ALT:g+=1;break;case r.CAT:w+=1;break;case r.RNM:_+=1;break;case r.UDT:x+=1;break;case r.REP:v+=1;break;case r.AND:T+=1;break;case r.NOT:O+=1;break;case r.BKA:S+=1;break;case r.BKN:A+=1;break;case r.BKR:j+=1;break;case r.ABG:I+=1;break;case r.AEN:P+=1;break;case r.TLS:for(E+=1,o=0;o<e.string.length;o+=1)e.string[o]<p&&(p=e.string[o]),e.string[o]>f&&(f=e.string[o]);break;case r.TBS:for(M+=1,o=0;o<e.string.length;o+=1)e.string[o]<p&&(p=e.string[o]),e.string[o]>f&&(f=e.string[o]);break;case r.TRG:k+=1,e.min<p&&(p=e.min),e.max>f&&(f=e.max);break;default:throw new Error("generateSource: unrecognized opcode")}})}),m.sort(),i.length>0&&(i.forEach(e=>{y.push(e.lower)}),y.sort()),c+="// copyright: Copyright (c) 2024 Lowell D. Thomas, all rights reserved<br>\n",c+="//   license: BSD-2-Clause (https://opensource.org/licenses/BSD-2-Clause)<br>\n",c+="//\n",c+="// Generated by apg-js, Version 4.4.0 [apg-js](https://github.com/ldthomas/apg-js)\n",s?s.funcName?c+=`const ${s.funcName} = function grammar(){\n`:c+=l?"export function grammar(){\n":d?"export default function grammar(){\n":"module.exports = function grammar(){\n":c+="module.exports = function grammar(){\n",c+="  // ```\n",c+="  // SUMMARY\n",c+=`  //      rules = ${n.length}\n`,c+=`  //       udts = ${i.length}\n`,c+=`  //    opcodes = ${h}\n`,c+="  //        ---   ABNF original opcodes\n",c+=`  //        ALT = ${g}\n`,c+=`  //        CAT = ${w}\n`,c+=`  //        REP = ${v}\n`,c+=`  //        RNM = ${_}\n`,c+=`  //        TLS = ${E}\n`,c+=`  //        TBS = ${M}\n`,c+=`  //        TRG = ${k}\n`,c+="  //        ---   SABNF superset opcodes\n",c+=`  //        UDT = ${x}\n`,c+=`  //        AND = ${T}\n`,c+=`  //        NOT = ${O}\n`,d||(c+=`  //        BKA = ${S}\n`,c+=`  //        BKN = ${A}\n`,c+=`  //        BKR = ${j}\n`,c+=`  //        ABG = ${I}\n`,c+=`  //        AEN = ${P}\n`),c+="  // characters = [",c+=E+M+k===0?" none defined ]":`${p} - ${f}]`,x>0&&(c+=" + user defined"),c+="\n",c+="  // ```\n",c+="  /* OBJECT IDENTIFIER (for internal parser use) */\n",c+="  this.grammarObject = 'grammarObject';\n",c+="\n",c+="  /* RULES */\n",c+="  this.rules = [];\n",n.forEach((e,t)=>{let r="  this.rules[";r+=t,r+="] = { name: '",r+=e.name,r+="', lower: '",r+=e.lower,r+="', index: ",r+=e.index,r+=", isBkr: ",r+=e.isBkr,r+=" };\n",c+=r}),c+="\n",c+="  /* UDTS */\n",c+="  this.udts = [];\n",i.length>0&&i.forEach((e,t)=>{let r="  this.udts[";r+=t,r+="] = { name: '",r+=e.name,r+="', lower: '",r+=e.lower,r+="', index: ",r+=e.index,r+=", empty: ",r+=e.empty,r+=", isBkr: ",r+=e.isBkr,r+=" };\n",c+=r}),c+="\n",c+="  /* OPCODES */\n",n.forEach((e,t)=>{t>0&&(c+="\n"),c+=`  /* ${e.name} */\n`,c+=`  this.rules[${t}].opcodes = [];\n`,e.opcodes.forEach((e,s)=>{let o;switch(e.type){case r.ALT:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type}, children: [${e.children.toString()}] };// ALT\n`;break;case r.CAT:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type}, children: [${e.children.toString()}] };// CAT\n`;break;case r.RNM:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type}, index: ${e.index} };// RNM(${n[e.index].name})\n`;break;case r.BKR:e.index>=n.length?(a=i[e.index-n.length].name,u=i[e.index-n.length].lower):(a=n[e.index].name,u=n[e.index].lower),o="%i",e.bkrCase===r.BKR_MODE_CS&&(o="%s"),e.bkrMode===r.BKR_MODE_UM?o+="%u":o+="%p",a=o+a,c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type}, index: ${e.index}, lower: '${u}', bkrCase: ${e.bkrCase}, bkrMode: ${e.bkrMode} };// BKR(\\${a})\n`;break;case r.UDT:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type}, empty: ${e.empty}, index: ${e.index} };// UDT(${i[e.index].name})\n`;break;case r.REP:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type}, min: ${e.min}, max: ${e.max} };// REP\n`;break;case r.AND:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type} };// AND\n`;break;case r.NOT:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type} };// NOT\n`;break;case r.ABG:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type} };// ABG(%^)\n`;break;case r.AEN:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type} };// AEN(%$)\n`;break;case r.BKA:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type} };// BKA\n`;break;case r.BKN:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type} };// BKN\n`;break;case r.TLS:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type}, string: [${e.string.toString()}] };// TLS\n`;break;case r.TBS:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type}, string: [${e.string.toString()}] };// TBS\n`;break;case r.TRG:c+=`  this.rules[${t}].opcodes[${s}] = { type: ${e.type}, min: ${e.min}, max: ${e.max} };// TRG\n`;break;default:throw new Error("parser.js: ~143: unrecognized opcode")}})}),c+="\n",c+="  // The `toString()` function will display the original grammar file(s) that produced these opcodes.\n",c+="  this.toString = function toString(){\n",c+='    let str = "";\n',t.forEach(t=>{const r=t.beginChar+t.length;b="",c+='    str += "';for(let n=t.beginChar;n<r;n+=1){switch(e[n]){case 9:b=" ";break;case 10:b="\\n";break;case 13:b="\\r";break;case 34:b='\\"';break;case 92:b="\\\\";break;default:b=String.fromCharCode(e[n])}c+=b}c+='";\n'}),c+="    return str;\n",c+="  }\n",c+="}\n",c},this.generateObject=function(e,t,r){const n={},i=[],s=[],o=e.slice(0);return n.grammarObject="grammarObject",t.forEach(e=>{i.push(e.lower)}),i.sort(),r.length>0&&(r.forEach(e=>{s.push(e.lower)}),s.sort()),n.callbacks=[],i.forEach(e=>{n.callbacks[e]=!1}),r.length>0&&s.forEach(e=>{n.callbacks[e]=!1}),n.rules=t,n.udts=r,n.toString=function(){return o},n}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/parser.js"}],[6427,{"../apg-lib/identifiers":6441},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("../apg-lib/identifiers");let r=null;function n(e){return!(e.left||e.nested||e.right||e.cyclic)&&e.empty}function i(e){return!!(e.left||e.nested||e.right||e.cyclic)}function s(e,t,r,s){let a=0;const u=t[r],c=u.children.length,l=[];for(a=0;a<c;a+=1)l.push(e.attrGen());for(a=0;a<c;a+=1)o(e,t,u.children[a],l[a]);s.left=function(e,t){for(let r=0;r<t;r+=1){if(e[r].left)return!0;if(!e[r].empty)return!1}return!1}(l,c),s.right=function(e,t){for(let r=t-1;r>=0;r-=1){if(e[r].right)return!0;if(!e[r].empty)return!1}return!1}(l,c),s.nested=function(e,t){let r=0,s=0,o=0;for(r=0;r<t;r+=1)if(e[r].nested)return!0;for(r=0;r<t;r+=1)if(e[r].right&&!e[r].leaf)for(s=r+1;s<t;s+=1)if(!n(e[s]))return!0;for(r=t-1;r>=0;r-=1)if(e[r].left&&!e[r].leaf)for(s=r-1;s>=0;s-=1)if(!n(e[s]))return!0;for(r=0;r<t;r+=1)if(!e[r].empty&&!i(e[r]))for(s=r+1;s<t;s+=1)if(i(e[s]))for(o=s+1;o<t;o+=1)if(!e[o].empty&&!i(e[o]))return!0;return!1}(l,c),s.empty=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].empty)return!1;return!0}(l,c),s.finite=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].finite)return!1;return!0}(l,c),s.cyclic=function(e,t){for(let r=0;r<t;r+=1)if(!e[r].cyclic)return!1;return!0}(l,c)}function o(e,r,n,i){e.attrInit(i);const u=r[n];switch(u.type){case t.ALT:!function(e,t,r,n){let i=0;const s=t[r],a=s.children.length,u=[];for(i=0;i<a;i+=1)u.push(e.attrGen());for(i=0;i<a;i+=1)o(e,t,s.children[i],u[i]);for(n.left=!1,n.right=!1,n.nested=!1,n.empty=!1,n.finite=!1,n.cyclic=!1,i=0;i<a;i+=1)u[i].left&&(n.left=!0),u[i].nested&&(n.nested=!0),u[i].right&&(n.right=!0),u[i].empty&&(n.empty=!0),u[i].finite&&(n.finite=!0),u[i].cyclic&&(n.cyclic=!0)}(e,r,n,i);break;case t.CAT:s(e,r,n,i);break;case t.REP:o(e,r,n+1,i),0===u.min&&(i.empty=!0,i.finite=!0);break;case t.RNM:a(e,r[n].index,i);break;case t.BKR:!function(e,t,r,n){const i=t[r];i.index>=e.ruleCount?(n.empty=e.udts[i.index-e.ruleCount].empty,n.finite=!0):(a(e,i.index,n),n.left=!1,n.nested=!1,n.right=!1,n.cyclic=!1)}(e,r,n,i);break;case t.AND:case t.NOT:case t.BKA:case t.BKN:o(e,r,n+1,i),i.empty=!0;break;case t.TLS:i.empty=!r[n].string.length,i.finite=!0,i.cyclic=!1;break;case t.TBS:case t.TRG:i.empty=!1,i.finite=!0,i.cyclic=!1;break;case t.UDT:i.empty=u.empty,i.finite=!0,i.cyclic=!1;break;case t.ABG:case t.AEN:i.empty=!0,i.finite=!0,i.cyclic=!1;break;default:throw new Error(`unknown opcode type: ${u}`)}}function a(e,t,r){const n=e.attrsWorking[t];n.isComplete?e.attrCopy(r,n):n.isOpen?t===e.startRule?t===e.startRule&&(r.left=!0,r.right=!0,r.cyclic=!0,r.leaf=!0):r.finite=!0:(n.isOpen=!0,o(e,n.rule.opcodes,0,r),n.left=r.left,n.right=r.right,n.nested=r.nested,n.empty=r.empty,n.finite=r.finite,n.cyclic=r.cyclic,n.leaf=!1,n.isOpen=!1,n.isComplete=!0)}const u=e=>e?"t":"f",c=e=>e?"e":"f",l=(e,n,i,s)=>{let o=`${e}:${n}:`;return o+=`${c(i.left)} `,o+=`${u(i.nested)} `,o+=`${u(i.right)} `,o+=`${c(i.cyclic)} `,o+=(i.finite?"t":"e")+" ",o+=`${u(i.empty)}:`,o+=`${r.typeToString(s.recursiveType)}:`,o+=s.recursiveType===t.ATTR_MR?s.groupNumber:"-",o+=`:${i.rule.name}\n`,o},d=()=>{let e="LEGEND - t=true, f=false, e=error\n";return e+="sequence:rule index:left nested right cyclic finite empty:type:group number:rule name\n","LEGEND - t=true, f=false, e=error\nsequence:rule index:left nested right cyclic finite empty:type:group number:rule name\n"},h=e=>{let t=0,n=0,i=null,s=null,o="",{ruleIndexes:a}=r;for(97===e?a=r.ruleAlphaIndexes:116===e&&(a=r.ruleTypeIndexes),t=0;t<r.ruleCount;t+=1)n=a[t],i=r.attrs[n],s=r.ruleDeps[n],o+=l(t,n,i,s);return o};return{ruleAttributes:e=>{r=e;let t=0,n=0;const i=r.attrGen();for(t=0;t<r.ruleCount;t+=1){for(n=0;n<r.ruleCount;n+=1)r.attrInit(r.attrsWorking[n]);r.startRule=t,a(r,t,i),r.attrCopy(r.attrs[t],r.attrsWorking[t])}r.attributesComplete=!0;let s=null;for(t=0;t<r.ruleCount;t+=1)if(s=r.attrs[t],s.left||!s.finite||s.cyclic){const e=r.attrGen(s.rule);r.attrCopy(e,s),r.attrsErrors.push(e),r.attrsErrorCount+=1}},showAttributes:(e="index")=>{if(!r.attributesComplete)throw new Error("rule-attributes.js:showAttributes: attributes not available");let t="";const n="RULE ATTRIBUTES\n";return 97===e.charCodeAt(0)?(t+="alphabetical by rule name\n",t+=n,t+=d(),t+=h(97)):116===e.charCodeAt(0)?(t+="ordered by rule type\n",t+=n,t+=d(),t+=h(116)):(t+="ordered by rule index\n",t+=n,t+=d(),t+=h()),t},showAttributeErrors:()=>{let e=null,t=null,n="";if(n+="RULE ATTRIBUTES WITH ERRORS\n",n+=d(),r.attrsErrorCount)for(let i=0;i<r.attrsErrorCount;i+=1)e=r.attrsErrors[i],t=r.ruleDeps[e.rule.index],n+=l(i,e.rule.index,e,t);else n+="<none>\n";return n}}}()}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/rule-attributes.js"}],[6428,{"../apg-lib/identifiers":6441},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=(()=>{const t=e("../apg-lib/identifiers");let r=null;const n=(e,r,i,s)=>{let o=0,a=0;const u=r[i];s[i]=!0;const c=u.rule.opcodes;for(o=0;o<c.length;o+=1){const i=c[o];if(i.type===t.RNM)for(u.refersTo[i.index]=!0,s[i.index]||n(e,r,i.index,s),a=0;a<e;a+=1)r[i.index].refersTo[a]&&(u.refersTo[a]=!0);else i.type===t.UDT?u.refersToUdt[i.index]=!0:i.type===t.BKR&&(i.index<e?(u.refersTo[i.index]=!0,s[i.index]||n(e,r,i.index,s)):u.refersToUdt[e-i.index]=!0)}},i=(e=null)=>{let t=0,n=0,i=0,s=0;const o=r.ruleCount-1,a=r.udtCount-1;let u="",c="";const l="=> ";let d=!1,h=null,{ruleIndexes:p}=r,{udtIndexes:f}=r;for(97===e?(p=r.ruleAlphaIndexes,f=r.udtAlphaIndexes):116===e&&(p=r.ruleTypeIndexes,f=r.udtAlphaIndexes),t=0;t<r.ruleCount;t+=1){for(h=r.ruleDeps[p[t]],c=`${p[t]}:${r.typeToString(h.recursiveType)}:`,r.isMutuallyRecursive&&(c+=h.groupNumber>-1?h.groupNumber:"-",c+=":"),c+=" ",u+=`${c+r.rules[p[t]].name}\n`,d=!0,i=0,s=u.length,u+=c,n=0;n<r.ruleCount;n+=1)h.refersTo[p[n]]&&(d?(u+=l,d=!1,u+=r.ruleDeps[p[n]].rule.name):u+=`, ${r.ruleDeps[p[n]].rule.name}`,i+=1),u.length-s>100&&n!==o&&(u+=`\n${c}${l}`,s=u.length);if(r.udtCount)for(n=0;n<r.udtCount;n+=1)h.refersToUdt[f[n]]&&(d?(u+=l,d=!1,u+=r.udts[f[n]].name):u+=`, ${r.udts[f[n]].name}`,i+=1),u.length-s>100&&n!==a&&(u+=`\n${c}${l}`,s=u.length);for(0===i&&(u+="=> <none>\n"),!1===d&&(u+="\n"),d=!0,i=0,s=u.length,u+=c,n=0;n<r.ruleCount;n+=1)h.referencedBy[p[n]]&&(d?(u+="<= ",d=!1,u+=r.ruleDeps[p[n]].rule.name):u+=`, ${r.ruleDeps[p[n]].rule.name}`,i+=1),u.length-s>100&&n!==o&&(u+=`\n${c}${l}`,s=u.length);0===i&&(u+="<= <none>\n"),!1===d&&(u+="\n"),u+="\n"}return u};return{ruleDependencies:e=>{r=e;let i=0,s=0,o=0,a=null,u=null,c=!1;r.dependenciesComplete=!1;const l=r.falseArray(r.ruleCount);for(i=0;i<r.ruleCount;i+=1)r.falsifyArray(l),n(r.ruleCount,r.ruleDeps,i,l);for(i=0;i<r.ruleCount;i+=1)for(s=0;s<r.ruleCount;s+=1)i!==s&&r.ruleDeps[s].refersTo[i]&&(r.ruleDeps[i].referencedBy[s]=!0);for(i=0;i<r.ruleCount;i+=1)r.ruleDeps[i].recursiveType=t.ATTR_N,r.ruleDeps[i].refersTo[i]&&(r.ruleDeps[i].recursiveType=t.ATTR_R);for(o=-1,i=0;i<r.ruleCount;i+=1)if(a=r.ruleDeps[i],a.recursiveType===t.ATTR_R)for(c=!0,s=0;s<r.ruleCount;s+=1)i!==s&&(u=r.ruleDeps[s],u.recursiveType===t.ATTR_R&&a.refersTo[s]&&u.refersTo[i]&&(c&&(o+=1,a.recursiveType=t.ATTR_MR,a.groupNumber=o,c=!1),u.recursiveType=t.ATTR_MR,u.groupNumber=o));r.isMutuallyRecursive=o>-1,r.ruleAlphaIndexes.sort(r.compRulesAlpha),r.ruleTypeIndexes.sort(r.compRulesAlpha),r.ruleTypeIndexes.sort(r.compRulesType),r.isMutuallyRecursive&&r.ruleTypeIndexes.sort(r.compRulesGroup),r.udtCount&&r.udtAlphaIndexes.sort(r.compUdtsAlpha),r.dependenciesComplete=!0},showRuleDependencies:(e="index")=>{let t="RULE DEPENDENCIES(index:type:[group number:])\n";return t+="=> refers to rule names\n",t+="<= referenced by rule names\n",r.dependenciesComplete?(97===e.charCodeAt(0)?(t+="alphabetical by rule name\n",t+=i(97)):116===e.charCodeAt(0)?(t+="ordered by rule type\n",t+=i(116)):(t+="ordered by rule index\n",t+=i(null)),t):t}}})()}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/rule-dependencies.js"}],[6429,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"File",lower:"file",index:0,isBkr:!1},this.rules[1]={name:"BlankLine",lower:"blankline",index:1,isBkr:!1},this.rules[2]={name:"Rule",lower:"rule",index:2,isBkr:!1},this.rules[3]={name:"RuleLookup",lower:"rulelookup",index:3,isBkr:!1},this.rules[4]={name:"RuleNameTest",lower:"rulenametest",index:4,isBkr:!1},this.rules[5]={name:"RuleName",lower:"rulename",index:5,isBkr:!1},this.rules[6]={name:"RuleNameError",lower:"rulenameerror",index:6,isBkr:!1},this.rules[7]={name:"DefinedAsTest",lower:"definedastest",index:7,isBkr:!1},this.rules[8]={name:"DefinedAsError",lower:"definedaserror",index:8,isBkr:!1},this.rules[9]={name:"DefinedAs",lower:"definedas",index:9,isBkr:!1},this.rules[10]={name:"Defined",lower:"defined",index:10,isBkr:!1},this.rules[11]={name:"IncAlt",lower:"incalt",index:11,isBkr:!1},this.rules[12]={name:"RuleError",lower:"ruleerror",index:12,isBkr:!1},this.rules[13]={name:"LineEndError",lower:"lineenderror",index:13,isBkr:!1},this.rules[14]={name:"Alternation",lower:"alternation",index:14,isBkr:!1},this.rules[15]={name:"Concatenation",lower:"concatenation",index:15,isBkr:!1},this.rules[16]={name:"Repetition",lower:"repetition",index:16,isBkr:!1},this.rules[17]={name:"Modifier",lower:"modifier",index:17,isBkr:!1},this.rules[18]={name:"Predicate",lower:"predicate",index:18,isBkr:!1},this.rules[19]={name:"BasicElement",lower:"basicelement",index:19,isBkr:!1},this.rules[20]={name:"BasicElementErr",lower:"basicelementerr",index:20,isBkr:!1},this.rules[21]={name:"Group",lower:"group",index:21,isBkr:!1},this.rules[22]={name:"GroupError",lower:"grouperror",index:22,isBkr:!1},this.rules[23]={name:"GroupOpen",lower:"groupopen",index:23,isBkr:!1},this.rules[24]={name:"GroupClose",lower:"groupclose",index:24,isBkr:!1},this.rules[25]={name:"Option",lower:"option",index:25,isBkr:!1},this.rules[26]={name:"OptionError",lower:"optionerror",index:26,isBkr:!1},this.rules[27]={name:"OptionOpen",lower:"optionopen",index:27,isBkr:!1},this.rules[28]={name:"OptionClose",lower:"optionclose",index:28,isBkr:!1},this.rules[29]={name:"RnmOp",lower:"rnmop",index:29,isBkr:!1},this.rules[30]={name:"BkrOp",lower:"bkrop",index:30,isBkr:!1},this.rules[31]={name:"bkrModifier",lower:"bkrmodifier",index:31,isBkr:!1},this.rules[32]={name:"cs",lower:"cs",index:32,isBkr:!1},this.rules[33]={name:"ci",lower:"ci",index:33,isBkr:!1},this.rules[34]={name:"um",lower:"um",index:34,isBkr:!1},this.rules[35]={name:"pm",lower:"pm",index:35,isBkr:!1},this.rules[36]={name:"bkr-name",lower:"bkr-name",index:36,isBkr:!1},this.rules[37]={name:"rname",lower:"rname",index:37,isBkr:!1},this.rules[38]={name:"uname",lower:"uname",index:38,isBkr:!1},this.rules[39]={name:"ename",lower:"ename",index:39,isBkr:!1},this.rules[40]={name:"UdtOp",lower:"udtop",index:40,isBkr:!1},this.rules[41]={name:"udt-non-empty",lower:"udt-non-empty",index:41,isBkr:!1},this.rules[42]={name:"udt-empty",lower:"udt-empty",index:42,isBkr:!1},this.rules[43]={name:"RepOp",lower:"repop",index:43,isBkr:!1},this.rules[44]={name:"AltOp",lower:"altop",index:44,isBkr:!1},this.rules[45]={name:"CatOp",lower:"catop",index:45,isBkr:!1},this.rules[46]={name:"StarOp",lower:"starop",index:46,isBkr:!1},this.rules[47]={name:"AndOp",lower:"andop",index:47,isBkr:!1},this.rules[48]={name:"NotOp",lower:"notop",index:48,isBkr:!1},this.rules[49]={name:"BkaOp",lower:"bkaop",index:49,isBkr:!1},this.rules[50]={name:"BknOp",lower:"bknop",index:50,isBkr:!1},this.rules[51]={name:"AbgOp",lower:"abgop",index:51,isBkr:!1},this.rules[52]={name:"AenOp",lower:"aenop",index:52,isBkr:!1},this.rules[53]={name:"TrgOp",lower:"trgop",index:53,isBkr:!1},this.rules[54]={name:"TbsOp",lower:"tbsop",index:54,isBkr:!1},this.rules[55]={name:"TlsOp",lower:"tlsop",index:55,isBkr:!1},this.rules[56]={name:"TlsCase",lower:"tlscase",index:56,isBkr:!1},this.rules[57]={name:"TlsOpen",lower:"tlsopen",index:57,isBkr:!1},this.rules[58]={name:"TlsClose",lower:"tlsclose",index:58,isBkr:!1},this.rules[59]={name:"TlsString",lower:"tlsstring",index:59,isBkr:!1},this.rules[60]={name:"StringTab",lower:"stringtab",index:60,isBkr:!1},this.rules[61]={name:"ClsOp",lower:"clsop",index:61,isBkr:!1},this.rules[62]={name:"ClsOpen",lower:"clsopen",index:62,isBkr:!1},this.rules[63]={name:"ClsClose",lower:"clsclose",index:63,isBkr:!1},this.rules[64]={name:"ClsString",lower:"clsstring",index:64,isBkr:!1},this.rules[65]={name:"ProsVal",lower:"prosval",index:65,isBkr:!1},this.rules[66]={name:"ProsValOpen",lower:"prosvalopen",index:66,isBkr:!1},this.rules[67]={name:"ProsValString",lower:"prosvalstring",index:67,isBkr:!1},this.rules[68]={name:"ProsValClose",lower:"prosvalclose",index:68,isBkr:!1},this.rules[69]={name:"rep-min",lower:"rep-min",index:69,isBkr:!1},this.rules[70]={name:"rep-min-max",lower:"rep-min-max",index:70,isBkr:!1},this.rules[71]={name:"rep-max",lower:"rep-max",index:71,isBkr:!1},this.rules[72]={name:"rep-num",lower:"rep-num",index:72,isBkr:!1},this.rules[73]={name:"dString",lower:"dstring",index:73,isBkr:!1},this.rules[74]={name:"xString",lower:"xstring",index:74,isBkr:!1},this.rules[75]={name:"bString",lower:"bstring",index:75,isBkr:!1},this.rules[76]={name:"Dec",lower:"dec",index:76,isBkr:!1},this.rules[77]={name:"Hex",lower:"hex",index:77,isBkr:!1},this.rules[78]={name:"Bin",lower:"bin",index:78,isBkr:!1},this.rules[79]={name:"dmin",lower:"dmin",index:79,isBkr:!1},this.rules[80]={name:"dmax",lower:"dmax",index:80,isBkr:!1},this.rules[81]={name:"bmin",lower:"bmin",index:81,isBkr:!1},this.rules[82]={name:"bmax",lower:"bmax",index:82,isBkr:!1},this.rules[83]={name:"xmin",lower:"xmin",index:83,isBkr:!1},this.rules[84]={name:"xmax",lower:"xmax",index:84,isBkr:!1},this.rules[85]={name:"dnum",lower:"dnum",index:85,isBkr:!1},this.rules[86]={name:"bnum",lower:"bnum",index:86,isBkr:!1},this.rules[87]={name:"xnum",lower:"xnum",index:87,isBkr:!1},this.rules[88]={name:"alphanum",lower:"alphanum",index:88,isBkr:!1},this.rules[89]={name:"owsp",lower:"owsp",index:89,isBkr:!1},this.rules[90]={name:"wsp",lower:"wsp",index:90,isBkr:!1},this.rules[91]={name:"space",lower:"space",index:91,isBkr:!1},this.rules[92]={name:"comment",lower:"comment",index:92,isBkr:!1},this.rules[93]={name:"LineEnd",lower:"lineend",index:93,isBkr:!1},this.rules[94]={name:"LineContinue",lower:"linecontinue",index:94,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:Infinity},this.rules[0].opcodes[1]={type:1,children:[2,3,4]},this.rules[0].opcodes[2]={type:4,index:1},this.rules[0].opcodes[3]={type:4,index:2},this.rules[0].opcodes[4]={type:4,index:12},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,5,7]},this.rules[1].opcodes[1]={type:3,min:0,max:Infinity},this.rules[1].opcodes[2]={type:1,children:[3,4]},this.rules[1].opcodes[3]={type:6,string:[32]},this.rules[1].opcodes[4]={type:6,string:[9]},this.rules[1].opcodes[5]={type:3,min:0,max:1},this.rules[1].opcodes[6]={type:4,index:92},this.rules[1].opcodes[7]={type:4,index:93},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4]},this.rules[2].opcodes[1]={type:4,index:3},this.rules[2].opcodes[2]={type:4,index:89},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:1,children:[5,8]},this.rules[2].opcodes[5]={type:2,children:[6,7]},this.rules[2].opcodes[6]={type:4,index:89},this.rules[2].opcodes[7]={type:4,index:93},this.rules[2].opcodes[8]={type:2,children:[9,10]},this.rules[2].opcodes[9]={type:4,index:13},this.rules[2].opcodes[10]={type:4,index:93},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,3]},this.rules[3].opcodes[1]={type:4,index:4},this.rules[3].opcodes[2]={type:4,index:89},this.rules[3].opcodes[3]={type:4,index:7},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:4,index:88},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:1,max:Infinity},this.rules[6].opcodes[1]={type:1,children:[2,3]},this.rules[6].opcodes[2]={type:5,min:33,max:60},this.rules[6].opcodes[3]={type:5,min:62,max:126},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:4,index:9},this.rules[7].opcodes[2]={type:4,index:8},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:3,min:1,max:2},this.rules[8].opcodes[1]={type:5,min:33,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:11},this.rules[9].opcodes[2]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:6,string:[61]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:6,string:[61,47]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:2,children:[1,6]},this.rules[12].opcodes[1]={type:3,min:1,max:Infinity},this.rules[12].opcodes[2]={type:1,children:[3,4,5]},this.rules[12].opcodes[3]={type:5,min:32,max:126},this.rules[12].opcodes[4]={type:6,string:[9]},this.rules[12].opcodes[5]={type:4,index:94},this.rules[12].opcodes[6]={type:4,index:93},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:3,min:1,max:Infinity},this.rules[13].opcodes[1]={type:1,children:[2,3,4]},this.rules[13].opcodes[2]={type:5,min:32,max:126},this.rules[13].opcodes[3]={type:6,string:[9]},this.rules[13].opcodes[4]={type:4,index:94},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2]},this.rules[14].opcodes[1]={type:4,index:15},this.rules[14].opcodes[2]={type:3,min:0,max:Infinity},this.rules[14].opcodes[3]={type:2,children:[4,5,6]},this.rules[14].opcodes[4]={type:4,index:89},this.rules[14].opcodes[5]={type:4,index:44},this.rules[14].opcodes[6]={type:4,index:15},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2]},this.rules[15].opcodes[1]={type:4,index:16},this.rules[15].opcodes[2]={type:3,min:0,max:Infinity},this.rules[15].opcodes[3]={type:2,children:[4,5]},this.rules[15].opcodes[4]={type:4,index:45},this.rules[15].opcodes[5]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:2,children:[1,3]},this.rules[16].opcodes[1]={type:3,min:0,max:1},this.rules[16].opcodes[2]={type:4,index:17},this.rules[16].opcodes[3]={type:1,children:[4,5,6,7]},this.rules[16].opcodes[4]={type:4,index:21},this.rules[16].opcodes[5]={type:4,index:25},this.rules[16].opcodes[6]={type:4,index:19},this.rules[16].opcodes[7]={type:4,index:20},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,5]},this.rules[17].opcodes[1]={type:2,children:[2,3]},this.rules[17].opcodes[2]={type:4,index:18},this.rules[17].opcodes[3]={type:3,min:0,max:1},this.rules[17].opcodes[4]={type:4,index:43},this.rules[17].opcodes[5]={type:4,index:43},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[18].opcodes[1]={type:4,index:49},this.rules[18].opcodes[2]={type:4,index:50},this.rules[18].opcodes[3]={type:4,index:47},this.rules[18].opcodes[4]={type:4,index:48},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10]},this.rules[19].opcodes[1]={type:4,index:40},this.rules[19].opcodes[2]={type:4,index:29},this.rules[19].opcodes[3]={type:4,index:53},this.rules[19].opcodes[4]={type:4,index:54},this.rules[19].opcodes[5]={type:4,index:55},this.rules[19].opcodes[6]={type:4,index:61},this.rules[19].opcodes[7]={type:4,index:30},this.rules[19].opcodes[8]={type:4,index:51},this.rules[19].opcodes[9]={type:4,index:52},this.rules[19].opcodes[10]={type:4,index:65},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:3,min:1,max:Infinity},this.rules[20].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[20].opcodes[2]={type:5,min:33,max:40},this.rules[20].opcodes[3]={type:5,min:42,max:46},this.rules[20].opcodes[4]={type:5,min:48,max:92},this.rules[20].opcodes[5]={type:5,min:94,max:126},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:2,children:[1,2,3]},this.rules[21].opcodes[1]={type:4,index:23},this.rules[21].opcodes[2]={type:4,index:14},this.rules[21].opcodes[3]={type:1,children:[4,5]},this.rules[21].opcodes[4]={type:4,index:24},this.rules[21].opcodes[5]={type:4,index:22},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:3,min:1,max:Infinity},this.rules[22].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[22].opcodes[2]={type:5,min:33,max:40},this.rules[22].opcodes[3]={type:5,min:42,max:46},this.rules[22].opcodes[4]={type:5,min:48,max:92},this.rules[22].opcodes[5]={type:5,min:94,max:126},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:2,children:[1,2]},this.rules[23].opcodes[1]={type:6,string:[40]},this.rules[23].opcodes[2]={type:4,index:89},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:2,children:[1,2]},this.rules[24].opcodes[1]={type:4,index:89},this.rules[24].opcodes[2]={type:6,string:[41]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:2,children:[1,2,3]},this.rules[25].opcodes[1]={type:4,index:27},this.rules[25].opcodes[2]={type:4,index:14},this.rules[25].opcodes[3]={type:1,children:[4,5]},this.rules[25].opcodes[4]={type:4,index:28},this.rules[25].opcodes[5]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:3,min:1,max:Infinity},this.rules[26].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[26].opcodes[2]={type:5,min:33,max:40},this.rules[26].opcodes[3]={type:5,min:42,max:46},this.rules[26].opcodes[4]={type:5,min:48,max:92},this.rules[26].opcodes[5]={type:5,min:94,max:126},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:6,string:[91]},this.rules[27].opcodes[2]={type:4,index:89},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:2,children:[1,2]},this.rules[28].opcodes[1]={type:4,index:89},this.rules[28].opcodes[2]={type:6,string:[93]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:4,index:88},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:2,children:[1,2,4]},this.rules[30].opcodes[1]={type:6,string:[92]},this.rules[30].opcodes[2]={type:3,min:0,max:1},this.rules[30].opcodes[3]={type:4,index:31},this.rules[30].opcodes[4]={type:4,index:36},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:1,children:[1,7,13,19]},this.rules[31].opcodes[1]={type:2,children:[2,3]},this.rules[31].opcodes[2]={type:4,index:32},this.rules[31].opcodes[3]={type:3,min:0,max:1},this.rules[31].opcodes[4]={type:1,children:[5,6]},this.rules[31].opcodes[5]={type:4,index:34},this.rules[31].opcodes[6]={type:4,index:35},this.rules[31].opcodes[7]={type:2,children:[8,9]},this.rules[31].opcodes[8]={type:4,index:33},this.rules[31].opcodes[9]={type:3,min:0,max:1},this.rules[31].opcodes[10]={type:1,children:[11,12]},this.rules[31].opcodes[11]={type:4,index:34},this.rules[31].opcodes[12]={type:4,index:35},this.rules[31].opcodes[13]={type:2,children:[14,15]},this.rules[31].opcodes[14]={type:4,index:34},this.rules[31].opcodes[15]={type:3,min:0,max:1},this.rules[31].opcodes[16]={type:1,children:[17,18]},this.rules[31].opcodes[17]={type:4,index:32},this.rules[31].opcodes[18]={type:4,index:33},this.rules[31].opcodes[19]={type:2,children:[20,21]},this.rules[31].opcodes[20]={type:4,index:35},this.rules[31].opcodes[21]={type:3,min:0,max:1},this.rules[31].opcodes[22]={type:1,children:[23,24]},this.rules[31].opcodes[23]={type:4,index:32},this.rules[31].opcodes[24]={type:4,index:33},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:6,string:[37,115]},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:6,string:[37,105]},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:6,string:[37,117]},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:6,string:[37,112]},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:1,children:[1,2,3]},this.rules[36].opcodes[1]={type:4,index:38},this.rules[36].opcodes[2]={type:4,index:39},this.rules[36].opcodes[3]={type:4,index:37},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:4,index:88},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:2,children:[1,2]},this.rules[38].opcodes[1]={type:6,string:[117,95]},this.rules[38].opcodes[2]={type:4,index:88},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:2,children:[1,2]},this.rules[39].opcodes[1]={type:6,string:[101,95]},this.rules[39].opcodes[2]={type:4,index:88},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:1,children:[1,2]},this.rules[40].opcodes[1]={type:4,index:42},this.rules[40].opcodes[2]={type:4,index:41},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:2,children:[1,2]},this.rules[41].opcodes[1]={type:6,string:[117,95]},this.rules[41].opcodes[2]={type:4,index:88},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:2,children:[1,2]},this.rules[42].opcodes[1]={type:6,string:[101,95]},this.rules[42].opcodes[2]={type:4,index:88},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:1,children:[1,5,8,11,12]},this.rules[43].opcodes[1]={type:2,children:[2,3,4]},this.rules[43].opcodes[2]={type:4,index:69},this.rules[43].opcodes[3]={type:4,index:46},this.rules[43].opcodes[4]={type:4,index:71},this.rules[43].opcodes[5]={type:2,children:[6,7]},this.rules[43].opcodes[6]={type:4,index:69},this.rules[43].opcodes[7]={type:4,index:46},this.rules[43].opcodes[8]={type:2,children:[9,10]},this.rules[43].opcodes[9]={type:4,index:46},this.rules[43].opcodes[10]={type:4,index:71},this.rules[43].opcodes[11]={type:4,index:46},this.rules[43].opcodes[12]={type:4,index:70},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:2,children:[1,2]},this.rules[44].opcodes[1]={type:6,string:[47]},this.rules[44].opcodes[2]={type:4,index:89},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:4,index:90},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:6,string:[42]},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:6,string:[38]},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:6,string:[33]},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:6,string:[38,38]},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:6,string:[33,33]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:6,string:[37,94]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:6,string:[37,36]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:2,children:[1,2]},this.rules[53].opcodes[1]={type:6,string:[37]},this.rules[53].opcodes[2]={type:1,children:[3,8,13]},this.rules[53].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[53].opcodes[4]={type:4,index:76},this.rules[53].opcodes[5]={type:4,index:79},this.rules[53].opcodes[6]={type:6,string:[45]},this.rules[53].opcodes[7]={type:4,index:80},this.rules[53].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[53].opcodes[9]={type:4,index:77},this.rules[53].opcodes[10]={type:4,index:83},this.rules[53].opcodes[11]={type:6,string:[45]},this.rules[53].opcodes[12]={type:4,index:84},this.rules[53].opcodes[13]={type:2,children:[14,15,16,17]},this.rules[53].opcodes[14]={type:4,index:78},this.rules[53].opcodes[15]={type:4,index:81},this.rules[53].opcodes[16]={type:6,string:[45]},this.rules[53].opcodes[17]={type:4,index:82},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:2,children:[1,2]},this.rules[54].opcodes[1]={type:6,string:[37]},this.rules[54].opcodes[2]={type:1,children:[3,10,17]},this.rules[54].opcodes[3]={type:2,children:[4,5,6]},this.rules[54].opcodes[4]={type:4,index:76},this.rules[54].opcodes[5]={type:4,index:73},this.rules[54].opcodes[6]={type:3,min:0,max:Infinity},this.rules[54].opcodes[7]={type:2,children:[8,9]},this.rules[54].opcodes[8]={type:6,string:[46]},this.rules[54].opcodes[9]={type:4,index:73},this.rules[54].opcodes[10]={type:2,children:[11,12,13]},this.rules[54].opcodes[11]={type:4,index:77},this.rules[54].opcodes[12]={type:4,index:74},this.rules[54].opcodes[13]={type:3,min:0,max:Infinity},this.rules[54].opcodes[14]={type:2,children:[15,16]},this.rules[54].opcodes[15]={type:6,string:[46]},this.rules[54].opcodes[16]={type:4,index:74},this.rules[54].opcodes[17]={type:2,children:[18,19,20]},this.rules[54].opcodes[18]={type:4,index:78},this.rules[54].opcodes[19]={type:4,index:75},this.rules[54].opcodes[20]={type:3,min:0,max:Infinity},this.rules[54].opcodes[21]={type:2,children:[22,23]},this.rules[54].opcodes[22]={type:6,string:[46]},this.rules[54].opcodes[23]={type:4,index:75},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:2,children:[1,2,3,4]},this.rules[55].opcodes[1]={type:4,index:56},this.rules[55].opcodes[2]={type:4,index:57},this.rules[55].opcodes[3]={type:4,index:59},this.rules[55].opcodes[4]={type:4,index:58},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:3,min:0,max:1},this.rules[56].opcodes[1]={type:1,children:[2,3]},this.rules[56].opcodes[2]={type:7,string:[37,105]},this.rules[56].opcodes[3]={type:7,string:[37,115]},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:6,string:[34]},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:6,string:[34]},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:3,min:0,max:Infinity},this.rules[59].opcodes[1]={type:1,children:[2,3,4]},this.rules[59].opcodes[2]={type:5,min:32,max:33},this.rules[59].opcodes[3]={type:5,min:35,max:126},this.rules[59].opcodes[4]={type:4,index:60},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:6,string:[9]},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:2,children:[1,2,3]},this.rules[61].opcodes[1]={type:4,index:62},this.rules[61].opcodes[2]={type:4,index:64},this.rules[61].opcodes[3]={type:4,index:63},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:6,string:[39]},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:6,string:[39]},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:3,min:0,max:Infinity},this.rules[64].opcodes[1]={type:1,children:[2,3,4]},this.rules[64].opcodes[2]={type:5,min:32,max:38},this.rules[64].opcodes[3]={type:5,min:40,max:126},this.rules[64].opcodes[4]={type:4,index:60},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:2,children:[1,2,3]},this.rules[65].opcodes[1]={type:4,index:66},this.rules[65].opcodes[2]={type:4,index:67},this.rules[65].opcodes[3]={type:4,index:68},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:6,string:[60]},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:3,min:0,max:Infinity},this.rules[67].opcodes[1]={type:1,children:[2,3,4]},this.rules[67].opcodes[2]={type:5,min:32,max:61},this.rules[67].opcodes[3]={type:5,min:63,max:126},this.rules[67].opcodes[4]={type:4,index:60},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:6,string:[62]},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:4,index:72},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:4,index:72},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:4,index:72},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:3,min:1,max:Infinity},this.rules[72].opcodes[1]={type:5,min:48,max:57},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:4,index:85},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:4,index:87},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:4,index:86},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:1,children:[1,2]},this.rules[76].opcodes[1]={type:6,string:[68]},this.rules[76].opcodes[2]={type:6,string:[100]},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:6,string:[88]},this.rules[77].opcodes[2]={type:6,string:[120]},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:1,children:[1,2]},this.rules[78].opcodes[1]={type:6,string:[66]},this.rules[78].opcodes[2]={type:6,string:[98]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:4,index:85},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:4,index:85},this.rules[81].opcodes=[],this.rules[81].opcodes[0]={type:4,index:86},this.rules[82].opcodes=[],this.rules[82].opcodes[0]={type:4,index:86},this.rules[83].opcodes=[],this.rules[83].opcodes[0]={type:4,index:87},this.rules[84].opcodes=[],this.rules[84].opcodes[0]={type:4,index:87},this.rules[85].opcodes=[],this.rules[85].opcodes[0]={type:3,min:1,max:Infinity},this.rules[85].opcodes[1]={type:5,min:48,max:57},this.rules[86].opcodes=[],this.rules[86].opcodes[0]={type:3,min:1,max:Infinity},this.rules[86].opcodes[1]={type:5,min:48,max:49},this.rules[87].opcodes=[],this.rules[87].opcodes[0]={type:3,min:1,max:Infinity},this.rules[87].opcodes[1]={type:1,children:[2,3,4]},this.rules[87].opcodes[2]={type:5,min:48,max:57},this.rules[87].opcodes[3]={type:5,min:65,max:70},this.rules[87].opcodes[4]={type:5,min:97,max:102},this.rules[88].opcodes=[],this.rules[88].opcodes[0]={type:2,children:[1,4]},this.rules[88].opcodes[1]={type:1,children:[2,3]},this.rules[88].opcodes[2]={type:5,min:97,max:122},this.rules[88].opcodes[3]={type:5,min:65,max:90},this.rules[88].opcodes[4]={type:3,min:0,max:Infinity},this.rules[88].opcodes[5]={type:1,children:[6,7,8,9]},this.rules[88].opcodes[6]={type:5,min:97,max:122},this.rules[88].opcodes[7]={type:5,min:65,max:90},this.rules[88].opcodes[8]={type:5,min:48,max:57},this.rules[88].opcodes[9]={type:6,string:[45]},this.rules[89].opcodes=[],this.rules[89].opcodes[0]={type:3,min:0,max:Infinity},this.rules[89].opcodes[1]={type:4,index:91},this.rules[90].opcodes=[],this.rules[90].opcodes[0]={type:3,min:1,max:Infinity},this.rules[90].opcodes[1]={type:4,index:91},this.rules[91].opcodes=[],this.rules[91].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[91].opcodes[1]={type:6,string:[32]},this.rules[91].opcodes[2]={type:6,string:[9]},this.rules[91].opcodes[3]={type:4,index:92},this.rules[91].opcodes[4]={type:4,index:94},this.rules[92].opcodes=[],this.rules[92].opcodes[0]={type:2,children:[1,2]},this.rules[92].opcodes[1]={type:6,string:[59]},this.rules[92].opcodes[2]={type:3,min:0,max:Infinity},this.rules[92].opcodes[3]={type:1,children:[4,5]},this.rules[92].opcodes[4]={type:5,min:32,max:126},this.rules[92].opcodes[5]={type:6,string:[9]},this.rules[93].opcodes=[],this.rules[93].opcodes[0]={type:1,children:[1,2,3]},this.rules[93].opcodes[1]={type:6,string:[13,10]},this.rules[93].opcodes[2]={type:6,string:[10]},this.rules[93].opcodes[3]={type:6,string:[13]},this.rules[94].opcodes=[],this.rules[94].opcodes[0]={type:2,children:[1,5]},this.rules[94].opcodes[1]={type:1,children:[2,3,4]},this.rules[94].opcodes[2]={type:6,string:[13,10]},this.rules[94].opcodes[3]={type:6,string:[10]},this.rules[94].opcodes[4]={type:6,string:[13]},this.rules[94].opcodes[5]={type:1,children:[6,7]},this.rules[94].opcodes[6]={type:6,string:[32]},this.rules[94].opcodes[7]={type:6,string:[9]},this.toString=function(){let e="";return e+=";\n",e+="; ABNF for JavaScript APG 2.0 SABNF\n",e+="; RFC 5234 with some restrictions and additions.\n",e+="; Updated 11/24/2015 for RFC 7405 case-sensitive literal string notation\n",e+=';  - accepts %s"string" as a case-sensitive string\n',e+=';  - accepts %i"string" as a case-insensitive string\n',e+=';  - accepts "string" as a case-insensitive string\n',e+=";\n",e+="; Some restrictions:\n",e+=";   1. Rules must begin at first character of each line.\n",e+=";      Indentations on first rule and rules thereafter are not allowed.\n",e+=";   2. Relaxed line endings. CRLF, LF or CR are accepted as valid line ending.\n",e+=";   3. Prose values, i.e. <prose value>, are accepted as valid grammar syntax.\n",e+=";      However, a working parser cannot be generated from them.\n",e+=";\n",e+="; Super set (SABNF) additions:\n",e+=";   1. Look-ahead (syntactic predicate) operators are accepted as element prefixes.\n",e+=";      & is the positive look-ahead operator, succeeds and backtracks if the look-ahead phrase is found\n",e+=";      ! is the negative look-ahead operator, succeeds and backtracks if the look-ahead phrase is NOT found\n",e+=";      e.g. &%d13 or &rule or !(A / B)\n",e+=";   2. User-Defined Terminals (UDT) of the form, u_name and e_name are accepted.\n",e+=";      'name' is alpha followed by alpha/num/hyphen just like a rule name.\n",e+=";      u_name may be used as an element but no rule definition is given.\n",e+=";      e.g. rule = A / u_myUdt\n",e+=';           A = "a"\n',e+=";      would be a valid grammar.\n",e+=";   3. Case-sensitive, single-quoted strings are accepted.\n",e+=";      e.g. 'abc' would be equivalent to %d97.98.99\n",e+=';      (kept for backward compatibility, but superseded by %s"abc")  \n',e+="; New 12/26/2015\n",e+=";   4. Look-behind operators are accepted as element prefixes.\n",e+=";      && is the positive look-behind operator, succeeds and backtracks if the look-behind phrase is found\n",e+=";      !! is the negative look-behind operator, succeeds and backtracks if the look-behind phrase is NOT found\n",e+=";      e.g. &&%d13 or &&rule or !!(A / B)\n",e+=";   5. Back reference operators, i.e. \\rulename, are accepted.\n",e+=";      A back reference operator acts like a TLS or TBS terminal except that the phrase it attempts\n",e+=";      to match is a phrase previously matched by the rule 'rulename'.\n",e+=";      There are two modes of previous phrase matching - the parent-frame mode and the universal mode.\n",e+=";      In universal mode, \\rulename matches the last match to 'rulename' regardless of where it was found.\n",e+=";      In parent-frame mode, \\rulename matches only the last match found on the parent's frame or parse tree level.\n",e+=";      Back reference modifiers can be used to specify case and mode.\n",e+=";      \\A defaults to case-insensitive and universal mode, e.g. \\A === \\%i%uA\n",e+=";      Modifiers %i and %s determine case-insensitive and case-sensitive mode, respectively.\n",e+=";      Modifiers %u and %p determine universal mode and parent frame mode, respectively.\n",e+=";      Case and mode modifiers can appear in any order, e.g. \\%s%pA === \\%p%sA. \n",e+=";   7. String begin anchor, ABG(%^) matches the beginning of the input string location.\n",e+=";      Returns EMPTY or NOMATCH. Never consumes any characters.\n",e+=";   8. String end anchor, AEN(%$) matches the end of the input string location.\n",e+=";      Returns EMPTY or NOMATCH. Never consumes any characters.\n",e+=";\n",e+="File            = *(BlankLine / Rule / RuleError)\n",e+="BlankLine       = *(%d32/%d9) [comment] LineEnd\n",e+="Rule            = RuleLookup owsp Alternation ((owsp LineEnd)\n",e+="                / (LineEndError LineEnd))\n",e+="RuleLookup      = RuleNameTest owsp DefinedAsTest\n",e+="RuleNameTest    = RuleName/RuleNameError\n",e+="RuleName        = alphanum\n",e+="RuleNameError   = 1*(%d33-60/%d62-126)\n",e+="DefinedAsTest   = DefinedAs / DefinedAsError\n",e+="DefinedAsError  = 1*2%d33-126\n",e+="DefinedAs       = IncAlt / Defined\n",e+="Defined         = %d61\n",e+="IncAlt          = %d61.47\n",e+="RuleError       = 1*(%d32-126 / %d9  / LineContinue) LineEnd\n",e+="LineEndError    = 1*(%d32-126 / %d9  / LineContinue)\n",e+="Alternation     = Concatenation *(owsp AltOp Concatenation)\n",e+="Concatenation   = Repetition *(CatOp Repetition)\n",e+="Repetition      = [Modifier] (Group / Option / BasicElement / BasicElementErr)\n",e+="Modifier        = (Predicate [RepOp])\n",e+="                / RepOp\n",e+="Predicate       = BkaOp\n",e+="                / BknOp\n",e+="                / AndOp\n",e+="                / NotOp\n",e+="BasicElement    = UdtOp\n",e+="                / RnmOp\n",e+="                / TrgOp\n",e+="                / TbsOp\n",e+="                / TlsOp\n",e+="                / ClsOp\n",e+="                / BkrOp\n",e+="                / AbgOp\n",e+="                / AenOp\n",e+="                / ProsVal\n",e+="BasicElementErr = 1*(%d33-40/%d42-46/%d48-92/%d94-126)\n",e+="Group           = GroupOpen  Alternation (GroupClose / GroupError)\n",e+="GroupError      = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\n",e+="GroupOpen       = %d40 owsp\n",e+="GroupClose      = owsp %d41\n",e+="Option          = OptionOpen Alternation (OptionClose / OptionError)\n",e+="OptionError     = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\n",e+="OptionOpen      = %d91 owsp\n",e+="OptionClose     = owsp %d93\n",e+="RnmOp           = alphanum\n",e+="BkrOp           = %d92 [bkrModifier] bkr-name\n",e+="bkrModifier     = (cs [um / pm]) / (ci [um / pm]) / (um [cs /ci]) / (pm [cs / ci])\n",e+="cs              = '%s'\n",e+="ci              = '%i'\n",e+="um              = '%u'\n",e+="pm              = '%p'\n",e+="bkr-name        = uname / ename / rname\n",e+="rname           = alphanum\n",e+="uname           = %d117.95 alphanum\n",e+="ename           = %d101.95 alphanum\n",e+="UdtOp           = udt-empty\n",e+="                / udt-non-empty\n",e+="udt-non-empty   = %d117.95 alphanum\n",e+="udt-empty       = %d101.95 alphanum\n",e+="RepOp           = (rep-min StarOp rep-max)\n",e+="                / (rep-min StarOp)\n",e+="                / (StarOp rep-max)\n",e+="                / StarOp\n",e+="                / rep-min-max\n",e+="AltOp           = %d47 owsp\n",e+="CatOp           = wsp\n",e+="StarOp          = %d42\n",e+="AndOp           = %d38\n",e+="NotOp           = %d33\n",e+="BkaOp           = %d38.38\n",e+="BknOp           = %d33.33\n",e+="AbgOp           = %d37.94\n",e+="AenOp           = %d37.36\n",e+="TrgOp           = %d37 ((Dec dmin %d45 dmax) / (Hex xmin %d45 xmax) / (Bin bmin %d45 bmax))\n",e+="TbsOp           = %d37 ((Dec dString *(%d46 dString)) / (Hex xString *(%d46 xString)) / (Bin bString *(%d46 bString)))\n",e+="TlsOp           = TlsCase TlsOpen TlsString TlsClose\n",e+='TlsCase         = ["%i" / "%s"]\n',e+="TlsOpen         = %d34\n",e+="TlsClose        = %d34\n",e+="TlsString       = *(%d32-33/%d35-126/StringTab)\n",e+="StringTab       = %d9\n",e+="ClsOp           = ClsOpen ClsString ClsClose\n",e+="ClsOpen         = %d39\n",e+="ClsClose        = %d39\n",e+="ClsString       = *(%d32-38/%d40-126/StringTab)\n",e+="ProsVal         = ProsValOpen ProsValString ProsValClose\n",e+="ProsValOpen     = %d60\n",e+="ProsValString   = *(%d32-61/%d63-126/StringTab)\n",e+="ProsValClose    = %d62\n",e+="rep-min         = rep-num\n",e+="rep-min-max     = rep-num\n",e+="rep-max         = rep-num\n",e+="rep-num         = 1*(%d48-57)\n",e+="dString         = dnum\n",e+="xString         = xnum\n",e+="bString         = bnum\n",e+="Dec             = (%d68/%d100)\n",e+="Hex             = (%d88/%d120)\n",e+="Bin             = (%d66/%d98)\n",e+="dmin            = dnum\n",e+="dmax            = dnum\n",e+="bmin            = bnum\n",e+="bmax            = bnum\n",e+="xmin            = xnum\n",e+="xmax            = xnum\n",e+="dnum            = 1*(%d48-57)\n",e+="bnum            = 1*%d48-49\n",e+="xnum            = 1*(%d48-57 / %d65-70 / %d97-102)\n",e+=";\n",e+="; Basics\n",e+="alphanum        = (%d97-122/%d65-90) *(%d97-122/%d65-90/%d48-57/%d45)\n",e+="owsp            = *space\n",e+="wsp             = 1*space\n",e+="space           = %d32\n",e+="                / %d9\n",e+="                / comment\n",e+="                / LineContinue\n",e+="comment         = %d59 *(%d32-126 / %d9)\n",e+="LineEnd         = %d13.10\n",e+="                / %d10\n",e+="                / %d13\n",e+="LineContinue    = (%d13.10 / %d10 / %d13) (%d32 / %d9)\n",";\n; ABNF for JavaScript APG 2.0 SABNF\n; RFC 5234 with some restrictions and additions.\n; Updated 11/24/2015 for RFC 7405 case-sensitive literal string notation\n;  - accepts %s\"string\" as a case-sensitive string\n;  - accepts %i\"string\" as a case-insensitive string\n;  - accepts \"string\" as a case-insensitive string\n;\n; Some restrictions:\n;   1. Rules must begin at first character of each line.\n;      Indentations on first rule and rules thereafter are not allowed.\n;   2. Relaxed line endings. CRLF, LF or CR are accepted as valid line ending.\n;   3. Prose values, i.e. <prose value>, are accepted as valid grammar syntax.\n;      However, a working parser cannot be generated from them.\n;\n; Super set (SABNF) additions:\n;   1. Look-ahead (syntactic predicate) operators are accepted as element prefixes.\n;      & is the positive look-ahead operator, succeeds and backtracks if the look-ahead phrase is found\n;      ! is the negative look-ahead operator, succeeds and backtracks if the look-ahead phrase is NOT found\n;      e.g. &%d13 or &rule or !(A / B)\n;   2. User-Defined Terminals (UDT) of the form, u_name and e_name are accepted.\n;      'name' is alpha followed by alpha/num/hyphen just like a rule name.\n;      u_name may be used as an element but no rule definition is given.\n;      e.g. rule = A / u_myUdt\n;           A = \"a\"\n;      would be a valid grammar.\n;   3. Case-sensitive, single-quoted strings are accepted.\n;      e.g. 'abc' would be equivalent to %d97.98.99\n;      (kept for backward compatibility, but superseded by %s\"abc\")  \n; New 12/26/2015\n;   4. Look-behind operators are accepted as element prefixes.\n;      && is the positive look-behind operator, succeeds and backtracks if the look-behind phrase is found\n;      !! is the negative look-behind operator, succeeds and backtracks if the look-behind phrase is NOT found\n;      e.g. &&%d13 or &&rule or !!(A / B)\n;   5. Back reference operators, i.e. \\rulename, are accepted.\n;      A back reference operator acts like a TLS or TBS terminal except that the phrase it attempts\n;      to match is a phrase previously matched by the rule 'rulename'.\n;      There are two modes of previous phrase matching - the parent-frame mode and the universal mode.\n;      In universal mode, \\rulename matches the last match to 'rulename' regardless of where it was found.\n;      In parent-frame mode, \\rulename matches only the last match found on the parent's frame or parse tree level.\n;      Back reference modifiers can be used to specify case and mode.\n;      \\A defaults to case-insensitive and universal mode, e.g. \\A === \\%i%uA\n;      Modifiers %i and %s determine case-insensitive and case-sensitive mode, respectively.\n;      Modifiers %u and %p determine universal mode and parent frame mode, respectively.\n;      Case and mode modifiers can appear in any order, e.g. \\%s%pA === \\%p%sA. \n;   7. String begin anchor, ABG(%^) matches the beginning of the input string location.\n;      Returns EMPTY or NOMATCH. Never consumes any characters.\n;   8. String end anchor, AEN(%$) matches the end of the input string location.\n;      Returns EMPTY or NOMATCH. Never consumes any characters.\n;\nFile            = *(BlankLine / Rule / RuleError)\nBlankLine       = *(%d32/%d9) [comment] LineEnd\nRule            = RuleLookup owsp Alternation ((owsp LineEnd)\n                / (LineEndError LineEnd))\nRuleLookup      = RuleNameTest owsp DefinedAsTest\nRuleNameTest    = RuleName/RuleNameError\nRuleName        = alphanum\nRuleNameError   = 1*(%d33-60/%d62-126)\nDefinedAsTest   = DefinedAs / DefinedAsError\nDefinedAsError  = 1*2%d33-126\nDefinedAs       = IncAlt / Defined\nDefined         = %d61\nIncAlt          = %d61.47\nRuleError       = 1*(%d32-126 / %d9  / LineContinue) LineEnd\nLineEndError    = 1*(%d32-126 / %d9  / LineContinue)\nAlternation     = Concatenation *(owsp AltOp Concatenation)\nConcatenation   = Repetition *(CatOp Repetition)\nRepetition      = [Modifier] (Group / Option / BasicElement / BasicElementErr)\nModifier        = (Predicate [RepOp])\n                / RepOp\nPredicate       = BkaOp\n                / BknOp\n                / AndOp\n                / NotOp\nBasicElement    = UdtOp\n                / RnmOp\n                / TrgOp\n                / TbsOp\n                / TlsOp\n                / ClsOp\n                / BkrOp\n                / AbgOp\n                / AenOp\n                / ProsVal\nBasicElementErr = 1*(%d33-40/%d42-46/%d48-92/%d94-126)\nGroup           = GroupOpen  Alternation (GroupClose / GroupError)\nGroupError      = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\nGroupOpen       = %d40 owsp\nGroupClose      = owsp %d41\nOption          = OptionOpen Alternation (OptionClose / OptionError)\nOptionError     = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\nOptionOpen      = %d91 owsp\nOptionClose     = owsp %d93\nRnmOp           = alphanum\nBkrOp           = %d92 [bkrModifier] bkr-name\nbkrModifier     = (cs [um / pm]) / (ci [um / pm]) / (um [cs /ci]) / (pm [cs / ci])\ncs              = '%s'\nci              = '%i'\num              = '%u'\npm              = '%p'\nbkr-name        = uname / ename / rname\nrname           = alphanum\nuname           = %d117.95 alphanum\nename           = %d101.95 alphanum\nUdtOp           = udt-empty\n                / udt-non-empty\nudt-non-empty   = %d117.95 alphanum\nudt-empty       = %d101.95 alphanum\nRepOp           = (rep-min StarOp rep-max)\n                / (rep-min StarOp)\n                / (StarOp rep-max)\n                / StarOp\n                / rep-min-max\nAltOp           = %d47 owsp\nCatOp           = wsp\nStarOp          = %d42\nAndOp           = %d38\nNotOp           = %d33\nBkaOp           = %d38.38\nBknOp           = %d33.33\nAbgOp           = %d37.94\nAenOp           = %d37.36\nTrgOp           = %d37 ((Dec dmin %d45 dmax) / (Hex xmin %d45 xmax) / (Bin bmin %d45 bmax))\nTbsOp           = %d37 ((Dec dString *(%d46 dString)) / (Hex xString *(%d46 xString)) / (Bin bString *(%d46 bString)))\nTlsOp           = TlsCase TlsOpen TlsString TlsClose\nTlsCase         = [\"%i\" / \"%s\"]\nTlsOpen         = %d34\nTlsClose        = %d34\nTlsString       = *(%d32-33/%d35-126/StringTab)\nStringTab       = %d9\nClsOp           = ClsOpen ClsString ClsClose\nClsOpen         = %d39\nClsClose        = %d39\nClsString       = *(%d32-38/%d40-126/StringTab)\nProsVal         = ProsValOpen ProsValString ProsValClose\nProsValOpen     = %d60\nProsValString   = *(%d32-61/%d63-126/StringTab)\nProsValClose    = %d62\nrep-min         = rep-num\nrep-min-max     = rep-num\nrep-max         = rep-num\nrep-num         = 1*(%d48-57)\ndString         = dnum\nxString         = xnum\nbString         = bnum\nDec             = (%d68/%d100)\nHex             = (%d88/%d120)\nBin             = (%d66/%d98)\ndmin            = dnum\ndmax            = dnum\nbmin            = bnum\nbmax            = bnum\nxmin            = xnum\nxmax            = xnum\ndnum            = 1*(%d48-57)\nbnum            = 1*%d48-49\nxnum            = 1*(%d48-57 / %d65-70 / %d97-102)\n;\n; Basics\nalphanum        = (%d97-122/%d65-90) *(%d97-122/%d65-90/%d48-57/%d45)\nowsp            = *space\nwsp             = 1*space\nspace           = %d32\n                / %d9\n                / comment\n                / LineContinue\ncomment         = %d59 *(%d32-126 / %d9)\nLineEnd         = %d13.10\n                / %d10\n                / %d13\nLineContinue    = (%d13.10 / %d10 / %d13) (%d32 / %d9)\n"}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/sabnf-grammar.js"}],[6430,{"../apg-lib/identifiers":6441,"../apg-lib/utilities":6447},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../apg-lib/identifiers"),i=e("../apg-lib/utilities");const s=[];s.line=function(e,t,r,i,s){return e===n.SEM_PRE?(s.endLength=0,s.textLength=0,s.invalidCount=0):s.lines.push({lineNo:s.lines.length,beginChar:r,length:i,textLength:s.textLength,endType:s.endType,invalidChars:s.invalidCount}),n.SEM_OK},s["line-text"]=function(e,t,r,i,s){return e===n.SEM_PRE&&(s.textLength=i),n.SEM_OK},s["last-line"]=function(e,t,r,i,s){return e===n.SEM_PRE?(s.endLength=0,s.textLength=0,s.invalidCount=0):s.strict?(s.lines.push({lineNo:s.lines.length,beginChar:r,length:i,textLength:i,endType:"none",invalidChars:s.invalidCount}),s.errors.push({line:s.lineNo,char:r+i,msg:"no line end on last line - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})):(t.push(10),s.lines.push({lineNo:s.lines.length,beginChar:r,length:i+1,textLength:i,endType:"LF",invalidChars:s.invalidCount})),n.SEM_OK},s.invalid=function(e,t,r,s,o){return e===n.SEM_PRE&&o.errors.push({line:o.lineNo,char:r,msg:`invalid character found '\\x${i.charToHex(t[r])}'`}),n.SEM_OK},s.end=function(e,t,r,i,s){return e===n.SEM_POST&&(s.lineNo+=1),n.SEM_OK},s.lf=function(e,t,r,i,s){return e===n.SEM_PRE&&(s.endType="LF",s.strict&&s.errors.push({line:s.lineNo,char:r,msg:"line end character LF(\\n, \\x0A) - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})),n.SEM_OK},s.cr=function(e,t,r,i,s){return e===n.SEM_PRE&&(s.endType="CR",s.strict&&s.errors.push({line:s.lineNo,char:r,msg:"line end character CR(\\r, \\x0D) - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})),n.SEM_OK},s.crlf=function(e,t,r,i,s){return e===n.SEM_PRE&&(s.endType="CRLF"),n.SEM_OK},r.callbacks=s}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/scanner-callbacks.js"}],[6431,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"file",lower:"file",index:0,isBkr:!1},this.rules[1]={name:"line",lower:"line",index:1,isBkr:!1},this.rules[2]={name:"line-text",lower:"line-text",index:2,isBkr:!1},this.rules[3]={name:"last-line",lower:"last-line",index:3,isBkr:!1},this.rules[4]={name:"valid",lower:"valid",index:4,isBkr:!1},this.rules[5]={name:"invalid",lower:"invalid",index:5,isBkr:!1},this.rules[6]={name:"end",lower:"end",index:6,isBkr:!1},this.rules[7]={name:"CRLF",lower:"crlf",index:7,isBkr:!1},this.rules[8]={name:"LF",lower:"lf",index:8,isBkr:!1},this.rules[9]={name:"CR",lower:"cr",index:9,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,3]},this.rules[0].opcodes[1]={type:3,min:0,max:Infinity},this.rules[0].opcodes[2]={type:4,index:1},this.rules[0].opcodes[3]={type:3,min:0,max:1},this.rules[0].opcodes[4]={type:4,index:3},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:6},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:0,max:Infinity},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:5},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:Infinity},this.rules[3].opcodes[1]={type:1,children:[2,3]},this.rules[3].opcodes[2]={type:4,index:4},this.rules[3].opcodes[3]={type:4,index:5},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:5,min:32,max:126},this.rules[4].opcodes[2]={type:6,string:[9]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[5].opcodes[1]={type:5,min:0,max:8},this.rules[5].opcodes[2]={type:5,min:11,max:12},this.rules[5].opcodes[3]={type:5,min:14,max:31},this.rules[5].opcodes[4]={type:5,min:127,max:4294967295},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:6,string:[13,10]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:6,string:[10]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:6,string:[13]},this.toString=function(){let e="";return e+="file = *line [last-line]\n",e+="line = line-text end\n",e+="line-text = *(valid/invalid)\n",e+="last-line = 1*(valid/invalid)\n",e+="valid = %d32-126 / %d9\n",e+="invalid = %d0-8 / %d11-12 /%d14-31 / %x7f-ffffffff\n",e+="end = CRLF / LF / CR\n",e+="CRLF = %d13.10\n",e+="LF = %d10\n",e+="CR = %d13\n","file = *line [last-line]\nline = line-text end\nline-text = *(valid/invalid)\nlast-line = 1*(valid/invalid)\nvalid = %d32-126 / %d9\ninvalid = %d0-8 / %d11-12 /%d14-31 / %x7f-ffffffff\nend = CRLF / LF / CR\nCRLF = %d13.10\nLF = %d10\nCR = %d13\n"}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/scanner-grammar.js"}],[6432,{"../apg-lib/node-exports":6442,"./scanner-callbacks":6430,"./scanner-grammar":6431},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(t,r,n,i){const s=e("../apg-lib/node-exports"),o=new(e("./scanner-grammar")),{callbacks:a}=e("./scanner-callbacks"),u=[],c=new s.parser;if(c.ast=new s.ast,c.ast.callbacks=a,i){if("traceObject"!==i.traceObject)throw new TypeError("scanner.js: trace argument is not a trace object");c.trace=i}if(!0!==c.parse(o,"file",t).success)return void r.push({line:0,char:0,msg:"syntax analysis error analyzing input SABNF grammar"});const l={lines:u,lineNo:0,errors:r,strict:!!n};return c.ast.translate(l),u}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/scanner.js"}],[6433,{"../apg-lib/node-exports":6442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("../apg-lib/node-exports"),r=t.ids,n=function(){this.names=[],this.add=function(e){let t=-1;return-1===this.get(e)&&(t={name:e,lower:e.toLowerCase(),index:this.names.length},this.names.push(t)),t},this.get=function(e){let t=-1;const r=e.toLowerCase();for(let e=0;e<this.names.length;e+=1)if(this.names[e].lower===r){t=this.names[e];break}return t}},i=function(e,t,r){let n=0;for(let i=t;i<t+r;i+=1)n=10*n+e[i]-48;return n},s=function(e,t,r){let n=0;for(let i=t;i<t+r;i+=1)n=2*n+e[i]-48;return n},o=function(e,t,r){let n=0;for(let i=t;i<t+r;i+=1){let t=e[i];if(t>=48&&t<=57)t-=48;else if(t>=65&&t<=70)t-=55;else{if(!(t>=97&&t<=102))throw new Error("hexnum out of range");t-=87}n=16*n+t}return n};this.callbacks=[],this.callbacks.abgop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&s.opcodes.push({type:r.ABG}),o},this.callbacks.aenop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&s.opcodes.push({type:r.AEN}),o},this.callbacks.alternation=function(e,t,n,i,s){let o=r.SEM_OK;if(e===r.SEM_PRE){const e=!0;for(;e;){if(null===s.definedas){o=r.SEM_SKIP;break}if(null===s.topStack){if("="===s.definedas){s.topStack={alt:{type:r.ALT,children:[]},cat:null},s.altStack.push(s.topStack),s.opcodes.push(s.topStack.alt);break}s.topStack={alt:s.opcodes[0],cat:null},s.altStack.push(s.topStack);break}s.topStack={alt:{type:r.ALT,children:[]},cat:null},s.altStack.push(s.topStack),s.opcodes.push(s.topStack.alt);break}}else e===r.SEM_POST&&(s.altStack.pop(),s.altStack.length>0?s.topStack=s.altStack[s.altStack.length-1]:s.topStack=null);return o},this.callbacks.andop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&s.opcodes.push({type:r.AND}),o},this.callbacks.bmax=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_POST&&(o.max=s(t,n,i)),a},this.callbacks.bmin=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_POST&&(o.min=s(t,n,i)),a},this.callbacks.bkaop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&s.opcodes.push({type:r.BKA}),o},this.callbacks.bknop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&s.opcodes.push({type:r.BKN}),o},this.callbacks.bkrop=function(e,n,i,s,o){const a=r.SEM_OK;return e===r.SEM_PRE?(o.ci=!0,o.cs=!1,o.um=!0,o.pm=!1):e===r.SEM_POST&&o.opcodes.push({type:r.BKR,bkrCase:!0===o.cs?r.BKR_MODE_CS:r.BKR_MODE_CI,bkrMode:!0===o.pm?r.BKR_MODE_PM:r.BKR_MODE_UM,index:{phraseIndex:o.bkrname.phraseIndex,name:t.utils.charsToString(n,o.bkrname.phraseIndex,o.bkrname.phraseLength)}}),a},this.callbacks["bkr-name"]=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&(s.bkrname={phraseIndex:n,phraseLength:i}),o},this.callbacks.bstring=function(e,t,n,i,o){const a=r.SEM_OK;return e===r.SEM_POST&&o.tbsstr.push(s(t,n,i)),a},this.callbacks.clsop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&(i<=2?s.opcodes.push({type:r.TLS,string:[]}):s.opcodes.push({type:r.TBS,string:t.slice(n+1,n+i-1)})),o},this.callbacks.ci=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&(s.ci=!0),o},this.callbacks.cs=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&(s.cs=!0),o},this.callbacks.um=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&(s.um=!0),o},this.callbacks.pm=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&(s.pm=!0),o},this.callbacks.concatenation=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_PRE?(s.topStack.alt.children.push(s.opcodes.length),s.topStack.cat={type:r.CAT,children:[]},s.opcodes.push(s.topStack.cat)):e===r.SEM_POST&&(s.topStack.cat=null),o},this.callbacks.defined=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&(s.definedas="="),o},this.callbacks.dmax=function(e,t,n,s,o){const a=r.SEM_OK;return e===r.SEM_POST&&(o.max=i(t,n,s)),a},this.callbacks.dmin=function(e,t,n,s,o){const a=r.SEM_OK;return e===r.SEM_POST&&(o.min=i(t,n,s)),a},this.callbacks.dstring=function(e,t,n,s,o){const a=r.SEM_OK;return e===r.SEM_POST&&o.tbsstr.push(i(t,n,s)),a},this.callbacks.file=function(e,t,i,s,o){const a=r.SEM_OK;if(e===r.SEM_PRE)o.ruleNames=new n,o.udtNames=new n,o.rules=[],o.udts=[],o.rulesLineMap=[],o.opcodes=[],o.altStack=[],o.topStack=null,o.topRule=null;else if(e===r.SEM_POST){let e;o.rules.forEach(t=>{t.isBkr=!1,t.opcodes.forEach(t=>{t.type===r.RNM&&(e=o.ruleNames.get(t.index.name),-1===e?(o.errors.push({line:o.findLine(o.lines,t.index.phraseIndex,o.charsLength),char:t.index.phraseIndex,msg:`Rule name '${t.index.name}' used but not defined.`}),t.index=-1):t.index=e.index)})}),o.udts.forEach(e=>{e.isBkr=!1}),o.rules.forEach(t=>{t.opcodes.forEach(n=>{n.type===r.BKR&&(t.hasBkr=!0,e=o.ruleNames.get(n.index.name),-1!==e?(o.rules[e.index].isBkr=!0,n.index=e.index):(e=o.udtNames.get(n.index.name),-1!==e?(o.udts[e.index].isBkr=!0,n.index=o.rules.length+e.index):(o.errors.push({line:o.findLine(o.lines,n.index.phraseIndex,o.charsLength),char:n.index.phraseIndex,msg:`Back reference name '${n.index.name}' refers to undefined rule or unamed UDT.`}),n.index=-1)))})})}return a},this.callbacks.incalt=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&(s.definedas="=/"),o},this.callbacks.notop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&s.opcodes.push({type:r.NOT}),o},this.callbacks.optionopen=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&s.opcodes.push({type:r.REP,min:0,max:1,char:n}),o},this.callbacks["rep-max"]=function(e,t,n,s,o){const a=r.SEM_OK;return e===r.SEM_POST&&(o.max=i(t,n,s)),a},this.callbacks["rep-min"]=function(e,t,n,s,o){const a=r.SEM_OK;return e===r.SEM_POST&&(o.min=i(t,n,s)),a},this.callbacks["rep-min-max"]=function(e,t,n,s,o){const a=r.SEM_OK;return e===r.SEM_POST&&(o.max=i(t,n,s),o.min=o.max),a},this.callbacks.repetition=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_PRE&&s.topStack.cat.children.push(s.opcodes.length),o},this.callbacks.repop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_PRE?(s.min=0,s.max=Infinity,s.topRep={type:r.REP,min:0,max:Infinity},s.opcodes.push(s.topRep)):e===r.SEM_POST&&(s.min>s.max&&s.errors.push({line:s.findLine(s.lines,n,s.charsLength),char:n,msg:`repetition min cannot be greater than max: min: ${s.min}: max: ${s.max}`}),s.topRep.min=s.min,s.topRep.max=s.max),o},this.callbacks.rnmop=function(e,n,i,s,o){const a=r.SEM_OK;return e===r.SEM_POST&&o.opcodes.push({type:r.RNM,index:{phraseIndex:i,name:t.utils.charsToString(n,i,s)}}),a},this.callbacks.rule=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_PRE&&(s.altStack.length=0,s.topStack=null,s.rulesLineMap.push({line:s.findLine(s.lines,n,s.charsLength),char:n})),o},this.callbacks.rulelookup=function(e,t,n,i,s){const o=r.SEM_OK;if(e===r.SEM_PRE)s.ruleName="",s.definedas="";else if(e===r.SEM_POST){let e;"="===s.definedas?(e=s.ruleNames.add(s.ruleName),-1===e?(s.definedas=null,s.errors.push({line:s.findLine(s.lines,n,s.charsLength),char:n,msg:`Rule name '${s.ruleName}' previously defined.`})):(s.topRule={name:e.name,lower:e.lower,opcodes:[],index:e.index},s.rules.push(s.topRule),s.opcodes=s.topRule.opcodes)):(e=s.ruleNames.get(s.ruleName),-1===e?(s.definedas=null,s.errors.push({line:s.findLine(s.lines,n,s.charsLength),char:n,msg:`Rule name '${s.ruleName}' for incremental alternate not previously defined.`})):(s.topRule=s.rules[e.index],s.opcodes=s.topRule.opcodes))}return o},this.callbacks.rulename=function(e,n,i,s,o){const a=r.SEM_OK;return e===r.SEM_PRE&&(o.ruleName=t.utils.charsToString(n,i,s)),a},this.callbacks.tbsop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_PRE?s.tbsstr=[]:e===r.SEM_POST&&s.opcodes.push({type:r.TBS,string:s.tbsstr}),o},this.callbacks.tlscase=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_POST&&i>0&&(83===t[n+1]||115===t[n+1])&&(s.tlscase=!1),o},this.callbacks.tlsstring=function(e,t,n,i,s){const o=r.SEM_OK;if(e===r.SEM_POST)if(s.tlscase){const e=t.slice(n,n+i);for(let t=0;t<e.length;t+=1)e[t]>=65&&e[t]<=90&&(e[t]+=32);s.opcodes.push({type:r.TLS,string:e})}else s.opcodes.push({type:r.TBS,string:t.slice(n,n+i)});return o},this.callbacks.tlsop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_PRE&&(s.tlscase=!0),o},this.callbacks.trgop=function(e,t,n,i,s){const o=r.SEM_OK;return e===r.SEM_PRE?(s.min=0,s.max=0):e===r.SEM_POST&&(s.min>s.max&&s.errors.push({line:s.findLine(s.lines,n,s.charsLength),char:n,msg:`TRG, (%dmin-max), min cannot be greater than max: min: ${s.min}: max: ${s.max}`}),s.opcodes.push({type:r.TRG,min:s.min,max:s.max})),o},this.callbacks["udt-empty"]=function(e,n,i,s,o){const a=r.SEM_OK;if(e===r.SEM_POST){const e=t.utils.charsToString(n,i,s);let a=o.udtNames.add(e);if(-1===a){if(a=o.udtNames.get(e),-1===a)throw new Error("semUdtEmpty: name look up error")}else o.udts.push({name:a.name,lower:a.lower,index:a.index,empty:!0});o.opcodes.push({type:r.UDT,empty:!0,index:a.index})}return a},this.callbacks["udt-non-empty"]=function(e,n,i,s,o){const a=r.SEM_OK;if(e===r.SEM_POST){const e=t.utils.charsToString(n,i,s);let a=o.udtNames.add(e);if(-1===a){if(a=o.udtNames.get(e),-1===a)throw new Error("semUdtNonEmpty: name look up error")}else o.udts.push({name:a.name,lower:a.lower,index:a.index,empty:!1});o.opcodes.push({type:r.UDT,empty:!1,index:a.index,syntax:null,semantic:null})}return a},this.callbacks.xmax=function(e,t,n,i,s){const a=r.SEM_OK;return e===r.SEM_POST&&(s.max=o(t,n,i)),a},this.callbacks.xmin=function(e,t,n,i,s){const a=r.SEM_OK;return e===r.SEM_POST&&(s.min=o(t,n,i)),a},this.callbacks.xstring=function(e,t,n,i,s){const a=r.SEM_OK;return e===r.SEM_POST&&s.tbsstr.push(o(t,n,i)),a}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/semantic-callbacks.js"}],[6434,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const e="show-rules.js";return function(t=[],r=[],n="index"){const i="showRules";let s=[],o=[];const a=[],u=[],c=t,l=r,d=t.length,h=r.length;let p,f="RULE/UDT NAMES";if(!Array.isArray(t)||!t.length)throw new Error(`${e}:${i}: rules arg must be array with length > 0`);if(!Array.isArray(r))throw new Error(`${e}:${i}: udts arg must be array`);for(p=0;p<d;p+=1)a.push(p);if(s=a.slice(0),s.sort(function(e,t){return c[e].lower<c[t].lower?-1:c[e].lower>c[t].lower?1:0}),h){for(p=0;p<h;p+=1)u.push(p);o=u.slice(0),o.sort(function(e,t){return l[e].lower<l[t].lower?-1:l[e].lower>l[t].lower?1:0})}if(97===n.charCodeAt(0)){for(f+=" - alphabetical by rule/UDT name\n",p=0;p<d;p+=1)f+=`${p}: ${s[p]}: ${c[s[p]].name}\n`;if(h)for(p=0;p<h;p+=1)f+=`${p}: ${o[p]}: ${l[o[p]].name}\n`}else{for(f+=" - ordered by rule/UDT index\n",p=0;p<d;p+=1)f+=`${p}: ${c[p].name}\n`;if(h)for(p=0;p<h;p+=1)f+=`${p}: ${l[p].name}\n`}return f}}()}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/show-rules.js"}],[6435,{"../apg-lib/node-exports":6442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t="syntax-callbacks.js: ",r=e("../apg-lib/node-exports"),n=r.ids;let i;this.callbacks=[],this.callbacks.andop=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.strict&&s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"AND operator(&) found - strict ABNF specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.basicelementerr=function(e,r,s,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:!1===i.basicError&&o.errors.push({line:o.findLine(o.lines,s,o.charsLength),char:s,msg:"Unrecognized SABNF element."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.clsclose=function(e,r,s,o){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:o.errors.push({line:o.findLine(o.lines,i.clsOpen),char:i.clsOpen,msg:"Case-sensitive literal string('...') opened but not closed."}),i.clsOpen=null,i.basicError=!0;break;case n.MATCH:o.strict&&o.errors.push({line:o.findLine(o.lines,i.clsOpen),char:i.clsOpen,msg:"Case-sensitive string operator('...') found - strict ABNF specified."}),i.clsOpen=null;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.clsopen=function(e,r,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.clsOpen=s;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.clsstring=function(e,r,i,s){switch(e.state){case n.ACTIVE:s.stringTabChar=!1;break;case n.EMPTY:case n.NOMATCH:break;case n.MATCH:!1!==s.stringTabChar&&s.errors.push({line:s.findLine(s.lines,s.stringTabChar),char:s.stringTabChar,msg:"Tab character (\\t, x09) not allowed in literal string."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.definedaserror=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"Expected '=' or '=/'. Not found."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.file=function(e,r,i,s){switch(e.state){case n.ACTIVE:s.altStack=[],s.repCount=0;break;case n.EMPTY:s.errors.push({line:0,char:0,msg:"grammar file is empty"});break;case n.MATCH:0===s.ruleCount&&s.errors.push({line:0,char:0,msg:"no rules defined"});break;case n.NOMATCH:throw new Error(`${t}synFile: grammar file NOMATCH: design error: should never happen.`);default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.groupclose=function(e,r,s,o){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:o.errors.push({line:o.findLine(o.lines,i.groupOpen),char:i.groupOpen,msg:'Group "(...)" opened but not closed.'}),i=o.altStack.pop(),i.groupError=!0;break;case n.MATCH:i=o.altStack.pop();break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.groupopen=function(e,r,s,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i={groupOpen:s,groupError:!1,optionOpen:null,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(i);break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.lineenderror=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"Unrecognized grammar element or characters."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.lineend=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:if(1===e.phraseLength&&s.strict){const e=13===r[i]?"CR":"LF";s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:`Line end '${e}' found - strict ABNF specified, only CRLF allowed.`})}break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.notop=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.strict&&s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"NOT operator(!) found - strict ABNF specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.optionclose=function(e,r,s,o){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:o.errors.push({line:o.findLine(o.lines,i.optionOpen),char:i.optionOpen,msg:'Option "[...]" opened but not closed.'}),i=o.altStack.pop(),i.optionError=!0;break;case n.MATCH:i=o.altStack.pop();break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.optionopen=function(e,r,s,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i={groupOpen:null,groupError:!1,optionOpen:s,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(i);break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.prosvalclose=function(e,r,s,o){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:o.errors.push({line:o.findLine(o.lines,i.prosValOpen),char:i.prosValOpen,msg:"Prose value operator(<...>) opened but not closed."}),i.basicError=!0,i.prosValOpen=null;break;case n.MATCH:o.errors.push({line:o.findLine(o.lines,i.prosValOpen),char:i.prosValOpen,msg:"Prose value operator(<...>) found. The ABNF syntax is valid, but a parser cannot be generated from this grammar."}),i.prosValOpen=null;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.prosvalopen=function(e,r,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.prosValOpen=s;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.prosvalstring=function(e,r,i,s){switch(e.state){case n.ACTIVE:s.stringTabChar=!1;break;case n.EMPTY:case n.NOMATCH:break;case n.MATCH:!1!==s.stringTabChar&&s.errors.push({line:s.findLine(s.lines,s.stringTabChar),char:s.stringTabChar,msg:"Tab character (\\t, x09) not allowed in prose value string."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.repetition=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:case n.MATCH:s.repCount+=1;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.rule=function(e,r,s,o){switch(e.state){case n.ACTIVE:o.altStack.length=0,i={groupOpen:null,groupError:!1,optionOpen:null,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(i);break;case n.EMPTY:throw new Error(`${t}synRule: EMPTY: rule cannot be empty`);case n.NOMATCH:break;case n.MATCH:o.ruleCount+=1;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.ruleerror=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"Unrecognized SABNF line. Invalid rule, comment or blank line."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.rulenameerror=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"Rule names must be alphanum and begin with alphabetic character."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.stringtab=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.stringTabChar=i;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.tlsclose=function(e,r,s,o){switch(e.state){case n.ACTIVE:case n.EMPTY:break;case n.NOMATCH:o.errors.push({line:o.findLine(o.lines,i.tlsOpen),char:i.tlsOpen,msg:'Case-insensitive literal string("...") opened but not closed.'}),i.basicError=!0,i.tlsOpen=null;break;case n.MATCH:i.tlsOpen=null;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.tlsopen=function(e,r,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:i.tlsOpen=s;break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.tlsstring=function(e,r,i,s){switch(e.state){case n.ACTIVE:s.stringTabChar=!1;break;case n.EMPTY:case n.NOMATCH:break;case n.MATCH:!1!==s.stringTabChar&&s.errors.push({line:s.findLine(s.lines,s.stringTabChar),char:s.stringTabChar,msg:"Tab character (\\t, x09) not allowed in literal string (see 'quoted-string' definition, RFC 7405.)"});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.udtop=function(e,i,s,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:if(o.strict){const t=r.utils.charsToString(i,s,e.phraseLength);o.errors.push({line:o.findLine(o.lines,s,o.charsLength),char:s,msg:`UDT operator found(${t}) - strict ABNF specified.`})}break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.bkaop=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.strict?s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"Positive look-behind operator(&&) found - strict ABNF specified."}):s.lite&&s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"Positive look-behind operator(&&) found - apg-lite specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.bknop=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.strict?s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"Negative look-behind operator(!!) found - strict ABNF specified."}):s.lite&&s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"Negative look-behind operator(!!) found - apg-lite specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.bkrop=function(e,i,s,o){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:if(o.strict){const t=r.utils.charsToString(i,s,e.phraseLength);o.errors.push({line:o.findLine(o.lines,s,o.charsLength),char:s,msg:`Back reference operator(${t}) found - strict ABNF specified.`})}else if(o.lite){const t=r.utils.charsToString(i,s,e.phraseLength);o.errors.push({line:o.findLine(o.lines,s,o.charsLength),char:s,msg:`Back reference operator(${t}) found - apg-lite specified.`})}break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.abgop=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.strict?s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"Beginning of string anchor(%^) found - strict ABNF specified."}):s.lite&&s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"Beginning of string anchor(%^) found - apg-lite specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}},this.callbacks.aenop=function(e,r,i,s){switch(e.state){case n.ACTIVE:case n.EMPTY:case n.NOMATCH:break;case n.MATCH:s.strict?s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"End of string anchor(%$) found - strict ABNF specified."}):s.lite&&s.errors.push({line:s.findLine(s.lines,i,s.charsLength),char:i,msg:"End of string anchor(%$) found - apg-lite specified."});break;default:throw new Error(`${t}synFile: unrecognized case.`)}}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-api/syntax-callbacks.js"}],[6436,{"./transformers":6437,buffer:6542},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),i=e("./transformers"),s="UTF8",o="UTF16",a="UTF16BE",u="UTF16LE",c="UTF32",l="UTF32BE",d="UTF32LE",h="UINT7",p="ASCII",f="BINARY",m="UINT8",y="UINT16",b="UINT16LE",g="UINT16BE",w="UINT32",_="UINT32LE",x="UINT32BE",v="ESCAPED",T="STRING",O=function(e,t){const r=function(e){const t={type:"",base64:!1},r=/^(base64:)?([a-zA-Z0-9]+)$/i.exec(e);return r&&(r[2]&&(t.type=r[2].toUpperCase()),r[1]&&(t.base64=!0)),t}(e.toUpperCase());if(r.base64){if(r.type===T)throw new TypeError(`type: "${e} "BASE64:" prefix not allowed with type ${T}`);if(n.isBuffer(t))r.data=i.base64.decode(t);else{if("string"!=typeof t)throw new TypeError(`type: "${e} unrecognized data type: typeof(data): ${typeof t}`);{const e=n.from(t,"ascii");r.data=i.base64.decode(e)}}}else r.data=t;switch(r.type){case s:!function(e){e.type=s;const t=e.data;e.bom=0,t.length>=3&&239===t[0]&&187===t[1]&&191===t[2]&&(e.bom=3)}(r);break;case o:case a:case u:!function(e){const t=e.data;switch(e.bom=0,e.type){case o:e.type=a,t.length>=2&&(254===t[0]&&255===t[1]?e.bom=2:255===t[0]&&254===t[1]&&(e.type=u,e.bom=2));break;case a:if(e.type=a,t.length>=2)if(254===t[0]&&255===t[1])e.bom=2;else if(255===t[0]&&254===t[1])throw new TypeError(`src type: "${a}" specified but BOM is for "${u}"`);break;case u:if(e.type=u,t.length>=0){if(254===t[0]&&255===t[1])throw new TypeError(`src type: "${u}" specified but BOM is for "${a}"`);255===t[0]&&254===t[1]&&(e.bom=2)}break;default:throw new TypeError(`UTF16 BOM: src type "${e.type}" unrecognized`)}}(r);break;case c:case l:case d:!function(e){const t=e.data;switch(e.bom=0,e.type){case c:e.type=l,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.type=d,e.bom=4));break;case l:if(e.type=l,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]))throw new TypeError(`src type: ${l} specified but BOM is for ${d}"`);break;case d:if(e.type=d,t.length>=4){if(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3])throw new TypeError(`src type: "${d}" specified but BOM is for "${l}"`);255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.bom=4)}break;default:throw new TypeError(`UTF32 BOM: src type "${e.type}" unrecognized`)}}(r);break;case y:r.type=g;break;case w:r.type=x;break;case p:r.type=h;break;case f:r.type=m;break;case h:case m:case b:case g:case _:case x:case T:case v:break;default:throw new TypeError(`type: "${e}" not recognized`)}if(r.type===T){if("string"!=typeof r.data)throw new TypeError(`type: "${e}" but data is not a string`)}else if(!n.isBuffer(r.data))throw new TypeError(`type: "${e}" but data is not a Buffer`);return r},E=function(e,t){switch(e){case s:return i.utf8.encode(t);case a:return i.utf16be.encode(t);case u:return i.utf16le.encode(t);case l:return i.utf32be.encode(t);case d:return i.utf32le.encode(t);case h:return i.uint7.encode(t);case m:return i.uint8.encode(t);case g:return i.uint16be.encode(t);case b:return i.uint16le.encode(t);case x:return i.uint32be.encode(t);case _:return i.uint32le.encode(t);case T:return i.string.encode(t);case v:return i.escaped.encode(t);default:throw new TypeError(`encode type "${e}" not recognized`)}};r.decode=function(e,t){return function(e){switch(e.type){case s:return i.utf8.decode(e.data,e.bom);case u:return i.utf16le.decode(e.data,e.bom);case a:return i.utf16be.decode(e.data,e.bom);case l:return i.utf32be.decode(e.data,e.bom);case d:return i.utf32le.decode(e.data,e.bom);case h:return i.uint7.decode(e.data);case m:return i.uint8.decode(e.data);case g:return i.uint16be.decode(e.data);case b:return i.uint16le.decode(e.data);case x:return i.uint32be.decode(e.data);case _:return i.uint32le.decode(e.data);case T:return i.string.decode(e.data);case v:return i.escaped.decode(e.data);default:throw new TypeError(`decode type "${e.type}" not recognized`)}}(O(e,t))},r.encode=function(e,t){let r,n;const O=function(e,t){if(!Array.isArray(t))throw new TypeError('dst chars: not array: "'+typeof t);if("string"!=typeof e)throw new TypeError('dst type: not string: "'+typeof e);const r=function(e){let t,r;const n={crlf:!1,lf:!1,base64:!1,type:""};for(;;){if(r=e,t=e.slice(0,5),"CRLF:"===t){n.crlf=!0,r=e.slice(5);break}if(t=e.slice(0,3),"LF:"===t){n.lf=!0,r=e.slice(3);break}break}return t=r.split(":"),1===t.length?n.type=t[0]:2===t.length&&"BASE64"===t[1]&&(n.base64=!0,n.type=t[0]),n}(e.toUpperCase());switch(r.type){case s:case a:case u:case l:case d:case h:case m:case b:case g:case _:case x:case v:break;case T:if(r.base64)throw new TypeError(`":BASE64" suffix not allowed with type ${T}`);break;case p:r.type=h;break;case f:r.type=m;break;case o:r.type=a;break;case c:r.type=l;break;case y:r.type=g;break;case w:r.type=x;break;default:throw new TypeError(`dst type unrecognized: "${e}" : must have form [crlf:|lf:]type[:base64]`)}return r}(e,t);return O.crlf?(r=i.lineEnds.crlf(t),n=E(O.type,r)):O.lf?(r=i.lineEnds.lf(t),n=E(O.type,r)):n=E(O.type,t),O.base64&&(n=i.base64.encode(n)),n};r.convert=function(e,t,n){return r.encode(n,r.decode(e,t))}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-conv-api/converter.js"}],[6437,{buffer:6542},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),i=4294967292,s=4294967293,o=4294967294,a=4294967295,u=[0,1,3,7,15,31,63,127,255,511,1023],c=["00","01","02","03","04","05","06","07","08","09","0A","0B","0C","0D","0E","0F","10","11","12","13","14","15","16","17","18","19","1A","1B","1C","1D","1E","1F","20","21","22","23","24","25","26","27","28","29","2A","2B","2C","2D","2E","2F","30","31","32","33","34","35","36","37","38","39","3A","3B","3C","3D","3E","3F","40","41","42","43","44","45","46","47","48","49","4A","4B","4C","4D","4E","4F","50","51","52","53","54","55","56","57","58","59","5A","5B","5C","5D","5E","5F","60","61","62","63","64","65","66","67","68","69","6A","6B","6C","6D","6E","6F","70","71","72","73","74","75","76","77","78","79","7A","7B","7C","7D","7E","7F","80","81","82","83","84","85","86","87","88","89","8A","8B","8C","8D","8E","8F","90","91","92","93","94","95","96","97","98","99","9A","9B","9C","9D","9E","9F","A0","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","AC","AD","AE","AF","B0","B1","B2","B3","B4","B5","B6","B7","B8","B9","BA","BB","BC","BD","BE","BF","C0","C1","C2","C3","C4","C5","C6","C7","C8","C9","CA","CB","CC","CD","CE","CF","D0","D1","D2","D3","D4","D5","D6","D7","D8","D9","DA","DB","DC","DD","DE","DF","E0","E1","E2","E3","E4","E5","E6","E7","E8","E9","EA","EB","EC","ED","EE","EF","F0","F1","F2","F3","F4","F5","F6","F7","F8","F9","FA","FB","FC","FD","FE","FF"],l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),d=[];l.forEach(e=>{d.push(e.charCodeAt(0))}),r.utf8={encode(e){const t=[];return e.forEach(e=>{if(e>=0&&e<=127)t.push(e);else if(e<=2047)t.push(192+(e>>6&u[5])),t.push(128+(e&u[6]));else if(e<55296||e>57343&&e<=65535)t.push(224+(e>>12&u[4])),t.push(128+(e>>6&u[6])),t.push(128+(e&u[6]));else{if(!(e>=65536&&e<=1114111))throw new RangeError(`utf8.encode: character out of range: char: ${e}`);{const r=e>>16&u[5];t.push(240+(r>>2)),t.push(128+((r&u[2])<<4)+(e>>12&u[4])),t.push(128+(e>>6&u[6])),t.push(128+(e&u[6]))}}}),n.from(t)},decode(e,t){function r(e,t){if(128!=(192&t))return s;const r=((e&u[5])<<6)+(t&u[6]);return r<128?i:r}function n(e,t,r){if(128!=(192&r)||128!=(192&t))return s;const n=((e&u[4])<<12)+((t&u[6])<<6)+(r&u[6]);return n<2048?i:n>=55296&&n<=57343?o:n}function c(e,t,r,n){if(128!=(192&n)||128!=(192&r)||128!=(192&t))return s;const a=(((e&u[3])<<2)+(t>>4&u[2])<<16)+((t&u[4])<<12)+((r&u[6])<<6)+(n&u[6]);return a<65536?i:a>1114111?o:a}let l,d,h,p,f,m;const y=e.length;let b=t?3:0;const g=[];for(;b<y;){d=e[b],l=a;const t=!0;for(;t;){if(d>=0&&d<=127){l=d,m=1;break}if(h=b+1,h<y&&d>=194&&d<=223){l=r(d,e[h]),m=2;break}if(p=b+2,p<y&&d>=224&&d<=239){l=n(d,e[h],e[p]),m=3;break}if(f=b+3,f<y&&d>=240&&d<=244){l=c(d,e[h],e[p],e[f]),m=4;break}break}if(l>1114111){const e=`byte[${b}]`;if(l===a)throw new RangeError(`utf8.decode: ill-formed UTF8 byte sequence found at: ${e}`);if(l===s)throw new RangeError(`utf8.decode: illegal trailing byte found at: ${e}`);if(l===o)throw new RangeError(`utf8.decode: code point out of range found at: ${e}`);if(l===i)throw new RangeError(`utf8.decode: non-shortest form found at: ${e}`);throw new RangeError(`utf8.decode: unrecognized error found at: ${e}`)}g.push(l),b+=m}return g}},r.utf16be={encode(e){const t=[];let r,i,s;for(let n=0;n<e.length;n+=1)if(r=e[n],r>=0&&r<=55295||r>=57344&&r<=65535)t.push(r>>8&u[8]),t.push(r&u[8]);else{if(!(r>=65536&&r<=1114111))throw new RangeError(`utf16be.encode: UTF16BE value out of range: char[${n}]: ${r}`);s=r-65536,i=55296+(s>>10),s=56320+(s&u[10]),t.push(i>>8&u[8]),t.push(i&u[8]),t.push(s>>8&u[8]),t.push(s&u[8])}return n.from(t)},decode(e,t){if(e.length%2>0)throw new RangeError(`utf16be.decode: data length must be even multiple of 2: length: ${e.length}`);const r=[],n=e.length;let i,s,o,a,u,c,l=t?2:0,d=0;for(;l<n;){const t=!0;for(;t;){if(o=l+1,o<n){if(u=(e[l]<<8)+e[o],u<55296||u>57343){i=u,s=2;break}if(a=l+3,a<n&&(c=(e[l+2]<<8)+e[a],u<=56319&&c>=56320&&c<=57343)){i=65536+(u-55296<<10)+(c-56320),s=4;break}}throw new RangeError(`utf16be.decode: ill-formed UTF16BE byte sequence found: byte[${l}]`)}r[d++]=i,l+=s}return r}},r.utf16le={encode(e){const t=[];let r,i,s;for(let n=0;n<e.length;n+=1)if(r=e[n],r>=0&&r<=55295||r>=57344&&r<=65535)t.push(r&u[8]),t.push(r>>8&u[8]);else{if(!(r>=65536&&r<=1114111))throw new RangeError(`utf16le.encode: UTF16LE value out of range: char[${n}]: ${r}`);s=r-65536,i=55296+(s>>10),s=56320+(s&u[10]),t.push(i&u[8]),t.push(i>>8&u[8]),t.push(s&u[8]),t.push(s>>8&u[8])}return n.from(t)},decode(e,t){if(e.length%2>0)throw new RangeError(`utf16le.decode: data length must be even multiple of 2: length: ${e.length}`);const r=[],n=e.length;let i,s,o,a,u,c,l=t?2:0,d=0;for(;l<n;){const t=!0;for(;t;){if(o=l+1,o<n){if(u=(e[o]<<8)+e[l],u<55296||u>57343){i=u,s=2;break}if(a=l+3,a<n&&(c=(e[a]<<8)+e[l+2],u<=56319&&c>=56320&&c<=57343)){i=65536+(u-55296<<10)+(c-56320),s=4;break}}throw new RangeError(`utf16le.decode: ill-formed UTF16LE byte sequence found: byte[${l}]`)}r[d++]=i,l+=s}return r}},r.utf32be={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach(e=>{if(e>=55296&&e<=57343||e>1114111)throw new RangeError(`utf32be.encode: UTF32BE character code out of range: char[${r/4}]: ${e}`);t[r++]=e>>24&u[8],t[r++]=e>>16&u[8],t[r++]=e>>8&u[8],t[r++]=e&u[8]}),t},decode(e,t){if(e.length%4>0)throw new RangeError(`utf32be.decode: UTF32BE byte length must be even multiple of 4: length: ${e.length}`);const r=[];let n=t?4:0;for(;n<e.length;n+=4){const t=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];if(t>=55296&&t<=57343||t>1114111)throw new RangeError(`utf32be.decode: UTF32BE character code out of range: char[${n/4}]: ${t}`);r.push(t)}return r}},r.utf32le={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach(e=>{if(e>=55296&&e<=57343||e>1114111)throw new RangeError(`utf32le.encode: UTF32LE character code out of range: char[${r/4}]: ${e}`);t[r++]=e&u[8],t[r++]=e>>8&u[8],t[r++]=e>>16&u[8],t[r++]=e>>24&u[8]}),t},decode(e,t){if(e.length%4>0)throw new RangeError(`utf32be.decode: UTF32LE byte length must be even multiple of 4: length: ${e.length}`);const r=[];let n=t?4:0;for(;n<e.length;n+=4){const t=(e[n+3]<<24)+(e[n+2]<<16)+(e[n+1]<<8)+e[n];if(t>=55296&&t<=57343||t>1114111)throw new RangeError(`utf32le.encode: UTF32LE character code out of range: char[${n/4}]: ${t}`);r.push(t)}return r}},r.uint7={encode(e){const t=n.alloc(e.length);for(let r=0;r<e.length;r+=1){if(e[r]>127)throw new RangeError(`uint7.encode: UINT7 character code out of range: char[${r}]: ${e[r]}`);t[r]=e[r]}return t},decode(e){const t=[];for(let r=0;r<e.length;r+=1){if(e[r]>127)throw new RangeError(`uint7.decode: UINT7 character code out of range: byte[${r}]: ${e[r]}`);t[r]=e[r]}return t}},r.uint8={encode(e){const t=n.alloc(e.length);for(let r=0;r<e.length;r+=1){if(e[r]>255)throw new RangeError(`uint8.encode: UINT8 character code out of range: char[${r}]: ${e[r]}`);t[r]=e[r]}return t},decode(e){const t=[];for(let r=0;r<e.length;r+=1)t[r]=e[r];return t}},r.uint16be={encode(e){const t=n.alloc(2*e.length);let r=0;return e.forEach(e=>{if(e>65535)throw new RangeError(`uint16be.encode: UINT16BE character code out of range: char[${r/2}]: ${e}`);t[r++]=e>>8&u[8],t[r++]=e&u[8]}),t},decode(e){if(e.length%2>0)throw new RangeError(`uint16be.decode: UINT16BE byte length must be even multiple of 2: length: ${e.length}`);const t=[];for(let r=0;r<e.length;r+=2)t.push((e[r]<<8)+e[r+1]);return t}},r.uint16le={encode(e){const t=n.alloc(2*e.length);let r=0;return e.forEach(e=>{if(e>65535)throw new RangeError(`uint16le.encode: UINT16LE character code out of range: char[${r/2}]: ${e}`);t[r++]=e&u[8],t[r++]=e>>8&u[8]}),t},decode(e){if(e.length%2>0)throw new RangeError(`uint16le.decode: UINT16LE byte length must be even multiple of 2: length: ${e.length}`);const t=[];for(let r=0;r<e.length;r+=2)t.push((e[r+1]<<8)+e[r]);return t}},r.uint32be={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach(e=>{t[r++]=e>>24&u[8],t[r++]=e>>16&u[8],t[r++]=e>>8&u[8],t[r++]=e&u[8]}),t},decode(e){if(e.length%4>0)throw new RangeError(`uint32be.decode: UINT32BE byte length must be even multiple of 4: length: ${e.length}`);const t=[];for(let r=0;r<e.length;r+=4)t.push((e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3]);return t}},r.uint32le={encode(e){const t=n.alloc(4*e.length);let r=0;return e.forEach(e=>{t[r++]=e&u[8],t[r++]=e>>8&u[8],t[r++]=e>>16&u[8],t[r++]=e>>24&u[8]}),t},decode(e){if(e.length%4>0)throw new RangeError(`uint32le.decode: UINT32LE byte length must be even multiple of 4: length: ${e.length}`);const t=[];for(let r=0;r<e.length;r+=4)t.push((e[r+3]<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]);return t}},r.string={encode:e=>r.utf16le.encode(e).toString("utf16le"),decode:e=>r.utf16le.decode(n.from(e,"utf16le"),0)},r.escaped={encode(e){const t=[];for(let r=0;r<e.length;r+=1){const i=e[r];if(96===i)t.push(i),t.push(i);else if(10===i)t.push(i);else if(i>=32&&i<=126)t.push(i);else{let e="";if(i>=0&&i<=31)e+=`\`x${c[i]}`;else if(i>=127&&i<=255)e+=`\`x${c[i]}`;else if(i>=256&&i<=65535)e+=`\`u${c[i>>8&u[8]]}${c[i&u[8]]}`;else{if(!(i>=65536&&i<=4294967295))throw new Error("escape.encode(char): char > 0xffffffff not allowed");{e+="`u{";const t=i>>24&u[8];t>0&&(e+=c[t]),e+=`${c[i>>16&u[8]]+c[i>>8&u[8]]+c[i&u[8]]}}`}}n.from(e).forEach(e=>{t.push(e)})}}return n.from(t)},decode(e){function t(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e,r,n){const i={char:null,nexti:e+2,error:!0};if(e+1<r&&t(n[e])&&t(n[e+1])){const t=String.fromCodePoint(n[e],n[e+1]);i.char=parseInt(t,16),Number.isNaN(i.char)||(i.error=!1)}return i}function n(e,r,n){const i={char:null,nexti:e+4,error:!0};if(e+3<r&&t(n[e])&&t(n[e+1])&&t(n[e+2])&&t(n[e+3])){const t=String.fromCodePoint(n[e],n[e+1],n[e+2],n[e+3]);i.char=parseInt(t,16),Number.isNaN(i.char)||(i.error=!1)}return i}function i(e,r,n){const i={char:null,nexti:e+4,error:!0};let s="";for(;e<r&&t(n[e]);)s+=String.fromCodePoint(n[e]),e+=1;return i.char=parseInt(s,16),125!==n[e]||Number.isNaN(i.char)||(i.error=!1),i.nexti=e+1,i}const s=[],o=e.length;let a,u,c,l=0;for(;l<o;){const t=!0;for(;t;){if(c=!0,96!==e[l]){s.push(e[l]),l+=1,c=!1;break}if(a=l+1,a>=o)break;if(96===e[a]){s.push(96),l+=2,c=!1;break}if(120===e[a]){if(u=r(a+1,o,e),u.error)break;s.push(u.char),l=u.nexti,c=!1;break}if(117===e[a]){if(123===e[a+1]){if(u=i(a+2,o,e),u.error)break;s.push(u.char),l=u.nexti,c=!1;break}if(u=n(a+1,o,e),u.error)break;s.push(u.char),l=u.nexti,c=!1;break}break}if(c)throw new Error(`escaped.decode: ill-formed escape sequence at buf[${l}]`)}return s}};const h=10;r.lineEnds={crlf(e){const t=[];let r=0;for(;r<e.length;)switch(e[r]){case 13:r+1<e.length&&e[r+1]===h?r+=2:r+=1,t.push(13),t.push(h);break;case h:t.push(13),t.push(h),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&t[t.length-1]!==h&&(t.push(13),t.push(h)),t},lf(e){const t=[];let r=0;for(;r<e.length;)switch(e[r]){case 13:r+1<e.length&&e[r+1]===h?r+=2:r+=1,t.push(h);break;case h:t.push(h),r+=1;break;default:t.push(e[r]),r+=1}return t.length>0&&t[t.length-1]!==h&&t.push(h),t}},r.base64={encode(e){if(0===e.length)return n.alloc(0);let t,r,i,s=e.length%3;s=s>0?3-s:0;let o=(e.length+s)/3;const a=n.alloc(4*o);s>0&&(o-=1),t=0,r=0;for(let n=0;n<o;n+=1)i=e[t++]<<16,i+=e[t++]<<8,i+=e[t++],a[r++]=d[i>>18&u[6]],a[r++]=d[i>>12&u[6]],a[r++]=d[i>>6&u[6]],a[r++]=d[i&u[6]];return 0===s?a:1===s?(i=e[t++]<<16,i+=e[t]<<8,a[r++]=d[i>>18&u[6]],a[r++]=d[i>>12&u[6]],a[r++]=d[i>>6&u[6]],a[r]=d[64],a):2===s?(i=e[t]<<16,a[r++]=d[i>>18&u[6]],a[r++]=d[i>>12&u[6]],a[r++]=d[64],a[r]=d[64],a):undefined},decode(e){if(0===e.length)return n.alloc(0);const t=function(e){const t=[];let r=0;for(let n=0;n<e.length;n+=1){const i=e[n],s=!0;for(;s&&32!==i&&9!==i&&10!==i&&13!==i;){if(i>=65&&i<=90){t.push(i-65);break}if(i>=97&&i<=122){t.push(i-71);break}if(i>=48&&i<=57){t.push(i+4);break}if(43===i){t.push(62);break}if(47===i){t.push(63);break}if(61===i){t.push(64),r+=1;break}throw new RangeError(`base64.decode: invalid character buf[${n}]: ${i}`)}}if(t.length%4>0)throw new RangeError(`base64.decode: string length not integral multiple of 4: ${t.length}`);switch(r){case 0:break;case 1:if(64!==t[t.length-1])throw new RangeError("base64.decode: one tail character found: not last character");break;case 2:if(64!==t[t.length-1]||64!==t[t.length-2])throw new RangeError("base64.decode: two tail characters found: not last characters");break;default:throw new RangeError(`base64.decode: more than two tail characters found: ${r}`)}return{tail:r,buf:n.from(t)}}(e),{tail:r}=t,i=t.buf;let s,o,a,c=i.length/4;const l=n.alloc(3*c-r);r>0&&(c-=1),o=0,s=0;for(let e=0;e<c;e+=1)a=i[s++]<<18,a+=i[s++]<<12,a+=i[s++]<<6,a+=i[s++],l[o++]=a>>16&u[8],l[o++]=a>>8&u[8],l[o++]=a&u[8];return 1===r&&(a=i[s++]<<18,a+=i[s++]<<12,a+=i[s]<<6,l[o++]=a>>16&u[8],l[o]=a>>8&u[8]),2===r&&(a=i[s++]<<18,a+=i[s++]<<12,l[o]=a>>16&u[8]),l},toString(e){if(e.length%4>0)throw new RangeError(`base64.toString: input buffer length not multiple of 4: ${e.length}`);let t="",r=0;function n(e,n,i,s){switch(r){case 76:t+=`\r\n${e}${n}${i}${s}`,r=4;break;case 75:t+=`${e}\r\n${n}${i}${s}`,r=3;break;case 74:t+=`${e+n}\r\n${i}${s}`,r=2;break;case 73:t+=`${e+n+i}\r\n${s}`,r=1;break;default:t+=e+n+i+s,r+=4}}function i(e){return e>=65&&e<=90||(e>=97&&e<=122||(e>=48&&e<=57||(43===e||(47===e||61===e))))}for(let t=0;t<e.length;t+=4){for(let r=t;r<t+4;r+=1)if(!i(e[r]))throw new RangeError(`base64.toString: buf[${r}]: ${e[r]} : not valid base64 character code`);n(String.fromCharCode(e[t]),String.fromCharCode(e[t+1]),String.fromCharCode(e[t+2]),String.fromCharCode(e[t+3]))}return t}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-conv-api/transformers.js"}],[6438,{"./identifiers":6441,"./utilities":6447},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("./identifiers"),r=e("./utilities"),n=this;let i=null,s=null,o=null,a=0;const u=[],c=[],l=[],d=[];function h(e){let t="";for(let r=0;r<e;r+=1)t+=" ";return t}this.callbacks=[],this.astObject="astObject",this.init=function(e,t,r){let h;l.length=0,d.length=0,u.length=0,a=0,i=e,s=t,o=r;const p=[];for(h=0;h<i.length;h+=1)p.push(i[h].lower);for(h=0;h<s.length;h+=1)p.push(s[h].lower);for(a=i.length+s.length,h=0;h<a;h+=1)u[h]=!1,c[h]=null;for(const e in n.callbacks){const t=e.toLowerCase();if(h=p.indexOf(t),h<0)throw new Error(`ast.js: init: node '${e}' not a rule or udt name`);"function"==typeof n.callbacks[e]&&(u[h]=!0,c[h]=n.callbacks[e]),!0===n.callbacks[e]&&(u[h]=!0)}},this.ruleDefined=function(e){return!1!==u[e]},this.udtDefined=function(e){return!1!==u[i.length+e]},this.down=function(e,r){const n=d.length;return l.push(n),d.push({name:r,thisIndex:n,thatIndex:null,state:t.SEM_PRE,callbackIndex:e,phraseIndex:null,phraseLength:null,stack:l.length}),n},this.up=function(e,r,n,i){const s=d.length,o=l.pop();return d.push({name:r,thisIndex:s,thatIndex:o,state:t.SEM_POST,callbackIndex:e,phraseIndex:n,phraseLength:i,stack:l.length}),d[o].thatIndex=s,d[o].phraseIndex=n,d[o].phraseLength=i,s},this.translate=function(e){let r,n,i;for(let s=0;s<d.length;s+=1)i=d[s],n=c[i.callbackIndex],i.state===t.SEM_PRE?null!==n&&(r=n(t.SEM_PRE,o,i.phraseIndex,i.phraseLength,e),r===t.SEM_SKIP&&(s=i.thatIndex)):null!==n&&n(t.SEM_POST,o,i.phraseIndex,i.phraseLength,e)},this.setLength=function(e){d.length=e,l.length=e>0?d[e-1].stack:0},this.getLength=function(){return d.length},this.toXml=function(e){let n=r.charsToDec,i="decimal integer character codes";if("string"==typeof e&&e.length>=3){const t=e.slice(0,3).toLowerCase();"asc"===t?(n=r.charsToAscii,i="ASCII for printing characters, hex for non-printing"):"hex"===t?(n=r.charsToHex,i="hexadecimal integer character codes"):"uni"===t&&(n=r.charsToUnicode,i="Unicode UTF-32 integer character codes")}let s="",a=0;return s+='<?xml version="1.0" encoding="utf-8"?>\n',s+=`<root nodes="${d.length/2}" characters="${o.length}">\n`,s+=`< ! -- input string, ${i} -- >\n`,s+=h(a+2),s+=n(o),s+="\n",d.forEach(e=>{e.state===t.SEM_PRE?(a+=1,s+=h(a),s+=`<node name="${e.name}" index="${e.phraseIndex}" length="${e.phraseLength}">\n`,s+=h(a+2),s+=n(o,e.phraseIndex,e.phraseLength),s+="\n"):(s+=h(a),s+=`</node>< ! -- name="${e.name}" -- >\n`,a-=1)}),s+="</root>\n",s},this.phrases=function(){const e={};let r,n;for(r=0;r<d.length;r+=1)n=d[r],n.state===t.SEM_PRE&&(Array.isArray(e[n.name])||(e[n.name]=[]),e[n.name].push({index:n.phraseIndex,length:n.phraseLength}));return e}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/ast.js"}],[6439,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){let e=-1,t=0;this.init=function(r){if("number"!=typeof r||r<=0)throw new Error("circular-buffer.js: init: circular buffer size must an integer > 0");t=Math.ceil(r),e=-1},this.increment=function(){return e+=1,(e+t)%t},this.maxSize=function(){return t},this.items=function(){return e+1},this.getListIndex=function(r){return-1===e||r<0||r>e||e-r>=t?-1:(r+t)%t},this.forEach=function(r){if(-1!==e)if(e<t)for(let t=0;t<=e;t+=1)r(t,t);else for(let n=e-t+1;n<=e;n+=1){r((n+t)%t,n)}}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/circular-buffer.js"}],[6440,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){return"/* This file automatically generated by jsonToless() and LESS. */\n.apg-mono {\n  font-family: monospace;\n}\n.apg-active {\n  font-weight: bold;\n  color: #000000;\n}\n.apg-match {\n  font-weight: bold;\n  color: #264BFF;\n}\n.apg-empty {\n  font-weight: bold;\n  color: #0fbd0f;\n}\n.apg-nomatch {\n  font-weight: bold;\n  color: #FF4000;\n}\n.apg-lh-match {\n  font-weight: bold;\n  color: #1A97BA;\n}\n.apg-lb-match {\n  font-weight: bold;\n  color: #5F1687;\n}\n.apg-remainder {\n  font-weight: bold;\n  color: #999999;\n}\n.apg-ctrl-char {\n  font-weight: bolder;\n  font-style: italic;\n  font-size: 0.6em;\n}\n.apg-line-end {\n  font-weight: bold;\n  color: #000000;\n}\n.apg-error {\n  font-weight: bold;\n  color: #FF4000;\n}\n.apg-phrase {\n  color: #000000;\n  background-color: #8caae6;\n}\n.apg-empty-phrase {\n  color: #0fbd0f;\n}\ntable.apg-state {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: left;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-state th,\ntable.apg-state td {\n  text-align: left;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-state th:nth-last-child(2),\ntable.apg-state td:nth-last-child(2) {\n  text-align: right;\n}\ntable.apg-state caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-stats {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-stats th,\ntable.apg-stats td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-stats caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-trace {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-trace caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-trace th,\ntable.apg-trace td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-trace th:last-child,\ntable.apg-trace th:nth-last-child(2),\ntable.apg-trace td:last-child,\ntable.apg-trace td:nth-last-child(2) {\n  text-align: left;\n}\ntable.apg-grammar {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-grammar caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-grammar th,\ntable.apg-grammar td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-grammar th:last-child,\ntable.apg-grammar td:last-child {\n  text-align: left;\n}\ntable.apg-rules {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-rules caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-rules th,\ntable.apg-rules td {\n  text-align: right;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-rules a {\n  color: #003399 !important;\n}\ntable.apg-rules a:hover {\n  color: #8caae6 !important;\n}\ntable.apg-attrs {\n  font-family: monospace;\n  margin-top: 5px;\n  font-size: 11px;\n  line-height: 130%;\n  text-align: center;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-attrs caption {\n  font-size: 125%;\n  line-height: 130%;\n  font-weight: bold;\n  text-align: left;\n}\ntable.apg-attrs th,\ntable.apg-attrs td {\n  text-align: center;\n  border: 1px solid black;\n  border-collapse: collapse;\n}\ntable.apg-attrs th:nth-child(1),\ntable.apg-attrs th:nth-child(2),\ntable.apg-attrs th:nth-child(3) {\n  text-align: right;\n}\ntable.apg-attrs td:nth-child(1),\ntable.apg-attrs td:nth-child(2),\ntable.apg-attrs td:nth-child(3) {\n  text-align: right;\n}\ntable.apg-attrs a {\n  color: #003399 !important;\n}\ntable.apg-attrs a:hover {\n  color: #8caae6 !important;\n}\n"}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/emitcss.js"}],[6441,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,BKR:14,BKA:15,BKN:16,ABG:17,AEN:18,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,SEM_SKIP:301,ATTR_N:400,ATTR_R:401,ATTR_MR:402,LOOKAROUND_NONE:500,LOOKAROUND_AHEAD:501,LOOKAROUND_BEHIND:502,BKR_MODE_UM:601,BKR_MODE_PM:602,BKR_MODE_CS:603,BKR_MODE_CI:604}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/identifiers.js"}],[6442,{"./ast":6438,"./circular-buffer":6439,"./emitcss":6440,"./identifiers":6441,"./parser":6443,"./stats":6444,"./style":6445,"./trace":6446,"./utilities":6447},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={ast:e("./ast"),circular:e("./circular-buffer"),ids:e("./identifiers"),parser:e("./parser"),stats:e("./stats"),trace:e("./trace"),utils:e("./utilities"),emitcss:e("./emitcss"),style:e("./style")}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/node-exports.js"}],[6443,{"./identifiers":6441,"./utilities":6447},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("./identifiers"),r=e("./utilities"),n="parser.js: ",i=this;let s;this.ast=null,this.stats=null,this.trace=null,this.callbacks=[];let o,a,u,c,l=null,d=null,h=0,p=0,f=0,m=null,y=null,b=null,g=null,w=null,_=0,x=Infinity,v=Infinity;const T=function(e,r,i){const o=`${n}evaluateRule(): `;if(e>=b.length)throw new Error(`${o}rule index: ${e} out of range`);if(r>=u)throw new Error(`${o}phrase index: ${r} out of range`);const{length:a}=l;l.push({type:t.RNM,index:e}),s(a,r,i),l.pop()},O=function(e,r,i){const o=`${n}evaluateUdt(): `;if(e>=g.length)throw new Error(`${o}udt index: ${e} out of range`);if(r>=u)throw new Error(`${o}phrase index: ${r} out of range`);const{length:a}=l;l.push({type:t.UDT,empty:g[e].empty,index:e}),s(a,r,i),l.pop()},E=function(){h=0,p=0,f=0,_=0,c=[{lookAround:t.LOOKAROUND_NONE,anchor:0,charsEnd:0,charsLength:0}],b=null,g=null,d=null,o=0,a=0,u=0,m=null,y=null,w=null,l=null},M=function(){const e=[];this.push=function(){e.push(function(){const t=e[e.length-1],r={};for(const e in t)r[e]=t[e];return r}())},this.pop=function(t){let r=t;if(r||(r=e.length-1),r<1||r>e.length)throw new Error(`${n}backRef.pop(): bad length: ${r}`);return e.length=r,e[e.length-1]},this.length=function(){return e.length},this.savePhrase=function(t,r,n){e[e.length-1][t]={phraseIndex:r,phraseLength:n}},this.getPhrase=function(t){return e[e.length-1][t]},function(){const t={};b.forEach(e=>{e.isBkr&&(t[e.lower]=null)}),g.length>0&&g.forEach(e=>{e.isBkr&&(t[e.lower]=null)}),e.push(t)}()},k=function(){const e=this;this.state=t.ACTIVE,this.phraseLength=0,this.ruleIndex=0,this.udtIndex=0,this.lookAround=c[c.length-1],this.uFrame=new M,this.pFrame=new M,this.evaluateRule=T,this.evaluateUdt=O,this.refresh=function(){e.state=t.ACTIVE,e.phraseLength=0,e.lookAround=c[c.length-1]}},j=function(){return c[c.length-1]},S=function(){return c.length>1},A=function(e,t,i){const s=`${n}initializeInputChars(): `;let c=e,l=t,h=i;if(c===undefined)throw new Error(`${s}input string is undefined`);if(null===c)throw new Error(`${s}input string is null`);if("string"==typeof c)c=r.stringToChars(c);else if(!Array.isArray(c))throw new Error(`${s}input string is not a string or array`);if(c.length>0&&"number"!=typeof c[0])throw new Error(`${s}input string not an array of integers`);if("number"!=typeof l)l=0;else if(l=Math.floor(l),l<0||l>c.length)throw new Error(`${s}input beginning index out of range: ${l}`);if("number"!=typeof h)h=c.length-l;else if(h=Math.floor(h),h<0||h>c.length-l)throw new Error(`${s}input length out of range: ${h}`);d=c,o=l,a=h,u=o+a};this.setMaxTreeDepth=function(e){if("number"!=typeof e)throw new Error(`parser: max tree depth must be integer > 0: ${e}`);if(x=Math.floor(e),x<=0)throw new Error(`parser: max tree depth must be integer > 0: ${e}`)},this.setMaxNodeHits=function(e){if("number"!=typeof e)throw new Error(`parser: max node hits must be integer > 0: ${e}`);if(v=Math.floor(e),v<=0)throw new Error(`parser: max node hits must be integer > 0: ${e}`)};const I=function(e,r,c){let h;const x=`${n}parse(): `;!function(e){const t=`${n}initializeGrammar(): `;if(!e)throw new Error(`${t}grammar object undefined`);if("grammarObject"!==e.grammarObject)throw new Error(`${t}bad grammar object`);b=e.rules,g=e.udts}(e);const v=function(e){const t=`${n}initializeStartRule(): `;let r=null;if("number"==typeof e){if(e>=b.length)throw new Error(`${t}start rule index too large: max: ${b.length}: index: ${e}`);r=e}else{if("string"!=typeof e)throw new Error(`${t}type of start rule '${typeof e}' not recognized`);{const n=e.toLowerCase();for(let e=0;e<b.length;e+=1)if(n===b[e].lower){r=b[e].index;break}if(null===r)throw new Error(`${t}start rule name '${e}' not recognized`)}}return r}(r);!function(){const e=`${n}initializeCallbacks(): `;let t,r;for(m=[],y=[],t=0;t<b.length;t+=1)m[t]=null;for(t=0;t<g.length;t+=1)y[t]=null;const s=[];for(t=0;t<b.length;t+=1)s.push(b[t].lower);for(t=0;t<g.length;t+=1)s.push(g[t].lower);for(const n in i.callbacks){if(t=s.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(r=i.callbacks[n],r||(r=null),"function"!=typeof r&&null!==r)throw new Error(`${e}syntax callback[${n}] must be function reference or 'false' (false/null/undefined/etc.)`);t<b.length?m[t]=r:y[t-b.length]=r}for(t=0;t<g.length;t+=1)if(null===y[t])throw new Error(`${e}all UDT callbacks must be defined. UDT callback[${g[t].lower}] not a function reference`)}(),function(){const e=`${n}initializeTrace(): `;for(;;){if(i.trace===undefined){i.trace=null;break}if(null===i.trace)break;if("traceObject"!==i.trace.traceObject)throw new Error(`${e}trace object not recognized`);break}null!==i.trace&&i.trace.init(b,g,d)}(),function(){const e=`${n}initializeStats(): `;for(;;){if(i.stats===undefined){i.stats=null;break}if(null===i.stats)break;if("statsObject"!==i.stats.statsObject)throw new Error(`${e}stats object not recognized`);break}null!==i.stats&&i.stats.init(b,g)}(),function(){const e=`${n}initializeAst(): `;for(;;){if(i.ast===undefined){i.ast=null;break}if(null===i.ast)break;if("astObject"!==i.ast.astObject)throw new Error(`${e}ast object not recognized`);break}null!==i.ast&&i.ast.init(b,g,d)}();const T=new k;switch(c!==undefined&&null!==c&&(w=c),l=[{type:t.RNM,index:v}],s(0,o,T),l=null,T.state){case t.ACTIVE:throw new Error(`${x}final state should never be 'ACTIVE'`);case t.NOMATCH:h=!1;break;case t.EMPTY:case t.MATCH:h=T.phraseLength===a;break;default:throw new Error("unrecognized state")}return{success:h,state:T.state,length:a,matched:T.phraseLength,maxMatched:_,maxTreeDepth:p,nodeHits:f,inputLength:d.length,subBegin:o,subEnd:u,subLength:a}};this.parseSubstring=function(e,t,r,n,i,s){return E(),A(r,n,i),I(e,t,s)},this.parse=function(e,t,r,n){return E(),A(r,0,r.length),I(e,t,n)};const P=function(e,r,n){const i=l[e];for(let e=0;e<i.children.length&&(s(i.children[e],r,n),n.state===t.NOMATCH);e+=1);},C=function(e,r,i,s){if(r.phraseLength>i){let t=`${n}opRNM(${e.name}): callback function error: `;throw t+=`sysData.phraseLength: ${r.phraseLength}`,t+=` must be <= remaining chars: ${i}`,new Error(t)}switch(r.state){case t.ACTIVE:if(!0!==s)throw new Error(`${n}opRNM(${e.name}): callback function return error. ACTIVE state not allowed.`);break;case t.EMPTY:r.phraseLength=0;break;case t.MATCH:0===r.phraseLength&&(r.state=t.EMPTY);break;case t.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opRNM(${e.name}): callback function return error. Unrecognized return state: ${r.state}`)}},z=function(e,r,n){let o,a,c,h,p,f;const y=l[e],g=b[y.index],_=m[g.index],x=!S();if(x&&(a=i.ast&&i.ast.ruleDefined(y.index),a&&(o=i.ast.getLength(),i.ast.down(y.index,b[y.index].name)),h=n.uFrame.length(),p=n.pFrame.length(),n.uFrame.push(),n.pFrame.push(),f=n.pFrame,n.pFrame=new M),null===_)c=l,l=g.opcodes,s(0,r,n),l=c;else{const e=u-r;n.ruleIndex=g.index,_(n,d,r,w),C(g,n,e,!0),n.state===t.ACTIVE&&(c=l,l=g.opcodes,s(0,r,n),l=c,n.ruleIndex=g.index,_(n,d,r,w),C(g,n,e,!1))}x&&(a&&(n.state===t.NOMATCH?i.ast.setLength(o):i.ast.up(y.index,g.name,r,n.phraseLength)),n.pFrame=f,n.state===t.NOMATCH?(n.uFrame.pop(h),n.pFrame.pop(p)):g.isBkr&&(n.pFrame.savePhrase(g.lower,r,n.phraseLength),n.uFrame.savePhrase(g.lower,r,n.phraseLength)))},R=function(e,r,s){let o,a,c,h,p,f;const m=l[e],_=g[m.index];s.UdtIndex=_.index;const x=!S();x&&(c=i.ast&&i.ast.udtDefined(m.index),c&&(a=b.length+m.index,o=i.ast.getLength(),i.ast.down(a,_.name)),h=s.uFrame.length(),p=s.pFrame.length(),s.uFrame.push(),s.pFrame.push(),f=s.pFrame,s.pFrame=new M);const v=u-r;y[m.index](s,d,r,w),function(e,r,i){if(r.phraseLength>i){let t=`${n}opUDT(${e.name}): callback function error: `;throw t+=`sysData.phraseLength: ${r.phraseLength}`,t+=` must be <= remaining chars: ${i}`,new Error(t)}switch(r.state){case t.ACTIVE:throw new Error(`${n}opUDT(${e.name}): callback function return error. ACTIVE state not allowed.`);case t.EMPTY:if(!1===e.empty)throw new Error(`${n}opUDT(${e.name}): callback function return error. May not return EMPTY.`);r.phraseLength=0;break;case t.MATCH:if(0===r.phraseLength){if(!1===e.empty)throw new Error(`${n}opUDT(${e.name}): callback function return error. May not return EMPTY.`);r.state=t.EMPTY}break;case t.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opUDT(${e.name}): callback function return error. Unrecognized return state: ${r.state}`)}}(_,s,v),x&&(c&&(s.state===t.NOMATCH?i.ast.setLength(o):i.ast.up(a,_.name,r,s.phraseLength)),s.pFrame=f,s.state===t.NOMATCH?(s.uFrame.pop(h),s.pFrame.pop(p)):_.isBkr&&(s.pFrame.savePhrase(_.lower,r,s.phraseLength),s.uFrame.savePhrase(_.lower,r,s.phraseLength)))},N=function(e,r,n){c.push({lookAround:t.LOOKAROUND_AHEAD,anchor:r,charsEnd:u,charsLength:a}),u=d.length,a=d.length-o,s(e+1,r,n);const i=c.pop();switch(u=i.charsEnd,a=i.charsLength,n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.EMPTY;break;case t.NOMATCH:n.state=t.NOMATCH;break;default:throw new Error(`opAND: invalid state ${n.state}`)}},B=function(e,r,n){c.push({lookAround:t.LOOKAROUND_AHEAD,anchor:r,charsEnd:u,charsLength:a}),u=d.length,a=d.length-o,s(e+1,r,n);const i=c.pop();switch(u=i.charsEnd,a=i.charsLength,n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.NOMATCH;break;case t.NOMATCH:n.state=t.EMPTY;break;default:throw new Error(`opNOT: invalid state ${n.state}`)}},L=function(e,r,n){n.state=t.NOMATCH,n.phraseLength=0,n.state=0===r?t.EMPTY:t.NOMATCH},U=function(e,r,n){n.state=t.NOMATCH,n.phraseLength=0,n.state=r===d.length?t.EMPTY:t.NOMATCH},D=function(e,r,n){switch(c.push({lookAround:t.LOOKAROUND_BEHIND,anchor:r}),s(e+1,r,n),c.pop(),n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.EMPTY;break;case t.NOMATCH:n.state=t.NOMATCH;break;default:throw new Error(`opBKA: invalid state ${n.state}`)}},F=function(e,r,n){switch(c.push({lookAround:t.LOOKAROUND_BEHIND,anchor:r}),s(e+1,r,n),c.pop(),n.phraseLength=0,n.state){case t.EMPTY:case t.MATCH:n.state=t.NOMATCH;break;case t.NOMATCH:n.state=t.EMPTY;break;default:throw new Error(`opBKN: invalid state ${n.state}`)}};s=function(e,r,n){let o=!0;const a=l[e];if(f+=1,f>v)throw new Error(`parser: maximum number of node hits exceeded: ${v}`);if(h+=1,h>p&&(p=h,p>x))throw new Error(`parser: maximum parse tree depth exceeded: ${x}`);if(n.refresh(),null!==i.trace){const e=j();i.trace.down(a,n.state,r,n.phraseLength,e.anchor,e.lookAround)}if(c[c.length-1].lookAround===t.LOOKAROUND_BEHIND)switch(a.type){case t.ALT:P(e,r,n);break;case t.CAT:!function(e,r,n){let o,a,u,c;const d=l[e],h=n.uFrame.length(),p=n.pFrame.length();i.ast&&(a=i.ast.getLength()),o=!0,u=r,c=0;for(let e=d.children.length-1;e>=0;e-=1)if(s(d.children[e],u,n),u-=n.phraseLength,c+=n.phraseLength,n.state===t.NOMATCH){o=!1;break}o?(n.state=0===c?t.EMPTY:t.MATCH,n.phraseLength=c):(n.state=t.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(p),i.ast&&i.ast.setLength(a))}(e,r,n);break;case t.REP:!function(e,r,n){let o,a,u,c;const d=l[e];a=r,u=0,c=0;const h=n.uFrame.length(),p=n.pFrame.length();for(i.ast&&(o=i.ast.getLength());!(a<=0)&&(s(e+1,a,n),n.state!==t.NOMATCH)&&n.state!==t.EMPTY&&(c+=1,u+=n.phraseLength,a-=n.phraseLength,c!==d.max););n.state===t.EMPTY||c>=d.min?(n.state=0===u?t.EMPTY:t.MATCH,n.phraseLength=u):(n.state=t.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(p),i.ast&&i.ast.setLength(o))}(e,r,n);break;case t.RNM:z(e,r,n);break;case t.UDT:R(e,r,n);break;case t.AND:N(e,r,n);break;case t.NOT:B(e,r,n);break;case t.TRG:!function(e,r,n){const i=l[e];if(n.state=t.NOMATCH,n.phraseLength=0,r>0){const e=d[r-1];i.min<=e&&e<=i.max&&(n.state=t.MATCH,n.phraseLength=1)}}(e,r,n);break;case t.TBS:!function(e,r,n){let i;const s=l[e];n.state=t.NOMATCH;const o=s.string.length,a=r-o;if(a>=0){for(i=0;i<o;i+=1)if(d[a+i]!==s.string[i])return;n.state=t.MATCH,n.phraseLength=o}}(e,r,n);break;case t.TLS:!function(e,r,n){let i;const s=l[e];n.state=t.NOMATCH;const o=s.string.length;if(0===o)return void(n.state=t.EMPTY);const a=r-o;if(a>=0){for(let e=0;e<o;e+=1)if(i=d[a+e],i>=65&&i<=90&&(i+=32),i!==s.string[e])return;n.state=t.MATCH,n.phraseLength=o}}(e,r,n);break;case t.BKR:!function(e,r,n){let i,s,o,a;const u=l[e];n.state=t.NOMATCH,n.phraseLength=0,a=u.index<b.length?b[u.index].lower:g[u.index-b.length].lower;const c=u.bkrMode===t.BKR_MODE_PM?n.pFrame.getPhrase(a):n.uFrame.getPhrase(a),h=u.bkrCase===t.BKR_MODE_CI;if(null===c)return;const p=c.phraseIndex,f=c.phraseLength;if(0===f)return n.state=t.EMPTY,void(n.phraseLength=0);const m=r-f;if(m>=0){if(h){for(i=0;i<f;i+=1)if(s=d[m+i],o=d[p+i],s>=65&&s<=90&&(s+=32),o>=65&&o<=90&&(o+=32),s!==o)return;n.state=t.MATCH,n.phraseLength=f}else for(i=0;i<f;i+=1)if(s=d[m+i],o=d[p+i],s!==o)return;n.state=t.MATCH,n.phraseLength=f}}(e,r,n);break;case t.BKA:D(e,r,n);break;case t.BKN:F(e,r,n);break;case t.ABG:L(0,r,n);break;case t.AEN:U(0,r,n);break;default:o=!1}else switch(a.type){case t.ALT:P(e,r,n);break;case t.CAT:!function(e,r,n){let o,a,u,c;const d=l[e],h=n.uFrame.length(),p=n.pFrame.length();i.ast&&(a=i.ast.getLength()),o=!0,u=r,c=0;for(let e=0;e<d.children.length;e+=1){if(s(d.children[e],u,n),n.state===t.NOMATCH){o=!1;break}u+=n.phraseLength,c+=n.phraseLength}o?(n.state=0===c?t.EMPTY:t.MATCH,n.phraseLength=c):(n.state=t.NOMATCH,n.phraseLength=0,n.uFrame.pop(h),n.pFrame.pop(p),i.ast&&i.ast.setLength(a))}(e,r,n);break;case t.REP:!function(e,r,n){let o,a,c,d;const h=l[e];if(0===h.max)return n.state=t.EMPTY,void(n.phraseLength=0);a=r,c=0,d=0;const p=n.uFrame.length(),f=n.pFrame.length();for(i.ast&&(o=i.ast.getLength());!(a>=u)&&(s(e+1,a,n),n.state!==t.NOMATCH)&&n.state!==t.EMPTY&&(d+=1,c+=n.phraseLength,a+=n.phraseLength,d!==h.max););n.state===t.EMPTY||d>=h.min?(n.state=0===c?t.EMPTY:t.MATCH,n.phraseLength=c):(n.state=t.NOMATCH,n.phraseLength=0,n.uFrame.pop(p),n.pFrame.pop(f),i.ast&&i.ast.setLength(o))}(e,r,n);break;case t.RNM:z(e,r,n);break;case t.UDT:R(e,r,n);break;case t.AND:N(e,r,n);break;case t.NOT:B(e,r,n);break;case t.TRG:!function(e,r,n){const i=l[e];n.state=t.NOMATCH,r<u&&i.min<=d[r]&&d[r]<=i.max&&(n.state=t.MATCH,n.phraseLength=1)}(e,r,n);break;case t.TBS:!function(e,r,n){let i;const s=l[e],o=s.string.length;if(n.state=t.NOMATCH,r+o<=u){for(i=0;i<o;i+=1)if(d[r+i]!==s.string[i])return;n.state=t.MATCH,n.phraseLength=o}}(e,r,n);break;case t.TLS:!function(e,r,n){let i,s;const o=l[e];n.state=t.NOMATCH;const a=o.string.length;if(0!==a){if(r+a<=u){for(i=0;i<a;i+=1)if(s=d[r+i],s>=65&&s<=90&&(s+=32),s!==o.string[i])return;n.state=t.MATCH,n.phraseLength=a}}else n.state=t.EMPTY}(e,r,n);break;case t.BKR:!function(e,r,n){let i,s,o,a;const c=l[e];n.state=t.NOMATCH,a=c.index<b.length?b[c.index].lower:g[c.index-b.length].lower;const h=c.bkrMode===t.BKR_MODE_PM?n.pFrame.getPhrase(a):n.uFrame.getPhrase(a),p=c.bkrCase===t.BKR_MODE_CI;if(null===h)return;const f=h.phraseIndex,m=h.phraseLength;if(0!==m){if(r+m<=u){if(p){for(i=0;i<m;i+=1)if(s=d[r+i],o=d[f+i],s>=65&&s<=90&&(s+=32),o>=65&&o<=90&&(o+=32),s!==o)return;n.state=t.MATCH,n.phraseLength=m}else for(i=0;i<m;i+=1)if(s=d[r+i],o=d[f+i],s!==o)return;n.state=t.MATCH,n.phraseLength=m}}else n.state=t.EMPTY}(e,r,n);break;case t.BKA:D(e,r,n);break;case t.BKN:F(e,r,n);break;case t.ABG:L(0,r,n);break;case t.AEN:U(0,r,n);break;default:o=!1}if(!S()&&r+n.phraseLength>_&&(_=r+n.phraseLength),null!==i.stats&&i.stats.collect(a,n),null!==i.trace){const e=j();i.trace.up(a,n.state,r,n.phraseLength,e.anchor,e.lookAround)}return h-=1,o}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/parser.js"}],[6444,{"./identifiers":6441,"./style":6445,"./utilities":6447},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("./identifiers"),r=e("./utilities"),n=e("./style");let i=[],s=[];const o=[];let a;const u=[],c=[];this.statsObject="statsObject";const l=function(e,t){return e.lower<t.lower?-1:e.lower>t.lower?1:0},d=function(e,t){return e.total<t.total?1:e.total>t.total?-1:l(e,t)},h=function(e,t){return e.index<t.index?-1:e.index>t.index?1:0},p=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},f=function(e,r){switch(e.total+=1,r){case t.EMPTY:e.empty+=1;break;case t.MATCH:e.match+=1;break;case t.NOMATCH:e.nomatch+=1;break;default:throw new Error(`stats.js: collect(): incStat(): unrecognized state: ${r}`)}},m=function(e,t){let r="";return r+="<tr>",r+=`<td class="${n.CLASS_ACTIVE}">${e}</td>`,r+=`<td class="${n.CLASS_EMPTY}">${t.empty}</td>`,r+=`<td class="${n.CLASS_MATCH}">${t.match}</td>`,r+=`<td class="${n.CLASS_NOMATCH}">${t.nomatch}</td>`,r+=`<td class="${n.CLASS_ACTIVE}">${t.total}</td>`,r+="</tr>\n",r},y=function(){let e="";return e+=m("ALT",o[t.ALT]),e+=m("CAT",o[t.CAT]),e+=m("REP",o[t.REP]),e+=m("RNM",o[t.RNM]),e+=m("TRG",o[t.TRG]),e+=m("TBS",o[t.TBS]),e+=m("TLS",o[t.TLS]),e+=m("UDT",o[t.UDT]),e+=m("AND",o[t.AND]),e+=m("NOT",o[t.NOT]),e+=m("BKR",o[t.BKR]),e+=m("BKA",o[t.BKA]),e+=m("BKN",o[t.BKN]),e+=m("ABG",o[t.ABG]),e+=m("AEN",o[t.AEN]),e+=m("totals",a),e},b=function(){let e="";e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n",e+="<tr><th>rules</th><th></th><th></th><th></th><th></th></tr>\n";for(let t=0;t<i.length;t+=1)u[t].total>0&&(e+="<tr>",e+=`<td class="${n.CLASS_ACTIVE}">${u[t].name}</td>`,e+=`<td class="${n.CLASS_EMPTY}">${u[t].empty}</td>`,e+=`<td class="${n.CLASS_MATCH}">${u[t].match}</td>`,e+=`<td class="${n.CLASS_NOMATCH}">${u[t].nomatch}</td>`,e+=`<td class="${n.CLASS_ACTIVE}">${u[t].total}</td>`,e+="</tr>\n");if(s.length>0){e+="<tr><th></th><th></th><th></th><th></th><th></th></tr>\n",e+="<tr><th>udts</th><th></th><th></th><th></th><th></th></tr>\n";for(let t=0;t<s.length;t+=1)c[t].total>0&&(e+="<tr>",e+=`<td class="${n.CLASS_ACTIVE}">${c[t].name}</td>`,e+=`<td class="${n.CLASS_EMPTY}">${c[t].empty}</td>`,e+=`<td class="${n.CLASS_MATCH}">${c[t].match}</td>`,e+=`<td class="${n.CLASS_NOMATCH}">${c[t].nomatch}</td>`,e+=`<td class="${n.CLASS_ACTIVE}">${c[t].total}</td>`,e+="</tr>\n")}return e};this.validate=function(e){let t=!1;return"string"==typeof e&&"stats"===e&&(t=!0),t},this.init=function(e,r){i=e,s=r,function(){o.length=0,a=new p,o[t.ALT]=new p,o[t.CAT]=new p,o[t.REP]=new p,o[t.RNM]=new p,o[t.TRG]=new p,o[t.TBS]=new p,o[t.TLS]=new p,o[t.UDT]=new p,o[t.AND]=new p,o[t.NOT]=new p,o[t.BKR]=new p,o[t.BKA]=new p,o[t.BKN]=new p,o[t.ABG]=new p,o[t.AEN]=new p,u.length=0;for(let e=0;e<i.length;e+=1)u.push({empty:0,match:0,nomatch:0,total:0,name:i[e].name,lower:i[e].lower,index:i[e].index});if(s.length>0){c.length=0;for(let e=0;e<s.length;e+=1)c.push({empty:0,match:0,nomatch:0,total:0,name:s[e].name,lower:s[e].lower,index:s[e].index})}}()},this.collect=function(e,r){f(a,r.state,r.phraseLength),f(o[e.type],r.state,r.phraseLength),e.type===t.RNM&&f(u[e.index],r.state,r.phraseLength),e.type===t.UDT&&f(c[e.index],r.state,r.phraseLength)},this.toHtml=function(e,t){let r="";r+=`<table class="${n.CLASS_STATS}">\n`,"string"==typeof t&&(r+=`<caption>${t}</caption>\n`),r+=`<tr><th class="${n.CLASS_ACTIVE}">ops</th>\n`,r+=`<th class="${n.CLASS_EMPTY}">EMPTY</th>\n`,r+=`<th class="${n.CLASS_MATCH}">MATCH</th>\n`,r+=`<th class="${n.CLASS_NOMATCH}">NOMATCH</th>\n`,r+=`<th class="${n.CLASS_ACTIVE}">totals</th></tr>\n`;for(;;){if(e===undefined){r+=y();break}if(null===e){r+=y();break}if("ops"===e){r+=y();break}if("index"===e){u.sort(h),c.length>0&&c.sort(h),r+=y(),r+=b();break}if("hits"===e){u.sort(d),c.length>0&&c.sort(h),r+=y(),r+=b();break}if("alpha"===e){u.sort(l),c.length>0&&c.sort(l),r+=y(),r+=b();break}break}return r+="</table>\n",r},this.toHtmlPage=function(e,t,n){return r.htmlToPage(this.toHtml(e,t),n)}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/stats.js"}],[6445,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={CLASS_MONOSPACE:"apg-mono",CLASS_ACTIVE:"apg-active",CLASS_EMPTY:"apg-empty",CLASS_MATCH:"apg-match",CLASS_NOMATCH:"apg-nomatch",CLASS_LOOKAHEAD:"apg-lh-match",CLASS_LOOKBEHIND:"apg-lb-match",CLASS_REMAINDER:"apg-remainder",CLASS_CTRLCHAR:"apg-ctrl-char",CLASS_LINEEND:"apg-line-end",CLASS_ERROR:"apg-error",CLASS_PHRASE:"apg-phrase",CLASS_EMPTYPHRASE:"apg-empty-phrase",CLASS_STATE:"apg-state",CLASS_STATS:"apg-stats",CLASS_TRACE:"apg-trace",CLASS_GRAMMAR:"apg-grammar",CLASS_RULES:"apg-rules",CLASS_RULESLINK:"apg-rules-link",CLASS_ATTRIBUTES:"apg-attrs"}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/style.js"}],[6446,{"./circular-buffer":6439,"./identifiers":6441,"./style":6445,"./utilities":6447},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){const t=e("./utilities"),r=e("./style"),n=new(e("./circular-buffer")),i=e("./identifiers"),s="trace.js: ",o=this,a=16,u=80,c=[];let l=5e3,d=-1,h=0,p=0;const f=[];let m=null,y=null,b=null;const g=[],w=[],_=`<span class="${r.CLASS_LINEEND}">&bull;</span>`,x=`<span class="${r.CLASS_LINEEND}">&hellip;</span>`,v=`<span class="${r.CLASS_EMPTY}">&#120634;</span>`;this.traceObject="traceObject",this.filter={operators:[],rules:[]},this.setMaxRecords=function(e,t){d=-1,"number"==typeof e&&e>0?(l=Math.ceil(e),"number"==typeof t&&(d=Math.floor(t),d<0&&(d=-1))):l=0},this.getMaxRecords=function(){return l},this.getLastRecord=function(){return d},this.init=function(e,t,r){c.length=0,f.length=0,h=0,p=0,m=r,y=e,b=t,function(){const e=function(e){g[i.ALT]=e,g[i.CAT]=e,g[i.REP]=e,g[i.TLS]=e,g[i.TBS]=e,g[i.TRG]=e,g[i.AND]=e,g[i.NOT]=e,g[i.BKR]=e,g[i.BKA]=e,g[i.BKN]=e,g[i.ABG]=e,g[i.AEN]=e};let t=0;for(const e in o.filter.operators)t+=1;if(0!==t){for(const t in o.filter.operators){const r=t.toUpperCase();if("<ALL>"===r)return void e(!0);if("<NONE>"===r)return void e(!1)}e(!1);for(const e in o.filter.operators){const t=e.toUpperCase();if("ALT"===t)g[i.ALT]=!0===o.filter.operators[e];else if("CAT"===t)g[i.CAT]=!0===o.filter.operators[e];else if("REP"===t)g[i.REP]=!0===o.filter.operators[e];else if("AND"===t)g[i.AND]=!0===o.filter.operators[e];else if("NOT"===t)g[i.NOT]=!0===o.filter.operators[e];else if("TLS"===t)g[i.TLS]=!0===o.filter.operators[e];else if("TBS"===t)g[i.TBS]=!0===o.filter.operators[e];else if("TRG"===t)g[i.TRG]=!0===o.filter.operators[e];else if("BKR"===t)g[i.BKR]=!0===o.filter.operators[e];else if("BKA"===t)g[i.BKA]=!0===o.filter.operators[e];else if("BKN"===t)g[i.BKN]=!0===o.filter.operators[e];else if("ABG"===t)g[i.ABG]=!0===o.filter.operators[e];else{if("AEN"!==t)throw new Error(`${s}initOpratorFilter: '${e}' not a valid operator name. Must be <all>, <none>, alt, cat, rep, tls, tbs, trg, and, not, bkr, bka or bkn`);g[i.AEN]=!0===o.filter.operators[e]}}}else e(!1)}(),function(){const e=function(e){g[i.RNM]=e,g[i.UDT]=e;const t=y.length+b.length;w.length=0;for(let r=0;r<t;r+=1)w.push(e)};let t,r;const n=[];for(r=0;r<y.length;r+=1)n.push(y[r].lower);for(r=0;r<b.length;r+=1)n.push(b[r].lower);w.length=0,t=0;for(const e in o.filter.rules)t+=1;if(0!==t){for(const t in o.filter.rules){const r=t.toLowerCase();if("<all>"===r)return void e(!0);if("<none>"===r)return void e(!1)}e(!1),g[i.RNM]=!0,g[i.UDT]=!0;for(const e in o.filter.rules){const t=e.toLowerCase();if(r=n.indexOf(t),r<0)throw new Error(`${s}initRuleFilter: '${e}' not a valid rule or udt name`);w[r]=!0===o.filter.rules[e]}}else e(!0)}(),n.init(l)};const T=function(e){let t=!1;return t=e.type===i.RNM?!(!g[e.type]||!w[e.index]):e.type===i.UDT?!(!g[e.type]||!w[y.length+e.index]):g[e.type],t},O=function(e){return-1===d||e<=d};this.down=function(e,t,r,i,s,o){O(h)&&T(e)&&(f.push(h),c[n.increment()]={dirUp:!1,depth:p,thisLine:h,thatLine:undefined,opcode:e,state:t,phraseIndex:r,phraseLength:i,lookAnchor:s,lookAround:o},h+=1,p+=1)},this.up=function(e,t,r,i,s,o){if(O(h)&&T(e)){const a=h,u=f.pop(),l=n.getListIndex(u);-1!==l&&(c[l].thatLine=a),p-=1,c[n.increment()]={dirUp:!0,depth:p,thisLine:a,thatLine:u,opcode:e,state:t,phraseIndex:r,phraseLength:i,lookAnchor:s,lookAround:o},h+=1}};this.toTree=function(e){const r=function(){function e(e,r){let n,s,o;if(r)switch(e.op={id:r.type,name:t.opcodeToString(r.type)},e.opData=undefined,r.type){case i.RNM:e.opData=y[r.index].name;break;case i.UDT:e.opData=b[r.index].name;break;case i.BKR:n=r.index<y.length?y[r.index].name:b[r.index-y.length].name,s=r.bkrCase===i.BKR_MODE_CI?"%i":"%s",o=r.bkrMode===i.BKR_MODE_UM?"%u":"%p",e.opData=`\\\\${s}${o}${n}`;break;case i.TLS:e.opData=[];for(let t=0;t<r.string.length;t+=1)e.opData.push(r.string[t]);break;case i.TBS:e.opData=[];for(let t=0;t<r.string.length;t+=1)e.opData.push(r.string[t]);break;case i.TRG:case i.REP:e.opData=[r.min,r.max];break;default:throw new Error("unrecognized opcode")}else e.op={id:undefined,name:undefined},e.opData=undefined}function r(e,t,r){return e===i.MATCH?{index:t,length:r}:e===i.NOMATCH||e===i.EMPTY?{index:t,length:0}:null}let s=-1;function o(n,i,o){const a={id:s++,branch:-1,parent:n,up:!1,down:!1,depth:o,children:[]};return i?(a.down=!0,a.state={id:i.state,name:t.stateToString(i.state)},a.phrase=null,e(a,i.opcode)):(a.state={id:undefined,name:undefined},a.phrase=r(),e(a,undefined)),a}function a(n,i){i&&(n.up=!0,n.state={id:i.state,name:t.stateToString(i.state)},n.phrase=r(i.state,i.phraseIndex,i.phraseLength),n.down||e(n,i.opcode))}let u=0,l=-1,d=1;const h=[];let f,g,w,_,x=!0;const v=o(null,null,-1);for(h.push(v),g=v,n.forEach(e=>{if(_=c[e],x&&(x=!1,_.depth>0)){const e=_.dirUp?_.depth+1:_.depth;for(let t=0;t<e;t+=1)w=g,g=o(g,null,t),h.push(g),w.children.push(g)}_.dirUp?(g=h.pop(),a(g,_),g=h[h.length-1]):(w=g,g=o(g,_,_.depth),h.push(g),w.children.push(g))});h.length>1;)g=h.pop(),a(g,null);if(0===v.children.length)throw new Error("trace.toTree(): parse tree has no nodes");if(0===h.length)throw new Error("trace.toTree(): integrity check: dummy root node disappeared?");f=v.children[0];let T=f;for(;f&&!f.down&&!f.up;)T=f,f=f.children[0];f=T,f.leftMost=!0,f.rightMost=!0,function e(t){if(l+=1,t.branch=d,l>p&&(p=l),0===t.children.length)u+=1;else for(let r=0;r<t.children.length;r+=1)r>0&&(d+=1),t.children[r].leftMost=!1,t.children[r].rightMost=!1,t.leftMost&&(t.children[r].leftMost=0===r),t.rightMost&&(t.children[r].rightMost=r===t.children.length-1),e(t.children[r]);l-=1}(f),f.branch=0;const O={string:[]};for(let e=0;e<m.length;e+=1)O.string[e]=m[e];O.rules=[];for(let e=0;e<y.length;e+=1)O.rules[e]=y[e].name;O.udts=[];for(let e=0;e<b.length;e+=1)O.udts[e]=b[e].name;let E;return O.id={},O.id.ALT={id:i.ALT,name:"ALT"},O.id.CAT={id:i.CAT,name:"CAT"},O.id.REP={id:i.REP,name:"REP"},O.id.RNM={id:i.RNM,name:"RNM"},O.id.TLS={id:i.TLS,name:"TLS"},O.id.TBS={id:i.TBS,name:"TBS"},O.id.TRG={id:i.TRG,name:"TRG"},O.id.UDT={id:i.UDT,name:"UDT"},O.id.AND={id:i.AND,name:"AND"},O.id.NOT={id:i.NOT,name:"NOT"},O.id.BKR={id:i.BKR,name:"BKR"},O.id.BKA={id:i.BKA,name:"BKA"},O.id.BKN={id:i.BKN,name:"BKN"},O.id.ABG={id:i.ABG,name:"ABG"},O.id.AEN={id:i.AEN,name:"AEN"},O.id.ACTIVE={id:i.ACTIVE,name:"ACTIVE"},O.id.MATCH={id:i.MATCH,name:"MATCH"},O.id.EMPTY={id:i.EMPTY,name:"EMPTY"},O.id.NOMATCH={id:i.NOMATCH,name:"NOMATCH"},O.treeDepth=p,O.leafNodes=u,E=f.down?f.up?"none":"right":f.up?"left":"both",O.branchesIncomplete=E,O.tree=function e(t,r){let n;const i={};if(i.id=t.id,i.branch=t.branch,i.leftMost=t.leftMost,i.rightMost=t.rightMost,n=t.state.name?t.state.name:"ACTIVE",i.state={id:t.state.id,name:n},n=t.op.name?t.op.name:"?",i.op={id:t.op.id,name:n},"string"==typeof t.opData)i.opData=t.opData;else if(Array.isArray(t.opData)){i.opData=[];for(let e=0;e<t.opData.length;e+=1)i.opData[e]=t.opData[e]}else i.opData=undefined;t.phrase?i.phrase={index:t.phrase.index,length:t.phrase.length}:i.phrase=null,i.depth=t.depth,i.children=[];for(let n=0;n<t.children.length;n+=1)t.children.length,i.children[n]=e(t.children[n],r);return i}(f,f.depth),O}();return e?JSON.stringify(r):r},this.toHtmlPage=function(e,r,n){return t.htmlToPage(this.toHtml(e,r),n)};this.indent=function(e){let t="";for(let r=0;r<e;r+=1)t+=".";return t};const E=function(e,r,n,i,s){if(0===i)return"";let o="";const u=s?",":"";switch(e){case a:o=u+t.charsToHex(r,n,i);break;case 10:if(s)return`,${t.charsToDec(r,n,i)}`;o=u+t.charsToDec(r,n,i);break;case 32:o=t.charsToUnicode(r,n,i);break;default:o=t.charsToAsciiHtml(r,n,i)}return o},M=function(e,t,n,s,o,a){let c,l,d,h,p="",f=_;const m=`<span class="${r.CLASS_REMAINDER}">`,y="</span>";let b=!1;switch(n){case i.EMPTY:p+=v;case i.NOMATCH:case i.ACTIVE:c=s,l=0,d=s,h=t.length-d;break;case i.MATCH:c=s,l=o,d=s+l,h=t.length-d;break;default:throw new Error("unrecognized state")}return f=_,l>u?(l=u,f=x,h=0):l+h>u&&(f=x,h=u-l),l>0&&(p+=a,p+=E(e,t,c,l,b),p+=y,b=!0),h>0&&(p+=m,p+=E(e,t,d,h,b),p+=y),p+f},k=function(e){if(null===y)return"";let s,l,d,h,p,f,g="";return g+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th>",g+="<th>operator</th><th>phrase</th></tr>\n",n.forEach(n=>{const w=c[n];switch(s=w.thisLine,l=w.thatLine!==undefined?w.thatLine:"--",d=!1,h=!1,p=!1,w.lookAround===i.LOOKAROUND_AHEAD&&(d=!0,p=!0,f=w.lookAnchor),w.opcode.type!==i.AND&&w.opcode.type!==i.NOT||(d=!0,p=!0,f=w.phraseIndex),w.lookAround===i.LOOKAROUND_BEHIND&&(h=!0,p=!0,f=w.lookAnchor),w.opcode.type!==i.BKA&&w.opcode.type!==i.BKN||(h=!0,p=!0,f=w.phraseIndex),g+="<tr>",g+=`<td>${s}</td><td>${l}</td>`,g+=`<td>${w.phraseIndex}</td>`,g+=`<td>${w.phraseLength}</td>`,g+=`<td>${w.depth}</td>`,g+="<td>",w.state){case i.ACTIVE:g+=`<span class="${r.CLASS_ACTIVE}">&darr;&nbsp;</span>`;break;case i.MATCH:g+=`<span class="${r.CLASS_MATCH}">&uarr;M</span>`;break;case i.NOMATCH:g+=`<span class="${r.CLASS_NOMATCH}">&uarr;N</span>`;break;case i.EMPTY:g+=`<span class="${r.CLASS_EMPTY}">&uarr;E</span>`;break;default:g+=`<span class="${r.CLASS_ACTIVE}">--</span>`}if(g+="</td>",g+="<td>",g+=o.indent(w.depth),d?g+=`<span class="${r.CLASS_LOOKAHEAD}">`:h&&(g+=`<span class="${r.CLASS_LOOKBEHIND}">`),g+=t.opcodeToString(w.opcode.type),w.opcode.type===i.RNM&&(g+=`(${y[w.opcode.index].name}) `),w.opcode.type===i.BKR){const e=w.opcode.bkrCase===i.BKR_MODE_CI?"%i":"%s",t=w.opcode.bkrMode===i.BKR_MODE_UM?"%u":"%p";g+=`(\\${e}${t}${y[w.opcode.index].name}) `}w.opcode.type===i.UDT&&(g+=`(${b[w.opcode.index].name}) `),w.opcode.type===i.TRG&&(g+=`(${function(e,t){let r="";if(t.type===i.TRG)if(e===a||32===e){let n=t.min.toString(16).toUpperCase();n.length%2!=0&&(n=`0${n}`),r+=e===a?"%x":"U+",r+=n,n=t.max.toString(16).toUpperCase(),n.length%2!=0&&(n=`0${n}`),r+=`&ndash;${n}`}else r=`%d${t.min.toString(10)}&ndash;${t.max.toString(10)}`;return r}(e,w.opcode)}) `),w.opcode.type===i.TBS&&(g+=`(${function(e,t){let r="";if(t.type===i.TBS){const n=Math.min(t.string.length,10);if(e===a||32===e){r+=e===a?"%x":"U+";for(let e=0;e<n;e+=1){let n;e>0&&(r+="."),n=t.string[e].toString(16).toUpperCase(),n.length%2!=0&&(n=`0${n}`),r+=n}}else{r="%d";for(let e=0;e<n;e+=1)e>0&&(r+="."),r+=t.string[e].toString(10)}n<t.string.length&&(r+=x)}return r}(e,w.opcode)}) `),w.opcode.type===i.TLS&&(g+=`(${function(e,r){let n="";if(r.type===i.TLS){const i=Math.min(r.string.length,5);if(e===a||10===e){let t,s,o;e===a?(n="%x",o=16):(n="%d",o=10);for(let e=0;e<i;e+=1)e>0&&(n+="."),s=r.string[e],s>=97&&s<=122?(t=s-32,n+=`${t.toString(o)}/${s.toString(o)}`.toUpperCase()):s>=65&&s<=90?(t=s,s+=32,n+=`${t.toString(o)}/${s.toString(o)}`.toUpperCase()):n+=s.toString(o).toUpperCase();i<r.string.length&&(n+=x)}else{n='"';for(let e=0;e<i;e+=1)n+=t.asciiChars[r.string[e]];i<r.string.length&&(n+=x),n+='"'}}return n}(e,w.opcode)}) `),w.opcode.type===i.REP&&(g+=`(${function(e,t){let r="";if(t.type===i.REP)if(e===a){let e=t.min.toString(16).toUpperCase();e.length%2!=0&&(e=`0${e}`),r=`x${e}`,t.max<Infinity?(e=t.max.toString(16).toUpperCase(),e.length%2!=0&&(e=`0${e}`)):e="inf",r+=`&ndash;${e}`}else r=t.max<Infinity?`${t.min.toString(10)}&ndash;${t.max.toString(10)}`:`${t.min.toString(10)}&ndash;inf`;return r}(e,w.opcode)}) `),p&&(g+="</span>"),g+="</td>",g+="<td>",g+=h?function(e,t,n,s,o,a){let c,l,d,h,p="",f=_;const m=`<span class="${r.CLASS_LOOKBEHIND}">`,y=`<span class="${r.CLASS_REMAINDER}">`,b="</span>";let g=!1;switch(n){case i.EMPTY:p+=v;case i.NOMATCH:case i.MATCH:case i.ACTIVE:c=s-o,l=a-c,d=a,h=t.length-d;break;default:throw new Error("unrecognized state")}return f=_,l>u?(l=u,f=x,h=0):l+h>u&&(f=x,h=u-l),l>0&&(p+=m,p+=E(e,t,c,l,g),p+=b,g=!0),h>0&&(p+=y,p+=E(e,t,d,h,g),p+=b),p+f}(e,m,w.state,w.phraseIndex,w.phraseLength,f):d?function(e,t,n,i,s){const o=`<span class="${r.CLASS_LOOKAHEAD}">`;return M(e,t,n,i,s,o)}(e,m,w.state,w.phraseIndex,w.phraseLength):function(e,t,n,i,s){const o=`<span class="${r.CLASS_MATCH}">`;return M(e,t,n,i,s,o)}(e,m,w.state,w.phraseIndex,w.phraseLength),g+="</td></tr>\n"}),g+="<tr><th>(a)</th><th>(b)</th><th>(c)</th><th>(d)</th><th>(e)</th><th>(f)</th>",g+="<th>operator</th><th>phrase</th></tr>\n",g+="</table>\n",g};this.toHtml=function(e,t){let n=8;if("string"==typeof e&&e.length>=3){const t=e.toLowerCase().slice(0,3);"hex"===t?n=a:"dec"===t?n=10:"uni"===t&&(n=32)}let i="";return i+=function(e,t){let n;switch(e){case a:n="hexadecimal";break;case 10:n="decimal";break;case 8:n="ASCII";break;case 32:n="UNICODE";break;default:throw new Error(`${s}htmlHeader: unrecognized mode: ${e}`)}let i="";return i+=`<p>display mode: ${n}</p>\n`,i+=`<table class="${r.CLASS_TRACE}">\n`,"string"==typeof t&&(i+=`<caption>${t}</caption>`),i}(n,t),i+=k(n),i+=function(){let e="";return e+="</table>\n",e+=`<p class="${r.CLASS_MONOSPACE}">legend:<br>\n`,e+="(a)&nbsp;-&nbsp;line number<br>\n",e+="(b)&nbsp;-&nbsp;matching line number<br>\n",e+="(c)&nbsp;-&nbsp;phrase offset<br>\n",e+="(d)&nbsp;-&nbsp;phrase length<br>\n",e+="(e)&nbsp;-&nbsp;tree depth<br>\n",e+="(f)&nbsp;-&nbsp;operator state<br>\n",e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_ACTIVE}">&darr;</span>&nbsp;&nbsp;phrase opened<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_MATCH}">&uarr;M</span> phrase matched<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_EMPTY}">&uarr;E</span> empty phrase matched<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_NOMATCH}">&uarr;N</span> phrase not matched<br>\n`,e+="operator&nbsp;-&nbsp;ALT, CAT, REP, RNM, TRG, TLS, TBS<sup>&dagger;</sup>, UDT, AND, NOT, BKA, BKN, BKR, ABG, AEN<sup>&Dagger;</sup><br>\n",e+="phrase&nbsp;&nbsp;&nbsp;-&nbsp;up to 80 characters of the phrase being matched<br>\n",e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_MATCH}">matched characters</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_LOOKAHEAD}">matched characters in look ahead mode</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_LOOKBEHIND}">matched characters in look behind mode</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_REMAINDER}">remainder characters(not yet examined by parser)</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<span class="${r.CLASS_CTRLCHAR}">control characters, TAB, LF, CR, etc. (ASCII mode only)</span><br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${v} empty string<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${_} end of input string<br>\n`,e+=`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;${x} input string display truncated<br>\n`,e+="</p>\n",e+=`<p class="${r.CLASS_MONOSPACE}">\n`,e+="<sup>&dagger;</sup>original ABNF operators:<br>\n",e+="ALT - alternation<br>\n",e+="CAT - concatenation<br>\n",e+="REP - repetition<br>\n",e+="RNM - rule name<br>\n",e+="TRG - terminal range<br>\n",e+="TLS - terminal literal string (case insensitive)<br>\n",e+="TBS - terminal binary string (case sensitive)<br>\n",e+="<br>\n",e+="<sup>&Dagger;</sup>super set SABNF operators:<br>\n",e+="UDT - user-defined terminal<br>\n",e+="AND - positive look ahead<br>\n",e+="NOT - negative look ahead<br>\n",e+="BKA - positive look behind<br>\n",e+="BKN - negative look behind<br>\n",e+="BKR - back reference<br>\n",e+="ABG - anchor - begin of input string<br>\n",e+="AEN - anchor - end of input string<br>\n",e+="</p>\n",e}(),i}}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/trace.js"}],[6447,{"../apg-conv-api/converter":6436,"./emitcss":6440,"./identifiers":6441,"./style":6445},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./style"),i=e("../apg-conv-api/converter"),s=e("./emitcss"),o=e("./identifiers"),a="utilities.js: ",u=function(e,t,r){let n,i=t;for(;;){if(e<=0){i=0,n=0;break}if("number"!=typeof i){i=0,n=e;break}if(i>=e){i=e,n=e;break}if("number"!=typeof r){n=e;break}if(n=i+r,n>e){n=e;break}break}return{beg:i,end:n}};function c(e){return!(e>=55296&&e<=57343)&&!(e>1114111)}r.htmlToPage=function(e,t){let r;if("string"!=typeof e)throw new Error(`${a}htmlToPage: input HTML is not a string`);r="string"!=typeof t?"htmlToPage":t;let n="";return n+="<!DOCTYPE html>\n",n+='<html lang="en">\n',n+="<head>\n",n+='<meta charset="utf-8">\n',n+=`<title>${r}</title>\n`,n+="<style>\n",n+=s(),n+="</style>\n",n+="</head>\n<body>\n",n+=`<p>${new Date}</p>\n`,n+=e,n+="</body>\n</html>\n",n},r.parserResultToHtml=function(e,t){let r,i,s=null;"string"==typeof t&&""!==t&&(s=t),r=!0===e.success?`<span class="${n.CLASS_MATCH}">true</span>`:`<span class="${n.CLASS_NOMATCH}">false</span>`,i=e.state===o.EMPTY?`<span class="${n.CLASS_EMPTY}">EMPTY</span>`:e.state===o.MATCH?`<span class="${n.CLASS_MATCH}">MATCH</span>`:e.state===o.NOMATCH?`<span class="${n.CLASS_NOMATCH}">NOMATCH</span>`:`<span class="${n.CLASS_NOMATCH}">unrecognized</span>`;let a="";return a+=`<table class="${n.CLASS_STATE}">\n`,s&&(a+=`<caption>${s}</caption>\n`),a+="<tr><th>state item</th><th>value</th><th>description</th></tr>\n",a+=`<tr><td>parser success</td><td>${r}</td>\n`,a+=`<td><span class="${n.CLASS_MATCH}">true</span> if the parse succeeded,\n`,a+=` <span class="${n.CLASS_NOMATCH}">false</span> otherwise`,a+="<br><i>NOTE: for success, entire string must be matched</i></td></tr>\n",a+=`<tr><td>parser state</td><td>${i}</td>\n`,a+=`<td><span class="${n.CLASS_EMPTY}">EMPTY</span>, `,a+=`<span class="${n.CLASS_MATCH}">MATCH</span> or \n`,a+=`<span class="${n.CLASS_NOMATCH}">NOMATCH</span></td></tr>\n`,a+=`<tr><td>string length</td><td>${e.length}</td><td>length of the input (sub)string</td></tr>\n`,a+=`<tr><td>matched length</td><td>${e.matched}</td><td>number of input string characters matched</td></tr>\n`,a+=`<tr><td>max matched</td><td>${e.maxMatched}</td><td>maximum number of input string characters matched</td></tr>\n`,a+=`<tr><td>max tree depth</td><td>${e.maxTreeDepth}</td><td>maximum depth of the parse tree reached</td></tr>\n`,a+=`<tr><td>node hits</td><td>${e.nodeHits}</td><td>number of parse tree node hits (opcode function calls)</td></tr>\n`,a+=`<tr><td>input length</td><td>${e.inputLength}</td><td>length of full input string</td></tr>\n`,a+=`<tr><td>sub-string begin</td><td>${e.subBegin}</td><td>sub-string first character index</td></tr>\n`,a+=`<tr><td>sub-string end</td><td>${e.subEnd}</td><td>sub-string end-of-string index</td></tr>\n`,a+=`<tr><td>sub-string length</td><td>${e.subLength}</td><td>sub-string length</td></tr>\n`,a+="</table>\n",a},r.charsToString=function(e,t,r){let n,s;if("number"==typeof t){if(t>=e.length)return"";n=t<0?0:t}else n=0;if("number"==typeof r){if(r<=0)return"";s=r>e.length-n?e.length:n+r}else s=e.length;return n<s?i.encode("UTF16LE",e.slice(n,s)).toString("utf16le"):""},r.stringToChars=function(e){return i.decode("STRING",e)},r.opcodeToString=function(e){let t="unknown";switch(e){case o.ALT:t="ALT";break;case o.CAT:t="CAT";break;case o.RNM:t="RNM";break;case o.UDT:t="UDT";break;case o.AND:t="AND";break;case o.NOT:t="NOT";break;case o.REP:t="REP";break;case o.TRG:t="TRG";break;case o.TBS:t="TBS";break;case o.TLS:t="TLS";break;case o.BKR:t="BKR";break;case o.BKA:t="BKA";break;case o.BKN:t="BKN";break;case o.ABG:t="ABG";break;case o.AEN:t="AEN";break;default:throw new Error("unrecognized opcode")}return t},r.stateToString=function(e){let t="unknown";switch(e){case o.ACTIVE:t="ACTIVE";break;case o.MATCH:t="MATCH";break;case o.EMPTY:t="EMPTY";break;case o.NOMATCH:t="NOMATCH";break;default:throw new Error("unrecognized state")}return t},r.asciiChars=["NUL","SOH","STX","ETX","EOT","ENQ","ACK","BEL","BS","TAB","LF","VT","FF","CR","SO","SI","DLE","DC1","DC2","DC3","DC4","NAK","SYN","ETB","CAN","EM","SUB","ESC","FS","GS","RS","US","&nbsp;","!","&#34;","#","$","%","&#38;","&#39;","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&#60;","=","&#62;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","&#92;","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","DEL"],r.charToHex=function(e){let t=e.toString(16).toUpperCase();switch(t.length){case 1:case 3:case 7:t=`0${t}`;break;case 2:case 6:t=`00${t}`;break;case 4:break;case 5:t=`000${t}`;break;default:throw new Error("unrecognized option")}return t},r.charsToDec=function(e,t,r){let n="";if(!Array.isArray(e))throw new Error(`${a}charsToDec: input must be an array of integers`);const i=u(e.length,t,r);if(i.end>i.beg){n+=e[i.beg];for(let t=i.beg+1;t<i.end;t+=1)n+=`,${e[t]}`}return n},r.charsToHex=function(e,t,n){let i="";if(!Array.isArray(e))throw new Error(`${a}charsToHex: input must be an array of integers`);const s=u(e.length,t,n);if(s.end>s.beg){i+=`\\x${r.charToHex(e[s.beg])}`;for(let t=s.beg+1;t<s.end;t+=1)i+=`,\\x${r.charToHex(e[t])}`}return i},r.charsToHtmlEntities=function(e,t,r){let n="";if(!Array.isArray(e))throw new Error(`${a}charsToHex: input must be an array of integers`);const i=u(e.length,t,r);if(i.end>i.beg)for(let t=i.beg;t<i.end;t+=1)n+=`&#x${e[t].toString(16)};`;return n},r.charsToUnicode=function(e,t,n){let i="";if(!Array.isArray(e))throw new Error(`${a}charsToUnicode: input must be an array of integers`);const s=u(e.length,t,n);if(s.end>s.beg)for(let t=s.beg;t<s.end;t+=1)c(e[t])?i+=`&#${e[t]};`:i+=` U+${r.charToHex(e[t])}`;return i},r.charsToJsUnicode=function(e,t,n){let i="";if(!Array.isArray(e))throw new Error(`${a}charsToJsUnicode: input must be an array of integers`);const s=u(e.length,t,n);if(s.end>s.beg){i+=`\\u${r.charToHex(e[s.beg])}`;for(let t=s.beg+1;t<s.end;t+=1)i+=`,\\u${r.charToHex(e[t])}`}return i},r.charsToAscii=function(e,t,n){let i="";if(!Array.isArray(e))throw new Error(`${a}charsToAscii: input must be an array of integers`);const s=u(e.length,t,n);for(let t=s.beg;t<s.end;t+=1){const n=e[t];i+=n>=32&&n<=126?String.fromCharCode(n):`\\x${r.charToHex(n)}`}return i},r.charsToAsciiHtml=function(e,t,i){if(!Array.isArray(e))throw new Error(`${a}charsToAsciiHtml: input must be an array of integers`);let s,o="";const c=u(e.length,t,i);for(let t=c.beg;t<c.end;t+=1)s=e[t],o+=s<32||127===s?`<span class="${n.CLASS_CTRLCHAR}">${r.asciiChars[s]}</span>`:s>127?`<span class="${n.CLASS_CTRLCHAR}">U+${r.charToHex(s)}</span>`:r.asciiChars[s];return o},r.stringToAsciiHtml=function(e){const t=i.decode("STRING",e);return this.charsToAsciiHtml(t)}}}},{package:"@metamask/controller-utils>@spruceid/siwe-parser>apg-js",file:"node_modules/apg-js/src/apg-lib/utilities.js"}],[6449,{"./asn1/api":6450,"./asn1/base":6452,"./asn1/constants":6456,"./asn1/decoders":6458,"./asn1/encoders":6461,"bn.js":6491},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.encoders=e("./asn1/encoders")}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1.js"}],[6450,{"../asn1":6449,inherits:7144,vm:8745},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../asn1"),i=e("inherits");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(t){var r;try{r=e("vm").runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(e){r=function(e){this._initNamed(e)}}return i(r,t),r.prototype._initNamed=function(e){t.call(this,e)},new r(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},s.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},s.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/api.js"}],[6451,{"../base":6452,buffer:6542,inherits:7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("../base").Reporter,s=e("buffer").Buffer;function o(e,t){i.call(this,t),s.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof a||(e=new a(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=s.byteLength(e);else{if(!s.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(o,i),r.DecoderBuffer=o,o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new o(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=a,a.prototype.join=function(e,t){return e||(e=new s(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):s.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/base/buffer.js"}],[6452,{"./buffer":6451,"./node":6453,"./reporter":6454},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/base/index.js"}],[6453,{"../base":6452,"minimalistic-assert":7596},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../base").Reporter,i=e("../base").EncoderBuffer,s=e("../base").DecoderBuffer,o=e("minimalistic-assert"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function c(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=c;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};l.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){var e=this._baseState;u.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),o.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(o(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),a.forEach(function(e){c.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,o=!0,a=null;if(null!==r.key&&(a=e.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(o=this._peekTag(e,u,r.any),e.isError(o))return o}else{var c=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(c)}}if(r.obj&&o&&(n=e.enterObject()),o){if(null!==r.explicit){var l=this._decodeTag(e,r.explicit);if(e.isError(l))return l;e=l}var d=e.offset;if(null===r.use&&null===r.choice){if(r.any)c=e.save();var h=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(h))return h;r.any?i=e.raw(c):e=h}if(t&&t.track&&null!==r.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(e,t)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var p=new s(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(p,t)}}return r.obj&&o&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),o(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some(function(s){var o=e.save(),a=r.choice[s];try{var u=a._decode(e,t);if(e.isError(u))return!1;n={type:s,value:u},i=!0}catch(t){return e.restore(o),!1}return!0},this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(i!==undefined&&!this._skipDefault(i,t,r))return i}},c.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var s=null;if(this.reporter=t,i.optional&&e===undefined){if(null===i.default)return;e=i.default}var o=null,a=!1;if(i.any)s=this._createEncoderBuffer(e);else if(i.choice)s=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,r)._encode(e,t),a=!0;else if(i.children)o=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},u))}else null!==i.use?s=this._getUse(i.use,r)._encode(e,t):(o=this._encodePrimitive(i.tag,e),a=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,l=null===i.implicit?"universal":"context";null===c?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(s=this._encodeComposite(c,a,l,o))}return null!==i.explicit&&(s=this._encodeComposite(i.explicit,!1,"context",s)),s},c.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/base/node.js"}],[6454,{inherits:7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function s(e,t){this.path=e,this.rethrow(t)}r.Reporter=i,i.prototype.isError=function(e){return e instanceof s},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof s;if(t=n?e:new s(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(s,Error),s.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/base/reporter.js"}],[6455,{"../constants":6456},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../constants");r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n._reverse(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n._reverse(r.tag)}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/constants/der.js"}],[6456,{"./der":6455},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r}),t},n.der=e("./der")}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/constants/index.js"}],[6457,{"../../asn1":6449,inherits:7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("../../asn1"),s=i.base,o=i.bignum,a=i.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){s.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=a.tagClass[r>>6],i=!(32&r);if(31&~r)r&=31;else{var s=r;for(r=0;!(128&~s);){if(s=e.readUInt8(t),e.isError(s))return s;r<<=7,r|=127&s}}return{cls:n,primitive:i,tag:r,tagStr:a.tag[r]}}function d(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(!(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var s=0;s<i;s++){n<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;n|=o}return n}t.exports=u,u.prototype.decode=function(e,t){return e instanceof s.DecoderBuffer||(e=new s.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(c,s.Node),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=l(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var n=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=d(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var s=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-s.offset,e.restore(s),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r=l(e,t);if(e.isError(r))return r;var n,i=d(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var s=this._peekTag(e,"end");if(e.isError(s))return s;var o=r.decode(e,"der",n);if(e.isError(o)&&s)break;i.push(o)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",s=0;s<n.length/2;s++)i+=String.fromCharCode(n.readUInt16BE(2*s));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var a=e.raw().toString("ascii");return this._isPrintstr(a)?a:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],s=0;!e.isEmpty();){var o=e.readUInt8();s<<=7,s|=127&o,128&o||(i.push(s),s=0)}128&o&&i.push(s);var a=i[0]/40|0,u=i[0]%40;if(n=r?i:[a,u].concat(i.slice(1)),t){var c=t[n.join(" ")];c===undefined&&(c=t[n.join(".")]),c!==undefined&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),s=0|r.slice(6,8),o=0|r.slice(8,10),a=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),s=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,s,o,a,u,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=e.raw(),n=new o(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/decoders/der.js"}],[6458,{"./der":6457,"./pem":6459},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/decoders/index.js"}],[6459,{"./der":6457,buffer:6542,inherits:7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("buffer").Buffer,s=e("./der");function o(e){s.call(this,e),this.enc="pem"}n(o,s),t.exports=o,o.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,u=-1,c=0;c<r.length;c++){var l=r[c].match(o);if(null!==l&&l[2]===n){if(-1!==a){if("END"!==l[1])break;u=c;break}if("BEGIN"!==l[1])break;a=c}}if(-1===a||-1===u)throw new Error("PEM section not found for: "+n);var d=r.slice(a+1,u).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new i(d,"base64");return s.prototype.decode.call(this,h,t)}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/decoders/pem.js"}],[6460,{"../../asn1":6449,buffer:6542,inherits:7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("buffer").Buffer,s=e("../../asn1"),o=s.base,a=s.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function l(e){return e<10?"0"+e:e}t.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,o.Node),c.prototype._encodeComposite=function(e,t,r,n){var s,o=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6,i}(e,t,r,this.reporter);if(n.length<128)return(s=new i(2))[0]=o,s[1]=n.length,this._createEncoderBuffer([s,n]);for(var u=1,c=n.length;c>=256;c>>=8)u++;(s=new i(2+u))[0]=o,s[1]=128|u;c=1+u;for(var l=n.length;l>0;c--,l>>=8)s[c]=255&l;return this._createEncoderBuffer([s,n])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var s=0;for(n=0;n<e.length;n++){var o=e[n];for(s++;o>=128;o>>=7)s++}var a=new i(s),u=a.length-1;for(n=e.length-1;n>=0;n--){o=e[n];for(a[u--]=127&o;(o>>=7)>0;)a[u--]=128|127&o}return this._createEncoderBuffer(a)},c.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var s=new i(n);return e.copy(s),0===e.length&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var o=e;o>=256;o>>=8)n++;for(o=(s=new Array(n)).length-1;o>=0;o--)s[o]=255&e,e>>=8;return 128&s[0]&&s.unshift(0),this._createEncoderBuffer(new i(s))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var s=e.join();if(i.defaultBuffer===undefined&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),s.length!==i.defaultBuffer.length)return!1;for(n=0;n<s.length;n++)if(s[n]!==i.defaultBuffer[n])return!1;return!0}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/encoders/der.js"}],[6461,{"./der":6460,"./pem":6462},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/encoders/index.js"}],[6462,{"./der":6460,inherits:7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("inherits"),i=e("./der");function s(e){i.call(this,e),this.enc="pem"}n(s,i),t.exports=s,s.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],s=0;s<r.length;s+=64)n.push(r.slice(s,s+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}}}},{package:"crypto-browserify>public-encrypt>parse-asn1>asn1.js",file:"node_modules/asn1.js/lib/asn1/encoders/pem.js"}],[6463,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;t.exports=function(){if(void 0===n)try{n=Function("return async function () {}")().constructor}catch(e){n=!1}return n}}}},{package:"string.prototype.matchall>get-intrinsic>async-function",file:"node_modules/async-function/legacy.js"}],[6464,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;t.exports=function(){if(void 0===n)try{n=Function("return async function* () {}")().constructor}catch(e){n=!1}return n}}}},{package:"string.prototype.matchall>get-intrinsic>async-generator-function",file:"node_modules/async-generator-function/legacy.js"}],[6465,{"./Semaphore":6466,tslib:8343},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("./Semaphore"),s=function(){function e(e){this._semaphore=new i.default(1,e)}return e.prototype.acquire=function(){return n.__awaiter(this,arguments,void 0,function(e){var t;return void 0===e&&(e=0),n.__generator(this,function(r){switch(r.label){case 0:return[4,this._semaphore.acquire(1,e)];case 1:return t=r.sent(),[2,t[1]]}})})},e.prototype.runExclusive=function(e,t){return void 0===t&&(t=0),this._semaphore.runExclusive(function(){return e()},1,t)},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.waitForUnlock=function(e){return void 0===e&&(e=0),this._semaphore.waitForUnlock(1,e)},e.prototype.release=function(){this._semaphore.isLocked()&&this._semaphore.release()},e.prototype.cancel=function(){return this._semaphore.cancel()},e}();r.default=s}}},{package:"async-mutex",file:"node_modules/async-mutex/lib/Mutex.js"}],[6466,{"./errors":6467,tslib:8343},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("./errors"),s=function(){function e(e,t){void 0===t&&(t=i.E_CANCELED),this._value=e,this._cancelError=t,this._queue=[],this._weightedWaiters=[]}return e.prototype.acquire=function(e,t){var r=this;if(void 0===e&&(e=1),void 0===t&&(t=0),e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));return new Promise(function(n,i){var s={resolve:n,reject:i,weight:e,priority:t},a=o(r._queue,function(e){return t<=e.priority});-1===a&&e<=r._value?r._dispatchItem(s):r._queue.splice(a+1,0,s)})},e.prototype.runExclusive=function(e){return n.__awaiter(this,arguments,void 0,function(e,t,r){var i,s,o;return void 0===t&&(t=1),void 0===r&&(r=0),n.__generator(this,function(n){switch(n.label){case 0:return[4,this.acquire(t,r)];case 1:i=n.sent(),s=i[0],o=i[1],n.label=2;case 2:return n.trys.push([2,,4,5]),[4,e(s)];case 3:return[2,n.sent()];case 4:return o(),[7];case 5:return[2]}})})},e.prototype.waitForUnlock=function(e,t){var r=this;if(void 0===e&&(e=1),void 0===t&&(t=0),e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));return this._couldLockImmediately(e,t)?Promise.resolve():new Promise(function(n){var i,s,a;r._weightedWaiters[e-1]||(r._weightedWaiters[e-1]=[]),i=r._weightedWaiters[e-1],s={resolve:n,priority:t},a=o(i,function(e){return s.priority<=e.priority}),i.splice(a+1,0,s)})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.getValue=function(){return this._value},e.prototype.setValue=function(e){this._value=e,this._dispatchQueue()},e.prototype.release=function(e){if(void 0===e&&(e=1),e<=0)throw new Error("invalid weight ".concat(e,": must be positive"));this._value+=e,this._dispatchQueue()},e.prototype.cancel=function(){var e=this;this._queue.forEach(function(t){return t.reject(e._cancelError)}),this._queue=[]},e.prototype._dispatchQueue=function(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()},e.prototype._dispatchItem=function(e){var t=this._value;this._value-=e.weight,e.resolve([t,this._newReleaser(e.weight)])},e.prototype._newReleaser=function(e){var t=this,r=!1;return function(){r||(r=!0,t.release(e))}},e.prototype._drainUnlockWaiters=function(){if(0===this._queue.length)for(var e=this._value;e>0;e--){(r=this._weightedWaiters[e-1])&&(r.forEach(function(e){return e.resolve()}),this._weightedWaiters[e-1]=[])}else{var t=this._queue[0].priority;for(e=this._value;e>0;e--){var r;if(r=this._weightedWaiters[e-1]){var n=r.findIndex(function(e){return e.priority<=t});(-1===n?r:r.splice(0,n)).forEach(function(e){return e.resolve()})}}}},e.prototype._couldLockImmediately=function(e,t){return(0===this._queue.length||this._queue[0].priority<t)&&e<=this._value},e}();function o(e,t){for(var r=e.length-1;r>=0;r--)if(t(e[r]))return r;return-1}r.default=s}}},{package:"async-mutex",file:"node_modules/async-mutex/lib/Semaphore.js"}],[6467,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.E_CANCELED=r.E_ALREADY_LOCKED=r.E_TIMEOUT=void 0,r.E_TIMEOUT=new Error("timeout while waiting for mutex to become available"),r.E_ALREADY_LOCKED=new Error("mutex already locked"),r.E_CANCELED=new Error("request for lock canceled")}}},{package:"async-mutex",file:"node_modules/async-mutex/lib/errors.js"}],[6468,{"./Mutex":6465,"./Semaphore":6466,"./errors":6467,"./tryAcquire":6469,"./withTimeout":6470,tslib:8343},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.tryAcquire=r.withTimeout=r.Semaphore=r.Mutex=void 0;var n=e("tslib"),i=e("./Mutex");Object.defineProperty(r,"Mutex",{enumerable:!0,get:function(){return i.default}});var s=e("./Semaphore");Object.defineProperty(r,"Semaphore",{enumerable:!0,get:function(){return s.default}});var o=e("./withTimeout");Object.defineProperty(r,"withTimeout",{enumerable:!0,get:function(){return o.withTimeout}});var a=e("./tryAcquire");Object.defineProperty(r,"tryAcquire",{enumerable:!0,get:function(){return a.tryAcquire}}),n.__exportStar(e("./errors"),r)}}},{package:"async-mutex",file:"node_modules/async-mutex/lib/index.js"}],[6469,{"./errors":6467,"./withTimeout":6470},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.tryAcquire=void 0;var n=e("./errors"),i=e("./withTimeout");r.tryAcquire=function(e,t){return void 0===t&&(t=n.E_ALREADY_LOCKED),(0,i.withTimeout)(e,0,t)}}}},{package:"async-mutex",file:"node_modules/async-mutex/lib/tryAcquire.js"}],[6470,{"./errors":6467,tslib:8343},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.withTimeout=void 0;var n=e("tslib"),i=e("./errors");function s(e){return e.getValue!==undefined}r.withTimeout=function(e,t,r){var o=this;return void 0===r&&(r=i.E_TIMEOUT),{acquire:function(i,a){var u;if(s(e)?u=i:(u=undefined,a=i),u!==undefined&&u<=0)throw new Error("invalid weight ".concat(u,": must be positive"));return new Promise(function(i,c){return n.__awaiter(o,void 0,void 0,function(){var o,l,d,h;return n.__generator(this,function(n){switch(n.label){case 0:o=!1,l=setTimeout(function(){o=!0,c(r)},t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,s(e)?e.acquire(u,a):e.acquire(a)];case 2:return d=n.sent(),o?(Array.isArray(d)?d[1]:d)():(clearTimeout(l),i(d)),[3,4];case 3:return h=n.sent(),o||(clearTimeout(l),c(h)),[3,4];case 4:return[2]}})})})},runExclusive:function(e,t,r){return n.__awaiter(this,void 0,void 0,function(){var i,s;return n.__generator(this,function(n){switch(n.label){case 0:i=function(){return undefined},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire(t,r)];case 2:return s=n.sent(),Array.isArray(s)?(i=s[1],[4,e(s[0])]):[3,4];case 3:return[2,n.sent()];case 4:return i=s,[4,e()];case 5:return[2,n.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(t){e.release(t)},cancel:function(){return e.cancel()},waitForUnlock:function(n,i){var o;if(s(e)?o=n:(o=undefined,i=n),o!==undefined&&o<=0)throw new Error("invalid weight ".concat(o,": must be positive"));return new Promise(function(n,a){var u=setTimeout(function(){return a(r)},t);(s(e)?e.waitForUnlock(o,i):e.waitForUnlock(i)).then(function(){clearTimeout(u),n()})})},isLocked:function(){return e.isLocked()},getValue:function(){return e.getValue()},setValue:function(t){return e.setValue(t)}}}}}},{package:"async-mutex",file:"node_modules/async-mutex/lib/withTimeout.js"}],[6471,{"possible-typed-array-names":7738},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("possible-typed-array-names"),i="undefined"==typeof globalThis?global:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}}}},{package:"string.prototype.matchall>es-abstract>available-typed-arrays",file:"node_modules/available-typed-arrays/index.js"}],[6473,{_process:7740,buffer:6542,timers:6544},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e,r,n){(function(){function i(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:a,toStringTag:u}=Symbol,c=(l=Object.create(null),e=>{const t=s.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),h=e=>t=>typeof t===e,{isArray:p}=Array,f=h("undefined");function m(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const y=d("ArrayBuffer");const b=h("string"),g=h("function"),w=h("number"),_=e=>null!==e&&"object"==typeof e,x=e=>{if("object"!==c(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||u in e||a in e)},v=d("Date"),T=d("File"),O=d("Blob"),E=d("FileList");const M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},k=void 0!==M.FormData?M.FormData:undefined,j=d("URLSearchParams"),[S,A,I,P]=["ReadableStream","Request","Response","Headers"].map(d);function C(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),p(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(m(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let o;for(n=0;n<s;n++)o=i[n],t.call(null,e[o],o,e)}}function z(e,t){if(m(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,N=e=>!f(e)&&e!==R;const B=(L="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>L&&e instanceof L);var L;const U=d("HTMLFormElement"),D=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),F=d("RegExp"),$=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};C(r,(r,i)=>{let s;!1!==(s=t(r,i,e))&&(n[i]=s||r)}),Object.defineProperties(e,n)};const K=d("AsyncFunction"),G=(H="function"==typeof n,V=g(R.postMessage),H?n:V?(q=`axios@${Math.random()}`,W=[],R.addEventListener("message",({source:e,data:t})=>{e===R&&t===q&&W.length&&W.shift()()},!1),e=>{W.push(e),R.postMessage(q,"*")}):e=>setTimeout(e));var H,V,q,W;const Z="undefined"!=typeof queueMicrotask?queueMicrotask.bind(R):void 0!==e&&e.nextTick||G;var Y={isArray:p,isArrayBuffer:y,isBuffer:m,isFormData:e=>{if(!e)return!1;if(k&&e instanceof k)return!0;const t=o(e);if(!t||t===Object.prototype)return!1;if(!g(e.append))return!1;const r=c(e);return"formdata"===r||"object"===r&&g(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y(e.buffer),t},isString:b,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:_,isPlainObject:x,isEmptyObject:e=>{if(!_(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:S,isRequest:A,isResponse:I,isHeaders:P,isUndefined:f,isDate:v,isFile:T,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:O,isRegExp:F,isFunction:g,isStream:e=>_(e)&&g(e.pipe),isURLSearchParams:j,isTypedArray:B,isFileList:E,forEach:C,merge:function e(...t){const{caseless:r,skipUndefined:n}=N(this)&&this||{},i={},s=(t,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const o=r&&z(i,s)||s,a=D(i,o)?i[o]:undefined;x(a)&&x(t)?i[o]=e(a,t):x(t)?i[o]=e({},t):p(t)?i[o]=t.slice():n&&f(t)||(i[o]=t)};for(let e=0,r=t.length;e<r;e++)t[e]&&C(t[e],s);return i},extend:(e,t,r,{allOwnKeys:n}={})=>(C(t,(t,n)=>{r&&g(t)?Object.defineProperty(e,n,{__proto__:null,value:i(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,s,a;const u={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],n&&!n(a,e,t)||u[a]||(t[a]=e[a],u[a]=!0);e=!1!==r&&o(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,r)=>{e=String(e),(r===undefined||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!w(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[a]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:U,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:$,freezeMethods:e=>{$(e,(t,r)=>{if(g(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];g(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return p(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:z,global:R,isContextDefined:N,isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[u]&&e[a])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(_(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[n]=e;const i=p(e)?[]:{};return C(e,(e,t)=>{const s=r(e,n+1);!f(s)&&(i[t]=s)}),t[n]=undefined,i}}return e};return r(e,0)},isAsyncFn:K,isThenable:e=>e&&(_(e)||g(e))&&g(e.then)&&g(e.catch),setImmediate:G,asap:Z,isIterable:e=>null!=e&&g(e[a])};const J=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const X=Symbol("internals"),Q=/[^\x09\x20-\x7E\x80-\xFF]/g;function ee(e){return e&&String(e).trim().toLowerCase()}function te(e){return!1===e||null==e?e:Y.isArray(e)?e.map(te):function(e){let t=0,r=e.length;for(;t<r;){const r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(Q,""))}function re(e,t,r,n,i){return Y.isFunction(n)?n.call(this,t,r):(i&&(t=r),Y.isString(t)?Y.isString(n)?-1!==t.indexOf(n):Y.isRegExp(n)?n.test(t):void 0:void 0)}class ne{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=ee(t);if(!i)throw new Error("header name must be a non-empty string");const s=Y.findKey(n,i);(!s||n[s]===undefined||!0===r||r===undefined&&!1!==n[s])&&(n[s||t]=te(e))}const s=(e,t)=>Y.forEach(e,(e,r)=>i(e,r,t));if(Y.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(Y.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&J[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(Y.isObject(e)&&Y.isIterable(e)){let r,n,i={};for(const t of e){if(!Y.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[n=t[0]]=(r=i[n])?Y.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}s(i,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=ee(e)){const r=Y.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Y.isFunction(t))return t.call(this,e,r);if(Y.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ee(e)){const r=Y.findKey(this,e);return!(!r||this[r]===undefined||t&&!re(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=ee(e)){const i=Y.findKey(r,e);!i||t&&!re(0,r[i],i,t)||(delete r[i],n=!0)}}return Y.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!re(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return Y.forEach(this,(n,i)=>{const s=Y.findKey(r,i);if(s)return t[s]=te(n),void delete t[i];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(i):String(i).trim();o!==i&&delete t[i],t[o]=te(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Y.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Y.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[X]=this[X]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=ee(e);t[n]||(!function(e,t){const r=Y.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(r,e),t[n]=!0)}return Y.isArray(e)?e.forEach(n):n(e),this}}ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(ne.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Y.freezeMethods(ne);function ie(e,t){const r=new Set(t.map(e=>String(e).toLowerCase())),n=[],i=e=>{if(null===e||"object"!=typeof e)return e;if(Y.isBuffer(e))return e;if(-1!==n.indexOf(e))return undefined;let t;if(e instanceof ne&&(e=e.toJSON()),n.push(e),Y.isArray(e))t=[],e.forEach((e,r)=>{const n=i(e);Y.isUndefined(n)||(t[r]=n)});else{if(!Y.isPlainObject(e)&&function(e){if(Y.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Y.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;t=Object.create(null);for(const[n,s]of Object.entries(e)){const e=r.has(n.toLowerCase())?"[REDACTED ****]":i(s);Y.isUndefined(e)||(t[n]=e)}}return n.pop(),t};return i(e)}class se extends Error{static from(e,t,r,n,i,s){const o=new se(e.message,t||e.code,r,n,i);return o.cause=e,o.name=e.name,null!=e.status&&null==o.status&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,t=e&&Y.hasOwnProp(e,"redact")?e.redact:undefined,r=Y.isArray(t)&&t.length>0?ie(e,t):Y.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",se.ERR_BAD_OPTION="ERR_BAD_OPTION",se.ECONNABORTED="ECONNABORTED",se.ETIMEDOUT="ETIMEDOUT",se.ECONNREFUSED="ECONNREFUSED",se.ERR_NETWORK="ERR_NETWORK",se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",se.ERR_DEPRECATED="ERR_DEPRECATED",se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",se.ERR_BAD_REQUEST="ERR_BAD_REQUEST",se.ERR_CANCELED="ERR_CANCELED",se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",se.ERR_INVALID_URL="ERR_INVALID_URL",se.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function oe(e){return Y.isPlainObject(e)||Y.isArray(e)}function ae(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function ue(e,t,r){return e?e.concat(t).map(function(e,t){return e=ae(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const ce=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function le(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,u=n.Blob||"undefined"!=typeof Blob&&Blob,c=n.maxDepth===undefined?100:n.maxDepth,l=u&&Y.isSpecCompliantForm(t);if(!Y.isFunction(s))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!l&&Y.isBlob(e))throw new se("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):r.from(e):e}function h(e,r,n){let s=e;if(Y.isReactNative(t)&&Y.isReactNativeBlob(e))return t.append(ue(n,r,o),d(e)),!1;if(e&&!n&&"object"==typeof e)if(Y.endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else if(Y.isArray(e)&&function(e){return Y.isArray(e)&&!e.some(oe)}(e)||(Y.isFileList(e)||Y.endsWith(r,"[]"))&&(s=Y.toArray(e)))return r=ae(r),s.forEach(function(e,n){!Y.isUndefined(e)&&null!==e&&t.append(!0===a?ue([r],n,o):null===a?r:r+"[]",d(e))}),!1;return!!oe(e)||(t.append(ue(n,r,o),d(e)),!1)}const p=[],f=Object.assign(ce,{defaultVisitor:h,convertValue:d,isVisitable:oe});if(!Y.isObject(e))throw new TypeError("data must be an object");return function e(r,n,i=0){if(!Y.isUndefined(r)){if(i>c)throw new se("Object is too deeply nested ("+i+" levels). Max depth: "+c,se.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(r))throw Error("Circular reference detected in "+n.join("."));p.push(r),Y.forEach(r,function(r,o){!0===(!(Y.isUndefined(r)||null===r)&&s.call(t,r,Y.isString(o)?o.trim():o,n,f))&&e(r,n?n.concat(o):[o],i+1)}),p.pop()}}(e),t}function de(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function he(e,t){this._pairs=[],e&&le(e,this,t)}const pe=he.prototype;function fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function me(e,t,r){if(!t)return e;const n=r&&r.encode||fe,i=Y.isFunction(r)?{serialize:r}:r,s=i&&i.serialize;let o;if(o=s?s(t,i):Y.isURLSearchParams(t)?t.toString():new he(t,i).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}pe.append=function(e,t){this._pairs.push([e,t])},pe.toString=function(e){const t=e?function(t){return e.call(this,t,de)}:de;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ye{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}}var be={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ge={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:he,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const we="undefined"!=typeof window&&"undefined"!=typeof document,_e="object"==typeof navigator&&navigator||undefined,xe=we&&(!_e||["ReactNative","NativeScript","NS"].indexOf(_e.product)<0),ve="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Te=we&&window.location.href||"http://localhost";var Oe={...Object.freeze({__proto__:null,hasBrowserEnv:we,hasStandardBrowserEnv:xe,hasStandardBrowserWebWorkerEnv:ve,navigator:_e,origin:Te}),...ge};function Ee(e){function t(e,r,n,i){let s=e[i++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),a=i>=e.length;if(s=!s&&Y.isArray(n)?n.length:s,a)return Y.hasOwnProp(n,s)?n[s]=Y.isArray(n[s])?n[s].concat(r):[n[s],r]:n[s]=r,!o;n[s]&&Y.isObject(n[s])||(n[s]=[]);return t(e,r,n[s],i)&&Y.isArray(n[s])&&(n[s]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}(n[s])),!o}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const r={};return Y.forEachEntry(e,(e,n)=>{t(function(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const Me=(e,t)=>null!=e&&Y.hasOwnProp(e,t)?e[t]:undefined;const ke={transitional:be,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=Y.isObject(e);i&&Y.isHTMLForm(e)&&(e=new FormData(e));if(Y.isFormData(e))return n?JSON.stringify(Ee(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){const t=Me(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return le(e,new Oe.classes.URLSearchParams,{visitor:function(e,t,r,n){return Oe.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((s=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const r=Me(this,"env"),n=r&&r.FormData;return le(s?{"files[]":e}:e,n&&new n,t)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Me(this,"transitional")||ke.transitional,r=t&&t.forcedJSONParsing,n=Me(this,"responseType"),i="json"===n;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(r&&!n||i)){const r=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Me(this,"parseReviver"))}catch(e){if(r){if("SyntaxError"===e.name)throw se.from(e,se.ERR_BAD_RESPONSE,this,null,Me(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};function je(e,t){const r=this||ke,n=t||r,i=ne.from(n.headers);let s=n.data;return Y.forEach(e,function(e){s=e.call(r,s,i.normalize(),t?t.status:undefined)}),i.normalize(),s}function Se(e){return!(!e||!e.__CANCEL__)}Y.forEach(["delete","get","head","post","put","patch","query"],e=>{ke.headers[e]={}});class Ae extends se{constructor(e,t,r){super(null==e?"canceled":e,se.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function Ie(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new se("Request failed with status code "+r.status,r.status>=400&&r.status<500?se.ERR_BAD_REQUEST:se.ERR_BAD_RESPONSE,r.config,r.request,r)):e(r)}const Pe=(e,t,r=3)=>{let n=0;const i=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,s=0,o=0;return t=t!==undefined?t:1e3,function(a){const u=Date.now(),c=n[o];i||(i=u),r[s]=a,n[s]=u;let l=o,d=0;for(;l!==s;)d+=r[l++],l%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const h=c&&u-c;return h?Math.round(1e3*d/h):undefined}}(50,250);return function(e,t){let r,n,i=0,s=1e3/t;const o=(t,s=Date.now())=>{i=s,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-i;a>=s?o(e,t):(r=e,n||(n=setTimeout(()=>{n=null,o(r)},s-a)))},()=>r&&o(r)]}(r=>{const s=r.loaded,o=r.lengthComputable?r.total:undefined,a=null!=o?Math.min(s,o):s,u=Math.max(0,a-n),c=i(u);n=Math.max(n,a);const l={loaded:a,total:o,progress:o?a/o:undefined,bytes:u,rate:c||undefined,estimated:c&&o?(o-a)/c:undefined,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0};e(l)},r)},Ce=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ze=e=>(...t)=>Y.asap(()=>e(...t));var Re=Oe.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Oe.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Oe.origin),Oe.navigator&&/(msie|trident)/i.test(Oe.navigator.userAgent)):()=>!0,Ne=Oe.hasStandardBrowserEnv?{write(e,t,r,n,i,s,o){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Y.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),Y.isString(n)&&a.push(`path=${n}`),Y.isString(i)&&a.push(`domain=${i}`),!0===s&&a.push("secure"),Y.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),i=n.indexOf("=");if(-1!==i&&n.slice(0,i)===e)return decodeURIComponent(n.slice(i+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Be(e,t,r){let n=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(n||!1===r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof ne?{...e}:e;function Ue(e,t){t=t||{};const r=Object.create(null);function n(e,t,r,n){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:n},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function i(e,t,r,i){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:n(undefined,e,0,i):n(e,t,0,i)}function s(e,t){if(!Y.isUndefined(t))return n(undefined,t)}function o(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:n(undefined,e):n(undefined,t)}function a(r,i,s){return Y.hasOwnProp(t,s)?n(r,i):Y.hasOwnProp(e,s)?n(undefined,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:a,headers:(e,t,r)=>i(Le(e),Le(t),0,!0)};return Y.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const s=Y.hasOwnProp(u,n)?u[n]:i,o=s(Y.hasOwnProp(e,n)?e[n]:undefined,Y.hasOwnProp(t,n)?t[n]:undefined,n);Y.isUndefined(o)&&s!==a||(r[n]=o)}),r}const De=["content-type","content-length"];var Fe=e=>{const t=Ue({},e),r=e=>Y.hasOwnProp(t,e)?t[e]:undefined,n=r("data");let i=r("withXSRFToken");const s=r("xsrfHeaderName"),o=r("xsrfCookieName");let a=r("headers");const u=r("auth"),c=r("baseURL"),l=r("allowAbsoluteUrls"),d=r("url");var h;if(t.headers=a=ne.from(a),t.url=me(Be(c,d,l),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?(h=u.password,encodeURIComponent(h).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),Y.isFormData(n)&&(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv?a.setContentType(undefined):Y.isFunction(n.getHeaders)&&function(e,t,r){"content-only"===r?Object.entries(t).forEach(([t,r])=>{De.includes(t.toLowerCase())&&e.set(t,r)}):e.set(t)}(a,n.getHeaders(),r("formDataHeaderPolicy"))),Oe.hasStandardBrowserEnv){Y.isFunction(i)&&(i=i(t));if(!0===i||null==i&&Re(t.url)){const e=s&&o&&Ne.read(o);e&&a.set(s,e)}}return t};var $e="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Fe(e);let i=n.data;const s=ne.from(n.headers).normalize();let o,a,u,c,l,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=n;function f(){c&&c(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function y(){if(!m)return;const n=ne.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ie(function(e){t(e),f()},function(e){r(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new se("Request aborted",se.ECONNABORTED,e,m)),f(),m=null)},m.onerror=function(t){const n=t&&t.message?t.message:"Network Error",i=new se(n,se.ERR_NETWORK,e,m);i.event=t||null,r(i),f(),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||be;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new se(t,i.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,m)),f(),m=null},i===undefined&&s.setContentType(null),"setRequestHeader"in m&&Y.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Y.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),p&&([u,l]=Pe(p,!0),m.addEventListener("progress",u)),h&&m.upload&&([a,c]=Pe(h),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(o=t=>{m&&(r(!t||t.type?new Ae(null,e,m):t),m.abort(),f(),m=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const b=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(n.url);!b||Oe.protocols.includes(b)?m.send(i||null):r(new se("Unsupported protocol "+b+":",se.ERR_BAD_REQUEST,e))})};const Ke=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const i=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof se?t:new Ae(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,i(new se(`timeout of ${t}ms exceeded`,se.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=()=>Y.asap(o),a}},Ge=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let n,i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},He=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Ve=(e,t,r,n)=>{const i=async function*(e,t){for await(const r of He(e))yield*Ge(r,t)}(e,t);let s,o=0,a=e=>{s||(s=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return a(),void e.close();let s=n.byteLength;if(r){let e=o+=s;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})};const qe="1.16.0",{isFunction:We}=Y,Ze=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ye=e=>{const t=Y.global??globalThis,{ReadableStream:n,TextEncoder:i}=t;e=Y.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:a}=e,u=s?We(s):"function"==typeof fetch,c=We(o),l=We(a);if(!u)return!1;const d=u&&We(n),h=u&&("function"==typeof i?(p=new i,e=>p.encode(e)):async e=>new Uint8Array(await new o(e).arrayBuffer()));var p;const f=c&&d&&Ze(()=>{let e=!1;const t=new o(Oe.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),m=l&&d&&Ze(()=>Y.isReadableStream(new a("").body)),y={stream:m&&(e=>e.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!y[e]&&(y[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new se(`Response type '${e}' is not supported`,se.ERR_NOT_SUPPORT,r)})});const b=async(e,t)=>{const r=Y.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){const t=new o(Oe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e)?(await h(e)).byteLength:void 0)})(t):r};return async e=>{let{url:t,method:n,data:u,signal:l,cancelToken:d,timeout:h,onDownloadProgress:p,onUploadProgress:g,responseType:w,headers:_,withCredentials:x="same-origin",fetchOptions:v,maxContentLength:T,maxBodyLength:O}=Fe(e);const E=Y.isNumber(T)&&T>-1,M=Y.isNumber(O)&&O>-1;let k=s||fetch;w=w?(w+"").toLowerCase():"text";let j=Ke([l,d&&d.toAbortSignal()],h),S=null;const A=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let I;try{if(E&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let e=i.length;const t=i.length;for(let r=0;r<t;r++)if(37===i.charCodeAt(r)&&r+2<t){const t=i.charCodeAt(r+1),n=i.charCodeAt(r+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102)&&(e-=2,r+=2)}let r=0,n=t-1;const s=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));n>=0&&(61===i.charCodeAt(n)?(r++,n--):s(n)&&(r++,n-=3)),1===r&&n>=0&&(61===i.charCodeAt(n)||s(n))&&r++;const o=3*Math.floor(e/4)-(r||0);return o>0?o:0}if(void 0!==r&&"function"==typeof r.byteLength)return r.byteLength(i,"utf8");let s=0;for(let e=0,t=i.length;e<t;e++){const r=i.charCodeAt(e);if(r<128)s+=1;else if(r<2048)s+=2;else if(r>=55296&&r<=56319&&e+1<t){const t=i.charCodeAt(e+1);t>=56320&&t<=57343?(s+=4,e++):s+=3}else s+=3}return s}(t);if(n>T)throw new se("maxContentLength size of "+T+" exceeded",se.ERR_BAD_RESPONSE,e,S)}if(M&&"get"!==n&&"head"!==n){const t=await b(_,u);if("number"==typeof t&&isFinite(t)&&t>O)throw new se("Request body larger than maxBodyLength limit",se.ERR_BAD_REQUEST,e,S)}if(g&&f&&"get"!==n&&"head"!==n&&0!==(I=await b(_,u))){let e,r=new o(t,{method:"POST",body:u,duplex:"half"});if(Y.isFormData(u)&&(e=r.headers.get("content-type"))&&_.setContentType(e),r.body){const[e,t]=Ce(I,Pe(ze(g)));u=Ve(r.body,65536,e,t)}}Y.isString(x)||(x=x?"include":"omit");const s=c&&"credentials"in o.prototype;if(Y.isFormData(u)){const e=_.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&_.delete("content-type")}_.set("User-Agent","axios/"+qe,!1);const l={...v,signal:j,method:n.toUpperCase(),headers:_.normalize().toJSON(),body:u,duplex:"half",credentials:s?x:undefined};S=c&&new o(t,l);let d=await(c?k(S,v):k(t,l));if(E){const t=Y.toFiniteNumber(d.headers.get("content-length"));if(null!=t&&t>T)throw new se("maxContentLength size of "+T+" exceeded",se.ERR_BAD_RESPONSE,e,S)}const h=m&&("stream"===w||"response"===w);if(m&&d.body&&(p||E||h&&A)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=d[e]});const r=Y.toFiniteNumber(d.headers.get("content-length")),[n,i]=p&&Ce(r,Pe(ze(p),!0))||[];let s=0;const o=t=>{if(E&&(s=t,s>T))throw new se("maxContentLength size of "+T+" exceeded",se.ERR_BAD_RESPONSE,e,S);n&&n(t)};d=new a(Ve(d.body,65536,o,()=>{i&&i(),A&&A()}),t)}w=w||"text";let P=await y[Y.findKey(y,w)||"text"](d,e);if(E&&!m&&!h){let t;if(null!=P&&("number"==typeof P.byteLength?t=P.byteLength:"number"==typeof P.size?t=P.size:"string"==typeof P&&(t="function"==typeof i?(new i).encode(P).byteLength:P.length)),"number"==typeof t&&t>T)throw new se("maxContentLength size of "+T+" exceeded",se.ERR_BAD_RESPONSE,e,S)}return!h&&A&&A(),await new Promise((t,r)=>{Ie(t,r,{data:P,headers:ne.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:S})})}catch(t){if(A&&A(),j&&j.aborted&&j.reason instanceof se){const r=j.reason;throw r.config=e,S&&(r.request=S),t!==r&&(r.cause=t),r}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new se("Network Error",se.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw se.from(t,t&&t.code,e,S,t&&t.response)}}},Je=new Map,Xe=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,s=[n,i,r];let o,a,u=s.length,c=Je;for(;u--;)o=s[u],a=c.get(o),a===undefined&&c.set(o,a=u?new Map:Ye(t)),c=a;return a};Xe();const Qe={http:null,xhr:$e,fetch:{get:Xe}};Y.forEach(Qe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const et=e=>`- ${e}`,tt=e=>Y.isFunction(e)||null===e||!1===e;var rt={getAdapter:function(e,t){e=Y.isArray(e)?e:[e];const{length:r}=e;let n,i;const s={};for(let o=0;o<r;o++){let r;if(n=e[o],i=n,!tt(n)&&(i=Qe[(r=String(n)).toLowerCase()],i===undefined))throw new se(`Unknown adapter '${r}'`);if(i&&(Y.isFunction(i)||(i=i.get(t))))break;s[r||"#"+o]=i}if(!i){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(et).join("\n"):" "+et(e[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:Qe};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ae(null,e)}function it(e){nt(e),e.headers=ne.from(e.headers),e.data=je.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return rt.getAdapter(e.adapter||ke.adapter,e)(e).then(function(t){nt(e),e.response=t;try{t.data=je.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=ne.from(t.headers),t},function(t){if(!Se(t)&&(nt(e),t&&t.response)){e.response=t.response;try{t.response.data=je.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=ne.from(t.response.headers)}return Promise.reject(t)})}const st={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{st[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ot={};st.transitional=function(e,t,r){function n(e,t){return"[Axios v"+qe+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,s)=>{if(!1===e)throw new se(n(i," has been removed"+(t?" in "+t:"")),se.ERR_DEPRECATED);return t&&!ot[i]&&(ot[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,s)}},st.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var at={assertOptions:function(e,t,r){if("object"!=typeof e)throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=Object.prototype.hasOwnProperty.call(t,s)?t[s]:undefined;if(o){const t=e[s],r=t===undefined||o(t,s,e);if(!0!==r)throw new se("option "+s+" must be "+r,se.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new se("Unknown option "+s,se.ERR_BAD_OPTION)}},validators:st};const ut=at.validators;class ct{constructor(e){this.defaults=e||{},this.interceptors={request:new ye,response:new ye}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ue(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;r!==undefined&&at.assertOptions(r,{silentJSONParsing:ut.transitional(ut.boolean),forcedJSONParsing:ut.transitional(ut.boolean),clarifyTimeoutError:ut.transitional(ut.boolean),legacyInterceptorReqResOrdering:ut.transitional(ut.boolean)},!1),null!=n&&(Y.isFunction(n)?t.paramsSerializer={serialize:n}:at.assertOptions(n,{encode:ut.function,serialize:ut.function},!0)),t.allowAbsoluteUrls!==undefined||(this.defaults.allowAbsoluteUrls!==undefined?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),at.assertOptions(t,{baseUrl:ut.spelling("baseURL"),withXsrfToken:ut.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&Y.merge(i.common,i[t.method]);i&&Y.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete i[e]}),t.headers=ne.concat(s,i);const o=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const r=t.transitional||be;r&&r.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const u=[];let c;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let l,d=0;if(!a){const e=[it.bind(this),undefined];for(e.unshift(...o),e.push(...u),l=e.length,c=Promise.resolve(t);d<l;)c=c.then(e[d++],e[d++]);return c}l=o.length;let h=t;for(;d<l;){const e=o[d++],t=o[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{c=it.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,l=u.length;d<l;)c=c.then(u[d++],u[d++]);return c}getUri(e){return me(Be((e=Ue(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){ct.prototype[e]=function(t,r){return this.request(Ue(r||{},{method:e,url:t,data:(r||{}).data}))}}),Y.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,n,i){return this.request(Ue(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ct.prototype[e]=t(),"query"!==e&&(ct.prototype[e+"Form"]=t(!0))});class lt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new Ae(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new lt(function(t){e=t}),cancel:e}}}const dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(dt).forEach(([e,t])=>{dt[t]=e});const ht=function e(t){const r=new ct(t),n=i(ct.prototype.request,r);return Y.extend(n,ct.prototype,r,{allOwnKeys:!0}),Y.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ue(t,r))},n}(ke);ht.Axios=ct,ht.CanceledError=Ae,ht.CancelToken=lt,ht.isCancel=Se,ht.VERSION=qe,ht.toFormData=le,ht.AxiosError=se,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=Ue,ht.AxiosHeaders=ne,ht.formToJSON=e=>Ee(Y.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=rt.getAdapter,ht.HttpStatusCode=dt,ht.default=ht,t.exports=ht}).call(this)}).call(this,e("_process"),e("buffer").Buffer,e("timers").setImmediate)}}},{package:"wait-on>axios",file:"node_modules/axios/dist/browser/axios.cjs"}],[6481,{"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer;t.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var i=0;i<e.length;i++){var s=e.charAt(i),o=s.charCodeAt(0);if(255!==t[o])throw new TypeError(s+" is ambiguous");t[o]=i}var a=e.length,u=e.charAt(0),c=Math.log(a)/Math.log(256),l=Math.log(256)/Math.log(a);function d(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return n.alloc(0);for(var r=0,i=0,s=0;e[r]===u;)i++,r++;for(var o=(e.length-r)*c+1>>>0,l=new Uint8Array(o);r<e.length;){var d=e.charCodeAt(r);if(d>255)return;var h=t[d];if(255===h)return;for(var p=0,f=o-1;(0!==h||p<s)&&-1!==f;f--,p++)h+=a*l[f]>>>0,l[f]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");s=p,r++}for(var m=o-s;m!==o&&0===l[m];)m++;var y=n.allocUnsafe(i+(o-m));y.fill(0,0,i);for(var b=i;m!==o;)y[b++]=l[m++];return y}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,s=0,o=t.length;s!==o&&0===t[s];)s++,r++;for(var c=(o-s)*l+1>>>0,d=new Uint8Array(c);s!==o;){for(var h=t[s],p=0,f=c-1;(0!==h||p<i)&&-1!==f;f--,p++)h+=256*d[f]>>>0,d[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");i=p,s++}for(var m=c-i;m!==c&&0===d[m];)m++;for(var y=u.repeat(r);m<c;++m)y+=e.charAt(d[m]);return y},decodeUnsafe:d,decode:function(e){var t=d(e);if(t)return t;throw new Error("Non-base"+a+" character")}}}}}},{package:"@ensdomains/content-hash>multihashes>multibase>base-x",file:"node_modules/base-x/src/index.js"}],[6483,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=u(e),o=n[0],a=n[1],c=new s(function(e,t,r){return 3*(t+r)/4-r}(0,o,a)),l=0,d=a>0?o-4:o;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,s=[],o=16383,a=0,u=r-i;a<u;a+=o)s.push(l(e,a,a+o>u?u:a+o));1===i?(t=e[r-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return s.join("")};for(var n=[],i=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],i[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function l(e,t,r){for(var n,i=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(c(n));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63}}},{package:"base64-js",file:"node_modules/base64-js/index.js"}],[6485,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e){var r,n=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,i=Math.ceil,s=Math.floor,o=" not a boolean or binary digit",a="rounding mode",u="number type has more than 15 significant digits",c="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",l=1e14,d=14,h=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e7,m=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function b(e){for(var t,r,n=1,i=e.length,s=e[0]+"";n<i;){for(t=e[n++]+"",r=d-t.length;r--;t="0"+t);s+=t}for(i=s.length;48===s.charCodeAt(--i););return s.slice(0,i+1||1)}function g(e,t){var r,n,i=e.c,s=t.c,o=e.s,a=t.s,u=e.e,c=t.e;if(!o||!a)return null;if(r=i&&!i[0],n=s&&!s[0],r||n)return r?n?0:-a:o;if(o!=a)return o;if(r=o<0,n=u==c,!i||!s)return n?0:!i^r?1:-1;if(!n)return u>c^r?1:-1;for(a=(u=i.length)<(c=s.length)?u:c,o=0;o<a;o++)if(i[o]!=s[o])return i[o]>s[o]^r?1:-1;return u==c?0:u>c^r?1:-1}function w(e,t,r){return(e=O(e))>=t&&e<=r}function _(e){return"[object Array]"==Object.prototype.toString.call(e)}function x(e,t,r){for(var n,i,s=[0],o=0,a=e.length;o<a;){for(i=s.length;i--;s[i]*=t);for(s[n=0]+=c.indexOf(e.charAt(o++));n<s.length;n++)s[n]>r-1&&(null==s[n+1]&&(s[n+1]=0),s[n+1]+=s[n]/r|0,s[n]%=r)}return s.reverse()}function v(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function T(e,t){var r,n;if(t<0){for(n="0.";++t;n+="0");e=n+e}else if(++t>(r=e.length)){for(n="0",t-=r;--t;n+="0");e+=n}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}function O(e){return(e=parseFloat(e))<0?i(e):s(e)}r=function e(t){var r,E,M,k,j,S,A,I,P,C=0,z=W.prototype,R=new W(1),N=20,B=4,L=-7,U=21,D=-1e7,F=1e7,$=!0,K=X,G=!1,H=1,V=0,q={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};function W(e,t){var r,i,o,a,l,p,f=this;if(!(f instanceof W))return $&&ee(26,"constructor call without new",e),new W(e,t);if(null!=t&&K(t,2,64,C,"base")){if(p=e+"",10==(t|=0))return te(f=new W(e instanceof W?e:p),N+f.e+1,B);if((a="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(r="["+c.slice(0,t)+"]+")+"(?:\\."+r+")?$",t<37?"i":"").test(p))return E(f,p,a,t);a?(f.s=1/e<0?(p=p.slice(1),-1):1,$&&p.replace(/^0\.0*|\./,"").length>15&&ee(C,u,e),a=!1):f.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1,p=Z(p,10,t,f.s)}else{if(e instanceof W)return f.s=e.s,f.e=e.e,f.c=(e=e.c)?e.slice():e,void(C=0);if((a="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(i=0,o=e;o>=10;o/=10,i++);return f.e=i,f.c=[e],void(C=0)}p=e+""}else{if(!n.test(p=e+""))return E(f,p,a);f.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1}}for((i=p.indexOf("."))>-1&&(p=p.replace(".","")),(o=p.search(/e/i))>0?(i<0&&(i=o),i+=+p.slice(o+1),p=p.substring(0,o)):i<0&&(i=p.length),o=0;48===p.charCodeAt(o);o++);for(l=p.length;48===p.charCodeAt(--l););if(p=p.slice(o,l+1))if(l=p.length,a&&$&&l>15&&(e>h||e!==s(e))&&ee(C,u,f.s*e),(i=i-o-1)>F)f.c=f.e=null;else if(i<D)f.c=[f.e=0];else{if(f.e=i,f.c=[],o=(i+1)%d,i<0&&(o+=d),o<l){for(o&&f.c.push(+p.slice(0,o)),l-=d;o<l;)f.c.push(+p.slice(o,o+=d));p=p.slice(o),o=d-p.length}else o-=l;for(;o--;p+="0");f.c.push(+p)}else f.c=[f.e=0];C=0}function Z(e,t,n,i){var s,o,a,u,l,d,h,p=e.indexOf("."),f=N,m=B;for(n<37&&(e=e.toLowerCase()),p>=0&&(a=V,V=0,e=e.replace(".",""),l=(h=new W(n)).pow(e.length-p),V=a,h.c=x(T(b(l.c),l.e),10,t),h.e=h.c.length),o=a=(d=x(e,n,t)).length;0==d[--a];d.pop());if(!d[0])return"0";if(p<0?--o:(l.c=d,l.e=o,l.s=i,d=(l=r(l,h,f,m,t)).c,u=l.r,o=l.e),p=d[s=o+f+1],a=t/2,u=u||s<0||null!=d[s+1],u=m<4?(null!=p||u)&&(0==m||m==(l.s<0?3:2)):p>a||p==a&&(4==m||u||6==m&&1&d[s-1]||m==(l.s<0?8:7)),s<1||!d[0])e=u?T("1",-f):"0";else{if(d.length=s,u)for(--t;++d[--s]>t;)d[s]=0,s||(++o,d=[1].concat(d));for(a=d.length;!d[--a];);for(p=0,e="";p<=a;e+=c.charAt(d[p++]));e=T(e,o)}return e}function Y(e,t,r,n){var i,s,o,u,c;if(r=null!=r&&K(r,0,8,n,a)?0|r:B,!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)c=b(e.c),c=19==n||24==n&&o<=L?v(c,o):T(c,o);else if(s=(e=te(new W(e),t,r)).e,u=(c=b(e.c)).length,19==n||24==n&&(t<=s||s<=L)){for(;u<t;c+="0",u++);c=v(c,s)}else if(t-=o,c=T(c,s),s+1>u){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=s-u)>0)for(s+1==u&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function J(e,t){var r,n,i=0;for(_(e[0])&&(e=e[0]),r=new W(e[0]);++i<e.length;){if(!(n=new W(e[i])).s){r=n;break}t.call(r,n)&&(r=n)}return r}function X(e,t,r,n,i){return(e<t||e>r||e!=O(e))&&ee(n,(i||"decimal places")+(e<t||e>r?" out of range":" not an integer"),e),!0}function Q(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*d-1)>F?e.c=e.e=null:r<D?e.c=[e.e=0]:(e.e=r,e.c=t),e}function ee(e,t,r){var n=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+t+": "+r);throw n.name="BigNumber Error",C=0,n}function te(e,t,r,n){var o,a,u,c,h,f,m,y=e.c,b=p;if(y){e:{for(o=1,c=y[0];c>=10;c/=10,o++);if((a=t-o)<0)a+=d,u=t,m=(h=y[f=0])/b[o-u-1]%10|0;else if((f=i((a+1)/d))>=y.length){if(!n)break e;for(;y.length<=f;y.push(0));h=m=0,o=1,u=(a%=d)-d+1}else{for(h=c=y[f],o=1;c>=10;c/=10,o++);m=(u=(a%=d)-d+o)<0?0:h/b[o-u-1]%10|0}if(n=n||t<0||null!=y[f+1]||(u<0?h:h%b[o-u-1]),n=r<4?(m||n)&&(0==r||r==(e.s<0?3:2)):m>5||5==m&&(4==r||n||6==r&&(a>0?u>0?h/b[o-u]:0:y[f-1])%10&1||r==(e.s<0?8:7)),t<1||!y[0])return y.length=0,n?(t-=e.e+1,y[0]=b[(d-t%d)%d],e.e=-t||0):y[0]=e.e=0,e;if(0==a?(y.length=f,c=1,f--):(y.length=f+1,c=b[d-a],y[f]=u>0?s(h/b[o-u]%b[u])*c:0),n)for(;;){if(0==f){for(a=1,u=y[0];u>=10;u/=10,a++);for(u=y[0]+=c,c=1;u>=10;u/=10,c++);a!=c&&(e.e++,y[0]==l&&(y[0]=1));break}if(y[f]+=c,y[f]!=l)break;y[f--]=0,c=1}for(a=y.length;0===y[--a];y.pop());}e.e>F?e.c=e.e=null:e.e<D&&(e.c=[e.e=0])}return e}return W.another=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(){var e,t,r=0,n={},i=arguments,s=i[0],a=s&&"object"==typeof s?function(){if(s.hasOwnProperty(t))return null!=(e=s[t])}:function(){if(i.length>r)return null!=(e=i[r++])};return a(t="DECIMAL_PLACES")&&K(e,0,m,2,t)&&(N=0|e),n[t]=N,a(t="ROUNDING_MODE")&&K(e,0,8,2,t)&&(B=0|e),n[t]=B,a(t="EXPONENTIAL_AT")&&(_(e)?K(e[0],-m,0,2,t)&&K(e[1],0,m,2,t)&&(L=0|e[0],U=0|e[1]):K(e,-m,m,2,t)&&(L=-(U=0|(e<0?-e:e)))),n[t]=[L,U],a(t="RANGE")&&(_(e)?K(e[0],-m,-1,2,t)&&K(e[1],1,m,2,t)&&(D=0|e[0],F=0|e[1]):K(e,-m,m,2,t)&&(0|e?D=-(F=0|(e<0?-e:e)):$&&ee(2,t+" cannot be zero",e))),n[t]=[D,F],a(t="ERRORS")&&(e===!!e||1===e||0===e?(C=0,K=($=!!e)?X:w):$&&ee(2,t+o,e)),n[t]=$,a(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?G=!0:$?ee(2,"crypto unavailable",e?void 0:crypto):G=!1:G=!1:$&&ee(2,t+o,e)),n[t]=G,a(t="MODULO_MODE")&&K(e,0,9,2,t)&&(H=0|e),n[t]=H,a(t="POW_PRECISION")&&K(e,0,m,2,t)&&(V=0|e),n[t]=V,a(t="FORMAT")&&("object"==typeof e?q=e:$&&ee(2,t+" not an object",e)),n[t]=q,n},W.max=function(){return J(arguments,z.lt)},W.min=function(){return J(arguments,z.gt)},W.random=(M=9007199254740992,k=Math.random()*M&2097151?function(){return s(Math.random()*M)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,o,a,u=0,c=[],l=new W(R);if(e=null!=e&&K(e,0,m,14)?0|e:N,o=i(e/d),G)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));u<o;)(a=131072*t[u]+(t[u+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[u]=r[0],t[u+1]=r[1]):(c.push(a%1e14),u+=2);u=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);u<o;)(a=281474976710656*(31&t[u])+1099511627776*t[u+1]+4294967296*t[u+2]+16777216*t[u+3]+(t[u+4]<<16)+(t[u+5]<<8)+t[u+6])>=9e15?crypto.randomBytes(7).copy(t,u):(c.push(a%1e14),u+=7);u=o/7}else G=!1,$&&ee(14,"crypto unavailable",crypto);if(!G)for(;u<o;)(a=k())<9e15&&(c[u++]=a%1e14);for(o=c[--u],e%=d,o&&e&&(a=p[d-e],c[u]=s(o/a)*a);0===c[u];c.pop(),u--);if(u<0)c=[n=0];else{for(n=-1;0===c[0];c.splice(0,1),n-=d);for(u=1,a=c[0];a>=10;a/=10,u++);u<d&&(n-=d-u)}return l.e=n,l.c=c,l}),r=function(){function e(e,t,r){var n,i,s,o,a=0,u=e.length,c=t%f,l=t/f|0;for(e=e.slice();u--;)a=((i=c*(s=e[u]%f)+(n=l*s+(o=e[u]/f|0)*c)%f*f+a)/r|0)+(n/f|0)+l*o,e[u]=i%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var i,s;if(r!=n)s=r>n?1:-1;else for(i=s=0;i<r;i++)if(e[i]!=t[i]){s=e[i]>t[i]?1:-1;break}return s}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,u){var c,h,p,f,m,b,g,w,_,x,v,T,O,E,M,k,j,S=n.s==i.s?1:-1,A=n.c,I=i.c;if(!(A&&A[0]&&I&&I[0]))return new W(n.s&&i.s&&(A?!I||A[0]!=I[0]:I)?A&&0==A[0]||!I?0*S:S/0:NaN);for(_=(w=new W(S)).c=[],S=o+(h=n.e-i.e)+1,u||(u=l,h=y(n.e/d)-y(i.e/d),S=S/d|0),p=0;I[p]==(A[p]||0);p++);if(I[p]>(A[p]||0)&&h--,S<0)_.push(1),f=!0;else{for(E=A.length,k=I.length,p=0,S+=2,(m=s(u/(I[0]+1)))>1&&(I=e(I,m,u),A=e(A,m,u),k=I.length,E=A.length),O=k,v=(x=A.slice(0,k)).length;v<k;x[v++]=0);j=I.slice(),j=[0].concat(j),M=I[0],I[1]>=u/2&&M++;do{if(m=0,(c=t(I,x,k,v))<0){if(T=x[0],k!=v&&(T=T*u+(x[1]||0)),(m=s(T/M))>1)for(m>=u&&(m=u-1),g=(b=e(I,m,u)).length,v=x.length;1==t(b,x,g,v);)m--,r(b,k<g?j:I,g,u),g=b.length,c=1;else 0==m&&(c=m=1),g=(b=I.slice()).length;if(g<v&&(b=[0].concat(b)),r(x,b,v,u),v=x.length,-1==c)for(;t(I,x,k,v)<1;)m++,r(x,k<v?j:I,v,u),v=x.length}else 0===c&&(m++,x=[0]);_[p++]=m,x[0]?x[v++]=A[O]||0:(x=[A[O]],v=1)}while((O++<E||null!=x[0])&&S--);f=null!=x[0],_[0]||_.splice(0,1)}if(u==l){for(p=1,S=_[0];S>=10;S/=10,p++);te(w,o+(w.e=p+h*d-1)+1,a,f)}else w.e=h,w.r=+f;return w}}(),j=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,A=/^\.([^.]+)$/,I=/^-?(Infinity|NaN)$/,P=/^\s*\+(?=[\w.])|^\s+|\s+$/g,E=function(e,t,r,n){var i,s=r?t:t.replace(P,"");if(I.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!r&&(s=s.replace(j,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,s=s.replace(S,"$1").replace(A,"0.$1")),t!=s))return new W(s,i);$&&ee(C,"not a"+(n?" base "+n:"")+" number",t),e.s=null}e.c=e.e=null,C=0},z.absoluteValue=z.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},z.ceil=function(){return te(new W(this),this.e+1,2)},z.comparedTo=z.cmp=function(e,t){return C=1,g(this,new W(e,t))},z.decimalPlaces=z.dp=function(){var e,t,r=this.c;if(!r)return null;if(e=((t=r.length-1)-y(this.e/d))*d,t=r[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},z.dividedBy=z.div=function(e,t){return C=3,r(this,new W(e,t),N,B)},z.dividedToIntegerBy=z.divToInt=function(e,t){return C=4,r(this,new W(e,t),0,1)},z.equals=z.eq=function(e,t){return C=5,0===g(this,new W(e,t))},z.floor=function(){return te(new W(this),this.e+1,3)},z.greaterThan=z.gt=function(e,t){return C=6,g(this,new W(e,t))>0},z.greaterThanOrEqualTo=z.gte=function(e,t){return C=7,1===(t=g(this,new W(e,t)))||0===t},z.isFinite=function(){return!!this.c},z.isInteger=z.isInt=function(){return!!this.c&&y(this.e/d)>this.c.length-2},z.isNaN=function(){return!this.s},z.isNegative=z.isNeg=function(){return this.s<0},z.isZero=function(){return!!this.c&&0==this.c[0]},z.lessThan=z.lt=function(e,t){return C=8,g(this,new W(e,t))<0},z.lessThanOrEqualTo=z.lte=function(e,t){return C=9,-1===(t=g(this,new W(e,t)))||0===t},z.minus=z.sub=function(e,t){var r,n,i,s,o=this,a=o.s;if(C=10,t=(e=new W(e,t)).s,!a||!t)return new W(NaN);if(a!=t)return e.s=-t,o.plus(e);var u=o.e/d,c=e.e/d,h=o.c,p=e.c;if(!u||!c){if(!h||!p)return h?(e.s=-t,e):new W(p?o:NaN);if(!h[0]||!p[0])return p[0]?(e.s=-t,e):new W(h[0]?o:3==B?-0:0)}if(u=y(u),c=y(c),h=h.slice(),a=u-c){for((s=a<0)?(a=-a,i=h):(c=u,i=p),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(s=(a=h.length)<(t=p.length))?a:t,a=t=0;t<n;t++)if(h[t]!=p[t]){s=h[t]<p[t];break}if(s&&(i=h,h=p,p=i,e.s=-e.s),(t=(n=p.length)-(r=h.length))>0)for(;t--;h[r++]=0);for(t=l-1;n>a;){if(h[--n]<p[n]){for(r=n;r&&!h[--r];h[r]=t);--h[r],h[n]+=l}h[n]-=p[n]}for(;0==h[0];h.splice(0,1),--c);return h[0]?Q(e,h,c):(e.s=3==B?-1:1,e.c=[e.e=0],e)},z.modulo=z.mod=function(e,t){var n,i,s=this;return C=11,e=new W(e,t),!s.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||s.c&&!s.c[0]?new W(s):(9==H?(i=e.s,e.s=1,n=r(s,e,0,3),e.s=i,n.s*=i):n=r(s,e,0,H),s.minus(n.times(e)))},z.negated=z.neg=function(){var e=new W(this);return e.s=-e.s||null,e},z.plus=z.add=function(e,t){var r,n=this,i=n.s;if(C=12,t=(e=new W(e,t)).s,!i||!t)return new W(NaN);if(i!=t)return e.s=-t,n.minus(e);var s=n.e/d,o=e.e/d,a=n.c,u=e.c;if(!s||!o){if(!a||!u)return new W(i/0);if(!a[0]||!u[0])return u[0]?e:new W(a[0]?n:0*i)}if(s=y(s),o=y(o),a=a.slice(),i=s-o){for(i>0?(o=s,r=u):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(t=u.length)<0&&(r=u,u=a,a=r,t=i),i=0;t;)i=(a[--t]=a[t]+u[t]+i)/l|0,a[t]=l===a[t]?0:a[t]%l;return i&&(a=[i].concat(a),++o),Q(e,a,o)},z.precision=z.sd=function(e){var t,r,n=this,i=n.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&($&&ee(13,"argument"+o,e),e!=!!e&&(e=null)),!i)return null;if(t=(r=i.length-1)*d+1,r=i[r]){for(;r%10==0;r/=10,t--);for(r=i[0];r>=10;r/=10,t++);}return e&&n.e+1>t&&(t=n.e+1),t},z.round=function(e,t){var r=new W(this);return(null==e||K(e,0,m,15))&&te(r,~~e+this.e+1,null!=t&&K(t,0,8,15,a)?0|t:B),r},z.shift=function(e){var t=this;return K(e,-9007199254740991,h,16,"argument")?t.times("1e"+O(e)):new W(t.c&&t.c[0]&&(e<-9007199254740991||e>h)?t.s*(e<0?0:1/0):t)},z.squareRoot=z.sqrt=function(){var e,t,n,i,s,o=this,a=o.c,u=o.s,c=o.e,l=N+4,d=new W("0.5");if(1!==u||!a||!a[0])return new W(!u||u<0&&(!a||a[0])?NaN:a?o:1/0);if(0==(u=Math.sqrt(+o))||u==1/0?(((t=b(a)).length+c)%2==0&&(t+="0"),u=Math.sqrt(t),c=y((c+1)/2)-(c<0||c%2),n=new W(t=u==1/0?"1e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new W(u+""),n.c[0])for((u=(c=n.e)+l)<3&&(u=0);;)if(s=n,n=d.times(s.plus(r(o,s,l,1))),b(s.c).slice(0,u)===(t=b(n.c)).slice(0,u)){if(n.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(te(n,n.e+N+2,1),e=!n.times(n).eq(o));break}if(!i&&(te(s,s.e+N+2,0),s.times(s).eq(o))){n=s;break}l+=4,u+=4,i=1}return te(n,n.e+N+1,B,e)},z.times=z.mul=function(e,t){var r,n,i,s,o,a,u,c,h,p,m,b,g,w,_,x=this,v=x.c,T=(C=17,e=new W(e,t)).c;if(!(v&&T&&v[0]&&T[0]))return!x.s||!e.s||v&&!v[0]&&!T||T&&!T[0]&&!v?e.c=e.e=e.s=null:(e.s*=x.s,v&&T?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=y(x.e/d)+y(e.e/d),e.s*=x.s,(u=v.length)<(p=T.length)&&(g=v,v=T,T=g,i=u,u=p,p=i),i=u+p,g=[];i--;g.push(0));for(w=l,_=f,i=p;--i>=0;){for(r=0,m=T[i]%_,b=T[i]/_|0,s=i+(o=u);s>i;)r=((c=m*(c=v[--o]%_)+(a=b*c+(h=v[o]/_|0)*m)%_*_+g[s]+r)/w|0)+(a/_|0)+b*h,g[s--]=c%w;g[s]=r}return r?++n:g.splice(0,1),Q(e,g,n)},z.toDigits=function(e,t){var r=new W(this);return e=null!=e&&K(e,1,m,18,"precision")?0|e:null,t=null!=t&&K(t,0,8,18,a)?0|t:B,e?te(r,e,t):r},z.toExponential=function(e,t){return Y(this,null!=e&&K(e,0,m,19)?1+~~e:null,t,19)},z.toFixed=function(e,t){return Y(this,null!=e&&K(e,0,m,20)?~~e+this.e+1:null,t,20)},z.toFormat=function(e,t){var r=Y(this,null!=e&&K(e,0,m,21)?~~e+this.e+1:null,t,21);if(this.c){var n,i=r.split("."),s=+q.groupSize,o=+q.secondaryGroupSize,a=q.groupSeparator,u=i[0],c=i[1],l=this.s<0,d=l?u.slice(1):u,h=d.length;if(o&&(n=s,s=o,o=n,h-=n),s>0&&h>0){for(n=h%s||s,u=d.substr(0,n);n<h;n+=s)u+=a+d.substr(n,s);o>0&&(u+=a+d.slice(n)),l&&(u="-"+u)}r=c?u+q.decimalSeparator+((o=+q.fractionGroupSize)?c.replace(new RegExp("\\d{"+o+"}\\B","g"),"$&"+q.fractionGroupSeparator):c):u}return r},z.toFraction=function(e){var t,n,i,s,o,a,u,c,l,h=$,f=this,m=f.c,y=new W(R),g=n=new W(R),w=u=new W(R);if(null!=e&&($=!1,a=new W(e),$=h,(h=a.isInt())&&!a.lt(R)||($&&ee(22,"max denominator "+(h?"out of range":"not an integer"),e),e=!h&&a.c&&te(a,a.e+1,1).gte(R)?a:null)),!m)return f.toString();for(l=b(m),s=y.e=l.length-f.e-1,y.c[0]=p[(o=s%d)<0?d+o:o],e=!e||a.cmp(y)>0?s>0?y:g:a,o=F,F=1/0,a=new W(l),u.c[0]=0;c=r(a,y,0,1),1!=(i=n.plus(c.times(w))).cmp(e);)n=w,w=i,g=u.plus(c.times(i=g)),u=i,y=a.minus(c.times(i=y)),a=i;return i=r(e.minus(n),w,0,1),u=u.plus(i.times(g)),n=n.plus(i.times(w)),u.s=g.s=f.s,t=r(g,w,s*=2,B).minus(f).abs().cmp(r(u,n,s,B).minus(f).abs())<1?[g.toString(),w.toString()]:[u.toString(),n.toString()],F=o,t},z.toNumber=function(){return+this},z.toPower=z.pow=function(e,t){var r,n,o,a=s(e<0?-e:+e),u=this;if(null!=t&&(C=23,t=new W(t)),!K(e,-9007199254740991,h,23,"exponent")&&(!isFinite(e)||a>h&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return r=Math.pow(+u,e),new W(t?r%t:r);for(t?e>1&&u.gt(R)&&u.isInt()&&t.gt(R)&&t.isInt()?u=u.mod(t):(o=t,t=null):V&&(r=i(V/d+2)),n=new W(R);;){if(a%2){if(!(n=n.times(u)).c)break;r?n.c.length>r&&(n.c.length=r):t&&(n=n.mod(t))}if(!(a=s(a/2)))break;u=u.times(u),r?u.c&&u.c.length>r&&(u.c.length=r):t&&(u=u.mod(t))}return t?n:(e<0&&(n=R.div(n)),o?n.mod(o):r?te(n,V,B):n)},z.toPrecision=function(e,t){return Y(this,null!=e&&K(e,1,m,24,"precision")?0|e:null,t,24)},z.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=b(r.c),t=null!=e&&K(e,2,64,25,"base")?Z(T(t,i),0|e,10,n):i<=L||i>=U?v(t,i):T(t,i),n<0&&r.c[0]&&(t="-"+t)),t},z.truncated=z.trunc=function(){return te(new W(this),this.e+1,1)},z.valueOf=z.toJSON=function(){var e,t=this,r=t.e;return null===r?t.toString():(e=b(t.c),e=r<=L||r>=U?v(e,r):T(e,r),t.s<0?"-"+e:e)},z.isBigNumber=!0,null!=t&&W.config(t),W}(),r.default=r.BigNumber=r,"function"==typeof define&&define.amd?define(function(){return r}):void 0!==t&&t.exports?t.exports=r:(e||(e="undefined"!=typeof self?self:Function("return this")()),e.BigNumber=r)}(this)}}},{package:"bignumber.js",file:"node_modules/bignumber.js/bignumber.js"}],[6486,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";(()=>{const e=Array(256).fill(-1);for(let t=0;t<58;++t)e[i.charCodeAt(t)]=t})();var s,o,a,u=e=>{if(!e||"string"!=typeof e)throw new Error(`Expected base58 string but got “${e}”`);if(e.match(/[IOl0]/gmu))throw new Error(`Invalid base58 character “${e.match(/[IOl0]/gmu)}”`);const t=e.match(/^1+/gmu),r=t?t[0].length:0,n=(e.length-r)*(Math.log(58)/Math.log(256))+1>>>0;return new Uint8Array([...new Uint8Array(r),...e.match(/.{1}/gmu).map(e=>i.indexOf(e)).reduce((e,t)=>e.map(e=>{const r=58*e+t;return t=r>>8,r}),new Uint8Array(n)).reverse().filter((s=!1,e=>s=s||e))]);var s},c=(s=function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.bech32m=t.bech32=void 0;const r="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={};for(let e=0;e<32;e++){const t=r.charAt(e);n[t]=e}function i(e){const t=e>>25;return(33554431&e)<<5^996825010&-(1&t)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function s(e){let t=1;for(let r=0;r<e.length;++r){const n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=i(t)^n>>5}t=i(t);for(let r=0;r<e.length;++r){const n=e.charCodeAt(r);t=i(t)^31&n}return t}function o(e,t,r,n){let i=0,s=0;const o=(1<<r)-1,a=[];for(let n=0;n<e.length;++n)for(i=i<<t|e[n],s+=t;s>=r;)s-=r,a.push(i>>s&o);if(n)s>0&&a.push(i<<r-s&o);else{if(s>=t)return"Excess padding";if(i<<r-s&o)return"Non-zero padding"}return a}function a(e){return o(e,8,5,!0)}function u(e){const t=o(e,5,8,!1);if(Array.isArray(t))return t}function c(e){const t=o(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}function l(e){let t;function o(e,r){if(r=r||90,e.length<8)return e+" too short";if(e.length>r)return"Exceeds length limit";const o=e.toLowerCase(),a=e.toUpperCase();if(e!==o&&e!==a)return"Mixed-case string "+e;const u=(e=o).lastIndexOf("1");if(-1===u)return"No separator character for "+e;if(0===u)return"Missing prefix for "+e;const c=e.slice(0,u),l=e.slice(u+1);if(l.length<6)return"Data too short";let d=s(c);if("string"==typeof d)return d;const h=[];for(let e=0;e<l.length;++e){const t=l.charAt(e),r=n[t];if(void 0===r)return"Unknown character "+t;d=i(d)^r,e+6>=l.length||h.push(r)}return d!==t?"Invalid checksum for "+e:{prefix:c,words:h}}return t="bech32"===e?1:734539939,{decodeUnsafe:function(e,t){const r=o(e,t);if("object"==typeof r)return r},decode:function(e,t){const r=o(e,t);if("object"==typeof r)return r;throw new Error(r)},encode:function(e,n,o){if(o=o||90,e.length+7+n.length>o)throw new TypeError("Exceeds length limit");let a=s(e=e.toLowerCase());if("string"==typeof a)throw new Error(a);let u=e+"1";for(let e=0;e<n.length;++e){const t=n[e];if(t>>5)throw new Error("Non 5-bit word");a=i(a)^t,u+=r.charAt(t)}for(let e=0;e<6;++e)a=i(a);a^=t;for(let e=0;e<6;++e)u+=r.charAt(a>>5*(5-e)&31);return u},toWords:a,fromWordsUnsafe:u,fromWords:c}}t.bech32=l("bech32"),t.bech32m=l("bech32m")},s(o={exports:{}},o.exports),o.exports);(a=c)&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")&&a.default;var l=c.bech32m,d=c.bech32;const h=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998];class p{constructor(){this.A=1779033703,this.B=-1150833019,this.C=1013904242,this.D=-1521486534,this.E=1359893119,this.F=-1694144372,this.G=528734635,this.H=1541459225,this._size=0,this._sp=0,(!m||y>=8e3)&&(m=new ArrayBuffer(8e3),y=0),this._byte=new Uint8Array(m,y,80),this._word=new Int32Array(m,y,20),y+=80}update(e){if("string"==typeof e)return this._utf8(e);if(null==e)throw new TypeError("Invalid type: "+typeof e);const t=e.byteOffset,r=e.byteLength;let n=r/64|0,i=0;if(n&&!(3&t)&&!(this._size%64)){const r=new Int32Array(e.buffer,t,16*n);for(;n--;)this._int32(r,i>>2),i+=64;this._size+=i}if(1!==e.BYTES_PER_ELEMENT&&e.buffer){const n=new Uint8Array(e.buffer,t+i,r-i);return this._uint8(n)}return i===r?this:this._uint8(e,i)}_uint8(e,t){const{_byte:r,_word:n}=this,i=e.length;for(t|=0;t<i;){const s=this._size%64;let o=s;for(;t<i&&o<64;)r[o++]=e[t++];o>=64&&this._int32(n),this._size+=o-s}return this}_utf8(e){const{_byte:t,_word:r}=this,n=e.length;let i=this._sp;for(let s=0;s<n;){const o=this._size%64;let a=o;for(;s<n&&a<64;){let r=0|e.charCodeAt(s++);r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|63&r):r<55296||r>57343?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):i?(r=((1023&i)<<10)+(1023&r)+65536,t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r,i=0):i=r}a>=64&&(this._int32(r),r[0]=r[16]),this._size+=a-o}return this._sp=i,this}_int32(e,t){let{A:r,B:n,C:i,D:s,E:o,F:a,G:u,H:c}=this,l=0;for(t|=0;l<16;)f[l++]=g(e[t++]);for(l=16;l<64;l++)f[l]=O(f[l-2])+f[l-7]+T(f[l-15])+f[l-16]|0;for(l=0;l<64;l++){const e=c+v(o)+w(o,a,u)+h[l]+f[l]|0,t=x(r)+_(r,n,i)|0;c=u,u=a,a=o,o=s+e|0,s=i,i=n,n=r,r=e+t|0}this.A=r+this.A|0,this.B=n+this.B|0,this.C=i+this.C|0,this.D=s+this.D|0,this.E=o+this.E|0,this.F=a+this.F|0,this.G=u+this.G|0,this.H=c+this.H|0}digest(e){const{_byte:t,_word:r}=this;let n=this._size%64|0;for(t[n++]=128;3&n;)t[n++]=0;if(n>>=2,n>14){for(;n<16;)r[n++]=0;n=0,this._int32(r)}for(;n<16;)r[n++]=0;const i=8*this._size,s=(4294967295&i)>>>0,o=(i-s)/4294967296;return o&&(r[14]=g(o)),s&&(r[15]=g(s)),this._int32(r),"hex"===e?this._hex():this._bin()}_hex(){const{A:e,B:t,C:r,D:n,E:i,F:s,G:o,H:a}=this;return b(e)+b(t)+b(r)+b(n)+b(i)+b(s)+b(o)+b(a)}_bin(){const{A:e,B:t,C:r,D:n,E:i,F:s,G:o,H:a,_byte:u,_word:c}=this;return c[0]=g(e),c[1]=g(t),c[2]=g(r),c[3]=g(n),c[4]=g(i),c[5]=g(s),c[6]=g(o),c[7]=g(a),u.slice(0,32)}}const f=new Int32Array(64);let m,y=0;const b=e=>(e+4294967296).toString(16).substr(-8),g=254===new Uint8Array(new Uint16Array([65279]).buffer)[0]?e=>e:e=>e<<24&4278190080|e<<8&16711680|e>>8&65280|e>>24&255,w=(e,t,r)=>r^e&(t^r),_=(e,t,r)=>e&t|r&(e|t),x=e=>(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),v=e=>(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7),T=e=>(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,O=e=>(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10;var E,M,k=function(e){return(new p).update(e).digest()};r.Network=void 0,(E=r.Network||(r.Network={})).mainnet="mainnet",E.testnet="testnet",E.regtest="regtest",r.AddressType=void 0,(M=r.AddressType||(r.AddressType={})).p2pkh="p2pkh",M.p2sh="p2sh",M.p2wpkh="p2wpkh",M.p2wsh="p2wsh",M.p2tr="p2tr";var j={0:{type:r.AddressType.p2pkh,network:r.Network.mainnet},111:{type:r.AddressType.p2pkh,network:r.Network.testnet},5:{type:r.AddressType.p2sh,network:r.Network.mainnet},196:{type:r.AddressType.p2sh,network:r.Network.testnet}},S=function(e){var t,i=e.substr(0,2).toLowerCase();if("bc"===i||"tb"===i)return function(e){var t;try{t=e.startsWith("bc1p")||e.startsWith("tb1p")||e.startsWith("bcrt1p")?l.decode(e):d.decode(e)}catch(e){throw new Error("Invalid address")}var n={bc:r.Network.mainnet,tb:r.Network.testnet,bcrt:r.Network.regtest}[t.prefix];if(void 0===n)throw new Error("Invalid address");var i=t.words[0];if(i<0||i>16)throw new Error("Invalid address");return{bech32:!0,network:n,address:e,type:20===d.fromWords(t.words.slice(1)).length?r.AddressType.p2wpkh:1===i?r.AddressType.p2tr:r.AddressType.p2wsh}}(e);try{t=u(e)}catch(e){throw new Error("Invalid address")}var s=t.length;if(25!==s)throw new Error("Invalid address");var o=t[0],a=t.slice(s-4,s),c=t.slice(0,s-4),h=k(k(c)).slice(0,4);if(a.some(function(e,t){return e!==h[t]}))throw new Error("Invalid address");if(!Object.keys(j).map(Number).includes(o))throw new Error("Invalid address");return n(n({},j[o]),{address:e,bech32:!1})},A=function(e,t){try{var r=S(e);return!t||t===r.network}catch(e){return!1}};r.default=A,r.getAddressInfo=S,r.validate=A}}},{package:"bitcoin-address-validation",file:"node_modules/bitcoin-address-validation/lib/index.cjs.js"}],[6491,{buffer:6494},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(t,r){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function s(e,t,r){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"==typeof t?t.exports=s:r.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function u(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function c(e,t,r,i){for(var s=0,o=0,a=Math.min(e.length,r),u=t;u<a;u++){var c=e.charCodeAt(u)-48;s*=i,o=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&o<i,"Invalid character"),s+=o}return s}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(s.isBN=function(e){return e instanceof s||null!==e&&"object"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return e.cmp(t)<0?e:t},s.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},s.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},s.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var s,o,a=0;if("be"===r)for(i=e.length-1,s=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,s=0,o=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<s,this.words[o]|=67108863&i,s>=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<s,this.words[o]|=67108863&i,s>=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var s=e.length-r,o=s%n,a=Math.min(s,s-o)+r,u=0,l=r;l<a;l+=n)u=c(e,l,l+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var d=1;for(u=c(e,l,e.length,t),l=0;l<o;l++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},s.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype._move=function(e){l(e,this)},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){s.prototype.inspect=d}else s.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,s=0,o=0;o<this.length;o++){var a=this.words[o],u=(16777215&(a<<i|s)).toString(16);s=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==s&&(r=s.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=p[e],l=f[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(l).toString(e);r=(d=d.idivn(l)).isZero()?m+r:h[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],s=0|t.words[0],o=i*s,a=67108863&o,u=o/67108864|0;r.words[0]=a;for(var c=1;c<n;c++){for(var l=u>>>26,d=67108863&u,h=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=h;p++){var f=c-p|0;l+=(o=(i=0|e.words[f])*(s=0|t.words[p])+d)/67108864|0,d=67108863&o}r.words[c]=0|d,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}s.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,s);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|n;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===s?(r<e.length&&(e[r++]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},s.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|n;e[r--]=255&o,r>=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===s?(r>=0&&(e[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},s.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},s.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},s.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},s.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,s=0;s<n.length;s++)t=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=67108863&t,i=t>>>26;for(;0!==i&&s<r.length;s++)t=(0|r.words[s])+i,this.words[s]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var s=0,o=0;o<n.length;o++)s=(t=(0|r.words[o])-(0|n.words[o])+s)>>26,this.words[o]=67108863&t;for(;0!==s&&o<r.length;o++)s=(t=(0|r.words[o])+s)>>26,this.words[o]=67108863&t;if(0===s&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,r){var n,i,s,o=e.words,a=t.words,u=r.words,c=0,l=0|o[0],d=8191&l,h=l>>>13,p=0|o[1],f=8191&p,m=p>>>13,y=0|o[2],b=8191&y,g=y>>>13,w=0|o[3],_=8191&w,x=w>>>13,v=0|o[4],T=8191&v,O=v>>>13,E=0|o[5],M=8191&E,k=E>>>13,j=0|o[6],S=8191&j,A=j>>>13,I=0|o[7],P=8191&I,C=I>>>13,z=0|o[8],R=8191&z,N=z>>>13,B=0|o[9],L=8191&B,U=B>>>13,D=0|a[0],F=8191&D,$=D>>>13,K=0|a[1],G=8191&K,H=K>>>13,V=0|a[2],q=8191&V,W=V>>>13,Z=0|a[3],Y=8191&Z,J=Z>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],se=8191&ie,oe=ie>>>13,ae=0|a[7],ue=8191&ae,ce=ae>>>13,le=0|a[8],de=8191&le,he=le>>>13,pe=0|a[9],fe=8191&pe,me=pe>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(c+(n=Math.imul(d,F))|0)+((8191&(i=(i=Math.imul(d,$))+Math.imul(h,F)|0))<<13)|0;c=((s=Math.imul(h,$))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(f,F),i=(i=Math.imul(f,$))+Math.imul(m,F)|0,s=Math.imul(m,$);var be=(c+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,H)|0)+Math.imul(h,G)|0))<<13)|0;c=((s=s+Math.imul(h,H)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,F),i=(i=Math.imul(b,$))+Math.imul(g,F)|0,s=Math.imul(g,$),n=n+Math.imul(f,G)|0,i=(i=i+Math.imul(f,H)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,H)|0;var ge=(c+(n=n+Math.imul(d,q)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(h,q)|0))<<13)|0;c=((s=s+Math.imul(h,W)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(_,F),i=(i=Math.imul(_,$))+Math.imul(x,F)|0,s=Math.imul(x,$),n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,H)|0)+Math.imul(g,G)|0,s=s+Math.imul(g,H)|0,n=n+Math.imul(f,q)|0,i=(i=i+Math.imul(f,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var we=(c+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(h,Y)|0))<<13)|0;c=((s=s+Math.imul(h,J)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,$))+Math.imul(O,F)|0,s=Math.imul(O,$),n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(x,G)|0,s=s+Math.imul(x,H)|0,n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(g,q)|0,s=s+Math.imul(g,W)|0,n=n+Math.imul(f,Y)|0,i=(i=i+Math.imul(f,J)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,J)|0;var _e=(c+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Q)|0))<<13)|0;c=((s=s+Math.imul(h,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(M,F),i=(i=Math.imul(M,$))+Math.imul(k,F)|0,s=Math.imul(k,$),n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,H)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,H)|0,n=n+Math.imul(_,q)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(x,q)|0,s=s+Math.imul(x,W)|0,n=n+Math.imul(b,Y)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(g,Y)|0,s=s+Math.imul(g,J)|0,n=n+Math.imul(f,Q)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,ee)|0;var xe=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((s=s+Math.imul(h,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,$))+Math.imul(A,F)|0,s=Math.imul(A,$),n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(k,G)|0,s=s+Math.imul(k,H)|0,n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(O,q)|0,s=s+Math.imul(O,W)|0,n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(x,Y)|0,s=s+Math.imul(x,J)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(g,Q)|0,s=s+Math.imul(g,ee)|0,n=n+Math.imul(f,re)|0,i=(i=i+Math.imul(f,ne)|0)+Math.imul(m,re)|0,s=s+Math.imul(m,ne)|0;var ve=(c+(n=n+Math.imul(d,se)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(h,se)|0))<<13)|0;c=((s=s+Math.imul(h,oe)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(P,F),i=(i=Math.imul(P,$))+Math.imul(C,F)|0,s=Math.imul(C,$),n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,H)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,H)|0,n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(k,q)|0,s=s+Math.imul(k,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(O,Y)|0,s=s+Math.imul(O,J)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(x,Q)|0,s=s+Math.imul(x,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(g,re)|0,s=s+Math.imul(g,ne)|0,n=n+Math.imul(f,se)|0,i=(i=i+Math.imul(f,oe)|0)+Math.imul(m,se)|0,s=s+Math.imul(m,oe)|0;var Te=(c+(n=n+Math.imul(d,ue)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((s=s+Math.imul(h,ce)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(R,F),i=(i=Math.imul(R,$))+Math.imul(N,F)|0,s=Math.imul(N,$),n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,H)|0,n=n+Math.imul(S,q)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(k,Y)|0,s=s+Math.imul(k,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(O,Q)|0,s=s+Math.imul(O,ee)|0,n=n+Math.imul(_,re)|0,i=(i=i+Math.imul(_,ne)|0)+Math.imul(x,re)|0,s=s+Math.imul(x,ne)|0,n=n+Math.imul(b,se)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(g,se)|0,s=s+Math.imul(g,oe)|0,n=n+Math.imul(f,ue)|0,i=(i=i+Math.imul(f,ce)|0)+Math.imul(m,ue)|0,s=s+Math.imul(m,ce)|0;var Oe=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((s=s+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,F),i=(i=Math.imul(L,$))+Math.imul(U,F)|0,s=Math.imul(U,$),n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,H)|0)+Math.imul(N,G)|0,s=s+Math.imul(N,H)|0,n=n+Math.imul(P,q)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(O,re)|0,s=s+Math.imul(O,ne)|0,n=n+Math.imul(_,se)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(x,se)|0,s=s+Math.imul(x,oe)|0,n=n+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(g,ue)|0,s=s+Math.imul(g,ce)|0,n=n+Math.imul(f,de)|0,i=(i=i+Math.imul(f,he)|0)+Math.imul(m,de)|0,s=s+Math.imul(m,he)|0;var Ee=(c+(n=n+Math.imul(d,fe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,fe)|0))<<13)|0;c=((s=s+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,G),i=(i=Math.imul(L,H))+Math.imul(U,G)|0,s=Math.imul(U,H),n=n+Math.imul(R,q)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(N,q)|0,s=s+Math.imul(N,W)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(C,Y)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(k,re)|0,s=s+Math.imul(k,ne)|0,n=n+Math.imul(T,se)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(O,se)|0,s=s+Math.imul(O,oe)|0,n=n+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(x,ue)|0,s=s+Math.imul(x,ce)|0,n=n+Math.imul(b,de)|0,i=(i=i+Math.imul(b,he)|0)+Math.imul(g,de)|0,s=s+Math.imul(g,he)|0;var Me=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;c=((s=s+Math.imul(m,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,W))+Math.imul(U,q)|0,s=Math.imul(U,W),n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(N,Y)|0,s=s+Math.imul(N,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(A,re)|0,s=s+Math.imul(A,ne)|0,n=n+Math.imul(M,se)|0,i=(i=i+Math.imul(M,oe)|0)+Math.imul(k,se)|0,s=s+Math.imul(k,oe)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(O,ue)|0,s=s+Math.imul(O,ce)|0,n=n+Math.imul(_,de)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(x,de)|0,s=s+Math.imul(x,he)|0;var ke=(c+(n=n+Math.imul(b,fe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(g,fe)|0))<<13)|0;c=((s=s+Math.imul(g,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,J))+Math.imul(U,Y)|0,s=Math.imul(U,J),n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,Q)|0,s=s+Math.imul(N,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(C,re)|0,s=s+Math.imul(C,ne)|0,n=n+Math.imul(S,se)|0,i=(i=i+Math.imul(S,oe)|0)+Math.imul(A,se)|0,s=s+Math.imul(A,oe)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(k,ue)|0,s=s+Math.imul(k,ce)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(O,de)|0,s=s+Math.imul(O,he)|0;var je=(c+(n=n+Math.imul(_,fe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(x,fe)|0))<<13)|0;c=((s=s+Math.imul(x,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,Q),i=(i=Math.imul(L,ee))+Math.imul(U,Q)|0,s=Math.imul(U,ee),n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(N,re)|0,s=s+Math.imul(N,ne)|0,n=n+Math.imul(P,se)|0,i=(i=i+Math.imul(P,oe)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,oe)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(A,ue)|0,s=s+Math.imul(A,ce)|0,n=n+Math.imul(M,de)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(k,de)|0,s=s+Math.imul(k,he)|0;var Se=(c+(n=n+Math.imul(T,fe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(O,fe)|0))<<13)|0;c=((s=s+Math.imul(O,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(U,re)|0,s=Math.imul(U,ne),n=n+Math.imul(R,se)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(N,se)|0,s=s+Math.imul(N,oe)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(C,ue)|0,s=s+Math.imul(C,ce)|0,n=n+Math.imul(S,de)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(A,de)|0,s=s+Math.imul(A,he)|0;var Ae=(c+(n=n+Math.imul(M,fe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(k,fe)|0))<<13)|0;c=((s=s+Math.imul(k,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,se),i=(i=Math.imul(L,oe))+Math.imul(U,se)|0,s=Math.imul(U,oe),n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(N,ue)|0,s=s+Math.imul(N,ce)|0,n=n+Math.imul(P,de)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(C,de)|0,s=s+Math.imul(C,he)|0;var Ie=(c+(n=n+Math.imul(S,fe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(A,fe)|0))<<13)|0;c=((s=s+Math.imul(A,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(U,ue)|0,s=Math.imul(U,ce),n=n+Math.imul(R,de)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(N,de)|0,s=s+Math.imul(N,he)|0;var Pe=(c+(n=n+Math.imul(P,fe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(C,fe)|0))<<13)|0;c=((s=s+Math.imul(C,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,de),i=(i=Math.imul(L,he))+Math.imul(U,de)|0,s=Math.imul(U,he);var Ce=(c+(n=n+Math.imul(R,fe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(N,fe)|0))<<13)|0;c=((s=s+Math.imul(N,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863;var ze=(c+(n=Math.imul(L,fe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,fe)|0))<<13)|0;return c=((s=Math.imul(U,me))+(i>>>13)|0)+(ze>>>26)|0,ze&=67108863,u[0]=ye,u[1]=be,u[2]=ge,u[3]=we,u[4]=_e,u[5]=xe,u[6]=ve,u[7]=Te,u[8]=Oe,u[9]=Ee,u[10]=Me,u[11]=ke,u[12]=je,u[13]=Se,u[14]=Ae,u[15]=Ie,u[16]=Pe,u[17]=Ce,u[18]=ze,0!==c&&(u[19]=c,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var o=i;i=0;for(var a=67108863&n,u=Math.min(s,t.length-1),c=Math.max(0,s-e.length+1);c<=u;c++){var l=s-c,d=(0|e.words[l])*(0|t.words[c]),h=67108863&d;a=67108863&(h=h+a|0),i+=(o=(o=o+(d/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function g(e,t,r){return b(e,t,r)}function w(e,t){this.x=e,this.y=t}Math.imul||(y=m),s.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):r<63?m(this,e,t):r<1024?b(this,e,t):g(this,e,t)},w.prototype.makeRBT=function(e){for(var t=new Array(e),r=s.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},w.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},w.prototype.permute=function(e,t,r,n,i,s){for(var o=0;o<s;o++)n[o]=t[e[o]],i[o]=r[e[o]]},w.prototype.transform=function(e,t,r,n,i,s){this.permute(s,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,u=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var d=u,h=c,p=0;p<o;p++){var f=r[l+p],m=n[l+p],y=r[l+p+o],b=n[l+p+o],g=d*y-h*b;b=d*b+h*y,y=g,r[l+p]=f+y,n[l+p]=m+b,r[l+p+o]=f-y,n[l+p+o]=m-b,p!==a&&(g=u*d-c*h,h=u*h+c*d,d=g)}},w.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},w.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},w.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},w.prototype.convert13b=function(e,t,r,i){for(var s=0,o=0;o<t;o++)s+=0|e[o],r[2*o]=8191&s,s>>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===s),n(!(-8192&s))},w.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},w.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),s=this.stub(n),o=new Array(n),a=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),d=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,c,n),this.transform(o,s,a,u,n,i),this.transform(c,s,l,d,n,i);for(var p=0;p<n;p++){var f=a[p]*l[p]-u[p]*d[p];u[p]=a[p]*d[p]+u[p]*l[p],a[p]=f}return this.conjugate(a,u,n),this.transform(a,u,h,s,n,i),this.conjugate(h,s,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},s.prototype.mul=function(e){var t=new s(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},s.prototype.mulf=function(e){var t=new s(null);return t.words=new Array(this.length+e.length),g(this,e,t)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var s=(0|this.words[i])*e,o=(67108863&s)+(67108863&r);r>>=26,r+=s/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new s(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&s,u=(0|this.words[t])-a<<r;this.words[t]=u|o,o=a>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},s.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<<s,u=r;if(i-=o,i=Math.max(0,i),u){for(var c=0;c<o;c++)u.words[c]=this.words[c];u.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var d=0|this.words[c];this.words[c]=l<<26-s|d>>>s,l=d&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},s.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,t,r){var i,s,o=e.length+r;this._expand(o);var a=0;for(i=0;i<e.length;i++){s=(0|this.words[i+r])+a;var u=(0|e.words[i])*t;a=((s-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&s}for(;i<this.length-r;i++)a=(s=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(s=-(0|this.words[i])+a)>>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new s(null)).length=u+1,a.words=new Array(a.length);for(var c=0;c<a.length;c++)a.words[c]=0}var l=n.clone()._ishlnsubmul(i,1,u);0===l.negative&&(n=l,a&&(a.words[u]=1));for(var d=u-1;d>=0;d--){var h=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);a&&(a.words[d]=h)}return a&&a._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new s(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,o,a},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%e;return t?-i:i},s.prototype.modn=function(e){return this.modrn(e)},s.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/e|0,r=s%e}return this._strip(),t?this.ineg():this},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new s(1),o=new s(0),a=new s(0),u=new s(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var h=0,p=1;0===(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0===(r.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(d)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),o.isub(u)):(r.isub(t),a.isub(i),u.isub(o))}return{a:a,b:u,gcd:r.iushln(c)}},s.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new s(1),a=new s(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0===(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var d=0,h=1;0===(r.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(r.iushrn(d);d-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(a)):(r.isub(t),a.isub(o))}return(i=0===t.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(e),i},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var s=t;t=r,r=s}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,o=r;0!==s&&o<this.length;o++){var a=0|this.words[o];s=(a+=s)>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},s.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return-1===this.cmpn(e)},s.prototype.lt=function(e){return-1===this.cmp(e)},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new M(e)},s.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function O(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip!==undefined?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(v,x),v.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var s=e.words[9];for(t.words[t.length++]=s&r,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&r)<<4|s>>>22,s=o}s>>>=22,e.words[i-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(T,x),i(O,x),i(E,x),E.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){if(_[e])return _[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new T;else if("p192"===e)t=new O;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new E}return _[e]=t,t},M.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new s(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new s(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var d=this.pow(l,i),h=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),f=o;0!==p.cmp(a);){for(var m=p,y=0;0!==m.cmp(a);y++)m=m.redSqr();n(y<f);var b=this.pow(d,new s(1).iushln(f-y-1));h=h.redMul(b),d=b.redSqr(),p=p.redMul(d),f=y}return h},M.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},M.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new s(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,a=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var d=c>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++a||0===n&&0===l)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}u=26}return i},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new k(e)},i(k,M),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)}}},{package:"ethereumjs-util>bn.js",file:"node_modules/bn.js/lib/bn.js"}],[6492,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i;n=this,i=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),s=e.getVersionPrecision(r),o=Math.max(i,s),a=0,u=e.map([t,r],function(t){var r=o-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(n&&(a=o-Math.min(i,s)),o-=1;o>=a;){if(u[0][o]>u[1][o])return 1;if(u[0][o]===u[1][o]){if(o===a)return 0;o-=1}else if(u[0][o]<u[1][o])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];if(Object.assign)return Object.assign.apply(Object,[e].concat(s));var a=function(){var e=s[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){n[t]=e[t]})};for(t=0,r=s.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},s=r(18);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){}var t,r;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,(r=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}])&&o(t,r),e}();t.default=a,e.exports=t.default},91:function(e,t,r){t.__esModule=!0,t.default=void 0;var n=u(r(92)),i=u(r(93)),s=u(r(94)),o=u(r(95)),a=u(r(17));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},s=0;if(Object.keys(e).forEach(function(t){var o=e[t];"string"==typeof o?(i[t]=o,s+=1):"object"==typeof o&&(r[t]=o,n+=1)}),n>0){var o=Object.keys(r),u=a.default.find(o,function(e){return t.isOS(e)});if(u){var c=this.satisfies(r[u]);if(void 0!==c)return c}var l=a.default.find(o,function(e){return t.isPlatform(e)});if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}}if(s>0){var h=Object.keys(i),p=a.default.find(h,function(e){return t.isBrowser(e,!0)});if(void 0!==p)return this.compareVersion(i[p])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=a.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=c,e.exports=t.default},92:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,o=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=o,e.exports=t.default},93:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),o=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:s.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:s.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:s.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:s.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.PlayStation4,version:t}}}];t.default=o,e.exports=t.default},94:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),o=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];t.default=o,e.exports=t.default},95:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18),o=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=o,e.exports=t.default}})},"object"==typeof r&&"object"==typeof t?t.exports=i():"function"==typeof define&&define.amd?define([],i):"object"==typeof r?r.bowser=i():n.bowser=i()}}},{package:"bowser",file:"node_modules/bowser/es5.js"}],[6493,{crypto:6494},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;function i(e){this.rand=e}if(t.exports=function(e){return n||(n=new i(null)),n.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var s=e("crypto");if("function"!=typeof s.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return s.randomBytes(e)}}catch(e){}}}},{package:"@toruslabs/eccrypto>elliptic>brorand",file:"node_modules/brorand/index.js"}],[6494,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){}}},{package:"browserify>browser-resolve",file:"node_modules/browser-resolve/empty.js"}],[6495,{"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function s(e){for(;0<e.length;e++)e[0]=0}function o(e,t,r,n,i){for(var s,o,a,u,c=r[0],l=r[1],d=r[2],h=r[3],p=e[0]^t[0],f=e[1]^t[1],m=e[2]^t[2],y=e[3]^t[3],b=4,g=1;g<i;g++)s=c[p>>>24]^l[f>>>16&255]^d[m>>>8&255]^h[255&y]^t[b++],o=c[f>>>24]^l[m>>>16&255]^d[y>>>8&255]^h[255&p]^t[b++],a=c[m>>>24]^l[y>>>16&255]^d[p>>>8&255]^h[255&f]^t[b++],u=c[y>>>24]^l[p>>>16&255]^d[f>>>8&255]^h[255&m]^t[b++],p=s,f=o,m=a,y=u;return s=(n[p>>>24]<<24|n[f>>>16&255]<<16|n[m>>>8&255]<<8|n[255&y])^t[b++],o=(n[f>>>24]<<24|n[m>>>16&255]<<16|n[y>>>8&255]<<8|n[255&p])^t[b++],a=(n[m>>>24]<<24|n[y>>>16&255]<<16|n[p>>>8&255]<<8|n[255&f])^t[b++],u=(n[y>>>24]<<24|n[p>>>16&255]<<16|n[f>>>8&255]<<8|n[255&m])^t[b++],[s>>>=0,o>>>=0,a>>>=0,u>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],s=[[],[],[],[]],o=0,a=0,u=0;u<256;++u){var c=a^a<<1^a<<2^a<<3^a<<4;c=c>>>8^255&c^99,r[o]=c,n[c]=o;var l=e[o],d=e[l],h=e[d],p=257*e[c]^16843008*c;i[0][o]=p<<24|p>>>8,i[1][o]=p<<16|p>>>16,i[2][o]=p<<8|p>>>24,i[3][o]=p,p=16843009*h^65537*d^257*l^16843008*o,s[0][c]=p<<24|p>>>8,s[1][c]=p<<16|p>>>16,s[2][c]=p<<8|p>>>24,s[3][c]=p,0===o?o=a=1:(o=l^e[e[e[h^l]]],a^=e[e[a]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:s}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],s=0;s<t;s++)i[s]=e[s];for(s=t;s<n;s++){var o=i[s-1];s%t===0?(o=o<<8|o>>>24,o=u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o],o^=a[s/t|0]<<24):t>6&&s%t===4&&(o=u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o]),i[s]=i[s-t]^o}for(var c=[],l=0;l<n;l++){var d=n-l,h=i[d-(l%4?0:4)];c[l]=l<4||d<=4?h:u.INV_SUB_MIX[0][u.SBOX[h>>>24]]^u.INV_SUB_MIX[1][u.SBOX[h>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[h>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),s=n.allocUnsafe(16);return s.writeUInt32BE(r[0],0),s.writeUInt32BE(r[3],4),s.writeUInt32BE(r[2],8),s.writeUInt32BE(r[1],12),s},c.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},t.exports.AES=c}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/aes.js"}],[6496,{"./aes":6495,"./ghash":6500,"./incr32":6501,"buffer-xor":6551,"cipher-base":6589,inherits:7144,"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./aes"),i=e("safe-buffer").Buffer,s=e("cipher-base"),o=e("inherits"),a=e("./ghash"),u=e("buffer-xor"),c=e("./incr32");function l(e,t,r,o){s.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(t);var l=this._cipher.encryptBlock(u);this._ghash=new a(l),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new a(r),s=t.length,o=s%16;n.update(t),o&&(o=16-o,n.update(i.alloc(o,0))),n.update(i.alloc(8,0));var u=8*s,l=i.alloc(8);l.writeUIntBE(u,0,8),n.update(l),e._finID=n.state;var d=i.from(e._finID);return c(d),d}(this,r,l),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(l,s),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},l.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=l}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/authCipher.js"}],[6497,{"./decrypter":6498,"./encrypter":6499,"./modes/list.json":6509},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./encrypter"),i=e("./decrypter"),s=e("./modes/list.json");r.createCipher=r.Cipher=n.createCipher,r.createCipheriv=r.Cipheriv=n.createCipheriv,r.createDecipher=r.Decipher=i.createDecipher,r.createDecipheriv=r.Decipheriv=i.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(s)}}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/browser.js"}],[6498,{"./aes":6495,"./authCipher":6496,"./modes":6508,"./streamCipher":6511,"cipher-base":6589,evp_bytestokey:6851,inherits:7144,"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./authCipher"),i=e("safe-buffer").Buffer,s=e("./modes"),o=e("./streamCipher"),a=e("cipher-base"),u=e("./aes"),c=e("evp_bytestokey");function l(e,t,r){a.call(this),this._cache=new d,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function h(e,t,r){var a=s[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new o(a.module,t,r,!0):"auth"===a.type?new n(a.module,t,r,!0):new l(a.module,t,r)}e("inherits")(l,a),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=s[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},r.createDecipheriv=h}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/decrypter.js"}],[6499,{"./aes":6495,"./authCipher":6496,"./modes":6508,"./streamCipher":6511,"cipher-base":6589,evp_bytestokey:6851,inherits:7144,"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./modes"),i=e("./authCipher"),s=e("safe-buffer").Buffer,o=e("./streamCipher"),a=e("cipher-base"),u=e("./aes"),c=e("evp_bytestokey");function l(e,t,r){a.call(this),this._cache=new h,this._cipher=new u.AES(t),this._prev=s.from(r),this._mode=e,this._autopadding=!0}e("inherits")(l,a),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return s.concat(n)};var d=s.alloc(16,16);function h(){this.cache=s.allocUnsafe(0)}function p(e,t,r){var a=n[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=s.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=s.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===a.type?new o(a.module,t,r):"auth"===a.type?new i(a.module,t,r):new l(a.module,t,r)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=s.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=s.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return s.concat([this.cache,t])},r.createCipheriv=p,r.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);return p(e,i.key,i.iv)}}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/encrypter.js"}],[6500,{"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=n.alloc(16,0);function s(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(!!(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=!!(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=s(i)},o.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(s([0,e,0,t])),this.state},t.exports=o}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/ghash.js"}],[6501,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/incr32.js"}],[6502,{"buffer-xor":6551},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("buffer-xor");r.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/modes/cbc.js"}],[6503,{"buffer-xor":6551,"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=e("buffer-xor");function s(e,t,r){var s=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(s),e._prev=n.concat([e._prev,r?t:o]),o}r.encrypt=function(e,t,r){for(var i,o=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){o=n.concat([o,s(e,t,r)]);break}i=e._cache.length,o=n.concat([o,s(e,t.slice(0,i),r)]),t=t.slice(i)}return o}}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/modes/cfb.js"}],[6504,{"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer;function i(e,t,r){for(var n,i,o=-1,a=0;++o<8;)n=t&1<<7-o?128:0,a+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>o%8,e._prev=s(e._prev,r?n:i);return a}function s(e,t){var r=e.length,i=-1,s=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)s[i]=e[i]<<1|e[i+1]>>7;return s}r.encrypt=function(e,t,r){for(var s=t.length,o=n.allocUnsafe(s),a=-1;++a<s;)o[a]=i(e,t[a],r);return o}}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/modes/cfb1.js"}],[6505,{"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}r.encrypt=function(e,t,r){for(var s=t.length,o=n.allocUnsafe(s),a=-1;++a<s;)o[a]=i(e,t[a],r);return o}}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/modes/cfb8.js"}],[6506,{"../incr32":6501,"buffer-xor":6551,"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("buffer-xor"),i=e("safe-buffer").Buffer,s=e("../incr32");function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return s(e._prev),t}r.encrypt=function(e,t){var r=Math.ceil(t.length/16),s=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var a=0;a<r;a++){var u=o(e),c=s+16*a;e._cache.writeUInt32BE(u[0],c+0),e._cache.writeUInt32BE(u[1],c+4),e._cache.writeUInt32BE(u[2],c+8),e._cache.writeUInt32BE(u[3],c+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,l)}}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/modes/ctr.js"}],[6507,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/modes/ecb.js"}],[6508,{"./cbc":6502,"./cfb":6503,"./cfb1":6504,"./cfb8":6505,"./ctr":6506,"./ecb":6507,"./list.json":6509,"./ofb":6510},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var s in i)i[s].module=n[i[s].mode];t.exports=i}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/modes/index.js"}],[6509,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/modes/list.json"}],[6510,{buffer:6542,"buffer-xor":6551},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=e("buffer-xor");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}r.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var s=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,s)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/modes/ofb.js"}],[6511,{"./aes":6495,"cipher-base":6589,inherits:7144,"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./aes"),i=e("safe-buffer").Buffer,s=e("cipher-base");function o(e,t,r,o){s.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}e("inherits")(o,s),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o}}},{package:"ethereumjs-util>ethereum-cryptography>browserify-aes",file:"node_modules/browserify-aes/streamCipher.js"}],[6512,{"browserify-aes/browser":6497,"browserify-aes/modes":6508,"browserify-des":6513,"browserify-des/modes":6514,evp_bytestokey:6851},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("browserify-des"),i=e("browserify-aes/browser"),s=e("browserify-aes/modes"),o=e("browserify-des/modes"),a=e("evp_bytestokey");function u(e,t,r){if(e=e.toLowerCase(),s[e])return i.createCipheriv(e,t,r);if(o[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),s[e])return i.createDecipheriv(e,t,r);if(o[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),s[e])r=s[e].key,n=s[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");r=8*o[e].key,n=o[e].iv}var i=a(t,!1,r,n);return u(e,i.key,i.iv)},r.createCipheriv=r.Cipheriv=u,r.createDecipher=r.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),s[e])r=s[e].key,n=s[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");r=8*o[e].key,n=o[e].iv}var i=a(t,!1,r,n);return c(e,i.key,i.iv)},r.createDecipheriv=r.Decipheriv=c,r.listCiphers=r.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}}}},{package:"crypto-browserify>browserify-cipher",file:"node_modules/browserify-cipher/browser.js"}],[6513,{buffer:6542,"cipher-base":6589,"des.js":6711,inherits:7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n=e("cipher-base"),i=e("des.js"),s=e("inherits"),o={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function a(e){n.call(this);var t,i=e.mode.toLowerCase(),s=o[i];t=e.decrypt?"decrypt":"encrypt";var a=e.key;"des-ede"!==i&&"des-ede-cbc"!==i||(a=r.concat([a,a.slice(0,8)]));var u=e.iv;this._des=s.create({key:a,iv:u,type:t})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],t.exports=a,s(a,n),a.prototype._update=function(e){return new r(this._des.update(e))},a.prototype._final=function(){return new r(this._des.final())}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"crypto-browserify>browserify-cipher>browserify-des",file:"node_modules/browserify-des/index.js"}],[6514,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}}}},{package:"crypto-browserify>browserify-cipher>browserify-des",file:"node_modules/browserify-des/modes.js"}],[6515,{"bn.js":6491,randombytes:7819,"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("bn.js"),i=e("randombytes"),s=e("safe-buffer").Buffer;function o(e){var t,r=e.modulus.byteLength();do{t=new n(i(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,t){var r=function(e){var t=o(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),i=t.modulus.byteLength(),a=new n(e).mul(r.blinder).umod(t.modulus),u=a.toRed(n.mont(t.prime1)),c=a.toRed(n.mont(t.prime2)),l=t.coefficient,d=t.prime1,h=t.prime2,p=u.redPow(t.exponent1).fromRed(),f=c.redPow(t.exponent2).fromRed(),m=p.isub(f).imul(l).umod(d).imul(h);return f.iadd(m).imul(r.unblinder).umod(t.modulus).toArrayLike(s,"be",i)}a.getr=o,t.exports=a}}},{package:"crypto-browserify>public-encrypt>browserify-rsa",file:"node_modules/browserify-rsa/index.js"}],[6516,{"./browser/algorithms.json":6517},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("./browser/algorithms.json")}}},{package:"crypto-browserify>browserify-sign",file:"node_modules/browserify-sign/algos.js"}],[6517,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}}},{package:"crypto-browserify>browserify-sign",file:"node_modules/browserify-sign/browser/algorithms.json"}],[6518,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}}},{package:"crypto-browserify>browserify-sign",file:"node_modules/browserify-sign/browser/curves.json"}],[6519,{"./algorithms.json":6517,"./sign":6520,"./verify":6521,"create-hash":6653,inherits:7144,"readable-stream":6532,"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=e("create-hash"),s=e("readable-stream"),o=e("inherits"),a=e("./sign"),u=e("./verify"),c=e("./algorithms.json");function l(e){s.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){s.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new l(e)}function p(e){return new d(e)}Object.keys(c).forEach(function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),o(l,s.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},l.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=a(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},o(d,s.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},d.prototype.verify=function(e,t,r){var i="string"==typeof t?n.from(t,r):t;this.end();var s=this._hash.digest();return u(i,s,e,this._signType,this._tag)},t.exports={Sign:h,Verify:p,createSign:h,createVerify:p}}}},{package:"crypto-browserify>browserify-sign",file:"node_modules/browserify-sign/browser/index.js"}],[6520,{"./curves.json":6518,"bn.js":6491,"browserify-rsa":6515,"create-hmac":6655,elliptic:6729,"parse-asn1":7720,"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=e("create-hmac"),s=e("browserify-rsa"),o=e("elliptic").ec,a=e("bn.js"),u=e("parse-asn1"),c=e("./curves.json");function l(e,t,r,s){if((e=n.from(e.toArray())).length<t.byteLength()){var o=n.alloc(t.byteLength()-e.length);e=n.concat([o,e])}var a=r.length,u=function(e,t){e=d(e,t),e=e.mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}(r,t),c=n.alloc(a);c.fill(1);var l=n.alloc(a);return l=i(s,l).update(c).update(n.from([0])).update(e).update(u).digest(),c=i(s,l).update(c).digest(),{k:l=i(s,l).update(c).update(n.from([1])).update(e).update(u).digest(),v:c=i(s,l).update(c).digest()}}function d(e,t){var r=new a(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function h(e,t,r){var s,o;do{for(s=n.alloc(0);8*s.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),s=n.concat([s,t.v]);o=d(s,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==o.cmp(e));return o}function p(e,t,r,n){return e.toRed(a.mont(r)).redPow(t).fromRed().mod(n)}t.exports=function(e,t,r,i,f){var m=u(t);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=c[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var i=new o(r).keyFromPrivate(t.privateKey),s=i.sign(e);return n.from(s.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){var i,s=t.params.priv_key,o=t.params.p,u=t.params.q,c=t.params.g,f=new a(0),m=d(e,u).mod(u),y=!1,b=l(s,u,e,r);for(;!1===y;)f=p(c,i=h(u,b,r),o,u),0===(y=i.invm(u).imul(m.add(s.mul(f))).mod(u)).cmpn(0)&&(y=!1,f=new a(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var r=e.length+t.length+4,i=[48,r,2,e.length];return i=i.concat(e,[2,t.length],t),n.from(i)}(f,y)}(e,m,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");if(t.padding!==undefined&&1!==t.padding)throw new Error("illegal or unsupported padding mode");e=n.concat([f,e]);for(var y=m.modulus.byteLength(),b=[0,1];e.length+b.length+1<y;)b.push(255);b.push(0);for(var g=-1;++g<e.length;)b.push(e[g]);return s(b,m)},t.exports.getKey=l,t.exports.makeKey=h}}},{package:"crypto-browserify>browserify-sign",file:"node_modules/browserify-sign/browser/sign.js"}],[6521,{"./curves.json":6518,"bn.js":6491,elliptic:6729,"parse-asn1":7720,"safe-buffer":8207},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=e("bn.js"),s=e("elliptic").ec,o=e("parse-asn1"),a=e("./curves.json");function u(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}t.exports=function(e,t,r,c,l){var d=o(r);if("ec"===d.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new s(n),o=r.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,d)}if("dsa"===d.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,s=r.data.q,a=r.data.g,c=r.data.pub_key,l=o.signature.decode(e,"der"),d=l.s,h=l.r;u(d,s),u(h,s);var p=i.mont(n),f=d.invm(s),m=a.toRed(p).redPow(new i(t).mul(f).mod(s)).fromRed().mul(c.toRed(p).redPow(h.mul(f).mod(s)).fromRed()).mod(n).mod(s);return 0===m.cmp(h)}(e,t,d)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=n.concat([l,t]);for(var h=d.modulus.byteLength(),p=[1],f=0;t.length+p.length+2<h;)p.push(255),f+=1;p.push(0);for(var m=-1;++m<t.length;)p.push(t[m]);p=n.from(p);var y=i.mont(d.modulus);e=(e=new i(e).toRed(y)).redPow(new i(d.publicExponent)),e=n.from(e.fromRed().toArray());var b=f<8?1:0;for(h=Math.min(e.length,p.length),e.length!==p.length&&(b=1),m=-1;++m<h;)b|=e[m]^p[m];return 0===b}}}},{package:"crypto-browserify>browserify-sign",file:"node_modules/browserify-sign/browser/verify.js"}],[6522,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}}}},{package:"crypto-browserify>browserify-sign>readable-stream>isarray",file:"node_modules/browserify-sign/node_modules/isarray/index.js"}],[6523,{"./_stream_readable":6525,"./_stream_writable":6527,"core-util-is":6625,inherits:7144,"process-nextick-args":7739},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=d;var s=Object.create(e("core-util-is"));s.inherits=e("inherits");var o=e("./_stream_readable"),a=e("./_stream_writable");s.inherits(d,o);for(var u=i(a.prototype),c=0;c<u.length;c++){var l=u[c];d.prototype[l]||(d.prototype[l]=a.prototype[l])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}}}},{package:"crypto-browserify>browserify-sign>readable-stream",file:"node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_duplex.js"}],[6524,{"./_stream_transform":6526,"core-util-is":6625,inherits:7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=s;var n=e("./_stream_transform"),i=Object.create(e("core-util-is"));function s(e){if(!(this instanceof s))return new s(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(s,n),s.prototype._transform=function(e,t,r){r(null,e)}}}},{package:"crypto-browserify>browserify-sign>readable-stream",file:"node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_passthrough.js"}],[6525,{"./_stream_duplex":6523,"./internal/streams/BufferList":6528,"./internal/streams/destroy":6529,"./internal/streams/stream":6530,_process:7740,"core-util-is":6625,events:6850,inherits:7144,isarray:6522,"process-nextick-args":7739,"safe-buffer":6531,"string_decoder/":6533,util:6494},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n=e("process-nextick-args");t.exports=g;var i,s=e("isarray");g.ReadableState=b;e("events").EventEmitter;var o=function(e,t){return e.listeners(t).length},a=e("./internal/streams/stream"),u=e("safe-buffer").Buffer,c=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l=Object.create(e("core-util-is"));l.inherits=e("inherits");var d=e("util"),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,f=e("./internal/streams/BufferList"),m=e("./internal/streams/destroy");l.inherits(g,a);var y=["error","close","destroy","pause","resume"];function b(t,r){t=t||{};var n=r instanceof(i=i||e("./_stream_duplex"));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var s=t.highWaterMark,o=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=s||0===s?s:n&&(o||0===o)?o:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function g(t){if(i=i||e("./_stream_duplex"),!(this instanceof g))return new g(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function w(e,t,r,n,i){var s,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,T(e)}(e,o)):(i||(s=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||t===undefined||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?_(e,o,t,!1):E(e,o)):_(e,o,t,!1))):n||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),E(e,t)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(e,t){this.push(null),t(e)},g.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},g.prototype.unshift=function(e){return w(this,e,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};var x=8388608;function v(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(O,e):O(e))}function O(e){h("emit readable"),e.emit("readable"),S(e)}function E(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(M,e,t))}function M(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function k(e){h("readable nexttick read 0"),e.read(0)}function j(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),S(e),t.flowing&&!t.reading&&e.read(0)}function S(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function A(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),0===(e-=o)){o===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var s=n.data,o=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,o),0===(e-=o)){o===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}g.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):T(this),null;if(0===(e=v(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=v(r,t))),null===(n=e>0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var i=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:w;function c(t,r){h("onunpipe"),t===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",b),e.removeListener("finish",g),e.removeListener("drain",d),e.removeListener("error",y),e.removeListener("unpipe",c),i.removeListener("end",l),i.removeListener("end",w),i.removeListener("data",m),p=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function l(){h("onend"),e.end()}a.endEmitted?n.nextTick(u):i.once("end",u),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,S(e))}}(i);e.on("drain",d);var p=!1;var f=!1;function m(t){h("ondata"),f=!1,!1!==e.write(t)||f||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==C(a.pipes,e))&&!p&&(h("false write response, pause",a.awaitDrain),a.awaitDrain++,f=!0),i.pause())}function y(t){h("onerror",t),w(),e.removeListener("error",y),0===o(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",g),w()}function g(){h("onfinish"),e.removeListener("close",b),w()}function w(){h("unpipe"),i.unpipe(e)}return i.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",y),e.once("close",b),e.once("finish",g),e.emit("pipe",i),a.flowing||(h("pipe resume"),i.resume()),e},g.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=C(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},g.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&T(this):n.nextTick(k,this))}return r},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(j,e,t))}(this,e)),this},g.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},g.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!==i&&i!==undefined)&&((r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause())))}),e)this[i]===undefined&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<y.length;s++)e.on(y[s],this.emit.bind(this,y[s]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=A}).call(this)}).call(this,e("_process"))}}},{package:"crypto-browserify>browserify-sign>readable-stream",file:"node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_readable.js"}],[6526,{"./_stream_duplex":6523,"core-util-is":6625,inherits:7144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=o;var n=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function s(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){u(e,t,r)}):u(this,null,null)}function u(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,n),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}}}},{package:"crypto-browserify>browserify-sign>readable-stream",file:"node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_transform.js"}],[6527,{"./_stream_duplex":6523,"./internal/streams/destroy":6529,"./internal/streams/stream":6530,_process:7740,"core-util-is":6625,inherits:7144,"process-nextick-args":7739,"safe-buffer":6531,timers:6544,"util-deprecate":8387},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r,n){(function(){var i=e("process-nextick-args");function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=b;var o,a=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?n:i.nextTick;b.WritableState=y;var u=Object.create(e("core-util-is"));u.inherits=e("inherits");var c={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,h=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,f=e("./internal/streams/destroy");function m(){}function y(t,r){o=o||e("./_stream_duplex"),t=t||{};var n=r instanceof o;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var u=t.highWaterMark,c=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:n&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===t.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,s=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,s){--t.pendingcb,r?(i.nextTick(s,n),i.nextTick(T,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(s(n),e._writableState.errorEmitted=!0,e.emit("error",n),T(e,t))}(e,r,n,t,s);else{var o=x(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?a(w,e,r,o,s):w(e,r,o,s)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function b(t){if(o=o||e("./_stream_duplex"),!(p.call(b,this)||this instanceof o))return new b(t);this._writableState=new y(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function g(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,u=!0;r;)i[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;i.allBuffers=u,g(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,d=r.callback;if(g(e,t,!1,t.objectMode?1:c.length,c,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function v(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),T(e,t)})}function T(e,t){var r=x(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(v,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(b,l),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===b&&(e&&e._writableState instanceof y)}})):p=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,s=this._writableState,o=!1,a=!s.objectMode&&(n=e,d.isBuffer(n)||n instanceof h);return a&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof r&&(r=m),s.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var s=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||r===undefined||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),i.nextTick(n,o),s=!1),s}(this,s,e,r))&&(s.pendingcb++,o=function(e,t,r,n,i,s){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,a,n,i,s);return u}(this,s,a,e,t,r)),o},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||_(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&e!==undefined&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=f.destroy,b.prototype._undestroy=f.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),e("timers").setImmediate)}}},{package:"crypto-browserify>browserify-sign>readable-stream",file:"node_modules/browserify-sign/node_modules/readable-stream/lib/_stream_writable.js"}],[6528,{"safe-buffer":6531,util:6494},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=e("util");function s(e,t,r){e.copy(t,r)}t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t=n.allocUnsafe(e>>>0),r=this.head,i=0;r;)s(r.data,t,i),i+=r.data.length,r=r.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})}}},{package:"crypto-browserify>browserify-sign>readable-stream",file:"node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/BufferList.js"}],[6529,{"process-nextick-args":7739},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}}},{package:"crypto-browserify>browserify-sign>readable-stream",file:"node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/destroy.js"}],[6530,{events:6850},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("events").EventEmitter}}},{package:"crypto-browserify>browserify-sign>readable-stream",file:"node_modules/browserify-sign/node_modules/readable-stream/lib/internal/streams/stream-browser.js"}],[6531,{buffer:6542},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("buffer"),i=n.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,r),r.Buffer=o),s(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return t!==undefined?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}}},{package:"crypto-browserify>browserify-sign>readable-stream>safe-buffer",file:"node_modules/browserify-sign/node_modules/readable-stream/node_modules/safe-buffer/index.js"}],[6532,{"./lib/_stream_duplex.js":6523,"./lib/_stream_passthrough.js":6524,"./lib/_stream_readable.js":6525,"./lib/_stream_transform.js":6526,"./lib/_stream_writable.js":6527},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")}}},{package:"crypto-browserify>browserify-sign>readable-stream",file:"node_modules/browserify-sign/node_modules/readable-stream/readable-browser.js"}],[6533,{"safe-buffer":6534},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return r!==undefined?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if((t=this.fillLast(e))===undefined)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},s.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=o(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=o(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=o(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}}},{package:"crypto-browserify>browserify-sign>readable-stream>string_decoder",file:"node_modules/browserify-sign/node_modules/string_decoder/lib/string_decoder.js"}],[6534,{buffer:6542},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("buffer"),i=n.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,r),r.Buffer=o),s(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return t!==undefined?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}}},{package:"crypto-browserify>browserify-sign>readable-stream>string_decoder>safe-buffer",file:"node_modules/browserify-sign/node_modules/string_decoder/node_modules/safe-buffer/index.js"}],[6535,{_process:7740,assert:6538,buffer:6542,"pako/lib/zlib/constants":7707,"pako/lib/zlib/deflate.js":7709,"pako/lib/zlib/inflate.js":7711,"pako/lib/zlib/zstream":7715},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t,n){(function(){var i=e("assert"),s=e("pako/lib/zlib/zstream"),o=e("pako/lib/zlib/deflate.js"),a=e("pako/lib/zlib/inflate.js"),u=e("pako/lib/zlib/constants");for(var c in u)r[c]=u[c];r.NONE=0,r.DEFLATE=1,r.INFLATE=2,r.GZIP=3,r.GUNZIP=4,r.DEFLATERAW=5,r.INFLATERAW=6,r.UNZIP=7;function l(e){if("number"!=typeof e||e<r.DEFLATE||e>r.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}l.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=r.UNZIP),this.mode===r.DEFLATE||this.mode===r.GZIP||this.mode===r.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==r.INFLATE&&this.mode!==r.GUNZIP&&this.mode!==r.INFLATERAW&&this.mode!==r.UNZIP||a.inflateEnd(this.strm),this.mode=r.NONE,this.dictionary=null)},l.prototype.write=function(e,t,r,n,i,s,o){return this._write(!0,e,t,r,n,i,s,o)},l.prototype.writeSync=function(e,t,r,n,i,s,o){return this._write(!1,e,t,r,n,i,s,o)},l.prototype._write=function(e,s,o,a,u,c,l,d){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==r.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,s===undefined,"must provide flush value"),this.write_in_progress=!0,s!==r.Z_NO_FLUSH&&s!==r.Z_PARTIAL_FLUSH&&s!==r.Z_SYNC_FLUSH&&s!==r.Z_FULL_FLUSH&&s!==r.Z_FINISH&&s!==r.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=n.alloc(0),u=0,a=0),this.strm.avail_in=u,this.strm.input=o,this.strm.next_in=a,this.strm.avail_out=d,this.strm.output=c,this.strm.next_out=l,this.flush=s,!e)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return t.nextTick(function(){h._process(),h._after()}),this},l.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},l.prototype._process=function(){var e=null;switch(this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case r.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=r.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=r.GUNZIP):this.mode=r.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===r.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===r.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===r.Z_DATA_ERROR&&(this.err=r.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===r.GUNZIP&&this.err===r.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},l.prototype._checkError=function(){switch(this.err){case r.Z_OK:case r.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===r.Z_FINISH)return this._error("unexpected end of file"),!1;break;case r.Z_STREAM_END:break;case r.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},l.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},l.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},l.prototype.init=function(e,t,n,s,o){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(e>=8&&e<=15,"invalid windowBits"),i(t>=-1&&t<=9,"invalid compression level"),i(n>=1&&n<=9,"invalid memlevel"),i(s===r.Z_FILTERED||s===r.Z_HUFFMAN_ONLY||s===r.Z_RLE||s===r.Z_FIXED||s===r.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(t,e,n,s,o),this._setDictionary()},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype.reset=function(){this._reset(),this._setDictionary()},l.prototype._init=function(e,t,n,i,u){switch(this.level=e,this.windowBits=t,this.memLevel=n,this.strategy=i,this.flush=r.Z_NO_FLUSH,this.err=r.Z_OK,this.mode!==r.GZIP&&this.mode!==r.GUNZIP||(this.windowBits+=16),this.mode===r.UNZIP&&(this.windowBits+=32),this.mode!==r.DEFLATERAW&&this.mode!==r.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new s,this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,r.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:case r.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==r.Z_OK&&this._error("Init error"),this.dictionary=u,this.write_in_progress=!1,this.init_done=!0},l.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=r.Z_OK,this.mode){case r.DEFLATE:case r.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary)}this.err!==r.Z_OK&&this._error("Failed to set dictionary")}},l.prototype._reset=function(){switch(this.err=r.Z_OK,this.mode){case r.DEFLATE:case r.DEFLATERAW:case r.GZIP:this.err=o.deflateReset(this.strm);break;case r.INFLATE:case r.INFLATERAW:case r.GUNZIP:this.err=a.inflateReset(this.strm)}this.err!==r.Z_OK&&this._error("Failed to reset stream")},r.Zlib=l}).call(this)}).call(this,e("_process"),e("buffer").Buffer)}}},{package:"browserify>browserify-zlib",file:"node_modules/browserify-zlib/lib/binding.js"}],[6536,{"./binding":6535,_process:7740,assert:6538,buffer:6542,stream:8285,util:8390},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=e("buffer").Buffer,i=e("stream").Transform,s=e("./binding"),o=e("util"),a=e("assert").ok,u=e("buffer").kMaxLength,c="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";s.Z_MIN_WINDOWBITS=8,s.Z_MAX_WINDOWBITS=15,s.Z_DEFAULT_WINDOWBITS=15,s.Z_MIN_CHUNK=64,s.Z_MAX_CHUNK=Infinity,s.Z_DEFAULT_CHUNK=16384,s.Z_MIN_MEMLEVEL=1,s.Z_MAX_MEMLEVEL=9,s.Z_DEFAULT_MEMLEVEL=8,s.Z_MIN_LEVEL=-1,s.Z_MAX_LEVEL=9,s.Z_DEFAULT_LEVEL=s.Z_DEFAULT_COMPRESSION;for(var l=Object.keys(s),d=0;d<l.length;d++){var h=l[d];h.match(/^Z/)&&Object.defineProperty(r,h,{enumerable:!0,value:s[h],writable:!1})}for(var p={Z_OK:s.Z_OK,Z_STREAM_END:s.Z_STREAM_END,Z_NEED_DICT:s.Z_NEED_DICT,Z_ERRNO:s.Z_ERRNO,Z_STREAM_ERROR:s.Z_STREAM_ERROR,Z_DATA_ERROR:s.Z_DATA_ERROR,Z_MEM_ERROR:s.Z_MEM_ERROR,Z_BUF_ERROR:s.Z_BUF_ERROR,Z_VERSION_ERROR:s.Z_VERSION_ERROR},f=Object.keys(p),m=0;m<f.length;m++){var y=f[m];p[p[y]]=y}function b(e,t,r){var i=[],s=0;function o(){for(var t;null!==(t=e.read());)i.push(t),s+=t.length;e.once("readable",o)}function a(){var t,o=null;s>=u?o=new RangeError(c):t=n.concat(i,s),i=[],e.close(),r(o,t)}e.on("error",function(t){e.removeListener("end",a),e.removeListener("readable",o),r(t)}),e.on("end",a),e.end(t),o()}function g(e,t){if("string"==typeof t&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function w(e){if(!(this instanceof w))return new w(e);k.call(this,e,s.DEFLATE)}function _(e){if(!(this instanceof _))return new _(e);k.call(this,e,s.INFLATE)}function x(e){if(!(this instanceof x))return new x(e);k.call(this,e,s.GZIP)}function v(e){if(!(this instanceof v))return new v(e);k.call(this,e,s.GUNZIP)}function T(e){if(!(this instanceof T))return new T(e);k.call(this,e,s.DEFLATERAW)}function O(e){if(!(this instanceof O))return new O(e);k.call(this,e,s.INFLATERAW)}function E(e){if(!(this instanceof E))return new E(e);k.call(this,e,s.UNZIP)}function M(e){return e===s.Z_NO_FLUSH||e===s.Z_PARTIAL_FLUSH||e===s.Z_SYNC_FLUSH||e===s.Z_FULL_FLUSH||e===s.Z_FINISH||e===s.Z_BLOCK}function k(e,t){var o=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||r.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!M(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!M(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||s.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:s.Z_FINISH,e.chunkSize&&(e.chunkSize<r.Z_MIN_CHUNK||e.chunkSize>r.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<r.Z_MIN_WINDOWBITS||e.windowBits>r.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<r.Z_MIN_LEVEL||e.level>r.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<r.Z_MIN_MEMLEVEL||e.memLevel>r.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=r.Z_FILTERED&&e.strategy!=r.Z_HUFFMAN_ONLY&&e.strategy!=r.Z_RLE&&e.strategy!=r.Z_FIXED&&e.strategy!=r.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!n.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new s.Zlib(t);var a=this;this._hadError=!1,this._handle.onerror=function(e,t){j(a),a._hadError=!0;var n=new Error(e);n.errno=t,n.code=r.codes[t],a.emit("error",n)};var u=r.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(u=e.level);var c=r.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(c=e.strategy),this._handle.init(e.windowBits||r.Z_DEFAULT_WINDOWBITS,u,e.memLevel||r.Z_DEFAULT_MEMLEVEL,c,e.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=c,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!o._handle},configurable:!0,enumerable:!0})}function j(e,r){r&&t.nextTick(r),e._handle&&(e._handle.close(),e._handle=null)}function S(e){e.emit("close")}Object.defineProperty(r,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),r.Deflate=w,r.Inflate=_,r.Gzip=x,r.Gunzip=v,r.DeflateRaw=T,r.InflateRaw=O,r.Unzip=E,r.createDeflate=function(e){return new w(e)},r.createInflate=function(e){return new _(e)},r.createDeflateRaw=function(e){return new T(e)},r.createInflateRaw=function(e){return new O(e)},r.createGzip=function(e){return new x(e)},r.createGunzip=function(e){return new v(e)},r.createUnzip=function(e){return new E(e)},r.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new w(t),e,r)},r.deflateSync=function(e,t){return g(new w(t),e)},r.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new x(t),e,r)},r.gzipSync=function(e,t){return g(new x(t),e)},r.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new T(t),e,r)},r.deflateRawSync=function(e,t){return g(new T(t),e)},r.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new E(t),e,r)},r.unzipSync=function(e,t){return g(new E(t),e)},r.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new _(t),e,r)},r.inflateSync=function(e,t){return g(new _(t),e)},r.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new v(t),e,r)},r.gunzipSync=function(e,t){return g(new v(t),e)},r.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),b(new O(t),e,r)},r.inflateRawSync=function(e,t){return g(new O(t),e)},o.inherits(k,i),k.prototype.params=function(e,n,i){if(e<r.Z_MIN_LEVEL||e>r.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=r.Z_FILTERED&&n!=r.Z_HUFFMAN_ONLY&&n!=r.Z_RLE&&n!=r.Z_FIXED&&n!=r.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var o=this;this.flush(s.Z_SYNC_FLUSH,function(){a(o._handle,"zlib binding closed"),o._handle.params(e,n),o._hadError||(o._level=e,o._strategy=n,i&&i())})}else t.nextTick(i)},k.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},k.prototype._flush=function(e){this._transform(n.alloc(0),"",e)},k.prototype.flush=function(e,r){var i=this,o=this._writableState;("function"==typeof e||e===undefined&&!r)&&(r=e,e=s.Z_FULL_FLUSH),o.ended?r&&t.nextTick(r):o.ending?r&&this.once("end",r):o.needDrain?r&&this.once("drain",function(){return i.flush(e,r)}):(this._flushFlag=e,this.write(n.alloc(0),"",r))},k.prototype.close=function(e){j(this,e),t.nextTick(S,this)},k.prototype._transform=function(e,t,r){var i,o=this._writableState,a=(o.ending||o.ended)&&(!e||o.length===e.length);return null===e||n.isBuffer(e)?this._handle?(a?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||s.Z_NO_FLUSH)),void this._processChunk(e,i,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},k.prototype._processChunk=function(e,t,r){var i=e&&e.length,s=this._chunkSize-this._offset,o=0,l=this,d="function"==typeof r;if(!d){var h,p=[],f=0;this.on("error",function(e){h=e}),a(this._handle,"zlib binding closed");do{var m=this._handle.writeSync(t,e,o,i,this._buffer,this._offset,s)}while(!this._hadError&&g(m[0],m[1]));if(this._hadError)throw h;if(f>=u)throw j(this),new RangeError(c);var y=n.concat(p,f);return j(this),y}a(this._handle,"zlib binding closed");var b=this._handle.write(t,e,o,i,this._buffer,this._offset,s);function g(u,c){if(this&&(this.buffer=null,this.callback=null),!l._hadError){var h=s-c;if(a(h>=0,"have should not go down"),h>0){var m=l._buffer.slice(l._offset,l._offset+h);l._offset+=h,d?l.push(m):(p.push(m),f+=m.length)}if((0===c||l._offset>=l._chunkSize)&&(s=l._chunkSize,l._offset=0,l._buffer=n.allocUnsafe(l._chunkSize)),0===c){if(o+=i-u,i=u,!d)return!0;var y=l._handle.write(t,e,o,i,l._buffer,l._offset,l._chunkSize);return y.callback=g,void(y.buffer=e)}if(!d)return!1;r()}}b.buffer=e,b.callback=g},o.inherits(w,k),o.inherits(_,k),o.inherits(x,k),o.inherits(v,k),o.inherits(T,k),o.inherits(O,k),o.inherits(E,k)}).call(this)}).call(this,e("_process"))}}},{package:"browserify>browserify-zlib",file:"node_modules/browserify-zlib/lib/index.js"}],[6537,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){}}},{package:"browserify",file:"node_modules/browserify/lib/_empty.js"}],[6538,{"object-assign":7651,"util/":6541},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("object-assign");
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function s(e){return global.Buffer&&"function"==typeof global.Buffer.isBuffer?global.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=e("util/"),a=Object.prototype.hasOwnProperty,u=Array.prototype.slice,c="foo"===function(){}.name;function l(e){return Object.prototype.toString.call(e)}function d(e){return!s(e)&&("function"==typeof global.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var h=t.exports=g,p=/\s*function\s+([^\(\s]*)\s*/;function f(e){if(o.isFunction(e)){if(c)return e.name;var t=e.toString().match(p);return t&&t[1]}}function m(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function y(e){if(c||!o.isFunction(e))return o.inspect(e);var t=f(e);return"[Function"+(t?": "+t:"")+"]"}function b(e,t,r,n,i){throw new h.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function g(e,t){e||b(e,!0,t,"==",h.ok)}function w(e,t,r,n){if(e===t)return!0;if(s(e)&&s(t))return 0===i(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(d(e)&&d(t)&&l(e)===l(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(s(e)!==s(t))return!1;var a=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==a&&a===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(e,t,r,n){if(null===e||e===undefined||null===t||t===undefined)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=_(e),s=_(t);if(i&&!s||!i&&s)return!1;if(i)return w(e=u.call(e),t=u.call(t),r);var a,c,l=T(e),d=T(t);if(l.length!==d.length)return!1;for(l.sort(),d.sort(),c=l.length-1;c>=0;c--)if(l[c]!==d[c])return!1;for(c=l.length-1;c>=0;c--)if(!w(e[a=l[c]],t[a],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function _(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function x(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function v(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&b(i,r,"Missing expected exception"+n);var s="string"==typeof n,a=!e&&i&&!r;if((!e&&o.isError(i)&&s&&x(i,r)||a)&&b(i,r,"Got unwanted exception"+n),e&&i&&r&&!x(i,r)||!e&&i)throw i}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(y(e.actual),128)+" "+e.operator+" "+m(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||b;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=f(t),s=n.indexOf("\n"+i);if(s>=0){var o=n.indexOf("\n",s+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=b,h.ok=g,h.equal=function(e,t,r){e!=t&&b(e,t,r,"==",h.equal)},h.notEqual=function(e,t,r){e==t&&b(e,t,r,"!=",h.notEqual)},h.deepEqual=function(e,t,r){w(e,t,!1)||b(e,t,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,r){w(e,t,!0)||b(e,t,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,r){w(e,t,!1)&&b(e,t,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,r,n){w(t,r,!0)&&b(t,r,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,r){e!==t&&b(e,t,r,"===",h.strictEqual)},h.notStrictEqual=function(e,t,r){e===t&&b(e,t,r,"!==",h.notStrictEqual)},h.throws=function(e,t,r){v(!0,e,t,r)},h.doesNotThrow=function(e,t,r){v(!1,e,t,r)},h.ifError=function(e){if(e)throw e},h.strict=n(function e(t,r){t||b(t,!0,r,"==",e)},h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}}},{package:"browserify>assert",file:"node_modules/browserify/node_modules/assert/assert.js"}],[6539,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}},{package:"browserify>assert>util>inherits",file:"node_modules/browserify/node_modules/assert/node_modules/inherits/inherits_browser.js"}],[6540,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}}}},{package:"browserify>assert>util",file:"node_modules/browserify/node_modules/assert/node_modules/util/support/isBufferBrowser.js"}],[6541,{"./support/isBuffer":6540,_process:7740,inherits:6539},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=/%[sdj%]/g;r.format=function(e){if(!y(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}r=1;for(var i=arguments,s=i.length,a=String(e).replace(n,function(e){if("%%"===e)return"%";if(r>=s)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),u=i[r];r<s;u=i[++r])f(u)||!w(u)?a+=" "+u:a+=" "+o(u);return a},r.deprecate=function(e,n){if(b(global.process))return function(){return r.deprecate(e,n).apply(this,arguments)};if(!0===t.noDeprecation)return e;var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var i,s={};function o(e,t){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(t)?n.showHidden=t:t&&r._extend(n,t),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),c(n,e,n.depth)}function a(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function u(e,t){return e}function c(e,t,n){if(e.customInspect&&t&&v(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return y(i)||(i=c(e,i,n)),i}var s=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(f(t))return e.stylize("null","null")}(e,t);if(s)return s;var o=Object.keys(t),a=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),x(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return l(t);if(0===o.length){if(v(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(g(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return l(t)}var w,T="",O=!1,E=["{","}"];(h(t)&&(O=!0,E=["[","]"]),v(t))&&(T=" [Function"+(t.name?": "+t.name:"")+"]");return g(t)&&(T=" "+RegExp.prototype.toString.call(t)),_(t)&&(T=" "+Date.prototype.toUTCString.call(t)),x(t)&&(T=" "+l(t)),0!==o.length||O&&0!=t.length?n<0?g(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),w=O?function(e,t,r,n,i){for(var s=[],o=0,a=t.length;o<a;++o)M(t,String(o))?s.push(d(e,t,r,n,String(o),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(d(e,t,r,n,i,!0))}),s}(e,t,n,a,o):o.map(function(r){return d(e,t,n,a,r,O)}),e.seen.pop(),function(e,t,r){var n=e.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(w,T,E)):E[0]+T+E[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,s){var o,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),M(n,i)||(o="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=f(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return"   "+e}).join("\n")):a=e.stylize("[Circular]","special")),b(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function h(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function f(e){return null===e}function m(e){return"number"==typeof e}function y(e){return"string"==typeof e}function b(e){return void 0===e}function g(e){return w(e)&&"[object RegExp]"===T(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===T(e)}function x(e){return w(e)&&("[object Error]"===T(e)||e instanceof Error)}function v(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(b(i)&&(i=""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=t.pid;s[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else s[e]=function(){};return s[e]},r.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=h,r.isBoolean=p,r.isNull=f,r.isNullOrUndefined=function(e){return null==e},r.isNumber=m,r.isString=y,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=b,r.isRegExp=g,r.isObject=w,r.isDate=_,r.isError=x,r.isFunction=v,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("./support/isBuffer");var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),E[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this)}).call(this,e("_process"))}}},{package:"browserify>assert>util",file:"node_modules/browserify/node_modules/assert/node_modules/util/util.js"}]],[],{});