!function e(t,n,s){function o(i,a){if(!n[i]){if(!t[i]){var c="function"==typeof require&&require;if(!a&&c)return c(i,!0);if(r)return r(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[i]={exports:{}};t[i][0].call(u.exports,function(e){return o(t[i][1][e]||e)},u,u.exports,e,t,n,s)}return n[i].exports}for(var r="function"==typeof require&&require,i=0;i<s.length;i++)o(s[i]);return o}({1:[function(e,t,n){"use strict";var s=e("../../shared/constants/ui-initialization"),o=e("./lib/extension-lazy-listener/extension-lazy-listener");const{chrome:r}=globalThis,i=new o.ExtensionLazyListener(r,{runtime:["onInstalled","onConnect"]});globalThis.stateHooks=globalThis.stateHooks||{},globalThis.stateHooks.lazyListener=i;let a=!1;const c=[];function l(...e){try{const t=(new Date).getTime();importScripts(...e);const n=(new Date).getTime();return c.push({name:e[0],value:n-t,children:[],startTime:t,endTime:n}),!0}catch(e){console.error(e)}return!1}function u(){if(a)return;a=!0;const e=[],t=t=>{e.push(t)},n=Date.now();t("../scripts/sentry-install.js");!self.document||t("../scripts/snow.js"),t("../scripts/use-snow.js");t("../scripts/runtime-lavamoat.js"),t("../scripts/lockdown-more.js"),t("../scripts/policy-load.js");"../common-0.js,../common-1.js,../common-2.js,../common-3.js,../common-4.js,../common-5.js,../common-6.js,../common-7.js,../common-8.js,../common-9.js,../common-10.js,../common-11.js,../common-12.js,../common-13.js,../common-14.js,../common-15.js,../common-16.js,../common-17.js,../common-18.js,../background-0.js,../background-1.js,../background-2.js,../background-3.js,../background-4.js,../background-5.js,../background-6.js,../background-7.js,../background-8.js,../background-9.js,../background-10.js,../background-11.js,../background-12.js".split(",").forEach(e=>t(e)),l(...e);Date.now();console.log("SCRIPTS IMPORT COMPLETE in Seconds: "+(Date.now()-n)/1e3)}self.addEventListener("install",u),r.runtime.onConnect.addListener(e=>{console.log("MetaMask service worker: Received connection from port",e.name);try{e.postMessage({data:{method:s.APP_INIT_LIVENESS_METHOD},name:"app-init-liveness"})}catch(e){console.error("MetaMask - app-init-liveness check: Failed to message to port",e)}}),"activated"===self.serviceWorker.state&&u()},{"../../shared/constants/ui-initialization":3,"./lib/extension-lazy-listener/extension-lazy-listener":2}],2:[function(e,t,n){"use strict";function s(e,t,n){o(e,t),t.set(e,n)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(e,t){return e.get(i(e,t))}function i(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Object.defineProperty(n,"__esModule",{value:!0}),n.ExtensionLazyListener=void 0;var a=new WeakMap,c=new WeakMap,l=new WeakSet;function u(e){setTimeout(()=>{for(const[t,n]of r(c,this))for(const[s,{args:o}]of n){const n=`ExtensionLazyListener: Possible memory leak detected. The event "${t}.${s}" has been listened to, but no application code has added a listener after ${e}ms. There are currently ${o.length} buffered calls. If you are a developer of this extension, please ensure that you have added a listener for this event. If you are a user of this extension, please report this warning to the developers of the extension.`;console.warn(n)}},e)}function d(e,t){return r(a,this)[e][t]}n.ExtensionLazyListener=class{constructor(e,t={},n=2e4){var m,h;o(m=this,h=l),h.add(m),s(this,a,void 0),s(this,c,new Map),function(e,t,n){e.set(i(e,t),n)}(a,this,e);for(const[e,n]of Object.entries(t)){const t=new Map;for(const s of n){const n=[],o=(...e)=>{n.push(e)};i(l,this,d).call(this,e,s).addListener(o),t.set(s,{listener:o,args:n})}r(c,this).set(e,t)}i(l,this,u).call(this,n)}addListener(e,t,n){const s=i(l,this,d).call(this,e,t);s.addListener(n);const o=r(c,this).get(e);if(o){const i=o.get(t);if(i){s.removeListener(i.listener),o.delete(t),0===o.size&&r(c,this).delete(e);const{args:a}=i;for(let l=0,{length:u}=a;l<u;l++)try{if(n(...a[l]),!s.hasListener(n)){const n=l+1;n!==u&&(a.splice(0,n),o.set(t,i),r(c,this).set(e,o),s.addListener(i.listener));break}}catch(n){const d=l+1;throw d!==u&&(a.splice(0,d),o.set(t,i),r(c,this).set(e,o),s.addListener(i.listener)),n}}}}once(e,t){return new Promise(n=>{const s=i(l,this,d).call(this,e,t),o=r(c,this).get(e);if(o){const i=o.get(t),a=null==i?void 0:i.args.length;if(a)return n(i.args.shift()),s.removeListener(i.listener),void(1===a&&(o.delete(t),0===o.size&&r(c,this).delete(e)))}const a=(...e)=>{s.removeListener(a),n(e)};s.addListener(a)})}}},{}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.START_UI_SYNC=n.BACKGROUND_LIVENESS_METHOD=n.APP_INIT_LIVENESS_METHOD=void 0;n.APP_INIT_LIVENESS_METHOD="APP_INIT_ALIVE",n.BACKGROUND_LIVENESS_METHOD="ALIVE",n.START_UI_SYNC="START_UI_SYNC"},{}]},{},[1]);