LavaPack.loadBundle([[4798,{},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 o={},s={};function a(e,t){var r,n,i;return t?(i=0<=(e>>>=0)&&e<256)&&(n=s[e])?n:(r=u(e,0,!0),i&&(s[e]=r),r):(i=-128<=(e|=0)&&e<128)&&(n=o[e])?n:(r=u(e,e<0?-1:0,!1),i&&(o[e]=r),r)}function l(e,t){if(isNaN(e))return t?y:v;if(t){if(e<0)return y;if(e>=h)return _}else{if(e<=-b)return O;if(e+1>=b)return j}return e<0?l(-e,t).neg():u(e%p|0,e/p|0,t)}function u(e,t,n){return new r(e,t,n)}r.fromInt=a,r.fromNumber=l,r.fromBits=u;var c=Math.pow;function f(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?y:v;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 f(e.substring(1),t,r).neg();for(var i=l(c(r,8)),o=v,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),r);if(a<8){var d=l(c(r,a));o=o.mul(d).add(l(u))}else o=(o=o.mul(i)).add(l(u))}return o.unsigned=t,o}function d(e,t){return"number"==typeof e?l(e,t):"string"==typeof e?f(e,t):u(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=f,r.fromValue=d;var p=4294967296,h=p*p,b=h/2,m=a(1<<24),v=a(0);r.ZERO=v;var y=a(0,!0);r.UZERO=y;var g=a(1);r.ONE=g;var w=a(1,!0);r.UONE=w;var k=a(-1);r.NEG_ONE=k;var j=u(-1,2147483647,!1);r.MAX_VALUE=j;var _=u(-1,-1,!0);r.MAX_UNSIGNED_VALUE=_;var O=u(0,-2147483648,!1);r.MIN_VALUE=O;var T=r.prototype;T.toInt=function(){return this.unsigned?this.low>>>0:this.low},T.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},T.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=l(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=l(c(e,6),this.unsigned),o=this,s="";;){var a=o.div(i),u=(o.sub(a.mul(i)).toInt()>>>0).toString(e);if((o=a).isZero())return u+s;for(;u.length<6;)u="0"+u;s=""+u+s}},T.getHighBits=function(){return this.high},T.getHighBitsUnsigned=function(){return this.high>>>0},T.getLowBits=function(){return this.low},T.getLowBitsUnsigned=function(){return this.low>>>0},T.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},T.isZero=function(){return 0===this.high&&0===this.low},T.eqz=T.isZero,T.isNegative=function(){return!this.unsigned&&this.high<0},T.isPositive=function(){return this.unsigned||this.high>=0},T.isOdd=function(){return!(1&~this.low)},T.isEven=function(){return!(1&this.low)},T.equals=function(e){return n(e)||(e=d(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},T.eq=T.equals,T.notEquals=function(e){return!this.eq(e)},T.neq=T.notEquals,T.ne=T.notEquals,T.lessThan=function(e){return this.comp(e)<0},T.lt=T.lessThan,T.lessThanOrEqual=function(e){return this.comp(e)<=0},T.lte=T.lessThanOrEqual,T.le=T.lessThanOrEqual,T.greaterThan=function(e){return this.comp(e)>0},T.gt=T.greaterThan,T.greaterThanOrEqual=function(e){return this.comp(e)>=0},T.gte=T.greaterThanOrEqual,T.ge=T.greaterThanOrEqual,T.compare=function(e){if(n(e)||(e=d(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},T.comp=T.compare,T.negate=function(){return!this.unsigned&&this.eq(O)?O:this.not().add(g)},T.neg=T.negate,T.add=function(e){n(e)||(e=d(e));var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,o=65535&this.low,s=e.high>>>16,a=65535&e.high,l=e.low>>>16,c=0,f=0,p=0,h=0;return p+=(h+=o+(65535&e.low))>>>16,f+=(p+=i+l)>>>16,c+=(f+=r+a)>>>16,c+=t+s,u((p&=65535)<<16|(h&=65535),(c&=65535)<<16|(f&=65535),this.unsigned)},T.subtract=function(e){return n(e)||(e=d(e)),this.add(e.neg())},T.sub=T.subtract,T.multiply=function(e){if(this.isZero())return this;if(n(e)||(e=d(e)),t)return u(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?y:v;if(this.eq(O))return e.isOdd()?O:v;if(e.eq(O))return this.isOdd()?O:v;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(m)&&e.lt(m))return l(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,i=65535&this.high,o=this.low>>>16,s=65535&this.low,a=e.high>>>16,c=65535&e.high,f=e.low>>>16,p=65535&e.low,h=0,b=0,g=0,w=0;return g+=(w+=s*p)>>>16,b+=(g+=o*p)>>>16,g&=65535,b+=(g+=s*f)>>>16,h+=(b+=i*p)>>>16,b&=65535,h+=(b+=o*f)>>>16,b&=65535,h+=(b+=s*c)>>>16,h+=r*p+i*f+o*c+s*a,u((g&=65535)<<16|(w&=65535),(h&=65535)<<16|(b&=65535),this.unsigned)},T.mul=T.multiply,T.divide=function(e){if(n(e)||(e=d(e)),e.isZero())throw Error("division by zero");var r,i,o;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?u((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?y:v;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return y;if(e.gt(this.shru(1)))return w;o=y}else{if(this.eq(O))return e.eq(g)||e.eq(k)?O:e.eq(O)?g:(r=this.shr(1).div(e).shl(1)).eq(v)?e.isNegative()?g:k:(i=this.sub(e.mul(r)),o=r.add(i.div(e)));if(e.eq(O))return this.unsigned?y:v;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();o=v}for(i=this;i.gte(e);){r=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(r)/Math.LN2),a=s<=48?1:c(2,s-48),f=l(r),p=f.mul(e);p.isNegative()||p.gt(i);)p=(f=l(r-=a,this.unsigned)).mul(e);f.isZero()&&(f=g),o=o.add(f),i=i.sub(p)}return o},T.div=T.divide,T.modulo=function(e){return n(e)||(e=d(e)),t?u((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))},T.mod=T.modulo,T.rem=T.modulo,T.not=function(){return u(~this.low,~this.high,this.unsigned)},T.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},T.clz=T.countLeadingZeros,T.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},T.ctz=T.countTrailingZeros,T.and=function(e){return n(e)||(e=d(e)),u(this.low&e.low,this.high&e.high,this.unsigned)},T.or=function(e){return n(e)||(e=d(e)),u(this.low|e.low,this.high|e.high,this.unsigned)},T.xor=function(e){return n(e)||(e=d(e)),u(this.low^e.low,this.high^e.high,this.unsigned)},T.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):u(0,this.low<<e-32,this.unsigned)},T.shl=T.shiftLeft,T.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):u(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},T.shr=T.shiftRight,T.shiftRightUnsigned=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):u(32===e?this.high:this.high>>>e-32,0,this.unsigned)},T.shru=T.shiftRightUnsigned,T.shr_u=T.shiftRightUnsigned,T.rotateLeft=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?u(this.high,this.low,this.unsigned):e<32?(t=32-e,u(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),u(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},T.rotl=T.rotateLeft,T.rotateRight=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?u(this.high,this.low,this.unsigned):e<32?(t=32-e,u(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),u(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},T.rotr=T.rotateRight,T.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},T.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},T.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},T.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]},T.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 S=r;return e.default=S,"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/long/umd/index.js"}],[48,{"../../../../shared/lib/delegation":5834,"@metamask/delegation-controller":1376,"@metamask/transaction-controller":2833},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DelegationControllerInit=void 0,r.awaitDeleteDelegationEntry=a;var n=e("@metamask/delegation-controller"),i=e("@metamask/transaction-controller"),o=e("../../../../shared/lib/delegation");const s=e=>(0,o.getDeleGatorEnvironment)(Number(e));async function a(e,t,{hash:r,txMeta:n,entryToStore:o}){let{id:s}=n,a="continue";const l=({transactionMeta:n})=>{if(n.id===s)if(n.status===i.TransactionStatus.dropped&&n.replacedById)s=n.replacedById;else{switch(n.type){case i.TransactionType.contractInteraction:case i.TransactionType.retry:switch(n.status){case i.TransactionStatus.confirmed:a="delete";break;case i.TransactionStatus.dropped:case i.TransactionStatus.failed:case i.TransactionStatus.rejected:a="unsubscribe";break;default:return}break;case i.TransactionType.cancel:a="unsubscribe";break;default:return void console.warn("awaitDeleteDelegationEntry: Unexpected tx type",n.type)}"delete"===a&&(e.delete(r),o&&e.store({entry:o})),"unsubscribe"!==a&&"delete"!==a||t.unsubscribe("TransactionController:transactionStatusUpdated",l)}};t.subscribe("TransactionController:transactionStatusUpdated",l)}r.DelegationControllerInit=({controllerMessenger:e,persistedState:t,initMessenger:r})=>{const i=new n.DelegationController({messenger:e,state:t.DelegationController,hashDelegation:o.getDelegationHashOffchain,getDelegationEnvironment:s});return e.registerActionHandler("DelegationController:signDelegation",i.signDelegation.bind(i)),{controller:i,api:{signDelegation:i.signDelegation.bind(i),storeDelegationEntry:i.store.bind(i),listDelegationEntries:i.list.bind(i),getDelegationEntry:i.retrieve.bind(i),getDelegationEntryChain:i.chain.bind(i),deleteDelegationEntry:i.delete.bind(i),awaitDeleteDelegationEntry:a.bind(null,i,r)}}}}}},{package:"$root$",file:"app/scripts/controller-init/delegation/delegation-controller-init.ts"}],[480,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,function(e){var t;if(!(0,i.hasProperty)(e,"PreferencesController"))return;if(!(0,i.isObject)(e.PreferencesController)){var r,n;const t=typeof e.PreferencesController;null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`state.PreferencesController is type: ${t}`))}(0,i.isObject)(null===(t=e.PreferencesController)||void 0===t?void 0:t.preferences)||(e.PreferencesController={preferences:{}});e.PreferencesController.preferences.redesignedConfirmationsEnabled=!0}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=122}}},{package:"$root$",file:"app/scripts/migrations/122.ts"}],[481,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController;if(null!=t&&t.preferences){var r;const e=null==t?void 0:t.useNonceField,n=null==t||null===(r=t.featureFlags)||void 0===r?void 0:r.sendHexData;t.preferences.showConfirmationAdvancedDetails=e||n}}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=123}}},{package:"$root$",file:"app/scripts/migrations/123.ts"}],[482,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;r&&(r.redesignedTransactionsEnabled=!1)}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=124}}},{package:"$root$",file:"app/scripts/migrations/124.ts"}],[483,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&!0===e.PreferencesController.useExternalServices&&(e.PreferencesController.useTokenDetection=!0);(0,n.hasProperty)(e,"AppMetadataController")&&(0,n.isObject)(e.AppMetadataController)&&delete e.AppMetadataController.showTokenAutodetectModalOnUpgrade}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=125.1}}},{package:"$root$",file:"app/scripts/migrations/125.1.ts"}],[484,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"TxController")&&delete e.TxController}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=125}}},{package:"$root$",file:"app/scripts/migrations/125.ts"}],[485,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if((0,n.hasProperty)(e,"PhishingController")&&(0,n.isObject)(e.PhishingController)&&(0,n.hasProperty)(e.PhishingController,"phishingLists")){const t=e.PhishingController;if(!Array.isArray(t.phishingLists))return console.error(`Migration ${o}: Invalid PhishingController.phishingLists state`),e;t.phishingLists=t.phishingLists.filter(e=>"MetaMask"===e.name),e.PhishingController=t}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=126.1}}},{package:"$root$",file:"app/scripts/migrations/126.1.ts"}],[486,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&delete e.NetworkController.providerConfig}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=126}}},{package:"$root$",file:"app/scripts/migrations/126.ts"}],[487,{"../../../shared/constants/network":5768,"@metamask/utils":2879,lodash:4789,"uri-js":5679},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=l,function(e){var t;var r,i,a,l,u,c,f,d;if(!(0,n.hasProperty)(e,"NetworkController"))return null===(r=global.sentry)||void 0===r||null===(i=r.captureException)||void 0===i||i.call(r,new Error("state.NetworkController is not defined")),e;if(!(0,n.isObject)(e.NetworkController))return null===(a=global.sentry)||void 0===a||null===(l=a.captureException)||void 0===l||l.call(a,new Error("typeof state.NetworkController is "+typeof e.NetworkController)),e;if(!(0,n.hasProperty)(e,"TransactionController"))return null===(u=global.sentry)||void 0===u||null===(c=u.captureException)||void 0===c||c.call(u,new Error("state.TransactionController is not defined")),e;if(!(0,n.isObject)(e.TransactionController))return null===(f=global.sentry)||void 0===f||null===(d=f.captureException)||void 0===d||d.call(f,new Error("typeof state.TransactionController is "+typeof e.TransactionController)),e;const p=e.NetworkController;let h=(0,n.isObject)(p.networkConfigurations)?Object.values(p.networkConfigurations):[];h=[{type:"infura",id:"mainnet",chainId:"0x1",ticker:"ETH",nickname:s.MAINNET_DISPLAY_NAME,rpcUrl:"https://mainnet.infura.io/v3/{infuraProjectId}",rpcPrefs:{blockExplorerUrl:"https://etherscan.io"}},{type:"infura",id:"sepolia",chainId:"0xaa36a7",ticker:"SepoliaETH",nickname:s.SEPOLIA_DISPLAY_NAME,rpcUrl:"https://sepolia.infura.io/v3/{infuraProjectId}",rpcPrefs:{blockExplorerUrl:"https://sepolia.etherscan.io"}},{type:"infura",id:"linea-sepolia",chainId:"0xe705",ticker:"LineaETH",nickname:s.LINEA_SEPOLIA_DISPLAY_NAME,rpcUrl:"https://linea-sepolia.infura.io/v3/{infuraProjectId}",rpcPrefs:{blockExplorerUrl:"https://sepolia.lineascan.build"}},{type:"infura",id:"linea-mainnet",chainId:"0xe708",ticker:"ETH",nickname:s.LINEA_MAINNET_DISPLAY_NAME,rpcUrl:"https://linea-mainnet.infura.io/v3/{infuraProjectId}",rpcPrefs:{blockExplorerUrl:"https://lineascan.build"}},...h];const b=h.reduce((e,t)=>{var r;(0,n.isObject)(t)&&"string"==typeof t.chainId&&(e[r=t.chainId]??(e[r]=[])).push(t);return e},{}),m=Array.isArray(e.TransactionController.transactions)?e.TransactionController.transactions.filter(e=>(0,n.isObject)(e)&&"number"==typeof e.time&&"string"==typeof e.networkClientId).sort((e,t)=>t.time-e.time):[],v=Object.entries(b).reduce((e,[t,r])=>{var i,a,l,u;let c;c=r.find(e=>e.id===p.selectedNetworkClientId),c||m.filter(e=>e.chainId===t).some(e=>c=r.find(t=>t.id===e.networkClientId)),c||(c=r.find(e=>"infura"!==e.type));const f=r.reduce((t,r)=>{if(r.id&&r.rpcUrl&&"string"==typeof r.rpcUrl&&function(e){const t=o.parse(e);return t.error===undefined&&("http"===t.scheme||"https"===t.scheme)}(r.rpcUrl)){const i=h.some(e=>(0,n.isObject)(e)&&"string"==typeof e.rpcUrl&&"string"==typeof r.rpcUrl&&e.id!==r.id&&o.equal(e.rpcUrl,r.rpcUrl)&&e.id===p.selectedNetworkClientId),s=[...Object.values(e).flatMap(e=>(0,n.isObject)(e)?e.rpcEndpoints:[]),...t].some(e=>(0,n.isObject)(e)&&"string"==typeof e.url&&"string"==typeof r.rpcUrl&&o.equal(e.url,r.rpcUrl));i||s||t.push({networkClientId:r.id,url:r.rpcUrl,type:"infura"===r.type?"infura":"custom",..."infura"!==r.type&&"string"==typeof r.nickname&&r.nickname&&{name:r.nickname}})}return t},[]);if(0===f.length)return e;const d=Math.max(f.findIndex(e=>{var t;return e.networkClientId===(null===(t=c)||void 0===t?void 0:t.id)}),0),b=[...r.reduce((e,t)=>((0,n.isObject)(t.rpcPrefs)&&"string"==typeof t.rpcPrefs.blockExplorerUrl&&t.rpcPrefs.blockExplorerUrl&&e.add(t.rpcPrefs.blockExplorerUrl),e),new Set)],v=0===b.length?undefined:Math.max(b.findIndex(e=>{var t;return(0,n.isObject)(null===(t=c)||void 0===t?void 0:t.rpcPrefs)&&e===c.rpcPrefs.blockExplorerUrl}),0),y=s.NETWORK_TO_NAME_MAP[t]??(null===(i=c)||void 0===i?void 0:i.nickname)??(null===(a=r.find(e=>e.nickname))||void 0===a?void 0:a.nickname),g=s.CHAIN_ID_TO_CURRENCY_SYMBOL_MAP[t]??(null===(l=c)||void 0===l?void 0:l.ticker)??(null===(u=r.find(e=>e.ticker))||void 0===u?void 0:u.ticker);return e[t]={chainId:t,rpcEndpoints:f,defaultRpcEndpointIndex:d,blockExplorerUrls:b,...v!==undefined&&{defaultBlockExplorerUrlIndex:v},name:y,nativeCurrency:g},e},{}),y=e=>{const t=h.find(t=>(0,n.isObject)(t)&&t.id===e);return(0,n.isObject)(t)&&"string"==typeof(null==t?void 0:t.chainId)?null==t?void 0:t.chainId:undefined};let g=null===(t=Object.values(v).flatMap(e=>(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)?e.rpcEndpoints:[]).find(e=>e.networkClientId===p.selectedNetworkClientId))||void 0===t?void 0:t.networkClientId;if(!g){const e=v[y(p.selectedNetworkClientId)??"0x1"];g=(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)&&"number"==typeof e.defaultRpcEndpointIndex?e.rpcEndpoints[e.defaultRpcEndpointIndex].networkClientId:"mainnet"}if((0,n.hasProperty)(e,"SelectedNetworkController")&&(0,n.isObject)(e.SelectedNetworkController)&&(0,n.hasProperty)(e.SelectedNetworkController,"domains")&&(0,n.isObject)(e.SelectedNetworkController.domains))for(const[t,r]of Object.entries(e.SelectedNetworkController.domains)){let i;const o=y(r);if(o){const e=v[o];(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)&&"number"==typeof e.defaultRpcEndpointIndex&&(i=e.rpcEndpoints[e.defaultRpcEndpointIndex].networkClientId)}i?e.SelectedNetworkController.domains[t]=i:delete e.SelectedNetworkController.domains[t]}e.NetworkController={selectedNetworkClientId:g,networkConfigurationsByChainId:v,networksMetadata:p.networksMetadata??{}},(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.hasProperty)(e.PreferencesController,"preferences")&&(0,n.isObject)(e.PreferencesController.preferences)&&(e.PreferencesController.preferences.showMultiRpcModal=Object.values(v).some(e=>(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)&&e.rpcEndpoints.length>1));(0,n.hasProperty)(e,"NetworkOrderController")&&(0,n.isObject)(e.NetworkOrderController)&&Array.isArray(e.NetworkOrderController.orderedNetworkList)&&(e.NetworkOrderController.orderedNetworkList=[...new Set(e.NetworkOrderController.orderedNetworkList.map(e=>e.networkId))].map(e=>({networkId:e})))}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(e("uri-js")),s=e("../../../shared/constants/network");function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}const l=r.version=127}}},{package:"$root$",file:"app/scripts/migrations/127.ts"}],[488,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.isObject)(e.PreferencesController.preferences)&&delete e.PreferencesController.preferences.useNativeCurrencyAsPrimaryCurrency}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=128}}},{package:"$root$",file:"app/scripts/migrations/128.ts"}],[489,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.isObject)(e.PreferencesController.preferences)&&e.PreferencesController.preferences.shouldShowAggregatedBalancePopover===undefined&&(e.PreferencesController.preferences.shouldShowAggregatedBalancePopover=!0)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=129}}},{package:"$root$",file:"app/scripts/migrations/129.ts"}],[49,{"../../../shared/lib/sentry":5857,"@metamask/error-reporting-service":1772},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ErrorReportingServiceInit=void 0;var n=e("@metamask/error-reporting-service"),i=e("../../../shared/lib/sentry");r.ErrorReportingServiceInit=({controllerMessenger:e})=>({persistedStateKey:null,memStateKey:null,controller:new n.ErrorReportingService({messenger:e,captureException:i.captureException})})}}},{package:"$root$",file:"app/scripts/controller-init/error-reporting-service-init.ts"}],[490,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.hasProperty)(e.PreferencesController,"preferences")&&(0,n.isObject)(e.PreferencesController.preferences)&&!e.PreferencesController.preferences.tokenSortConfig&&(e.PreferencesController.preferences.tokenSortConfig={key:"tokenFiatAmount",order:"dsc",sortCallback:"stringNumeric"})}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=130}}},{package:"$root$",file:"app/scripts/migrations/130.ts"}],[491,{"../../../shared/constants/network":5768,"@metamask/network-controller":2206,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=a,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.hasProperty)(e.NetworkController,"networkConfigurationsByChainId")&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)){const{networkConfigurationsByChainId:t}=e.NetworkController;if(!Object.entries(t).filter(([e])=>![...s.infuraChainIdsTestNets,s.CHAIN_IDS.LINEA_MAINNET].includes(e)).some(([,e])=>{var t;if(!(0,n.isObject)(e)||!Array.isArray(e.rpcEndpoints)||"number"!=typeof e.defaultRpcEndpointIndex)return!1;const r=null==e||null===(t=e.rpcEndpoints)||void 0===t?void 0:t[null==e?void 0:e.defaultRpcEndpointIndex];if(!(0,n.isObject)(r)||"string"!=typeof r.url)return!1;try{const e=new URL(r.url).host;return r.type===i.RpcEndpointType.Infura||s.allowedInfuraHosts.includes(e)}catch{return!1}}))return e;const r=t[l];if((0,n.isObject)(r)){const{rpcEndpoints:i}=r;if(Array.isArray(i)){const o=i.findIndex(e=>(0,n.isObject)(e)&&"https://mainnet.base.org"===e.url);if(-1!==o)return i[o]={...i[o],url:`https://base-mainnet.infura.io/v3/${s.infuraProjectId}`},t[l]={...r,rpcEndpoints:i},{...e,NetworkController:{...e.NetworkController,networkConfigurationsByChainId:t}}}}}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("@metamask/network-controller"),o=e("lodash"),s=e("../../../shared/constants/network");const a=r.version=131.1,l="0x2105"}}},{package:"$root$",file:"app/scripts/migrations/131.1.ts"}],[492,{"@metamask/utils":2879,lodash:4789,loglevel:4797},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=a,function(e){if(!(0,i.hasProperty)(e,"AccountsController"))return;const t=e.AccountsController;var r,n,l,u,c,f,d;if(!(0,o.isObject)(t))return void(null===(r=global.sentry)||void 0===r||r.captureException(new Error(`Migration ${a}: Invalid AccountsController state of type '${typeof t}'`)));if(!(0,i.hasProperty)(t,"internalAccounts"))return void(null===(n=global.sentry)||void 0===n||n.captureException(new Error(`Migration ${a}: Invalid AccountsController state, missing internalAccounts`)));if(!(0,o.isObject)(t.internalAccounts))return void(null===(l=global.sentry)||void 0===l||l.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state of type '${typeof t.internalAccounts}'`)));if(!(0,i.hasProperty)(t.internalAccounts,"selectedAccount"))return void(null===(u=global.sentry)||void 0===u||u.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state, missing selectedAccount`)));if("string"!=typeof t.internalAccounts.selectedAccount)return void(null===(c=global.sentry)||void 0===c||c.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.selectedAccount state of type '${typeof t.internalAccounts.selectedAccount}'`)));if(!(0,i.hasProperty)(t.internalAccounts,"accounts"))return void(null===(f=global.sentry)||void 0===f||f.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts state, missing accounts`)));if(!(0,o.isObject)(t.internalAccounts.accounts))return void(null===(d=global.sentry)||void 0===d||d.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state of type '${typeof t.internalAccounts.accounts}'`)));if(0===Object.keys(t.internalAccounts.accounts).length)return void(t.internalAccounts.selectedAccount="");if(""===t.internalAccounts.selectedAccount)return void s.default.warn(`Migration ${a}: Skipping, no selected account set`);const p=Object.values(t.internalAccounts.accounts)[0];var h,b,m;if(!(0,o.isObject)(p))return void(null===(h=global.sentry)||void 0===h||h.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found of type '${typeof p}'`)));if(!(0,i.hasProperty)(p,"id"))return void(null===(b=global.sentry)||void 0===b||b.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found that is missing an id`)));if("string"!=typeof p.id)return void(null===(m=global.sentry)||void 0===m||m.captureException(new Error(`Migration ${a}: Invalid AccountsController internalAccounts.accounts state, entry found with an id of type '${typeof p.id}'`)));(0,i.hasProperty)(t.internalAccounts.accounts,t.internalAccounts.selectedAccount)||(t.internalAccounts.selectedAccount=p.id)}(t.data),t},r.version=void 0;var n,i=e("@metamask/utils"),o=e("lodash"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n};const a=r.version=131}}},{package:"$root$",file:"app/scripts/migrations/131.ts"}],[493,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){var t;if(!(0,n.isObject)(null==e?void 0:e.PreferencesController))return e;(0,n.isObject)(null===(t=e.PreferencesController)||void 0===t?void 0:t.preferences)||(e.PreferencesController={...e.PreferencesController,preferences:{}});const r=e.PreferencesController;r.preferences.redesignedTransactionsEnabled=!0}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=132}}},{package:"$root$",file:"app/scripts/migrations/132.ts"}],[494,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"TokensController"))return;const t=e.TokensController;if(!(0,n.isObject)(t)){var r;return void(null===(r=global.sentry)||void 0===r||r.captureException(new Error(`Migration ${o}: Invalid TokensController state of type '${typeof t}'`)))}if((0,n.hasProperty)(t,"allTokens")){var i;if((0,n.isObject)(t.allTokens))t.allTokens=s(t.allTokens,"allTokens");else null===(i=global.sentry)||void 0===i||i.captureException(new Error(`Migration ${o}: Invalid allTokens state of type '${typeof t.allTokens}'`))}if((0,n.hasProperty)(t,"allDetectedTokens")){var a;if((0,n.isObject)(t.allDetectedTokens))t.allDetectedTokens=s(t.allDetectedTokens,"allDetectedTokens");else null===(a=global.sentry)||void 0===a||a.captureException(new Error(`Migration ${o}: Invalid allDetectedTokens state of type '${typeof t.allDetectedTokens}'`))}if((0,n.hasProperty)(t,"tokens")&&Array.isArray(t.tokens))t.tokens=t.tokens.filter(e=>{var t;return!((0,n.isObject)(e)&&(0,n.hasProperty)(e,"decimals")&&null===e.decimals&&(0,n.hasProperty)(e,"address"))||(null===(t=global.sentry)||void 0===t||t.captureMessage(`Migration ${o}: Removed token with decimals === null in tokens. Address: ${e.address}`),!1)});else if((0,n.hasProperty)(t,"tokens")){var l;null===(l=global.sentry)||void 0===l||l.captureException(new Error(`Migration ${o}: Invalid tokens state of type '${typeof t.tokens}'`))}if((0,n.hasProperty)(t,"detectedTokens")&&Array.isArray(t.detectedTokens))t.detectedTokens=t.detectedTokens.filter(e=>{var t;return!((0,n.isObject)(e)&&(0,n.hasProperty)(e,"decimals")&&null===e.decimals&&(0,n.hasProperty)(e,"address"))||(null===(t=global.sentry)||void 0===t||t.captureMessage(`Migration ${o}: Removed token with decimals === null in detectedTokens. Address: ${e.address}`),!1)});else if((0,n.hasProperty)(t,"detectedTokens")){var u;null===(u=global.sentry)||void 0===u||u.captureException(new Error(`Migration ${o}: Invalid detectedTokens state of type '${typeof t.detectedTokens}'`))}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=133.1;function s(e,t){const r={};for(const[i,s]of Object.entries(e))if((0,n.isObject)(s)){const e={};for(const[r,i]of Object.entries(s))if(Array.isArray(i)){const s=i.filter(e=>{var r;return(0,n.isObject)(e)&&(0,n.hasProperty)(e,"decimals")&&null===e.decimals&&(0,n.hasProperty)(e,"address")?(null===(r=global.sentry)||void 0===r||r.captureMessage(`Migration ${o}: Removed token with decimals === null in ${t}. Address: ${e.address}`),!1):(0,n.isObject)(e)&&(0,n.hasProperty)(e,"decimals")&&null!==e.decimals});e[r]=s}r[i]=e}return r}}}},{package:"$root$",file:"app/scripts/migrations/133.1.ts"}],[4940,{"./util":4944},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{encodeText:n}=e("./util");t.exports=class{constructor(e,t,r,i){this.name=e,this.code=t,this.codeBuf=n(this.code),this.alphabet=i,this.codec=r(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/base.js"}],[4941,{"./base.js":4940,"./rfc4648":4943,"./util":4944,"@multiformats/base-x":2892},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("@multiformats/base-x"),i=e("./base.js"),{rfc4648:o}=e("./rfc4648"),{decodeText:s,encodeText:a}=e("./util"),l=[["identity","\0",()=>({encode:s,decode:a}),""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",n,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",n,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",n,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",n,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",n,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=l.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),c=l.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});t.exports={names:u,codes:c}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/constants.js"}],[4942,{"./constants":4941,"./util":4944},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./constants"),{encodeText:i,decodeText:o,concat:s}=e("./util");function a(e){if(Object.prototype.hasOwnProperty.call(n.names,e))return n.names[e];if(Object.prototype.hasOwnProperty.call(n.codes,e))return n.codes[e];throw new Error(`Unsupported encoding: ${e}`)}(r=t.exports=function(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:r,codeBuf:n}=a(e);return function(e,t){const r=a(e);r.decode(o(t))}(r,t),s([n,t],n.length+t.length)}).encode=function(e,t){const r=a(e),n=i(r.encode(t));return s([r.codeBuf,n],r.codeBuf.length+n.length)},r.decode=function(e){e instanceof Uint8Array&&(e=o(e));const t=e[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase()),a(e[0]).decode(e.substring(1))},r.isEncoded=function(e){if(e instanceof Uint8Array&&(e=o(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{return a(e[0]).name}catch(e){return!1}},r.encoding=a,r.encodingFromData=function(e){return e instanceof Uint8Array&&(e=o(e)),a(e[0])};const l=Object.freeze(n.names),u=Object.freeze(n.codes);r.names=l,r.codes=u}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/index.js"}],[4943,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={rfc4648:e=>t=>({encode:r=>((e,t,r)=>{const n="="===t[t.length-1],i=(1<<r)-1;let o="",s=0,a=0;for(let n=0;n<e.length;++n)for(a=a<<8|e[n],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o})(r,t,e),decode:r=>((e,t,r)=>{const n={};for(let e=0;e<t.length;++e)n[t[e]]=e;let i=e.length;for(;"="===e[i-1];)--i;const o=new Uint8Array(i*r/8|0);let s=0,a=0,l=0;for(let t=0;t<i;++t){const i=n[e[t]];if(i===undefined)throw new SyntaxError("Invalid character "+e[t]);a=a<<r|i,s+=r,s>=8&&(s-=8,o[l++]=255&a>>s)}if(s>=r||255&a<<8-s)throw new SyntaxError("Unexpected end of data");return o})(r,t,e)})}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/rfc4648.js"}],[4944,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=new TextDecoder,i=new TextEncoder;t.exports={decodeText:e=>n.decode(e),encodeText:e=>i.encode(e),concat:function(e,t){const r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/util.js"}],[4945,{"./util/as-uint8array.js":4949},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("./util/as-uint8array.js");r.alloc=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.alloc?n.asUint8Array(globalThis.Buffer.alloc(e)):new Uint8Array(e)},r.allocUnsafe=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?n.asUint8Array(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/alloc.js"}],[4946,{"./alloc.js":4945,"./util/as-uint8array.js":4949},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("./alloc.js"),i=e("./util/as-uint8array.js");r.concat=function(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const r=n.allocUnsafe(t);let o=0;for(const t of e)r.set(t,o),o+=t.length;return i.asUint8Array(r)}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/concat.js"}],[4947,{"./util/as-uint8array.js":4949,"./util/bases.js":4950},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("./util/bases.js"),i=e("./util/as-uint8array.js");r.fromString=function(e,t="utf8"){const r=n[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${e}`):i.asUint8Array(globalThis.Buffer.from(e,"utf-8"))}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/from-string.js"}],[4948,{"./util/bases.js":4950},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("./util/bases.js");r.toString=function(e,t="utf8"){const r=n[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/to-string.js"}],[4949,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.asUint8Array=function(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/util/as-uint8array.js"}],[495,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"TokensController")||!(0,n.isObject)(e.TokensController)||!(0,n.isObject)(e.TokensController.allTokens))return;const t=["0x1"];for(const r of t){const t=e.TokensController.allTokens[r];if((0,n.isObject)(t))for(const[e,r]of Object.entries(t))Array.isArray(r)&&(t[e]=r.filter(e=>"0x0000000000000000000000000000000000000000"!==(null==e?void 0:e.address)))}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=133.2}}},{package:"$root$",file:"app/scripts/migrations/133.2.ts"}],[4950,{"../alloc.js":4945,"multiformats/basics":4966},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("multiformats/basics"),i=e("../alloc.js");function o(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const s=o("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>(new TextEncoder).encode(e.substring(1))),a=o("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=i.allocUnsafe(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),l={utf8:s,"utf-8":s,hex:n.bases.base16,latin1:a,ascii:a,binary:a,...n.bases};t.exports=l}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/util/bases.js"}],[4951,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});t.exports={baseTable:n}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/generated-table.js"}],[4952,{"./maps":4953,"./util":4954,"uint8arrays/concat":4946,varint:5727},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("varint"),{concat:i}=e("uint8arrays/concat"),o=e("./util"),{nameToVarint:s,constantToCode:a,nameToCode:l,codeToName:u}=e("./maps");function c(e){const t=n.decode(e),r=u[t];if(r===undefined)throw new Error(`Code "${t}" not found`);return r}function f(e){return u[e]}function d(e){const t=l[e];if(t===undefined)throw new Error(`Codec "${e}" not found`);return t}function p(e){return n.decode(e)}function h(e){const t=s[e];if(t===undefined)throw new Error(`Codec "${e}" not found`);return t}function b(e){return o.varintEncode(e)}t.exports={addPrefix:function(e,t){let r;if(e instanceof Uint8Array)r=o.varintUint8ArrayEncode(e);else{if(!s[e])throw new Error("multicodec not recognized");r=s[e]}return i([r,t],r.length+t.length)},rmPrefix:function(e){return n.decode(e),e.slice(n.decode.bytes)},getNameFromData:c,getNameFromCode:f,getCodeFromName:d,getCodeFromData:p,getVarintFromName:h,getVarintFromCode:b,getCodec:function(e){return c(e)},getName:function(e){return f(e)},getNumber:function(e){return d(e)},getCode:function(e){return p(e)},getCodeVarint:function(e){return h(e)},getVarint:function(e){return Array.from(b(e))},...a,nameToVarint:s,nameToCode:l,codeToName:u}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/index.js"}],[4953,{"./generated-table":4951,"./util":4954},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{baseTable:n}=e("./generated-table"),i=e("./util").varintEncode,o={},s={},a={};for(const e in n){const t=e,r=n[t];o[t]=i(r);s[t.toUpperCase().replace(/-/g,"_")]=r,a[r]||(a[r]=t)}Object.freeze(o),Object.freeze(s),Object.freeze(a);const l=Object.freeze(n);t.exports={nameToVarint:o,constantToCode:s,nameToCode:l,codeToName:a}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/maps.js"}],[4954,{"uint8arrays/from-string":4947,"uint8arrays/to-string":4948,varint:5727},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("varint"),{toString:i}=e("uint8arrays/to-string"),{fromString:o}=e("uint8arrays/from-string");function s(e){return parseInt(i(e,"base16"),16)}t.exports={numberToUint8Array:function(e){let t=e.toString(16);t.length%2==1&&(t="0"+t);return o(t,"base16")},uint8ArrayToNumber:s,varintUint8ArrayEncode:function(e){return Uint8Array.from(n.encode(s(e)))},varintEncode:function(e){return Uint8Array.from(n.encode(e))}}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/util.js"}],[4956,{"./base.js":4955},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("./base.js").baseX({prefix:"9",name:"base10",alphabet:"0123456789"});r.base10=n}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base10.js"}],[4957,{"./base.js":4955},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("./base.js");const i=n.rfc4648({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),o=n.rfc4648({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});r.base16=i,r.base16upper=o}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base16.js"}],[4958,{"./base.js":4955},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("./base.js").rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});r.base2=n}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base2.js"}],[4959,{"./base.js":4955},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("./base.js");const i=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),o=i.reduce((e,t,r)=>(e[r]=t,e),[]),s=i.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);const a=n.from({prefix:"🚀",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=o[t],"")},decode:function(e){const t=[];for(const r of e){const e=s[r.codePointAt(0)];if(e===undefined)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});r.base256emoji=a}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base256emoji.js"}],[496,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"NotificationController")&&delete e.NotificationController}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=133}}},{package:"$root$",file:"app/scripts/migrations/133.ts"}],[4961,{"./base.js":4955},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("./base.js");const i=n.baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),o=n.baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});r.base36=i,r.base36upper=o}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base36.js"}],[4963,{"./base.js":4955},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("./base.js");const i=n.rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),o=n.rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),s=n.rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),a=n.rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});r.base64=i,r.base64pad=o,r.base64url=s,r.base64urlpad=a}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base64.js"}],[4964,{"./base.js":4955},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("./base.js").rfc4648({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});r.base8=n}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/base8.js"}],[4965,{"../bytes.js":4967,"./base.js":4955},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("./base.js"),i=e("../bytes.js");const o=n.from({prefix:"\0",name:"identity",encode:e=>i.toString(e),decode:e=>i.fromString(e)});r.identity=o}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/bases/identity.js"}],[4966,{"./bases/base10.js":4956,"./bases/base16.js":4957,"./bases/base2.js":4958,"./bases/base256emoji.js":4959,"./bases/base32.js":4960,"./bases/base36.js":4961,"./bases/base58.js":4962,"./bases/base64.js":4963,"./bases/base8.js":4964,"./bases/identity.js":4965,"./bytes.js":4967,"./cid.js":4968,"./codecs/json.js":4969,"./codecs/raw.js":4970,"./hashes/digest.js":4971,"./hashes/hasher.js":4972,"./hashes/identity.js":4973,"./hashes/sha2.js":4974,"./index.js":4975,"./varint.js":4976},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("./bases/identity.js"),i=e("./bases/base2.js"),o=e("./bases/base8.js"),s=e("./bases/base10.js"),a=e("./bases/base16.js"),l=e("./bases/base32.js"),u=e("./bases/base36.js"),c=e("./bases/base58.js"),f=e("./bases/base64.js"),d=e("./bases/base256emoji.js"),p=e("./hashes/sha2.js"),h=e("./hashes/identity.js"),b=e("./codecs/raw.js"),m=e("./codecs/json.js");e("./index.js");var v=e("./cid.js"),y=e("./hashes/hasher.js"),g=e("./hashes/digest.js"),w=e("./varint.js"),k=e("./bytes.js");const j={...n,...i,...o,...s,...a,...l,...u,...c,...f,...d},_={...p,...h},O={raw:b,json:m};r.CID=v.CID,r.hasher=y,r.digest=g,r.varint=w,r.bytes=k,r.bases=j,r.codecs=O,r.hashes=_}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/basics.js"}],[4969,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});const n=new TextEncoder,i=new TextDecoder;r.code=512,r.decode=e=>JSON.parse(i.decode(e)),r.encode=e=>n.encode(JSON.stringify(e)),r.name="json"}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/codecs/json.js"}],[497,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,n.hasProperty)(e,"AccountsController")){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: Missing AccountsController.`)),e}const i=e.AccountsController;if(!(0,n.isObject)(i)){var s,a;return null===(s=global.sentry)||void 0===s||null===(a=s.captureException)||void 0===a||a.call(s,new Error(`Migration ${o}: AccountsController is type '${typeof i}', expected object.`)),e}if(!(0,n.hasProperty)(i,"internalAccounts")||!(0,n.isObject)(i.internalAccounts)){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${o}: Missing or invalid AccountsController.internalAccounts.`)),e}const{internalAccounts:c}=i;if(!(0,n.hasProperty)(c,"selectedAccount")||"string"!=typeof c.selectedAccount||""===c.selectedAccount){var f,d;return null===(f=global.sentry)||void 0===f||null===(d=f.captureException)||void 0===d||d.call(f,new Error(`Migration ${o}: Invalid or missing selectedAccount.`)),e}if(!(0,n.hasProperty)(c,"accounts")||!(0,n.isObject)(c.accounts)){var p,h;return null===(p=global.sentry)||void 0===p||null===(h=p.captureException)||void 0===h||h.call(p,new Error(`Migration ${o}: Missing or invalid internalAccounts.accounts.`)),e}const{accounts:b}=c,m=c.selectedAccount;if(!(0,n.hasProperty)(b,m)||!(0,n.isObject)(b[m])){var v,y;return null===(v=global.sentry)||void 0===v||null===(y=v.captureException)||void 0===y||y.call(v,new Error(`Migration ${o}: Selected account entry not found in internalAccounts.accounts.`)),e}const g=b[m];if(!(0,n.hasProperty)(g,"address")||"string"!=typeof g.address||""===g.address){var w,k;return null===(w=global.sentry)||void 0===w||null===(k=w.captureException)||void 0===k||k.call(w,new Error(`Migration ${o}: Invalid or missing address in selected account entry.`)),e}const j=g.address;if(!(0,n.hasProperty)(e,"NetworkController")){var _,O;return null===(_=global.sentry)||void 0===_||null===(O=_.captureException)||void 0===O||O.call(_,new Error(`Migration ${o}: Missing NetworkController.`)),e}const T=e.NetworkController;if(!(0,n.isObject)(T)){var S,x;return null===(S=global.sentry)||void 0===S||null===(x=S.captureException)||void 0===x||x.call(S,new Error(`Migration ${o}: NetworkController is type '${typeof T}', expected object.`)),e}if(!(0,n.hasProperty)(T,"selectedNetworkClientId")||"string"!=typeof T.selectedNetworkClientId||!T.selectedNetworkClientId){var E,P;return null===(E=global.sentry)||void 0===E||null===(P=E.captureException)||void 0===P||P.call(E,new Error(`Migration ${o}: Invalid or missing selectedNetworkClientId.`)),e}const{selectedNetworkClientId:C}=T;if(!(0,n.hasProperty)(T,"networkConfigurationsByChainId")||!(0,n.isObject)(T.networkConfigurationsByChainId)){var A,M;return null===(A=global.sentry)||void 0===A||null===(M=A.captureException)||void 0===M||M.call(A,new Error(`Migration ${o}: Missing or invalid networkConfigurationsByChainId.`)),e}const{networkConfigurationsByChainId:I}=T,N=function(e,t){var r,n;for(const[r,n]of Object.entries(e))if(Array.isArray(n.rpcEndpoints))for(const e of n.rpcEndpoints)if(e.networkClientId===t)return r;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${o}: No chainId found for "${t}".`)),undefined}(I,C);if(!N){var R,F;return null===(R=global.sentry)||void 0===R||null===(F=R.captureException)||void 0===F||F.call(R,new Error(`Migration ${o}: Could not find chainId for networkClientId '${C}'.`)),e}if(!(0,n.hasProperty)(e,"TokensController")){var $,B;return null===($=global.sentry)||void 0===$||null===(B=$.captureException)||void 0===B||B.call($,new Error(`Migration ${o}: Missing TokensController.`)),e}const U=e.TokensController;if(!(0,n.isObject)(U)){var L,D;return null===(L=global.sentry)||void 0===L||null===(D=L.captureException)||void 0===D||D.call(L,new Error(`Migration ${o}: TokensController is type '${typeof U}', expected object.`)),e}if(!(0,n.hasProperty)(U,"allTokens")||!(0,n.isObject)(U.allTokens)){var z,W;return null===(z=global.sentry)||void 0===z||null===(W=z.captureException)||void 0===W||W.call(z,new Error(`Migration ${o}: Missing or invalid TokensController.allTokens.`)),e}const{tokens:q}=U,{allTokens:H}=U,V=H[N];if(Array.isArray(q)&&q.length>0&&!(0,n.isObject)(V)){var G,K;return null===(G=global.sentry)||void 0===G||null===(K=G.captureException)||void 0===K||K.call(G,new Error(`Migration ${o}: tokens is not an empty array, but allTokensForChain is not an object.`)),e}if(!(0,n.isObject)(V))return e;const J=V[j];if(!Array.isArray(J))return e;return U.tokens=J,e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=134.1}}},{package:"$root$",file:"app/scripts/migrations/134.1.ts"}],[4970,{"../bytes.js":4967},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("../bytes.js");r.code=85,r.decode=e=>n.coerce(e),r.encode=e=>n.coerce(e),r.name="raw"}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/codecs/raw.js"}],[4972,{"./digest.js":4971},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("./digest.js");class i{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?n.create(this.code,t):t.then(e=>n.create(this.code,e))}throw Error("Unknown type, must be binary type")}}r.Hasher=i,r.from=({name:e,code:t,encode:r})=>new i(e,t,r)}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/hashes/hasher.js"}],[4973,{"../bytes.js":4967,"./digest.js":4971},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("../bytes.js"),i=e("./digest.js");const o=n.coerce,s={code:0,name:"identity",encode:o,digest:e=>i.create(0,o(e))};r.identity=s}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/hashes/identity.js"}],[4974,{"./hasher.js":4972},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("./hasher.js");const i=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),o=n.from({name:"sha2-256",code:18,encode:i("SHA-256")}),s=n.from({name:"sha2-512",code:19,encode:i("SHA-512")});r.sha256=o,r.sha512=s}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/hashes/sha2-browser.js"}],[4975,{"./bytes.js":4967,"./cid.js":4968,"./hashes/digest.js":4971,"./hashes/hasher.js":4972,"./varint.js":4976},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("./cid.js"),i=e("./varint.js"),o=e("./bytes.js"),s=e("./hashes/hasher.js"),a=e("./hashes/digest.js");r.CID=n.CID,r.varint=i,r.bytes=o,r.hasher=s,r.digest=a}}},{package:"@metamask/assets-controllers>multiformats",file:"node_modules/multiformats/cjs/src/index.js"}],[4979,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}}}},{package:"@ensdomains/content-hash>cids>multihashes>uint8arrays",file:"node_modules/multihashes/node_modules/uint8arrays/concat.js"}],[498,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"AppStateController")&&(0,n.isObject)(e.AppStateController)&&(0,n.hasProperty)(e.AppStateController,"usedNetworks")&&(console.log("Removing usedNetworks from AppStateController"),delete e.AppStateController.usedNetworks)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=134}}},{package:"$root$",file:"app/scripts/migrations/134.ts"}],[4980,{multibase:4942},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{encoding:n}=e("multibase"),i=new TextEncoder;t.exports=function(e,t="utf8"){return"utf8"===t||"utf-8"===t?i.encode(e):"ascii"===t?function(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(e):n(t).decode(e)}}}},{package:"@ensdomains/content-hash>cids>multihashes>uint8arrays",file:"node_modules/multihashes/node_modules/uint8arrays/from-string.js"}],[4981,{multibase:4942},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{encoding:n}=e("multibase"),i=new TextDecoder("utf8");t.exports=function(e,t="utf8"){return"utf8"===t||"utf-8"===t?i.decode(e):"ascii"===t?function(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}(e):n(t).encode(e)}}}},{package:"@ensdomains/content-hash>cids>multihashes>uint8arrays",file:"node_modules/multihashes/node_modules/uint8arrays/to-string.js"}],[4982,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r){var o,s=0,a=0,l=r=r||0,u=t.length;do{if(l>=u)throw e.bytes=0,new RangeError("Could not decode varint");o=t[l++],s+=a<28?(o&i)<<a:(o&i)*Math.pow(2,a),a+=7}while(o>=n);return e.bytes=l-r,s};var n=128,i=127}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/decode.js"}],[4983,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r,s){r=r||[];var a=s=s||0;for(;t>=o;)r[s++]=255&t|n,t/=128;for(;t&i;)r[s++]=255&t|n,t>>>=7;return r[s]=0|t,e.bytes=s-a+1,r};var n=128,i=-128,o=Math.pow(2,31)}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/encode.js"}],[4984,{"./decode.js":4982,"./encode.js":4983,"./length.js":4985},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={encode:e("./encode.js"),decode:e("./decode.js"),encodingLength:e("./length.js")}}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/index.js"}],[4985,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=Math.pow(2,7),i=Math.pow(2,14),o=Math.pow(2,21),s=Math.pow(2,28),a=Math.pow(2,35),l=Math.pow(2,42),u=Math.pow(2,49),c=Math.pow(2,56),f=Math.pow(2,63);t.exports=function(e){return e<n?1:e<i?2:e<o?3:e<s?4:e<a?5:e<l?6:e<u?7:e<c?8:e<f?9:10}}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/length.js"}],[4986,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});t.exports={names:n}}}},{package:"@ensdomains/content-hash>cids>multihashes",file:"node_modules/multihashes/src/constants.js"}],[4987,{"./constants":4986,multibase:4942,"uint8arrays/concat":4979,"uint8arrays/from-string":4980,"uint8arrays/to-string":4981,varint:4984},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("multibase"),i=e("varint"),{names:o}=e("./constants"),s=e("uint8arrays/to-string"),a=e("uint8arrays/from-string"),l=e("uint8arrays/concat"),u={};for(const e in o){const t=e;u[o[t]]=t}function c(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const t=i.decode(e);if(!p(t))throw new Error(`multihash unknown function code: 0x${t.toString(16)}`);e=e.slice(i.decode.bytes);const r=i.decode(e);if(r<0)throw new Error(`multihash invalid length: ${r}`);if((e=e.slice(i.decode.bytes)).length!==r)throw new Error(`multihash length inconsistent: 0x${s(e,"base16")}`);return{code:t,name:u[t],length:r,digest:e}}function f(e){let t=e;if("string"==typeof e){if(o[e]===undefined)throw new Error(`Unrecognized hash function named: ${e}`);t=o[e]}if("number"!=typeof t)throw new Error(`Hash function code should be a number. Got: ${t}`);if(u[t]===undefined&&!d(t))throw new Error(`Unrecognized function code: ${t}`);return t}function d(e){return e>0&&e<16}function p(e){return!!d(e)||!!u[e]}function h(e){c(e)}Object.freeze(u),t.exports={names:o,codes:u,toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return s(e,"base16")},fromHexString:function(e){return a(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return s(n.encode("base58btc",e)).slice(1)},fromB58String:function(e){const t=e instanceof Uint8Array?s(e):e;return n.decode("z"+t)},decode:c,encode:function(e,t,r){if(!e||t===undefined)throw new Error("multihash encode requires at least two args: digest, code");const n=f(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==r&&(r=e.length),r&&e.length!==r)throw new Error("digest length should be equal to specified length.");const o=i.encode(n),s=i.encode(r);return l([o,s,e],o.length+s.length+e.length)},coerceCode:f,isAppCode:d,validate:h,prefix:function(e){return h(e),e.subarray(0,2)},isValidCode:p}}}},{package:"@ensdomains/content-hash>cids>multihashes",file:"node_modules/multihashes/src/index.js"}],[499,{"../../../shared/lib/manifestFlags":5847,"@metamask/transaction-controller":2833,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=a,function(e){var t,r;const i=(0,s.getManifestFlags)();if(!0===(null===(t=i.testing)||void 0===t?void 0:t.disableSmartTransactionsOverride))return e;if(!(0,n.hasProperty)(e,"PreferencesController")||!(0,n.isObject)(e.PreferencesController)){var a,l;return null===(a=global.sentry)||void 0===a||null===(l=a.captureException)||void 0===l||l.call(a,new Error("Invalid PreferencesController state: "+typeof e.PreferencesController)),e}const{PreferencesController:u}=e,c=null===(r=u.preferences)||void 0===r?void 0:r.smartTransactionsOptInStatus;c===undefined||!1===c&&!function(e){var t;const r=null==e||null===(t=e.SmartTransactionsController)||void 0===t||null===(t=t.smartTransactionsState)||void 0===t?void 0:t.smartTransactions;if(!(0,n.isObject)(r))return!1;return(r[o.CHAIN_IDS.MAINNET]||[]).length>0}(e)?e.PreferencesController.preferences={...e.PreferencesController.preferences,smartTransactionsOptInStatus:!0,smartTransactionsMigrationApplied:!0}:e.PreferencesController.preferences={...e.PreferencesController.preferences,smartTransactionsMigrationApplied:!1}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("@metamask/transaction-controller"),s=e("../../../shared/lib/manifestFlags");const a=r.version=135}}},{package:"$root$",file:"app/scripts/migrations/135.ts"}],[5,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.COOKIE_ID_MARKETING_WHITELIST_ORIGINS=r.COOKIE_ID_MARKETING_WHITELIST=void 0;const n=r.COOKIE_ID_MARKETING_WHITELIST=["https://metamask.io","https://learn.metamask.io","https://mmi-support.zendesk.com","https://community.metamask.io","https://support.metamask.io"];r.COOKIE_ID_MARKETING_WHITELIST_ORIGINS=n.map(e=>new URL(e).origin)}}},{package:"$root$",file:"app/scripts/constants/marketing-site-whitelist.ts"}],[50,{"../../../../shared/modules/environment":5879,"@metamask/gator-permissions-controller":1998,"@metamask/snaps-utils":2755},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.GatorPermissionsControllerInit=void 0;var n=e("@metamask/gator-permissions-controller"),i=e("@metamask/snaps-utils"),o=e("../../../../shared/modules/environment");const s=()=>{const e="npm:@metamask/gator-permissions-snap";if(e!==undefined)try{(0,i.assertIsValidSnapId)(e)}catch(e){throw new Error("GATOR_PERMISSIONS_PROVIDER_SNAP_ID must be set to a valid snap id",{cause:e})}const t={isGatorPermissionsEnabled:(0,o.isGatorPermissionsFeatureEnabled)()};return e&&(t.gatorPermissionsProviderSnapId=e),t};r.GatorPermissionsControllerInit=({controllerMessenger:e,persistedState:t})=>{const r=new n.GatorPermissionsController({messenger:e,state:{...s(),...t.GatorPermissionsController}});return{controller:r,api:{fetchAndUpdateGatorPermissions:r.fetchAndUpdateGatorPermissions.bind(r),addPendingRevocation:r.addPendingRevocation.bind(r),submitRevocation:r.submitRevocation.bind(r)}}}}}},{package:"$root$",file:"app/scripts/controller-init/gator-permissions/gator-permissions-controller-init.ts"}],[500,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.hasProperty)(e.PreferencesController,"useRequestQueue")&&delete e.PreferencesController.useRequestQueue}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=136}}},{package:"$root$",file:"app/scripts/migrations/136.ts"}],[501,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,t.data,t},r.version=void 0;var n=e("lodash");const i=r.version=137}}},{package:"$root$",file:"app/scripts/migrations/137.ts"}],[502,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;r&&(0,n.hasProperty)(r,"redesignedTransactionsEnabled")&&delete r.redesignedTransactionsEnabled}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=138}}},{package:"$root$",file:"app/scripts/migrations/138.ts"}],[503,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);t.meta.version=o;const r=function(e){const t=(0,i.cloneDeep)(e);if(!(0,n.hasProperty)(t,"PermissionController"))return e;if(!(0,n.isObject)(t.PermissionController)){var r,p;return null===(r=global.sentry)||void 0===r||null===(p=r.captureException)||void 0===p||p.call(r,new Error(`Migration ${o}: typeof state.PermissionController is ${typeof t.PermissionController}`)),e}if(!(0,n.hasProperty)(t,"NetworkController")||!(0,n.isObject)(t.NetworkController)){var h,b;return null===(h=global.sentry)||void 0===h||null===(b=h.captureException)||void 0===b||b.call(h,new Error(`Migration ${o}: typeof state.NetworkController is ${typeof t.NetworkController}`)),e}(0,n.hasProperty)(t,"SelectedNetworkController")||(console.warn(`Migration ${o}: typeof state.SelectedNetworkController is ${typeof t.SelectedNetworkController}`),t.SelectedNetworkController={domains:{}});if(!(0,n.isObject)(t.SelectedNetworkController)){var m,v;return null===(m=global.sentry)||void 0===m||null===(v=m.captureException)||void 0===v||v.call(m,new Error(`Migration ${o}: typeof state.SelectedNetworkController is ${typeof t.SelectedNetworkController}`)),e}const{NetworkController:{selectedNetworkClientId:y,networkConfigurationsByChainId:g},PermissionController:{subjects:w}}=t;if(!(0,n.isObject)(w)){var k,j;return null===(k=global.sentry)||void 0===k||null===(j=k.captureException)||void 0===j||j.call(k,new Error(`Migration ${o}: typeof state.PermissionController.subjects is ${typeof w}`)),e}if(!y||"string"!=typeof y){var _,O;return null===(_=global.sentry)||void 0===_||null===(O=_.captureException)||void 0===O||O.call(_,new Error(`Migration ${o}: typeof state.NetworkController.selectedNetworkClientId is ${typeof y}`)),e}if(!(0,n.isObject)(g)){var T,S;return null===(T=global.sentry)||void 0===T||null===(S=T.captureException)||void 0===S||S.call(T,new Error(`Migration ${o}: typeof state.NetworkController.networkConfigurationsByChainId is ${typeof t.NetworkController.networkConfigurationsByChainId}`)),e}if(!(0,n.hasProperty)(t.SelectedNetworkController,"domains")||!(0,n.isObject)(t.SelectedNetworkController.domains)){var x,E;const{domains:r}=t.SelectedNetworkController;return null===(x=global.sentry)||void 0===x||null===(E=x.captureException)||void 0===E||E.call(x,new Error(`Migration ${o}: typeof state.SelectedNetworkController.domains is ${typeof r}`)),e}const{domains:P}=t.SelectedNetworkController,C=(e,t)=>{let r,i=!1;for(const[t,u]of Object.entries(g)){var s,a;if((0,n.isObject)(u))if(Array.isArray(u.rpcEndpoints))for(const s of u.rpcEndpoints){var l;if((0,n.isObject)(s))s.networkClientId===e&&(r=t);else null===(l=global.sentry)||void 0===l||l.captureException(new Error(`Migration ${o}: typeof state.NetworkController.networkConfigurationsByChainId["${t}"].rpcEndpoints[] is ${typeof s}`)),i=!0}else null===(s=global.sentry)||void 0===s||s.captureException(new Error(`Migration ${o}: typeof state.NetworkController.networkConfigurationsByChainId["${t}"].rpcEndpoints is ${typeof u.rpcEndpoints}`)),i=!0;else null===(a=global.sentry)||void 0===a||a.captureException(new Error(`Migration ${o}: typeof state.NetworkController.networkConfigurationsByChainId["${t}"] is ${typeof u}`)),i=!0}if(i)return undefined;if(r)return r;const c=u.get(e);var f;c||(null===(f=global.sentry)||void 0===f||f.captureException(new Error(`Migration ${o}: No chainId found for ${t} "${e}"`)));return c},A=C(y,"selectedNetworkClientId");if(!A)return e;for(const[t,r]of Object.entries(w)){var M,I,N,R,F;if(!(0,n.isObject)(r))return null===(I=global.sentry)||void 0===I||null===(N=I.captureException)||void 0===N||N.call(I,new Error(`Migration ${o}: Invalid subject for origin "${t}" of type ${typeof r}`)),e;if(!(0,n.hasProperty)(r,"permissions")||!(0,n.isObject)(r.permissions))return null===(R=global.sentry)||void 0===R||null===(F=R.captureException)||void 0===F||F.call(R,new Error(`Migration ${o}: Invalid permissions for origin "${t}" of type ${typeof r.permissions}`)),e;const{permissions:i}=r;let u,p=[];const h=i[l.eth_accounts],b=i[l.permittedChains];if(!h){delete i[l.permittedChains];continue}var $,B;if(!f(h))return null===($=global.sentry)||void 0===$||null===(B=$.captureException)||void 0===B||B.call($,new Error(`Migration ${o}: Invalid state.PermissionController.subjects[${t}].permissions[${l.eth_accounts}]: ${JSON.stringify(h)}`)),e;const m=null===(M=h.caveats)||void 0===M||null===(M=M[0])||void 0===M?void 0:M.value;var U,L,D;if(!d(m))return null===(U=global.sentry)||void 0===U||null===(L=U.captureException)||void 0===L||L.call(U,new Error(`Migration ${o}: Invalid state.PermissionController.subjects[${t}].permissions[${l.eth_accounts}].caveats[0].value of type ${typeof(null===(D=h.caveats)||void 0===D||null===(D=D[0])||void 0===D?void 0:D.value)}`)),e;p=m,u=h,delete i[l.eth_accounts];let v=[];if(b){var z,W,q;if(!f(b))return null===(W=global.sentry)||void 0===W||null===(q=W.captureException)||void 0===q||q.call(W,new Error(`Migration ${o}: Invalid state.PermissionController.subjects[${t}].permissions[${l.permittedChains}]: ${JSON.stringify(b)}`)),e;const r=null===(z=b.caveats)||void 0===z||null===(z=z[0])||void 0===z?void 0:z.value;var H,V,G;if(!d(r))return null===(H=global.sentry)||void 0===H||null===(V=H.captureException)||void 0===V||V.call(H,new Error(`Migration ${o}: Invalid state.PermissionController.subjects[${t}].permissions[${l.permittedChains}].caveats[0].value of type ${typeof(null===(G=b.caveats)||void 0===G||null===(G=G[0])||void 0===G?void 0:G.value)}`)),e;v=r,u??(u=b),delete i[l.permittedChains]}if(0===v.length){v=[A];const e=P[t];if(e&&"string"==typeof e){const t=C(e,"networkClientIdForOrigin");t&&(v=[t])}}const y=c.some(e=>t.startsWith(e)),g={},w=y?[]:v.map(e=>`eip155:${(0,n.hexToBigInt)(e).toString(10)}`);w.push("wallet:eip155"),w.forEach(e=>{const t=p.map(t=>`${e}:${t}`);g[e]={accounts:t}});const k={...u,parentCapability:a,caveats:[{type:s,value:{requiredScopes:{},optionalScopes:g,isMultichainOrigin:!1}}]};i[a]=k}return t}(t.data);return t.data=r,t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=139,s="authorizedScopes",a="endowment:caip25",l={eth_accounts:"eth_accounts",permittedChains:"endowment:permitted-chains"},u=new Map([["sepolia","0xaa36a7"],["mainnet","0x1"],["linea-sepolia","0xe705"],["linea-mainnet","0xe708"]]),c=["npm:","local:"];function f(e){return(0,n.isObject)(e)&&null!==e&&(0,n.hasProperty)(e,"caveats")&&Array.isArray(e.caveats)&&e.caveats.length>0&&(0,n.hasProperty)(e,"date")&&"number"==typeof e.date&&(0,n.hasProperty)(e,"id")&&"string"==typeof e.id&&(0,n.hasProperty)(e,"invoker")&&"string"==typeof e.invoker&&(0,n.hasProperty)(e,"parentCapability")&&"string"==typeof e.parentCapability}function d(e){return Array.isArray(e)&&e.length>0&&e.every(e=>"string"==typeof e)}}}},{package:"$root$",file:"app/scripts/migrations/139.ts"}],[5035,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=(e,t,r,n)=>function(...i){return new(0,t.promiseModule)((o,s)=>{t.multiArgs?i.push((...e)=>{t.errorFirst?e[0]?s(e):(e.shift(),o(e)):o(e)}):t.errorFirst?i.push((e,t)=>{e?s(e):o(t)}):i.push(o);const a=this===r?n:this;Reflect.apply(e,a,i)})},i=new WeakMap;t.exports=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};const r=typeof e;if(null===e||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);const o=new WeakMap,s=new Proxy(e,{apply(e,r,i){const a=o.get(e);if(a)return Reflect.apply(a,r,i);const l=t.excludeMain?e:n(e,t,s,e);return o.set(e,l),Reflect.apply(l,r,i)},get(e,r){const a=e[r];if(!((e,r)=>{let n=i.get(e);if(n||(n={},i.set(e,n)),r in n)return n[r];const o=e=>"string"==typeof e||"symbol"==typeof r?r===e:e.test(r),s=Reflect.getOwnPropertyDescriptor(e,r),a=s===undefined||s.writable||s.configurable,l=(t.include?t.include.some(o):!t.exclude.some(o))&&a;return n[r]=l,l})(e,r)||a===Function.prototype[r])return a;const l=o.get(a);if(l)return l;if("function"==typeof a){const r=n(a,t,s,e);return o.set(a,r),r}return a}});return s}}}},{package:"pify",file:"node_modules/pify/index.js"}],[504,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"AppStateController")&&(0,n.isObject)(e.AppStateController)&&(delete e.AppStateController.collectiblesDropdownState,delete e.AppStateController.serviceWorkerLastActiveTime,delete e.AppStateController.showPortfolioTooltip);(0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(delete e.NetworkController.networkConfigurations,delete e.NetworkController.providerConfig);(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(delete e.PreferencesController.customNetworkListEnabled,delete e.PreferencesController.disabledRpcMethodPreferences,delete e.PreferencesController.eip1559V2Enabled,delete e.PreferencesController.hasDismissedOpenSeaToBlockaidBanner,delete e.PreferencesController.hasMigratedFromOpenSeaToBlockaid,delete e.PreferencesController.improvedTokenAllowanceEnabled,delete e.PreferencesController.infuraBlocked,delete e.PreferencesController.useCollectibleDetection,delete e.PreferencesController.useStaticTokenList)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=140}}},{package:"$root$",file:"app/scripts/migrations/140.ts"}],[505,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;r&&(0,n.hasProperty)(r,"redesignedConfirmationsEnabled")&&delete r.redesignedConfirmationsEnabled}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=141}}},{package:"$root$",file:"app/scripts/migrations/141.ts"}],[506,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;null==r||delete r.isRedesignedConfirmationsDeveloperEnabled}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=142}}},{package:"$root$",file:"app/scripts/migrations/142.ts"}],[507,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.MetaMetricsController;null==t||delete t.previousUserTraits}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=143.1}}},{package:"$root$",file:"app/scripts/migrations/143.1.ts"}],[5072,{"./src/index-light":5078},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("./src/index-light")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/light.js"}],[5073,{"./enum":5076,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r,i=e("./enum"),o=e("./util");function s(e,t,r,n){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof i){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),l=0;l<a.length;++l)s[a[l]]!==t.typeDefault||o||(e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',n,n,n),t.repeated||e("break"),o=!0),e("case%j:",a[l])("case %i:",s[a[l]])("m%s=%j",n,s[a[l]])("break");e("}")}else e('if(typeof d%s!=="object")',n)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",n,r,n);else{var u=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",n,n);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,u)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,u?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof i?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,o?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;n<t.length;++n){var a=t[n].resolve(),l=o.safeProp(a.name);a.map?(r("if(d%s){",l)('if(typeof d%s!=="object")',l)("throw TypeError(%j)",a.fullName+": object expected")("m%s={}",l)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",l),s(r,a,n,l+"[ks[i]]")("}")("}")):a.repeated?(r("if(d%s){",l)("if(!Array.isArray(d%s))",l)("throw TypeError(%j)",a.fullName+": array expected")("m%s=[]",l)("for(var i=0;i<d%s.length;++i){",l),s(r,a,n,l+"[i]")("}")("}")):(a.resolvedType instanceof i||r("if(d%s!=null){",l),s(r,a,n,l),a.resolvedType instanceof i||r("}"))}return r("return m")},n.toObject=function(e){var t=e.fieldsArray.slice().sort(o.compareFieldsById);if(!t.length)return o.codegen()("return {}");for(var r=o.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),n=[],s=[],l=[],u=0;u<t.length;++u)t[u].partOf||(t[u].resolve().repeated?n:t[u].map?s:l).push(t[u]);if(n.length){for(r("if(o.arrays||o.defaults){"),u=0;u<n.length;++u)r("d%s=[]",o.safeProp(n[u].name));r("}")}if(s.length){for(r("if(o.objects||o.defaults){"),u=0;u<s.length;++u)r("d%s={}",o.safeProp(s[u].name));r("}")}if(l.length){for(r("if(o.defaults){"),u=0;u<l.length;++u){var c=l[u],f=o.safeProp(c.name);if(c.resolvedType instanceof i)r("d%s=o.enums===String?%j:%j",f,c.resolvedType.valuesById[c.typeDefault],c.typeDefault);else if(c.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",c.typeDefault.low,c.typeDefault.high,c.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",f)("}else")("d%s=o.longs===String?%j:%i",f,c.typeDefault.toString(),c.typeDefault.toNumber());else if(c.bytes){var d="["+Array.prototype.slice.call(c.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",f,String.fromCharCode.apply(String,c.typeDefault))("else{")("d%s=%s",f,d)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",f,f)("}")}else r("d%s=%j",f,c.typeDefault)}r("}")}var p=!1;for(u=0;u<t.length;++u){c=t[u];var h=e._fieldsArray.indexOf(c);f=o.safeProp(c.name);c.map?(p||(p=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",f,f)("d%s={}",f)("for(var j=0;j<ks2.length;++j){"),a(r,c,h,f+"[ks2[j]]")("}")):c.repeated?(r("if(m%s&&m%s.length){",f,f)("d%s=[]",f)("for(var j=0;j<m%s.length;++j){",f),a(r,c,h,f+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",f,c.name),a(r,c,h,f),c.partOf&&r("if(o.oneofs)")("d%s=%j",o.safeProp(c.partOf.name),c.name)),r("}")}return r("return d")}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/converter.js"}],[5074,{"./enum":5076,"./types":5094,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){var t=o.codegen(["r","l"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");e.group&&t("if((t&7)===4)")("break");t("switch(t>>>3){");for(var r=0;r<e.fieldsArray.length;++r){var a=e._fieldsArray[r].resolve(),l=a.resolvedType instanceof n?"int32":a.type,u="m"+o.safeProp(a.name);t("case %i: {",a.id),a.map?(t("if(%s===util.emptyObject)",u)("%s={}",u)("var c2 = r.uint32()+r.pos"),i.defaults[a.keyType]!==undefined?t("k=%j",i.defaults[a.keyType]):t("k=null"),i.defaults[l]!==undefined?t("value=%j",i.defaults[l]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),i.basic[l]===undefined?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",l),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),i.long[a.keyType]!==undefined?t('%s[typeof k==="object"?util.longToHash(k):k]=value',u):t("%s[k]=value",u)):a.repeated?(t("if(!(%s&&%s.length))",u,u)("%s=[]",u),i.packed[l]!==undefined&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",u,l)("}else"),i.basic[l]===undefined?t(a.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",u,r):t("%s.push(r.%s())",u,l)):i.basic[l]===undefined?t(a.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",u,r):t("%s=r.%s()",u,l),t("break")("}")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var c=e._fieldsArray[r];c.required&&t("if(!m.hasOwnProperty(%j))",c.name)("throw util.ProtocolError(%j,{instance:m})",s(c))}return t("return m")};var n=e("./enum"),i=e("./types"),o=e("./util");function s(e){return"missing required '"+e.name+"'"}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/decoder.js"}],[5075,{"./enum":5076,"./types":5094,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){for(var t,r=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),a=e.fieldsArray.slice().sort(o.compareFieldsById),l=0;l<a.length;++l){var u=a[l].resolve(),c=e._fieldsArray.indexOf(u),f=u.resolvedType instanceof n?"int32":u.type,d=i.basic[f];t="m"+o.safeProp(u.name),u.map?(r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",t,u.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",t)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(u.id<<3|2)>>>0,8|i.mapKey[u.keyType],u.keyType),d===undefined?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",c,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|d,f,t),r("}")("}")):u.repeated?(r("if(%s!=null&&%s.length){",t,t),u.packed&&i.packed[f]!==undefined?r("w.uint32(%i).fork()",(u.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),d===undefined?s(r,u,c,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(u.id<<3|d)>>>0,f,t)),r("}")):(u.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,u.name),d===undefined?s(r,u,c,t):r("w.uint32(%i).%s(%s)",(u.id<<3|d)>>>0,f,t))}return r("return w")};var n=e("./enum"),i=e("./types"),o=e("./util");function s(e,t,r,n){return t.resolvedType.group?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/encoder.js"}],[5076,{"./namespace":5083,"./object":5084,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=s;var n=e("./object");((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var i=e("./namespace"),o=e("./util");function s(e,t,r,i,o,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=i,this.comments=o||{},this.valuesOptions=s,this.reserved=undefined,t)for(var a=Object.keys(t),l=0;l<a.length;++l)"number"==typeof t[a[l]]&&(this.valuesById[this.values[a[l]]=t[a[l]]]=a[l])}s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:undefined,"comment",t?this.comment:undefined,"comments",t?this.comments:undefined])},s.prototype.add=function(e,t,r,n){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if(this.values[e]!==undefined)throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(this.valuesById[t]!==undefined){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(this.valuesOptions===undefined&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/enum.js"}],[5077,{"./enum":5076,"./object":5084,"./types":5094,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=u;var n=e("./object");((u.prototype=Object.create(n.prototype)).constructor=u).className="Field";var i,o=e("./enum"),s=e("./types"),a=e("./util"),l=/^required|optional|repeated$/;function u(e,t,r,i,o,u,c){if(a.isObject(i)?(c=o,u=i,i=o=undefined):a.isObject(o)&&(c=u,u=o,o=undefined),n.call(this,e,u),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(i!==undefined&&!l.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(o!==undefined&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:undefined,this.type=r,this.id=t,this.extend=o||undefined,this.required="required"===i,this.optional=!this.required,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&s.long[r]!==undefined,this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=c}u.fromJSON=function(e,t){return new u(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(u.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),u.prototype.setOption=function(e,t,r){return"packed"===e&&(this._packed=null),n.prototype.setOption.call(this,e,t,r)},u.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["rule","optional"!==this.rule&&this.rule||undefined,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:undefined])},u.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=s.defaults[this.type])===undefined?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(this.options.packed===undefined||!this.resolvedType||this.resolvedType instanceof o)||delete this.options.packed,Object.keys(this.options).length||(this.options=undefined)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},u.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(i,o){a.decorateType(i.constructor).add(new u(o,e,t,r,{default:n}))}},u._configure=function(e){i=e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/field.js"}],[5078,{"./converter":5073,"./decoder":5074,"./encoder":5075,"./enum":5076,"./field":5077,"./index-minimal":5079,"./mapfield":5080,"./message":5081,"./method":5082,"./namespace":5083,"./object":5084,"./oneof":5085,"./root":5088,"./service":5092,"./type":5093,"./types":5094,"./util":5095,"./verifier":5098,"./wrappers":5099},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=t.exports=e("./index-minimal");n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=e("./encoder"),n.decoder=e("./decoder"),n.verifier=e("./verifier"),n.converter=e("./converter"),n.ReflectionObject=e("./object"),n.Namespace=e("./namespace"),n.Root=e("./root"),n.Enum=e("./enum"),n.Type=e("./type"),n.Field=e("./field"),n.OneOf=e("./oneof"),n.MapField=e("./mapfield"),n.Service=e("./service"),n.Method=e("./method"),n.Message=e("./message"),n.wrappers=e("./wrappers"),n.types=e("./types"),n.util=e("./util"),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/index-light.js"}],[5079,{"./reader":5086,"./reader_buffer":5087,"./roots":5089,"./rpc":5090,"./util/minimal":5097,"./writer":5100,"./writer_buffer":5101},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=e("./writer"),n.BufferWriter=e("./writer_buffer"),n.Reader=e("./reader"),n.BufferReader=e("./reader_buffer"),n.util=e("./util/minimal"),n.rpc=e("./rpc"),n.roots=e("./roots"),n.configure=i,i()}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/index-minimal.js"}],[508,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController;null==t||delete t.useNonceField}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=143}}},{package:"$root$",file:"app/scripts/migrations/143.ts"}],[5080,{"./field":5077,"./types":5094,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=s;var n=e("./field");((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var i=e("./types"),o=e("./util");function s(e,t,r,i,s,a){if(n.call(this,e,t,i,undefined,undefined,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:undefined])},s.prototype.resolve=function(){if(this.resolved)return this;if(i.mapKey[this.keyType]===undefined)throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(n,i){o.decorateType(n.constructor).add(new s(i,e,t,r))}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/mapfield.js"}],[5081,{"./util/minimal":5097},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("./util/minimal");function i(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)this[t[r]]=e[t[r]]}i.create=function(e){return this.$type.create(e)},i.encode=function(e,t){return this.$type.encode(e,t)},i.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},i.decode=function(e){return this.$type.decode(e)},i.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},i.verify=function(e){return this.$type.verify(e)},i.fromObject=function(e){return this.$type.fromObject(e)},i.toObject=function(e,t){return this.$type.toObject(e,t)},i.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/message.js"}],[5082,{"./object":5084,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=o;var n=e("./object");((o.prototype=Object.create(n.prototype)).constructor=o).className="Method";var i=e("./util");function o(e,t,r,o,s,a,l,u,c){if(i.isObject(s)?(l=s,s=a=undefined):i.isObject(a)&&(l=a,a=undefined),t!==undefined&&!i.isString(t))throw TypeError("type must be a string");if(!i.isString(r))throw TypeError("requestType must be a string");if(!i.isString(o))throw TypeError("responseType must be a string");n.call(this,e,l),this.type=t||"rpc",this.requestType=r,this.requestStream=!!s||undefined,this.responseType=o,this.responseStream=!!a||undefined,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=u,this.parsedOptions=c}o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["type","rpc"!==this.type&&this.type||undefined,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:undefined,"parsedOptions",this.parsedOptions])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/method.js"}],[5083,{"./field":5077,"./object":5084,"./oneof":5085,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=f;var n=e("./object");((f.prototype=Object.create(n.prototype)).constructor=f).className="Namespace";var i,o,s,a=e("./field"),l=e("./util"),u=e("./oneof");function c(e,t){if(!e||!e.length)return undefined;for(var r={},n=0;n<e.length;++n)r[e[n].name]=e[n].toJSON(t);return r}function f(e,t){n.call(this,e,t),this.nested=undefined,this._nestedArray=null}function d(e){return e._nestedArray=null,e}f.fromJSON=function(e,t){return new f(e,t.options).addJSON(t.nested)},f.arrayToJSON=c,f.isReservedId=function(e,t){if(e)for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>t)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r<e.length;++r)if(e[r]===t)return!0;return!1},Object.defineProperty(f.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=l.toArray(this.nested))}}),f.prototype.toJSON=function(e){return l.toObject(["options",this.options,"nested",c(this.nestedArray,e)])},f.prototype.addJSON=function(e){if(e)for(var t,r=Object.keys(e),n=0;n<r.length;++n)t=e[r[n]],this.add((t.fields!==undefined?i.fromJSON:t.values!==undefined?s.fromJSON:t.methods!==undefined?o.fromJSON:t.id!==undefined?a.fromJSON:f.fromJSON)(r[n],t));return this},f.prototype.get=function(e){return this.nested&&this.nested[e]||null},f.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof s)return this.nested[e].values;throw Error("no such enum: "+e)},f.prototype.add=function(e){if(!(e instanceof a&&e.extend!==undefined||e instanceof i||e instanceof u||e instanceof s||e instanceof o||e instanceof f))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t){if(!(t instanceof f&&e instanceof f)||t instanceof i||t instanceof o)throw Error("duplicate name '"+e.name+"' in "+this);for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}}else this.nested={};return this.nested[e.name]=e,e.onAdd(this),d(this)},f.prototype.remove=function(e){if(!(e instanceof n))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=undefined),e.onRemove(this),d(this)},f.prototype.define=function(e,t){if(l.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");for(var r=this;e.length>0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t<e.length;)e[t]instanceof f?e[t++].resolveAll():e[t++].resolve();return this.resolve()},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=undefined):t&&!Array.isArray(t)&&(t=[t]),l.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.get(e[0]);if(n){if(1===e.length){if(!t||t.indexOf(n.constructor)>-1)return n}else if(n instanceof f&&(n=n.lookup(e.slice(1),t,!0)))return n}else for(var i=0;i<this.nestedArray.length;++i)if(this._nestedArray[i]instanceof f&&(n=this._nestedArray[i].lookup(e,t,!0)))return n;return null===this.parent||r?null:this.parent.lookup(e,t)},f.prototype.lookupType=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such type: "+e);return t},f.prototype.lookupEnum=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},f.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[i,s]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},f.prototype.lookupService=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},f._configure=function(e,t,r){i=e,o=t,s=r}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/namespace.js"}],[5084,{"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=o,o.className="ReflectionObject";var n,i=e("./util");function o(e,t){if(!i.isString(e))throw TypeError("name must be a string");if(t&&!i.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(o.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),o.prototype.toJSON=function(){throw Error()},o.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof n&&t._handleAdd(this)},o.prototype.onRemove=function(e){var t=e.root;t instanceof n&&t._handleRemove(this),this.parent=null,this.resolved=!1},o.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},o.prototype.getOption=function(e){return this.options?this.options[e]:undefined},o.prototype.setOption=function(e,t,r){return r&&this.options&&this.options[e]!==undefined||((this.options||(this.options={}))[e]=t),this},o.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var n=this.parsedOptions;if(r){var o=n.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(o){var s=o[e];i.setProperty(s,r,t)}else(o={})[e]=i.setProperty({},r,t),n.push(o)}else{var a={};a[e]=t,n.push(a)}return this},o.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),n=0;n<r.length;++n)this.setOption(r[n],e[r[n]],t);return this},o.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},o._configure=function(e){n=e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/object.js"}],[5085,{"./field":5077,"./object":5084,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=s;var n=e("./object");((s.prototype=Object.create(n.prototype)).constructor=s).className="OneOf";var i=e("./field"),o=e("./util");function s(e,t,r,i){if(Array.isArray(t)||(r=t,t=undefined),n.call(this,e,r),t!==undefined&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=i}function a(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}s.fromJSON=function(e,t){return new s(e,t.oneof,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:undefined])},s.prototype.add=function(e){if(!(e instanceof i))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,a(this),this},s.prototype.remove=function(e){if(!(e instanceof i))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t<this.oneof.length;++t){var r=e.get(this.oneof[t]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}a(this)},s.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);n.prototype.onRemove.call(this,e)},s.d=function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){o.decorateType(t.constructor).add(new s(r,e)),Object.defineProperty(t,r,{get:o.oneOfGetter(e),set:o.oneOfSetter(e)})}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/oneof.js"}],[5086,{"./util/minimal":5097},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=l;var n,i=e("./util/minimal"),o=i.LongBits,s=i.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function l(e){this.buf=e,this.pos=0,this.len=e.length}var u,c="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new l(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new l(e);throw Error("illegal buffer")},f=function(){return i.Buffer?function(e){return(l.create=function(e){return i.Buffer.isBuffer(e)?new n(e):c(e)})(e)}:c};function d(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new o(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}l.create=f(),l.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,l.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return u}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return p(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|p(this.buf,this.pos+=4)},l.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},l.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},l.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},l.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},l.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},l.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},l._configure=function(e){n=e,l.create=f(),n._configure();var t=i.Long?"toLong":"toNumber";i.merge(l.prototype,{int64:function(){return d.call(this)[t](!1)},uint64:function(){return d.call(this)[t](!0)},sint64:function(){return d.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/reader.js"}],[5087,{"./reader":5086,"./util/minimal":5097},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=o;var n=e("./reader");(o.prototype=Object.create(n.prototype)).constructor=o;var i=e("./util/minimal");function o(e){n.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/reader_buffer.js"}],[5088,{"./enum":5076,"./field":5077,"./namespace":5083,"./oneof":5085,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=f;var n=e("./namespace");((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var i,o,s,a=e("./field"),l=e("./enum"),u=e("./oneof"),c=e("./util");function f(e){n.call(this,"",e),this.deferred=[],this.files=[]}function d(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},f.prototype.resolvePath=c.path.resolve,f.prototype.fetch=c.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=undefined);var i=this;if(!n)return c.asPromise(e,i,t,r);var a=n===d;function l(e,t){if(n){if(a)throw e;var r=n;n=null,r(e,t)}}function u(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(c.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),c.isString(t)){o.filename=e;var n,s=o(t,i,r),f=0;if(s.imports)for(;f<s.imports.length;++f)(n=u(s.imports[f])||i.resolvePath(e,s.imports[f]))&&p(n);if(s.weakImports)for(f=0;f<s.weakImports.length;++f)(n=u(s.weakImports[f])||i.resolvePath(e,s.weakImports[f]))&&p(n,!0)}else i.setOptions(t.options).addJSON(t.nested)}catch(e){l(e)}a||h||l(null,i)}function p(e,t){if(e=u(e)||e,!(i.files.indexOf(e)>-1))if(i.files.push(e),e in s)a?f(e,s[e]):(++h,setTimeout(function(){--h,f(e,s[e])}));else if(a){var r;try{r=c.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||l(e))}f(e,r)}else++h,i.fetch(e,function(r,o){--h,n&&(r?t?h||l(null,i):l(r):f(e,o))})}var h=0;c.isString(t)&&(t=[t]);for(var b,m=0;m<t.length;++m)(b=i.resolvePath("",t[m]))&&p(b);return a?i:(h||l(null,i),undefined)},f.prototype.loadSync=function(e,t){if(!c.isNode)throw Error("not supported");return this.load(e,t,d)},f.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return n.prototype.resolveAll.call(this)};var p=/^[A-Z]/;function h(e,t){var r=t.parent.lookup(t.extend);if(r){var n=new a(t.fullName,t.id,t.type,t.rule,undefined,t.options);return r.get(n.name)||(n.declaringField=t,t.extensionField=n,r.add(n)),!0}return!1}f.prototype._handleAdd=function(e){if(e instanceof a)e.extend===undefined||e.extensionField||h(0,e)||this.deferred.push(e);else if(e instanceof l)p.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof u)){if(e instanceof i)for(var t=0;t<this.deferred.length;)h(0,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);p.test(e.name)&&(e.parent[e.name]=e)}},f.prototype._handleRemove=function(e){if(e instanceof a){if(e.extend!==undefined)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof l)p.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r<e.nestedArray.length;++r)this._handleRemove(e._nestedArray[r]);p.test(e.name)&&delete e.parent[e.name]}},f._configure=function(e,t,r){i=e,o=t,s=r}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/root.js"}],[5089,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/roots.js"}],[509,{"../../../shared/constants/price-api-currencies":5774,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=s,function(e){if(!(0,n.hasProperty)(e,"CurrencyController")){var t,r;return void(null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${s}: Missing CurrencyController in state`)))}const l=e.CurrencyController;if(!(0,i.isObject)(l)){var u,c;return void(null===(u=global.sentry)||void 0===u||null===(c=u.captureException)||void 0===c||c.call(u,new Error(`Migration ${s}: Invalid CurrencyController state type '${typeof l}'`)))}const{currentCurrency:f}=l;if(!f){var d,p;return null===(d=global.sentry)||void 0===d||null===(p=d.captureException)||void 0===p||p.call(d,new Error(`Migration ${s}: Missing currentCurrency in CurrencyController, defaulting to ${a}`)),void(l.currentCurrency=a)}o.PRICE_API_CURRENCIES.some(e=>e===f)||(l.currentCurrency=a)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/constants/price-api-currencies");const s=r.version=144,a="usd"}}},{package:"$root$",file:"app/scripts/migrations/144.ts"}],[5090,{"./rpc/service":5091},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r.Service=e("./rpc/service")}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/rpc.js"}],[5091,{"../util/minimal":5097},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("../util/minimal");function i(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,r,i,o,s){if(!o)throw TypeError("request must be specified");var a=this;if(!s)return n.asPromise(e,a,t,r,i,o);if(!a.rpcImpl)return setTimeout(function(){s(Error("already ended"))},0),undefined;try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,r){if(e)return a.emit("error",e,t),s(e);if(null===r)return a.end(!0),undefined;if(!(r instanceof i))try{r=i[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",r,t),s(null,r)})}catch(e){return a.emit("error",e,t),setTimeout(function(){s(e)},0),undefined}},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/rpc/service.js"}],[5092,{"./method":5082,"./namespace":5083,"./rpc":5090,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=a;var n=e("./namespace");((a.prototype=Object.create(n.prototype)).constructor=a).className="Service";var i=e("./method"),o=e("./util"),s=e("./rpc");function a(e,t){n.call(this,e,t),this.methods={},this._methodsArray=null}function l(e){return e._methodsArray=null,e}a.fromJSON=function(e,t){var r=new a(e,t.options);if(t.methods)for(var n=Object.keys(t.methods),o=0;o<n.length;++o)r.add(i.fromJSON(n[o],t.methods[n[o]]));return t.nested&&r.addJSON(t.nested),r.comment=t.comment,r},a.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return o.toObject(["options",t&&t.options||undefined,"methods",n.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||undefined,"comment",r?this.comment:undefined])},Object.defineProperty(a.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=o.toArray(this.methods))}}),a.prototype.get=function(e){return this.methods[e]||n.prototype.get.call(this,e)},a.prototype.resolveAll=function(){for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return n.prototype.resolve.call(this)},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof i?(this.methods[e.name]=e,e.parent=this,l(this)):n.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof i){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,l(this)}return n.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var n,i=new s.Service(e,t,r),a=0;a<this.methodsArray.length;++a){var l=o.lcFirst((n=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"");i[l]=o.codegen(["r","c"],o.isReserved(l)?l+"_":l)("return this.rpcCall(m,q,s,r,c)")({m:n,q:n.resolvedRequestType.ctor,s:n.resolvedResponseType.ctor})}return i}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/service.js"}],[5093,{"./converter":5073,"./decoder":5074,"./encoder":5075,"./enum":5076,"./field":5077,"./mapfield":5080,"./message":5081,"./namespace":5083,"./oneof":5085,"./reader":5086,"./service":5092,"./util":5095,"./verifier":5098,"./wrappers":5099,"./writer":5100},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=y;var n=e("./namespace");((y.prototype=Object.create(n.prototype)).constructor=y).className="Type";var i=e("./enum"),o=e("./oneof"),s=e("./field"),a=e("./mapfield"),l=e("./service"),u=e("./message"),c=e("./reader"),f=e("./writer"),d=e("./util"),p=e("./encoder"),h=e("./decoder"),b=e("./verifier"),m=e("./converter"),v=e("./wrappers");function y(e,t){n.call(this,e,t),this.fields={},this.oneofs=undefined,this.extensions=undefined,this.reserved=undefined,this.group=undefined,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function g(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(y.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],n=r.id;if(this._fieldsById[n])throw Error("duplicate id "+n+" in "+this);this._fieldsById[n]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=d.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=d.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=y.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof u||((e.prototype=new u).constructor=e,d.merge(e.prototype,t)),e.$type=e.prototype.$type=this,d.merge(e,u,!0),this._ctor=e;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var n={};for(r=0;r<this.oneofsArray.length;++r)n[this._oneofsArray[r].resolve().name]={get:d.oneOfGetter(this._oneofsArray[r].oneof),set:d.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(e.prototype,n)}}}),y.generateConstructor=function(e){for(var t,r=d.codegen(["p"],e.name),n=0;n<e.fieldsArray.length;++n)(t=e._fieldsArray[n]).map?r("this%s={}",d.safeProp(t.name)):t.repeated&&r("this%s=[]",d.safeProp(t.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},y.fromJSON=function(e,t){var r=new y(e,t.options);r.extensions=t.extensions,r.reserved=t.reserved;for(var u=Object.keys(t.fields),c=0;c<u.length;++c)r.add((void 0!==t.fields[u[c]].keyType?a.fromJSON:s.fromJSON)(u[c],t.fields[u[c]]));if(t.oneofs)for(u=Object.keys(t.oneofs),c=0;c<u.length;++c)r.add(o.fromJSON(u[c],t.oneofs[u[c]]));if(t.nested)for(u=Object.keys(t.nested),c=0;c<u.length;++c){var f=t.nested[u[c]];r.add((f.id!==undefined?s.fromJSON:f.fields!==undefined?y.fromJSON:f.values!==undefined?i.fromJSON:f.methods!==undefined?l.fromJSON:n.fromJSON)(u[c],f))}return t.extensions&&t.extensions.length&&(r.extensions=t.extensions),t.reserved&&t.reserved.length&&(r.reserved=t.reserved),t.group&&(r.group=!0),t.comment&&(r.comment=t.comment),r},y.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return d.toObject(["options",t&&t.options||undefined,"oneofs",n.arrayToJSON(this.oneofsArray,e),"fields",n.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:undefined,"reserved",this.reserved&&this.reserved.length?this.reserved:undefined,"group",this.group||undefined,"nested",t&&t.nested||undefined,"comment",r?this.comment:undefined])},y.prototype.resolveAll=function(){for(var e=this.fieldsArray,t=0;t<e.length;)e[t++].resolve();var r=this.oneofsArray;for(t=0;t<r.length;)r[t++].resolve();return n.prototype.resolveAll.call(this)},y.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},y.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&e.extend===undefined){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},y.prototype.remove=function(e){if(e instanceof s&&e.extend===undefined){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},y.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},y.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},y.prototype.create=function(e){return new this.ctor(e)},y.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r<this.fieldsArray.length;++r)t.push(this._fieldsArray[r].resolve().resolvedType);this.encode=p(this)({Writer:f,types:t,util:d}),this.decode=h(this)({Reader:c,types:t,util:d}),this.verify=b(this)({types:t,util:d}),this.fromObject=m.fromObject(this)({types:t,util:d}),this.toObject=m.toObject(this)({types:t,util:d});var n=v[e];if(n){var i=Object.create(this);i.fromObject=this.fromObject,this.fromObject=n.fromObject.bind(i),i.toObject=this.toObject,this.toObject=n.toObject.bind(i)}return this},y.prototype.encode=function(e,t){return this.setup().encode(e,t)},y.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},y.prototype.decode=function(e,t){return this.setup().decode(e,t)},y.prototype.decodeDelimited=function(e){return e instanceof c||(e=c.create(e)),this.decode(e,e.uint32())},y.prototype.verify=function(e){return this.setup().verify(e)},y.prototype.fromObject=function(e){return this.setup().fromObject(e)},y.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},y.d=function(e){return function(t){d.decorateType(t,e)}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/type.js"}],[5094,{"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r,i=e("./util"),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function s(e,t){var r=0,n={};for(t|=0;r<e.length;)n[o[r+t]]=e[r++];return n}n.basic=s([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),n.defaults=s([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",i.emptyArray,null]),n.long=s([0,0,0,1,1],7),n.mapKey=s([0,0,0,5,5,0,0,0,1,1,0,2],2),n.packed=s([1,5,0,0,0,5,5,0,0,0,1,1,0])}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/types.js"}],[5095,{"./enum":5076,"./root":5088,"./roots":5089,"./type":5093,"./util/minimal":5097,"@protobufjs/codegen":2943,"@protobufjs/fetch":2945,"@protobufjs/path":2948},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i,o=t.exports=e("./util/minimal"),s=e("./roots");o.codegen=e("@protobufjs/codegen"),o.fetch=e("@protobufjs/fetch"),o.path=e("@protobufjs/path"),o.fs=o.inquire("fs"),o.toArray=function(e){if(e){for(var t=Object.keys(e),r=new Array(t.length),n=0;n<t.length;)r[n]=e[t[n++]];return r}return[]},o.toObject=function(e){for(var t={},r=0;r<e.length;){var n=e[r++],i=e[r++];i!==undefined&&(t[n]=i)}return t};var a=/\\/g,l=/"/g;o.isReserved=function(e){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(e)},o.safeProp=function(e){return!/^[$\w_]+$/.test(e)||o.isReserved(e)?'["'+e.replace(a,"\\\\").replace(l,'\\"')+'"]':"."+e},o.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var u=/_([a-z])/g;o.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(u,function(e,t){return t.toUpperCase()})},o.compareFieldsById=function(e,t){return e.id-t.id},o.decorateType=function(t,r){if(t.$type)return r&&t.$type.name!==r&&(o.decorateRoot.remove(t.$type),t.$type.name=r,o.decorateRoot.add(t.$type)),t.$type;n||(n=e("./type"));var i=new n(r||t.name);return o.decorateRoot.add(i),i.ctor=t,Object.defineProperty(t,"$type",{value:i,enumerable:!1}),Object.defineProperty(t.prototype,"$type",{value:i,enumerable:!1}),i};var c=0;o.decorateEnum=function(t){if(t.$type)return t.$type;i||(i=e("./enum"));var r=new i("Enum"+c++,t);return o.decorateRoot.add(r),Object.defineProperty(t,"$type",{value:r,enumerable:!1}),r},o.setProperty=function(e,t,r){if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return function e(t,r,n){var i=r.shift();if("__proto__"===i||"prototype"===i)return t;if(r.length>0)t[i]=e(t[i]||{},r,n);else{var o=t[i];o&&(n=[].concat(o).concat(n)),t[i]=n}return t}(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(e("./root")))}})}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/util.js"}],[5096,{"../util/minimal":5097},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("../util/minimal");function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new i(r,n)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(n.isString(e)){if(!n.Long)return i.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;i.fromHash=function(e){return e===s?o:new i((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/util/longbits.js"}],[5097,{"./longbits":5096,"@protobufjs/aspromise":2941,"@protobufjs/base64":2942,"@protobufjs/eventemitter":2944,"@protobufjs/float":2946,"@protobufjs/inquire":2947,"@protobufjs/pool":2949,"@protobufjs/utf8":2950},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r;function i(e,t,r){for(var n=Object.keys(t),i=0;i<n.length;++i)e[n[i]]!==undefined&&r||(e[n[i]]=t[n[i]]);return e}function o(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&i(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:undefined,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}n.asPromise=e("@protobufjs/aspromise"),n.base64=e("@protobufjs/base64"),n.EventEmitter=e("@protobufjs/eventemitter"),n.float=e("@protobufjs/float"),n.inquire=e("@protobufjs/inquire"),n.utf8=e("@protobufjs/utf8"),n.pool=e("@protobufjs/pool"),n.LongBits=e("./longbits"),n.isNode=Boolean("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),n.global=n.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},n.isString=function(e){return"string"==typeof e||e instanceof String},n.isObject=function(e){return e&&"object"==typeof e},n.isset=n.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=i,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&this[e[r]]!==undefined&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var e=n.Buffer;e?(n._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},n._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):n._Buffer_from=n._Buffer_allocUnsafe=null}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/util/minimal.js"}],[5098,{"./enum":5076,"./util":5095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){var t=i.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r=e.oneofsArray,n={};r.length&&t("var p={}");for(var l=0;l<e.fieldsArray.length;++l){var u=e._fieldsArray[l].resolve(),c="m"+i.safeProp(u.name);if(u.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",c,u.name),u.map)t("if(!util.isObject(%s))",c)("return%j",o(u,"object"))("var k=Object.keys(%s)",c)("for(var i=0;i<k.length;++i){"),a(t,u,"k[i]"),s(t,u,l,c+"[k[i]]")("}");else if(u.repeated)t("if(!Array.isArray(%s))",c)("return%j",o(u,"array"))("for(var i=0;i<%s.length;++i){",c),s(t,u,l,c+"[i]")("}");else{if(u.partOf){var f=i.safeProp(u.partOf.name);1===n[u.partOf.name]&&t("if(p%s===1)",f)("return%j",u.partOf.name+": multiple values"),n[u.partOf.name]=1,t("p%s=1",f)}s(t,u,l,c)}u.optional&&t("}")}return t("return null")};var n=e("./enum"),i=e("./util");function o(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function s(e,t,r,i){if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(%s){",i)("default:")("return%j",o(t,"enum value"));for(var s=Object.keys(t.resolvedType.values),a=0;a<s.length;++a)e("case %i:",t.resolvedType.values[s[a]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s);",r,i)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",i)("return%j",o(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",i,i,i,i)("return%j",o(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',i)("return%j",o(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',i)("return%j",o(t,"boolean"));break;case"string":e("if(!util.isString(%s))",i)("return%j",o(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',i,i,i)("return%j",o(t,"buffer"))}return e}function a(e,t,r){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",r)("return%j",o(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",o(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",o(t,"boolean key"))}return e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/verifier.js"}],[5099,{"./message":5081},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=r,i=e("./message");n[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var n="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return-1===n.indexOf("/")&&(n="/"+n),this.create({type_url:n,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="",n="";if(t&&t.json&&e.type_url&&e.value){n=e.type_url.substring(e.type_url.lastIndexOf("/")+1),r=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var o=this.lookup(n);o&&(e=o.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof i){var s=e.$type.toObject(e,t);return""===r&&(r="type.googleapis.com/"),n=r+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),s["@type"]=n,s}return this.toObject(e,t)}}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/wrappers.js"}],[51,{"@metamask/profile-sync-controller/auth":2356,"@metamask/profile-sync-controller/sdk":2377},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AuthenticationControllerInit=void 0;var n=e("@metamask/profile-sync-controller/auth"),i=e("@metamask/profile-sync-controller/sdk");r.AuthenticationControllerInit=({controllerMessenger:e,initMessenger:t,persistedState:r})=>({controller:new n.Controller({messenger:e,state:r.AuthenticationController,metametrics:{getMetaMetricsId:t.call.bind(t,"MetaMetricsController:getMetaMetricsId"),agent:i.Platform.EXTENSION}})})}}},{package:"$root$",file:"app/scripts/controller-init/identity/authentication-controller-init.ts"}],[510,{"@metamask/multichain-network-controller":2186,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=s,function(e){(0,i.hasProperty)(e,"NetworkOrderController")&&(0,i.isObject)(e.NetworkOrderController)&&Array.isArray(e.NetworkOrderController.orderedNetworkList)&&(e.NetworkOrderController.orderedNetworkList=e.NetworkOrderController.orderedNetworkList.map(({networkId:e})=>({networkId:(0,n.toEvmCaipChainId)(e)})))}(t.data),t},r.version=void 0;var n=e("@metamask/multichain-network-controller"),i=e("@metamask/utils"),o=e("lodash");const s=r.version=145}}},{package:"$root$",file:"app/scripts/migrations/145.ts"}],[5100,{"./util/minimal":5097},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=f;var n,i=e("./util/minimal"),o=i.LongBits,s=i.base64,a=i.utf8;function l(e,t,r){this.fn=e,this.len=t,this.next=undefined,this.val=r}function u(){}function c(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function f(){this.len=0,this.head=new l(u,0,0),this.tail=this.head,this.states=null}var d=function(){return i.Buffer?function(){return(f.create=function(){return new n})()}:function(){return new f}};function p(e,t,r){t[r]=255&e}function h(e,t){this.len=e,this.next=undefined,this.val=t}function b(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=d(),f.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new l(e,t,r),this.len+=t,this},h.prototype=Object.create(l.prototype),h.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(b,10,o.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=o.from(e);return this._push(b,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(b,t.length(),t)},f.prototype.bool=function(e){return this._push(p,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var v=i.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n<e.length;++n)t[r+n]=e[n]};f.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(p,1,0);if(i.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(v,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(p,1,0)},f.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new l(u,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new l(u,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=d(),n._configure()}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/writer.js"}],[5101,{"./util/minimal":5097,"./writer":5100},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=o;var n=e("./writer");(o.prototype=Object.create(n.prototype)).constructor=o;var i=e("./util/minimal");function o(){n.call(this)}function s(e,t,r){e.length<40?i.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n<e.length;)t[r++]=e[n++]}},o.prototype.bytes=function(e){i.isString(e)&&(e=i._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/writer_buffer.js"}],[511,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)&&(0,n.hasProperty)(e.NetworkController,"selectedNetworkClientId")){const t=e.NetworkController;Object.values(e.NetworkController.networkConfigurationsByChainId).flatMap(e=>(0,n.isObject)(e)&&Array.isArray(e.rpcEndpoints)?e.rpcEndpoints:[]).map(e=>e.networkClientId).includes(t.selectedNetworkClientId)||(e.NetworkController.selectedNetworkClientId="mainnet")}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=146.1}}},{package:"$root$",file:"app/scripts/migrations/146.1.ts"}],[5116,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)}}},{package:"@metamask/snaps-controllers>tar-stream>streamx>queue-tick",file:"node_modules/queue-tick/queue-microtask.js"}],[512,{"@metamask/controller-utils":1365,"@metamask/network-controller":2206,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,s.cloneDeep)(e);return t.meta.version=a,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)){const t="megaeth-testnet",r=o.ChainId[t],n={chainId:r,name:o.NetworkNickname[t],nativeCurrency:o.NetworksTicker[t],blockExplorerUrls:[o.BlockExplorerUrl[t]],defaultRpcEndpointIndex:0,defaultBlockExplorerUrlIndex:0,rpcEndpoints:[{networkClientId:t,type:i.RpcEndpointType.Custom,url:o.BUILT_IN_CUSTOM_NETWORKS_RPC.MEGAETH_TESTNET}]};e.NetworkController.networkConfigurationsByChainId[r]=n}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("@metamask/network-controller"),o=e("@metamask/controller-utils"),s=e("lodash");const a=r.version=146}}},{package:"$root$",file:"app/scripts/migrations/146.ts"}],[513,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"AuthenticationController")||!(0,n.isObject)(e.AuthenticationController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("Invalid AuthenticationController state: "+typeof e.AuthenticationController)),e}(0,n.hasProperty)(e.AuthenticationController,"sessionData")&&(0,n.isObject)(e.AuthenticationController.sessionData)&&(0,n.hasProperty)(e.AuthenticationController.sessionData,"accessToken")&&(e.AuthenticationController.sessionData=undefined,e.AuthenticationController.isSignedIn=!1)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=147}}},{package:"$root$",file:"app/scripts/migrations/147.ts"}],[514,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"AppStateController")&&(0,n.isObject)(e.AppStateController)&&delete e.AppStateController.enableEIP1559V2NoticeDismissed;(0,n.hasProperty)(e,"NftController")&&(0,n.isObject)(e.NftController)&&(delete e.NftController.collectibles,delete e.NftController.collectibleContracts);(0,n.hasProperty)(e,"PreferencesController")&&(0,n.isObject)(e.PreferencesController)&&(0,n.hasProperty)(e.PreferencesController,"preferences")&&(0,n.isObject)(e.PreferencesController.preferences)&&(delete e.PreferencesController.preferences.transactionSecurityCheckEnabled,delete e.PreferencesController.preferences.useRequestQueue)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=148}}},{package:"$root$",file:"app/scripts/migrations/148.ts"}],[515,{"@metamask/controller-utils":1365,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);t.meta.version=s;try{t.data=function(e){const t=(0,o.cloneDeep)(e);if(!(0,i.hasProperty)(t,"NetworkController"))throw new Error("newState.NetworkController must be present");if(!(0,i.isObject)(t.NetworkController))throw new Error("state.NetworkController must be an object, but is: "+typeof t.NetworkController);if(!(0,i.hasProperty)(t.NetworkController,"networkConfigurationsByChainId"))throw new Error("state.NetworkController.networkConfigurationsByChainId must be present");if(!(0,i.isObject)(t.NetworkController.networkConfigurationsByChainId))throw new Error("state.NetworkController.networkConfigurationsByChainId must be an object, but is: "+typeof t.NetworkController.networkConfigurationsByChainId);const{networkConfigurationsByChainId:r}=t.NetworkController;for(const[e,t]of Object.entries(r)){const o=(0,n.toHex)(e);if(!(0,i.isObject)(t))throw new Error(`state.NetworkController.networkConfigurationsByChainId has a network configuration under '${e}' that must be an object but is: ${typeof t}`);if("string"!=typeof t.chainId)throw new Error(`state.NetworkController.networkConfigurationsByChainId has a network configuration under '${e}' with a chainId that must be a string but is: ${typeof t.chainId}`);t.chainId=o,o!==e&&(delete r[e],r[o]=t)}return t}(t.data)}catch(e){var r,a;null===(r=global.sentry)||void 0===r||null===(a=r.captureException)||void 0===a||a.call(r,new Error(`Migration #${s}: ${(0,i.getErrorMessage)(e)}`))}return t},r.version=void 0;var n=e("@metamask/controller-utils"),i=e("@metamask/utils"),o=e("lodash");const s=r.version=149}}},{package:"$root$",file:"app/scripts/migrations/149.ts"}],[516,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;null==r||delete r.petnamesEnabled}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=150}}},{package:"$root$",file:"app/scripts/migrations/150.ts"}],[517,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController;null==t||delete t.incomingTransactionsPreferences}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=151}}},{package:"$root$",file:"app/scripts/migrations/151.ts"}],[518,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TESTNETS=void 0,r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"MultichainNetworkController")&&(0,n.isObject)(e.MultichainNetworkController)&&(0,n.isObject)(e.MultichainNetworkController.multichainNetworkConfigurationsByChainId)&&(e.MultichainNetworkController.multichainNetworkConfigurationsByChainId={...e.MultichainNetworkController.multichainNetworkConfigurationsByChainId,...s})}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=152.1,s=r.TESTNETS={"bip122:000000000933ea01ad0ee984209779ba":{chainId:"bip122:000000000933ea01ad0ee984209779ba",name:"Bitcoin Testnet",nativeCurrency:"bip122:000000000933ea01ad0ee984209779ba/slip44:0",isEvm:!1},"bip122:00000008819873e925422c1ff0f99f7c":{chainId:"bip122:00000008819873e925422c1ff0f99f7c",name:"Bitcoin Mutinynet",nativeCurrency:"bip122:00000008819873e925422c1ff0f99f7c/slip44:0",isEvm:!1},"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":{chainId:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",name:"Solana Testnet",nativeCurrency:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z/slip44:501",isEvm:!1},"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1":{chainId:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",name:"Solana Devnet",nativeCurrency:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1/slip44:501",isEvm:!1}}}}},{package:"$root$",file:"app/scripts/migrations/152.1.ts"}],[519,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;null==r||delete r.disabledUpgradeAccountsByChain,null==r||delete r.accountUpgradeDisabledChains}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=152.2}}},{package:"$root$",file:"app/scripts/migrations/152.2.ts"}],[52,{"../../../../shared/constants/metametrics":5764,"../../../../shared/lib/sentry":5857,"../../../../shared/lib/trace":5864,"@metamask/profile-sync-controller/user-storage":2366},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UserStorageControllerInit=void 0;var n=e("@metamask/profile-sync-controller/user-storage"),i=e("../../../../shared/constants/metametrics"),o=e("../../../../shared/lib/trace"),s=e("../../../../shared/lib/sentry");r.UserStorageControllerInit=e=>{const{controllerMessenger:t,initMessenger:r,persistedState:a}=e;return{controller:new n.Controller({messenger:t,state:a.UserStorageController,trace:o.trace,config:{contactSyncing:{onContactUpdated:e=>{r.call("MetaMetricsController:trackEvent",{category:i.MetaMetricsEventCategory.BackupAndSync,event:i.MetaMetricsEventName.ProfileActivityUpdated,properties:{profile_id:e,feature_name:"Backup And Sync",action:"Contacts Sync Contact Updated"}})},onContactDeleted:e=>{r.call("MetaMetricsController:trackEvent",{category:i.MetaMetricsEventCategory.BackupAndSync,event:i.MetaMetricsEventName.ProfileActivityUpdated,properties:{profile_id:e,feature_name:"Backup And Sync",action:"Contacts Sync Contact Deleted"}})},onContactSyncErroneousSituation:(e,t,n)=>{(0,s.captureException)(new Error(`Contact sync - ${t}`),n),r.call("MetaMetricsController:trackEvent",{category:i.MetaMetricsEventCategory.BackupAndSync,event:i.MetaMetricsEventName.ProfileActivityUpdated,properties:{profile_id:e,feature_name:"Backup And Sync",action:"Contacts Sync Erroneous Situation",additional_description:t}})}}}})}}}}},{package:"$root$",file:"app/scripts/controller-init/identity/user-storage-controller-init.ts"}],[520,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,i.hasProperty)(e,"PermissionController"))return e;if(!(0,i.isObject)(e.PermissionController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: typeof state.PermissionController is ${typeof e.PermissionController}`)),e}const{subjects:n}=e.PermissionController;if(!(0,i.isObject)(n)){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${o}: typeof state.PermissionController.subjects is ${typeof n}`)),e}for(const e of Object.values(n)){if(!(0,i.isObject)(e)||!(0,i.hasProperty)(e,"permissions")||!(0,i.isObject)(e.permissions))continue;const{permissions:t}=e,r=t[a];if(!(0,i.isObject)(r)||!Array.isArray(r.caveats))continue;const n=r.caveats.find(e=>e.type===s);n&&(0,i.isObject)(n.value)&&!(0,i.hasProperty)(n.value,"sessionProperties")&&(n.value.sessionProperties={})}}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=152,s="authorizedScopes",a="endowment:caip25"}}},{package:"$root$",file:"app/scripts/migrations/152.ts"}],[521,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,i.hasProperty)(e,"TokensController"))return console.warn("newState.TokensController is not present"),e;const t=e.TokensController;if(!(0,i.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${o}: TokensController is type '${typeof t}', expected object.`)),e}if(!(0,i.hasProperty)(e,"TokenListController"))return console.warn("newState.TokenListController is not present"),e;const s=e.TokenListController;if(!(0,i.isObject)(s)){var a,l;return null===(a=global.sentry)||void 0===a||null===(l=a.captureException)||void 0===l||l.call(a,new Error(`Migration ${o}: TokenListController is type '${typeof s}', expected object.`)),e}(0,i.hasProperty)(t,"tokens")&&delete t.tokens;(0,i.hasProperty)(t,"detectedTokens")&&delete t.detectedTokens;(0,i.hasProperty)(t,"ignoredTokens")&&delete t.ignoredTokens;(0,i.hasProperty)(s,"tokenList")&&delete s.tokenList;return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=153}}},{package:"$root$",file:"app/scripts/migrations/153.ts"}],[522,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){null==e||delete e.QueuedRequestController}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=154}}},{package:"$root$",file:"app/scripts/migrations/154.ts"}],[523,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,i.hasProperty)(e,"BridgeStatusController"))return e;const t=e.BridgeStatusController;if(!(0,i.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${o}: BridgeStatusController is type '${typeof t}', expected object.`)),e}(0,i.hasProperty)(t,"bridgeStatusState")&&(0,i.isObject)(t.bridgeStatusState)&&(e.BridgeStatusController={...t.bridgeStatusState},delete t.bridgeStatusState);return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=155}}},{package:"$root$",file:"app/scripts/migrations/155.ts"}],[524,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,t.data=function(e){const t=e;(0,n.hasProperty)(t,"KeyringController")&&(0,i.isObject)(t.KeyringController)&&(0,n.hasProperty)(t.KeyringController,"keyringsMetadata")&&delete t.KeyringController.keyringsMetadata;return t}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=156.1}}},{package:"$root$",file:"app/scripts/migrations/156.1.ts"}],[525,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);t.meta.version=o;try{t.data=function(e){const t=(0,i.cloneDeep)(e);if(!(0,n.hasProperty)(t,"NftController"))return console.warn("newState.NftController must be present"),e;if(!(0,n.isObject)(t.NftController))throw new Error("state.NftController must be an object, but is: "+typeof t.NftController);if(!(0,n.hasProperty)(t.NftController,"allNfts"))throw new Error("state.NftController.allNfts must be present");if(!(0,n.isObject)(t.NftController.allNfts))throw new Error("state.NftController.allNfts must be an object, but is: "+typeof t.NftController.allNfts);const{allNfts:r}=t.NftController;for(const e of Object.values(r))for(const[t,r]of Object.entries(e))r.forEach(e=>{null!=e&&e.chainId||(e.chainId=Number(t))});return t}(t.data)}catch(e){var r,s;null===(r=global.sentry)||void 0===r||null===(s=r.captureException)||void 0===s||s.call(r,new Error(`Migration #${o}: ${(0,n.getErrorMessage)(e)}`))}return t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=156}}},{package:"$root$",file:"app/scripts/migrations/156.ts"}],[5258,{"readable-stream":5273},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ReadableWebToNodeStream=void 0;const n=e("readable-stream");class i extends n.Readable{constructor(e){super(),this.bytesRead=0,this.released=!1,this.reader=e.getReader()}async _read(){if(this.released)return void this.push(null);this.pendingRead=this.reader.read();const e=await this.pendingRead;delete this.pendingRead,e.done||this.released?this.push(null):(this.bytesRead+=e.value.length,this.push(e.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}r.ReadableWebToNodeStream=i}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream",file:"node_modules/readable-web-to-node-stream/lib/index.js"}],[5259,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,i,s,a;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(r===undefined||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(l," ").concat(n," ").concat(o(t,"type"))}return a+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/errors-browser.js"}],[526,{"../../../shared/lib/sentry":5857,"@metamask/network-controller":2206,"@metamask/utils":2879,_process:5042,lodash:4789},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.INFURA_CHAINS_WITH_FAILOVERS=void 0,r.migrate=async function(e){const r=(0,o.cloneDeep)(e);r.meta.version=a;try{!function(e){0;if(!(0,i.hasProperty)(e,"NetworkController"))throw new Error("Missing NetworkController state");if(!(0,i.isObject)(e.NetworkController))throw new Error("Expected state.NetworkController to be an object, but is "+typeof e.NetworkController);if(!(0,i.hasProperty)(e.NetworkController,"networkConfigurationsByChainId"))throw new Error("Missing state.NetworkController.networkConfigurationsByChainId");if(!(0,i.isObject)(e.NetworkController.networkConfigurationsByChainId))throw new Error("Expected state.NetworkController.networkConfigurationsByChainId to be an object, but is "+typeof e.NetworkController.networkConfigurationsByChainId);const{networkConfigurationsByChainId:r}=e.NetworkController;for(const[e,s]of Object.entries(r)){const r=l.get(e);(0,i.isObject)(s)&&(0,i.hasProperty)(s,"rpcEndpoints")&&Array.isArray(s.rpcEndpoints)&&(s.rpcEndpoints=s.rpcEndpoints.map(e=>{if(!(0,i.isObject)(e)||!(0,i.hasProperty)(e,"url")||"string"!=typeof e.url||(0,i.hasProperty)(e,"failoverUrls")&&Array.isArray(e.failoverUrls)&&e.failoverUrls.length>0)return e;const s=e.url.match(new RegExp(`https://(.+?)\\.infura\\.io/v3/${(0,o.escapeRegExp)(t.env.INFURA_PROJECT_ID)}`,"u")),a=s&&r&&s[1]===r.subdomain,l=null==r?void 0:r.getFailoverUrl();return l&&(e.type===n.RpcEndpointType.Infura||a)?{...e,failoverUrls:[l]}:e}))}}(r.data)}catch(t){console.error(t);const n=new Error(`Migration #${a}: ${(0,i.getErrorMessage)(t)}`);(0,s.captureException)(n),r.data=e.data}return r},r.version=void 0;var n=e("@metamask/network-controller"),i=e("@metamask/utils"),o=e("lodash"),s=e("../../../shared/lib/sentry");const a=r.version=157,l=r.INFURA_CHAINS_WITH_FAILOVERS=new Map([["0x1",{subdomain:"mainnet",getFailoverUrl:()=>"https://dimensional-special-breeze.quiknode.pro/d5e2d185c1561ef5ecb9aadf1ae7cc58863f4fa4/"}],["0xe708",{subdomain:"linea-mainnet",getFailoverUrl:()=>"https://patient-sleek-daylight.linea-mainnet.quiknode.pro/d0e608bf5f231ef9ae6756de4d7876cb0f5ece55/"}],["0xa4b1",{subdomain:"arbitrum",getFailoverUrl:()=>"https://purple-young-mansion.arbitrum-mainnet.quiknode.pro/f48c5cbfd1f5b39f0e5542d3b23c181b4085a2b5/"}],["0xa86a",{subdomain:"avalanche",getFailoverUrl:()=>"https://young-snowy-voice.avalanche-mainnet.quiknode.pro/41435f949d251a93110c8a44223028b9ecdae0b6/ext/bc/C/rpc/"}],["0xa",{subdomain:"optimism",getFailoverUrl:()=>"https://holy-convincing-diagram.optimism.quiknode.pro/4804f72f80b7566982ad24a7a1d8e1ae48bca208/"}],["0x89",{subdomain:"polygon",getFailoverUrl:()=>"https://powerful-radial-aura.matic.quiknode.pro/edaa1cc73ef2a19230e2e715e766b6783ad8126a/"}],["0x2105",{subdomain:"base",getFailoverUrl:()=>"https://ancient-quaint-water.base-mainnet.quiknode.pro/a2cb04635063b578dba24f656fe376a55e8d9939/"}]])}).call(this)}).call(this,e("_process"))}}},{package:"$root$",file:"app/scripts/migrations/157.ts"}],[5260,{"./_stream_readable":5262,"./_stream_writable":5264,_process:5042,inherits:4568},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=u;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(u,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var l=s[a];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,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)}})}).call(this)}).call(this,e("_process"))}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/_stream_duplex.js"}],[5261,{"./_stream_transform":5263,inherits:4568},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/_stream_passthrough.js"}],[5262,{"../errors":5259,"./_stream_duplex":5260,"./internal/streams/async_iterator":5265,"./internal/streams/buffer_list":5266,"./internal/streams/destroy":5267,"./internal/streams/from":5269,"./internal/streams/state":5271,"./internal/streams/stream":5272,_process:5042,buffer:4034,events:4334,inherits:4568,"string_decoder/":5641,util:3986},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;t.exports=O,O.ReadableState=_;e("events").EventEmitter;var i=function(e,t){return e.listeners(t).length},o=e("./internal/streams/stream"),s=e("buffer").Buffer,a=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,u=e("util");l=u&&u.debuglog?u.debuglog("stream"):function(){};var c,f,d,p=e("./internal/streams/buffer_list"),h=e("./internal/streams/destroy"),b=e("./internal/streams/state").getHighWaterMark,m=e("../errors").codes,v=m.ERR_INVALID_ARG_TYPE,y=m.ERR_STREAM_PUSH_AFTER_EOF,g=m.ERR_METHOD_NOT_IMPLEMENTED,w=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(O,o);var k=h.errorOrDestroy,j=["error","close","destroy","pause","resume"];function _(t,r,i){n=n||e("./_stream_duplex"),t=t||{},"boolean"!=typeof i&&(i=r instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",i),this.buffer=new p,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.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=e("string_decoder/").StringDecoder),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function O(t){if(n=n||e("./_stream_duplex"),!(this instanceof O))return new O(t);var r=this instanceof n;this._readableState=new _(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function T(e,t,r,n,i){l("readableAddChunk",t);var o,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(l("onEofChunk"),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.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}(e,u);else if(i||(o=function(e,t){var r;n=t,s.isBuffer(n)||n instanceof a||"string"==typeof t||t===undefined||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(u,t)),o)k(e,o);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)u.endEmitted?k(e,new w):S(e,u,t,!0);else if(u.ended)k(e,new y);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?S(e,u,t,!1):A(e,u)):S(e,u,t,!1)}else n||(u.reading=!1,A(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function S(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&P(e)),A(e,t)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=h.destroy,O.prototype._undestroy=h.undestroy,O.prototype._destroy=function(e,t){t(e)},O.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=s.from(e,t),t=""),r=!0),T(this,e,t,!1,r)},O.prototype.unshift=function(e){return T(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(t){c||(c=e("string_decoder/").StringDecoder);var r=new c(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var x=1073741824;function E(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 P(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(C,e))}function C(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,F(e)}function A(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(l("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){l("readable nexttick read 0"),e.read(0)}function R(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function $(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.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function B(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function L(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}O.prototype.read=function(e){l("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):P(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),t.ended||t.reading?l("reading or ended",i=!1):i&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(r,t))),null===(n=e>0?$(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(e){k(this,new g("_read()"))},O.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:m;function a(t,r){l("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),e.removeListener("close",h),e.removeListener("finish",b),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",a),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",d),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function u(){l("onend"),e.end()}o.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",a);var c=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",c);var f=!1;function d(t){l("ondata");var r=e.write(t);l("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!f&&(l("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function p(t){l("onerror",t),m(),e.removeListener("error",p),0===i(e,"error")&&k(e,t)}function h(){e.removeListener("finish",b),m()}function b(){l("onfinish"),e.removeListener("close",h),m()}function m(){l("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",h),e.once("finish",b),e.emit("pipe",n),o.flowing||(l("pipe resume"),n.resume()),e},O.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 o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=L(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,l("on readable",i.length,i.reading),i.length?P(this):i.reading||r.nextTick(N,this))),n},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(I,this),n},O.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&e!==undefined||r.nextTick(I,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(R,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(l("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){(l("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 o=0;o<j.length;o++)e.on(j[o],this.emit.bind(this,j[o]));return this._read=function(t){l("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return f===undefined&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=$,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(t,r){return d===undefined&&(d=e("./internal/streams/from")),d(O,t,r)})}).call(this)}).call(this,e("_process"))}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/_stream_readable.js"}],[5263,{"../errors":5259,"./_stream_duplex":5260,inherits:4568},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=c;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);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 c(e){if(!(this instanceof c))return new c(e);l.call(this,e),this._transformState={afterTransform:u.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",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}e("inherits")(c,l),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new i("_transform()"))},c.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)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/_stream_transform.js"}],[5264,{"../errors":5259,"./_stream_duplex":5260,"./internal/streams/destroy":5267,"./internal/streams/state":5271,"./internal/streams/stream":5272,_process:5042,buffer:4034,inherits:4568,"util-deprecate":5701},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){function n(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)}}var i;t.exports=O,O.WritableState=_;var o={deprecate:e("util-deprecate")},s=e("./internal/streams/stream"),a=e("buffer").Buffer,l=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,c=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,d=e("../errors").codes,p=d.ERR_INVALID_ARG_TYPE,h=d.ERR_METHOD_NOT_IMPLEMENTED,b=d.ERR_MULTIPLE_CALLBACK,m=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,g=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,k=c.errorOrDestroy;function j(){}function _(t,o,s){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof s&&(s=o instanceof i),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,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 n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new b;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(C,e,t),e._writableState.errorEmitted=!0,k(e,i)):(o(i),e._writableState.errorEmitted=!0,k(e,i),C(e,t))}(e,n,i,t,o);else{var s=E(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),i?r.nextTick(S,e,n,s,o):S(e,n,s,o)}}(o,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function O(t){var r=this instanceof(i=i||e("./_stream_duplex"));if(!r&&!u.call(O,this))return new O(t);this._writableState=new _(t,this,r),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)),s.call(this)}function T(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function S(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var a=0,l=!0;r;)o[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;o.allBuffers=l,T(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,f=r.callback;if(T(e,t,!1,t.objectMode?1:u.length,u,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function P(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),C(e,t)})}function C(e,t){var n=E(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(P,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(O,s),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:o.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]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===O&&(e&&e._writableState instanceof _)}})):u=function(e){return e instanceof this},O.prototype.pipe=function(){k(this,new m)},O.prototype.write=function(e,t,n){var i,o=this._writableState,s=!1,u=!o.objectMode&&(i=e,a.isBuffer(i)||i instanceof l);return u&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=j),o.ending?function(e,t){var n=new g;k(e,n),r.nextTick(t,n)}(this,n):(u||function(e,t,n,i){var o;return null===n?o=new y:"string"==typeof n||t.objectMode||(o=new p("chunk",["string","Buffer"],n)),!o||(k(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var l=t.objectMode?1:n.length;t.length+=l;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:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T(e,t,!1,l,n,i,o);return u}(this,o,u,e,t,n)),s},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},O.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 w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new h("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&e!==undefined&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=c.destroy,O.prototype._undestroy=c.undestroy,O.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"))}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/_stream_writable.js"}],[5265,{"./end-of-stream":5268,_process:5042},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=e("./end-of-stream"),s=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[c]=null,e[s]=null,e[a]=null,t(p(r,!1)))}}function b(e){r.nextTick(h,e)}var m=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(undefined,!0));if(this[d].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[l]?n(e[l]):t(p(undefined,!0))})});var n,i=this[c];if(i)n=new Promise(function(e,t){return function(r,n){e.then(function(){t[u]?r(p(undefined,!0)):t[f](r,n)},n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(p(o,!1));n=new Promise(this[f])}return this[c]=n,n}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){e?r(e):t(p(undefined,!0))})})}),n),m);t.exports=function(e){var t,r=Object.create(v,(i(t={},d,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[d].read();n?(r[c]=null,r[s]=null,r[a]=null,e(p(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[c]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[c]=null,r[s]=null,r[a]=null,t(e)),void(r[l]=e)}var n=r[s];null!==n&&(r[c]=null,r[s]=null,r[a]=null,n(p(undefined,!0))),r[u]=!0}),e.on("readable",b.bind(null,r)),r}}).call(this)}).call(this,e("_process"))}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js"}],[5266,{buffer:4034,util:3986},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(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,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=e("buffer").Buffer,u=e("util").inspect,c=u&&u.custom||"inspect";function f(e,t,r){l.prototype.copy.call(e,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}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t=l.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js"}],[5267,{_process:5042},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(n,s):(s._writableState.errorEmitted=!0,e.nextTick(r,s,t)):e.nextTick(r,s,t):o?(e.nextTick(n,s),o(t)):e.nextTick(n,s)}),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)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/destroy.js"}],[5268,{"../../../errors":5259},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||c()},u=t._writableState&&t._writableState.finished,c=function(){a=!1,u=!0,s||o.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,f=!0,a||o.call(t)},p=function(e){o.call(t,e)},h=function(){var e;return s&&!f?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!u?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},b=function(){t.req.on("finish",c)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",l),t.on("close",l)):(t.on("complete",c),t.on("abort",h),t.req?b():t.on("request",b)),t.on("end",d),t.on("finish",c),!1!==r.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",c),t.removeListener("abort",h),t.removeListener("request",b),t.req&&t.req.removeListener("finish",c),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",c),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"}],[5269,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/from-browser.js"}],[527,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"UserStorageController")||!(0,n.isObject)(e.UserStorageController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("Invalid UserStorageController state: "+typeof e.UserStorageController)),e}(0,n.hasProperty)(e.UserStorageController,"isProfileSyncingEnabled")&&(e.UserStorageController.isBackupAndSyncEnabled=Boolean(e.UserStorageController.isProfileSyncingEnabled),delete e.UserStorageController.isProfileSyncingEnabled);(0,n.hasProperty)(e.UserStorageController,"isProfileSyncingUpdateLoading")&&(e.UserStorageController.isBackupAndSyncUpdateLoading=Boolean(e.UserStorageController.isProfileSyncingUpdateLoading),delete e.UserStorageController.isProfileSyncingUpdateLoading)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=158}}},{package:"$root$",file:"app/scripts/migrations/158.ts"}],[5270,{"../../../errors":5259,"./end-of-stream":5268},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;var i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function l(e){e()}function u(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var c,f=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var d=r.map(function(t,i){var o=i<r.length-1;return function(t,r,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;t.on("close",function(){a=!0}),n===undefined&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},function(e){if(e)return o(e);a=!0,o()});var l=!1;return function(e){if(!a&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}(t,o,i>0,function(e){c||(c=e),e&&d.forEach(l),o||(d.forEach(l),f(c))})});return r.reduce(u)}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js"}],[5271,{"../../../errors":5259},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/state.js"}],[5272,{events:4334},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("events").EventEmitter}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js"}],[5273,{"./lib/_stream_duplex.js":5260,"./lib/_stream_passthrough.js":5261,"./lib/_stream_readable.js":5262,"./lib/_stream_transform.js":5263,"./lib/_stream_writable.js":5264,"./lib/internal/streams/end-of-stream.js":5268,"./lib/internal/streams/pipeline.js":5270},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"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")}}},{package:"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",file:"node_modules/readable-web-to-node-stream/node_modules/readable-stream/readable-browser.js"}],[528,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,i.hasProperty)(e,"PreferencesController")){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: PreferencesController not found.`)),e}const n=e.PreferencesController;if(!(0,i.isObject)(n)){var s,a;return null===(s=global.sentry)||void 0===s||null===(a=s.captureException)||void 0===a||a.call(s,new Error(`Migration ${o}: PreferencesController is type '${typeof n}', expected object.`)),e}(0,i.hasProperty)(n,"shouldShowAggregatedBalancePopover")&&delete n.shouldShowAggregatedBalancePopover;return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=159}}},{package:"$root$",file:"app/scripts/migrations/159.ts"}],[5282,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(r=t.exports=function(e){return String(e).replace(r.expr,"")}).expr=/\/+$/}}},{package:"remove-trailing-slash",file:"node_modules/remove-trailing-slash/index.js"}],[529,{"@metamask/chain-agnostic-permission":1341,"@metamask/snaps-rpc-methods":2585,"@metamask/utils":2879,lodash:4789,nanoid:4988},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=l,t.data=function(e){const{NetworkController:t,PermissionController:r,SelectedNetworkController:n}=e;if(!t||!(0,i.isObject)(t)){var l,c;return null===(l=global.sentry)||void 0===l||null===(c=l.captureException)||void 0===c||c.call(l,new Error("Skipping migration: `NetworkController` state not found or is not an object.")),e}if(!(0,i.hasProperty)(t,"selectedNetworkClientId")||"string"!=typeof t.selectedNetworkClientId){var f,d;return null===(f=global.sentry)||void 0===f||null===(d=f.captureException)||void 0===d||d.call(f,new Error("Skipping migration: `NetworkController.selectedNetworkClientId` is not a string.")),e}if(!(0,i.hasProperty)(t,"networkConfigurationsByChainId")||!(0,i.isObject)(t.networkConfigurationsByChainId)){var p,h;return null===(p=global.sentry)||void 0===p||null===(h=p.captureException)||void 0===h||h.call(p,new Error("Skipping migration: `NetworkController.networkConfigurationsByChainId` is not an object.")),e}if(!r||!(0,i.isObject)(r)){var b,m;return null===(b=global.sentry)||void 0===b||null===(m=b.captureException)||void 0===m||m.call(b,new Error("Skipping migration: `PermissionController` state not found or is not an object.")),e}if(!(0,i.isObject)(r.subjects)){var v,y;return null===(v=global.sentry)||void 0===v||null===(y=v.captureException)||void 0===y||y.call(v,new Error("Skipping migration: `PermissionController.subjects` state is not an object.")),e}if(!n||!(0,i.isObject)(n)){var g,w;return null===(g=global.sentry)||void 0===g||null===(w=g.captureException)||void 0===w||w.call(g,new Error("Skipping migration: `SelectedNetworkController` state not found or is not an object.")),e}if(!(0,i.isObject)(n.domains)){var k,j;return null===(k=global.sentry)||void 0===k||null===(j=k.captureException)||void 0===j||j.call(k,new Error("Skipping migration: `SelectedNetworkController.domains` state is not an object.")),e}const _=function(e,t){const r=Object.entries(t).find(([,t])=>!!((0,i.isObject)(t)&&(0,i.hasProperty)(t,"rpcEndpoints")&&Array.isArray(t.rpcEndpoints))&&t.rpcEndpoints.some(t=>(0,i.isObject)(t)&&t.networkClientId===e));if(r)return r[0];return u.get(e)}(t.selectedNetworkClientId,t.networkConfigurationsByChainId);if("string"!=typeof _){var O,T;return null===(O=global.sentry)||void 0===O||null===(T=O.captureException)||void 0===T||T.call(O,new Error("Skipping migration: No currently selected chainId was found, or the chainId resolved from the `NetworkController.selectedNetworkClientId` value is not a string.")),e}const S=[],x=Object.entries(r.subjects);r.subjects=x.reduce((e,[t,r])=>{if(!Object.keys(r.permissions).includes(s.SnapEndowments.EthereumProvider))return{...e,[t]:r};S.push(t);const n=(0,a.addPermittedEthChainId)(function(e){var t;const r=null===(t=e.permissions[a.Caip25EndowmentPermissionName])||void 0===t||null===(t=t.caveats)||void 0===t?void 0:t.find(e=>e.type===a.Caip25CaveatType);if(!r)return{isMultichainOrigin:!1,optionalScopes:{},requiredScopes:{},sessionProperties:{}};return r.value}(r),_),{date:i=Date.now(),id:l=(0,o.nanoid)(),invoker:u=t,parentCapability:c=a.Caip25EndowmentPermissionName}=r.permissions[a.Caip25EndowmentPermissionName]??{},f={...r,permissions:{...r.permissions,[a.Caip25EndowmentPermissionName]:{caveats:[{type:a.Caip25CaveatType,value:n}],date:i,id:l,invoker:u,parentCapability:c}}};return{...e,[t]:f}},{});const E=n.domains,P=Object.fromEntries(S.map(e=>[e,t.selectedNetworkClientId]));return n.domains={...E,...P},e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("nanoid"),s=e("@metamask/snaps-rpc-methods"),a=e("@metamask/chain-agnostic-permission");const l=r.version=160,u=new Map([["sepolia","0xaa36a7"],["mainnet","0x1"],["linea-sepolia","0xe705"],["linea-mainnet","0xe708"]])}}},{package:"$root$",file:"app/scripts/migrations/160.ts"}],[53,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getGlobalChainId=function(e){const t=e.call("NetworkController:getState").selectedNetworkClientId,{chainId:r}=e.call("NetworkController:getNetworkClientById",t).configuration;return r}}}},{package:"$root$",file:"app/scripts/controller-init/init-utils.ts"}],[530,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"PreferencesController")||!(0,n.isObject)(e.PreferencesController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("Invalid PreferencesController state: "+typeof e.PreferencesController)),e}(0,n.hasProperty)(e.PreferencesController,"bitcoinSupportEnabled")&&delete e.PreferencesController.bitcoinSupportEnabled;(0,n.hasProperty)(e.PreferencesController,"bitcoinTestnetSupportEnabled")&&delete e.PreferencesController.bitcoinTestnetSupportEnabled}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=161.1}}},{package:"$root$",file:"app/scripts/migrations/161.1.ts"}],[5306,{"./internal/AsyncSubject":5307,"./internal/BehaviorSubject":5308,"./internal/Notification":5309,"./internal/Observable":5311,"./internal/ReplaySubject":5312,"./internal/Scheduler":5313,"./internal/Subject":5314,"./internal/Subscriber":5315,"./internal/Subscription":5316,"./internal/config":5317,"./internal/firstValueFrom":5318,"./internal/lastValueFrom":5319,"./internal/observable/ConnectableObservable":5320,"./internal/observable/bindCallback":5321,"./internal/observable/bindNodeCallback":5323,"./internal/observable/combineLatest":5324,"./internal/observable/concat":5325,"./internal/observable/connectable":5326,"./internal/observable/defer":5327,"./internal/observable/dom/animationFrames":5328,"./internal/observable/empty":5329,"./internal/observable/forkJoin":5330,"./internal/observable/from":5331,"./internal/observable/fromEvent":5332,"./internal/observable/fromEventPattern":5333,"./internal/observable/generate":5335,"./internal/observable/iif":5336,"./internal/observable/interval":5338,"./internal/observable/merge":5339,"./internal/observable/never":5340,"./internal/observable/of":5341,"./internal/observable/onErrorResumeNext":5342,"./internal/observable/pairs":5343,"./internal/observable/partition":5344,"./internal/observable/race":5345,"./internal/observable/range":5346,"./internal/observable/throwError":5347,"./internal/observable/timer":5348,"./internal/observable/using":5349,"./internal/observable/zip":5350,"./internal/operators/audit":5352,"./internal/operators/auditTime":5353,"./internal/operators/buffer":5354,"./internal/operators/bufferCount":5355,"./internal/operators/bufferTime":5356,"./internal/operators/bufferToggle":5357,"./internal/operators/bufferWhen":5358,"./internal/operators/catchError":5359,"./internal/operators/combineAll":5360,"./internal/operators/combineLatestAll":5362,"./internal/operators/combineLatestWith":5363,"./internal/operators/concatAll":5365,"./internal/operators/concatMap":5366,"./internal/operators/concatMapTo":5367,"./internal/operators/concatWith":5368,"./internal/operators/connect":5369,"./internal/operators/count":5370,"./internal/operators/debounce":5371,"./internal/operators/debounceTime":5372,"./internal/operators/defaultIfEmpty":5373,"./internal/operators/delay":5374,"./internal/operators/delayWhen":5375,"./internal/operators/dematerialize":5376,"./internal/operators/distinct":5377,"./internal/operators/distinctUntilChanged":5378,"./internal/operators/distinctUntilKeyChanged":5379,"./internal/operators/elementAt":5380,"./internal/operators/endWith":5381,"./internal/operators/every":5382,"./internal/operators/exhaust":5383,"./internal/operators/exhaustAll":5384,"./internal/operators/exhaustMap":5385,"./internal/operators/expand":5386,"./internal/operators/filter":5387,"./internal/operators/finalize":5388,"./internal/operators/find":5389,"./internal/operators/findIndex":5390,"./internal/operators/first":5391,"./internal/operators/flatMap":5392,"./internal/operators/groupBy":5393,"./internal/operators/ignoreElements":5394,"./internal/operators/isEmpty":5395,"./internal/operators/last":5397,"./internal/operators/map":5398,"./internal/operators/mapTo":5399,"./internal/operators/materialize":5400,"./internal/operators/max":5401,"./internal/operators/mergeAll":5403,"./internal/operators/mergeMap":5405,"./internal/operators/mergeMapTo":5406,"./internal/operators/mergeScan":5407,"./internal/operators/mergeWith":5408,"./internal/operators/min":5409,"./internal/operators/multicast":5410,"./internal/operators/observeOn":5411,"./internal/operators/onErrorResumeNextWith":5412,"./internal/operators/pairwise":5413,"./internal/operators/pluck":5414,"./internal/operators/publish":5415,"./internal/operators/publishBehavior":5416,"./internal/operators/publishLast":5417,"./internal/operators/publishReplay":5418,"./internal/operators/raceWith":5419,"./internal/operators/reduce":5420,"./internal/operators/refCount":5421,"./internal/operators/repeat":5422,"./internal/operators/repeatWhen":5423,"./internal/operators/retry":5424,"./internal/operators/retryWhen":5425,"./internal/operators/sample":5426,"./internal/operators/sampleTime":5427,"./internal/operators/scan":5428,"./internal/operators/sequenceEqual":5430,"./internal/operators/share":5431,"./internal/operators/shareReplay":5432,"./internal/operators/single":5433,"./internal/operators/skip":5434,"./internal/operators/skipLast":5435,"./internal/operators/skipUntil":5436,"./internal/operators/skipWhile":5437,"./internal/operators/startWith":5438,"./internal/operators/subscribeOn":5439,"./internal/operators/switchAll":5440,"./internal/operators/switchMap":5441,"./internal/operators/switchMapTo":5442,"./internal/operators/switchScan":5443,"./internal/operators/take":5444,"./internal/operators/takeLast":5445,"./internal/operators/takeUntil":5446,"./internal/operators/takeWhile":5447,"./internal/operators/tap":5448,"./internal/operators/throttle":5449,"./internal/operators/throttleTime":5450,"./internal/operators/throwIfEmpty":5451,"./internal/operators/timeInterval":5452,"./internal/operators/timeout":5453,"./internal/operators/timeoutWith":5454,"./internal/operators/timestamp":5455,"./internal/operators/toArray":5456,"./internal/operators/window":5457,"./internal/operators/windowCount":5458,"./internal/operators/windowTime":5459,"./internal/operators/windowToggle":5460,"./internal/operators/windowWhen":5461,"./internal/operators/withLatestFrom":5462,"./internal/operators/zipAll":5464,"./internal/operators/zipWith":5465,"./internal/scheduled/scheduled":5472,"./internal/scheduler/VirtualTimeScheduler":5482,"./internal/scheduler/animationFrame":5483,"./internal/scheduler/asap":5485,"./internal/scheduler/async":5486,"./internal/scheduler/queue":5491,"./internal/symbol/observable":5494,"./internal/types":5495,"./internal/util/ArgumentOutOfRangeError":5496,"./internal/util/EmptyError":5497,"./internal/util/NotFoundError":5499,"./internal/util/ObjectUnsubscribedError":5500,"./internal/util/SequenceError":5501,"./internal/util/UnsubscriptionError":5502,"./internal/util/identity":5511,"./internal/util/isObservable":5518,"./internal/util/noop":5524,"./internal/util/pipe":5526},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),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}: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}),r.interval=r.iif=r.generate=r.fromEventPattern=r.fromEvent=r.from=r.forkJoin=r.empty=r.defer=r.connectable=r.concat=r.combineLatest=r.bindNodeCallback=r.bindCallback=r.UnsubscriptionError=r.TimeoutError=r.SequenceError=r.ObjectUnsubscribedError=r.NotFoundError=r.EmptyError=r.ArgumentOutOfRangeError=r.firstValueFrom=r.lastValueFrom=r.isObservable=r.identity=r.noop=r.pipe=r.NotificationKind=r.Notification=r.Subscriber=r.Subscription=r.Scheduler=r.VirtualAction=r.VirtualTimeScheduler=r.animationFrameScheduler=r.animationFrame=r.queueScheduler=r.queue=r.asyncScheduler=r.async=r.asapScheduler=r.asap=r.AsyncSubject=r.ReplaySubject=r.BehaviorSubject=r.Subject=r.animationFrames=r.observable=r.ConnectableObservable=r.Observable=void 0,r.filter=r.expand=r.exhaustMap=r.exhaustAll=r.exhaust=r.every=r.endWith=r.elementAt=r.distinctUntilKeyChanged=r.distinctUntilChanged=r.distinct=r.dematerialize=r.delayWhen=r.delay=r.defaultIfEmpty=r.debounceTime=r.debounce=r.count=r.connect=r.concatWith=r.concatMapTo=r.concatMap=r.concatAll=r.combineLatestWith=r.combineLatestAll=r.combineAll=r.catchError=r.bufferWhen=r.bufferToggle=r.bufferTime=r.bufferCount=r.buffer=r.auditTime=r.audit=r.config=r.NEVER=r.EMPTY=r.scheduled=r.zip=r.using=r.timer=r.throwError=r.range=r.race=r.partition=r.pairs=r.onErrorResumeNext=r.of=r.never=r.merge=void 0,r.switchMap=r.switchAll=r.subscribeOn=r.startWith=r.skipWhile=r.skipUntil=r.skipLast=r.skip=r.single=r.shareReplay=r.share=r.sequenceEqual=r.scan=r.sampleTime=r.sample=r.refCount=r.retryWhen=r.retry=r.repeatWhen=r.repeat=r.reduce=r.raceWith=r.publishReplay=r.publishLast=r.publishBehavior=r.publish=r.pluck=r.pairwise=r.onErrorResumeNextWith=r.observeOn=r.multicast=r.min=r.mergeWith=r.mergeScan=r.mergeMapTo=r.mergeMap=r.flatMap=r.mergeAll=r.max=r.materialize=r.mapTo=r.map=r.last=r.isEmpty=r.ignoreElements=r.groupBy=r.first=r.findIndex=r.find=r.finalize=void 0,r.zipWith=r.zipAll=r.withLatestFrom=r.windowWhen=r.windowToggle=r.windowTime=r.windowCount=r.window=r.toArray=r.timestamp=r.timeoutWith=r.timeout=r.timeInterval=r.throwIfEmpty=r.throttleTime=r.throttle=r.tap=r.takeWhile=r.takeUntil=r.takeLast=r.take=r.switchScan=r.switchMapTo=void 0;var o=e("./internal/Observable");Object.defineProperty(r,"Observable",{enumerable:!0,get:function(){return o.Observable}});var s=e("./internal/observable/ConnectableObservable");Object.defineProperty(r,"ConnectableObservable",{enumerable:!0,get:function(){return s.ConnectableObservable}});var a=e("./internal/symbol/observable");Object.defineProperty(r,"observable",{enumerable:!0,get:function(){return a.observable}});var l=e("./internal/observable/dom/animationFrames");Object.defineProperty(r,"animationFrames",{enumerable:!0,get:function(){return l.animationFrames}});var u=e("./internal/Subject");Object.defineProperty(r,"Subject",{enumerable:!0,get:function(){return u.Subject}});var c=e("./internal/BehaviorSubject");Object.defineProperty(r,"BehaviorSubject",{enumerable:!0,get:function(){return c.BehaviorSubject}});var f=e("./internal/ReplaySubject");Object.defineProperty(r,"ReplaySubject",{enumerable:!0,get:function(){return f.ReplaySubject}});var d=e("./internal/AsyncSubject");Object.defineProperty(r,"AsyncSubject",{enumerable:!0,get:function(){return d.AsyncSubject}});var p=e("./internal/scheduler/asap");Object.defineProperty(r,"asap",{enumerable:!0,get:function(){return p.asap}}),Object.defineProperty(r,"asapScheduler",{enumerable:!0,get:function(){return p.asapScheduler}});var h=e("./internal/scheduler/async");Object.defineProperty(r,"async",{enumerable:!0,get:function(){return h.async}}),Object.defineProperty(r,"asyncScheduler",{enumerable:!0,get:function(){return h.asyncScheduler}});var b=e("./internal/scheduler/queue");Object.defineProperty(r,"queue",{enumerable:!0,get:function(){return b.queue}}),Object.defineProperty(r,"queueScheduler",{enumerable:!0,get:function(){return b.queueScheduler}});var m=e("./internal/scheduler/animationFrame");Object.defineProperty(r,"animationFrame",{enumerable:!0,get:function(){return m.animationFrame}}),Object.defineProperty(r,"animationFrameScheduler",{enumerable:!0,get:function(){return m.animationFrameScheduler}});var v=e("./internal/scheduler/VirtualTimeScheduler");Object.defineProperty(r,"VirtualTimeScheduler",{enumerable:!0,get:function(){return v.VirtualTimeScheduler}}),Object.defineProperty(r,"VirtualAction",{enumerable:!0,get:function(){return v.VirtualAction}});var y=e("./internal/Scheduler");Object.defineProperty(r,"Scheduler",{enumerable:!0,get:function(){return y.Scheduler}});var g=e("./internal/Subscription");Object.defineProperty(r,"Subscription",{enumerable:!0,get:function(){return g.Subscription}});var w=e("./internal/Subscriber");Object.defineProperty(r,"Subscriber",{enumerable:!0,get:function(){return w.Subscriber}});var k=e("./internal/Notification");Object.defineProperty(r,"Notification",{enumerable:!0,get:function(){return k.Notification}}),Object.defineProperty(r,"NotificationKind",{enumerable:!0,get:function(){return k.NotificationKind}});var j=e("./internal/util/pipe");Object.defineProperty(r,"pipe",{enumerable:!0,get:function(){return j.pipe}});var _=e("./internal/util/noop");Object.defineProperty(r,"noop",{enumerable:!0,get:function(){return _.noop}});var O=e("./internal/util/identity");Object.defineProperty(r,"identity",{enumerable:!0,get:function(){return O.identity}});var T=e("./internal/util/isObservable");Object.defineProperty(r,"isObservable",{enumerable:!0,get:function(){return T.isObservable}});var S=e("./internal/lastValueFrom");Object.defineProperty(r,"lastValueFrom",{enumerable:!0,get:function(){return S.lastValueFrom}});var x=e("./internal/firstValueFrom");Object.defineProperty(r,"firstValueFrom",{enumerable:!0,get:function(){return x.firstValueFrom}});var E=e("./internal/util/ArgumentOutOfRangeError");Object.defineProperty(r,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return E.ArgumentOutOfRangeError}});var P=e("./internal/util/EmptyError");Object.defineProperty(r,"EmptyError",{enumerable:!0,get:function(){return P.EmptyError}});var C=e("./internal/util/NotFoundError");Object.defineProperty(r,"NotFoundError",{enumerable:!0,get:function(){return C.NotFoundError}});var A=e("./internal/util/ObjectUnsubscribedError");Object.defineProperty(r,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return A.ObjectUnsubscribedError}});var M=e("./internal/util/SequenceError");Object.defineProperty(r,"SequenceError",{enumerable:!0,get:function(){return M.SequenceError}});var I=e("./internal/operators/timeout");Object.defineProperty(r,"TimeoutError",{enumerable:!0,get:function(){return I.TimeoutError}});var N=e("./internal/util/UnsubscriptionError");Object.defineProperty(r,"UnsubscriptionError",{enumerable:!0,get:function(){return N.UnsubscriptionError}});var R=e("./internal/observable/bindCallback");Object.defineProperty(r,"bindCallback",{enumerable:!0,get:function(){return R.bindCallback}});var F=e("./internal/observable/bindNodeCallback");Object.defineProperty(r,"bindNodeCallback",{enumerable:!0,get:function(){return F.bindNodeCallback}});var $=e("./internal/observable/combineLatest");Object.defineProperty(r,"combineLatest",{enumerable:!0,get:function(){return $.combineLatest}});var B=e("./internal/observable/concat");Object.defineProperty(r,"concat",{enumerable:!0,get:function(){return B.concat}});var U=e("./internal/observable/connectable");Object.defineProperty(r,"connectable",{enumerable:!0,get:function(){return U.connectable}});var L=e("./internal/observable/defer");Object.defineProperty(r,"defer",{enumerable:!0,get:function(){return L.defer}});var D=e("./internal/observable/empty");Object.defineProperty(r,"empty",{enumerable:!0,get:function(){return D.empty}});var z=e("./internal/observable/forkJoin");Object.defineProperty(r,"forkJoin",{enumerable:!0,get:function(){return z.forkJoin}});var W=e("./internal/observable/from");Object.defineProperty(r,"from",{enumerable:!0,get:function(){return W.from}});var q=e("./internal/observable/fromEvent");Object.defineProperty(r,"fromEvent",{enumerable:!0,get:function(){return q.fromEvent}});var H=e("./internal/observable/fromEventPattern");Object.defineProperty(r,"fromEventPattern",{enumerable:!0,get:function(){return H.fromEventPattern}});var V=e("./internal/observable/generate");Object.defineProperty(r,"generate",{enumerable:!0,get:function(){return V.generate}});var G=e("./internal/observable/iif");Object.defineProperty(r,"iif",{enumerable:!0,get:function(){return G.iif}});var K=e("./internal/observable/interval");Object.defineProperty(r,"interval",{enumerable:!0,get:function(){return K.interval}});var J=e("./internal/observable/merge");Object.defineProperty(r,"merge",{enumerable:!0,get:function(){return J.merge}});var Y=e("./internal/observable/never");Object.defineProperty(r,"never",{enumerable:!0,get:function(){return Y.never}});var Z=e("./internal/observable/of");Object.defineProperty(r,"of",{enumerable:!0,get:function(){return Z.of}});var Q=e("./internal/observable/onErrorResumeNext");Object.defineProperty(r,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var X=e("./internal/observable/pairs");Object.defineProperty(r,"pairs",{enumerable:!0,get:function(){return X.pairs}});var ee=e("./internal/observable/partition");Object.defineProperty(r,"partition",{enumerable:!0,get:function(){return ee.partition}});var te=e("./internal/observable/race");Object.defineProperty(r,"race",{enumerable:!0,get:function(){return te.race}});var re=e("./internal/observable/range");Object.defineProperty(r,"range",{enumerable:!0,get:function(){return re.range}});var ne=e("./internal/observable/throwError");Object.defineProperty(r,"throwError",{enumerable:!0,get:function(){return ne.throwError}});var ie=e("./internal/observable/timer");Object.defineProperty(r,"timer",{enumerable:!0,get:function(){return ie.timer}});var oe=e("./internal/observable/using");Object.defineProperty(r,"using",{enumerable:!0,get:function(){return oe.using}});var se=e("./internal/observable/zip");Object.defineProperty(r,"zip",{enumerable:!0,get:function(){return se.zip}});var ae=e("./internal/scheduled/scheduled");Object.defineProperty(r,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}});var le=e("./internal/observable/empty");Object.defineProperty(r,"EMPTY",{enumerable:!0,get:function(){return le.EMPTY}});var ue=e("./internal/observable/never");Object.defineProperty(r,"NEVER",{enumerable:!0,get:function(){return ue.NEVER}}),i(e("./internal/types"),r);var ce=e("./internal/config");Object.defineProperty(r,"config",{enumerable:!0,get:function(){return ce.config}});var fe=e("./internal/operators/audit");Object.defineProperty(r,"audit",{enumerable:!0,get:function(){return fe.audit}});var de=e("./internal/operators/auditTime");Object.defineProperty(r,"auditTime",{enumerable:!0,get:function(){return de.auditTime}});var pe=e("./internal/operators/buffer");Object.defineProperty(r,"buffer",{enumerable:!0,get:function(){return pe.buffer}});var he=e("./internal/operators/bufferCount");Object.defineProperty(r,"bufferCount",{enumerable:!0,get:function(){return he.bufferCount}});var be=e("./internal/operators/bufferTime");Object.defineProperty(r,"bufferTime",{enumerable:!0,get:function(){return be.bufferTime}});var me=e("./internal/operators/bufferToggle");Object.defineProperty(r,"bufferToggle",{enumerable:!0,get:function(){return me.bufferToggle}});var ve=e("./internal/operators/bufferWhen");Object.defineProperty(r,"bufferWhen",{enumerable:!0,get:function(){return ve.bufferWhen}});var ye=e("./internal/operators/catchError");Object.defineProperty(r,"catchError",{enumerable:!0,get:function(){return ye.catchError}});var ge=e("./internal/operators/combineAll");Object.defineProperty(r,"combineAll",{enumerable:!0,get:function(){return ge.combineAll}});var we=e("./internal/operators/combineLatestAll");Object.defineProperty(r,"combineLatestAll",{enumerable:!0,get:function(){return we.combineLatestAll}});var ke=e("./internal/operators/combineLatestWith");Object.defineProperty(r,"combineLatestWith",{enumerable:!0,get:function(){return ke.combineLatestWith}});var je=e("./internal/operators/concatAll");Object.defineProperty(r,"concatAll",{enumerable:!0,get:function(){return je.concatAll}});var _e=e("./internal/operators/concatMap");Object.defineProperty(r,"concatMap",{enumerable:!0,get:function(){return _e.concatMap}});var Oe=e("./internal/operators/concatMapTo");Object.defineProperty(r,"concatMapTo",{enumerable:!0,get:function(){return Oe.concatMapTo}});var Te=e("./internal/operators/concatWith");Object.defineProperty(r,"concatWith",{enumerable:!0,get:function(){return Te.concatWith}});var Se=e("./internal/operators/connect");Object.defineProperty(r,"connect",{enumerable:!0,get:function(){return Se.connect}});var xe=e("./internal/operators/count");Object.defineProperty(r,"count",{enumerable:!0,get:function(){return xe.count}});var Ee=e("./internal/operators/debounce");Object.defineProperty(r,"debounce",{enumerable:!0,get:function(){return Ee.debounce}});var Pe=e("./internal/operators/debounceTime");Object.defineProperty(r,"debounceTime",{enumerable:!0,get:function(){return Pe.debounceTime}});var Ce=e("./internal/operators/defaultIfEmpty");Object.defineProperty(r,"defaultIfEmpty",{enumerable:!0,get:function(){return Ce.defaultIfEmpty}});var Ae=e("./internal/operators/delay");Object.defineProperty(r,"delay",{enumerable:!0,get:function(){return Ae.delay}});var Me=e("./internal/operators/delayWhen");Object.defineProperty(r,"delayWhen",{enumerable:!0,get:function(){return Me.delayWhen}});var Ie=e("./internal/operators/dematerialize");Object.defineProperty(r,"dematerialize",{enumerable:!0,get:function(){return Ie.dematerialize}});var Ne=e("./internal/operators/distinct");Object.defineProperty(r,"distinct",{enumerable:!0,get:function(){return Ne.distinct}});var Re=e("./internal/operators/distinctUntilChanged");Object.defineProperty(r,"distinctUntilChanged",{enumerable:!0,get:function(){return Re.distinctUntilChanged}});var Fe=e("./internal/operators/distinctUntilKeyChanged");Object.defineProperty(r,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Fe.distinctUntilKeyChanged}});var $e=e("./internal/operators/elementAt");Object.defineProperty(r,"elementAt",{enumerable:!0,get:function(){return $e.elementAt}});var Be=e("./internal/operators/endWith");Object.defineProperty(r,"endWith",{enumerable:!0,get:function(){return Be.endWith}});var Ue=e("./internal/operators/every");Object.defineProperty(r,"every",{enumerable:!0,get:function(){return Ue.every}});var Le=e("./internal/operators/exhaust");Object.defineProperty(r,"exhaust",{enumerable:!0,get:function(){return Le.exhaust}});var De=e("./internal/operators/exhaustAll");Object.defineProperty(r,"exhaustAll",{enumerable:!0,get:function(){return De.exhaustAll}});var ze=e("./internal/operators/exhaustMap");Object.defineProperty(r,"exhaustMap",{enumerable:!0,get:function(){return ze.exhaustMap}});var We=e("./internal/operators/expand");Object.defineProperty(r,"expand",{enumerable:!0,get:function(){return We.expand}});var qe=e("./internal/operators/filter");Object.defineProperty(r,"filter",{enumerable:!0,get:function(){return qe.filter}});var He=e("./internal/operators/finalize");Object.defineProperty(r,"finalize",{enumerable:!0,get:function(){return He.finalize}});var Ve=e("./internal/operators/find");Object.defineProperty(r,"find",{enumerable:!0,get:function(){return Ve.find}});var Ge=e("./internal/operators/findIndex");Object.defineProperty(r,"findIndex",{enumerable:!0,get:function(){return Ge.findIndex}});var Ke=e("./internal/operators/first");Object.defineProperty(r,"first",{enumerable:!0,get:function(){return Ke.first}});var Je=e("./internal/operators/groupBy");Object.defineProperty(r,"groupBy",{enumerable:!0,get:function(){return Je.groupBy}});var Ye=e("./internal/operators/ignoreElements");Object.defineProperty(r,"ignoreElements",{enumerable:!0,get:function(){return Ye.ignoreElements}});var Ze=e("./internal/operators/isEmpty");Object.defineProperty(r,"isEmpty",{enumerable:!0,get:function(){return Ze.isEmpty}});var Qe=e("./internal/operators/last");Object.defineProperty(r,"last",{enumerable:!0,get:function(){return Qe.last}});var Xe=e("./internal/operators/map");Object.defineProperty(r,"map",{enumerable:!0,get:function(){return Xe.map}});var et=e("./internal/operators/mapTo");Object.defineProperty(r,"mapTo",{enumerable:!0,get:function(){return et.mapTo}});var tt=e("./internal/operators/materialize");Object.defineProperty(r,"materialize",{enumerable:!0,get:function(){return tt.materialize}});var rt=e("./internal/operators/max");Object.defineProperty(r,"max",{enumerable:!0,get:function(){return rt.max}});var nt=e("./internal/operators/mergeAll");Object.defineProperty(r,"mergeAll",{enumerable:!0,get:function(){return nt.mergeAll}});var it=e("./internal/operators/flatMap");Object.defineProperty(r,"flatMap",{enumerable:!0,get:function(){return it.flatMap}});var ot=e("./internal/operators/mergeMap");Object.defineProperty(r,"mergeMap",{enumerable:!0,get:function(){return ot.mergeMap}});var st=e("./internal/operators/mergeMapTo");Object.defineProperty(r,"mergeMapTo",{enumerable:!0,get:function(){return st.mergeMapTo}});var at=e("./internal/operators/mergeScan");Object.defineProperty(r,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}});var lt=e("./internal/operators/mergeWith");Object.defineProperty(r,"mergeWith",{enumerable:!0,get:function(){return lt.mergeWith}});var ut=e("./internal/operators/min");Object.defineProperty(r,"min",{enumerable:!0,get:function(){return ut.min}});var ct=e("./internal/operators/multicast");Object.defineProperty(r,"multicast",{enumerable:!0,get:function(){return ct.multicast}});var ft=e("./internal/operators/observeOn");Object.defineProperty(r,"observeOn",{enumerable:!0,get:function(){return ft.observeOn}});var dt=e("./internal/operators/onErrorResumeNextWith");Object.defineProperty(r,"onErrorResumeNextWith",{enumerable:!0,get:function(){return dt.onErrorResumeNextWith}});var pt=e("./internal/operators/pairwise");Object.defineProperty(r,"pairwise",{enumerable:!0,get:function(){return pt.pairwise}});var ht=e("./internal/operators/pluck");Object.defineProperty(r,"pluck",{enumerable:!0,get:function(){return ht.pluck}});var bt=e("./internal/operators/publish");Object.defineProperty(r,"publish",{enumerable:!0,get:function(){return bt.publish}});var mt=e("./internal/operators/publishBehavior");Object.defineProperty(r,"publishBehavior",{enumerable:!0,get:function(){return mt.publishBehavior}});var vt=e("./internal/operators/publishLast");Object.defineProperty(r,"publishLast",{enumerable:!0,get:function(){return vt.publishLast}});var yt=e("./internal/operators/publishReplay");Object.defineProperty(r,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var gt=e("./internal/operators/raceWith");Object.defineProperty(r,"raceWith",{enumerable:!0,get:function(){return gt.raceWith}});var wt=e("./internal/operators/reduce");Object.defineProperty(r,"reduce",{enumerable:!0,get:function(){return wt.reduce}});var kt=e("./internal/operators/repeat");Object.defineProperty(r,"repeat",{enumerable:!0,get:function(){return kt.repeat}});var jt=e("./internal/operators/repeatWhen");Object.defineProperty(r,"repeatWhen",{enumerable:!0,get:function(){return jt.repeatWhen}});var _t=e("./internal/operators/retry");Object.defineProperty(r,"retry",{enumerable:!0,get:function(){return _t.retry}});var Ot=e("./internal/operators/retryWhen");Object.defineProperty(r,"retryWhen",{enumerable:!0,get:function(){return Ot.retryWhen}});var Tt=e("./internal/operators/refCount");Object.defineProperty(r,"refCount",{enumerable:!0,get:function(){return Tt.refCount}});var St=e("./internal/operators/sample");Object.defineProperty(r,"sample",{enumerable:!0,get:function(){return St.sample}});var xt=e("./internal/operators/sampleTime");Object.defineProperty(r,"sampleTime",{enumerable:!0,get:function(){return xt.sampleTime}});var Et=e("./internal/operators/scan");Object.defineProperty(r,"scan",{enumerable:!0,get:function(){return Et.scan}});var Pt=e("./internal/operators/sequenceEqual");Object.defineProperty(r,"sequenceEqual",{enumerable:!0,get:function(){return Pt.sequenceEqual}});var Ct=e("./internal/operators/share");Object.defineProperty(r,"share",{enumerable:!0,get:function(){return Ct.share}});var At=e("./internal/operators/shareReplay");Object.defineProperty(r,"shareReplay",{enumerable:!0,get:function(){return At.shareReplay}});var Mt=e("./internal/operators/single");Object.defineProperty(r,"single",{enumerable:!0,get:function(){return Mt.single}});var It=e("./internal/operators/skip");Object.defineProperty(r,"skip",{enumerable:!0,get:function(){return It.skip}});var Nt=e("./internal/operators/skipLast");Object.defineProperty(r,"skipLast",{enumerable:!0,get:function(){return Nt.skipLast}});var Rt=e("./internal/operators/skipUntil");Object.defineProperty(r,"skipUntil",{enumerable:!0,get:function(){return Rt.skipUntil}});var Ft=e("./internal/operators/skipWhile");Object.defineProperty(r,"skipWhile",{enumerable:!0,get:function(){return Ft.skipWhile}});var $t=e("./internal/operators/startWith");Object.defineProperty(r,"startWith",{enumerable:!0,get:function(){return $t.startWith}});var Bt=e("./internal/operators/subscribeOn");Object.defineProperty(r,"subscribeOn",{enumerable:!0,get:function(){return Bt.subscribeOn}});var Ut=e("./internal/operators/switchAll");Object.defineProperty(r,"switchAll",{enumerable:!0,get:function(){return Ut.switchAll}});var Lt=e("./internal/operators/switchMap");Object.defineProperty(r,"switchMap",{enumerable:!0,get:function(){return Lt.switchMap}});var Dt=e("./internal/operators/switchMapTo");Object.defineProperty(r,"switchMapTo",{enumerable:!0,get:function(){return Dt.switchMapTo}});var zt=e("./internal/operators/switchScan");Object.defineProperty(r,"switchScan",{enumerable:!0,get:function(){return zt.switchScan}});var Wt=e("./internal/operators/take");Object.defineProperty(r,"take",{enumerable:!0,get:function(){return Wt.take}});var qt=e("./internal/operators/takeLast");Object.defineProperty(r,"takeLast",{enumerable:!0,get:function(){return qt.takeLast}});var Ht=e("./internal/operators/takeUntil");Object.defineProperty(r,"takeUntil",{enumerable:!0,get:function(){return Ht.takeUntil}});var Vt=e("./internal/operators/takeWhile");Object.defineProperty(r,"takeWhile",{enumerable:!0,get:function(){return Vt.takeWhile}});var Gt=e("./internal/operators/tap");Object.defineProperty(r,"tap",{enumerable:!0,get:function(){return Gt.tap}});var Kt=e("./internal/operators/throttle");Object.defineProperty(r,"throttle",{enumerable:!0,get:function(){return Kt.throttle}});var Jt=e("./internal/operators/throttleTime");Object.defineProperty(r,"throttleTime",{enumerable:!0,get:function(){return Jt.throttleTime}});var Yt=e("./internal/operators/throwIfEmpty");Object.defineProperty(r,"throwIfEmpty",{enumerable:!0,get:function(){return Yt.throwIfEmpty}});var Zt=e("./internal/operators/timeInterval");Object.defineProperty(r,"timeInterval",{enumerable:!0,get:function(){return Zt.timeInterval}});var Qt=e("./internal/operators/timeout");Object.defineProperty(r,"timeout",{enumerable:!0,get:function(){return Qt.timeout}});var Xt=e("./internal/operators/timeoutWith");Object.defineProperty(r,"timeoutWith",{enumerable:!0,get:function(){return Xt.timeoutWith}});var er=e("./internal/operators/timestamp");Object.defineProperty(r,"timestamp",{enumerable:!0,get:function(){return er.timestamp}});var tr=e("./internal/operators/toArray");Object.defineProperty(r,"toArray",{enumerable:!0,get:function(){return tr.toArray}});var rr=e("./internal/operators/window");Object.defineProperty(r,"window",{enumerable:!0,get:function(){return rr.window}});var nr=e("./internal/operators/windowCount");Object.defineProperty(r,"windowCount",{enumerable:!0,get:function(){return nr.windowCount}});var ir=e("./internal/operators/windowTime");Object.defineProperty(r,"windowTime",{enumerable:!0,get:function(){return ir.windowTime}});var or=e("./internal/operators/windowToggle");Object.defineProperty(r,"windowToggle",{enumerable:!0,get:function(){return or.windowToggle}});var sr=e("./internal/operators/windowWhen");Object.defineProperty(r,"windowWhen",{enumerable:!0,get:function(){return sr.windowWhen}});var ar=e("./internal/operators/withLatestFrom");Object.defineProperty(r,"withLatestFrom",{enumerable:!0,get:function(){return ar.withLatestFrom}});var lr=e("./internal/operators/zipAll");Object.defineProperty(r,"zipAll",{enumerable:!0,get:function(){return lr.zipAll}});var ur=e("./internal/operators/zipWith");Object.defineProperty(r,"zipWith",{enumerable:!0,get:function(){return ur.zipWith}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/index.js"}],[5307,{"./Subject":5314},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncSubject=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,i=t._value,o=t.thrownError,s=t.isStopped,a=t._isComplete;r?e.error(o):(s||a)&&(n&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(e("./Subject").Subject);r.AsyncSubject=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/AsyncSubject.js"}],[5308,{"./Subject":5314},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.BehaviorSubject=void 0;var o=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(e("./Subject").Subject);r.BehaviorSubject=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js"}],[5309,{"./observable/empty":5329,"./observable/of":5341,"./observable/throwError":5347,"./util/isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.observeNotification=r.Notification=r.NotificationKind=void 0;var n=e("./observable/empty"),i=e("./observable/of"),o=e("./observable/throwError"),s=e("./util/isFunction");!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(r.NotificationKind||(r.NotificationKind={}));var a=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return l(this,e)},e.prototype.do=function(e,t,r){var n=this,i=n.kind,o=n.value,s=n.error;return"N"===i?null==e?void 0:e(o):"E"===i?null==t?void 0:t(s):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return s.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,s=e.error,a="N"===t?i.of(r):"E"===t?o.throwError(function(){return s}):"C"===t?n.EMPTY:0;if(!a)throw new TypeError("Unexpected notification kind "+t);return a},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",undefined,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function l(e,t){var r,n,i,o=e,s=o.kind,a=o.value,l=o.error;if("string"!=typeof s)throw new TypeError('Invalid notification, missing "kind"');"N"===s?null===(r=t.next)||void 0===r||r.call(t,a):"E"===s?null===(n=t.error)||void 0===n||n.call(t,l):null===(i=t.complete)||void 0===i||i.call(t)}r.Notification=a,r.observeNotification=l}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Notification.js"}],[531,{"@metamask/controller-utils":1365,"@metamask/network-controller":2206,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,s.cloneDeep)(e);return t.meta.version=a,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)){const t="monad-testnet",r=o.ChainId[t],n={chainId:r,name:o.NetworkNickname[t],nativeCurrency:o.NetworksTicker[t],blockExplorerUrls:[o.BlockExplorerUrl[t]],defaultRpcEndpointIndex:0,defaultBlockExplorerUrlIndex:0,rpcEndpoints:[{networkClientId:t,type:i.RpcEndpointType.Custom,url:o.BUILT_IN_CUSTOM_NETWORKS_RPC[t]}]};e.NetworkController.networkConfigurationsByChainId[r]=n}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("@metamask/network-controller"),o=e("@metamask/controller-utils"),s=e("lodash");const a=r.version=161}}},{package:"$root$",file:"app/scripts/migrations/161.ts"}],[5310,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r){return{kind:e,value:t,error:r}}Object.defineProperty(r,"__esModule",{value:!0}),r.createNotification=r.nextNotification=r.errorNotification=r.COMPLETE_NOTIFICATION=void 0,r.COMPLETE_NOTIFICATION=n("C",undefined,undefined),r.errorNotification=function(e){return n("E",undefined,e)},r.nextNotification=function(e){return n("N",e,undefined)},r.createNotification=n}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/NotificationFactories.js"}],[5311,{"./Subscriber":5315,"./Subscription":5316,"./config":5317,"./symbol/observable":5494,"./util/errorContext":5509,"./util/isFunction":5515,"./util/pipe":5526},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Observable=void 0;var n=e("./Subscriber"),i=e("./Subscription"),o=e("./symbol/observable"),s=e("./util/pipe"),a=e("./config"),l=e("./util/isFunction"),u=e("./util/errorContext"),c=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o,s=this,a=(o=e)&&o instanceof n.Subscriber||function(e){return e&&l.isFunction(e.next)&&l.isFunction(e.error)&&l.isFunction(e.complete)}(o)&&i.isSubscription(o)?e:new n.SafeSubscriber(e,t,r);return u.errorContext(function(){var e=s,t=e.operator,r=e.source;a.add(t?t.call(a,r):r?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=f(t))(function(t,i){var o=new n.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});r.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function f(e){var t;return null!==(t=null!=e?e:a.config.Promise)&&void 0!==t?t:Promise}r.Observable=c}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Observable.js"}],[5312,{"./Subject":5314,"./scheduler/dateTimestampProvider":5487},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.ReplaySubject=void 0;var o=e("./Subject"),s=e("./scheduler/dateTimestampProvider"),a=function(e){function t(t,r,n){void 0===t&&(t=Infinity),void 0===r&&(r=Infinity),void 0===n&&(n=s.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===Infinity,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return i(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<Infinity&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(o.Subject);r.ReplaySubject=a}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/ReplaySubject.js"}],[5313,{"./scheduler/dateTimestampProvider":5487},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Scheduler=void 0;var n=e("./scheduler/dateTimestampProvider"),i=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=n.dateTimestampProvider.now,e}();r.Scheduler=i}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Scheduler.js"}],[5314,{"./Observable":5311,"./Subscription":5316,"./util/ObjectUnsubscribedError":5500,"./util/arrRemove":5506,"./util/errorContext":5509},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.AnonymousSubject=r.Subject=void 0;var s=e("./Observable"),a=e("./Subscription"),l=e("./util/ObjectUnsubscribedError"),u=e("./util/arrRemove"),c=e("./util/errorContext"),f=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new l.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;c.errorContext(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=o(t.currentObservers),s=i.next();!s.done;s=i.next()){s.value.next(e)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;c.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;c.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?a.EMPTY_SUBSCRIPTION:(this.currentObservers=null,o.push(e),new a.Subscription(function(){t.currentObservers=null,u.arrRemove(o,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new s.Observable;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(s.Observable);r.Subject=f;var d=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:a.EMPTY_SUBSCRIPTION},t}(f);r.AnonymousSubject=d}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Subject.js"}],[5315,{"./NotificationFactories":5310,"./Subscription":5316,"./config":5317,"./scheduler/timeoutProvider":5492,"./util/errorContext":5509,"./util/isFunction":5515,"./util/noop":5524,"./util/reportUnhandledError":5527},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.EMPTY_OBSERVER=r.SafeSubscriber=r.Subscriber=void 0;var o=e("./util/isFunction"),s=e("./Subscription"),a=e("./config"),l=e("./util/reportUnhandledError"),u=e("./util/noop"),c=e("./NotificationFactories"),f=e("./scheduler/timeoutProvider"),d=e("./util/errorContext"),p=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,s.isSubscription(t)&&t.add(n)):n.destination=r.EMPTY_OBSERVER,n}return i(t,e),t.create=function(e,t,r){return new v(e,t,r)},t.prototype.next=function(e){this.isStopped?g(c.nextNotification(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?g(c.errorNotification(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?g(c.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(s.Subscription);r.Subscriber=p;var h=Function.prototype.bind;function b(e,t){return h.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){y(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){y(e)}else y(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){y(e)}},e}(),v=function(e){function t(t,r,n){var i,s,l=e.call(this)||this;o.isFunction(t)||!t?i={next:null!=t?t:undefined,error:null!=r?r:undefined,complete:null!=n?n:undefined}:l&&a.config.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},i={next:t.next&&b(t.next,s),error:t.error&&b(t.error,s),complete:t.complete&&b(t.complete,s)}):i=t;return l.destination=new m(i),l}return i(t,e),t}(p);function y(e){a.config.useDeprecatedSynchronousErrorHandling?d.captureError(e):l.reportUnhandledError(e)}function g(e,t){var r=a.config.onStoppedNotification;r&&f.timeoutProvider.setTimeout(function(){return r(e,t)})}r.SafeSubscriber=v,r.EMPTY_OBSERVER={closed:!0,next:u.noop,error:function(e){throw e},complete:u.noop}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Subscriber.js"}],[5316,{"./util/UnsubscriptionError":5502,"./util/arrRemove":5506,"./util/isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.isSubscription=r.EMPTY_SUBSCRIPTION=r.Subscription=void 0;var s=e("./util/isFunction"),a=e("./util/UnsubscriptionError"),l=e("./util/arrRemove"),u=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,l,u;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var d=n(f),p=d.next();!p.done;p=d.next()){p.value.remove(this)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}else f.remove(this);var h=this.initialTeardown;if(s.isFunction(h))try{h()}catch(e){u=e instanceof a.UnsubscriptionError?e.errors:[e]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var m=n(b),v=m.next();!v.done;v=m.next()){var y=v.value;try{c(y)}catch(e){u=null!=u?u:[],e instanceof a.UnsubscriptionError?u=o(o([],i(u)),i(e.errors)):u.push(e)}}}catch(e){r={error:e}}finally{try{v&&!v.done&&(l=m.return)&&l.call(m)}finally{if(r)throw r.error}}}if(u)throw new a.UnsubscriptionError(u)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)c(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&l.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&l.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function c(e){s.isFunction(e)?e():e.unsubscribe()}r.Subscription=u,r.EMPTY_SUBSCRIPTION=u.EMPTY,r.isSubscription=function(e){return e instanceof u||e&&"closed"in e&&s.isFunction(e.remove)&&s.isFunction(e.add)&&s.isFunction(e.unsubscribe)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Subscription.js"}],[5317,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.config=void 0,r.config={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/config.js"}],[5318,{"./Subscriber":5315,"./util/EmptyError":5497},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.firstValueFrom=void 0;var n=e("./util/EmptyError"),i=e("./Subscriber");r.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise(function(o,s){var a=new i.SafeSubscriber({next:function(e){o(e),a.unsubscribe()},error:s,complete:function(){r?o(t.defaultValue):s(new n.EmptyError)}});e.subscribe(a)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/firstValueFrom.js"}],[5319,{"./util/EmptyError":5497},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lastValueFrom=void 0;var n=e("./util/EmptyError");r.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise(function(i,o){var s,a=!1;e.subscribe({next:function(e){s=e,a=!0},error:o,complete:function(){a?i(s):r?i(t.defaultValue):o(new n.EmptyError)}})})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/lastValueFrom.js"}],[532,{"@metamask/keyring-api":2082,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,t.data=function(e){if(!(0,i.hasProperty)(e,"TokensController")){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${s}: TokensController not found.`)),e}if(!(0,i.hasProperty)(e,"AccountsController")){var n,a;return null===(n=global.sentry)||void 0===n||null===(a=n.captureException)||void 0===a||a.call(n,new Error(`Migration ${s}: AccountsController not found.`)),e}if(!(0,i.hasProperty)(e,"TokenBalancesController")){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${s}: TokenBalancesController not found.`)),e}const c=e.TokensController,f=e.TokenBalancesController,d=e.AccountsController;if(!(0,i.isObject)(c)){var p,h;return null===(p=global.sentry)||void 0===p||null===(h=p.captureException)||void 0===h||h.call(p,new Error(`Migration ${s}: TokensController is type '${typeof c}', expected object.`)),e}if(!(0,i.isObject)(f)){var b,m;return null===(b=global.sentry)||void 0===b||null===(m=b.captureException)||void 0===m||m.call(b,new Error(`Migration ${s}: TokenBalancesController is type '${typeof f}', expected object.`)),e}if(!(0,i.isObject)(d)){var v,y;return null===(v=global.sentry)||void 0===v||null===(y=v.captureException)||void 0===y||y.call(v,new Error(`Migration ${s}: AccountsController is type '${typeof d}', expected object.`)),e}const{internalAccounts:g}=d,w=Object.values(g.accounts),k=w.filter(e=>(0,o.isEvmAccountType)(e.type)).map(e=>e.address);if((0,i.hasProperty)(c,"allTokens"))for(const e of Object.keys(c.allTokens)){const t=c.allTokens[e];for(const r of Object.keys(t))k.includes(r)||delete c.allTokens[e][r]}if((0,i.hasProperty)(c,"allDetectedTokens"))for(const e of Object.keys(c.allDetectedTokens)){const t=c.allDetectedTokens[e];for(const r of Object.keys(t))k.includes(r)||delete c.allDetectedTokens[e][r]}if((0,i.hasProperty)(c,"allIgnoredTokens"))for(const e of Object.keys(c.allIgnoredTokens)){const t=c.allIgnoredTokens[e];for(const r of Object.keys(t))k.includes(r)||delete c.allIgnoredTokens[e][r]}if((0,i.hasProperty)(f,"tokenBalances"))for(const e of Object.keys(f.tokenBalances))k.includes(e)||delete f.tokenBalances[e];return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("@metamask/keyring-api");const s=r.version=162}}},{package:"$root$",file:"app/scripts/migrations/162.ts"}],[5320,{"../Observable":5311,"../Subscription":5316,"../operators/OperatorSubscriber":5351,"../operators/refCount":5421,"../util/lift":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectableObservable=void 0;var o=e("../Observable"),s=e("../Subscription"),a=e("../operators/refCount"),l=e("../operators/OperatorSubscriber"),u=e("../util/lift"),c=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,u.hasLift(t)&&(n.lift=t.lift),n}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new s.Subscription;var r=this.getSubject();t.add(this.source.subscribe(l.createOperatorSubscriber(r,undefined,function(){e._teardown(),r.complete()},function(t){e._teardown(),r.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=s.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return a.refCount()(this)},t}(o.Observable);r.ConnectableObservable=c}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js"}],[5321,{"./bindCallbackInternals":5322},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bindCallback=void 0;var n=e("./bindCallbackInternals");r.bindCallback=function(e,t,r){return n.bindCallbackInternals(!1,e,t,r)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js"}],[5322,{"../AsyncSubject":5307,"../Observable":5311,"../operators/observeOn":5411,"../operators/subscribeOn":5439,"../util/isScheduler":5521,"../util/mapOneOrManyArgs":5523},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.bindCallbackInternals=void 0;var o=e("../util/isScheduler"),s=e("../Observable"),a=e("../operators/subscribeOn"),l=e("../util/mapOneOrManyArgs"),u=e("../operators/observeOn"),c=e("../AsyncSubject");r.bindCallbackInternals=function e(t,r,f,d){if(f){if(!o.isScheduler(f))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r,d).apply(this,n).pipe(l.mapOneOrManyArgs(f))};d=f}return d?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r).apply(this,n).pipe(a.subscribeOn(d),u.observeOn(d))}:function(){for(var e=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var l=new c.AsyncSubject,u=!0;return new s.Observable(function(s){var a=l.subscribe(s);if(u){u=!1;var c=!1,f=!1;r.apply(e,i(i([],n(o)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=e.shift();if(null!=n)return void l.error(n)}l.next(1<e.length?e:e[0]),f=!0,c&&l.complete()}])),f&&l.complete(),c=!0}return a})}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js"}],[5323,{"./bindCallbackInternals":5322},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bindNodeCallback=void 0;var n=e("./bindCallbackInternals");r.bindNodeCallback=function(e,t,r){return n.bindCallbackInternals(!0,e,t,r)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js"}],[5324,{"../Observable":5311,"../operators/OperatorSubscriber":5351,"../util/args":5503,"../util/argsArgArrayOrObject":5504,"../util/createObject":5508,"../util/executeSchedule":5510,"../util/identity":5511,"../util/mapOneOrManyArgs":5523,"./from":5331},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatestInit=r.combineLatest=void 0;var n=e("../Observable"),i=e("../util/argsArgArrayOrObject"),o=e("./from"),s=e("../util/identity"),a=e("../util/mapOneOrManyArgs"),l=e("../util/args"),u=e("../util/createObject"),c=e("../operators/OperatorSubscriber"),f=e("../util/executeSchedule");function d(e,t,r){return void 0===r&&(r=s.identity),function(n){p(t,function(){for(var i=e.length,s=new Array(i),a=i,l=i,u=function(i){p(t,function(){var u=o.from(e[i],t),f=!1;u.subscribe(c.createOperatorSubscriber(n,function(e){s[i]=e,f||(f=!0,l--),l||n.next(r(s.slice()))},function(){--a||n.complete()}))},n)},f=0;f<i;f++)u(f)},n)}}function p(e,t,r){e?f.executeSchedule(r,e,t):t()}r.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=l.popScheduler(e),c=l.popResultSelector(e),f=i.argsArgArrayOrObject(e),p=f.args,h=f.keys;if(0===p.length)return o.from([],r);var b=new n.Observable(d(p,r,h?function(e){return u.createObject(h,e)}:s.identity));return c?b.pipe(a.mapOneOrManyArgs(c)):b},r.combineLatestInit=d}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"}],[5325,{"../operators/concatAll":5365,"../util/args":5503,"./from":5331},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.concat=void 0;var n=e("../operators/concatAll"),i=e("../util/args"),o=e("./from");r.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.concatAll()(o.from(e,i.popScheduler(e)))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/concat.js"}],[5326,{"../Observable":5311,"../Subject":5314,"./defer":5327},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.connectable=void 0;var n=e("../Subject"),i=e("../Observable"),o=e("./defer"),s={connector:function(){return new n.Subject},resetOnDisconnect:!0};r.connectable=function(e,t){void 0===t&&(t=s);var r=null,n=t.connector,a=t.resetOnDisconnect,l=void 0===a||a,u=n(),c=new i.Observable(function(e){return u.subscribe(e)});return c.connect=function(){return r&&!r.closed||(r=o.defer(function(){return e}).subscribe(u),l&&r.add(function(){return u=n()})),r},c}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/connectable.js"}],[5327,{"../Observable":5311,"./innerFrom":5337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.defer=void 0;var n=e("../Observable"),i=e("./innerFrom");r.defer=function(e){return new n.Observable(function(t){i.innerFrom(e()).subscribe(t)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/defer.js"}],[5328,{"../../Observable":5311,"../../scheduler/animationFrameProvider":5484,"../../scheduler/performanceTimestampProvider":5490},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.animationFrames=void 0;var n=e("../../Observable"),i=e("../../scheduler/performanceTimestampProvider"),o=e("../../scheduler/animationFrameProvider");function s(e){return new n.Observable(function(t){var r=e||i.performanceTimestampProvider,n=r.now(),s=0,a=function(){t.closed||(s=o.animationFrameProvider.requestAnimationFrame(function(i){s=0;var o=r.now();t.next({timestamp:e?o:i,elapsed:o-n}),a()}))};return a(),function(){s&&o.animationFrameProvider.cancelAnimationFrame(s)}})}r.animationFrames=function(e){return e?s(e):a};var a=s()}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js"}],[5329,{"../Observable":5311},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.empty=r.EMPTY=void 0;var n=e("../Observable");r.EMPTY=new n.Observable(function(e){return e.complete()}),r.empty=function(e){return e?function(e){return new n.Observable(function(t){return e.schedule(function(){return t.complete()})})}(e):r.EMPTY}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/empty.js"}],[533,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,i.hasProperty)(e,"TokensController"))return console.warn("newState.TokensController is not present"),e;const t=e.TokensController;if(!(0,i.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${o}: TokensController is type '${typeof t}', expected object.`)),e}(0,i.hasProperty)(t,"tokens")&&delete t.tokens;(0,i.hasProperty)(t,"detectedTokens")&&delete t.detectedTokens;(0,i.hasProperty)(t,"ignoredTokens")&&delete t.ignoredTokens;return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=163}}},{package:"$root$",file:"app/scripts/migrations/163.ts"}],[5330,{"../Observable":5311,"../operators/OperatorSubscriber":5351,"../util/args":5503,"../util/argsArgArrayOrObject":5504,"../util/createObject":5508,"../util/mapOneOrManyArgs":5523,"./innerFrom":5337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.forkJoin=void 0;var n=e("../Observable"),i=e("../util/argsArgArrayOrObject"),o=e("./innerFrom"),s=e("../util/args"),a=e("../operators/OperatorSubscriber"),l=e("../util/mapOneOrManyArgs"),u=e("../util/createObject");r.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popResultSelector(e),c=i.argsArgArrayOrObject(e),f=c.args,d=c.keys,p=new n.Observable(function(e){var t=f.length;if(t)for(var r=new Array(t),n=t,i=t,s=function(t){var s=!1;o.innerFrom(f[t]).subscribe(a.createOperatorSubscriber(e,function(e){s||(s=!0,i--),r[t]=e},function(){return n--},undefined,function(){n&&s||(i||e.next(d?u.createObject(d,r):r),e.complete())}))},l=0;l<t;l++)s(l);else e.complete()});return r?p.pipe(l.mapOneOrManyArgs(r)):p}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js"}],[5331,{"../scheduled/scheduled":5472,"./innerFrom":5337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.from=void 0;var n=e("../scheduled/scheduled"),i=e("./innerFrom");r.from=function(e,t){return t?n.scheduled(e,t):i.innerFrom(e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/from.js"}],[5332,{"../Observable":5311,"../observable/innerFrom":5337,"../operators/mergeMap":5405,"../util/isArrayLike":5512,"../util/isFunction":5515,"../util/mapOneOrManyArgs":5523},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(r,"__esModule",{value:!0}),r.fromEvent=void 0;var i=e("../observable/innerFrom"),o=e("../Observable"),s=e("../operators/mergeMap"),a=e("../util/isArrayLike"),l=e("../util/isFunction"),u=e("../util/mapOneOrManyArgs"),c=["addListener","removeListener"],f=["addEventListener","removeEventListener"],d=["on","off"];function p(e,t){return function(r){return function(n){return e[r](t,n)}}}r.fromEvent=function e(t,r,h,b){if(l.isFunction(h)&&(b=h,h=undefined),b)return e(t,r,h).pipe(u.mapOneOrManyArgs(b));var m=n(function(e){return l.isFunction(e.addEventListener)&&l.isFunction(e.removeEventListener)}(t)?f.map(function(e){return function(n){return t[e](r,n,h)}}):function(e){return l.isFunction(e.addListener)&&l.isFunction(e.removeListener)}(t)?c.map(p(t,r)):function(e){return l.isFunction(e.on)&&l.isFunction(e.off)}(t)?d.map(p(t,r)):[],2),v=m[0],y=m[1];if(!v&&a.isArrayLike(t))return s.mergeMap(function(t){return e(t,r,h)})(i.innerFrom(t));if(!v)throw new TypeError("Invalid event target");return new o.Observable(function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return v(t),function(){return y(t)}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js"}],[5333,{"../Observable":5311,"../util/isFunction":5515,"../util/mapOneOrManyArgs":5523},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.fromEventPattern=void 0;var n=e("../Observable"),i=e("../util/isFunction"),o=e("../util/mapOneOrManyArgs");r.fromEventPattern=function e(t,r,s){return s?e(t,r).pipe(o.mapOneOrManyArgs(s)):new n.Observable(function(e){var n=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},o=t(n);return i.isFunction(r)?function(){return r(n,o)}:undefined})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js"}],[5334,{"../Observable":5311},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.fromSubscribable=void 0;var n=e("../Observable");r.fromSubscribable=function(e){return new n.Observable(function(t){return e.subscribe(t)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js"}],[5335,{"../scheduled/scheduleIterable":5468,"../util/identity":5511,"../util/isScheduler":5521,"./defer":5327},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.generate=void 0;var i=e("../util/identity"),o=e("../util/isScheduler"),s=e("./defer"),a=e("../scheduled/scheduleIterable");r.generate=function(e,t,r,l,u){var c,f,d,p;function h(){var e;return n(this,function(n){switch(n.label){case 0:e=p,n.label=1;case 1:return t&&!t(e)?[3,4]:[4,d(e)];case 2:n.sent(),n.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}})}return 1===arguments.length?(p=(c=e).initialState,t=c.condition,r=c.iterate,f=c.resultSelector,d=void 0===f?i.identity:f,u=c.scheduler):(p=e,!l||o.isScheduler(l)?(d=i.identity,u=l):d=l),s.defer(u?function(){return a.scheduleIterable(h(),u)}:h)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/generate.js"}],[5336,{"./defer":5327},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.iif=void 0;var n=e("./defer");r.iif=function(e,t,r){return n.defer(function(){return e()?t:r})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/iif.js"}],[5337,{"../Observable":5311,"../symbol/observable":5494,"../util/isArrayLike":5512,"../util/isAsyncIterable":5513,"../util/isFunction":5515,"../util/isInteropObservable":5516,"../util/isIterable":5517,"../util/isPromise":5519,"../util/isReadableStreamLike":5520,"../util/reportUnhandledError":5527,"../util/throwUnobservableError":5528},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof s?s(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,i,(t=e[r](t)).done,t.value)})}}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.fromReadableStreamLike=r.fromAsyncIterable=r.fromIterable=r.fromPromise=r.fromArrayLike=r.fromInteropObservable=r.innerFrom=void 0;var a=e("../util/isArrayLike"),l=e("../util/isPromise"),u=e("../Observable"),c=e("../util/isInteropObservable"),f=e("../util/isAsyncIterable"),d=e("../util/throwUnobservableError"),p=e("../util/isIterable"),h=e("../util/isReadableStreamLike"),b=e("../util/isFunction"),m=e("../util/reportUnhandledError"),v=e("../symbol/observable");function y(e){return new u.Observable(function(t){var r=e[v.observable]();if(b.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function g(e){return new u.Observable(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function w(e){return new u.Observable(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,m.reportUnhandledError)})}function k(e){return new u.Observable(function(t){var r,n;try{for(var i=s(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function j(e){return new u.Observable(function(t){(function(e,t){var r,s,a,l;return n(this,void 0,void 0,function(){var n,u;return i(this,function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),r=o(e),i.label=1;case 1:return[4,r.next()];case 2:if((s=i.sent()).done)return[3,4];if(n=s.value,t.next(n),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=i.sent(),a={error:u},[3,11];case 6:return i.trys.push([6,,9,10]),s&&!s.done&&(l=r.return)?[4,l.call(r)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function _(e){return j(h.readableStreamLikeToAsyncGenerator(e))}r.innerFrom=function(e){if(e instanceof u.Observable)return e;if(null!=e){if(c.isInteropObservable(e))return y(e);if(a.isArrayLike(e))return g(e);if(l.isPromise(e))return w(e);if(f.isAsyncIterable(e))return j(e);if(p.isIterable(e))return k(e);if(h.isReadableStreamLike(e))return _(e)}throw d.createInvalidObservableTypeError(e)},r.fromInteropObservable=y,r.fromArrayLike=g,r.fromPromise=w,r.fromIterable=k,r.fromAsyncIterable=j,r.fromReadableStreamLike=_}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js"}],[5338,{"../scheduler/async":5486,"./timer":5348},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.interval=void 0;var n=e("../scheduler/async"),i=e("./timer");r.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=n.asyncScheduler),e<0&&(e=0),i.timer(e,e,t)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/interval.js"}],[5339,{"../operators/mergeAll":5403,"../util/args":5503,"./empty":5329,"./from":5331,"./innerFrom":5337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.merge=void 0;var n=e("../operators/mergeAll"),i=e("./innerFrom"),o=e("./empty"),s=e("../util/args"),a=e("./from");r.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popScheduler(e),l=s.popNumber(e,Infinity),u=e;return u.length?1===u.length?i.innerFrom(u[0]):n.mergeAll(l)(a.from(u,r)):o.EMPTY}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/merge.js"}],[534,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=o,t.data=function(e){if(!(0,i.hasProperty)(e,"PermissionController")){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error(`Migration ${o}: PermissionController not found.`)),e}if(!(0,i.hasProperty)(e,"NetworkController")){var n,l;return null===(n=global.sentry)||void 0===n||null===(l=n.captureException)||void 0===l||l.call(n,new Error(`Migration ${o}: NetworkController not found.`)),e}const u=e.PermissionController,c=e.NetworkController;if(!(0,i.isObject)(u)){var f,d;return null===(f=global.sentry)||void 0===f||null===(d=f.captureException)||void 0===d||d.call(f,new Error(`Migration ${o}: PermissionController is type '${typeof u}', expected object.`)),e}if(!(0,i.isObject)(c)){var p,h;return null===(p=global.sentry)||void 0===p||null===(h=p.captureException)||void 0===h||h.call(p,new Error(`Migration ${o}: NetworkController is type '${typeof c}', expected object.`)),e}if(!(0,i.hasProperty)(c,"networkConfigurationsByChainId")){var b,m;return null===(b=global.sentry)||void 0===b||null===(m=b.captureException)||void 0===m||m.call(b,new Error(`Migration ${o}: NetworkController.networkConfigurationsByChainId not found.`)),e}const{networkConfigurationsByChainId:v}=c;if(!(0,i.isObject)(v)){var y,g;return null===(y=global.sentry)||void 0===y||null===(g=y.captureException)||void 0===g||g.call(y,new Error(`Migration ${o}: NetworkController.networkConfigurationsByChainId is type '${typeof v}', expected object.`)),e}const w=Object.keys(v).map(e=>`eip155:${parseInt(e,16)}`);if(!(0,i.hasProperty)(u,"subjects"))return e;const{subjects:k}=u;if(!(0,i.isObject)(k)){var j,_;return null===(j=global.sentry)||void 0===j||null===(_=j.captureException)||void 0===_||_.call(j,new Error(`Migration ${o}: PermissionController.subjects is type '${typeof k}', expected object.`)),e}for(const e of Object.keys(k)){const t=k[e];if(!(0,i.isObject)(t))continue;if(!(0,i.hasProperty)(t,"permissions")||!(0,i.isObject)(t.permissions))continue;const{permissions:r}=t;if(!(0,i.hasProperty)(r,a))continue;const n=r[a];if((0,i.isObject)(n)&&((0,i.hasProperty)(n,"caveats")&&Array.isArray(n.caveats)))for(const e of n.caveats){if(!(0,i.isObject)(e)||e.type!==s)continue;if(!(0,i.hasProperty)(e,"value")||!(0,i.isObject)(e.value))continue;const t=e.value;if((0,i.isObject)(t.requiredScopes))for(const e of Object.keys(t.requiredScopes))!e.startsWith("wallet:")&&e.startsWith("eip155:")&&(w.includes(e)||delete t.requiredScopes[e]);if((0,i.isObject)(t.optionalScopes))for(const e of Object.keys(t.optionalScopes))!e.startsWith("wallet:")&&e.startsWith("eip155:")&&(w.includes(e)||delete t.optionalScopes[e])}}return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils");const o=r.version=164,s="authorizedScopes",a="endowment:caip25"}}},{package:"$root$",file:"app/scripts/migrations/164.ts"}],[5340,{"../Observable":5311,"../util/noop":5524},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.never=r.NEVER=void 0;var n=e("../Observable"),i=e("../util/noop");r.NEVER=new n.Observable(i.noop),r.never=function(){return r.NEVER}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/never.js"}],[5341,{"../util/args":5503,"./from":5331},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.of=void 0;var n=e("../util/args"),i=e("./from");r.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n.popScheduler(e);return i.from(e,r)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/of.js"}],[5342,{"../Observable":5311,"../operators/OperatorSubscriber":5351,"../util/argsOrArgArray":5505,"../util/noop":5524,"./innerFrom":5337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.onErrorResumeNext=void 0;var n=e("../Observable"),i=e("../util/argsOrArgArray"),o=e("../operators/OperatorSubscriber"),s=e("../util/noop"),a=e("./innerFrom");r.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.argsOrArgArray(e);return new n.Observable(function(e){var t=0,n=function(){if(t<r.length){var i=void 0;try{i=a.innerFrom(r[t++])}catch(e){return void n()}var l=new o.OperatorSubscriber(e,undefined,s.noop,s.noop);i.subscribe(l),l.add(n)}else e.complete()};n()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js"}],[5343,{"./from":5331},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pairs=void 0;var n=e("./from");r.pairs=function(e,t){return n.from(Object.entries(e),t)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/pairs.js"}],[5344,{"../operators/filter":5387,"../util/not":5525,"./innerFrom":5337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.partition=void 0;var n=e("../util/not"),i=e("../operators/filter"),o=e("./innerFrom");r.partition=function(e,t,r){return[i.filter(t,r)(o.innerFrom(e)),i.filter(n.not(t,r))(o.innerFrom(e))]}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/partition.js"}],[5345,{"../Observable":5311,"../operators/OperatorSubscriber":5351,"../util/argsOrArgArray":5505,"./innerFrom":5337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.raceInit=r.race=void 0;var n=e("../Observable"),i=e("./innerFrom"),o=e("../util/argsOrArgArray"),s=e("../operators/OperatorSubscriber");function a(e){return function(t){for(var r=[],n=function(n){r.push(i.innerFrom(e[n]).subscribe(s.createOperatorSubscriber(t,function(e){if(r){for(var i=0;i<r.length;i++)i!==n&&r[i].unsubscribe();r=null}t.next(e)})))},o=0;r&&!t.closed&&o<e.length;o++)n(o)}}r.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=o.argsOrArgArray(e)).length?i.innerFrom(e[0]):new n.Observable(a(e))},r.raceInit=a}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/race.js"}],[5346,{"../Observable":5311,"./empty":5329},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.range=void 0;var n=e("../Observable"),i=e("./empty");r.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return i.EMPTY;var o=t+e;return new n.Observable(r?function(t){var n=e;return r.schedule(function(){n<o?(t.next(n++),this.schedule()):t.complete()})}:function(t){for(var r=e;r<o&&!t.closed;)t.next(r++);t.complete()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/range.js"}],[5347,{"../Observable":5311,"../util/isFunction":5515},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;var n=e("../Observable"),i=e("../util/isFunction");r.throwError=function(e,t){var r=i.isFunction(e)?e:function(){return e},o=function(e){return e.error(r())};return new n.Observable(t?function(e){return t.schedule(o,0,e)}:o)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/throwError.js"}],[5348,{"../Observable":5311,"../scheduler/async":5486,"../util/isDate":5514,"../util/isScheduler":5521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.timer=void 0;var n=e("../Observable"),i=e("../scheduler/async"),o=e("../util/isScheduler"),s=e("../util/isDate");r.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=i.async);var a=-1;return null!=t&&(o.isScheduler(t)?r=t:a=t),new n.Observable(function(t){var n=s.isValidDate(e)?+e-r.now():e;n<0&&(n=0);var i=0;return r.schedule(function(){t.closed||(t.next(i++),0<=a?this.schedule(undefined,a):t.complete())},n)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/timer.js"}],[5349,{"../Observable":5311,"./empty":5329,"./innerFrom":5337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.using=void 0;var n=e("../Observable"),i=e("./innerFrom"),o=e("./empty");r.using=function(e,t){return new n.Observable(function(r){var n=e(),s=t(n);return(s?i.innerFrom(s):o.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/using.js"}],[535,{"@metamask/snaps-rpc-methods":2585,"@metamask/snaps-utils":2755,"@metamask/utils":2879,"cron-parser":4139,lodash:4789,luxon:4800},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getExecutionDate=c,r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=u,t.data=function(e){if(!(0,i.hasProperty)(e,"CronjobController")||!(0,i.isObject)(e.CronjobController))return console.warn(`Skipping migration ${u}: \`CronjobController\` state not found or is not an object.`),e;if(!(0,i.hasProperty)(e,"PermissionController")||!(0,i.isObject)(e.PermissionController))return console.warn(new Error(`Skipping migration ${u}: \`PermissionController\` state not found or is not an object.`)),e;const t=e.CronjobController,r=e.PermissionController,n=Object.fromEntries(Object.values(r.subjects).filter(e=>(0,a.isSnapId)(e.origin)&&e.permissions[l.SnapEndowments.Cronjob]).flatMap(e=>{const{caveats:r}=e.permissions[l.SnapEndowments.Cronjob];if(!Array.isArray(r))return[];const n=r.find(e=>e.type===a.SnapCaveatType.SnapCronjob);if(!(null!=n&&n.value&&(0,i.isPlainObject)(n.value)&&(0,i.hasProperty)(n.value,"jobs")&&Array.isArray(n.value.jobs)))return[];return n.value.jobs.map(({expression:r,request:n},i)=>{var o;const a=`${e.origin}-${i}`,{lastRun:l}=(null===(o=t.jobs)||void 0===o?void 0:o[a])??{lastRun:0},u=(0,s.parseExpression)(r),f=u.hasPrev()&&u.prev().getTime()>l?u.prev().toISOString():c(r);return{id:`cronjob-${e.origin}-${i}`,recurring:!0,schedule:r,scheduledAt:(new Date).toISOString(),snapId:e.origin,date:f,request:n}})}).map(e=>[e.id,e])),o=Object.fromEntries(Object.entries(t.events??{}).map(([e,t])=>[e,{...t,recurring:!1,schedule:t.date}]));return t.events={...o,...n},delete t.jobs,e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("luxon"),s=e("cron-parser"),a=e("@metamask/snaps-utils"),l=e("@metamask/snaps-rpc-methods");const u=r.version=165;function c(e){const t=o.DateTime.fromISO(e,{setZone:!0});if(t.isValid){const e=Date.now(),r=t.toUTC().startOf("second");if(r.toMillis()<e)throw new Error("Cannot schedule an event in the past.");return r.toISO({suppressMilliseconds:!0})}try{const t=(0,s.parseExpression)(e,{utc:!0}).next(),r=o.DateTime.fromJSDate(t.toDate());return(0,i.assert)(r.isValid),r.toUTC().toISO()}catch{throw new Error(`Unable to parse "${e}" as ISO 8601 date, ISO 8601 duration, or cron expression.`)}}}}},{package:"$root$",file:"app/scripts/migrations/165.ts"}],[5350,{"../Observable":5311,"../operators/OperatorSubscriber":5351,"../util/args":5503,"../util/argsOrArgArray":5505,"./empty":5329,"./innerFrom":5337},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.zip=void 0;var o=e("../Observable"),s=e("./innerFrom"),a=e("../util/argsOrArgArray"),l=e("./empty"),u=e("../operators/OperatorSubscriber"),c=e("../util/args");r.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popResultSelector(e),f=a.argsOrArgArray(e);return f.length?new o.Observable(function(e){var t=f.map(function(){return[]}),o=f.map(function(){return!1});e.add(function(){t=o=null});for(var a=function(a){s.innerFrom(f[a]).subscribe(u.createOperatorSubscriber(e,function(s){if(t[a].push(s),t.every(function(e){return e.length})){var l=t.map(function(e){return e.shift()});e.next(r?r.apply(void 0,i([],n(l))):l),t.some(function(e,t){return!e.length&&o[t]})&&e.complete()}},function(){o[a]=!0,!t[a].length&&e.complete()}))},l=0;!e.closed&&l<f.length;l++)a(l);return function(){t=o=null}}):l.EMPTY}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/zip.js"}],[5351,{"../Subscriber":5315},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.OperatorSubscriber=r.createOperatorSubscriber=void 0;var o=e("../Subscriber");r.createOperatorSubscriber=function(e,t,r,n,i){return new s(e,t,r,n,i)};var s=function(e){function t(t,r,n,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return i(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(o.Subscriber);r.OperatorSubscriber=s}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js"}],[5352,{"../observable/innerFrom":5337,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.audit=void 0;var n=e("../util/lift"),i=e("../observable/innerFrom"),o=e("./OperatorSubscriber");r.audit=function(e){return n.operate(function(t,r){var n=!1,s=null,a=null,l=!1,u=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var e=s;s=null,r.next(e)}l&&r.complete()},c=function(){a=null,l&&r.complete()};t.subscribe(o.createOperatorSubscriber(r,function(t){n=!0,s=t,a||i.innerFrom(e(t)).subscribe(a=o.createOperatorSubscriber(r,u,c))},function(){l=!0,(!n||!a||a.closed)&&r.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/audit.js"}],[5353,{"../observable/timer":5348,"../scheduler/async":5486,"./audit":5352},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.auditTime=void 0;var n=e("../scheduler/async"),i=e("./audit"),o=e("../observable/timer");r.auditTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.audit(function(){return o.timer(e,t)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/auditTime.js"}],[5354,{"../observable/innerFrom":5337,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.buffer=void 0;var n=e("../util/lift"),i=e("../util/noop"),o=e("./OperatorSubscriber"),s=e("../observable/innerFrom");r.buffer=function(e){return n.operate(function(t,r){var n=[];return t.subscribe(o.createOperatorSubscriber(r,function(e){return n.push(e)},function(){r.next(n),r.complete()})),s.innerFrom(e).subscribe(o.createOperatorSubscriber(r,function(){var e=n;n=[],r.next(e)},i.noop)),function(){n=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/buffer.js"}],[5355,{"../util/arrRemove":5506,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.bufferCount=void 0;var i=e("../util/lift"),o=e("./OperatorSubscriber"),s=e("../util/arrRemove");r.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,i.operate(function(r,i){var a=[],l=0;r.subscribe(o.createOperatorSubscriber(i,function(r){var o,u,c,f,d=null;l++%t===0&&a.push([]);try{for(var p=n(a),h=p.next();!h.done;h=p.next()){(v=h.value).push(r),e<=v.length&&(d=null!=d?d:[]).push(v)}}catch(e){o={error:e}}finally{try{h&&!h.done&&(u=p.return)&&u.call(p)}finally{if(o)throw o.error}}if(d)try{for(var b=n(d),m=b.next();!m.done;m=b.next()){var v=m.value;s.arrRemove(a,v),i.next(v)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(f=b.return)&&f.call(b)}finally{if(c)throw c.error}}},function(){var e,t;try{for(var r=n(a),o=r.next();!o.done;o=r.next()){var s=o.value;i.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}i.complete()},undefined,function(){a=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js"}],[5356,{"../Subscription":5316,"../scheduler/async":5486,"../util/args":5503,"../util/arrRemove":5506,"../util/executeSchedule":5510,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.bufferTime=void 0;var i=e("../Subscription"),o=e("../util/lift"),s=e("./OperatorSubscriber"),a=e("../util/arrRemove"),l=e("../scheduler/async"),u=e("../util/args"),c=e("../util/executeSchedule");r.bufferTime=function(e){for(var t,r,f=[],d=1;d<arguments.length;d++)f[d-1]=arguments[d];var p=null!==(t=u.popScheduler(f))&&void 0!==t?t:l.asyncScheduler,h=null!==(r=f[0])&&void 0!==r?r:null,b=f[1]||Infinity;return o.operate(function(t,r){var o=[],l=!1,u=function(e){var t=e.buffer;e.subs.unsubscribe(),a.arrRemove(o,e),r.next(t),l&&f()},f=function(){if(o){var t=new i.Subscription;r.add(t);var n={buffer:[],subs:t};o.push(n),c.executeSchedule(t,p,function(){return u(n)},e)}};null!==h&&h>=0?c.executeSchedule(r,p,f,h,!0):l=!0,f();var d=s.createOperatorSubscriber(r,function(e){var t,r,i=o.slice();try{for(var s=n(i),a=s.next();!a.done;a=s.next()){var l=a.value,c=l.buffer;c.push(e),b<=c.length&&u(l)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}},function(){for(;null==o?void 0:o.length;)r.next(o.shift().buffer);null==d||d.unsubscribe(),r.complete(),r.unsubscribe()},undefined,function(){return o=null});t.subscribe(d)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js"}],[5357,{"../Subscription":5316,"../observable/innerFrom":5337,"../util/arrRemove":5506,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.bufferToggle=void 0;var i=e("../Subscription"),o=e("../util/lift"),s=e("../observable/innerFrom"),a=e("./OperatorSubscriber"),l=e("../util/noop"),u=e("../util/arrRemove");r.bufferToggle=function(e,t){return o.operate(function(r,o){var c=[];s.innerFrom(e).subscribe(a.createOperatorSubscriber(o,function(e){var r=[];c.push(r);var n=new i.Subscription;n.add(s.innerFrom(t(e)).subscribe(a.createOperatorSubscriber(o,function(){u.arrRemove(c,r),o.next(r),n.unsubscribe()},l.noop)))},l.noop)),r.subscribe(a.createOperatorSubscriber(o,function(e){var t,r;try{for(var i=n(c),o=i.next();!o.done;o=i.next()){o.value.push(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},function(){for(;c.length>0;)o.next(c.shift());o.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js"}],[5358,{"../observable/innerFrom":5337,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bufferWhen=void 0;var n=e("../util/lift"),i=e("../util/noop"),o=e("./OperatorSubscriber"),s=e("../observable/innerFrom");r.bufferWhen=function(e){return n.operate(function(t,r){var n=null,a=null,l=function(){null==a||a.unsubscribe();var t=n;n=[],t&&r.next(t),s.innerFrom(e()).subscribe(a=o.createOperatorSubscriber(r,l,i.noop))};l(),t.subscribe(o.createOperatorSubscriber(r,function(e){return null==n?void 0:n.push(e)},function(){n&&r.next(n),r.complete()},undefined,function(){return n=a=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js"}],[5359,{"../observable/innerFrom":5337,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.catchError=void 0;var n=e("../observable/innerFrom"),i=e("./OperatorSubscriber"),o=e("../util/lift");r.catchError=function e(t){return o.operate(function(r,o){var s,a=null,l=!1;a=r.subscribe(i.createOperatorSubscriber(o,undefined,undefined,function(i){s=n.innerFrom(t(i,e(t)(r))),a?(a.unsubscribe(),a=null,s.subscribe(o)):l=!0})),l&&(a.unsubscribe(),a=null,s.subscribe(o))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/catchError.js"}],[536,{"../../../shared/constants/network":5768,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getBaseNetworkConfiguration=a,r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,t.data=function(e){if(!(0,i.hasProperty)(e,"NetworkController"))return console.warn(`Migration ${s}: NetworkController not found.`),e;const t=e.NetworkController;if(!(0,i.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${s}: NetworkController is not an object: ${typeof t}`)),e}if(!(0,i.hasProperty)(t,"networkConfigurationsByChainId")){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${s}: NetworkController missing property networkConfigurationsByChainId.`)),e}if(!(0,i.isObject)(t.networkConfigurationsByChainId)){var c,f;return null===(c=global.sentry)||void 0===c||null===(f=c.captureException)||void 0===f||f.call(c,new Error(`Migration ${s}: NetworkController.networkConfigurationsByChainId is not an object: ${typeof t.networkConfigurationsByChainId}.`)),e}if(t.networkConfigurationsByChainId[o.CHAIN_IDS.BASE])return e;return t.networkConfigurationsByChainId[o.CHAIN_IDS.BASE]=a(),e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("../../../shared/constants/network");const s=r.version=166;function a(){return{blockExplorerUrls:[],chainId:"0x2105",defaultRpcEndpointIndex:0,name:"Base Mainnet",nativeCurrency:"ETH",rpcEndpoints:[{failoverUrls:(0,o.getFailoverUrlsForInfuraNetwork)("base-mainnet"),networkClientId:"base-mainnet",type:"infura",url:"https://base-mainnet.infura.io/v3/{infuraProjectId}"}]}}}}},{package:"$root$",file:"app/scripts/migrations/166.ts"}],[5360,{"./combineLatestAll":5362},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.combineAll=void 0;var n=e("./combineLatestAll");r.combineAll=n.combineLatestAll}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/combineAll.js"}],[5361,{"../observable/combineLatest":5324,"../util/args":5503,"../util/argsOrArgArray":5505,"../util/lift":5522,"../util/mapOneOrManyArgs":5523,"../util/pipe":5526},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatest=void 0;var o=e("../observable/combineLatest"),s=e("../util/lift"),a=e("../util/argsOrArgArray"),l=e("../util/mapOneOrManyArgs"),u=e("../util/pipe"),c=e("../util/args");r.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var f=c.popResultSelector(t);return f?u.pipe(e.apply(void 0,i([],n(t))),l.mapOneOrManyArgs(f)):s.operate(function(e,r){o.combineLatestInit(i([e],n(a.argsOrArgArray(t))))(r)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js"}],[5362,{"../observable/combineLatest":5324,"./joinAllInternals":5396},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatestAll=void 0;var n=e("../observable/combineLatest"),i=e("./joinAllInternals");r.combineLatestAll=function(e){return i.joinAllInternals(n.combineLatest,e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js"}],[5363,{"./combineLatest":5361},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatestWith=void 0;var o=e("./combineLatest");r.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.combineLatest.apply(void 0,i([],n(e)))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js"}],[5364,{"../observable/from":5331,"../util/args":5503,"../util/lift":5522,"./concatAll":5365},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.concat=void 0;var o=e("../util/lift"),s=e("./concatAll"),a=e("../util/args"),l=e("../observable/from");r.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.popScheduler(e);return o.operate(function(t,o){s.concatAll()(l.from(i([t],n(e)),r)).subscribe(o)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concat.js"}],[5365,{"./mergeAll":5403},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.concatAll=void 0;var n=e("./mergeAll");r.concatAll=function(){return n.mergeAll(1)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concatAll.js"}],[5366,{"../util/isFunction":5515,"./mergeMap":5405},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.concatMap=void 0;var n=e("./mergeMap"),i=e("../util/isFunction");r.concatMap=function(e,t){return i.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concatMap.js"}],[5367,{"../util/isFunction":5515,"./concatMap":5366},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.concatMapTo=void 0;var n=e("./concatMap"),i=e("../util/isFunction");r.concatMapTo=function(e,t){return i.isFunction(t)?n.concatMap(function(){return e},t):n.concatMap(function(){return e})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js"}],[5368,{"./concat":5364},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.concatWith=void 0;var o=e("./concat");r.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.concat.apply(void 0,i([],n(e)))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concatWith.js"}],[5369,{"../Subject":5314,"../observable/fromSubscribable":5334,"../observable/innerFrom":5337,"../util/lift":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.connect=void 0;var n=e("../Subject"),i=e("../observable/innerFrom"),o=e("../util/lift"),s=e("../observable/fromSubscribable"),a={connector:function(){return new n.Subject}};r.connect=function(e,t){void 0===t&&(t=a);var r=t.connector;return o.operate(function(t,n){var o=r();i.innerFrom(e(s.fromSubscribable(o))).subscribe(n),n.add(t.subscribe(o))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/connect.js"}],[537,{"../../../shared/lib/manifestFlags":5847,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,t.data=function(e){var t;if(!(0,i.hasProperty)(e,"UserStorageController"))return console.warn("newState.UserStorageController is not present"),e;const r=e.UserStorageController;if(!(0,i.isObject)(r)){var n,a;return null===(n=global.sentry)||void 0===n||null===(a=n.captureException)||void 0===a||a.call(n,new Error(`Migration ${s}: UserStorageController is type '${typeof r}', expected object.`)),e}(0,i.hasProperty)(r,"isBackupAndSyncEnabled")&&(r.isBackupAndSyncEnabled=!0);(0,i.hasProperty)(r,"isAccountSyncingEnabled")&&(r.isAccountSyncingEnabled=!0);null!==(t=(0,o.getManifestFlags)().testing)&&void 0!==t&&t.disableSync&&(r.isBackupAndSyncEnabled=!1,r.isAccountSyncingEnabled=!1,r.isProfileSyncingEnabled=!1,r.isContactSyncingEnabled=!1);return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("../../../shared/lib/manifestFlags");const s=r.version=167}}},{package:"$root$",file:"app/scripts/migrations/167.ts"}],[5370,{"./reduce":5420},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.count=void 0;var n=e("./reduce");r.count=function(e){return n.reduce(function(t,r,n){return!e||e(r,n)?t+1:t},0)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/count.js"}],[5371,{"../observable/innerFrom":5337,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.debounce=void 0;var n=e("../util/lift"),i=e("../util/noop"),o=e("./OperatorSubscriber"),s=e("../observable/innerFrom");r.debounce=function(e){return n.operate(function(t,r){var n=!1,a=null,l=null,u=function(){if(null==l||l.unsubscribe(),l=null,n){n=!1;var e=a;a=null,r.next(e)}};t.subscribe(o.createOperatorSubscriber(r,function(t){null==l||l.unsubscribe(),n=!0,a=t,l=o.createOperatorSubscriber(r,u,i.noop),s.innerFrom(e(t)).subscribe(l)},function(){u(),r.complete()},undefined,function(){a=l=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/debounce.js"}],[5372,{"../scheduler/async":5486,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.debounceTime=void 0;var n=e("../scheduler/async"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.debounceTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.operate(function(r,n){var i=null,s=null,a=null,l=function(){if(i){i.unsubscribe(),i=null;var e=s;s=null,n.next(e)}};function u(){var r=a+e,o=t.now();if(o<r)return i=this.schedule(undefined,r-o),void n.add(i);l()}r.subscribe(o.createOperatorSubscriber(n,function(r){s=r,a=t.now(),i||(i=t.schedule(u,e),n.add(i))},function(){l(),n.complete()},undefined,function(){s=i=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js"}],[5373,{"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.defaultIfEmpty=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.defaultIfEmpty=function(e){return n.operate(function(t,r){var n=!1;t.subscribe(i.createOperatorSubscriber(r,function(e){n=!0,r.next(e)},function(){n||r.next(e),r.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js"}],[5374,{"../observable/timer":5348,"../scheduler/async":5486,"./delayWhen":5375},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.delay=void 0;var n=e("../scheduler/async"),i=e("./delayWhen"),o=e("../observable/timer");r.delay=function(e,t){void 0===t&&(t=n.asyncScheduler);var r=o.timer(e,t);return i.delayWhen(function(){return r})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/delay.js"}],[5375,{"../observable/concat":5325,"../observable/innerFrom":5337,"./ignoreElements":5394,"./mapTo":5399,"./mergeMap":5405,"./take":5444},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.delayWhen=void 0;var n=e("../observable/concat"),i=e("./take"),o=e("./ignoreElements"),s=e("./mapTo"),a=e("./mergeMap"),l=e("../observable/innerFrom");r.delayWhen=function e(t,r){return r?function(s){return n.concat(r.pipe(i.take(1),o.ignoreElements()),s.pipe(e(t)))}:a.mergeMap(function(e,r){return l.innerFrom(t(e,r)).pipe(i.take(1),s.mapTo(e))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js"}],[5376,{"../Notification":5309,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.dematerialize=void 0;var n=e("../Notification"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.dematerialize=function(){return i.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){return n.observeNotification(e,t)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js"}],[5377,{"../observable/innerFrom":5337,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.distinct=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../util/noop"),s=e("../observable/innerFrom");r.distinct=function(e,t){return n.operate(function(r,n){var a=new Set;r.subscribe(i.createOperatorSubscriber(n,function(t){var r=e?e(t):t;a.has(r)||(a.add(r),n.next(t))})),t&&s.innerFrom(t).subscribe(i.createOperatorSubscriber(n,function(){return a.clear()},o.noop))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/distinct.js"}],[5378,{"../util/identity":5511,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.distinctUntilChanged=void 0;var n=e("../util/identity"),i=e("../util/lift"),o=e("./OperatorSubscriber");function s(e,t){return e===t}r.distinctUntilChanged=function(e,t){return void 0===t&&(t=n.identity),e=null!=e?e:s,i.operate(function(r,n){var i,s=!0;r.subscribe(o.createOperatorSubscriber(n,function(r){var o=t(r);!s&&e(i,o)||(s=!1,i=o,n.next(r))}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js"}],[5379,{"./distinctUntilChanged":5378},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.distinctUntilKeyChanged=void 0;var n=e("./distinctUntilChanged");r.distinctUntilKeyChanged=function(e,t){return n.distinctUntilChanged(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js"}],[538,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){(0,n.hasProperty)(e,"PermissionLogController")&&(0,n.isObject)(e.PermissionLogController)&&(0,n.hasProperty)(e.PermissionLogController,"permissionActivityLog")?delete e.PermissionLogController.permissionActivityLog:console.warn(`Migration ${o}: 'PermissionLogController.permissionActivityLog' state not found, skipping migration.`)}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=168.1}}},{package:"$root$",file:"app/scripts/migrations/168.1.ts"}],[5380,{"../util/ArgumentOutOfRangeError":5496,"./defaultIfEmpty":5373,"./filter":5387,"./take":5444,"./throwIfEmpty":5451},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.elementAt=void 0;var n=e("../util/ArgumentOutOfRangeError"),i=e("./filter"),o=e("./throwIfEmpty"),s=e("./defaultIfEmpty"),a=e("./take");r.elementAt=function(e,t){if(e<0)throw new n.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(l){return l.pipe(i.filter(function(t,r){return r===e}),a.take(1),r?s.defaultIfEmpty(t):o.throwIfEmpty(function(){return new n.ArgumentOutOfRangeError}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/elementAt.js"}],[5381,{"../observable/concat":5325,"../observable/of":5341},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.endWith=void 0;var o=e("../observable/concat"),s=e("../observable/of");r.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return o.concat(t,s.of.apply(void 0,i([],n(e))))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/endWith.js"}],[5382,{"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.every=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.every=function(e,t){return n.operate(function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,function(i){e.call(t,i,o++,r)||(n.next(!1),n.complete())},function(){n.next(!0),n.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/every.js"}],[5383,{"./exhaustAll":5384},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.exhaust=void 0;var n=e("./exhaustAll");r.exhaust=n.exhaustAll}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/exhaust.js"}],[5384,{"../util/identity":5511,"./exhaustMap":5385},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.exhaustAll=void 0;var n=e("./exhaustMap"),i=e("../util/identity");r.exhaustAll=function(){return n.exhaustMap(i.identity)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js"}],[5385,{"../observable/innerFrom":5337,"../util/lift":5522,"./OperatorSubscriber":5351,"./map":5398},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.exhaustMap=void 0;var n=e("./map"),i=e("../observable/innerFrom"),o=e("../util/lift"),s=e("./OperatorSubscriber");r.exhaustMap=function e(t,r){return r?function(o){return o.pipe(e(function(e,o){return i.innerFrom(t(e,o)).pipe(n.map(function(t,n){return r(e,t,o,n)}))}))}:o.operate(function(e,r){var n=0,o=null,a=!1;e.subscribe(s.createOperatorSubscriber(r,function(e){o||(o=s.createOperatorSubscriber(r,undefined,function(){o=null,a&&r.complete()}),i.innerFrom(t(e,n++)).subscribe(o))},function(){a=!0,!o&&r.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js"}],[5386,{"../util/lift":5522,"./mergeInternals":5404},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.expand=void 0;var n=e("../util/lift"),i=e("./mergeInternals");r.expand=function(e,t,r){return void 0===t&&(t=Infinity),t=(t||0)<1?Infinity:t,n.operate(function(n,o){return i.mergeInternals(n,o,e,t,undefined,!0,r)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/expand.js"}],[5387,{"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.filter=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.filter=function(e,t){return n.operate(function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,function(r){return e.call(t,r,o++)&&n.next(r)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/filter.js"}],[5388,{"../util/lift":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.finalize=void 0;var n=e("../util/lift");r.finalize=function(e){return n.operate(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/finalize.js"}],[5389,{"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createFind=r.find=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");function o(e,t,r){var n="index"===r;return function(r,o){var s=0;r.subscribe(i.createOperatorSubscriber(o,function(i){var a=s++;e.call(t,i,a,r)&&(o.next(n?a:i),o.complete())},function(){o.next(n?-1:undefined),o.complete()}))}}r.find=function(e,t){return n.operate(o(e,t,"value"))},r.createFind=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/find.js"}],[539,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==t?void 0:t.preferences;r&&(r.smartAccountOptIn=!1)}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=168}}},{package:"$root$",file:"app/scripts/migrations/168.ts"}],[5390,{"../util/lift":5522,"./find":5389},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.findIndex=void 0;var n=e("../util/lift"),i=e("./find");r.findIndex=function(e,t){return n.operate(i.createFind(e,t,"index"))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/findIndex.js"}],[5391,{"../util/EmptyError":5497,"../util/identity":5511,"./defaultIfEmpty":5373,"./filter":5387,"./take":5444,"./throwIfEmpty":5451},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.first=void 0;var n=e("../util/EmptyError"),i=e("./filter"),o=e("./take"),s=e("./defaultIfEmpty"),a=e("./throwIfEmpty"),l=e("../util/identity");r.first=function(e,t){var r=arguments.length>=2;return function(u){return u.pipe(e?i.filter(function(t,r){return e(t,r,u)}):l.identity,o.take(1),r?s.defaultIfEmpty(t):a.throwIfEmpty(function(){return new n.EmptyError}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/first.js"}],[5392,{"./mergeMap":5405},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.flatMap=void 0;var n=e("./mergeMap");r.flatMap=n.mergeMap}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/flatMap.js"}],[5393,{"../Observable":5311,"../Subject":5314,"../observable/innerFrom":5337,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.groupBy=void 0;var n=e("../Observable"),i=e("../observable/innerFrom"),o=e("../Subject"),s=e("../util/lift"),a=e("./OperatorSubscriber");r.groupBy=function(e,t,r,l){return s.operate(function(s,u){var c;t&&"function"!=typeof t?(r=t.duration,c=t.element,l=t.connector):c=t;var f=new Map,d=function(e){f.forEach(e),e(u)},p=function(e){return d(function(t){return t.error(e)})},h=0,b=!1,m=new a.OperatorSubscriber(u,function(t){try{var s=e(t),d=f.get(s);if(!d){f.set(s,d=l?l():new o.Subject);var v=(g=s,w=d,(k=new n.Observable(function(e){h++;var t=w.subscribe(e);return function(){t.unsubscribe(),0===--h&&b&&m.unsubscribe()}})).key=g,k);if(u.next(v),r){var y=a.createOperatorSubscriber(d,function(){d.complete(),null==y||y.unsubscribe()},undefined,undefined,function(){return f.delete(s)});m.add(i.innerFrom(r(v)).subscribe(y))}}d.next(c?c(t):t)}catch(e){p(e)}var g,w,k},function(){return d(function(e){return e.complete()})},p,function(){return f.clear()},function(){return b=!0,0===h});s.subscribe(m)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/groupBy.js"}],[5394,{"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ignoreElements=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../util/noop");r.ignoreElements=function(){return n.operate(function(e,t){e.subscribe(i.createOperatorSubscriber(t,o.noop))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js"}],[5395,{"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isEmpty=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.isEmpty=function(){return n.operate(function(e,t){e.subscribe(i.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js"}],[5396,{"../util/identity":5511,"../util/mapOneOrManyArgs":5523,"../util/pipe":5526,"./mergeMap":5405,"./toArray":5456},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.joinAllInternals=void 0;var n=e("../util/identity"),i=e("../util/mapOneOrManyArgs"),o=e("../util/pipe"),s=e("./mergeMap"),a=e("./toArray");r.joinAllInternals=function(e,t){return o.pipe(a.toArray(),s.mergeMap(function(t){return e(t)}),t?i.mapOneOrManyArgs(t):n.identity)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js"}],[5397,{"../util/EmptyError":5497,"../util/identity":5511,"./defaultIfEmpty":5373,"./filter":5387,"./takeLast":5445,"./throwIfEmpty":5451},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.last=void 0;var n=e("../util/EmptyError"),i=e("./filter"),o=e("./takeLast"),s=e("./throwIfEmpty"),a=e("./defaultIfEmpty"),l=e("../util/identity");r.last=function(e,t){var r=arguments.length>=2;return function(u){return u.pipe(e?i.filter(function(t,r){return e(t,r,u)}):l.identity,o.takeLast(1),r?a.defaultIfEmpty(t):s.throwIfEmpty(function(){return new n.EmptyError}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/last.js"}],[5398,{"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.map=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.map=function(e,t){return n.operate(function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,function(r){n.next(e.call(t,r,o++))}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/map.js"}],[5399,{"./map":5398},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mapTo=void 0;var n=e("./map");r.mapTo=function(e){return n.map(function(){return e})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mapTo.js"}],[54,{"../../controllers/institutional-snap/InstitutionalSnapController":211},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InstitutionalSnapControllerInit=void 0;var n=e("../../controllers/institutional-snap/InstitutionalSnapController");r.InstitutionalSnapControllerInit=e=>({controller:new n.InstitutionalSnapController({messenger:e.controllerMessenger})})}}},{package:"$root$",file:"app/scripts/controller-init/institutional-snap/institutional-snap-controller-init.ts"}],[540,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController,r=null==e?void 0:e.AppStateController;null!=t&&t.preferences&&null!=r&&r.upgradeSplashPageAcknowledgedForAccounts&&(t.preferences.smartAccountOptInForAccounts=null==r?void 0:r.upgradeSplashPageAcknowledgedForAccounts);null!=r&&r.upgradeSplashPageAcknowledgedForAccounts&&(null==r||delete r.upgradeSplashPageAcknowledgedForAccounts)}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=169}}},{package:"$root$",file:"app/scripts/migrations/169.ts"}],[5400,{"../Notification":5309,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.materialize=void 0;var n=e("../Notification"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.materialize=function(){return i.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(e){t.next(n.Notification.createNext(e))},function(){t.next(n.Notification.createComplete()),t.complete()},function(e){t.next(n.Notification.createError(e)),t.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/materialize.js"}],[5401,{"../util/isFunction":5515,"./reduce":5420},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.max=void 0;var n=e("./reduce"),i=e("../util/isFunction");r.max=function(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/max.js"}],[5402,{"../observable/from":5331,"../util/args":5503,"../util/argsOrArgArray":5505,"../util/lift":5522,"./mergeAll":5403},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.merge=void 0;var o=e("../util/lift"),s=e("../util/argsOrArgArray"),a=e("./mergeAll"),l=e("../util/args"),u=e("../observable/from");r.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=l.popScheduler(e),c=l.popNumber(e,Infinity);return e=s.argsOrArgArray(e),o.operate(function(t,o){a.mergeAll(c)(u.from(i([t],n(e)),r)).subscribe(o)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/merge.js"}],[5403,{"../util/identity":5511,"./mergeMap":5405},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeAll=void 0;var n=e("./mergeMap"),i=e("../util/identity");r.mergeAll=function(e){return void 0===e&&(e=Infinity),n.mergeMap(i.identity,e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js"}],[5404,{"../observable/innerFrom":5337,"../util/executeSchedule":5510,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeInternals=void 0;var n=e("../observable/innerFrom"),i=e("../util/executeSchedule"),o=e("./OperatorSubscriber");r.mergeInternals=function(e,t,r,s,a,l,u,c){var f=[],d=0,p=0,h=!1,b=function(){!h||f.length||d||t.complete()},m=function(e){return d<s?v(e):f.push(e)},v=function(e){l&&t.next(e),d++;var c=!1;n.innerFrom(r(e,p++)).subscribe(o.createOperatorSubscriber(t,function(e){null==a||a(e),l?m(e):t.next(e)},function(){c=!0},undefined,function(){if(c)try{d--;for(var e=function(){var e=f.shift();u?i.executeSchedule(t,u,function(){return v(e)}):v(e)};f.length&&d<s;)e();b()}catch(e){t.error(e)}}))};return e.subscribe(o.createOperatorSubscriber(t,m,function(){h=!0,b()})),function(){null==c||c()}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js"}],[5405,{"../observable/innerFrom":5337,"../util/isFunction":5515,"../util/lift":5522,"./map":5398,"./mergeInternals":5404},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeMap=void 0;var n=e("./map"),i=e("../observable/innerFrom"),o=e("../util/lift"),s=e("./mergeInternals"),a=e("../util/isFunction");r.mergeMap=function e(t,r,l){return void 0===l&&(l=Infinity),a.isFunction(r)?e(function(e,o){return n.map(function(t,n){return r(e,t,o,n)})(i.innerFrom(t(e,o)))},l):("number"==typeof r&&(l=r),o.operate(function(e,r){return s.mergeInternals(e,r,t,l)}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"}],[5406,{"../util/isFunction":5515,"./mergeMap":5405},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeMapTo=void 0;var n=e("./mergeMap"),i=e("../util/isFunction");r.mergeMapTo=function(e,t,r){return void 0===r&&(r=Infinity),i.isFunction(t)?n.mergeMap(function(){return e},t,r):("number"==typeof t&&(r=t),n.mergeMap(function(){return e},r))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js"}],[5407,{"../util/lift":5522,"./mergeInternals":5404},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mergeScan=void 0;var n=e("../util/lift"),i=e("./mergeInternals");r.mergeScan=function(e,t,r){return void 0===r&&(r=Infinity),n.operate(function(n,o){var s=t;return i.mergeInternals(n,o,function(t,r){return e(s,t,r)},r,function(e){s=e},!1,undefined,function(){return s=null})})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js"}],[5408,{"./merge":5402},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.mergeWith=void 0;var o=e("./merge");r.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.merge.apply(void 0,i([],n(e)))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js"}],[5409,{"../util/isFunction":5515,"./reduce":5420},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.min=void 0;var n=e("./reduce"),i=e("../util/isFunction");r.min=function(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/min.js"}],[541,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){var t;const r=null==e?void 0:e.PreferencesController;null!=r&&null!==(t=r.preferences)&&void 0!==t&&t.smartAccountOptInForAccounts&&delete r.preferences.smartAccountOptInForAccounts}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=170.1}}},{package:"$root$",file:"app/scripts/migrations/170.1.ts"}],[5410,{"../observable/ConnectableObservable":5320,"../util/isFunction":5515,"./connect":5369},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.multicast=void 0;var n=e("../observable/ConnectableObservable"),i=e("../util/isFunction"),o=e("./connect");r.multicast=function(e,t){var r=i.isFunction(e)?e:function(){return e};return i.isFunction(t)?o.connect(t,{connector:r}):function(e){return new n.ConnectableObservable(e,r)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/multicast.js"}],[5411,{"../util/executeSchedule":5510,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.observeOn=void 0;var n=e("../util/executeSchedule"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.observeOn=function(e,t){return void 0===t&&(t=0),i.operate(function(r,i){r.subscribe(o.createOperatorSubscriber(i,function(r){return n.executeSchedule(i,e,function(){return i.next(r)},t)},function(){return n.executeSchedule(i,e,function(){return i.complete()},t)},function(r){return n.executeSchedule(i,e,function(){return i.error(r)},t)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"}],[5412,{"../observable/onErrorResumeNext":5342,"../util/argsOrArgArray":5505},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.onErrorResumeNext=r.onErrorResumeNextWith=void 0;var o=e("../util/argsOrArgArray"),s=e("../observable/onErrorResumeNext");function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.argsOrArgArray(e);return function(e){return s.onErrorResumeNext.apply(void 0,i([e],n(r)))}}r.onErrorResumeNextWith=a,r.onErrorResumeNext=a}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js"}],[5413,{"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pairwise=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.pairwise=function(){return n.operate(function(e,t){var r,n=!1;e.subscribe(i.createOperatorSubscriber(t,function(e){var i=r;r=e,n&&t.next([i,e]),n=!0}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/pairwise.js"}],[5414,{"./map":5398},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pluck=void 0;var n=e("./map");r.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return n.map(function(t){for(var n=t,i=0;i<r;i++){var o=null==n?void 0:n[e[i]];if(void 0===o)return undefined;n=o}return n})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/pluck.js"}],[5415,{"../Subject":5314,"./connect":5369,"./multicast":5410},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.publish=void 0;var n=e("../Subject"),i=e("./multicast"),o=e("./connect");r.publish=function(e){return e?function(t){return o.connect(e)(t)}:function(e){return i.multicast(new n.Subject)(e)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/publish.js"}],[5416,{"../BehaviorSubject":5308,"../observable/ConnectableObservable":5320},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.publishBehavior=void 0;var n=e("../BehaviorSubject"),i=e("../observable/ConnectableObservable");r.publishBehavior=function(e){return function(t){var r=new n.BehaviorSubject(e);return new i.ConnectableObservable(t,function(){return r})}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js"}],[5417,{"../AsyncSubject":5307,"../observable/ConnectableObservable":5320},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.publishLast=void 0;var n=e("../AsyncSubject"),i=e("../observable/ConnectableObservable");r.publishLast=function(){return function(e){var t=new n.AsyncSubject;return new i.ConnectableObservable(e,function(){return t})}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/publishLast.js"}],[5418,{"../ReplaySubject":5312,"../util/isFunction":5515,"./multicast":5410},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.publishReplay=void 0;var n=e("../ReplaySubject"),i=e("./multicast"),o=e("../util/isFunction");r.publishReplay=function(e,t,r,s){r&&!o.isFunction(r)&&(s=r);var a=o.isFunction(r)?r:undefined;return function(r){return i.multicast(new n.ReplaySubject(e,t,s),a)(r)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js"}],[5419,{"../observable/race":5345,"../util/identity":5511,"../util/lift":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.raceWith=void 0;var o=e("../observable/race"),s=e("../util/lift"),a=e("../util/identity");r.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?s.operate(function(t,r){o.raceInit(i([t],n(e)))(r)}):a.identity}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/raceWith.js"}],[542,{"../../../shared/constants/network":5768,"@metamask/network-controller":2206,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=a,t.data=function(e){if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.hasProperty)(e.NetworkController,"networkConfigurationsByChainId")&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)){const{networkConfigurationsByChainId:t}=e.NetworkController;if(!Object.entries(t).filter(([e])=>![...s.infuraChainIdsTestNets,s.CHAIN_IDS.LINEA_MAINNET].includes(e)).some(([,e])=>{var t;if(!(0,n.isObject)(e)||!Array.isArray(e.rpcEndpoints)||"number"!=typeof e.defaultRpcEndpointIndex)return!1;const r=null==e||null===(t=e.rpcEndpoints)||void 0===t?void 0:t[null==e?void 0:e.defaultRpcEndpointIndex];if(!(0,n.isObject)(r)||"string"!=typeof r.url)return!1;try{const e=new URL(r.url).host;return r.type===i.RpcEndpointType.Infura||s.allowedInfuraHosts.includes(e)}catch{return!1}}))return e;const r=t[l];if((0,n.isObject)(r)){const{rpcEndpoints:i}=r;if(Array.isArray(i)){const o=i.findIndex(e=>(0,n.isObject)(e)&&"https://bsc-dataseed.binance.org/"===e.url);if(-1!==o)return i[o]={...i[o],url:`https://bsc-mainnet.infura.io/v3/${s.infuraProjectId}`},t[l]={...r,rpcEndpoints:i},{...e,NetworkController:{...e.NetworkController,networkConfigurationsByChainId:t}}}}}return e}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("@metamask/network-controller"),o=e("lodash"),s=e("../../../shared/constants/network");const a=r.version=170.2,l="0x38"}}},{package:"$root$",file:"app/scripts/migrations/170.2.ts"}],[5420,{"../util/lift":5522,"./scanInternals":5429},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.reduce=void 0;var n=e("./scanInternals"),i=e("../util/lift");r.reduce=function(e,t){return i.operate(n.scanInternals(e,t,arguments.length>=2,!1,!0))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/reduce.js"}],[5421,{"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.refCount=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.refCount=function(){return n.operate(function(e,t){var r=null;e._refCount++;var n=i.createOperatorSubscriber(t,undefined,undefined,undefined,function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,i=r;r=null,!n||i&&n!==i||n.unsubscribe(),t.unsubscribe()}});e.subscribe(n),n.closed||(r=e.connect())})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/refCount.js"}],[5422,{"../observable/empty":5329,"../observable/innerFrom":5337,"../observable/timer":5348,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.repeat=void 0;var n=e("../observable/empty"),i=e("../util/lift"),o=e("./OperatorSubscriber"),s=e("../observable/innerFrom"),a=e("../observable/timer");r.repeat=function(e){var t,r,l=Infinity;return null!=e&&("object"==typeof e?(t=e.count,l=void 0===t?Infinity:t,r=e.delay):l=e),l<=0?function(){return n.EMPTY}:i.operate(function(e,t){var n,i=0,u=function(){if(null==n||n.unsubscribe(),n=null,null!=r){var e="number"==typeof r?a.timer(r):s.innerFrom(r(i)),l=o.createOperatorSubscriber(t,function(){l.unsubscribe(),c()});e.subscribe(l)}else c()},c=function(){var r=!1;n=e.subscribe(o.createOperatorSubscriber(t,undefined,function(){++i<l?n?u():r=!0:t.complete()})),r&&u()};c()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/repeat.js"}],[5423,{"../Subject":5314,"../observable/innerFrom":5337,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.repeatWhen=void 0;var n=e("../observable/innerFrom"),i=e("../Subject"),o=e("../util/lift"),s=e("./OperatorSubscriber");r.repeatWhen=function(e){return o.operate(function(t,r){var o,a,l=!1,u=!1,c=!1,f=function(){return c&&u&&(r.complete(),!0)},d=function(){c=!1,o=t.subscribe(s.createOperatorSubscriber(r,undefined,function(){c=!0,!f()&&(a||(a=new i.Subject,n.innerFrom(e(a)).subscribe(s.createOperatorSubscriber(r,function(){o?d():l=!0},function(){u=!0,f()}))),a).next()})),l&&(o.unsubscribe(),o=null,l=!1,d())};d()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js"}],[5424,{"../observable/innerFrom":5337,"../observable/timer":5348,"../util/identity":5511,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.retry=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../util/identity"),s=e("../observable/timer"),a=e("../observable/innerFrom");r.retry=function(e){var t;void 0===e&&(e=Infinity);var r=(t=e&&"object"==typeof e?e:{count:e}).count,l=void 0===r?Infinity:r,u=t.delay,c=t.resetOnSuccess,f=void 0!==c&&c;return l<=0?o.identity:n.operate(function(e,t){var r,n=0,o=function(){var c=!1;r=e.subscribe(i.createOperatorSubscriber(t,function(e){f&&(n=0),t.next(e)},undefined,function(e){if(n++<l){var f=function(){r?(r.unsubscribe(),r=null,o()):c=!0};if(null!=u){var d="number"==typeof u?s.timer(u):a.innerFrom(u(e,n)),p=i.createOperatorSubscriber(t,function(){p.unsubscribe(),f()},function(){t.complete()});d.subscribe(p)}else f()}else t.error(e)})),c&&(r.unsubscribe(),r=null,o())};o()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/retry.js"}],[5425,{"../Subject":5314,"../observable/innerFrom":5337,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.retryWhen=void 0;var n=e("../observable/innerFrom"),i=e("../Subject"),o=e("../util/lift"),s=e("./OperatorSubscriber");r.retryWhen=function(e){return o.operate(function(t,r){var o,a,l=!1,u=function(){o=t.subscribe(s.createOperatorSubscriber(r,undefined,undefined,function(t){a||(a=new i.Subject,n.innerFrom(e(a)).subscribe(s.createOperatorSubscriber(r,function(){return o?u():l=!0}))),a&&a.next(t)})),l&&(o.unsubscribe(),o=null,l=!1,u())};u()})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js"}],[5426,{"../observable/innerFrom":5337,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sample=void 0;var n=e("../observable/innerFrom"),i=e("../util/lift"),o=e("../util/noop"),s=e("./OperatorSubscriber");r.sample=function(e){return i.operate(function(t,r){var i=!1,a=null;t.subscribe(s.createOperatorSubscriber(r,function(e){i=!0,a=e})),n.innerFrom(e).subscribe(s.createOperatorSubscriber(r,function(){if(i){i=!1;var e=a;a=null,r.next(e)}},o.noop))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/sample.js"}],[5427,{"../observable/interval":5338,"../scheduler/async":5486,"./sample":5426},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sampleTime=void 0;var n=e("../scheduler/async"),i=e("./sample"),o=e("../observable/interval");r.sampleTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.sample(o.interval(e,t))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js"}],[5428,{"../util/lift":5522,"./scanInternals":5429},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scan=void 0;var n=e("../util/lift"),i=e("./scanInternals");r.scan=function(e,t){return n.operate(i.scanInternals(e,t,arguments.length>=2,!0))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/scan.js"}],[5429,{"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scanInternals=void 0;var n=e("./OperatorSubscriber");r.scanInternals=function(e,t,r,i,o){return function(s,a){var l=r,u=t,c=0;s.subscribe(n.createOperatorSubscriber(a,function(t){var r=c++;u=l?e(u,t,r):(l=!0,t),i&&a.next(u)},o&&function(){l&&a.next(u),a.complete()}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"}],[543,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController;null==t||delete t.disabledUpgradeAccountsByChain,null==t||delete t.accountUpgradeDisabledChains}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=170}}},{package:"$root$",file:"app/scripts/migrations/170.ts"}],[5430,{"../observable/innerFrom":5337,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sequenceEqual=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../observable/innerFrom");r.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),n.operate(function(r,n){var s={buffer:[],complete:!1},a={buffer:[],complete:!1},l=function(e){n.next(e),n.complete()},u=function(e,r){var o=i.createOperatorSubscriber(n,function(n){var i=r.buffer,o=r.complete;0===i.length?o?l(!1):e.buffer.push(n):!t(n,i.shift())&&l(!1)},function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&l(0===n.length),null==o||o.unsubscribe()});return o};r.subscribe(u(s,a)),o.innerFrom(e).subscribe(u(a,s))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js"}],[5431,{"../Subject":5314,"../Subscriber":5315,"../observable/innerFrom":5337,"../util/lift":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.share=void 0;var o=e("../observable/innerFrom"),s=e("../Subject"),a=e("../Subscriber"),l=e("../util/lift");function u(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(!0!==t){if(!1!==t){var l=new a.SafeSubscriber({next:function(){l.unsubscribe(),e()}});return o.innerFrom(t.apply(void 0,i([],n(r)))).subscribe(l)}}else e()}r.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new s.Subject}:t,n=e.resetOnError,i=void 0===n||n,c=e.resetOnComplete,f=void 0===c||c,d=e.resetOnRefCountZero,p=void 0===d||d;return function(e){var t,n,s,c=0,d=!1,h=!1,b=function(){null==n||n.unsubscribe(),n=undefined},m=function(){b(),t=s=undefined,d=h=!1},v=function(){var e=t;m(),null==e||e.unsubscribe()};return l.operate(function(e,l){c++,h||d||b();var y=s=null!=s?s:r();l.add(function(){0!==--c||h||d||(n=u(v,p))}),y.subscribe(l),!t&&c>0&&(t=new a.SafeSubscriber({next:function(e){return y.next(e)},error:function(e){h=!0,b(),n=u(m,i,e),y.error(e)},complete:function(){d=!0,b(),n=u(m,f),y.complete()}}),o.innerFrom(e).subscribe(t))})(e)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/share.js"}],[5432,{"../ReplaySubject":5312,"./share":5431},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shareReplay=void 0;var n=e("../ReplaySubject"),i=e("./share");r.shareReplay=function(e,t,r){var o,s,a,l,u=!1;return e&&"object"==typeof e?(o=e.bufferSize,l=void 0===o?Infinity:o,s=e.windowTime,t=void 0===s?Infinity:s,u=void 0!==(a=e.refCount)&&a,r=e.scheduler):l=null!=e?e:Infinity,i.share({connector:function(){return new n.ReplaySubject(l,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js"}],[5433,{"../util/EmptyError":5497,"../util/NotFoundError":5499,"../util/SequenceError":5501,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.single=void 0;var n=e("../util/EmptyError"),i=e("../util/SequenceError"),o=e("../util/NotFoundError"),s=e("../util/lift"),a=e("./OperatorSubscriber");r.single=function(e){return s.operate(function(t,r){var s,l=!1,u=!1,c=0;t.subscribe(a.createOperatorSubscriber(r,function(n){u=!0,e&&!e(n,c++,t)||(l&&r.error(new i.SequenceError("Too many matching values")),l=!0,s=n)},function(){l?(r.next(s),r.complete()):r.error(u?new o.NotFoundError("No matching values"):new n.EmptyError)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/single.js"}],[5434,{"./filter":5387},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.skip=void 0;var n=e("./filter");r.skip=function(e){return n.filter(function(t,r){return e<=r})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/skip.js"}],[5435,{"../util/identity":5511,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.skipLast=void 0;var n=e("../util/identity"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.skipLast=function(e){return e<=0?n.identity:i.operate(function(t,r){var n=new Array(e),i=0;return t.subscribe(o.createOperatorSubscriber(r,function(t){var o=i++;if(o<e)n[o]=t;else{var s=o%e,a=n[s];n[s]=t,r.next(a)}})),function(){n=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/skipLast.js"}],[5436,{"../observable/innerFrom":5337,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.skipUntil=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../observable/innerFrom"),s=e("../util/noop");r.skipUntil=function(e){return n.operate(function(t,r){var n=!1,a=i.createOperatorSubscriber(r,function(){null==a||a.unsubscribe(),n=!0},s.noop);o.innerFrom(e).subscribe(a),t.subscribe(i.createOperatorSubscriber(r,function(e){return n&&r.next(e)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js"}],[5437,{"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.skipWhile=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.skipWhile=function(e){return n.operate(function(t,r){var n=!1,o=0;t.subscribe(i.createOperatorSubscriber(r,function(t){return(n||(n=!e(t,o++)))&&r.next(t)}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js"}],[5438,{"../observable/concat":5325,"../util/args":5503,"../util/lift":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.startWith=void 0;var n=e("../observable/concat"),i=e("../util/args"),o=e("../util/lift");r.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.popScheduler(e);return o.operate(function(t,i){(r?n.concat(e,t,r):n.concat(e,t)).subscribe(i)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/startWith.js"}],[5439,{"../util/lift":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.subscribeOn=void 0;var n=e("../util/lift");r.subscribeOn=function(e,t){return void 0===t&&(t=0),n.operate(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js"}],[544,{"@metamask/bridge-controller":1287,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,t.data=function(e){if(!a(e,"NetworkOrderController","state"))return e;const t=e.NetworkOrderController;if(!a(e,"PreferencesController","state"))return e;const r=e.PreferencesController;if(!a(r,"preferences","PreferencesController"))return e;const{preferences:n}=r;if(!(0,i.hasProperty)(n,"tokenNetworkFilter"))return e;const{tokenNetworkFilter:l}=n;if(!(0,i.isObject)(l)){var u,c;return null===(u=global.sentry)||void 0===u||null===(c=u.captureException)||void 0===c||c.call(u,new Error(`Migration ${s}: tokenNetworkFilter is type '${typeof l}', expected object.`)),e}if(0===Object.keys(l).length){var f,d;return null===(f=global.sentry)||void 0===f||null===(d=f.captureException)||void 0===d||d.call(f,new Error(`Migration ${s}: tokenNetworkFilter is empty, expected at least one network configuration.`)),e}const{MultichainNetworkController:p}=e;if(!(0,i.isObject)(p)){var h,b;return null===(h=global.sentry)||void 0===h||null===(b=h.captureException)||void 0===b||b.call(h,new Error),e}const{selectedMultichainNetworkChainId:m}=p;if(!m||"string"!=typeof m){var v,y;return null===(v=global.sentry)||void 0===v||null===(y=v.captureException)||void 0===y||y.call(v,new Error(`Migration ${s}: selectedMultichainNetworkChainId is type '${typeof m}', expected string.`)),e}const g=function(e){const t=(0,o.formatChainIdToCaip)(Object.keys(e)[0]),{namespace:r}=(0,i.parseCaipChainId)(t),n={[r]:{...e}};return n}(l),w=function(e){const t=(0,o.formatChainIdToCaip)(e),{namespace:r}=(0,i.parseCaipChainId)(t),n={[r]:{[e]:!0}};return n}(m);return t.enabledNetworkMap={...g,...w},e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("@metamask/bridge-controller");const s=r.version=171;function a(e,t,r){return!!(0,i.hasProperty)(e,t)&&(!!(0,i.isObject)(e[t])||(null===(n=global.sentry)||void 0===n||null===(o=n.captureException)||void 0===o||o.call(n,new Error(`Migration ${s}: ${t} is type '${typeof e[t]}', expected object in ${r}.`)),!1));var n,o}}}},{package:"$root$",file:"app/scripts/migrations/171.ts"}],[5440,{"../util/identity":5511,"./switchMap":5441},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.switchAll=void 0;var n=e("./switchMap"),i=e("../util/identity");r.switchAll=function(){return n.switchMap(i.identity)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/switchAll.js"}],[5441,{"../observable/innerFrom":5337,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.switchMap=void 0;var n=e("../observable/innerFrom"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.switchMap=function(e,t){return i.operate(function(r,i){var s=null,a=0,l=!1,u=function(){return l&&!s&&i.complete()};r.subscribe(o.createOperatorSubscriber(i,function(r){null==s||s.unsubscribe();var l=0,c=a++;n.innerFrom(e(r,c)).subscribe(s=o.createOperatorSubscriber(i,function(e){return i.next(t?t(r,e,c,l++):e)},function(){s=null,u()}))},function(){l=!0,u()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"}],[5442,{"../util/isFunction":5515,"./switchMap":5441},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.switchMapTo=void 0;var n=e("./switchMap"),i=e("../util/isFunction");r.switchMapTo=function(e,t){return i.isFunction(t)?n.switchMap(function(){return e},t):n.switchMap(function(){return e})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js"}],[5443,{"../util/lift":5522,"./switchMap":5441},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.switchScan=void 0;var n=e("./switchMap"),i=e("../util/lift");r.switchScan=function(e,t){return i.operate(function(r,i){var o=t;return n.switchMap(function(t,r){return e(o,t,r)},function(e,t){return o=t,t})(r).subscribe(i),function(){o=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/switchScan.js"}],[5444,{"../observable/empty":5329,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.take=void 0;var n=e("../observable/empty"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.take=function(e){return e<=0?function(){return n.EMPTY}:i.operate(function(t,r){var n=0;t.subscribe(o.createOperatorSubscriber(r,function(t){++n<=e&&(r.next(t),e<=n&&r.complete())}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/take.js"}],[5445,{"../observable/empty":5329,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.takeLast=void 0;var i=e("../observable/empty"),o=e("../util/lift"),s=e("./OperatorSubscriber");r.takeLast=function(e){return e<=0?function(){return i.EMPTY}:o.operate(function(t,r){var i=[];t.subscribe(s.createOperatorSubscriber(r,function(t){i.push(t),e<i.length&&i.shift()},function(){var e,t;try{for(var o=n(i),s=o.next();!s.done;s=o.next()){var a=s.value;r.next(a)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}r.complete()},undefined,function(){i=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/takeLast.js"}],[5446,{"../observable/innerFrom":5337,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.takeUntil=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../observable/innerFrom"),s=e("../util/noop");r.takeUntil=function(e){return n.operate(function(t,r){o.innerFrom(e).subscribe(i.createOperatorSubscriber(r,function(){return r.complete()},s.noop)),!r.closed&&t.subscribe(r)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js"}],[5447,{"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.takeWhile=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.takeWhile=function(e,t){return void 0===t&&(t=!1),n.operate(function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,function(r){var i=e(r,o++);(i||t)&&n.next(r),!i&&n.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js"}],[5448,{"../util/identity":5511,"../util/isFunction":5515,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.tap=void 0;var n=e("../util/isFunction"),i=e("../util/lift"),o=e("./OperatorSubscriber"),s=e("../util/identity");r.tap=function(e,t,r){var a=n.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return a?i.operate(function(e,t){var r;null===(r=a.subscribe)||void 0===r||r.call(a);var n=!0;e.subscribe(o.createOperatorSubscriber(t,function(e){var r;null===(r=a.next)||void 0===r||r.call(a,e),t.next(e)},function(){var e;n=!1,null===(e=a.complete)||void 0===e||e.call(a),t.complete()},function(e){var r;n=!1,null===(r=a.error)||void 0===r||r.call(a,e),t.error(e)},function(){var e,t;n&&(null===(e=a.unsubscribe)||void 0===e||e.call(a)),null===(t=a.finalize)||void 0===t||t.call(a)}))}):s.identity}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/tap.js"}],[5449,{"../observable/innerFrom":5337,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throttle=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),o=e("../observable/innerFrom");r.throttle=function(e,t){return n.operate(function(r,n){var s=null!=t?t:{},a=s.leading,l=void 0===a||a,u=s.trailing,c=void 0!==u&&u,f=!1,d=null,p=null,h=!1,b=function(){null==p||p.unsubscribe(),p=null,c&&(y(),h&&n.complete())},m=function(){p=null,h&&n.complete()},v=function(t){return p=o.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(n,b,m))},y=function(){if(f){f=!1;var e=d;d=null,n.next(e),!h&&v(e)}};r.subscribe(i.createOperatorSubscriber(n,function(e){f=!0,d=e,(!p||p.closed)&&(l?y():v(e))},function(){h=!0,(!(c&&f&&p)||p.closed)&&n.complete()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/throttle.js"}],[545,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.MetaMetricsController;t&&!t.tracesBeforeMetricsOptIn&&(t.tracesBeforeMetricsOptIn=[])}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=172}}},{package:"$root$",file:"app/scripts/migrations/172.ts"}],[5450,{"../observable/timer":5348,"../scheduler/async":5486,"./throttle":5449},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throttleTime=void 0;var n=e("../scheduler/async"),i=e("./throttle"),o=e("../observable/timer");r.throttleTime=function(e,t,r){void 0===t&&(t=n.asyncScheduler);var s=o.timer(e,t);return i.throttle(function(){return s},r)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js"}],[5451,{"../util/EmptyError":5497,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throwIfEmpty=void 0;var n=e("../util/EmptyError"),i=e("../util/lift"),o=e("./OperatorSubscriber");function s(){return new n.EmptyError}r.throwIfEmpty=function(e){return void 0===e&&(e=s),i.operate(function(t,r){var n=!1;t.subscribe(o.createOperatorSubscriber(r,function(e){n=!0,r.next(e)},function(){return n?r.complete():r.error(e())}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js"}],[5452,{"../scheduler/async":5486,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TimeInterval=r.timeInterval=void 0;var n=e("../scheduler/async"),i=e("../util/lift"),o=e("./OperatorSubscriber");r.timeInterval=function(e){return void 0===e&&(e=n.asyncScheduler),i.operate(function(t,r){var n=e.now();t.subscribe(o.createOperatorSubscriber(r,function(t){var i=e.now(),o=i-n;n=i,r.next(new s(t,o))}))})};var s=function(e,t){this.value=e,this.interval=t};r.TimeInterval=s}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js"}],[5453,{"../observable/innerFrom":5337,"../scheduler/async":5486,"../util/createErrorClass":5507,"../util/executeSchedule":5510,"../util/isDate":5514,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.timeout=r.TimeoutError=void 0;var n=e("../scheduler/async"),i=e("../util/isDate"),o=e("../util/lift"),s=e("../observable/innerFrom"),a=e("../util/createErrorClass"),l=e("./OperatorSubscriber"),u=e("../util/executeSchedule");function c(e){throw new r.TimeoutError(e)}r.TimeoutError=a.createErrorClass(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}),r.timeout=function(e,t){var r=i.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,a=r.first,f=r.each,d=r.with,p=void 0===d?c:d,h=r.scheduler,b=void 0===h?null!=t?t:n.asyncScheduler:h,m=r.meta,v=void 0===m?null:m;if(null==a&&null==f)throw new TypeError("No timeout provided.");return o.operate(function(e,t){var r,n,i=null,o=0,c=function(e){n=u.executeSchedule(t,b,function(){try{r.unsubscribe(),s.innerFrom(p({meta:v,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}},e)};r=e.subscribe(l.createOperatorSubscriber(t,function(e){null==n||n.unsubscribe(),o++,t.next(i=e),f>0&&c(f)},undefined,undefined,function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null})),!o&&c(null!=a?"number"==typeof a?a:+a-b.now():f)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timeout.js"}],[5454,{"../scheduler/async":5486,"../util/isDate":5514,"./timeout":5453},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.timeoutWith=void 0;var n=e("../scheduler/async"),i=e("../util/isDate"),o=e("./timeout");r.timeoutWith=function(e,t,r){var s,a,l;if(r=null!=r?r:n.async,i.isValidDate(e)?s=e:"number"==typeof e&&(a=e),!t)throw new TypeError("No observable provided to switch to");if(l=function(){return t},null==s&&null==a)throw new TypeError("No timeout provided.");return o.timeout({first:s,each:a,scheduler:r,with:l})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js"}],[5455,{"../scheduler/dateTimestampProvider":5487,"./map":5398},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.timestamp=void 0;var n=e("../scheduler/dateTimestampProvider"),i=e("./map");r.timestamp=function(e){return void 0===e&&(e=n.dateTimestampProvider),i.map(function(t){return{value:t,timestamp:e.now()}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timestamp.js"}],[5456,{"../util/lift":5522,"./reduce":5420},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toArray=void 0;var n=e("./reduce"),i=e("../util/lift"),o=function(e,t){return e.push(t),e};r.toArray=function(){return i.operate(function(e,t){n.reduce(o,[])(e).subscribe(t)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/toArray.js"}],[5457,{"../Subject":5314,"../observable/innerFrom":5337,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.window=void 0;var n=e("../Subject"),i=e("../util/lift"),o=e("./OperatorSubscriber"),s=e("../util/noop"),a=e("../observable/innerFrom");r.window=function(e){return i.operate(function(t,r){var i=new n.Subject;r.next(i.asObservable());var l=function(e){i.error(e),r.error(e)};return t.subscribe(o.createOperatorSubscriber(r,function(e){return null==i?void 0:i.next(e)},function(){i.complete(),r.complete()},l)),a.innerFrom(e).subscribe(o.createOperatorSubscriber(r,function(){i.complete(),r.next(i=new n.Subject)},s.noop,l)),function(){null==i||i.unsubscribe(),i=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/window.js"}],[5458,{"../Subject":5314,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.windowCount=void 0;var i=e("../Subject"),o=e("../util/lift"),s=e("./OperatorSubscriber");r.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return o.operate(function(t,o){var a=[new i.Subject],l=0;o.next(a[0].asObservable()),t.subscribe(s.createOperatorSubscriber(o,function(t){var s,u;try{for(var c=n(a),f=c.next();!f.done;f=c.next()){f.value.next(t)}}catch(e){s={error:e}}finally{try{f&&!f.done&&(u=c.return)&&u.call(c)}finally{if(s)throw s.error}}var d=l-e+1;if(d>=0&&d%r===0&&a.shift().complete(),++l%r===0){var p=new i.Subject;a.push(p),o.next(p.asObservable())}},function(){for(;a.length>0;)a.shift().complete();o.complete()},function(e){for(;a.length>0;)a.shift().error(e);o.error(e)},function(){a=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowCount.js"}],[5459,{"../Subject":5314,"../Subscription":5316,"../scheduler/async":5486,"../util/args":5503,"../util/arrRemove":5506,"../util/executeSchedule":5510,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.windowTime=void 0;var n=e("../Subject"),i=e("../scheduler/async"),o=e("../Subscription"),s=e("../util/lift"),a=e("./OperatorSubscriber"),l=e("../util/arrRemove"),u=e("../util/args"),c=e("../util/executeSchedule");r.windowTime=function(e){for(var t,r,f=[],d=1;d<arguments.length;d++)f[d-1]=arguments[d];var p=null!==(t=u.popScheduler(f))&&void 0!==t?t:i.asyncScheduler,h=null!==(r=f[0])&&void 0!==r?r:null,b=f[1]||Infinity;return s.operate(function(t,r){var i=[],s=!1,u=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),l.arrRemove(i,e),s&&f()},f=function(){if(i){var t=new o.Subscription;r.add(t);var s=new n.Subject,a={window:s,subs:t,seen:0};i.push(a),r.next(s.asObservable()),c.executeSchedule(t,p,function(){return u(a)},e)}};null!==h&&h>=0?c.executeSchedule(r,p,f,h,!0):s=!0,f();var d=function(e){return i.slice().forEach(e)},m=function(e){d(function(t){var r=t.window;return e(r)}),e(r),r.unsubscribe()};return t.subscribe(a.createOperatorSubscriber(r,function(e){d(function(t){t.window.next(e),b<=++t.seen&&u(t)})},function(){return m(function(e){return e.complete()})},function(e){return m(function(t){return t.error(e)})})),function(){i=null}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowTime.js"}],[546,{"../../../shared/constants/network":5768,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=s,function(e){const t=o.CHAIN_IDS.SEI;(0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)&&(0,n.hasProperty)(e.NetworkController.networkConfigurationsByChainId,t)&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId[t])&&(0,n.hasProperty)(e.NetworkController.networkConfigurationsByChainId[t],"name")&&"Sei Network"===e.NetworkController.networkConfigurationsByChainId[t].name&&(e.NetworkController.networkConfigurationsByChainId[t].name="Sei Mainnet")}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/constants/network");const s=r.version=173}}},{package:"$root$",file:"app/scripts/migrations/173.ts"}],[5460,{"../Subject":5314,"../Subscription":5316,"../observable/innerFrom":5337,"../util/arrRemove":5506,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.windowToggle=void 0;var i=e("../Subject"),o=e("../Subscription"),s=e("../util/lift"),a=e("../observable/innerFrom"),l=e("./OperatorSubscriber"),u=e("../util/noop"),c=e("../util/arrRemove");r.windowToggle=function(e,t){return s.operate(function(r,s){var f=[],d=function(e){for(;0<f.length;)f.shift().error(e);s.error(e)};a.innerFrom(e).subscribe(l.createOperatorSubscriber(s,function(e){var r=new i.Subject;f.push(r);var n,p=new o.Subscription;try{n=a.innerFrom(t(e))}catch(e){return void d(e)}s.next(r.asObservable()),p.add(n.subscribe(l.createOperatorSubscriber(s,function(){c.arrRemove(f,r),r.complete(),p.unsubscribe()},u.noop,d)))},u.noop)),r.subscribe(l.createOperatorSubscriber(s,function(e){var t,r,i=f.slice();try{for(var o=n(i),s=o.next();!s.done;s=o.next()){s.value.next(e)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},function(){for(;0<f.length;)f.shift().complete();s.complete()},d,function(){for(;0<f.length;)f.shift().unsubscribe()}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js"}],[5461,{"../Subject":5314,"../observable/innerFrom":5337,"../util/lift":5522,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.windowWhen=void 0;var n=e("../Subject"),i=e("../util/lift"),o=e("./OperatorSubscriber"),s=e("../observable/innerFrom");r.windowWhen=function(e){return i.operate(function(t,r){var i,a,l=function(e){i.error(e),r.error(e)},u=function(){var t;null==a||a.unsubscribe(),null==i||i.complete(),i=new n.Subject,r.next(i.asObservable());try{t=s.innerFrom(e())}catch(e){return void l(e)}t.subscribe(a=o.createOperatorSubscriber(r,u,u,l))};u(),t.subscribe(o.createOperatorSubscriber(r,function(e){return i.next(e)},function(){i.complete(),r.complete()},l,function(){null==a||a.unsubscribe(),i=null}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js"}],[5462,{"../observable/innerFrom":5337,"../util/args":5503,"../util/identity":5511,"../util/lift":5522,"../util/noop":5524,"./OperatorSubscriber":5351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.withLatestFrom=void 0;var o=e("../util/lift"),s=e("./OperatorSubscriber"),a=e("../observable/innerFrom"),l=e("../util/identity"),u=e("../util/noop"),c=e("../util/args");r.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popResultSelector(e);return o.operate(function(t,o){for(var c=e.length,f=new Array(c),d=e.map(function(){return!1}),p=!1,h=function(t){a.innerFrom(e[t]).subscribe(s.createOperatorSubscriber(o,function(e){f[t]=e,p||d[t]||(d[t]=!0,(p=d.every(l.identity))&&(d=null))},u.noop))},b=0;b<c;b++)h(b);t.subscribe(s.createOperatorSubscriber(o,function(e){if(p){var t=i([e],n(f));o.next(r?r.apply(void 0,i([],n(t))):t)}}))})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js"}],[5463,{"../observable/zip":5350,"../util/lift":5522},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.zip=void 0;var o=e("../observable/zip"),s=e("../util/lift");r.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.operate(function(t,r){o.zip.apply(void 0,i([t],n(e))).subscribe(r)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/zip.js"}],[5464,{"../observable/zip":5350,"./joinAllInternals":5396},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.zipAll=void 0;var n=e("../observable/zip"),i=e("./joinAllInternals");r.zipAll=function(e){return i.joinAllInternals(n.zip,e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/zipAll.js"}],[5465,{"./zip":5463},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.zipWith=void 0;var o=e("./zip");r.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.zip.apply(void 0,i([],n(e)))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/zipWith.js"}],[5466,{"../Observable":5311},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleArray=void 0;var n=e("../Observable");r.scheduleArray=function(e,t){return new n.Observable(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js"}],[5467,{"../Observable":5311,"../util/executeSchedule":5510},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleAsyncIterable=void 0;var n=e("../Observable"),i=e("../util/executeSchedule");r.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new n.Observable(function(r){i.executeSchedule(r,t,function(){var n=e[Symbol.asyncIterator]();i.executeSchedule(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js"}],[5468,{"../Observable":5311,"../symbol/iterator":5493,"../util/executeSchedule":5510,"../util/isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleIterable=void 0;var n=e("../Observable"),i=e("../symbol/iterator"),o=e("../util/isFunction"),s=e("../util/executeSchedule");r.scheduleIterable=function(e,t){return new n.Observable(function(r){var n;return s.executeSchedule(r,t,function(){n=e[i.iterator](),s.executeSchedule(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){return void r.error(e)}i?r.complete():r.next(t)},0,!0)}),function(){return o.isFunction(null==n?void 0:n.return)&&n.return()}})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js"}],[5469,{"../observable/innerFrom":5337,"../operators/observeOn":5411,"../operators/subscribeOn":5439},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleObservable=void 0;var n=e("../observable/innerFrom"),i=e("../operators/observeOn"),o=e("../operators/subscribeOn");r.scheduleObservable=function(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js"}],[547,{"../../../shared/lib/sentry":5857,"@metamask/bridge-controller":1287,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,o.cloneDeep)(e);return t.meta.version=a,t.data=function(e){const t=null==e?void 0:e.BridgeStatusController;if(!(0,i.isObject)(t))return e;const{txHistory:r}=t;if(!(0,i.isObject)(r))return e;try{return Object.entries(r).forEach(([e,t])=>{var i,o;const s=(0,n.isSolanaChainId)(null===(i=t.status)||void 0===i||null===(i=i.srcChain)||void 0===i?void 0:i.chainId),a=null===(o=t.status)||void 0===o||null===(o=o.srcChain)||void 0===o?void 0:o.txHash;s&&a&&a!==e&&(r[a]={...t,txMetaId:a},delete r[e])}),e}catch(t){return(0,s.captureException)(new Error(`Migration ${a}: Failed to update bridge txHistory for solana to use txHash as key and txMetaId. Error: ${t.message}`)),e}}(t.data),t},r.version=void 0;var n=e("@metamask/bridge-controller"),i=e("@metamask/utils"),o=e("lodash"),s=e("../../../shared/lib/sentry");const a=r.version=174}}},{package:"$root$",file:"app/scripts/migrations/174.ts"}],[5470,{"../observable/innerFrom":5337,"../operators/observeOn":5411,"../operators/subscribeOn":5439},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.schedulePromise=void 0;var n=e("../observable/innerFrom"),i=e("../operators/observeOn"),o=e("../operators/subscribeOn");r.schedulePromise=function(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js"}],[5471,{"../util/isReadableStreamLike":5520,"./scheduleAsyncIterable":5467},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleReadableStreamLike=void 0;var n=e("./scheduleAsyncIterable"),i=e("../util/isReadableStreamLike");r.scheduleReadableStreamLike=function(e,t){return n.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(e),t)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js"}],[5472,{"../util/isArrayLike":5512,"../util/isAsyncIterable":5513,"../util/isInteropObservable":5516,"../util/isIterable":5517,"../util/isPromise":5519,"../util/isReadableStreamLike":5520,"../util/throwUnobservableError":5528,"./scheduleArray":5466,"./scheduleAsyncIterable":5467,"./scheduleIterable":5468,"./scheduleObservable":5469,"./schedulePromise":5470,"./scheduleReadableStreamLike":5471},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scheduled=void 0;var n=e("./scheduleObservable"),i=e("./schedulePromise"),o=e("./scheduleArray"),s=e("./scheduleIterable"),a=e("./scheduleAsyncIterable"),l=e("../util/isInteropObservable"),u=e("../util/isPromise"),c=e("../util/isArrayLike"),f=e("../util/isIterable"),d=e("../util/isAsyncIterable"),p=e("../util/throwUnobservableError"),h=e("../util/isReadableStreamLike"),b=e("./scheduleReadableStreamLike");r.scheduled=function(e,t){if(null!=e){if(l.isInteropObservable(e))return n.scheduleObservable(e,t);if(c.isArrayLike(e))return o.scheduleArray(e,t);if(u.isPromise(e))return i.schedulePromise(e,t);if(d.isAsyncIterable(e))return a.scheduleAsyncIterable(e,t);if(f.isIterable(e))return s.scheduleIterable(e,t);if(h.isReadableStreamLike(e))return b.scheduleReadableStreamLike(e,t)}throw p.createInvalidObservableTypeError(e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js"}],[5473,{"../Subscription":5316},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.Action=void 0;var o=function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(e("../Subscription").Subscription);r.Action=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/Action.js"}],[5474,{"./AsyncAction":5478,"./animationFrameProvider":5484},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AnimationFrameAction=void 0;var o=e("./AsyncAction"),s=e("./animationFrameProvider"),a=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=s.animationFrameProvider.requestAnimationFrame(function(){return t.flush(undefined)})))},t.prototype.recycleAsyncId=function(t,r,n){var i;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var o=t.actions;return null!=r&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==r&&(s.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=undefined),undefined},t}(o.AsyncAction);r.AnimationFrameAction=a}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js"}],[5475,{"./AsyncScheduler":5479},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AnimationFrameScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=undefined;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(e("./AsyncScheduler").AsyncScheduler);r.AnimationFrameScheduler=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js"}],[5476,{"./AsyncAction":5478,"./immediateProvider":5488},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AsapAction=void 0;var o=e("./AsyncAction"),s=e("./immediateProvider"),a=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=s.immediateProvider.setImmediate(t.flush.bind(t,undefined))))},t.prototype.recycleAsyncId=function(t,r,n){var i;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var o=t.actions;return null!=r&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==r&&(s.immediateProvider.clearImmediate(r),t._scheduled===r&&(t._scheduled=undefined)),undefined},t}(o.AsyncAction);r.AsapAction=a}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js"}],[5477,{"./AsyncScheduler":5479},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AsapScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=undefined;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(e("./AsyncScheduler").AsyncScheduler);r.AsapScheduler=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js"}],[5478,{"../util/arrRemove":5506,"./Action":5473,"./intervalProvider":5489},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncAction=void 0;var o=e("./Action"),s=e("./intervalProvider"),a=e("../util/arrRemove"),l=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return i(t,e),t.prototype.schedule=function(e,t){var r;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),s.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){return void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending?t:(null!=t&&s.intervalProvider.clearInterval(t),undefined)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,a.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(o.Action);r.AsyncAction=l}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"}],[5479,{"../Scheduler":5313},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncScheduler=void 0;var o=e("../Scheduler"),s=function(e){function t(t,r){void 0===r&&(r=o.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(o.Scheduler);r.AsyncScheduler=s}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js"}],[548,{"../../../shared/constants/network":5768,"../../../shared/lib/sentry":5857,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=a,t.data=function(e){try{const t="0x9da",r=e.NetworkController;if((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(r)&&(0,n.hasProperty)(r,"networkConfigurationsByChainId")&&(0,n.isObject)(r.networkConfigurationsByChainId))for(const e of Object.values(r.networkConfigurationsByChainId))!(0,n.isObject)(e)||e.chainId!==o.CHAIN_IDS.FRAX&&e.chainId!==t||(0,n.hasProperty)(e,"nativeCurrency")&&(e.nativeCurrency="FRAX");return e}catch(t){return(0,s.captureException)(new Error(`Migration ${a}: Failed to update native currency for FRAX network configuration. Error: ${t.message}`)),e}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/constants/network"),s=e("../../../shared/lib/sentry");const a=r.version=175}}},{package:"$root$",file:"app/scripts/migrations/175.ts"}],[5480,{"./AsyncAction":5478},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.QueueAction=void 0;var o=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.flush(this),0)},t}(e("./AsyncAction").AsyncAction);r.QueueAction=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js"}],[5481,{"./AsyncScheduler":5479},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.QueueScheduler=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(e("./AsyncScheduler").AsyncScheduler);r.QueueScheduler=o}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js"}],[5482,{"../Subscription":5316,"./AsyncAction":5478,"./AsyncScheduler":5479},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.VirtualAction=r.VirtualTimeScheduler=void 0;var o=e("./AsyncAction"),s=e("../Subscription"),a=function(e){function t(t,r){void 0===t&&(t=l),void 0===r&&(r=Infinity);var n=e.call(this,t,function(){return n.frame})||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(e("./AsyncScheduler").AsyncScheduler);r.VirtualTimeScheduler=a;var l=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.index=n,i.active=!0,i.index=t.index=n,i}return i(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(r,n)}return s.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var i=e.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,t,r){return void 0===r&&(r=0),undefined},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(o.AsyncAction);r.VirtualAction=l}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js"}],[5483,{"./AnimationFrameAction":5474,"./AnimationFrameScheduler":5475},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.animationFrame=r.animationFrameScheduler=void 0;var n=e("./AnimationFrameAction"),i=e("./AnimationFrameScheduler");r.animationFrameScheduler=new i.AnimationFrameScheduler(n.AnimationFrameAction),r.animationFrame=r.animationFrameScheduler}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js"}],[5484,{"../Subscription":5316},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.animationFrameProvider=void 0;var o=e("../Subscription");r.animationFrameProvider={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,i=r.animationFrameProvider.delegate;i&&(t=i.requestAnimationFrame,n=i.cancelAnimationFrame);var s=t(function(t){n=undefined,e(t)});return new o.Subscription(function(){return null==n?void 0:n(s)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.animationFrameProvider.delegate;return((null==o?void 0:o.requestAnimationFrame)||requestAnimationFrame).apply(void 0,i([],n(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.animationFrameProvider.delegate;return((null==o?void 0:o.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,i([],n(e)))},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js"}],[5485,{"./AsapAction":5476,"./AsapScheduler":5477},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.asap=r.asapScheduler=void 0;var n=e("./AsapAction"),i=e("./AsapScheduler");r.asapScheduler=new i.AsapScheduler(n.AsapAction),r.asap=r.asapScheduler}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/asap.js"}],[5486,{"./AsyncAction":5478,"./AsyncScheduler":5479},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.async=r.asyncScheduler=void 0;var n=e("./AsyncAction"),i=e("./AsyncScheduler");r.asyncScheduler=new i.AsyncScheduler(n.AsyncAction),r.async=r.asyncScheduler}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/async.js"}],[5487,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.dateTimestampProvider=void 0,r.dateTimestampProvider={now:function(){return(r.dateTimestampProvider.delegate||Date).now()},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js"}],[5488,{"../util/Immediate":5498},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.immediateProvider=void 0;var o=e("../util/Immediate"),s=o.Immediate.setImmediate,a=o.Immediate.clearImmediate;r.immediateProvider={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.immediateProvider.delegate;return((null==o?void 0:o.setImmediate)||s).apply(void 0,i([],n(e)))},clearImmediate:function(e){var t=r.immediateProvider.delegate;return((null==t?void 0:t.clearImmediate)||a)(e)},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js"}],[5489,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.intervalProvider=void 0,r.intervalProvider={setInterval:function(e,t){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var a=r.intervalProvider.delegate;return(null==a?void 0:a.setInterval)?a.setInterval.apply(a,i([e,t],n(o))):setInterval.apply(void 0,i([e,t],n(o)))},clearInterval:function(e){var t=r.intervalProvider.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js"}],[549,{"../../../shared/lib/sentry":5857,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=s,t.data=function(e){try{const t=e.AppStateController;return(0,n.hasProperty)(e,"AppStateController")&&(0,n.isObject)(t)&&(0,n.hasProperty)(t,"addressSecurityAlertResponses")&&(0,n.isObject)(t.addressSecurityAlertResponses)&&(t.addressSecurityAlertResponses={}),e}catch(t){return(0,o.captureException)(new Error(`Migration ${s}: Failed to clear addressSecurityAlertResponses cache. Error: ${t.message}`)),e}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/lib/sentry");const s=r.version=176.1}}},{package:"$root$",file:"app/scripts/migrations/176.1.ts"}],[5490,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.performanceTimestampProvider=void 0,r.performanceTimestampProvider={now:function(){return(r.performanceTimestampProvider.delegate||performance).now()},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js"}],[5491,{"./QueueAction":5480,"./QueueScheduler":5481},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.queue=r.queueScheduler=void 0;var n=e("./QueueAction"),i=e("./QueueScheduler");r.queueScheduler=new i.QueueScheduler(n.QueueAction),r.queue=r.queueScheduler}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/queue.js"}],[5492,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.timeoutProvider=void 0,r.timeoutProvider={setTimeout:function(e,t){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var a=r.timeoutProvider.delegate;return(null==a?void 0:a.setTimeout)?a.setTimeout.apply(a,i([e,t],n(o))):setTimeout.apply(void 0,i([e,t],n(o)))},clearTimeout:function(e){var t=r.timeoutProvider.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:undefined}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js"}],[5493,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(r,"__esModule",{value:!0}),r.iterator=r.getSymbolIterator=void 0,r.getSymbolIterator=n,r.iterator=n()}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/symbol/iterator.js"}],[5494,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.observable=void 0,r.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/symbol/observable.js"}],[5495,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/types.js"}],[5496,{"./createErrorClass":5507},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ArgumentOutOfRangeError=void 0;var n=e("./createErrorClass");r.ArgumentOutOfRangeError=n.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js"}],[5497,{"./createErrorClass":5507},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EmptyError=void 0;var n=e("./createErrorClass");r.EmptyError=n.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"}],[5498,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TestTools=r.Immediate=void 0;var n,i=1,o={};function s(e){return e in o&&(delete o[e],!0)}r.Immediate={setImmediate:function(e){var t=i++;return o[t]=!0,n||(n=Promise.resolve()),n.then(function(){return s(t)&&e()}),t},clearImmediate:function(e){s(e)}},r.TestTools={pending:function(){return Object.keys(o).length}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/Immediate.js"}],[5499,{"./createErrorClass":5507},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NotFoundError=void 0;var n=e("./createErrorClass");r.NotFoundError=n.createErrorClass(function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js"}],[55,{"../../../shared/modules/mv3.utils":5887,"../lib/encryptor-factory":262,"../lib/hardware-keyring-builder-factory":270,"../lib/offscreen-bridge/lattice-offscreen-keyring":279,"../lib/offscreen-bridge/ledger-offscreen-bridge":280,"../lib/offscreen-bridge/trezor-offscreen-bridge":281,"../lib/qr-keyring-builder-factory":289,"@metamask/eth-ledger-bridge-keyring":1815,"@metamask/eth-qr-keyring":1824,"@metamask/eth-trezor-keyring":1969,"@metamask/keyring-controller":2092,"eth-lattice-keyring":4239},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.KeyringControllerInit=void 0;var n,i=e("@metamask/keyring-controller"),o=e("@metamask/eth-qr-keyring"),s=(n=e("eth-lattice-keyring"))&&n.__esModule?n:{default:n},a=e("@metamask/eth-trezor-keyring"),l=e("@metamask/eth-ledger-bridge-keyring"),u=e("../lib/hardware-keyring-builder-factory"),c=e("../../../shared/modules/mv3.utils"),f=e("../lib/qr-keyring-builder-factory"),d=e("../lib/encryptor-factory"),p=e("../lib/offscreen-bridge/trezor-offscreen-bridge"),h=e("../lib/offscreen-bridge/ledger-offscreen-bridge"),b=e("../lib/offscreen-bridge/lattice-offscreen-keyring");r.KeyringControllerInit=({controllerMessenger:e,persistedState:t,initMessenger:r,keyringOverrides:n,encryptor:m,getController:v})=>{const y=[(0,f.qrKeyringBuilderFactory)((null==n?void 0:n.qr)||o.QrKeyring,(null==n?void 0:n.qrBridge)||o.QrKeyringScannerBridge,{requestScan:async e=>r.call("AppStateController:requestQrCodeScan",e)})];!1===c.isManifestV3?y.push((0,i.keyringBuilderFactory)((null==n?void 0:n.lattice)||s.default),(0,u.hardwareKeyringBuilderFactory)(a.TrezorKeyring,(null==n?void 0:n.trezorBridge)||a.TrezorConnectBridge),(0,u.hardwareKeyringBuilderFactory)(a.OneKeyKeyring,(null==n?void 0:n.oneKey)||a.TrezorConnectBridge),(0,u.hardwareKeyringBuilderFactory)(l.LedgerKeyring,(null==n?void 0:n.ledgerBridge)||l.LedgerIframeBridge)):y.push((0,u.hardwareKeyringBuilderFactory)(a.TrezorKeyring,(null==n?void 0:n.trezorBridge)||p.TrezorOffscreenBridge),(0,u.hardwareKeyringBuilderFactory)(a.OneKeyKeyring,(null==n?void 0:n.oneKey)||p.TrezorOffscreenBridge),(0,u.hardwareKeyringBuilderFactory)(l.LedgerKeyring,(null==n?void 0:n.ledgerBridge)||h.LedgerOffscreenBridge),(0,i.keyringBuilderFactory)(b.LatticeKeyringOffscreen));const g=v("SnapKeyringBuilder");y.push(g);return{controller:new i.KeyringController({state:t.KeyringController,messenger:e,cacheEncryptionKey:!0,keyringBuilders:y,encryptor:m||(0,d.encryptorFactory)(6e5)})}}}}},{package:"$root$",file:"app/scripts/controller-init/keyring-controller-init.ts"}],[550,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"MultichainTransactionsController")||!(0,n.isObject)(e.MultichainTransactionsController))return console.warn("Skipping migration. MultichainTransactionsController state not found."),e;const t=e.MultichainTransactionsController;if(!(0,n.hasProperty)(t,"nonEvmTransactions")||!(0,n.isObject)(t.nonEvmTransactions)){var r,i;return null===(r=global.sentry)||void 0===r||null===(i=r.captureException)||void 0===i||i.call(r,new Error("Invalid nonEvmTransactions state: "+typeof t.nonEvmTransactions)),e}const{nonEvmTransactions:o}=t,l={};for(const[e,t]of Object.entries(o)){if(!a(t))throw new Error(`Invalid transaction state entry for account ${e}: expected TransactionStateEntry, got ${typeof t}`);l[e]={[s]:{transactions:t.transactions,next:t.next,lastUpdated:t.lastUpdated}}}t.nonEvmTransactions=l}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=176,s="solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";function a(e){return"object"==typeof e&&null!==e&&(0,n.hasProperty)(e,"transactions")&&(0,n.hasProperty)(e,"next")&&(0,n.hasProperty)(e,"lastUpdated")&&Array.isArray(e.transactions)&&("string"==typeof e.next||null===e.next)&&"number"==typeof e.lastUpdated}}}},{package:"$root$",file:"app/scripts/migrations/176.ts"}],[5500,{"./createErrorClass":5507},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ObjectUnsubscribedError=void 0;var n=e("./createErrorClass");r.ObjectUnsubscribedError=n.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js"}],[5501,{"./createErrorClass":5507},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SequenceError=void 0;var n=e("./createErrorClass");r.SequenceError=n.createErrorClass(function(e){return function(t){e(this),this.name="SequenceError",this.message=t}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/SequenceError.js"}],[5502,{"./createErrorClass":5507},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UnsubscriptionError=void 0;var n=e("./createErrorClass");r.UnsubscriptionError=n.createErrorClass(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js"}],[5503,{"./isFunction":5515,"./isScheduler":5521},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.popNumber=r.popScheduler=r.popResultSelector=void 0;var n=e("./isFunction"),i=e("./isScheduler");function o(e){return e[e.length-1]}r.popResultSelector=function(e){return n.isFunction(o(e))?e.pop():undefined},r.popScheduler=function(e){return i.isScheduler(o(e))?e.pop():undefined},r.popNumber=function(e,t){return"number"==typeof o(e)?e.pop():t}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/args.js"}],[5504,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.argsArgArrayOrObject=void 0;var n=Array.isArray,i=Object.getPrototypeOf,o=Object.prototype,s=Object.keys;r.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(n(t))return{args:t,keys:null};if((a=t)&&"object"==typeof a&&i(a)===o){var r=s(t);return{args:r.map(function(e){return t[e]}),keys:r}}}var a;return{args:e,keys:null}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"}],[5505,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.argsOrArgArray=void 0;var n=Array.isArray;r.argsOrArgArray=function(e){return 1===e.length&&n(e[0])?e[0]:e}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"}],[5506,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.arrRemove=void 0,r.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"}],[5507,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createErrorClass=void 0,r.createErrorClass=function(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js"}],[5508,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createObject=void 0,r.createObject=function(e,t){return e.reduce(function(e,r,n){return e[r]=t[n],e},{})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/createObject.js"}],[5509,{"../config":5317},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.captureError=r.errorContext=void 0;var n=e("../config"),i=null;r.errorContext=function(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,o=r.errorThrown,s=r.error;if(i=null,o)throw s}}else e()},r.captureError=function(e){n.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/errorContext.js"}],[551,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if(!(0,n.hasProperty)(e,"UserStorageController")||!(0,n.isObject)(e.UserStorageController)){var t,r;return null===(t=global.sentry)||void 0===t||null===(r=t.captureException)||void 0===r||r.call(t,new Error("Invalid UserStorageController state: "+typeof e.UserStorageController)),e}(0,n.hasProperty)(e.UserStorageController,"hasAccountSyncingSyncedAtLeastOnce")&&delete e.UserStorageController.hasAccountSyncingSyncedAtLeastOnce;(0,n.hasProperty)(e.UserStorageController,"isAccountSyncingReadyToBeDispatched")&&delete e.UserStorageController.isAccountSyncingReadyToBeDispatched;(0,n.hasProperty)(e.UserStorageController,"isAccountSyncingInProgress")&&delete e.UserStorageController.isAccountSyncingInProgress}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=177}}},{package:"$root$",file:"app/scripts/migrations/177.ts"}],[5510,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.executeSchedule=void 0,r.executeSchedule=function(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js"}],[5511,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.identity=void 0,r.identity=function(e){return e}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/identity.js"}],[5512,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isArrayLike=void 0,r.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js"}],[5513,{"./isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isAsyncIterable=void 0;var n=e("./isFunction");r.isAsyncIterable=function(e){return Symbol.asyncIterator&&n.isFunction(null==e?void 0:e[Symbol.asyncIterator])}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js"}],[5514,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isValidDate=void 0,r.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isDate.js"}],[5515,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isFunction=void 0,r.isFunction=function(e){return"function"==typeof e}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isFunction.js"}],[5516,{"../symbol/observable":5494,"./isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isInteropObservable=void 0;var n=e("../symbol/observable"),i=e("./isFunction");r.isInteropObservable=function(e){return i.isFunction(e[n.observable])}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js"}],[5517,{"../symbol/iterator":5493,"./isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isIterable=void 0;var n=e("../symbol/iterator"),i=e("./isFunction");r.isIterable=function(e){return i.isFunction(null==e?void 0:e[n.iterator])}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isIterable.js"}],[5518,{"../Observable":5311,"./isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isObservable=void 0;var n=e("../Observable"),i=e("./isFunction");r.isObservable=function(e){return!!e&&(e instanceof n.Observable||i.isFunction(e.lift)&&i.isFunction(e.subscribe))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isObservable.js"}],[5519,{"./isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isPromise=void 0;var n=e("./isFunction");r.isPromise=function(e){return n.isFunction(null==e?void 0:e.then)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isPromise.js"}],[552,{"../../../shared/constants/network":5768,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CHAINS_TO_RENAME=void 0,r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=s,function(e){if(!((0,n.hasProperty)(e,"NetworkController")&&(0,n.isObject)(e.NetworkController)&&(0,n.hasProperty)(e.NetworkController,"networkConfigurationsByChainId")&&(0,n.isObject)(e.NetworkController.networkConfigurationsByChainId)))return;for(const t of a){const r=e.NetworkController.networkConfigurationsByChainId;if(!(0,n.hasProperty)(r,t.id))continue;const i=r[t.id];(0,n.isObject)(i)&&(0,n.hasProperty)(i,"name")&&i.name===t.fromName&&(i.name=t.toName)}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash"),o=e("../../../shared/constants/network");const s=r.version=178,a=r.CHAINS_TO_RENAME=[{id:o.CHAIN_IDS.MAINNET,fromName:"Ethereum Mainnet",toName:"Ethereum"},{id:o.CHAIN_IDS.LINEA_MAINNET,fromName:"Linea Mainnet",toName:"Linea"},{id:o.CHAIN_IDS.BASE,fromName:"Base Mainnet",toName:"Base"},{id:o.CHAIN_IDS.ARBITRUM,fromName:"Arbitrum One",toName:"Arbitrum"},{id:o.CHAIN_IDS.AVALANCHE,fromName:"Avalanche Network C-Chain",toName:"Avalanche"},{id:o.CHAIN_IDS.BSC,fromName:"Binance Smart Chain",toName:"BNB Chain"},{id:o.CHAIN_IDS.OPTIMISM,fromName:"OP Mainnet",toName:"OP"},{id:o.CHAIN_IDS.POLYGON,fromName:"Polygon Mainnet",toName:"Polygon"},{id:o.CHAIN_IDS.SEI,fromName:"Sei Mainnet",toName:"Sei"},{id:o.CHAIN_IDS.ZKSYNC_ERA,fromName:"zkSync Era Mainnet",toName:"zkSync Era"}]}}},{package:"$root$",file:"app/scripts/migrations/178.ts"}],[5520,{"./isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)},o=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),s=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||l(e,t)})})}function l(e,t){try{(r=o[e](t)).value instanceof i?Promise.resolve(r.value.v).then(u,c):f(s[0][2],r)}catch(e){f(s[0][3],e)}var r}function u(e){l("next",e)}function c(e){l("throw",e)}function f(e,t){e(t),s.shift(),s.length&&l(s[0][0],s[0][1])}};Object.defineProperty(r,"__esModule",{value:!0}),r.isReadableStreamLike=r.readableStreamLikeToAsyncGenerator=void 0;var s=e("./isFunction");r.readableStreamLikeToAsyncGenerator=function(e){return o(this,arguments,function(){var t,r,o;return n(this,function(n){switch(n.label){case 0:t=e.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,i(t.read())];case 3:return r=n.sent(),o=r.value,r.done?[4,i(void 0)]:[3,5];case 4:return[2,n.sent()];case 5:return[4,i(o)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})},r.isReadableStreamLike=function(e){return s.isFunction(null==e?void 0:e.getReader)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js"}],[5521,{"./isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isScheduler=void 0;var n=e("./isFunction");r.isScheduler=function(e){return e&&n.isFunction(e.schedule)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"}],[5522,{"./isFunction":5515},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.operate=r.hasLift=void 0;var n=e("./isFunction");function i(e){return n.isFunction(null==e?void 0:e.lift)}r.hasLift=i,r.operate=function(e){return function(t){if(i(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/lift.js"}],[5523,{"../operators/map":5398},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(r,"__esModule",{value:!0}),r.mapOneOrManyArgs=void 0;var o=e("../operators/map"),s=Array.isArray;r.mapOneOrManyArgs=function(e){return o.map(function(t){return function(e,t){return s(t)?e.apply(void 0,i([],n(t))):e(t)}(e,t)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"}],[5524,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.noop=void 0,r.noop=function(){}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/noop.js"}],[5525,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.not=void 0,r.not=function(e,t){return function(r,n){return!e.call(t,r,n)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/not.js"}],[5526,{"./identity":5511},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pipeFromArray=r.pipe=void 0;var n=e("./identity");function i(e){return 0===e.length?n.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}r.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)},r.pipeFromArray=i}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/pipe.js"}],[5527,{"../config":5317,"../scheduler/timeoutProvider":5492},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.reportUnhandledError=void 0;var n=e("../config"),i=e("../scheduler/timeoutProvider");r.reportUnhandledError=function(e){i.timeoutProvider.setTimeout(function(){var t=n.config.onUnhandledError;if(!t)throw e;t(e)})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js"}],[5528,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createInvalidObservableTypeError=void 0,r.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js"}],[553,{"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,i.cloneDeep)(e);return t.meta.version=o,function(e){if((0,n.hasProperty)(e,"PhishingController")&&(0,n.isObject)(e.PhishingController)){const t=e.PhishingController;(0,n.hasProperty)(t,"urlScanCache")&&(t.urlScanCache={})}}(t.data),t},r.version=void 0;var n=e("@metamask/utils"),i=e("lodash");const o=r.version=179}}},{package:"$root$",file:"app/scripts/migrations/179.ts"}],[554,{"../../../shared/constants/network":5768,"@metamask/utils":2879,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getBaseNetworkConfiguration=a,r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=s,t.data=function(e){if(!(0,i.hasProperty)(e,"NetworkController"))return console.warn(`Migration ${s}: NetworkController not found.`),e;const t=e.NetworkController;if(!(0,i.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${s}: NetworkController is not an object: ${typeof t}`)),e}if(!(0,i.hasProperty)(t,"networkConfigurationsByChainId")){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${s}: NetworkController missing property networkConfigurationsByChainId.`)),e}if(!(0,i.isObject)(t.networkConfigurationsByChainId)){var c,f;return null===(c=global.sentry)||void 0===c||null===(f=c.captureException)||void 0===f||f.call(c,new Error(`Migration ${s}: NetworkController.networkConfigurationsByChainId is not an object: ${typeof t.networkConfigurationsByChainId}.`)),e}const d=t.networkConfigurationsByChainId[o.CHAIN_IDS.BASE];if(d&&(0,i.isObject)(d)){if((0,i.hasProperty)(d,"rpcEndpoints")&&Array.isArray(d.rpcEndpoints)&&d.rpcEndpoints.some(e=>(0,i.isObject)(e)&&(0,i.hasProperty)(e,"networkClientId")&&(0,i.hasProperty)(e,"type")&&"base-mainnet"===e.networkClientId&&"infura"===e.type))return e;const r=a(),n={...d,rpcEndpoints:[...Array.isArray(d.rpcEndpoints)?d.rpcEndpoints:[],...r.rpcEndpoints]};t.networkConfigurationsByChainId[o.CHAIN_IDS.BASE]=n}else t.networkConfigurationsByChainId[o.CHAIN_IDS.BASE]=a();return e}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("@metamask/utils"),o=e("../../../shared/constants/network");const s=r.version=180;function a(){return{blockExplorerUrls:[],chainId:"0x2105",defaultRpcEndpointIndex:0,name:"Base",nativeCurrency:"ETH",rpcEndpoints:[{failoverUrls:(0,o.getFailoverUrlsForInfuraNetwork)("base-mainnet"),networkClientId:"base-mainnet",type:"infura",url:"https://base-mainnet.infura.io/v3/{infuraProjectId}"}]}}}}},{package:"$root$",file:"app/scripts/migrations/180.ts"}],[555,{lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=i,function(e){const t=null==e?void 0:e.PreferencesController;t&&delete t.showIncomingTransactions}(t.data),t},r.version=void 0;var n=e("lodash");const i=r.version=181}}},{package:"$root$",file:"app/scripts/migrations/181.ts"}],[556,{"../../../shared/constants/network":5768,"@metamask/utils":2879,lodash:4789,uuid:5705},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.migrate=async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=a,function(e){if(!(0,o.hasProperty)(e,"NetworkController"))return console.warn(`Migration ${a}: NetworkController not found.`),e;const t=e.NetworkController;if(!(0,o.isObject)(t)){var r,n;return null===(r=global.sentry)||void 0===r||null===(n=r.captureException)||void 0===n||n.call(r,new Error(`Migration ${a}: NetworkController is not an object: ${typeof t}`)),e}if(!(0,o.hasProperty)(t,"networkConfigurationsByChainId")){var l,u;return null===(l=global.sentry)||void 0===l||null===(u=l.captureException)||void 0===u||u.call(l,new Error(`Migration ${a}: NetworkController missing property networkConfigurationsByChainId.`)),e}if(!(0,o.isObject)(t.networkConfigurationsByChainId)){var c,f;return null===(c=global.sentry)||void 0===c||null===(f=c.captureException)||void 0===f||f.call(c,new Error(`Migration ${a}: NetworkController.networkConfigurationsByChainId is not an object: ${typeof t.networkConfigurationsByChainId}.`)),e}const d=t.networkConfigurationsByChainId,p=[s.CHAIN_IDS.ARBITRUM,s.CHAIN_IDS.BSC,s.CHAIN_IDS.POLYGON,s.CHAIN_IDS.OPTIMISM,s.CHAIN_IDS.SEI];s.FEATURED_RPCS.forEach(e=>{if(!p.includes(e.chainId))return;const{chainId:t}=e;if(d[t])return;const r={chainId:e.chainId,name:e.name,nativeCurrency:e.nativeCurrency,rpcEndpoints:e.rpcEndpoints.map(e=>({url:e.url,failoverUrls:e.failoverUrls||[],type:e.type,networkClientId:(0,i.v4)()})),defaultRpcEndpointIndex:e.defaultRpcEndpointIndex,blockExplorerUrls:e.blockExplorerUrls||[],defaultBlockExplorerUrlIndex:e.defaultBlockExplorerUrlIndex||0};d[t]=r})}(t.data),t},r.version=void 0;var n=e("lodash"),i=e("uuid"),o=e("@metamask/utils"),s=e("../../../shared/constants/network");const a=r.version=182}}},{package:"$root$",file:"app/scripts/migrations/182.ts"}],[557,{"@metamask/transaction-controller":2833,lodash:4789},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){return function(o){const s=(0,n.cloneDeep)(o);s.meta.version=e;try{const e=function(e,t,r){const n=e,{TransactionController:o}=n;if(o&&o.transactions){const{transactions:e}=o;n.TransactionController.transactions=e.map(e=>t(e)?(e.status=i.TransactionStatus.failed,e.err={message:r,note:`Tx automatically failed by migration because ${r}`},e):e)}return n}(s.data,r,t);s.data=e}catch(t){console.warn(`MetaMask Migration #${e}${t.stack}`)}return Promise.resolve(s)}};var n=e("lodash"),i=e("@metamask/transaction-controller")}}},{package:"$root$",file:"app/scripts/migrations/fail-tx.js"}],[558,{"./002":346,"./003":347,"./004":348,"./005":349,"./006":350,"./007":351,"./008":352,"./009":353,"./010":354,"./011":355,"./012":356,"./013":357,"./014":358,"./015":359,"./016":360,"./017":361,"./018":362,"./019":363,"./020":364,"./021":365,"./022":366,"./023":367,"./024":368,"./025":369,"./026":370,"./027":371,"./028":372,"./029":373,"./030":374,"./031":375,"./032":376,"./033":377,"./034":378,"./035":379,"./036":380,"./037":381,"./038":382,"./039":383,"./040":384,"./041":385,"./042":386,"./043":387,"./044":388,"./045":389,"./046":390,"./047":391,"./048":392,"./049":393,"./050":394,"./051":395,"./052":396,"./053":397,"./054":398,"./055":399,"./056":400,"./057":401,"./058":402,"./059":403,"./060":404,"./061":405,"./062":406,"./063":407,"./064":408,"./065":409,"./066":410,"./067":411,"./068":412,"./069":413,"./070":414,"./071":415,"./072":416,"./073":417,"./074":418,"./075":419,"./076":420,"./077":425,"./078":426,"./079":427,"./080":428,"./081":429,"./082":430,"./083":431,"./084":432,"./085":433,"./086":434,"./087":435,"./088":436,"./089":437,"./090":438,"./091":439,"./092":443,"./092.1":440,"./092.2":441,"./092.3":442,"./093":444,"./094":445,"./095":446,"./096":447,"./097":448,"./098":449,"./099":450,"./100":451,"./101":452,"./102":453,"./103":454,"./104":455,"./105":456,"./106":457,"./107":458,"./108":459,"./109":460,"./110":461,"./111":462,"./112":463,"./113":464,"./114":465,"./115":466,"./116":467,"./117":468,"./118":469,"./119":470,"./120":476,"./120.1":471,"./120.2":472,"./120.4":473,"./120.5":474,"./120.6":475,"./121":479,"./121.1":477,"./121.2":478,"./122":480,"./123":481,"./124":482,"./125":484,"./125.1":483,"./126":486,"./126.1":485,"./127":487,"./128":488,"./129":489,"./130":490,"./131":492,"./131.1":491,"./132":493,"./133":496,"./133.1":494,"./133.2":495,"./134":498,"./134.1":497,"./135":499,"./136":500,"./137":501,"./138":502,"./139":503,"./140":504,"./141":505,"./142":506,"./143":508,"./143.1":507,"./144":509,"./145":510,"./146":512,"./146.1":511,"./147":513,"./148":514,"./149":515,"./150":516,"./151":517,"./152":520,"./152.1":518,"./152.2":519,"./153":521,"./154":522,"./155":523,"./156":525,"./156.1":524,"./157":526,"./158":527,"./159":528,"./160":529,"./161":531,"./161.1":530,"./162":532,"./163":533,"./164":534,"./165":535,"./166":536,"./167":537,"./168":539,"./168.1":538,"./169":540,"./170":543,"./170.1":541,"./170.2":542,"./171":544,"./172":545,"./173":546,"./174":547,"./175":548,"./176":550,"./176.1":549,"./177":551,"./178":552,"./179":553,"./180":554,"./181":555,"./182":556},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;const n=[e("./002").default,e("./003").default,e("./004").default,e("./005").default,e("./006").default,e("./007").default,e("./008").default,e("./009").default,e("./010").default,e("./011").default,e("./012").default,e("./013").default,e("./014").default,e("./015").default,e("./016").default,e("./017").default,e("./018").default,e("./019").default,e("./020").default,e("./021").default,e("./022").default,e("./023").default,e("./024").default,e("./025").default,e("./026").default,e("./027").default,e("./028").default,e("./029").default,e("./030").default,e("./031").default,e("./032").default,e("./033").default,e("./034").default,e("./035").default,e("./036").default,e("./037").default,e("./038").default,e("./039").default,e("./040").default,e("./041").default,e("./042").default,e("./043").default,e("./044").default,e("./045").default,e("./046").default,e("./047").default,e("./048").default,e("./049").default,e("./050").default,e("./051").default,e("./052").default,e("./053").default,e("./054").default,e("./055").default,e("./056").default,e("./057").default,e("./058").default,e("./059").default,e("./060").default,e("./061").default,e("./062").default,e("./063").default,e("./064").default,e("./065").default,e("./066").default,e("./067").default,e("./068").default,e("./069").default,e("./070").default,e("./071").default,e("./072").default,e("./073").default,e("./074").default,e("./075").default,e("./076").default,e("./077").default,e("./078"),e("./079").default,e("./080").default,e("./081"),e("./082"),e("./083"),e("./084"),e("./085"),e("./086"),e("./087"),e("./088"),e("./089"),e("./090"),e("./091"),e("./092"),e("./092.1"),e("./092.2"),e("./092.3"),e("./093"),e("./094"),e("./095"),e("./096"),e("./097"),e("./098"),e("./099"),e("./100"),e("./101"),e("./102"),e("./103"),e("./104"),e("./105"),e("./106"),e("./107"),e("./108"),e("./109"),e("./110"),e("./111"),e("./112"),e("./113"),e("./114"),e("./115"),e("./116"),e("./117"),e("./118"),e("./119"),e("./120"),e("./120.1"),e("./120.2"),e("./120.4"),e("./120.5"),e("./120.6"),e("./121"),e("./121.1"),e("./121.2"),e("./122"),e("./123"),e("./124"),e("./125"),e("./125.1"),e("./126"),e("./126.1"),e("./127"),e("./128"),e("./129"),e("./130"),e("./131"),e("./131.1"),e("./132"),e("./133"),e("./133.1"),e("./133.2"),e("./134"),e("./134.1"),e("./135"),e("./136"),e("./137"),e("./138"),e("./139"),e("./140"),e("./141"),e("./142"),e("./143"),e("./143.1"),e("./144"),e("./145"),e("./146"),e("./146.1"),e("./147"),e("./148"),e("./149"),e("./150"),e("./151"),e("./152"),e("./152.1"),e("./152.2"),e("./153"),e("./154"),e("./155"),e("./156"),e("./156.1"),e("./157"),e("./158"),e("./159"),e("./160"),e("./161"),e("./161.1"),e("./162"),e("./163"),e("./164"),e("./165"),e("./166"),e("./167"),e("./168"),e("./168.1"),e("./169"),e("./170"),e("./170.1"),e("./170.2"),e("./171"),e("./172"),e("./173"),e("./174"),e("./175"),e("./176"),e("./176.1"),e("./177"),e("./178"),e("./179"),e("./180"),e("./181"),e("./182")];r.default=n}}},{package:"$root$",file:"app/scripts/migrations/index.js"}],[559,{"../../shared/constants/offscreen-communication":5770,"../../shared/lib/sentry":5857},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createOffscreen=async function(){const{chrome:e}=globalThis;if(!e.offscreen)return;let t;const r=new Promise(r=>{t=n=>{n.target===i.OffscreenCommunicationTarget.extensionMain&&n.isBooted&&(e.runtime.onMessage.removeListener(t),r())},e.runtime.onMessage.addListener(t)});try{const t=await async function(){const{chrome:e,clients:t}=globalThis;if("getContexts"in e.runtime){return(await e.runtime.getContexts({contextTypes:["OFFSCREEN_DOCUMENT"]})).length>0}const r=await t.matchAll(),n=e.runtime.getURL("offscreen.html");return r.some(e=>e.url===n)}();t&&(console.debug("Found existing offscreen document, closing."),await e.offscreen.closeDocument()),await e.offscreen.createDocument({url:"./offscreen.html",reasons:["IFRAME_SCRIPTING"],justification:"Used for Hardware Wallet and Snaps scripts to communicate with the extension."})}catch(r){return t&&e.runtime.onMessage.removeListener(t),void(0,n.captureException)(r)}const o=new Promise(e=>{setTimeout(e,i.OFFSCREEN_LOAD_TIMEOUT)});await Promise.race([r,o]),console.debug("Offscreen iframe loaded")};var n=e("../../shared/lib/sentry"),i=e("../../shared/constants/offscreen-communication")}}},{package:"$root$",file:"app/scripts/offscreen.js"}],[56,{"../../../shared/constants/logs":5762,"@metamask/logging-controller":2134},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.LoggingControllerInit=void 0;var n=e("@metamask/logging-controller"),i=e("../../../shared/constants/logs");r.LoggingControllerInit=({controllerMessenger:e,persistedState:t,extension:r})=>{const o=new n.LoggingController({messenger:e,state:t.LoggingController});return r.runtime.onInstalled.addListener(e=>{"update"===e.reason&&o.add({type:n.LogType.GenericLog,data:{event:i.LOG_EVENT.VERSION_UPDATE,previousVersion:e.previousVersion,version:"13.10.0-beta.0"}})}),{controller:o}}}}},{package:"$root$",file:"app/scripts/controller-init/logging-controller-init.ts"}],[561,{"../../../shared/modules/fetch-with-timeout":5882,"@metamask/utils":2879,cockatiel:4094},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RETRIES=r.MAX_CONSECUTIVE_FAILURES=r.DataDeletionService=void 0;var n,i=e("@metamask/utils"),o=e("cockatiel"),s=(n=e("../../../shared/modules/fetch-with-timeout"))&&n.__esModule?n:{default:n};function a(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function l(e,t){return e.get(c(e,t))}function u(e,t,r){return e.set(c(e,t),r),r}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const f=r.RETRIES=3,d=r.MAX_CONSECUTIVE_FAILURES=3*(1+f);function p(e){return function(e){return(0,i.isObject)(e)&&(0,i.hasProperty)(e,"statusCode")&&"number"==typeof e.statusCode}(e)&&e.statusCode>=500}function h({circuitBreakDuration:e,degradedThreshold:t,maximumConsecutiveFailures:r,onBreak:n,onDegraded:i,retries:s}){const a=(0,o.retry)(o.handleAll.orWhenResult(p),{maxAttempts:s,backoff:new o.ExponentialBackoff}),l=(0,o.circuitBreaker)(o.handleAll,{halfOpenAfter:e,breaker:new o.ConsecutiveBreaker(r)});return n&&l.onBreak(n),i&&(a.onGiveUp(()=>{l.state===o.CircuitState.Closed&&i()}),a.onSuccess(({duration:e})=>{l.state===o.CircuitState.Closed&&e>t&&i()})),(0,o.wrap)(a,l)}var b=new WeakMap,m=new WeakMap,v=new WeakMap,y=new WeakMap,g=new WeakMap;r.DataDeletionService=class{constructor({analyticsDataDeletionEndpoint:e="https://proxy.api.cx.metamask.io/segment/v1",analyticsDataDeletionSourceId:t="mytXhbDHVobxqatxZKaZQX",circuitBreakDuration:r=18e5,degradedThreshold:n=5e3,onBreak:i,onDegraded:o,timeout:l}={}){if(a(this,b,void 0),a(this,m,void 0),a(this,v,void 0),a(this,y,void 0),a(this,g,void 0),!e)throw new Error("Missing ANALYTICS_DATA_DELETION_ENDPOINT");if(!t)throw new Error("Missing ANALYTICS_DATA_DELETION_SOURCE_ID");u(g,this,(0,s.default)(l)),u(b,this,e),u(m,this,t),u(y,this,h({circuitBreakDuration:r,degradedThreshold:n,maximumConsecutiveFailures:d,onBreak:i,onDegraded:o,retries:f})),u(v,this,h({circuitBreakDuration:r,degradedThreshold:n,maximumConsecutiveFailures:d,onBreak:i,onDegraded:o,retries:f}))}async createDataDeletionRegulationTask(e){const t=await l(y,this).execute(()=>l(g,this).call(this,`${l(b,this)}/regulations/sources/${l(m,this)}`,{method:"POST",headers:{"Content-Type":"application/vnd.segment.v1+json"},body:JSON.stringify({regulationType:"DELETE_ONLY",subjectType:"USER_ID",subjectIds:[e]})}));if(!t.ok)throw new Error(`Fetch failed with status '${t.status}' for request`);return(await t.json()).data.regulateId}async fetchDeletionRegulationStatus(e){const t=await l(v,this).execute(()=>l(g,this).call(this,`${l(b,this)}/regulations/${e}`,{method:"GET",headers:{"Content-Type":"application/vnd.segment.v1+json"}}));if(!t.ok)throw new Error(`Fetch failed with status '${t.status}' for request`);return(await t.json()).data.regulation.overallStatus}}}}},{package:"$root$",file:"app/scripts/services/data-deletion-service.ts"}],[562,{"./base-login-handler":563,"./utils":569,"@metamask/seedless-onboarding-controller":2478},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AppleLoginHandler=void 0;var n=e("@metamask/seedless-onboarding-controller"),i=e("./base-login-handler"),o=e("./utils");function s(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var u=new WeakMap;class c extends i.BaseLoginHandler{constructor(e){super(e),a(this,"OAUTH_SERVER_URL",void 0),s(this,u,["name","email"]),a(this,"serverRedirectUri",void 0),this.serverRedirectUri=`${e.authServerUrl}/api/v1/oauth/callback`,this.OAUTH_SERVER_URL=`${e.authServerUrl}/api/v1/oauth/initiate`}get authConnection(){return n.AuthConnection.Apple}get scope(){return l(u,this)}async getAuthUrl(){const e=new URL(this.OAUTH_SERVER_URL),t=this.options.webAuthenticator.getRedirectURL(),r=this.generateNonce(),{challenge:n}=await this.generateCodeVerifierChallenge();return e.searchParams.set("client_id",this.options.oAuthClientId),e.searchParams.set("response_type","code"),e.searchParams.set("redirect_uri",t),e.searchParams.set("response_mode","form_post"),e.searchParams.set("prompt",this.prompt),e.searchParams.set("state",JSON.stringify({client_redirect_back_uri:this.options.webAuthenticator.getRedirectURL(),nonce:r,code_challenge:n})),e.searchParams.set("scope",l(u,this).join(" ")),Promise.resolve(e.toString())}async getAuthIdToken(){const e=this.generateAuthTokenRequestData();return await this.requestVerifyAuthToken(e)}generateAuthTokenRequestData(){const{web3AuthNetwork:e}=this.options,t={code_verifier:this.codeVerifier,client_id:this.options.oAuthClientId,redirect_uri:this.serverRedirectUri,login_provider:this.authConnection,network:e,access_type:"offline"};return JSON.stringify(t)}async requestVerifyAuthToken(e){const t=await fetch(`${this.options.authServerUrl}/api/v1/oauth/callback/verify`,{method:"POST",headers:{"Content-Type":"application/json"},body:e});return await t.json()}async getUserInfo(e){const t=(0,o.decodeIdToken)(e),r=JSON.parse(t);return{email:r.email,sub:r.sub}}}r.AppleLoginHandler=c}}},{package:"$root$",file:"app/scripts/services/oauth/apple-login-handler.ts"}],[563,{"../../../../shared/modules/error":5880},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BaseLoginHandler=void 0;var n=e("../../../../shared/modules/error");function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.BaseLoginHandler=class{constructor(e){i(this,"options",void 0),i(this,"codeVerifier",void 0),i(this,"nonce",void 0),i(this,"prompt","select_account"),i(this,"CODE_CHALLENGE_METHOD","S256"),i(this,"AUTH_SERVER_TOKEN_PATH","/api/v1/oauth/token"),i(this,"AUTH_SERVER_REVOKE_PATH","/api/v2/oauth/revoke"),i(this,"AUTH_SERVER_RENEW_REFRESH_PATH","/api/v2/oauth/renew_refresh_token"),this.options=e}validateState(e){const t=new URL(e).searchParams.get("state");if("string"!=typeof t)throw new Error(n.OAuthErrorMessages.INVALID_OAUTH_STATE_ERROR);if(JSON.parse(t).nonce!==this.nonce)throw new Error(n.OAuthErrorMessages.INVALID_OAUTH_STATE_ERROR)}async refreshAuthToken(e){const{web3AuthNetwork:t}=this.options,r={client_id:this.options.oAuthClientId,login_provider:this.authConnection,network:t,refresh_token:e,grant_type:"refresh_token"};return await this.requestAuthToken(JSON.stringify(r))}async revokeRefreshToken(e){const t={revoke_token:e};if(!(await fetch(`${this.options.authServerUrl}${this.AUTH_SERVER_REVOKE_PATH}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)throw new Error("Failed to revoke refresh token")}async renewRefreshToken(e){const t={revoke_token:e},r=await fetch(`${this.options.authServerUrl}${this.AUTH_SERVER_RENEW_REFRESH_PATH}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok)throw new Error("Failed to renew refresh token");const n=await r.json();return{refresh_token:n.refresh_token,revoke_token:n.revoke_token}}async requestAuthToken(e){const t=await fetch(`${this.options.authServerUrl}${this.AUTH_SERVER_TOKEN_PATH}`,{method:"POST",headers:{"Content-Type":"application/json"},body:e});if(!t.ok)throw new Error("Failed to get auth token");return await t.json()}generateNonce(){return this.nonce=this.options.webAuthenticator.generateNonce(),this.nonce}async generateCodeVerifierChallenge(){const{codeVerifier:e,challenge:t}=await this.options.webAuthenticator.generateCodeVerifierAndChallenge();return this.codeVerifier=e,{codeVerifier:e,challenge:t}}}}}},{package:"$root$",file:"app/scripts/services/oauth/base-login-handler.ts"}],[564,{"../../../../development/build/constants":575,"@metamask/seedless-onboarding-controller":2478},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OauthConfigMap=r.BuildTypeEnv=void 0,r.isDevOrTestBuild=a,r.loadOAuthConfig=function(){let e=o.DevMain;e=o.Beta;return s[e]};var n=e("@metamask/seedless-onboarding-controller"),i=e("../../../../development/build/constants");let o=r.BuildTypeEnv=function(e){return e.DevMain="DevMain",e.DevFlask="DevFlask",e.UatMain="UatMain",e.UatFlask="UatFlask",e.ProdMain="ProdMain",e.ProdFlask="ProdFlask",e.Beta="Beta",e}({});const s=r.OauthConfigMap={[o.DevMain]:{googleAuthConnectionId:"mm-google-dev-extension",appleAuthConnectionId:"mm-apple-dev-common",googleGroupedAuthConnectionId:"mm-google-dev",appleGroupedAuthConnectionId:"mm-apple-dev",authServerUrl:"https://auth-service.dev-api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Devnet},[o.DevFlask]:{googleAuthConnectionId:"mm-google-flask-dev-extension",appleAuthConnectionId:"mm-apple-flask-dev-common",googleGroupedAuthConnectionId:"mm-google-flask-dev",appleGroupedAuthConnectionId:"mm-apple-flask-dev",authServerUrl:"https://auth-service.dev-api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Devnet},[o.UatMain]:{googleAuthConnectionId:"mm-google-uat-extension",appleAuthConnectionId:"mm-apple-uat-common",googleGroupedAuthConnectionId:"mm-google-uat",appleGroupedAuthConnectionId:"mm-apple-uat",authServerUrl:"https://auth-service.uat-api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Mainnet},[o.UatFlask]:{googleAuthConnectionId:"mm-google-flask-uat-extension",appleAuthConnectionId:"mm-apple-flask-uat-common",googleGroupedAuthConnectionId:"mm-google-flask-uat",appleGroupedAuthConnectionId:"mm-apple-flask-uat",authServerUrl:"https://auth-service.uat-api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Mainnet},[o.ProdMain]:{googleAuthConnectionId:"mm-google-main-extension",appleAuthConnectionId:"mm-apple-main-common",googleGroupedAuthConnectionId:"mm-google-main",appleGroupedAuthConnectionId:"mm-apple-main",authServerUrl:"https://auth-service.api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Mainnet},[o.ProdFlask]:{googleAuthConnectionId:"mm-google-flask-main-extension",appleAuthConnectionId:"mm-apple-flask-main-common",googleGroupedAuthConnectionId:"mm-google-flask-main",appleGroupedAuthConnectionId:"mm-apple-flask-main",authServerUrl:"https://auth-service.api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Mainnet},[o.Beta]:{googleAuthConnectionId:"mm-google-main-extension",appleAuthConnectionId:"mm-apple-main-common",googleGroupedAuthConnectionId:"mm-google-main",appleGroupedAuthConnectionId:"mm-apple-main",authServerUrl:"https://auth-service.api.cx.metamask.io",web3AuthNetwork:n.Web3AuthNetwork.Mainnet}};function a(){return"pull-request"===i.ENVIRONMENT.DEVELOPMENT||"pull-request"===i.ENVIRONMENT.TESTING}}}},{package:"$root$",file:"app/scripts/services/oauth/config.ts"}],[5640,{events:4334,"fast-fifo":4343,"queue-tick":5116},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{EventEmitter:n}=e("events"),i=new Error("Stream was destroyed"),o=new Error("Premature close"),s=e("queue-tick"),a=e("fast-fifo"),l=134217727,u=1^l,c=2^l,f=64,d=128,p=256,h=1024,b=2048,m=4096,v=8192,y=16384,g=32768,w=16^l,k=768^l,j=134184959,_=32^l,O=2<<17,T=4<<17,S=8<<17,x=16<<17,E=32<<17,P=64<<17,C=128<<17,A=256<<17,M=512<<17,I=100532223,N=133693439,R=117440511,F=131088,$=134086639,B=4210688,U=14,L=15,D=4210702,z=16809984,W=16809999,q=1179648,H=1179663,V=Symbol.asyncIterator||Symbol("asyncIterator");class G{constructor(e,{highWaterMark:t=16384,map:r=null,mapWritable:n,byteLength:i,byteLengthWritable:o}={}){this.stream=e,this.queue=new a,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||i||he,this.map=n||r,this.afterWrite=ee.bind(this),this.afterUpdateNextTick=ne.bind(this)}get ended(){return 0!==(this.stream._duplexState&E)}push(e){return null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=S,!0):(this.stream._duplexState|=3145728,!1)}shift(){const e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=133169151),e}end(e){"function"==typeof e?this.stream.once("finish",e):e!==undefined&&null!==e&&this.push(e),this.stream._duplexState=(this.stream._duplexState|M)&N}autoBatch(e,t){const r=[],n=this.stream;for(r.push(e);(n._duplexState&H)===q;)r.push(n._writableState.shift());if(0!==(n._duplexState&L))return t(null);n._writev(r,t)}update(){const e=this.stream;e._duplexState|=O;do{for(;(e._duplexState&H)===S;){const t=this.shift();e._duplexState|=33685504,e._write(t,this.afterWrite)}655360&e._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=133955583}updateNonPrimary(){const e=this.stream;if((72482831&e._duplexState)===M)return e._duplexState=67108863&e._duplexState|131072,void e._final(Q.bind(this));4!==(e._duplexState&U)?1===(e._duplexState&W)&&(e._duplexState=(e._duplexState|F)&u,e._open(ie.bind(this))):0===(e._duplexState&z)&&(e._duplexState|=F,e._destroy(X.bind(this)))}continueUpdate(){return 0!==(this.stream._duplexState&C)&&(this.stream._duplexState&=R,!0)}updateCallback(){(17563663&this.stream._duplexState)===T?this.update():this.updateNextTick()}updateNextTick(){0===(this.stream._duplexState&C)&&(this.stream._duplexState|=C,0===(this.stream._duplexState&O)&&s(this.afterUpdateNextTick))}}class K{constructor(e,{highWaterMark:t=16384,map:r=null,mapReadable:n,byteLength:i,byteLengthReadable:o}={}){this.stream=e,this.queue=new a,this.highWaterMark=t,this.buffered=0,this.error=null,this.pipeline=null,this.byteLength=o||i||he,this.map=n||r,this.pipeTo=null,this.afterRead=te.bind(this),this.afterUpdateNextTick=re.bind(this)}get ended(){return 0!==(this.stream._duplexState&y)}pipe(e,t){if(null!==this.pipeTo)throw new Error("Can only pipe to one destination");if("function"!=typeof t&&(t=null),this.stream._duplexState|=512,this.pipeTo=e,this.pipeline=new Y(this.stream,e,t),t&&this.stream.on("error",be),pe(e))e._writableState.pipeline=this.pipeline,t&&e.on("error",be),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{const t=this.pipeline.done.bind(this.pipeline,e),r=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",t),e.on("close",r),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",Z.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){const t=this.stream;return null===e?(this.highWaterMark=0,t._duplexState=134152127&t._duplexState|1024,!1):(null!==this.map&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),t._duplexState=134152191&t._duplexState|128,this.buffered<this.highWaterMark)}shift(){const e=this.queue.shift();return this.buffered-=this.byteLength(e),0===this.buffered&&(this.stream._duplexState&=134209407),e}unshift(e){const t=[null!==this.map?this.map(e):e];for(;this.buffered>0;)t.push(this.shift());for(let e=0;e<t.length-1;e++){const r=t[e];this.buffered+=this.byteLength(r),this.queue.push(r)}this.push(t[t.length-1])}read(){const e=this.stream;if((16527&e._duplexState)===d){const t=this.shift();return null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=k),0!==(e._duplexState&b)&&e.emit("data",t),t}return null}drain(){const e=this.stream;for(;(16527&e._duplexState)===d&&768&e._duplexState;){const t=this.shift();null!==this.pipeTo&&!1===this.pipeTo.write(t)&&(e._duplexState&=k),0!==(e._duplexState&b)&&e.emit("data",t)}}update(){const e=this.stream;e._duplexState|=32;do{for(this.drain();this.buffered<this.highWaterMark&&!(82975&e._duplexState);)e._duplexState|=65552,e._read(this.afterRead),this.drain();4224==(12431&e._duplexState)&&(e._duplexState|=v,e.emit("readable")),80&e._duplexState||this.updateNonPrimary()}while(!0===this.continueUpdate());e._duplexState&=_}updateNonPrimary(){const e=this.stream;(1167&e._duplexState)===h&&(e._duplexState=134216703&e._duplexState|16384,e.emit("end"),(e._duplexState&D)===B&&(e._duplexState|=4),null!==this.pipeTo&&this.pipeTo.end()),4!==(e._duplexState&U)?1===(e._duplexState&W)&&(e._duplexState=(e._duplexState|F)&u,e._open(ie.bind(this))):0===(e._duplexState&z)&&(e._duplexState|=F,e._destroy(X.bind(this)))}continueUpdate(){return 0!==(this.stream._duplexState&g)&&(this.stream._duplexState&=j,!0)}updateCallback(){(32879&this.stream._duplexState)===f?this.update():this.updateNextTick()}updateNextTick(){0===(this.stream._duplexState&g)&&(this.stream._duplexState|=g,32&this.stream._duplexState||s(this.afterUpdateNextTick))}}class J{constructor(e){this.data=null,this.afterTransform=oe.bind(e),this.afterFinal=null}}class Y{constructor(e,t,r){this.from=e,this.to=t,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,t){t&&(this.error=t),e!==this.to||(this.to=null,null===this.from)?e!==this.from||(this.from=null,null===this.to)?(null!==this.afterPipe&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null):0===(e._duplexState&y)&&this.to.destroy(this.error||new Error("Readable stream closed before ending")):0!==(this.from._duplexState&y)&&this.pipeToFinished||this.from.destroy(this.error||new Error("Writable stream closed prematurely"))}}function Z(){this.stream._duplexState|=512,this.updateCallback()}function Q(e){const t=this.stream;e&&t.destroy(e),0===(t._duplexState&U)&&(t._duplexState|=E,t.emit("finish")),(t._duplexState&D)===B&&(t._duplexState|=4),t._duplexState&=I,0===(t._duplexState&O)?this.update():this.updateNextTick()}function X(e){const t=this.stream;e||this.error===i||(e=this.error),e&&t.emit("error",e),t._duplexState|=8,t.emit("close");const r=t._readableState,n=t._writableState;if(null!==r&&null!==r.pipeline&&r.pipeline.done(t,e),null!==n){for(;null!==n.drains&&n.drains.length>0;)n.drains.shift().resolve(!1);null!==n.pipeline&&n.pipeline.done(t,e)}}function ee(e){const t=this.stream;e&&t.destroy(e),t._duplexState&=I,null!==this.drains&&function(e){for(let t=0;t<e.length;t++)0===--e[t].writes&&(e.shift().resolve(!0),t--)}(this.drains),(3276815&t._duplexState)===x&&(t._duplexState&=132120575,(t._duplexState&P)===P&&t.emit("drain")),this.updateCallback()}function te(e){e&&this.stream.destroy(e),this.stream._duplexState&=w,this.updateCallback()}function re(){32&this.stream._duplexState||(this.stream._duplexState&=j,this.update())}function ne(){0===(this.stream._duplexState&O)&&(this.stream._duplexState&=R,this.update())}function ie(e){const t=this.stream;e&&t.destroy(e),4&t._duplexState||(17423&t._duplexState||(t._duplexState|=f),71303183&t._duplexState||(t._duplexState|=T),t.emit("open")),t._duplexState&=$,null!==t._writableState&&t._writableState.updateCallback(),null!==t._readableState&&t._readableState.updateCallback()}function oe(e,t){t!==undefined&&null!==t&&this.push(t),this._writableState.afterWrite(e)}class se extends n{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",me.bind(this)))}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return null!==this._readableState||undefined}get writable(){return null!==this._writableState||undefined}get destroyed(){return!!(8&this._duplexState)}get destroying(){return 0!==(this._duplexState&U)}destroy(e){0===(this._duplexState&U)&&(e||(e=i),this._duplexState=133693375&this._duplexState|4,null!==this._readableState&&(this._readableState.highWaterMark=0,this._readableState.error=e),null!==this._writableState&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=2,this._predestroy(),this._duplexState&=c,null!==this._readableState&&this._readableState.updateNextTick(),null!==this._writableState&&this._writableState.updateNextTick())}on(e,t){return null!==this._readableState&&("data"===e&&(this._duplexState|=2304,this._readableState.updateNextTick()),"readable"===e&&(this._duplexState|=m,this._readableState.updateNextTick())),null!==this._writableState&&"drain"===e&&(this._duplexState|=P,this._writableState.updateNextTick()),super.on(e,t)}}class ae extends se{constructor(e){super(e),this._duplexState|=4194305,this._readableState=new K(this,e),e&&(e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick())}_read(e){e(null)}pipe(e,t){return this._readableState.updateNextTick(),this._readableState.pipe(e,t),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTick(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTick(),this._readableState.unshift(e)}resume(){return this._duplexState|=p,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=134217471,this}static _fromAsyncIterator(e,t){let r;const n=new ae({...t,read(t){e.next().then(i).then(t.bind(null,null)).catch(t)},predestroy(){r=e.return()},destroy(e){if(!r)return e(null);r.then(e.bind(null,null)).catch(e)}});return n;function i(e){e.done?n.push(null):n.push(e.value)}}static from(e,t){if(pe(r=e)&&r.readable)return e;var r;if(e[V])return this._fromAsyncIterator(e[V](),t);Array.isArray(e)||(e=e===undefined?[]:[e]);let n=0;return new ae({...t,read(t){this.push(n===e.length?null:e[n++]),t(null)}})}static isBackpressured(e){return!!(17422&e._duplexState)||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return 0===(e._duplexState&p)}[V](){const e=this;let t=null,r=null,n=null;return this.on("error",e=>{t=e}),this.on("readable",function(){null!==r&&o(e.read())}),this.on("close",function(){null!==r&&o(null)}),{[V](){return this},next:()=>new Promise(function(t,i){r=t,n=i;const s=e.read();null!==s?o(s):8&e._duplexState&&o(null)}),return:()=>s(null),throw:e=>s(e)};function o(o){null!==n&&(t?n(t):null===o&&0===(e._duplexState&y)?n(i):r({value:o,done:null===o}),n=r=null)}function s(t){return e.destroy(t),new Promise((r,n)=>{if(8&e._duplexState)return r({value:undefined,done:!0});e.once("close",function(){t?n(t):r({value:undefined,done:!0})})})}}}class le extends ae{constructor(e){super(e),this._duplexState=1,this._writableState=new G(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}}class ue extends le{constructor(e){super(e),this._transformState=new J(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,t){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(null!==this._transformState.data){const t=this._transformState.data;this._transformState.data=null,e(null),this._transform(t,this._transformState.afterTransform)}else e(null)}_transform(e,t){t(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(ce.bind(this))}}function ce(e,t){const r=this._transformState.afterFinal;if(e)return r(e);null!==t&&t!==undefined&&this.push(t),this.push(null),r(null)}function fe(e,...t){const r=Array.isArray(e)?[...e,...t]:[e,...t],n=r.length&&"function"==typeof r[r.length-1]?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let i=r[0],s=null,a=null;for(let e=1;e<r.length;e++)s=r[e],pe(i)?i.pipe(s,u):(l(i,!0,e>1,u),i.pipe(s)),i=s;if(n){let e=!1;const t=pe(s)||!(!s._writableState||!s._writableState.autoDestroy);s.on("error",e=>{null===a&&(a=e)}),s.on("finish",()=>{e=!0,t||n(a)}),t&&s.on("close",()=>n(a||(e?null:o)))}return s;function l(e,t,r,n){e.on("error",n),e.on("close",function(){if(t&&e._readableState&&!e._readableState.ended)return n(o);if(r&&e._writableState&&!e._writableState.ended)return n(o)})}function u(e){if(e&&!a){a=e;for(const t of r)t.destroy(e)}}}function de(e){return!!e._readableState||!!e._writableState}function pe(e){return"number"==typeof e._duplexState&&de(e)}function he(e){return function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.byteLength}(e)?e.byteLength:1024}function be(){}function me(){this.destroy(new Error("Stream aborted."))}t.exports={pipeline:fe,pipelinePromise:function(...e){return new Promise((t,r)=>fe(...e,e=>{if(e)return r(e);t()}))},isStream:de,isStreamx:pe,getStreamError:function(e){const t=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return t===i?null:t},Stream:se,Writable:class extends se{constructor(e){super(e),this._duplexState|=16385,this._writableState=new G(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}_writev(e,t){t(null)}_write(e,t){this._writableState.autoBatch(e,t)}_final(e){e(null)}static isBackpressured(e){return!!(73400334&e._duplexState)}static drained(e){if(e.destroyed)return Promise.resolve(!1);const t=e._writableState,r=t.queue.length+(e._duplexState&A?1:0);return 0===r?Promise.resolve(!0):(null===t.drains&&(t.drains=[]),new Promise(e=>{t.drains.push({writes:r,resolve:e})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Readable:ae,Duplex:le,Transform:ue,PassThrough:class extends ue{}}}}},{package:"@metamask/snaps-controllers>tar-stream>streamx",file:"node_modules/streamx/index.js"}],[5649,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw new TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}}}},{package:"base32-encode>to-data-view",file:"node_modules/to-data-view/index.js"}],[565,{"./apple-login-handler":562,"./google-login-handler":566,"@metamask/seedless-onboarding-controller":2478},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createLoginHandler=function(e,t,r){const s={web3AuthNetwork:t.web3AuthNetwork,authServerUrl:t.authServerUrl,webAuthenticator:r};switch(e){case n.AuthConnection.Google:return new o.GoogleLoginHandler({...s,oAuthClientId:t.googleClientId});case n.AuthConnection.Apple:return new i.AppleLoginHandler({...s,oAuthClientId:t.appleClientId});default:throw new Error(`Invalid social login provider: ${e}`)}};var n=e("@metamask/seedless-onboarding-controller"),i=e("./apple-login-handler"),o=e("./google-login-handler")}}},{package:"$root$",file:"app/scripts/services/oauth/create-login-handler.ts"}],[5653,{"./mixin-tracking":5655,"./util":5659},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.decorate=r.getDecoratorsForClass=r.directDecoratorSearch=r.deepDecoratorSearch=void 0;const n=e("./util"),i=e("./mixin-tracking"),o=(e,t)=>{var r,i;const o=(0,n.unique)([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),s={};for(let a of o)s[a]=(0,n.unique)([...null!==(r=null==e?void 0:e[a])&&void 0!==r?r:[],...null!==(i=null==t?void 0:t[a])&&void 0!==i?i:[]]);return s},s=(e,t)=>{var r,n,i,s;return{property:o(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:o(null!==(i=null==e?void 0:e.method)&&void 0!==i?i:{},null!==(s=null==t?void 0:t.method)&&void 0!==s?s:{})}},a=(e,t)=>{var r,i,o,a,l,u;return{class:(0,n.unique)([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(i=null==t?void 0:t.class)&&void 0!==i?i:[]]),static:s(null!==(o=null==e?void 0:e.static)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.static)&&void 0!==a?a:{}),instance:s(null!==(l=null==e?void 0:e.instance)&&void 0!==l?l:{},null!==(u=null==t?void 0:t.instance)&&void 0!==u?u:{})}},l=new Map;r.deepDecoratorSearch=(...e)=>{const t=((...e)=>{var t;const r=new Set,o=new Set([...e]);for(;o.size>0;)for(let e of o){const s=[...(0,n.protoChain)(e.prototype).map(e=>e.constructor),...null!==(t=(0,i.getMixinsForClass)(e))&&void 0!==t?t:[]].filter(e=>!r.has(e));for(let e of s)o.add(e);r.add(e),o.delete(e)}return[...r]})(...e).map(e=>l.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>a(e,t))};r.directDecoratorSearch=(...e)=>{const t=e.map(e=>(0,r.getDecoratorsForClass)(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>a(e,t))};r.getDecoratorsForClass=e=>{let t=l.get(e);return t||(t={},l.set(e,t)),t};r.decorate=e=>(...t)=>1===t.length?(e=>t=>{const n=(0,r.getDecoratorsForClass)(t);let i=n.class;return i||(i=[],n.class=i),i.push(e),e(t)})(e)(t[0]):(e=>(t,n,...i)=>{var o,s,a;const l="function"==typeof t?"static":"instance",u="function"==typeof t[n]?"method":"property",c="static"===l?t:t.constructor,f=(0,r.getDecoratorsForClass)(c),d=null!==(o=null==f?void 0:f[l])&&void 0!==o?o:{};f[l]=d;let p=null!==(s=null==d?void 0:d[u])&&void 0!==s?s:{};d[u]=p;let h=null!==(a=null==p?void 0:p[n])&&void 0!==a?a:[];return p[n]=h,h.push(e),e(t,n,...i)})(e)(...t)}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/decorator.js"}],[5654,{"./decorator":5653,"./mixin-tracking":5655,"./mixins":5656,"./settings":5658},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hasMixin=r.decorate=r.settings=r.mix=r.Mixin=void 0;var n=e("./mixins");Object.defineProperty(r,"Mixin",{enumerable:!0,get:function(){return n.Mixin}}),Object.defineProperty(r,"mix",{enumerable:!0,get:function(){return n.mix}});var i=e("./settings");Object.defineProperty(r,"settings",{enumerable:!0,get:function(){return i.settings}});var o=e("./decorator");Object.defineProperty(r,"decorate",{enumerable:!0,get:function(){return o.decorate}});var s=e("./mixin-tracking");Object.defineProperty(r,"hasMixin",{enumerable:!0,get:function(){return s.hasMixin}})}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/index.js"}],[5655,{"./util":5659},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hasMixin=r.registerMixins=r.getMixinsForClass=void 0;const n=e("./util"),i=new WeakMap;r.getMixinsForClass=e=>i.get(e);r.registerMixins=(e,t)=>i.set(e,t);r.hasMixin=(e,t)=>{if(e instanceof t)return!0;const r=e.constructor,o=new Set;let s=new Set;for(s.add(r);s.size>0;){if(s.has(t))return!0;s.forEach(e=>o.add(e));const e=new Set;s.forEach(t=>{var r;const a=null!==(r=i.get(t))&&void 0!==r?r:(0,n.protoChain)(t.prototype).map(e=>e.constructor).filter(e=>null!==e);a&&a.forEach(t=>{o.has(t)||s.has(t)||e.add(t)})}),s=e}return!1}}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/mixin-tracking.js"}],[5656,{"./decorator":5653,"./mixin-tracking":5655,"./proxy":5657,"./settings":5658,"./util":5659},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mix=r.Mixin=void 0;const n=e("./proxy"),i=e("./settings"),o=e("./util"),s=e("./decorator"),a=e("./mixin-tracking");function l(...e){var t,r,l;const c=e.map(e=>e.prototype),f=i.settings.initFunction;if(null!==f){const e=c.map(e=>e[f]).filter(e=>"function"==typeof e),t=function(...t){for(let r of e)r.apply(this,t)},r={[f]:t};c.push(r)}function d(...t){for(const r of e)(0,o.copyProps)(this,new r(...t));null!==f&&"function"==typeof this[f]&&this[f].apply(this,t)}d.prototype="copy"===i.settings.prototypeStrategy?(0,o.hardMixProtos)(c,d):(0,n.softMixProtos)(c,d),Object.setPrototypeOf(d,"copy"===i.settings.staticsStrategy?(0,o.hardMixProtos)(e,null,["prototype"]):(0,n.proxyMix)(e,Function.prototype));let p=d;if("none"!==i.settings.decoratorInheritance){const n="deep"===i.settings.decoratorInheritance?(0,s.deepDecoratorSearch)(...e):(0,s.directDecoratorSearch)(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(p);t&&(p=t)}u(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},p),u(null!==(l=null==n?void 0:n.instance)&&void 0!==l?l:{},p.prototype)}return(0,a.registerMixins)(p,e),p}r.Mixin=l;const u=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};r.mix=(...e)=>t=>{const r=l(...e.concat([t]));return Object.defineProperty(r,"name",{value:t.name,writable:!1}),r}}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/mixins.js"}],[5657,{"./util":5659},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.softMixProtos=r.proxyMix=r.getIngredientWithProp=void 0;const n=e("./util");r.getIngredientWithProp=(e,t)=>{const r=t.map(e=>(0,n.protoChain)(e));let i=0,o=!0;for(;o;){o=!1;for(let n=t.length-1;n>=0;n--){const t=r[n][i];if(t!==undefined&&null!==t&&(o=!0,Object.getOwnPropertyDescriptor(t,e)!=undefined))return r[n][0]}i++}return undefined};r.proxyMix=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor((0,r.getIngredientWithProp)(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,i)=>(0,r.getIngredientWithProp)(i,e)!==undefined||t[i]!==undefined,get:(n,i)=>((0,r.getIngredientWithProp)(i,e)||t)[i],set(t,n,i){const o=(0,r.getIngredientWithProp)(n,e);if(o===undefined)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return o[n]=i,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))});r.softMixProtos=(e,t)=>(0,r.proxyMix)([...e,{constructor:t}])}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/proxy.js"}],[5658,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.settings=void 0,r.settings={initFunction:null,staticsStrategy:"copy",prototypeStrategy:"copy",decoratorInheritance:"deep"}}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/settings.js"}],[5659,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.flatten=r.unique=r.hardMixProtos=r.nearestCommonProto=r.protoChain=r.copyProps=void 0;r.copyProps=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)};r.protoChain=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:(0,r.protoChain)(n,[...t,n])};r.nearestCommonProto=(...e)=>{if(0===e.length)return undefined;let t=undefined;const n=e.map(e=>(0,r.protoChain)(e));for(;n.every(e=>e.length>0);){const e=n.map(e=>e.pop()),r=e[0];if(!e.every(e=>e===r))break;t=r}return t};r.hardMixProtos=(e,t,n=[])=>{var i;const o=null!==(i=(0,r.nearestCommonProto)(...e))&&void 0!==i?i:Object.prototype,s=Object.create(o),a=(0,r.protoChain)(o);for(let t of e){let e=(0,r.protoChain)(t);for(let t=e.length-1;t>=0;t--){let i=e[t];-1===a.indexOf(i)&&((0,r.copyProps)(s,i,["constructor",...n]),a.push(i))}}return s.constructor=t,s};r.unique=e=>e.filter((t,r)=>e.indexOf(t)==r);r.flatten=e=>0===e.length?[]:1===e.length?e[0]:e.reduce((e,t)=>[...e,...t])}}},{package:"ts-mixer",file:"node_modules/ts-mixer/dist/cjs/util.js"}],[566,{"./base-login-handler":563,"./utils":569,"@metamask/seedless-onboarding-controller":2478},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleLoginHandler=void 0;var n=e("@metamask/seedless-onboarding-controller"),i=e("./base-login-handler"),o=e("./utils");function s(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var u=new WeakMap;class c extends i.BaseLoginHandler{constructor(...e){super(...e),a(this,"OAUTH_SERVER_URL","https://accounts.google.com/o/oauth2/v2/auth"),s(this,u,["openid","profile","email"])}get authConnection(){return n.AuthConnection.Google}get scope(){return l(u,this)}async getAuthUrl(){const e=new URL(this.OAUTH_SERVER_URL),t=this.generateNonce(),{challenge:r}=await this.generateCodeVerifierChallenge(),n=this.options.webAuthenticator.getRedirectURL();return e.searchParams.set("client_id",this.options.oAuthClientId),e.searchParams.set("response_type","code"),e.searchParams.set("scope",l(u,this).join(" ")),e.searchParams.set("code_challenge_method",this.CODE_CHALLENGE_METHOD),e.searchParams.set("code_challenge",r),e.searchParams.set("state",JSON.stringify({nonce:t})),e.searchParams.set("redirect_uri",n),e.searchParams.set("prompt",this.prompt),e.toString()}async getAuthIdToken(e){const t=this.generateAuthTokenRequestData(e);return await this.requestAuthToken(t)}generateAuthTokenRequestData(e){const{web3AuthNetwork:t}=this.options,r=this.options.webAuthenticator.getRedirectURL(),n={code:e,client_id:this.options.oAuthClientId,redirect_uri:r,login_provider:this.authConnection,network:t,code_verifier:this.codeVerifier,access_type:"offline"};return JSON.stringify(n)}async getUserInfo(e){const t=(0,o.decodeIdToken)(e),r=JSON.parse(t);return{email:r.email,sub:r.sub}}}r.GoogleLoginHandler=c}}},{package:"$root$",file:"app/scripts/services/oauth/google-login-handler.ts"}],[5663,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i,o,s=void 0,a=(n=Object.prototype.toString,i=Object.prototype.hasOwnProperty,{Class:function(e){return n.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return i.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return 0|e},ToUint32:function(e){return e>>>0}}),l=Math.LN2,u=Math.abs,c=Math.floor,f=Math.log,d=Math.min,p=Math.pow,h=Math.round;function b(e){if(m&&o){var t,r=m(e);for(t=0;t<r.length;t+=1)o(e,r[t],{value:e[r[t]],writable:!1,enumerable:!1,configurable:!1})}}o=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,r){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return a.HasProperty(r,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,r.get),a.HasProperty(r,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,r.set),a.HasProperty(r,"value")&&(e[t]=r.value),e};var m=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)a.HasOwnProperty(e,t)&&r.push(t);return r};function v(e,t){var r=32-t;return e<<r>>r}function y(e,t){var r=32-t;return e<<r>>>r}function g(e){return[255&e]}function w(e){return v(e[0],8)}function k(e){return[255&e]}function j(e){return y(e[0],8)}function _(e){return[(e=h(Number(e)))<0?0:e>255?255:255&e]}function O(e){return[e>>8&255,255&e]}function T(e){return v(e[0]<<8|e[1],16)}function S(e){return[e>>8&255,255&e]}function x(e){return y(e[0]<<8|e[1],16)}function E(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function P(e){return v(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function C(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function A(e){return y(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function M(e,t,r){var n,i,o,s,a,h,b,m=(1<<t-1)-1;function v(e){var t=c(e),r=e-t;return r<.5?t:r>.5||t%2?t+1:t}for(e!=e?(i=(1<<t)-1,o=p(2,r-1),n=0):e===Infinity||e===-Infinity?(i=(1<<t)-1,o=0,n=e<0?1:0):0===e?(i=0,o=0,n=1/e===-Infinity?1:0):(n=e<0,(e=u(e))>=p(2,1-m)?(i=d(c(f(e)/l),1023),(o=v(e/p(2,i)*p(2,r)))/p(2,r)>=2&&(i+=1,o=1),i>m?(i=(1<<t)-1,o=0):(i+=m,o-=p(2,r))):(i=0,o=v(e/p(2,1-m-r)))),a=[],s=r;s;s-=1)a.push(o%2?1:0),o=c(o/2);for(s=t;s;s-=1)a.push(i%2?1:0),i=c(i/2);for(a.push(n?1:0),a.reverse(),h=a.join(""),b=[];h.length;)b.push(parseInt(h.substring(0,8),2)),h=h.substring(8);return b}function I(e,t,r){var n,i,o,s,a,l,u,c,f=[];for(n=e.length;n;n-=1)for(o=e[n-1],i=8;i;i-=1)f.push(o%2?1:0),o>>=1;return f.reverse(),s=f.join(""),a=(1<<t-1)-1,l=parseInt(s.substring(0,1),2)?-1:1,u=parseInt(s.substring(1,1+t),2),c=parseInt(s.substring(1+t),2),u===(1<<t)-1?0!==c?NaN:l*Infinity:u>0?l*p(2,u-a)*(1+c/p(2,r)):0!==c?l*p(2,-(a-1))*(c/p(2,r)):l<0?-0:0}function N(e){return I(e,11,52)}function R(e){return M(e,11,52)}function F(e){return I(e,8,23)}function $(e){return M(e,8,23)}!function(){var e=function(e){if((e=a.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;b(this)};r.ArrayBuffer=r.ArrayBuffer||e;var t=function(){};function n(r,n,i){var l;return l=function(t,r,n){var i,s,u,c;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===l)for(i=arguments[0],this.length=i.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)this._setter(u,i._getter(u));else if("object"!=typeof arguments[0]||(arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0]))){if("object"!=typeof arguments[0]||!(arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=t,this.byteOffset=a.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=a.ToUint32(n),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(s=arguments[0],this.length=a.ToUint32(s.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)c=s[u],this._setter(u,Number(c));else{if(this.length=a.ToInt32(arguments[0]),n<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0}this.constructor=l,b(this),function(e){if(o){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var t;for(t=0;t<e.length;t+=1)r(t)}function r(t){o(e,t,{get:function(){return e._getter(t)},set:function(r){e._setter(t,r)},enumerable:!0,configurable:!1})}}(this)},l.prototype=new t,l.prototype.BYTES_PER_ELEMENT=r,l.prototype._pack=n,l.prototype._unpack=i,l.BYTES_PER_ELEMENT=r,l.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return s;var t,r,n=[];for(t=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,r+=1)n.push(this.buffer._bytes[r]);return this._unpack(n)},l.prototype.get=l.prototype._getter,l.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return s;var r,n,i=this._pack(t);for(r=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,n+=1)this.buffer._bytes[n]=i[r]},l.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var r,n,i,o,s,l,u,c,f,d;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(r=arguments[0],(i=a.ToUint32(arguments[1]))+r.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(c=this.byteOffset+i*this.BYTES_PER_ELEMENT,f=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(d=[],s=0,l=r.byteOffset;s<f;s+=1,l+=1)d[s]=r.buffer._bytes[l];for(s=0,u=c;s<f;s+=1,u+=1)this.buffer._bytes[u]=d[s]}else for(s=0,l=r.byteOffset,u=c;s<f;s+=1,l+=1,u+=1)this.buffer._bytes[u]=r.buffer._bytes[l]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(n=arguments[0],o=a.ToUint32(n.length),(i=a.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(s=0;s<o;s+=1)l=n[s],this._setter(i+s,Number(l))}},l.prototype.subarray=function(e,t){function r(e,t,r){return e<t?t:e>r?r:e}e=a.ToInt32(e),t=a.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=r(e,0,this.length);var n=(t=r(t,0,this.length))-e;return n<0&&(n=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,n)},l}var i=n(1,g,w),l=n(1,k,j),u=n(1,_,j),c=n(2,O,T),f=n(2,S,x),d=n(4,E,P),p=n(4,C,A),h=n(4,$,F),m=n(8,R,N);r.Int8Array=r.Int8Array||i,r.Uint8Array=r.Uint8Array||l,r.Uint8ClampedArray=r.Uint8ClampedArray||u,r.Int16Array=r.Int16Array||c,r.Uint16Array=r.Uint16Array||f,r.Int32Array=r.Int32Array||d,r.Uint32Array=r.Uint32Array||p,r.Float32Array=r.Float32Array||h,r.Float64Array=r.Float64Array||m}(),function(){function e(e,t){return a.IsCallable(e.get)?e.get(t):e[t]}var t,n=(t=new r.Uint16Array([4660]),18===e(new r.Uint8Array(t.buffer),0)),i=function(e,t,n){if(0===arguments.length)e=new r.ArrayBuffer(0);else if(!(e instanceof r.ArrayBuffer||"ArrayBuffer"===a.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new r.ArrayBuffer(0),this.byteOffset=a.ToUint32(t),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:a.ToUint32(n),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");b(this)};function o(t){return function(i,o){if((i=a.ToUint32(i))+t.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var s,l=new r.Uint8Array(this.buffer,i,t.BYTES_PER_ELEMENT),u=[];for(s=0;s<t.BYTES_PER_ELEMENT;s+=1)u.push(e(l,s));return Boolean(o)===Boolean(n)&&u.reverse(),e(new t(new r.Uint8Array(u).buffer),0)}}function s(t){return function(i,o,s){if((i=a.ToUint32(i))+t.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var l,u=new t([o]),c=new r.Uint8Array(u.buffer),f=[];for(l=0;l<t.BYTES_PER_ELEMENT;l+=1)f.push(e(c,l));Boolean(s)===Boolean(n)&&f.reverse(),new r.Uint8Array(this.buffer,i,t.BYTES_PER_ELEMENT).set(f)}}i.prototype.getUint8=o(r.Uint8Array),i.prototype.getInt8=o(r.Int8Array),i.prototype.getUint16=o(r.Uint16Array),i.prototype.getInt16=o(r.Int16Array),i.prototype.getUint32=o(r.Uint32Array),i.prototype.getInt32=o(r.Int32Array),i.prototype.getFloat32=o(r.Float32Array),i.prototype.getFloat64=o(r.Float64Array),i.prototype.setUint8=s(r.Uint8Array),i.prototype.setInt8=s(r.Int8Array),i.prototype.setUint16=s(r.Uint16Array),i.prototype.setInt16=s(r.Int16Array),i.prototype.setUint32=s(r.Uint32Array),i.prototype.setInt32=s(r.Int32Array),i.prototype.setFloat32=s(r.Float32Array),i.prototype.setFloat64=s(r.Float64Array),r.DataView=r.DataView||i}()}}},{package:"browserify>concat-stream>typedarray",file:"node_modules/typedarray/index.js"}],[5664,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){((e,n)=>{function i(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t}var o="user-agent",s="",a="function",l="undefined",u="object",c="string",f="browser",d="cpu",p="device",h="engine",b="os",m="result",v="name",y="type",g="vendor",w="version",k="architecture",j="major",_="model",O="console",T="mobile",S="tablet",x="smarttv",E="wearable",P="xr",C="embedded",A="inapp",M="brands",I="formFactors",N="fullVersionList",R="platform",F="platformVersion",$="bitness",B="sec-ch-ua",U=B+"-full-version-list",L=B+"-arch",D=B+"-"+$,z=B+"-form-factors",W=B+"-"+T,q=B+"-"+_,H=B+"-"+R,V=H+"-version",G=[M,N,T,_,R,F,k,I,$],K="Amazon",J="Apple",Y="ASUS",Z="BlackBerry",Q="Google",X="Huawei",ee="Microsoft",te="Motorola",re="Nvidia",ne="OnePlus",ie="OPPO",oe="Samsung",se="Sony",ae="Xiaomi",le="Zebra",ue="Chromium",ce="Chromecast",fe="Firefox",de="Opera",pe="Facebook",he="Mobile ",be=" Browser",me="Windows",ve=typeof e!==l,ye=ve&&e.navigator?e.navigator:n,ge=ye&&ye.userAgentData?ye.userAgentData:n,we=function(e,t){if(typeof e===u&&0<e.length){for(var r in e)if(Oe(e[r])==Oe(t))return!0;return!1}return!!je(e)&&-1!==Oe(t).indexOf(Oe(e))},ke=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&ke(e[r])},je=function(e){return typeof e===c},_e=function(e){if(!e)return n;for(var t,r=[],i=xe(/\\?\"/g,e).split(","),o=0;o<i.length;o++)-1<i[o].indexOf(";")?(t=Pe(i[o]).split(";v="),r[o]={brand:t[0],version:t[1]}):r[o]=Pe(i[o]);return r},Oe=function(e){return je(e)?e.toLowerCase():e},Te=function(e){return je(e)?xe(/[^\d\.]/g,e).split(".")[0]:n},Se=function(e){for(var t in e)typeof(t=e[t])==u&&2==t.length?this[t[0]]=t[1]:this[t]=n;return this},xe=function(e,t){return je(t)?t.replace(e,s):t},Ee=function(e){return xe(/\\?\"/g,e)},Pe=function(e,t){if(je(e))return e=xe(/^\s\s*/,e),typeof t===l?e:e.substring(0,500)},Ce=function(e,t){if(e&&t)for(var r,i,o,s,l,c=0;c<t.length&&!s;){for(var f=t[c],d=t[c+1],p=r=0;p<f.length&&!s&&f[p];)if(s=f[p++].exec(e))for(i=0;i<d.length;i++)l=s[++r],typeof(o=d[i])===u&&0<o.length?2===o.length?typeof o[1]==a?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:3===o.length?typeof o[1]!==a||o[1].exec&&o[1].test?this[o[0]]=l?l.replace(o[1],o[2]):n:this[o[0]]=l?o[1].call(this,l,o[2]):n:4===o.length&&(this[o[0]]=l?o[3].call(this,l.replace(o[1],o[2])):n):this[o]=l||n;c+=2}},Ae=function(e,t){for(var r in t)if(typeof t[r]===u&&0<t[r].length){for(var i=0;i<t[r].length;i++)if(we(t[r][i],e))return"?"===r?n:r}else if(we(t[r],e))return"?"===r?n:r;return t.hasOwnProperty("*")?t["*"]:e},Me={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ie={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":n},Ne={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[v,he+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,w],[/opios[\/ ]+([\w\.]+)/i],[w,[v,de+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[v,de+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[v,de]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[v,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[w,[v,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[v,w],[/quark(?:pc)?\/([-\w\.]+)/i],[w,[v,"Quark"]],[/\bddg\/([\w\.]+)/i],[w,[v,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[v,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[v,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[v,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[v,"Smart Lenovo"+be]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure"+be],w],[/\bfocus\/([\w\.]+)/i],[w,[v,fe+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[v,de+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[v,de+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[v,"MIUI"+be]],[/fxios\/([\w\.-]+)/i],[w,[v,he+fe]],[/\bqihoobrowser\/?([\w\.]*)/i],[w,[v,"360"]],[/\b(qq)\/([\w\.]+)/i],[[v,/(.+)/,"$1Browser"],w],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1"+be],w],[/samsungbrowser\/([\w\.]+)/i],[w,[v,oe+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[w,[v,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[v,"Sogou Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[v,w],[/(lbbrowser|rekonq)/i],[v],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[w,v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,pe],w,[y,A]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[v,w,[y,A]],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[v,"GSA"],[y,A]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[v,"TikTok"],[y,A]],[/\[(linkedin)app\]/i],[v,[y,A]],[/(chromium)[\/ ]([-\w\.]+)/i],[v,w],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[v,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,"Chrome WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[v,"Android"+be]],[/chrome\/([\w\.]+) mobile/i],[w,[v,he+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,w],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[w,[v,he+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[v,he+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[w,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[w,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[v,w],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[v,he+fe],w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],w],[/(wolvic|librewolf)\/([\w\.]+)/i],[v,w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[v,fe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[v,[w,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[v,[w,/[^\d\.]+./,s]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[k,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[k,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[k,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[k,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[k,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[k,/ower/,s,Oe]],[/ sun4\w[;\)]/i],[[k,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[k,Oe]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[_,[g,oe],[y,S]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[_,[g,oe],[y,T]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[_,[g,J],[y,T]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[_,[g,J],[y,S]],[/(macintosh);/i],[_,[g,J]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[_,[g,"Sharp"],[y,T]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[_,[g,"Honor"],[y,S]],[/honor([-\w ]+)[;\)]/i],[_,[g,"Honor"],[y,T]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[_,[g,X],[y,S]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[_,[g,X],[y,T]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[_,/_/g," "],[g,ae],[y,S]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[_,/_/g," "],[g,ae],[y,T]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[_,[g,ie],[y,T]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[_,[g,Ae,{OnePlus:["304","403","203"],"*":ie}],[y,S]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[_,[g,"BLU"],[y,T]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[_,[g,"Vivo"],[y,T]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[_,[g,"Realme"],[y,T]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[_,[g,te],[y,T]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[_,[g,te],[y,S]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[_,[g,"LG"],[y,S]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[_,[g,"LG"],[y,T]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[_,[g,"Lenovo"],[y,S]],[/(nokia) (t[12][01])/i],[g,_,[y,S]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[_,/_/g," "],[y,T],[g,"Nokia"]],[/(pixel (c|tablet))\b/i],[_,[g,Q],[y,S]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[_,[g,Q],[y,T]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[_,[g,se],[y,T]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[_,"Xperia Tablet"],[g,se],[y,S]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[_,[g,ne],[y,T]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[_,[g,K],[y,S]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[_,/(.+)/g,"Fire Phone $1"],[g,K],[y,T]],[/(playbook);[-\w\),; ]+(rim)/i],[_,g,[y,S]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[_,[g,Z],[y,T]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[_,[g,Y],[y,S]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[_,[g,Y],[y,T]],[/(nexus 9)/i],[_,[g,"HTC"],[y,S]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[_,/_/g," "],[y,T]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[_,[g,"TCL"],[y,S]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[_,[g,"TCL"],[y,T]],[/(itel) ((\w+))/i],[[g,Oe],_,[y,Ae,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[_,[g,"Acer"],[y,S]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[_,[g,"Meizu"],[y,T]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[_,[g,"Ulefone"],[y,T]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[_,[g,"Energizer"],[y,T]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[_,[g,"Cat"],[y,T]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[_,[g,"Smartfren"],[y,T]],[/droid.+; (a(?:015|06[35]|142p?))/i],[_,[g,"Nothing"],[y,T]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[_,[g,"Archos"],[y,S]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[_,[g,"Archos"],[y,T]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[g,_,[y,S]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[g,_,[y,T]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[g,_,[y,S]],[/(surface duo)/i],[_,[g,ee],[y,S]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[_,[g,"Fairphone"],[y,T]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[_,[g,re],[y,S]],[/(sprint) (\w+)/i],[g,_,[y,T]],[/(kin\.[onetw]{3})/i],[[_,/\./g," "],[g,ee],[y,T]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[_,[g,le],[y,S]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[_,[g,le],[y,T]],[/smart-tv.+(samsung)/i],[g,[y,x]],[/hbbtv.+maple;(\d+)/i],[[_,/^/,"SmartTV"],[g,oe],[y,x]],[/tcast.+(lg)e?. ([-\w]+)/i],[g,_,[y,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,"LG"],[y,x]],[/(apple) ?tv/i],[g,[_,J+" TV"],[y,x]],[/crkey.*devicetype\/chromecast/i],[[_,ce+" Third Generation"],[g,Q],[y,x]],[/crkey.*devicetype\/([^/]*)/i],[[_,/^/,"Chromecast "],[g,Q],[y,x]],[/fuchsia.*crkey/i],[[_,ce+" Nest Hub"],[g,Q],[y,x]],[/crkey/i],[[_,ce],[g,Q],[y,x]],[/(portaltv)/i],[_,[g,pe],[y,x]],[/droid.+aft(\w+)( bui|\))/i],[_,[g,K],[y,x]],[/(shield \w+ tv)/i],[_,[g,re],[y,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[_,[g,"Sharp"],[y,x]],[/(bravia[\w ]+)( bui|\))/i],[_,[g,se],[y,x]],[/(mi(tv|box)-?\w+) bui/i],[_,[g,ae],[y,x]],[/Hbbtv.*(technisat) (.*);/i],[g,_,[y,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,Pe],[_,Pe],[y,x]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[_,[y,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[y,x]],[/(ouya)/i,/(nintendo) (\w+)/i],[g,_,[y,O]],[/droid.+; (shield)( bui|\))/i],[_,[g,re],[y,O]],[/(playstation \w+)/i],[_,[g,se],[y,O]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[_,[g,ee],[y,O]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[_,[g,oe],[y,E]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[g,_,[y,E]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[_,[g,ie],[y,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[_,[g,J],[y,E]],[/(opwwe\d{3})/i],[_,[g,ne],[y,E]],[/(moto 360)/i],[_,[g,te],[y,E]],[/(smartwatch 3)/i],[_,[g,se],[y,E]],[/(g watch r)/i],[_,[g,"LG"],[y,E]],[/droid.+; (wt63?0{2,3})\)/i],[_,[g,le],[y,E]],[/droid.+; (glass) \d/i],[_,[g,Q],[y,P]],[/(pico) (4|neo3(?: link|pro)?)/i],[g,_,[y,P]],[/(quest( \d| pro)?s?).+vr/i],[_,[g,pe],[y,P]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[y,C]],[/(aeobc)\b/i],[_,[g,K],[y,C]],[/(homepod).+mac os/i],[_,[g,J],[y,C]],[/windows iot/i],[[y,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[_,[y,Ae,{mobile:"Mobile",xr:"VR","*":S}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[y,S]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[y,T]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[_,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[v,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[v,w],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[v,w],[/ladybird\//i],[[v,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,w],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[v,[w,Ae,Me]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,Ae,Me],[v,me]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,"macOS"],[w,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[w,[v,ce+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[w,[v,ce+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[w,[v,ce+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[w,[v,ce+" Linux"]],[/crkey\/([\d\.]+)/i],[w,[v,ce]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,v],[/(ubuntu) ([\w\.]+) like android/i],[[v,/(.+)/,"$1 Touch"],w],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[v,w],[/\(bb(10);/i],[w,[v,Z]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[w,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[v,fe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[v,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[v,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[v,"Chrome OS"],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[v,w],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[v,w]]},Re=(Se.call((de={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[f,[v,w,j,y]],[d,[k]],[p,[y,_,g]],[h,[v,w]],[b,[v,w]]]),Se.call(de.isIgnore,[[f,[w,j]],[h,[w]],[b,[w]]]),Se.call(de.isIgnoreRgx,[[f,/ ?browser$/i],[b,/ ?os$/i]]),Se.call(de.toString,[[f,[v,w]],[d,[k]],[p,[g,_]],[h,[v,w]],[b,[v,w]]]),de),Fe=function(e,t){var r=Re.init[t],n=Re.isIgnore[t]||0,i=Re.isIgnoreRgx[t]||0,o=Re.toString[t]||0;function a(){Se.call(this,r)}return a.prototype.getItem=function(){return e},a.prototype.withClientHints=function(){return ge?ge.getHighEntropyValues(G).then(function(t){return e.setCH(new $e(t,!1)).parseCH().get()}):e.parseCH().get()},a.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=m&&(a.prototype.is=function(e){var t,r=!1;for(t in this)if(this.hasOwnProperty(t)&&!we(n,t)&&Oe(i?xe(i,this[t]):this[t])==Oe(i?xe(i,e):e)){if(r=!0,e!=l)break}else if(e==l&&r){r=!r;break}return r},a.prototype.toString=function(){var e,t=s;for(e in o)typeof this[o[e]]!==l&&(t+=(t?" ":s)+this[o[e]]);return t||l}),ge||(a.prototype.then=function(e){function t(){for(var e in r)r.hasOwnProperty(e)&&(this[e]=r[e])}var r=this,n=(t.prototype={is:a.prototype.is,toString:a.prototype.toString},new t);return e(n),n}),new a};function $e(e,t){if(e=e||{},Se.call(this,G),t)Se.call(this,[[M,_e(e[B])],[N,_e(e[U])],[T,/\?1/.test(e[W])],[_,Ee(e[q])],[R,Ee(e[H])],[F,Ee(e[V])],[k,Ee(e[L])],[I,_e(e[z])],[$,Ee(e[D])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==l&&(this[r]=e[r])}function Be(e,t,r,i){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:n:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(ye&&ye.userAgent==this.ua)switch(this.itemType){case f:ye.brave&&typeof ye.brave.isBrave==a&&this.set(v,"Brave");break;case p:!this.get(y)&&ge&&ge[T]&&this.set(y,T),"Macintosh"==this.get(_)&&ye&&typeof ye.standalone!==l&&ye.maxTouchPoints&&2<ye.maxTouchPoints&&this.set(_,"iPad").set(y,S);break;case b:!this.get(v)&&ge&&ge[R]&&this.set(v,ge[R]);break;case m:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(f,t(f)).set(d,t(d)).set(p,t(p)).set(h,t(h)).set(b,t(b))}return this},this.parseUA=function(){return this.itemType!=m&&Ce.call(this.data,this.ua,this.rgxMap),this.itemType==f&&this.set(j,Te(this.get(w))),this},this.parseCH=function(){var e,t=this.uaCH,r=this.rgxMap;switch(this.itemType){case f:case h:var i,o=t[N]||t[M];if(o)for(var s in o){var a=o[s].brand||o[s];s=o[s].version;this.itemType!=f||/not.a.brand/i.test(a)||i&&(!/chrom/i.test(i)||a==ue)||(a=Ae(a,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(v,a).set(w,s).set(j,Te(s)),i=a),this.itemType==h&&a==ue&&this.set(w,s)}break;case d:(O=t[k])&&("64"==t[$]&&(O+="64"),Ce.call(this.data,O+";",r));break;case p:if(t[T]&&this.set(y,T),t[_]&&(this.set(_,t[_]),this.get(y)&&this.get(g)||(Ce.call(O={},"droid 9; "+t[_]+")",r),!this.get(y)&&O.type&&this.set(y,O.type),!this.get(g)&&O.vendor&&this.set(g,O.vendor))),t[I]){if("string"!=typeof t[I])for(var l=0;!e&&l<t[I].length;)e=Ae(t[I][l++],Ie);else e=Ae(t[I],Ie);this.set(y,e)}break;case b:var u;(O=t[R])&&(u=t[F],O==me&&(u=13<=parseInt(Te(u),10)?"11":"10"),this.set(v,O).set(w,u)),this.get(v)==me&&"Xbox"==t[_]&&this.set(v,"Xbox").set(w,n);break;case m:var c=this.data,O=function(e){return c[e].getItem().setCH(t).parseCH().get()};this.set(f,O(f)).set(d,O(d)).set(p,O(p)).set(h,O(h)).set(b,O(b))}return this},Se.call(this,[["itemType",e],["ua",t],["uaCH",i],["rgxMap",r],["data",Fe(this,e)]]),this}function Ue(e,t,r){var i,l,v,y,g;return typeof e===u?(t=ke(e,!0)?(typeof t===u&&(r=t),e):(r=e,n),e=n):typeof e!==c||ke(t,!0)||(r=t,t=n),r&&typeof r.append===a&&(i={},r.forEach(function(e,t){i[t]=e}),r=i),this instanceof Ue?(l=typeof e===c?e:r&&r[o]?r[o]:ye&&ye.userAgent?ye.userAgent:s,v=new $e(r,!0),y=t?((e,t)=>{var r,n={},i=t;if(!ke(t))for(var o in i={},t)for(var s in t[o])i[s]=t[o][s].concat(i[s]||[]);for(r in e)n[r]=i[r]&&i[r].length%2==0?i[r].concat(e[r]):e[r];return n})(Ne,t):Ne,Se.call(this,[["getBrowser",(g=function(e){return e==m?function(){return new Be(e,l,y,v).set("ua",l).set(f,this.getBrowser()).set(d,this.getCPU()).set(p,this.getDevice()).set(h,this.getEngine()).set(b,this.getOS()).get()}:function(){return new Be(e,l,y[e],v).parseUA().get()}})(f)],["getCPU",g(d)],["getDevice",g(p)],["getEngine",g(h)],["getOS",g(b)],["getResult",g(m)],["getUA",function(){return l}],["setUA",function(e){return je(e)&&(l=e.length>500?Pe(e,500):e),this}]]).setUA(l),this):new Ue(e,t,r).getResult()}Ue.VERSION="2.0.3",Ue.BROWSER=i([v,w,j,y]),Ue.CPU=i([k]),Ue.DEVICE=i([_,g,y,O,T,x,S,E,C]),Ue.ENGINE=Ue.OS=i([v,w]),typeof r!==l?(r=typeof t!==l&&t.exports?t.exports=Ue:r).UAParser=Ue:typeof define===a&&define.amd?define(function(){return Ue}):ve&&(e.UAParser=Ue);var Le,De=ve&&(e.jQuery||e.Zepto);De&&!De.ua&&(Le=new Ue,De.ua=Le.getResult(),De.ua.get=function(){return Le.getUA()},De.ua.set=function(e){Le.setUA(e);var t,r=Le.getResult();for(t in r)De.ua[t]=r[t]})})("object"==typeof window?window:this)}}},{package:"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js",file:"node_modules/ua-parser-js/dist/ua-parser.pack.js"}]],[],{});