LavaPack.loadBundle([[4463,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=class{constructor(e){if(!(e>0)||e-1&e)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(undefined)}push(e){return this.buffer[this.top]===undefined&&(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){const e=this.buffer[this.btm];return e===undefined?undefined:(this.buffer[this.btm]=undefined,this.btm=this.btm+1&this.mask,e)}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===undefined}}}}},{package:"@metamask/snaps-controllers>tar-stream>fast-fifo",file:"node_modules/fast-fifo/fixed-size.js"}],[4464,{"./fixed-size":4463},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./fixed-size");t.exports=class{constructor(e){this.hwm=e||16,this.head=new n(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){const t=this.head;this.head=t.next=new n(2*this.head.buffer.length),this.head.push(e)}}shift(){0!==this.length&&this.length--;const e=this.tail.shift();if(e===undefined&&this.tail.next){const e=this.tail.next;return this.tail.next=null,this.tail=e,this.tail.shift()}return e}peek(){const e=this.tail.peek();return e===undefined&&this.tail.next?this.tail.next.peek():e}isEmpty(){return 0===this.length}}}}},{package:"@metamask/snaps-controllers>tar-stream>fast-fifo",file:"node_modules/fast-fifo/index.js"}],[447,{"./constants":446,"./util":449,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),i=e("./constants"),{decodeText:o,asBuffer:s}=e("./util");function a(e){if(i.names[e])return i.names[e];if(i.codes[e])return i.codes[e];throw new Error(`Unsupported encoding: ${e}`)}(r=t.exports=function(e,t){if(!t)throw new Error("requires an encoded buffer");const{name:r,codeBuf:i}=a(e);!function(e,t){const r=a(e);r.decode(o(t))}(r,t);const s=n.alloc(i.length+t.length);return s.set(i,0),s.set(t,i.length),s}).encode=function(e,t){const r=a(e);return n.concat([r.codeBuf,n.from(r.encode(t))])},r.decode=function(e){ArrayBuffer.isView(e)&&(e=o(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const r=a(e[0]);return s(r.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])},r.names=Object.freeze(i.names),r.codes=Object.freeze(i.codes)}}},{package:"@ensdomains/content-hash>multihashes>multibase",file:"node_modules/@ensdomains/content-hash/node_modules/multibase/src/index.js"}],[448,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=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,u=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[u++]=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>multihashes>multibase",file:"node_modules/@ensdomains/content-hash/node_modules/multibase/src/rfc4648.js"}],[4483,{"@firebase/app":636},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("@firebase/app");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * 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.
 */
/**
 * @license
 * Copyright 2020 Google LLC
 *
 * 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.
 */
(0,n.registerVersion)("firebase","11.2.0","app")}}},{package:"@metamask/notification-services-controller>firebase",file:"node_modules/firebase/app/dist/esm/index.esm.js"}],[4484,{"@firebase/messaging":640},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("@firebase/messaging");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}))}}},{package:"@metamask/notification-services-controller>firebase",file:"node_modules/firebase/messaging/dist/esm/index.esm.js"}],[4485,{"@firebase/messaging/sw":641},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("@firebase/messaging/sw");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}))}}},{package:"@metamask/notification-services-controller>firebase",file:"node_modules/firebase/messaging/sw/dist/esm/index.esm.js"}],[449,{buffer:4096,"web-encoding":5755},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),{TextEncoder:i,TextDecoder:o}=e("web-encoding"),s=new o,a=new i;t.exports={decodeText:e=>s.decode(e),encodeText:e=>a.encode(e),asBuffer:({buffer:e,byteLength:t,byteOffset:r})=>n.from(e,r,t)}}}},{package:"@ensdomains/content-hash>multihashes>multibase",file:"node_modules/@ensdomains/content-hash/node_modules/multibase/src/util.js"}],[45,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getCronjobControllerMessenger=function(e){return e.getRestricted({name:"CronjobController",allowedEvents:["SnapController:snapInstalled","SnapController:snapUpdated","SnapController:snapUninstalled","SnapController:snapEnabled","SnapController:snapDisabled"],allowedActions:["PermissionController:getPermissions","SnapController:handleRequest","SnapController:getAll"]})}}}},{package:"$root$",file:"app/scripts/controller-init/messengers/snaps/cronjob-controller-messenger.ts"}],[450,{},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,"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>multihashes",file:"node_modules/@ensdomains/content-hash/node_modules/multihashes/src/constants.js"}],[451,{"./constants":450,buffer:4096,multibase:447,varint:454,"web-encoding":5755},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{Buffer:n}=e("buffer"),i=e("multibase"),o=e("varint"),{names:s}=e("./constants"),{TextDecoder:a}=e("web-encoding"),u=new a,c={};for(const e in s)c[s[e]]=e;function l(e){r.decode(e)}r.names=s,r.codes=Object.freeze(c),r.toHexString=function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return(n.isBuffer(e)?e:n.from(e.buffer,e.byteOffset,e.byteLength)).toString("hex")},r.fromHexString=function(e){return n.from(e,"hex")},r.toB58String=function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return u.decode(i.encode("base58btc",e)).slice(1)},r.fromB58String=function(e){const t=e instanceof Uint8Array?u.decode(e):e;return i.decode("z"+t)},r.decode=function(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");let t=n.isBuffer(e)?e:n.from(e.buffer,e.byteOffset,e.byteLength);if(t.length<2)throw new Error("multihash too short. must be > 2 bytes.");const i=o.decode(t);if(!r.isValidCode(i))throw new Error(`multihash unknown function code: 0x${i.toString(16)}`);t=t.slice(o.decode.bytes);const s=o.decode(t);if(s<0)throw new Error(`multihash invalid length: ${s}`);if(t=t.slice(o.decode.bytes),t.length!==s)throw new Error(`multihash length inconsistent: 0x${t.toString("hex")}`);return{code:i,name:c[i],length:s,digest:t}},r.encode=function(e,t,i){if(!e||t===undefined)throw new Error("multihash encode requires at least two args: digest, code");const s=r.coerceCode(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==i&&(i=e.length),i&&e.length!==i)throw new Error("digest length should be equal to specified length.");const a=o.encode(s),u=o.encode(i),c=n.alloc(a.length+u.length+e.length);return c.set(a,0),c.set(u,a.length),c.set(e,a.length+u.length),c},r.coerceCode=function(e){let t=e;if("string"==typeof e){if(s[e]===undefined)throw new Error(`Unrecognized hash function named: ${e}`);t=s[e]}if("number"!=typeof t)throw new Error(`Hash function code should be a number. Got: ${t}`);if(c[t]===undefined&&!r.isAppCode(t))throw new Error(`Unrecognized function code: ${t}`);return t},r.isAppCode=function(e){return e>0&&e<16},r.isValidCode=function(e){return!!r.isAppCode(e)||!!c[e]},r.validate=l,r.prefix=function(e){return l(e),n.from(e.buffer,e.byteOffset,2)}}}},{package:"@ensdomains/content-hash>multihashes",file:"node_modules/@ensdomains/content-hash/node_modules/multihashes/src/index.js"}],[4515,{},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){let n;return n=(null==r?void 0:r.registry)?r.registry.endsWith("/")?r.registry:`${r.registry}/`:"https://registry.npmjs.org/",`${n}${e}/-/${function(e){if("@"!==e[0])return e;return e.split("/")[1]}(e)}-${function(e){const t=e.indexOf("+");return-1===t?e:e.substring(0,t)}(t)}.tgz`}}}},{package:"@metamask/snaps-controllers>get-npm-tarball-url",file:"node_modules/get-npm-tarball-url/lib/index.js"}],[452,{},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,u=r=r||0,c=t.length;do{if(u>=c)throw e.bytes=0,new RangeError("Could not decode varint");o=t[u++],s+=a<28?(o&i)<<a:(o&i)*Math.pow(2,a),a+=7}while(o>=n);return e.bytes=u-r,s};var n=128,i=127}}},{package:"@ensdomains/content-hash>multihashes>varint",file:"node_modules/@ensdomains/content-hash/node_modules/varint/decode.js"}],[4528,{"../constants":4538,"./utilities":4533},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{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.removeAddressTags=r.fetchAddressTags=r.addAddressTags=void 0;var o=e("../constants"),s=e("./utilities");r.addAddressTags=function(e){return n(void 0,void 0,void 0,(function(){var t;return i(this,(function(r){return t=e.reduce((function(e,t){var r=Object.keys(t)[0];return e[r]=t[r],e}),{}),[2,(0,s.queue)((function(e){return e.addKvRecords({records:t})}))]}))}))};r.fetchAddressTags=function(e){var t=void 0===e?{n:o.MAX_ADDR,start:0}:e,r=t.n,a=t.start;return n(void 0,void 0,void 0,(function(){var e,t,u;return i(this,(function(c){switch(c.label){case 0:e=[],t=r,u=a,c.label=1;case 1:return t>0?[4,(0,s.queue)((function(r){return r.getKvRecords({start:u,n:t>o.MAX_ADDR?o.MAX_ADDR:t}).then((function(r){return n(void 0,void 0,void 0,(function(){return i(this,(function(n){return e.push.apply(e,r.records),u=r.fetched+u,t=r.total-u,[2]}))}))}))}))]:[3,3];case 2:return c.sent(),[3,1];case 3:return[2,e]}}))}))};r.removeAddressTags=function(e){return n(void 0,void 0,void 0,(function(){var t;return i(this,(function(r){return t=e.map((function(e){return"".concat(e.id)})),[2,(0,s.queue)((function(e){return e.removeKvRecords({ids:t})}))]}))}))}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/addressTags.js"}],[4529,{"../constants":4538,"./utilities":4533},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},o=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.fetchLedgerLegacyAddresses=r.fetchLedgerLiveAddresses=r.fetchSolanaAddresses=r.fetchBtcWrappedSegwitAddresses=r.fetchBtCSegwitAddresses=r.fetchBtcLegacyAddresses=r.fetchAddresses=void 0;var s=e("../constants"),a=e("./utilities");r.fetchAddresses=function(e){return i(void 0,void 0,void 0,(function(){return o(this,(function(t){return[2,(0,a.queue)((function(t){return t.getAddresses(n({startPath:s.DEFAULT_ETH_DERIVATION,n:s.MAX_ADDR},e)).then((function(e){return e.map((function(e){return"".concat(e)}))}))}))]}))}))};r.fetchBtcLegacyAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),i(void 0,void 0,void 0,(function(){return o(this,(function(n){return[2,(0,r.fetchAddresses)({startPath:(0,a.getStartPath)(s.BTC_LEGACY_DERIVATION,t),n:e})]}))}))};r.fetchBtCSegwitAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),i(void 0,void 0,void 0,(function(){return o(this,(function(n){return[2,(0,r.fetchAddresses)({startPath:(0,a.getStartPath)(s.BTC_SEGWIT_DERIVATION,t),n:e})]}))}))};r.fetchBtcWrappedSegwitAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),i(void 0,void 0,void 0,(function(){return o(this,(function(n){return[2,(0,r.fetchAddresses)({startPath:(0,a.getStartPath)(s.BTC_WRAPPED_SEGWIT_DERIVATION,t),n:e})]}))}))};r.fetchSolanaAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),i(void 0,void 0,void 0,(function(){return o(this,(function(n){return[2,(0,r.fetchAddresses)({startPath:(0,a.getStartPath)(s.SOLANA_DERIVATION,t,2),n:e})]}))}))};r.fetchLedgerLiveAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),i(void 0,void 0,void 0,(function(){var r,n,i;return o(this,(function(o){for(r=[],n=function(e){r.push((0,a.queue)((function(r){return r.getAddresses({startPath:(0,a.getStartPath)(s.LEDGER_LIVE_DERIVATION,t+e,2),n:1}).then((function(e){return e.map((function(e){return"".concat(e)}))}))})))},i=0;i<e;i++)n(i);return[2,Promise.all(r)]}))}))};r.fetchLedgerLegacyAddresses=function(e,t){return void 0===e&&(e=s.MAX_ADDR),i(void 0,void 0,void 0,(function(){var r,n,i;return o(this,(function(o){for(r=[],n=function(e){r.push((0,a.queue)((function(r){return r.getAddresses({startPath:(0,a.getStartPath)(s.LEDGER_LEGACY_DERIVATION,t+e,3),n:1}).then((function(e){return e.map((function(e){return"".concat(e)}))}))})))},i=0;i<e;i++)n(i);return[2,Promise.all(r)]}))}))}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/addresses.js"}],[453,{},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>multihashes>varint",file:"node_modules/@ensdomains/content-hash/node_modules/varint/encode.js"}],[4530,{"./addressTags":4528,"./addresses":4529,"./signing":4531,"./utilities":4533},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},s=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.fetchActiveWallets=r.pair=r.connect=r.setup=r.getClient=void 0;var a=e("./utilities");Object.defineProperty(r,"getClient",{enumerable:!0,get:function(){return a.getClient}}),Object.defineProperty(r,"setup",{enumerable:!0,get:function(){return a.setup}});var u=e("./utilities");r.connect=function(e){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return[2,(0,u.queue)((function(t){return t.connect(e)}))]}))}))};r.pair=function(e){return o(void 0,void 0,void 0,(function(){return s(this,(function(t){return[2,(0,u.queue)((function(t){return t.pair(e)}))]}))}))};r.fetchActiveWallets=function(){return o(void 0,void 0,void 0,(function(){return s(this,(function(e){return[2,(0,u.queue)((function(e){return e.fetchActiveWallet()}))]}))}))},i(e("./addresses"),r),i(e("./addressTags"),r),i(e("./signing"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/index.js"}],[4531,{"..":4551,"../constants":4538,"./utilities":4533},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},o=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.signSolanaTx=r.signBtcWrappedSegwitTx=r.signBtcSegwitTx=r.signBtcLegacyTx=r.signMessage=r.sign=void 0;var s=e(".."),a=e("../constants"),u=e("./utilities");r.sign=function(e,t){return i(void 0,void 0,void 0,(function(){var r;return o(this,(function(i){return r=n({data:{signerPath:a.DEFAULT_ETH_DERIVATION,curveType:s.Constants.SIGNING.CURVES.SECP256K1,hashType:s.Constants.SIGNING.HASHES.KECCAK256,encodingType:s.Constants.SIGNING.ENCODINGS.EVM,payload:e}},t),[2,(0,u.queue)((function(e){return e.sign(r)}))]}))}))};r.signMessage=function(e,t){return i(void 0,void 0,void 0,(function(){var r;return o(this,(function(i){return r={data:n({signerPath:a.DEFAULT_ETH_DERIVATION,curveType:s.Constants.SIGNING.CURVES.SECP256K1,hashType:s.Constants.SIGNING.HASHES.KECCAK256,protocol:"signPersonal",payload:e},t),currency:a.CURRENCIES.ETH_MSG},(0,u.isEIP712Payload)(e)&&(r.data.protocol="eip712"),[2,(0,u.queue)((function(e){return e.sign(r)}))]}))}))};r.signBtcLegacyTx=function(e){return i(void 0,void 0,void 0,(function(){var t;return o(this,(function(r){return t={data:n({signerPath:a.BTC_LEGACY_DERIVATION},e),currency:"BTC"},[2,(0,u.queue)((function(e){return e.sign(t)}))]}))}))};r.signBtcSegwitTx=function(e){return i(void 0,void 0,void 0,(function(){var t;return o(this,(function(r){return t={data:n({signerPath:a.BTC_SEGWIT_DERIVATION},e),currency:"BTC"},[2,(0,u.queue)((function(e){return e.sign(t)}))]}))}))};r.signBtcWrappedSegwitTx=function(e){return i(void 0,void 0,void 0,(function(){var t;return o(this,(function(r){return t={data:n({signerPath:a.BTC_WRAPPED_SEGWIT_DERIVATION},e),currency:"BTC"},[2,(0,u.queue)((function(e){return e.sign(t)}))]}))}))};r.signSolanaTx=function(e,t){return i(void 0,void 0,void 0,(function(){var r;return o(this,(function(i){return r={data:n({signerPath:a.SOLANA_DERIVATION,curveType:s.Constants.SIGNING.CURVES.ED25519,hashType:s.Constants.SIGNING.HASHES.NONE,encodingType:s.Constants.SIGNING.ENCODINGS.SOLANA,payload:e},t)},[2,(0,u.queue)((function(e){return e.sign(r)}))]}))}))}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/signing.js"}],[4532,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.setFunctionQueue=r.getFunctionQueue=r.setLoadClient=r.loadClient=r.setSaveClient=r.saveClient=void 0;r.setSaveClient=function(e){r.saveClient=e};var n;r.setLoadClient=function(e){r.loadClient=e};r.getFunctionQueue=function(){return n};r.setFunctionQueue=function(e){n=e}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/state.js"}],[4533,{"..":4551,"../client":4537,"./state":4532,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.isEIP712Payload=r.getStartPath=r.getClient=r.queue=r.setup=void 0;var o=e(".."),s=e("../client"),a=e("./state");r.setup=function(e){var t=e.deviceId,r=e.password,l=e.name,f=e.getStoredClient,d=e.setStoredClient;return n(void 0,void 0,void 0,(function(){var e,n,h,p;return i(this,(function(i){if(!f)throw new Error("Client data getter required");if((0,a.setSaveClient)(u(d)),!d)throw new Error("Client data setter required");if((0,a.setLoadClient)(c(f)),t&&r&&l)return e=o.Utils.generateAppSecret(t,r,l),[2,(n=new s.Client({deviceId:t,privKey:e,name:l})).connect(t).then((function(e){return(0,a.saveClient)(n.getStateData()),e}))];if(!(h=(0,a.loadClient)()))throw new Error("Client not initialized");return p=h.getDeviceId(),!h.ephemeralPub&&p?[2,(0,o.connect)(p)]:((0,a.saveClient)(h.getStateData()),[2,Promise.resolve(!0)])}))}))};r.queue=function(e){var t=(0,a.loadClient)();if(!t)throw new Error("Client not initialized");return(0,a.getFunctionQueue)()||(0,a.setFunctionQueue)(Promise.resolve()),(0,a.setFunctionQueue)((0,a.getFunctionQueue)().then((function(){return e(t).catch((function(e){throw(0,a.setFunctionQueue)(Promise.resolve()),e})).then((function(e){return(0,a.saveClient)(t.getStateData()),e}))}))),(0,a.getFunctionQueue)()};r.getClient=function(){return a.loadClient?(0,a.loadClient)():null};var u=function(e){return function(r){if(r){var n=function(e){return t.from(e).toString("base64")}(r);e(n)}}},c=function(e){return function(){var r=e();if(!r)return undefined;var n=function(e){return t.from(e,"base64").toString()}(r);if(!n)return undefined;var i=new s.Client({stateData:n});if(!i)throw new Error("Client not initialized");return i}};r.getStartPath=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=4);var n=e;return t>0&&(n[r]=e[r]+t),n};r.isEIP712Payload=function(e){return"string"!=typeof e&&"types"in e&&"domain"in e&&"primaryType"in e&&"message"in e}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/api/utilities.js"}],[4534,{"./constants":4538,"./protocol":4552,bech32:3986,bs58check:4100,buffer:4096,"hash.js/lib/hash/ripemd":4656,"hash.js/lib/hash/sha":4657},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=e("bech32"),o=n(e("bs58check")),s=e("hash.js/lib/hash/ripemd"),a=e("hash.js/lib/hash/sha"),u=e("./constants"),c=e("./protocol"),l=t.from("01","hex"),f=u.BIP_CONSTANTS.PURPOSES,d=u.BIP_CONSTANTS.COINS,h={ZERO:0,HASH160:169,DUP:118,EQUAL:135,EQUALVERIFY:136,CHECKSIG:172},p="bc",b="tb",m=208,g=240;function v(e,r){return t.concat([e,r])}function y(e){var r=t.alloc(4);return r.writeUInt32LE(e,0),r}function w(e){var r;return e<253?(r=t.alloc(1)).writeUInt8(e,0):e<=65535?((r=t.alloc(3)).writeUInt8(253,0),r.writeUInt16LE(e,1)):e<4294967295?((r=t.alloc(5)).writeUInt8(254,0),r.writeUInt32LE(e,1)):((r=t.alloc(9)).writeUInt8(255,0),r.writeUInt32LE(e>>>0,1),r.writeUInt32LE(e/4294967296|0,5)),r}function k(e,r,n){"number"==typeof e&&(e=e.toString(16));var i=t.alloc(8),o=e.length%2==0?e.toString(16):"0".concat(e.toString(16));return t.from(o,"hex").reverse().copy(i,0),i.copy(r,n),i}function j(e){var r,n;try{r=o.default.decode(e)[0],n=o.default.decode(e).slice(1)}catch(o){try{var s=i.bech32.decode(e);if(s.prefix===p)r=m;else{if(s.prefix!==b)throw new Error("Unsupported prefix: must be bc or tb.");r=g}if(0!==s.words[0])throw new Error("Unsupported segwit version: must be 0, got ".concat(s.words[0]));if(33!==s.words.length){var a=53===s.words.length;throw new Error("Unsupported address".concat(a?" (P2WSH not supported)":"",": ").concat(e))}n=t.from(i.bech32.fromWords(s.words.slice(1)))}catch(t){throw new Error("Unable to decode address: ".concat(e,": ").concat(t.message))}}return{versionByte:r,pkh:n}}function _(e){if(e.length<2)throw new Error("Path must be >1 index");var t=e[0],r=e[1];if(t===f.BTC_SEGWIT&&r===d.BTC)return m;if(t===f.BTC_SEGWIT&&r===d.BTC_TESTNET)return g;if(t===f.BTC_WRAPPED_SEGWIT&&r===d.BTC)return 5;if(t===f.BTC_WRAPPED_SEGWIT&&r===d.BTC_TESTNET)return 196;if(t===f.BTC_LEGACY&&r===d.BTC)return 0;if(t===f.BTC_LEGACY&&r===d.BTC_TESTNET)return 111;throw new Error("Invalid Bitcoin path provided. Cannot determine address format.")}function T(e){switch(e.signerPath[0]){case f.BTC_LEGACY:return 1;case f.BTC_WRAPPED_SEGWIT:return 3;case f.BTC_SEGWIT:return 4;default:throw new Error("Unsupported path purpose (".concat(e.signerPath[0],"): cannot determine BTC script type."))}}r.default={buildBitcoinTxRequest:function(e){var r=e.prevOuts,n=e.recipient,i=e.value,o=e.changePath,s=e.fee;if(!o)throw new Error("No changePath provided.");if(5!==o.length)throw new Error("Please provide a full change path.");var a=t.alloc(59+69*r.length),u=0,l=_(o);a.writeUInt8(l,0),u++,a.writeUInt32LE(o.length,u),u+=4;for(var f=0;f<o.length;f++)a.writeUInt32LE(o[f],u),u+=4;a.writeUInt32LE(s,u),u+=4;var d=j(n);a.writeUInt8(d.versionByte,u),u++,d.pkh.copy(a,u),u+=d.pkh.length,k(i,a,u),u+=8,a.writeUInt8(r.length,u),u++;var h=0;return r.forEach((function(e){if(!e.signerPath||5!==e.signerPath.length)throw new Error("Full recipient path not specified ");a.writeUInt32LE(e.signerPath.length,u),u+=4;for(var r=0;r<e.signerPath.length;r++)a.writeUInt32LE(e.signerPath[r],u),u+=4;a.writeUInt32LE(e.index,u),u+=4,k(e.value,a,u),u+=8,h+=e.value;var n=T(e);a.writeUInt8(n,u),u++,t.isBuffer(e.txHash)||(e.txHash=t.from(e.txHash,"hex")),e.txHash.copy(a,u),u+=e.txHash.length})),{payload:a,schema:c.LatticeSignSchema.bitcoin,origData:e,changeData:{value:h-(i+s)}}},serializeTx:function(e){var r=e.inputs,n=e.outputs,i=e.lockTime,o=void 0===i?0:i,u=t.alloc(4),c=0,d=function(e){var t=!1;return e.forEach((function(e){e.signerPath[0]!==f.BTC_SEGWIT&&e.signerPath[0]!==f.BTC_WRAPPED_SEGWIT||(t=!0)})),t}(r);u.writeUInt32LE(2,c),c+=4,d&&(u=v(u,t.from("00","hex")),u=v(u,t.from("01","hex")));var p=w(r.length);u=v(u,p),c+=p.length,r.forEach((function(e){u=v(u,e.hash.reverse()),c+=e.hash.length;var r=y(e.index);u=v(u,r),c+=r.length;var n=T(e);if(3===n){var i=function(e){var r=t.alloc(22),n=t.from((0,a.sha256)().update(e).digest("hex"),"hex"),i=t.from((0,s.ripemd160)().update(n).digest("hex"),"hex");return r.writeUInt8(h.ZERO,0),r.writeUInt8(i.length,1),i.copy(r,2),r}(e.pubkey),o=w(i.length),f=w((d=t.concat([o,i])).length);u=v(u,f),c+=f.length,u=v(u,d),c+=d.length}else if(1===n){var d=function(e,r){var n=w((e=t.concat([e,l])).length),i=w(r.length),o=t.concat([n,e,i,r]),s=w(o.length);return t.concat([s,o])}(e.sig,e.pubkey);u=v(u,d),c+=d.length}else if(4===n){var p=t.from("00","hex");u=v(u,p),c+=1}var b=y(4294967295);u=v(u,b),c+=b.length}));var b=w(n.length);if(u=v(u,b),c+=b.length,n.forEach((function(e){var r,n,i=(r=e.value,n=t.alloc(8),k(r,n,0),n);u=v(u,i),c+=i.length;var o=function(e){var r=j(e);switch(r.versionByte){case m:case g:return n=r.pkh,(i=t.alloc(2+n.length)).writeUInt8(h.ZERO,0),i.writeUInt8(n.length,1),n.copy(i,2),i;case 5:case 196:return function(e){var r=t.alloc(3+e.length),n=0;return r.writeUInt8(h.HASH160,n),n++,r.writeUInt8(e.length,n),n++,e.copy(r,n),n+=e.length,r.writeUInt8(h.EQUAL,n),n++,r}(r.pkh);case 0:case 111:return function(e){var r=t.alloc(5+e.length),n=0;return r.writeUInt8(h.DUP,n),n++,r.writeUInt8(h.HASH160,n),n++,r.writeUInt8(e.length,n),n++,e.copy(r,n),n+=e.length,r.writeUInt8(h.EQUALVERIFY,n),n++,r.writeUInt8(h.CHECKSIG,n),n++,r}(r.pkh);default:throw new Error("Unknown version byte: ".concat(r.versionByte,". Cannot build BTC transaction."))}var n,i}(e.recipient),s=w(o.length);u=v(u,s),c+=s.length,u=v(u,o),c+=o.length})),d){for(var _=[],S=[],x=0;x<r.length;x++)_.push(r[x].sig),S.push(r[x].pubkey);var E=function(e,r){var n=t.alloc(0),i=t.alloc(1);i.writeUInt8(2,0);for(var o=0;o<e.length;o++){var s=t.concat([e[o],l]),a=w(s.length),u=r[o],c=w(u.length);n=t.concat([n,i,a,s,c,u])}return n}(_,S);u=v(u,E),c+=E.length}return t.concat([u,y(o)]).toString("hex")},getBitcoinAddress:function(e,r){var n=null,s=null;if(r===m?(n=p,s=0):r===g&&(n=b,s=0),null!==n&&null!==s){var a=i.bech32.toWords(e);return a.unshift(s),i.bech32.encode(n,a)}return o.default.encode(t.concat([t.from([r]),e]))},getAddressFormat:_}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/bitcoin.js"}],[4535,{"@ethersproject/abi":524,buffer:4096,"js-sha3":4722},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.replaceNestedDefs=r.getNestedCalldata=r.parseCanonicalName=r.parseSolidityJSONABI=void 0;var n=e("js-sha3"),i=e("@ethersproject/abi");r.parseSolidityJSONABI=function(e,t){e=s(e);var r=t.filter((function(e){return"function"===e.type})).find((function(t){return o(f(t).canonicalName)===e}));if(r)return{def:f(r).def};throw new Error("Unable to find matching function in ABI")};r.parseCanonicalName=function(e,t){if((e=s(e))!==o(t))throw new Error("Name does not match provided sig.");var r=[],n=t.indexOf("(");if(n<0)throw new Error(y);r.push(t.slice(0,n)),t=t.slice(n+1);for(var i=[];t.length>1;){var a=u(t);i=i.concat(c(a)),t=t.slice(a.length+1)}var l=d(i);return r.concat(l)};r.getNestedCalldata=function(e,r){var n=[],o=e.slice(1),s=a(o);function u(e){return(e.length-4)%32==0}return(new i.AbiCoder).decode(s,"0x"+r.slice(4).toString("hex")).forEach((function(e,r){if(m(o[r])){var i=!0;if(v(o[r]))e.forEach((function(e){u(t.from(e.slice(2),"hex"))||(i=!1)}));else if(g(o[r])){var s=t.from(e.slice(2),"hex");i=u(s)}else i=!1;n.push(i?e:null)}else n.push(null)})),n};function o(e){return"0x".concat((0,n.keccak256)(e).slice(0,8))}function s(e){if("string"!=typeof e||10!==e.length&&8!==e.length)throw new Error("`sig` must be a hex string with 4 bytes of data.");return 8===e.length&&(e="0x".concat(e)),e}function a(e){for(var t=[],r=function(r){var n=e[r],i=w[n[1]];if(n[2]&&(i="".concat(i).concat(8*n[2])),n[3].length>0&&n[3].forEach((function(e){i=0===n[3][e]?"".concat(i,"[]"):"".concat(i,"[").concat(n[3][e],"]")})),n[4]){var o=a(n[4]);i="".concat(i,"(").concat(o.join(","),")")}t.push(i)},n=0;n<e.length;n++)r(n);return t}function u(e){if(b(e))return p(e);if(e.indexOf(",")>-1)return e.slice(0,e.indexOf(","));if(e.indexOf(")")>-1)return e.slice(0,e.indexOf(")"));throw new Error(y)}function c(e){if(!b(e))return[l(e)];var t={szBytes:0,typeIdx:w.indexOf("tuple"),arraySzs:[]},r=p(e,!1),n=e.slice(r.length);t.arraySzs=h(n),r=r.slice(1);for(var i=[];r.length>0;){var o=u(r);r=r.slice(o.length+1),i=i.concat(c(o))}if(!i.length)throw new Error(y);return[t,i]}function l(e){var t={szBytes:0,typeIdx:0,arraySzs:[]},r=!1;if(w.forEach((function(n,i){if(e.indexOf(n)>-1&&!r){t.typeIdx=i,t.arraySzs=h(e);var o=t.arraySzs.length>0?e.indexOf("["):e.length,s=e.slice(n.length,o);if(parseInt(s)&&(t.szBytes=parseInt(s)/8,t.szBytes>32))throw new Error(y);r=!0}})),!r)throw new Error(y);return t}function f(e,t,r,n){if(void 0===t&&(t=""),void 0===r&&(r=[]),void 0===n&&(n=!1),!n){var i=e.name||"";r.push(i),t+=i}return e.inputs&&(t+="(",e.inputs.forEach((function(e){var n=function(e){if(!e.type)throw new Error("No type in input");var t=[e.name],r=function(e){var t,r={szBytes:0,typeIdx:0,arraySzs:[]};w.forEach((function(n,i){e.indexOf(n)>-1&&!t&&(t=n,r.typeIdx=i)})),r.arraySzs=h(e);var n=r.arraySzs.length>0?e.indexOf("["):e.length;if(["uint","int","bytes"].indexOf(t)>-1){var i=parseInt(e.slice(t.length,n))||0;if(i>256)throw new Error("Invalid param size");r.szBytes=i/8}else r.szBytes=0;return r}(e.type),n=r.typeIdx,i=r.szBytes,o=r.arraySzs;return t.push(n),t.push(i),t.push(o),t}(e);if(e.type.indexOf("tuple")>-1&&e.components){var i=f({inputs:e.components},t,[],!0);t=i.canonicalName,t+="".concat(e.type.slice(5),","),n.push(i.def)}else t+=e.type,t+=",";r.push(n)})),","===t[t.length-1]&&(t=t.slice(0,t.length-1)),t+=")"),{def:r,canonicalName:t}}function d(e,t){void 0===t&&(t="");var r=[],n=0;return e.forEach((function(e,i){Array.isArray(e)?r[r.length-1].push(d(e,"".concat(i,"-"))):r.push(["#".concat(t).concat(i+1-n),e.typeIdx,e.szBytes,e.arraySzs]),e.typeIdx===w.indexOf("tuple")&&(n+=1)})),r}function h(e){if("string"!=typeof e)throw new Error("Invalid type");for(var t=[],r=e;r.length>0;){var n=r.indexOf("[");if(n<0)return t;var i=r.slice(n),o=i.indexOf("]");if(o<0)throw new Error("Bad param type");var s=i.slice(1,o);0===s.length?t.push(0):t.push(parseInt(s)),r=i.slice(o+1)}return t}function p(e,t){void 0===t&&(t=!0);for(var r=0,n=!1,i=0;i<e.length;i++){"("===e[i]?(r+=1,n=!0):")"===e[i]&&(r-=1);var o=","===e[i+1]||")"===e[i+1]||i===e.length-1;if(t||"["!==e[i+1]||(o=!0),!r&&n&&o)return e.slice(0,i+1)}throw new Error(y)}function b(e){return"("===e[0]}function m(e){return"bytes"===w[e[1]]}function g(e){return m(e)&&0===e[3].length}function v(e){return m(e)&&1===e[3].length&&0===e[3][0]}r.replaceNestedDefs=function(e,t){for(var r=0;r<t.length;r++){var n=v(e[1+r]),i=g(e[1+r]);if(null!==t[r]&&(n||i)){e[1+r][1]=w.indexOf("nestedDef");var o=n?t[r]:[t[r]];e[1+r]=e[1+r].concat([o])}}return e};var y="Could not parse canonical function name.",w=[null,"address","bool","uint","int","bytes","string","tuple","nestedDef"]}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/calldata/evm.js"}],[4536,{"./evm":4535},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CALLDATA=void 0;var n=e("./evm");r.CALLDATA={EVM:{type:1,parsers:{parseSolidityJSONABI:n.parseSolidityJSONABI,parseCanonicalName:n.parseCanonicalName},processors:{getNestedCalldata:n.getNestedCalldata,replaceNestedDefs:n.replaceNestedDefs}}}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/calldata/index.js"}],[4537,{"./constants":4538,"./functions/index":4546,"./shared/functions":4556,"./shared/utilities":4558,"./shared/validators":4559,"./util":4560,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.Client=void 0;var o=e("./constants"),s=e("./functions/index"),a=e("./shared/functions"),u=e("./shared/utilities"),c=e("./shared/validators"),l=e("./util"),f=function(){function e(e){var t=e.baseUrl,r=e.name,n=e.privKey,i=e.stateData,s=e.timeout,u=e.retryCount,c=e.skipRetryOnWrongWallet,f=e.deviceId;this.name=r||"Unknown",this.baseUrl=t||o.BASE_URL,this.deviceId=f,this.isPaired=!1,this.activeWallets=o.DEFAULT_ACTIVE_WALLETS,this.timeout=s||6e4,this.retryCount=u||3,this.skipRetryOnWrongWallet=c||!1,this.privKey=n||(0,l.randomBytes)(32),this.key=(0,l.getP256KeyPair)(this.privKey),this.retryWrapper=(0,a.buildRetryWrapper)(this,this.retryCount),i&&this.unpackAndApplyStateData(i)}return Object.defineProperty(e.prototype,"publicKey",{get:function(){return(0,u.getPubKeyBytes)(this.key)},enumerable:!1,configurable:!0}),e.prototype.getAppName=function(){return this.name},e.prototype.getDeviceId=function(){return this.deviceId},Object.defineProperty(e.prototype,"sharedSecret",{get:function(){return t.from(this.key.derive(this.ephemeralPub.getPublic()).toArray("be",32))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ephemeralPub",{get:function(){return this._ephemeralPub},set:function(e){(0,c.validateEphemeralPub)(e),this._ephemeralPub=e},enumerable:!1,configurable:!0}),e.prototype.connect=function(e){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.retryWrapper(s.connect,{id:e})]}))}))},e.prototype.pair=function(e){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.retryWrapper(s.pair,{pairingSecret:e})]}))}))},e.prototype.getAddresses=function(e){var t=e.startPath,r=e.n,o=void 0===r?1:r,a=e.flag,u=void 0===a?0:a;return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.retryWrapper(s.getAddresses,{startPath:t,n:o,flag:u})]}))}))},e.prototype.sign=function(e){var t=e.data,r=e.currency,o=e.cachedData,a=e.nextCode;return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.retryWrapper(s.sign,{data:t,currency:r,cachedData:o,nextCode:a})]}))}))},e.prototype.fetchActiveWallet=function(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.retryWrapper(s.fetchActiveWallet)]}))}))},e.prototype.addKvRecords=function(e){var t=e.type,r=void 0===t?0:t,o=e.records,a=e.caseSensitive,u=void 0!==a&&a;return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.retryWrapper(s.addKvRecords,{type:r,records:o,caseSensitive:u})]}))}))},e.prototype.getKvRecords=function(e){var t=e.type,r=void 0===t?0:t,o=e.n,a=void 0===o?1:o,u=e.start,c=void 0===u?0:u;return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.retryWrapper(s.getKvRecords,{type:r,n:a,start:c})]}))}))},e.prototype.removeKvRecords=function(e){var t=e.type,r=void 0===t?0:t,o=e.ids,a=void 0===o?[]:o;return n(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.retryWrapper(s.removeKvRecords,{type:r,ids:a})]}))}))},e.prototype.fetchEncryptedData=function(e){return n(this,void 0,void 0,(function(){return i(this,(function(t){return[2,this.retryWrapper(s.fetchEncData,e)]}))}))},e.prototype.getActiveWallet=function(){return this.activeWallets.external.uid&&!o.EMPTY_WALLET_UID.equals(this.activeWallets.external.uid)?this.activeWallets.external:this.activeWallets.internal.uid&&!o.EMPTY_WALLET_UID.equals(this.activeWallets.internal.uid)?this.activeWallets.internal:undefined},e.prototype.hasActiveWallet=function(){return!!this.getActiveWallet()},e.prototype.resetActiveWallets=function(){this.activeWallets=o.DEFAULT_ACTIVE_WALLETS},e.prototype.getStateData=function(){return this.packStateData()},e.prototype.getFwConstants=function(){var e;return(0,o.getFwVersionConst)(null!==(e=this.fwVersion)&&void 0!==e?e:t.alloc(0))},e.prototype.getFwVersion=function(){return this.fwVersion&&this.fwVersion.length>=3?{fix:this.fwVersion[0],minor:this.fwVersion[1],major:this.fwVersion[2]}:{fix:0,minor:0,major:0}},e.prototype.mutate=function(e){var t=e.deviceId,r=e.ephemeralPub,n=e.url,i=e.isPaired,o=e.fwVersion,s=e.activeWallets;t!==undefined&&(this.deviceId=t),r!==undefined&&(this.ephemeralPub=r),n!==undefined&&(this.url=n),i!==undefined&&(this.isPaired=i),o!==undefined&&(this.fwVersion=o),s!==undefined&&(this.activeWallets=s)},e.prototype.packStateData=function(){var e,t,r,n,i,o,s;try{var a={activeWallets:{internal:{uid:null===(e=this.activeWallets.internal.uid)||void 0===e?void 0:e.toString("hex"),name:null===(t=this.activeWallets.internal.name)||void 0===t?void 0:t.toString(),capabilities:this.activeWallets.internal.capabilities},external:{uid:null===(r=this.activeWallets.external.uid)||void 0===r?void 0:r.toString("hex"),name:null===(n=this.activeWallets.external.name)||void 0===n?void 0:n.toString(),capabilities:this.activeWallets.external.capabilities}},ephemeralPub:null===(o=null===(i=this.ephemeralPub)||void 0===i?void 0:i.getPublic())||void 0===o?void 0:o.encode("hex"),fwVersion:null===(s=this.fwVersion)||void 0===s?void 0:s.toString("hex"),deviceId:this.deviceId,name:this.name,baseUrl:this.baseUrl,privKey:this.privKey.toString("hex"),retryCount:this.retryCount,timeout:this.timeout};return JSON.stringify(a)}catch(e){return console.warn("Could not pack state data."),null}},e.prototype.unpackAndApplyStateData=function(e){try{var r=JSON.parse(e),n={uid:t.from(r.activeWallets.internal.uid,"hex"),name:r.activeWallets.internal.name?t.from(r.activeWallets.internal.name):null,capabilities:r.activeWallets.internal.capabilities,external:!1},i={uid:t.from(r.activeWallets.external.uid,"hex"),name:r.activeWallets.external.name?t.from(r.activeWallets.external.name):null,capabilities:r.activeWallets.external.capabilities,external:!0},o=t.from(r.ephemeralPub,"hex"),s=t.from(r.fwVersion,"hex"),u=t.from(r.privKey,"hex");this.activeWallets.internal=n,this.activeWallets.external=i,this.ephemeralPub=(0,l.getP256KeyPairFromPub)(o),this.fwVersion=s,this.deviceId=r.deviceId,this.name=r.name,this.baseUrl=r.baseUrl,this.url="".concat(this.baseUrl,"/").concat(this.deviceId),this.privKey=u,this.key=(0,l.getP256KeyPair)(this.privKey),this.retryCount=r.retryCount,this.timeout=r.timeout,this.retryWrapper=(0,a.buildRetryWrapper)(this,this.retryCount)}catch(e){console.warn("Could not apply state data.")}},e}();r.Client=f}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/client.js"}],[4538,{"./protocol/latticeConstants":4553,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.PUBLIC=r.ETH_ABI_LATTICE_FW_TYPE_MAP=r.MAX_CHAIN_ID_BYTES=r.HANDLE_LARGER_CHAIN_ID=r.HARDENED_OFFSET=r.VERSION_BYTE=r.REQUEST_TYPE_BYTE=r.signingSchema=r.ethMsgProtocol=r.addressSizes=r.EXTERNAL_NETWORKS_BY_CHAIN_ID_URL=r.NETWORKS_BY_CHAIN_ID=r.MAX_ADDR=r.CURRENCIES=r.BASE_URL=r.BIP_CONSTANTS=r.getFwVersionConst=r.ASCII_REGEX=r.LEDGER_LEGACY_DERIVATION=r.LEDGER_LIVE_DERIVATION=r.SOLANA_DERIVATION=r.BTC_WRAPPED_SEGWIT_DERIVATION=r.BTC_SEGWIT_DERIVATION=r.BTC_LEGACY_DERIVATION=r.DEFAULT_ETH_DERIVATION=r.DEFAULT_ACTIVE_WALLETS=r.EMPTY_WALLET_UID=r.EXTERNAL=void 0;var i=e("./protocol/latticeConstants");r.EXTERNAL={GET_ADDR_FLAGS:{SECP256K1_PUB:i.LatticeGetAddressesFlag.secp256k1Pubkey,ED25519_PUB:i.LatticeGetAddressesFlag.ed25519Pubkey,BLS12_381_G1_PUB:i.LatticeGetAddressesFlag.bls12_381Pubkey},SIGNING:{HASHES:{NONE:i.LatticeSignHash.none,KECCAK256:i.LatticeSignHash.keccak256,SHA256:i.LatticeSignHash.sha256},CURVES:{SECP256K1:i.LatticeSignCurve.secp256k1,ED25519:i.LatticeSignCurve.ed25519,BLS12_381_G2:i.LatticeSignCurve.bls12_381},ENCODINGS:{NONE:i.LatticeSignEncoding.none,SOLANA:i.LatticeSignEncoding.solana,EVM:i.LatticeSignEncoding.evm,ETH_DEPOSIT:i.LatticeSignEncoding.eth_deposit},BLS_DST:{BLS_DST_NUL:i.LatticeSignBlsDst.NUL,BLS_DST_POP:i.LatticeSignBlsDst.POP}},ENC_DATA:{SCHEMAS:{BLS_KEYSTORE_EIP2335_PBKDF_V4:i.LatticeEncDataSchema.eip2335}},ETH_CONSENSUS_SPEC:{NETWORKS:{MAINNET_GENESIS:{networkName:"mainnet",forkVersion:t.alloc(4),validatorsRoot:t.alloc(32)}},DOMAINS:{DEPOSIT:t.from("03000000","hex"),VOLUNTARY_EXIT:t.from("04000000","hex")}}},r.PUBLIC=r.EXTERNAL;r.addressSizes={BTC:20,ETH:20};r.CURRENCIES={ETH:"ETH",BTC:"BTC",ETH_MSG:"ETH_MSG"};r.signingSchema={BTC_TRANSFER:0,ETH_TRANSFER:1,ERC20_TRANSFER:2,ETH_MSG:3,EXTRA_DATA:4,GENERAL_SIGNING:5};var o=2147483648;r.HARDENED_OFFSET=o;var s={PURPOSES:{ETH:2147483692,BTC_LEGACY:2147483692,BTC_WRAPPED_SEGWIT:2147483697,BTC_SEGWIT:2147483732},COINS:{ETH:2147483708,BTC:o,BTC_TESTNET:2147483649}};r.BIP_CONSTANTS=s;r.REQUEST_TYPE_BYTE=2;r.VERSION_BYTE=1;r.HANDLE_LARGER_CHAIN_ID=255;r.MAX_CHAIN_ID_BYTES=8;r.BASE_URL="https://signing.gridpl.us";var a={address:1,bool:2,uint8:3,uint16:4,uint24:5,uint32:6,uint40:7,uint48:8,uint56:9,uint64:10,uint72:11,uint80:12,uint88:13,uint96:14,uint104:15,uint112:16,uint120:17,uint128:18,uint136:19,uint144:20,uint152:21,uint160:22,uint168:23,uint176:24,uint184:25,uint192:26,uint200:27,uint208:28,uint216:29,uint224:30,uint232:31,uint240:32,uint248:33,uint256:34,int8:35,int16:36,int24:37,int32:38,int40:39,int48:40,int56:41,int64:42,int72:43,int80:44,int88:45,int96:46,int104:47,int112:48,int120:49,int128:50,int136:51,int144:52,int152:53,int160:54,int168:55,int176:56,int184:57,int192:58,int200:59,int208:60,int216:61,int224:62,int232:63,int240:64,int248:65,int256:66,uint:67,bytes1:69,bytes2:70,bytes3:71,bytes4:72,bytes5:73,bytes6:74,bytes7:75,bytes8:76,bytes9:77,bytes10:78,bytes11:79,bytes12:80,bytes13:81,bytes14:82,bytes15:83,bytes16:84,bytes17:85,bytes18:86,bytes19:87,bytes20:88,bytes21:89,bytes22:90,bytes23:91,bytes24:92,bytes25:93,bytes26:94,bytes27:95,bytes28:96,bytes29:97,bytes30:98,bytes31:99,bytes32:100,bytes:101,string:102},u=n(n({},a),{tuple1:103,tuple2:104,tuple3:105,tuple4:106,tuple5:107,tuple6:108,tuple7:109,tuple8:110,tuple9:111,tuple10:112,tuple11:113,tuple12:114,tuple13:115,tuple14:116,tuple15:117,tuple16:118,tuple17:119});r.ETH_ABI_LATTICE_FW_TYPE_MAP=u;var c={SIGN_PERSONAL:{str:"signPersonal",enumIdx:0},TYPED_DATA:{str:"typedData",enumIdx:1,rawDataMaxLen:1629,typeCodes:a}};r.ethMsgProtocol=c,r.getFwVersionConst=function(e){var t={extraDataFrameSz:0,extraDataMaxFrames:0,genericSigning:{}};function n(e,t){return e[2]>t[0]||e[2]===t[0]&&e[1]>t[1]||e[2]===t[0]&&e[1]===t[1]&&e[0]>t[2]||e[2]===t[0]&&e[1]===t[1]&&e[0]===t[2]}var i=0===e.length;return!i&&n(e,[0,10,4])||!i&&n(e,[0,10,0])?(t.reqMaxDataSz=1678,t.ethMaxGasPrice=2e13,t.addrFlagsAllowed=!0):(t.reqMaxDataSz=1152,t.ethMaxGasPrice=5e11,t.addrFlagsAllowed=!1),t.ethMaxDataSz=t.reqMaxDataSz-128,t.ethMaxMsgSz=t.ethMaxDataSz,t.eip712MaxTypeParams=18,!i&&n(e,[0,10,4])&&(t.extraDataFrameSz=1500,t.extraDataMaxFrames=1),!i&&n(e,[0,10,5])&&(t.varAddrPathSzAllowed=!0,t.eip712Supported=!0),!i&&n(e,[0,10,8])&&(t.prehashAllowed=!0),!i&&n(e,[0,10,10])&&(t.ethMsgPreHashAllowed=!0),!i&&n(e,[0,11,0])&&(t.allowedEthTxTypes=[1,2],t.ethMaxDataSz-=10,t.ethMaxMsgSz=t.ethMaxDataSz),!i&&n(e,[0,11,2])&&(t.personalSignHeaderSz=72),!i&&n(e,[0,12,0])&&(t.kvActionsAllowed=!0,t.kvKeyMaxStrSz=63,t.kvValMaxStrSz=63,t.kvActionMaxNum=10,t.kvRemoveMaxNum=100),!i&&n(e,[0,13,0])&&(t.allowBtcLegacyAndSegwitAddrs=!0,t.contractDeployKey="0x08002e0fec8e6acf00835f43c9764f7364fa3f42"),!i&&n(e,[0,14,0])&&(t.abiCategorySz=32,t.abiMaxRmv=200,t.genericSigning.baseReqSz=1552,t.genericSigning.baseDataSz=1519,t.genericSigning.hashTypes=r.EXTERNAL.SIGNING.HASHES,t.genericSigning.curveTypes=r.EXTERNAL.SIGNING.CURVES,t.genericSigning.encodingTypes={NONE:r.EXTERNAL.SIGNING.ENCODINGS.NONE,SOLANA:r.EXTERNAL.SIGNING.ENCODINGS.SOLANA},t.getAddressFlags=[r.EXTERNAL.GET_ADDR_FLAGS.ED25519_PUB,r.EXTERNAL.GET_ADDR_FLAGS.SECP256K1_PUB],t.eip712MaxTypeParams=36),!i&&n(e,[0,15,0])&&(t.genericSigning.encodingTypes.EVM=r.EXTERNAL.SIGNING.ENCODINGS.EVM,t.ethMaxDataSz=1519,t.maxDecoderBufSz=1600,t.genericSigning.calldataDecoding={reserved:2895728,maxSz:1024}),!i&&n(e,[0,17,0])&&(t.getAddressFlags.push(r.EXTERNAL.GET_ADDR_FLAGS.BLS12_381_G1_PUB),t.genericSigning.encodingTypes.ETH_DEPOSIT=r.EXTERNAL.SIGNING.ENCODINGS.ETH_DEPOSIT),t};r.ASCII_REGEX=/^[\x00-\x7F]+$/;r.EXTERNAL_NETWORKS_BY_CHAIN_ID_URL="https://gridplus.github.io/chains/chains.json";r.MAX_ADDR=10;r.NETWORKS_BY_CHAIN_ID={1:{name:"ethereum",baseUrl:"https://api.etherscan.io",apiRoute:"api?module=contract&action=getabi"},137:{name:"polygon",baseUrl:"https://api.polygonscan.com",apiRoute:"api?module=contract&action=getabi"},56:{name:"binance",baseUrl:"https://api.bscscan.com",apiRoute:"api?module=contract&action=getabi"},42220:{name:"celo",baseUrl:"https://api.celoscan.io",apiRoute:"api?module=contract&action=getabi"},43114:{name:"avalanche",baseUrl:"https://api.snowtrace.io",apiRoute:"api?module=contract&action=getabi"}},r.EMPTY_WALLET_UID=t.alloc(32),r.DEFAULT_ACTIVE_WALLETS={internal:{uid:r.EMPTY_WALLET_UID,external:!1,name:t.alloc(0),capabilities:0},external:{uid:r.EMPTY_WALLET_UID,external:!0,name:t.alloc(0),capabilities:0}},r.DEFAULT_ETH_DERIVATION=[2147483692,2147483708,o,0,0],r.BTC_LEGACY_DERIVATION=[2147483692,2147483648,o,0,0],r.BTC_SEGWIT_DERIVATION=[2147483732,o,o,0,0],r.BTC_WRAPPED_SEGWIT_DERIVATION=[2147483697,o,o,0,0],r.SOLANA_DERIVATION=[2147483692,2147484149,o],r.LEDGER_LIVE_DERIVATION=[2147483697,2147483708,o,0,0],r.LEDGER_LEGACY_DERIVATION=[2147483697,2147483708,o,0]}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/constants.js"}],[4539,{"./constants":4538,"./protocol":4552,"./util":4560,"@ethereumjs/common":4613,"@ethereumjs/tx":482,"bignumber.js":4631,borc:4042,buffer:4096,"eth-eip712-util-browser":4307,"js-sha3":4722,rlp:5349,secp256k1:5576},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=e("@ethereumjs/common"),o=e("@ethereumjs/tx"),s=n(e("bignumber.js")),a=n(e("borc")),u=e("eth-eip712-util-browser"),c=e("js-sha3"),l=e("rlp"),f=n(e("secp256k1")),d=e("./constants"),h=e("./protocol"),p=e("./util");function b(e){for(var t=e[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e}function m(e,r,n,i){void 0===i&&(i={});try{var o=new Uint8Array(e),s=0,a=(0,p.fixLen)(r.r,32);r.r=a;var u=(0,p.fixLen)(r.s,32);r.s=u;var c=new Uint8Array(t.concat([a,u])),l=f.default.ecdsaRecover(c,s,o,!1).slice(1);if(g(l)===n.toString("hex"))return r.v=v(s,i),r;if(s=1,g(l=f.default.ecdsaRecover(c,s,o,!1).slice(1))===n.toString("hex"))return r.v=v(s,i),r;throw new Error("Invalid Ethereum signature returned.")}catch(e){throw new Error(e)}}function g(e){return(0,c.keccak256)(e).slice(-40)}function v(e,r){void 0===r&&(r={});var n=r.chainId,i=r.useEIP155,o=r.type;if(1===o||2===o)return(0,p.ensureHexBuffer)(e,!0);if(!1===i||null===n)return t.from(new s.default(e).plus(27).toString(16),"hex");var a=w(n),u=new s.default(a.toString("hex"),16);return(0,p.ensureHexBuffer)("0x".concat(u.times(2).plus(35).plus(e).toString(16)))}var y={mainnet:1,roptsten:3,rinkeby:4,kovan:42,goerli:5};function w(e){var r,n;if((r=!0===k(e)?(0,p.ensureHexBuffer)(e):(0,p.ensureHexBuffer)("0x".concat(new s.default(e).toString(16)))).length>8)throw new Error("ChainID provided is too large.");return r.length<=2||4===r.length||8===r.length?r:(3===r.length?(n=t.alloc(4)).writeUInt32BE(e):r.length<=8&&(n=t.alloc(8),r.copy(n,8-r.length)),n)}function k(e){if("string"!=typeof e)return!1;if("0x"!==e.slice(0,2))return!1;try{return!1===new s.default(e,16).isNaN()}catch(e){return!1}}function j(e,r){var n=r.fwConstants,i=n.ethMaxMsgSz,o=n.extraDataFrameSz,s=n.extraDataMaxFrames,a=i,u=o>0&&s>0,c=[];if(e.length>a){var l=a+s*o;if(!u)throw new Error("Your message is ".concat(e.length," bytes, but can only be a maximum of ").concat(a));if(u&&e.length>l)throw new Error("Your message is ".concat(e.length," bytes, but can only be a maximum of ").concat(l));(0,p.splitFrames)(e.slice(a),o).forEach((function(e){var r=t.alloc(4);r.writeUInt32LE(e.length,0),c.push(t.concat([r,e]))}))}return c}function _(e,t,r,n){return void 0===n&&(n=!1),r[t].forEach((function(t){var i=t.type.indexOf("[")>-1,o=i?t.type.slice(0,t.type.indexOf("[")):t.type,s=Object.keys(r).indexOf(o)>-1;if(s&&Array.isArray(e))for(var a=0;a<e.length;a++)e[a][t.name]=_(e[a][t.name],o,r,n);else if(s)e[t.name]=_(e[t.name],o,r,n);else if(Array.isArray(e))for(a=0;a<e.length;a++)if(i)for(var u=0;u<e[a][t.name].length;u++)e[a][t.name][u]=T(e[a][t.name][u],o,n);else e[a][t.name]=T(e[a][t.name],o,n);else if(i)for(a=0;a<e[t.name].length;a++)e[t.name][a]=T(e[t.name][a],o,n);else e[t.name]=T(e[t.name],o,n)})),e}function T(e,r,n){if(void 0===n&&(n=!1),"bytes"===r)e=(0,p.ensureHexBuffer)(e),n&&(e="0x".concat(e.toString("hex")));else if("bytes"===r.slice(0,5)){var i=parseInt(r.slice(5));if((e=(0,p.ensureHexBuffer)(e)).length!==i)throw new Error("Expected ".concat(r," type, but got ").concat(e.length," bytes"));n&&(e="0x".concat(e.toString("hex")))}else if("address"===r){if(0===(e=(0,p.ensureHexBuffer)(e)).length&&(e=t.alloc(20)),20!==e.length)throw new Error("Address type must be 20 bytes, but got ".concat(e.length," bytes"));n&&(e="0x".concat(e.toString("hex")))}else if(d.ethMsgProtocol.TYPED_DATA.typeCodes[r]&&(r.indexOf("uint")>-1||r.indexOf("int")>-1)){var o=(0,p.ensureHexBuffer)(e);0===o.length&&(o=t.from("00","hex")),e=n?"0x".concat(o.toString("hex")):(new a.default.Encoder).semanticTypes[1][0](o.toString("hex"),16)}else"bool"===r&&(e=!0===e?1:0);return e}function S(e){return t.from("Ethereum Signed Message:\n".concat(e.toString()),"utf-8")}function x(e,r){return r?t.concat([t.from([r]),t.from((0,l.encode)(e))]):t.from((0,l.encode)(e))}r.default={buildEthereumMsgRequest:function(e){if(!e.payload||!e.protocol||!e.signerPath)throw new Error("You must provide `payload`, `signerPath`, and `protocol` arguments in the messsage request");if(e.signerPath.length>5||e.signerPath.length<2)throw new Error("Please provide a signer path with 2-5 indices");var r={schema:h.LatticeSignSchema.ethereumMsg,payload:null,input:e,msg:null};switch(e.protocol){case"signPersonal":return function(e,r){var n=r.fwConstants.ethMaxMsgSz,i=r.fwConstants.varAddrPathSzAllowed,o=24+n+4,s=0;e.payload=t.alloc(o),e.payload.writeUInt8(d.ethMsgProtocol.SIGN_PERSONAL,0),s+=1;var a=(0,p.buildSignerPathBuf)(r.signerPath,i);a.copy(e.payload,s),s+=a.length;var u=r.payload,l=!1;if("string"==typeof r.payload)if("0x"===r.payload.slice(0,2))u=(0,p.ensureHexBuffer)(r.payload),l=!1===d.ASCII_REGEX.test(t.from(r.payload.slice(2),"hex").toString());else{if(!1===(0,p.isAsciiStr)(r.payload))throw new Error("Currently, the Lattice can only display ASCII strings.");u=t.from(r.payload)}else if("boolean"==typeof r.displayHex)l=r.displayHex;else{if(!r.payload.toString)throw new Error("Unsupported input data type");l=!1===d.ASCII_REGEX.test(r.payload.toString())}var f=r.fwConstants,h=n+f.extraDataMaxFrames*f.extraDataFrameSz;f.personalSignHeaderSz&&(h-=f.personalSignHeaderSz);if(f.ethMsgPreHashAllowed&&u.length>h){e.payload.writeUInt8(l,s),s+=1,e.payload.writeUInt16LE(u.length,s),s+=2;var b=t.from((0,c.keccak256)(t.concat([S(u.length),u])),"hex");b.copy(e.payload,s),e.prehash=b}else{var m=j(u,r);e.extraDataPayloads=m,e.msg=u,e.payload.writeUInt8(l,s),s+=1,e.payload.writeUInt16LE(u.length,s),s+=2,u.copy(e.payload,s)}return e}(r,e);case"eip712":if(!e.fwConstants.eip712Supported)throw new Error("EIP712 is not supported by your Lattice firmware version. Please upgrade.");return function(e,r){var n=r.fwConstants,i=n.ethMaxMsgSz,o=n.varAddrPathSzAllowed,s=n.eip712MaxTypeParams,c=d.ethMsgProtocol.TYPED_DATA,l=24+i+4,f=0;e.payload=t.alloc(l),e.payload.writeUInt8(c.enumIdx,0),f+=1;var h=(0,p.buildSignerPathBuf)(r.signerPath,o);h.copy(e.payload,f),f+=h.length;var b=JSON.parse(JSON.stringify(r.payload));if(!b.primaryType||!b.types[b.primaryType])throw new Error("primaryType must be specified and the type must be included.");if(!b.message||!b.domain)throw new Error("message and domain must be specified.");if(0>Object.keys(b.types).indexOf("EIP712Domain"))throw new Error("EIP712Domain type must be defined.");r.payload.message=_(JSON.parse(JSON.stringify(b.message)),JSON.parse(JSON.stringify(b.primaryType)),JSON.parse(JSON.stringify(b.types)),!0),r.payload.domain=_(JSON.parse(JSON.stringify(b.domain)),"EIP712Domain",JSON.parse(JSON.stringify(b.types)),!0),b.domain=_(b.domain,"EIP712Domain",b.types,!1),b.message=_(b.message,b.primaryType,b.types,!1);var m=t.from(a.default.encode(b)),g=r.fwConstants,v=i+g.extraDataMaxFrames*g.extraDataFrameSz,y=m.length>v;if(Object.keys(b.types).forEach((function(e){b.types[e].length>s&&(y=!0)})),g.ethMsgPreHashAllowed&&y){e.payload.writeUInt16LE(m.length,f),f+=2;var w=u.TypedDataUtils.hash(e.input.payload);t.from(w).copy(e.payload,f),e.prehash=w}else{var k=j(m,r);e.extraDataPayloads=k,e.payload.writeUInt16LE(m.length,f),f+=2,m.copy(e.payload,f),f+=m.length,e.payload=e.payload.slice(0,f)}return e}(r,e);default:throw new Error("Unsupported protocol")}},validateEthereumMsgResponse:function(e,r){var n=e.signer,i=e.sig,o=r.input,s=r.msg,a=r.prehash,l=void 0===a?null:a;if("signPersonal"===o.protocol)return m(l||t.from((0,c.keccak256)(t.concat([S(s.length),s])),"hex"),i,n,{chainId:1,useEIP155:!1});if("eip712"===o.protocol){var f=u.TypedDataUtils.hash(r.input.payload);return m(l||f,i,n,{useEIP155:!1})}throw new Error("Unsupported protocol")},buildEthereumTxRequest:function(e){try{var r=e.chainId,n=void 0===r?1:r,i=e.signerPath,o=e.eip155,s=void 0===o?null:o,a=e.fwConstants,u=e.type,l=void 0===u?null:u,f=a.contractDeployKey,b=a.extraDataFrameSz,m=a.extraDataMaxFrames,g=a.prehashAllowed,v=b>0&&m>0,j=a.ethMaxDataSz,_=a.varAddrPathSzAllowed;if("number"!=typeof n&&!1===k(n)&&(n=y[n]),!n)throw new Error("Unsupported chain ID or name");if(!i)throw new Error("`signerPath` not provided");if(null===e.to&&!f)throw new Error("Contract deployment not supported. Please update your Lattice firmware.");var T=null===e.to&&f,S=a.allowedEthTxTypes&&a.allowedEthTxTypes.indexOf(2)>-1,E=a.allowedEthTxTypes&&a.allowedEthTxTypes.indexOf(1)>-1,O=S&&(2===l||"eip1559"===l),A=E&&(1===l||"eip2930"===l);if(null!==l&&!O&&!A)throw new Error("Unsupported Ethereum transaction type");var P=function(e){switch(e){case 3:case 4:return!1;default:return!0}}(n);null!==s&&"boolean"==typeof s?P=s:(O||A)&&(P=!1),e.value||(e.value=0);var I=[],C=(0,p.ensureHexBuffer)(n),R=(0,p.ensureHexBuffer)(e.nonce),B=void 0,M=(0,p.ensureHexBuffer)(e.gasLimit),L=void 0,N=void 0;T?(L=t.alloc(0),N=(0,p.ensureHexBuffer)(f)):(L=(0,p.ensureHexBuffer)(e.to),N=(0,p.ensureHexBuffer)(e.to));var D=(0,p.ensureHexBuffer)(e.value),F=(0,p.ensureHexBuffer)(e.data);(O||A)&&I.push(C),I.push(R);var U=void 0,H=void 0;if(O){if(!e.maxPriorityFeePerGas)throw new Error("EIP1559 transactions must include `maxPriorityFeePerGas`");U=(0,p.ensureHexBuffer)(e.maxPriorityFeePerGas),I.push(U),H=(0,p.ensureHexBuffer)(e.maxFeePerGas),I.push(H),B=H}else B=(0,p.ensureHexBuffer)(e.gasPrice),I.push(B);I.push(M),I.push(L),I.push(D),I.push(F);var G=!1;if(O||A){var z=[];Array.isArray(e.accessList)&&e.accessList.forEach((function(e){var t=[];e.storageKeys.forEach((function(e){t.push((0,p.ensureHexBuffer)(e))})),z.push([(0,p.ensureHexBuffer)(e.address),t]),G=!0})),I.push(z)}else!0===P&&(I.push(C),I.push((0,p.ensureHexBuffer)(null)),I.push((0,p.ensureHexBuffer)(null)));var W=t.alloc(j+122),q=0;W.writeUInt8(Number(P),q),q++;var V=void 0,K=0;if(!0==(1!==(ne=w(n)).length||255===ne.readUInt8(0))){if((K=(V=w(n)).length)>d.MAX_CHAIN_ID_BYTES)throw new Error("ChainID provided is too large.");W.writeUInt8(d.HANDLE_LARGER_CHAIN_ID,q),q++}else{if(1!==(V=(0,p.ensureHexBuffer)(n)).length)throw new Error("Error parsing chainID");V.copy(W,q),q+=V.length}var $=(0,p.buildSignerPathBuf)(i,_);if($.copy(W,q),q+=$.length,R.length>4)throw new Error("Nonce too large");if(R.copy(W,q+(4-R.length)),q+=4,B.length>8)throw new Error("Gas price too large");if(B.copy(W,q+(8-B.length)),q+=8,M.length>4)throw new Error("Gas limit too large");if(M.copy(W,q+(4-M.length)),q+=4,20!==N.length)throw new Error("Invalid `to` address");if(N.copy(W,q),q+=20,D.length>32)throw new Error("Value too large");D.copy(W,q+(32-D.length)),q+=32;var Y=!1;if(a.allowedEthTxTypes)if(G&&(Y=!0),W.writeUInt8(Y?1:0,q),q+=1,O){if(W.writeUInt8(2,q),q+=1,U.length>8)throw new Error("maxPriorityFeePerGasBytes too large");U.copy(W,q+(8-U.length)),q+=8}else A?(W.writeUInt8(1,q),q+=1,q+=8):q+=9;var J=[],X=null,Q=F.length||0,Z=K>0?K+1:0,ee=t.alloc(Q+Z);if(Z>0&&(ee.writeUInt8(K,0),V.copy(ee,1)),F.copy(ee,Z),Q>j){var te=Q+Z,re=j+m*b;if(g&&te>re)X=t.from((0,c.keccak256)(x(I,l)),"hex");else{if(!v||v&&te>re)throw new Error("Data field too large (got ".concat(F.length,"; must be <=").concat(re-Z," bytes)"));(0,p.splitFrames)(ee.slice(j),b).forEach((function(e){var r=t.alloc(4);r.writeUInt32LE(e.length,0),J.push(t.concat([r,e]))}))}}else Y&&(X=t.from((0,c.keccak256)(x(I,l)),"hex"));return W.writeUInt16BE(F.length,q),q+=2,K>0&&(W.writeUInt8(K,q),q++,V.copy(W,q),q+=K),X?(X.copy(W,q),q+=j):(F.slice(0,j).copy(W,q),q+=j),{rawTx:I,type:l,payload:W.slice(0,q),extraDataPayloads:J,schema:h.LatticeSignSchema.ethereum,chainId:n,useEIP155:P,signerPath:i}}catch(e){return{err:e.message}}var ne},buildEthRawTx:function(e,r,n){var i=m(t.from((0,c.keccak256)(x(e.rawTx,e.type)),"hex"),r,n,e),o=e.useEIP155?e.rawTx.slice(0,-3):e.rawTx;o.push(i.v),o.push(b(i.r)),o.push(b(i.s));var s=t.from((0,l.encode)(o));return e.type&&(s=t.concat([t.from([e.type]),s])),{rawTx:s.toString("hex"),sigWithV:i}},hashTransaction:function(e){return(0,c.keccak256)(t.from(e,"hex"))},chainIds:y,ensureHexBuffer:p.ensureHexBuffer,ethConvertLegacyToGenericReq:function(e){var r;r=e.chainId&&"01"!==(0,p.ensureHexBuffer)(e.chainId).toString("hex")?i.Common.custom({chainId:Number(e.chainId)},{hardfork:i.Hardfork.London,eips:[1559,2930]}):new i.Common({chain:i.Chain.Mainnet,hardfork:i.Hardfork.London});var n=o.TransactionFactory.fromTxData(e,{common:r});return e.type?n.getMessageToSign(!1):t.from((0,l.encode)(n.getMessageToSign(!1)))}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/ethereum.js"}],[454,{"./decode.js":452,"./encode.js":453,"./length.js":455},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>multihashes>varint",file:"node_modules/@ensdomains/content-hash/node_modules/varint/index.js"}],[4540,{"../protocol":4552,"../shared/validators":4559,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.encodeAddKvRecordsRequest=r.validateAddKvRequest=r.addKvRecords=void 0;var o=e("../protocol"),s=e("../shared/validators");r.addKvRecords=function(e){var t=e.client,a=e.records,u=e.type,c=e.caseSensitive;return n(this,void 0,void 0,(function(){var e,n,l,f,d,h,p,b,m;return i(this,(function(i){switch(i.label){case 0:return e=(0,s.validateConnectedClient)(t),n=e.url,l=e.sharedSecret,f=e.ephemeralPub,d=e.fwConstants,(0,r.validateAddKvRequest)({records:a,fwConstants:d}),h=(0,r.encodeAddKvRecordsRequest)({records:a,type:u,caseSensitive:c,fwConstants:d}),[4,(0,o.encryptedSecureRequest)({data:h,requestType:o.LatticeSecureEncryptedRequestType.addKvRecords,sharedSecret:l,ephemeralPub:f,url:n})];case 1:return p=i.sent(),b=p.decryptedData,m=p.newEphemeralPub,t.mutate({ephemeralPub:m}),[2,b]}}))}))};r.validateAddKvRequest=function(e){var t=e.records,r=e.fwConstants;(0,s.validateKvRecords)(t,r)};r.encodeAddKvRecordsRequest=function(e){var r=e.records,n=e.type,i=e.caseSensitive,o=e.fwConstants,a=t.alloc(1+139*o.kvActionMaxNum);a.writeUInt8(Object.keys(r).length,0);var u=1;return Object.entries(r).forEach((function(e){var r=e[0],c=e[1],l=(0,s.validateKvRecord)({key:r,val:c},o),f=l.key,d=l.val;a.writeUInt32LE(0,u),u+=4,a.writeUInt32LE(n,u),u+=4,a.writeUInt8(i?1:0,u),u+=1,a.writeUInt8(String(f).length+1,u),u+=1,t.from(String(f)).copy(a,u),u+=o.kvKeyMaxStrSz+1,a.writeUInt8(String(d).length+1,u),u+=1,t.from(String(d)).copy(a,u),u+=o.kvValMaxStrSz+1})),a}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/addKvRecords.js"}],[4541,{"../protocol":4552,"../shared/predicates":4557,"../shared/utilities":4558,"../shared/validators":4559,"../util":4560},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{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeConnectResponse=r.validateConnectRequest=r.connect=void 0;var o=e("../protocol"),s=e("../shared/predicates"),a=e("../shared/utilities"),u=e("../shared/validators"),c=e("../util");r.connect=function(e){var t=e.client,a=e.id;return n(this,void 0,void 0,(function(){var e,n,u,c,l,f,d,h,p,b,m;return i(this,(function(i){switch(i.label){case 0:return e=(0,r.validateConnectRequest)({deviceId:a,key:t.key,baseUrl:t.baseUrl}),n=e.deviceId,u=e.key,c=e.baseUrl,l="".concat(c,"/").concat(n),[4,(0,o.connectSecureRequest)({url:l,pubkey:t.publicKey})];case 1:return f=i.sent(),[4,(0,r.decodeConnectResponse)(f,u)];case 2:return d=i.sent(),h=d.isPaired,p=d.fwVersion,b=d.activeWallets,m=d.ephemeralPub,t.mutate({deviceId:n,ephemeralPub:m,url:l,isPaired:h,fwVersion:p,activeWallets:b}),!h||(0,s.doesFetchWalletsOnLoad)(t.getFwVersion())?[3,4]:[4,t.fetchActiveWallet()];case 3:i.sent(),i.label=4;case 4:return[2,h]}}))}))};r.validateConnectRequest=function(e){var t=e.deviceId,r=e.key,n=e.baseUrl;return{deviceId:(0,u.validateDeviceId)(t),key:(0,u.validateKey)(r),baseUrl:(0,u.validateBaseUrl)(n)}};r.decodeConnectResponse=function(e,t){var r=0,n=e.readUInt8(r)===o.ProtocolConstants.pairingStatus.paired;r++;var i=e.slice(r,r+65).toString("hex");r+=65;var s=(0,c.getP256KeyPairFromPub)(i),u=e.slice(r,r+4);if(r+=4,n){var l=e.slice(r,r+160);r+=160;var f=(0,a.getSharedSecret)(t,s),d=(0,c.aes256_decrypt)(l,f);if(0!==d[d.length-2]||0!==d[d.length-1])throw new Error("Failed to connect to Lattice.");return{isPaired:n,fwVersion:u,activeWallets:(0,a.parseWallets)(d),ephemeralPub:s}}return{isPaired:n,fwVersion:u,activeWallets:undefined,ephemeralPub:s}}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/connect.js"}],[4542,{"../constants":4538,"../protocol":4552,"../shared/validators":4559,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeFetchActiveWalletResponse=r.fetchActiveWallet=void 0;var o=e("../constants"),s=e("../protocol"),a=e("../shared/validators");r.fetchActiveWallet=function(e){var o=e.client;return n(this,void 0,void 0,(function(){var e,n,u,c,l,f,d,h,p;return i(this,(function(i){switch(i.label){case 0:return e=(0,a.validateConnectedClient)(o),n=e.url,u=e.sharedSecret,c=e.ephemeralPub,[4,(0,s.encryptedSecureRequest)({data:t.alloc(0),requestType:s.LatticeSecureEncryptedRequestType.getWallets,sharedSecret:u,ephemeralPub:c,url:n})];case 1:return l=i.sent(),f=l.decryptedData,d=l.newEphemeralPub,h=(0,r.decodeFetchActiveWalletResponse)(f),p=(0,a.validateActiveWallets)(h),o.mutate({ephemeralPub:d,activeWallets:p}),[2,p]}}))}))};r.decodeFetchActiveWalletResponse=function(e){var r={internal:{uid:o.EMPTY_WALLET_UID,external:!1,name:t.alloc(0),capabilities:0},external:{uid:o.EMPTY_WALLET_UID,external:!0,name:t.alloc(0),capabilities:0}},n=0;return r.internal.uid=e.slice(n,n+32),r.internal.capabilities=e.readUInt32BE(n+32),r.internal.name=e.slice(n+36,n+71),n+=71,r.external.uid=e.slice(n,n+32),r.external.capabilities=e.readUInt32BE(n+32),r.external.name=e.slice(n+36,n+71),r}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/fetchActiveWallet.js"}],[4543,{"../constants":4538,"../protocol":4552,"../shared/utilities":4558,"../shared/validators":4559,buffer:4096,uuid:4632},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeFetchEncData=r.encodeFetchEncDataRequest=r.validateFetchEncDataRequest=r.fetchEncData=void 0;var o=e("uuid"),s=e("../constants"),a=e("../protocol"),u=e("../shared/utilities"),c=e("../shared/validators"),l=s.EXTERNAL.ENC_DATA,f="Unknown encrypted data export type requested. Exiting.",d={CIPHERTEXT:32,SALT:32,CHECKSUM:32,IV:16,PUBKEY:48};r.fetchEncData=function(e){var t=e.client,o=e.schema,s=e.params;return n(this,void 0,void 0,(function(){var e,n,u,l,f,d,h,p,b,m;return i(this,(function(i){switch(i.label){case 0:return e=(0,c.validateConnectedClient)(t),n=e.url,u=e.sharedSecret,l=e.ephemeralPub,f=e.fwVersion,d=(0,c.validateWallet)(t.getActiveWallet()),(0,r.validateFetchEncDataRequest)({params:s}),h=(0,r.encodeFetchEncDataRequest)({schema:o,params:s,fwVersion:f,activeWallet:d}),[4,(0,a.encryptedSecureRequest)({data:h,requestType:a.LatticeSecureEncryptedRequestType.fetchEncryptedData,sharedSecret:u,ephemeralPub:l,url:n})];case 1:return p=i.sent(),b=p.decryptedData,m=p.newEphemeralPub,t.mutate({ephemeralPub:m}),[2,(0,r.decodeFetchEncData)({data:b,schema:o,params:s})]}}))}))};r.validateFetchEncDataRequest=function(e){var t=e.params;(0,c.validateStartPath)(t.path)};r.encodeFetchEncDataRequest=function(e){var r=e.schema,n=e.params,i=e.fwVersion,o=e.activeWallet;if(i.major<1&&i.minor<17)throw new Error("Firmware version >=v0.17.0 is required for encrypted data export.");if(r!==l.SCHEMAS.BLS_KEYSTORE_EIP2335_PBKDF_V4)throw new Error(f);n.walletUID=o.uid;var s=t.alloc(1025),a=0;if(s.writeUInt8(r,a),a+=1,r===l.SCHEMAS.BLS_KEYSTORE_EIP2335_PBKDF_V4){n.walletUID.copy(s,a),a+=n.walletUID.length,s.writeUInt8(n.path.length,a),a+=1;for(var u=0;u<5;u++)u<=n.path.length&&s.writeUInt32LE(n.path[u],a),a+=4;return n.c&&s.writeUInt32LE(n.c,a),a+=4,s}throw new Error(f)};r.decodeFetchEncData=function(e){var t=e.data,r=e.schema,n=e.params,i=0;if(r===l.SCHEMAS.BLS_KEYSTORE_EIP2335_PBKDF_V4){var o={},s=d,a=s.CIPHERTEXT,u=s.SALT,c=s.CHECKSUM,p=s.IV,b=s.PUBKEY,m=4+a+u+c+p+b,g=t.readUInt32LE(i);if(i+=4,g!==m)throw new Error("Invalid data returned from Lattice. Expected EIP2335 data.");return o.iterations=t.readUInt32LE(i),i+=4,o.cipherText=t.slice(i,i+a),i+=a,o.salt=t.slice(i,i+u),i+=u,o.checksum=t.slice(i,i+c),i+=c,o.iv=t.slice(i,i+p),i+=p,o.pubkey=t.slice(i,i+b),i+=b,h(o,n.path)}throw new Error(f)};var h=function(e,r){try{var n=e.iterations,i=e.salt,s=e.checksum,a=e.iv,c=e.cipherText,l=e.pubkey;return t.from(JSON.stringify({version:4,uuid:(0,o.v4)(),path:(0,u.getPathStr)(r),pubkey:l.toString("hex"),crypto:{kdf:{function:"pbkdf2",params:{dklen:32,c:n,prf:"hmac-sha256",salt:i.toString("hex")},message:""},checksum:{function:"sha256",params:{},message:s.toString("hex")},cipher:{function:"aes-128-ctr",params:{iv:a.toString("hex")},message:c.toString("hex")}}}))}catch(e){throw Error("Failed to format EIP2335 return data: ".concat(e.toString()))}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/fetchEncData.js"}],[4544,{"../protocol":4552,"../shared/validators":4559,"../util":4560,bitwise:4023,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeGetAddressesResponse=r.encodeGetAddressesRequest=r.validateGetAddressesRequest=r.getAddresses=void 0;var s=o(e("bitwise")),a=e("../protocol"),u=e("../shared/validators"),c=e("../util");r.getAddresses=function(e){var t=e.client,o=e.startPath,s=e.n,c=e.flag;return n(this,void 0,void 0,(function(){var e,n,l,f,d,h,p,b,m,g,v,y,w,k;return i(this,(function(i){switch(i.label){case 0:return e=(0,u.validateConnectedClient)(t),n=e.url,l=e.sharedSecret,f=e.ephemeralPub,d=e.fwConstants,h=(0,u.validateWallet)(t.getActiveWallet()),p=(0,r.validateGetAddressesRequest)({startPath:o,n:s,flag:c}),b=p.startPath,m=p.n,g=p.flag,v=(0,r.encodeGetAddressesRequest)({startPath:b,n:m,flag:g,fwConstants:d,wallet:h}),[4,(0,a.encryptedSecureRequest)({data:v,requestType:a.LatticeSecureEncryptedRequestType.getAddresses,sharedSecret:l,ephemeralPub:f,url:n})];case 1:return y=i.sent(),w=y.decryptedData,k=y.newEphemeralPub,t.mutate({ephemeralPub:k}),[2,(0,r.decodeGetAddressesResponse)(w,g)]}}))}))};r.validateGetAddressesRequest=function(e){var t=e.startPath,r=e.n,n=e.flag;return{startPath:(0,u.validateStartPath)(t),n:(0,u.validateNAddresses)(r),flag:(0,u.validateIsUInt4)(n)}};r.encodeGetAddressesRequest=function(e){var r,n=e.startPath,i=e.n,o=e.flag,u=e.fwConstants,l=e.wallet;if(!((u.getAddressFlags||[]).indexOf(o)>-1&&(o===a.LatticeGetAddressesFlag.ed25519Pubkey||o===a.LatticeGetAddressesFlag.secp256k1Pubkey||o===a.LatticeGetAddressesFlag.bls12_381Pubkey))&&!(0,c.isValidAssetPath)(n,u))throw new Error("Derivation path or flag is not supported. Try updating Lattice firmware.");var f=53;if(u.varAddrPathSzAllowed)f+=1;else if(5!==n.length)throw new Error("Your Lattice firmware only supports derivation paths with 5 indices. Please upgrade.");var d=t.alloc(f),h=0;l.uid.copy(d,h),h+=32,u.varAddrPathSzAllowed&&(d.writeUInt8(n.length,h),h+=1);for(var p=0;p<5;p++){if(p<=n.length){var b=null!==(r=n[p])&&void 0!==r?r:0;d.writeUInt32BE(b,h)}h+=4}var m,g=0;if(u.addrFlagsAllowed){g=u.getAddressFlags&&u.getAddressFlags.indexOf(o)>-1?o:0;var v=s.default.nibble.read(g),y=s.default.nibble.read(i);m=s.default.byte.write(v.concat(y))}else m=i;return d.writeUInt8(m,h),h++,d};r.decodeGetAddressesResponse=function(e,t){var r=0,n=[],i=t===a.LatticeGetAddressesFlag.secp256k1Pubkey||t===a.LatticeGetAddressesFlag.ed25519Pubkey||t===a.LatticeGetAddressesFlag.bls12_381Pubkey;i&&(r+=1);for(var o=a.ProtocolConstants.msgSizes.secure.data.response.encrypted[a.LatticeSecureEncryptedRequestType.getAddresses];r<o;)if(i){var s=e.slice(r,r+65),u=s.every((function(e){return 0===e}));u||t!==a.LatticeGetAddressesFlag.ed25519Pubkey?u||t!==a.LatticeGetAddressesFlag.bls12_381Pubkey?u||n.push(s):n.push(s.slice(0,48)):n.push(s.slice(0,32)),r+=65}else{var c=e.slice(r,r+a.ProtocolConstants.addrStrLen);r+=a.ProtocolConstants.addrStrLen;var l=c.indexOf(0);l>0&&n.push(c.slice(0,l).toString())}return n}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/getAddresses.js"}],[4545,{"../protocol":4552,"../shared/validators":4559,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeGetKvRecordsResponse=r.encodeGetKvRecordsRequest=r.validateGetKvRequest=r.getKvRecords=void 0;var o=e("../protocol"),s=e("../shared/validators");r.getKvRecords=function(e){var t=e.client,a=e.type,u=e.n,c=e.start;return n(this,void 0,void 0,(function(){var e,n,l,f,d,h,p,b,m,g,v,y,w;return i(this,(function(i){switch(i.label){case 0:return e=(0,s.validateConnectedClient)(t),n=e.url,l=e.sharedSecret,f=e.ephemeralPub,d=e.fwConstants,h=(0,r.validateGetKvRequest)({type:a,n:u,start:c,fwConstants:d}),p=h.type,b=h.n,m=h.start,g=(0,r.encodeGetKvRecordsRequest)({type:p,n:b,start:m}),[4,(0,o.encryptedSecureRequest)({data:g,requestType:o.LatticeSecureEncryptedRequestType.getKvRecords,sharedSecret:l,ephemeralPub:f,url:n})];case 1:return v=i.sent(),y=v.decryptedData,w=v.newEphemeralPub,t.mutate({ephemeralPub:w}),[2,(0,r.decodeGetKvRecordsResponse)(y,d)]}}))}))};r.validateGetKvRequest=function(e){var t=e.fwConstants,r=e.n,n=e.type,i=e.start;if(!t.kvActionsAllowed)throw new Error("Unsupported. Please update firmware.");if(!r||r<1)throw new Error("You must request at least one record.");if(r>t.kvActionMaxNum)throw new Error("You may only request up to ".concat(t.kvActionMaxNum," records at once."));if(0!==n&&!n)throw new Error("You must specify a type.");if(0!==i&&!i)throw new Error("You must specify a type.");return{fwConstants:t,n:r,type:n,start:i}};r.encodeGetKvRecordsRequest=function(e){var r=e.type,n=e.n,i=e.start,o=t.alloc(9);return o.writeUInt32LE(r,0),o.writeUInt8(n,4),o.writeUInt32LE(i,5),o};r.decodeGetKvRecordsResponse=function(e,t){var r=0,n=e.readUInt32BE(r);r+=4;var i=parseInt(e.slice(r,r+1).toString("hex"),16);if(r+=1,i>t.kvActionMaxNum)throw new Error("Too many records fetched. Firmware error.");for(var o=[],s=0;s<i;s++){var a={};a.id=e.readUInt32BE(r),r+=4,a.type=e.readUInt32BE(r),r+=4,a.caseSensitive=1===parseInt(e.slice(r,r+1).toString("hex"),16),r+=1;var u=parseInt(e.slice(r,r+1).toString("hex"),16);r+=1,a.key=e.slice(r,r+u-1).toString(),r+=t.kvKeyMaxStrSz+1;var c=parseInt(e.slice(r,r+1).toString("hex"),16);r+=1,a.val=e.slice(r,r+c-1).toString(),r+=t.kvValMaxStrSz+1,o.push(a)}return{records:o,total:n,fetched:i}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/getKvRecords.js"}],[4546,{"./addKvRecords":4540,"./connect":4541,"./fetchActiveWallet":4542,"./fetchEncData":4543,"./getAddresses":4544,"./getKvRecords":4545,"./pair":4547,"./removeKvRecords":4548,"./sign":4549},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./addKvRecords"),r),i(e("./connect"),r),i(e("./fetchEncData"),r),i(e("./fetchActiveWallet"),r),i(e("./getAddresses"),r),i(e("./getKvRecords"),r),i(e("./pair"),r),i(e("./removeKvRecords"),r),i(e("./sign"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/index.js"}],[4547,{"../protocol":4552,"../shared/utilities":4558,"../shared/validators":4559,"../util":4560,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.encodePairRequest=r.pair=void 0;var o=e("../protocol"),s=e("../shared/utilities"),a=e("../shared/validators"),u=e("../util");r.pair=function(e){var t=e.client,s=e.pairingSecret;return n(this,void 0,void 0,(function(){var e,n,u,c,l,f,d,h;return i(this,(function(i){switch(i.label){case 0:return e=(0,a.validateConnectedClient)(t),n=e.url,u=e.sharedSecret,c=e.ephemeralPub,l=e.appName,f=e.key,d=(0,r.encodePairRequest)({pairingSecret:s,key:f,appName:l}),[4,(0,o.encryptedSecureRequest)({data:d,requestType:o.LatticeSecureEncryptedRequestType.finalizePairing,sharedSecret:u,ephemeralPub:c,url:n})];case 1:return h=i.sent().newEphemeralPub,t.mutate({ephemeralPub:h,isPaired:!0}),[4,t.fetchActiveWallet()];case 2:return i.sent(),[2,t.hasActiveWallet()]}}))}))};r.encodePairRequest=function(e){var r=e.key,n=e.pairingSecret,i=e.appName,o=(0,s.getPubKeyBytes)(r),a=t.alloc(25);n.length>0&&a.write(i);var c=(0,u.generateAppSecret)(o,a,t.from(n)),l=r.sign(c),f=(0,u.toPaddedDER)(l);return t.concat([a,f])}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/pair.js"}],[4548,{"../protocol":4552,"../shared/validators":4559,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.encodeRemoveKvRecordsRequest=r.validateRemoveKvRequest=r.removeKvRecords=void 0;var o=e("../protocol"),s=e("../shared/validators");r.removeKvRecords=function(e){var t=e.client,a=e.type,u=e.ids;return n(this,void 0,void 0,(function(){var e,n,c,l,f,d,h,p,b,m,g,v;return i(this,(function(i){switch(i.label){case 0:return e=(0,s.validateConnectedClient)(t),n=e.url,c=e.sharedSecret,l=e.ephemeralPub,f=e.fwConstants,d=(0,r.validateRemoveKvRequest)({fwConstants:f,type:a,ids:u}),h=d.type,p=d.ids,b=(0,r.encodeRemoveKvRecordsRequest)({type:h,ids:p,fwConstants:f}),[4,(0,o.encryptedSecureRequest)({data:b,requestType:o.LatticeSecureEncryptedRequestType.removeKvRecords,sharedSecret:c,ephemeralPub:l,url:n})];case 1:return m=i.sent(),g=m.decryptedData,v=m.newEphemeralPub,t.mutate({ephemeralPub:v}),[2,g]}}))}))};r.validateRemoveKvRequest=function(e){var t=e.fwConstants,r=e.type,n=e.ids;if(!t.kvActionsAllowed)throw new Error("Unsupported. Please update firmware.");if(!Array.isArray(n)||n.length<1)throw new Error("You must include one or more `ids` to removed.");if(n.length>t.kvRemoveMaxNum)throw new Error("Only up to ".concat(t.kvRemoveMaxNum," records may be removed at once."));if(0!==r&&!r)throw new Error("You must specify a type.");return{type:r,ids:n}};r.encodeRemoveKvRecordsRequest=function(e){var r=e.fwConstants,n=e.type,i=e.ids,o=t.alloc(5+4*r.kvRemoveMaxNum);o.writeUInt32LE(n,0),o.writeUInt8(i.length,4);for(var s=0;s<i.length;s++){var a=parseInt(i[s]);o.writeUInt32LE(a,5+4*s)}return o}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/removeKvRecords.js"}],[4549,{"../bitcoin":4534,"../constants":4538,"../ethereum":4539,"../genericSigning":4550,"../protocol":4552,"../shared/functions":4556,"../shared/validators":4559,"../util":4560,buffer:4096,"hash.js":4653},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeSignResponse=r.encodeSignRequest=r.sign=void 0;var s=e("hash.js"),a=o(e("../bitcoin")),u=e("../constants"),c=o(e("../ethereum")),l=e("../genericSigning"),f=e("../protocol"),d=e("../shared/functions"),h=e("../shared/validators"),p=e("../util");r.sign=function(e){var t=e.client,o=e.data,s=e.currency,a=e.cachedData,u=e.nextCode;return n(this,void 0,void 0,(function(){var e,n,c,l,p,b,m,g,v,y,w,k,j,_,T;return i(this,(function(i){switch(i.label){case 0:return e=(0,h.validateConnectedClient)(t),n=e.url,c=e.sharedSecret,l=e.ephemeralPub,p=e.fwConstants,b=(0,h.validateWallet)(t.getActiveWallet()),m=(0,d.buildTransaction)({data:o,currency:s,fwConstants:p}),g=m.requestData,v=m.isGeneric,y=(0,r.encodeSignRequest)({fwConstants:p,wallet:b,requestData:g,cachedData:a,nextCode:u}),w=y.payload,k=y.hasExtraPayloads,[4,(0,f.encryptedSecureRequest)({data:w,requestType:f.LatticeSecureEncryptedRequestType.sign,sharedSecret:c,ephemeralPub:l,url:n})];case 1:return j=i.sent(),_=j.decryptedData,T=j.newEphemeralPub,t.mutate({ephemeralPub:T}),k?[2,t.sign({data:o,currency:s,cachedData:g,nextCode:_.slice(0,8)})]:[2,(0,r.decodeSignResponse)({data:_,request:g,isGeneric:v,currency:s})]}}))}))};r.encodeSignRequest=function(e){var r,n,i,o,s,a=e.fwConstants,u=e.wallet,c=e.requestData,l=e.cachedData,d=e.nextCode;l&&d?(c=l,o=t.concat([d,c.extraDataPayloads.shift()]),s=f.LatticeSignSchema.extraData):(o=c.payload,s=c.schema);var h=t.alloc(2+a.reqMaxDataSz),p=0,b=c.extraDataPayloads&&Number(c.extraDataPayloads.length>0);return h.writeUInt8(b,p),p+=1,h.writeUInt8(s,p),p+=1,null===(r=u.uid)||void 0===r||r.copy(h,p),p+=null!==(i=null===(n=u.uid)||void 0===n?void 0:n.length)&&void 0!==i?i:0,o.copy(h,p),{payload:h,hasExtraPayloads:b}};r.decodeSignResponse=function(e){var r,n=e.data,i=e.request,o=e.isGeneric,f=e.currency,d=0;if(f===u.CURRENCIES.BTC){var h=i,b=a.default.getAddressFormat(h.origData.changePath),m=n.slice(d,d+20);d+=20;for(var g=a.default.getBitcoinAddress(m,b),v=[],y=[],w=0;d<n.length&&48===n[d];){var k=d,j=d+2+n[d+1];y.push(n.slice(k,j)),d+=74;var _=33*w+740,T=33*(w+1)+740;v.push(n.slice(_,T)),w+=1}var S={inputs:[],outputs:[]};S.outputs.push({value:h.origData.value,recipient:h.origData.recipient}),(null===(r=h.changeData)||void 0===r?void 0:r.value)&&h.changeData.value>0&&S.outputs.push({value:h.changeData.value,recipient:g});for(var x=0;x<y.length;x++)S.inputs.push({hash:h.origData.prevOuts[x].txHash,index:h.origData.prevOuts[x].index,sig:y[x],pubkey:v[x],signerPath:h.origData.prevOuts[x].signerPath});var E=a.default.serializeTx(S),O=E,A=t.from((0,s.sha256)().update(t.from(O,"hex")).digest("hex"),"hex");return{tx:E,txHash:(0,s.sha256)().update(A).digest("hex"),changeRecipient:g,sigs:y}}if(f!==u.CURRENCIES.ETH||o){if(f===u.CURRENCIES.ETH_MSG){C=(0,p.parseDER)(n.slice(d,d+2+n[d+1]));d+=74;var P=n.slice(d,d+20),I=c.default.validateEthereumMsgResponse({signer:P,sig:C},i);return{sig:{v:I.v,r:I.r.toString("hex"),s:I.s.toString("hex")},signer:P}}return(0,l.parseGenericSigningResponse)(n,d,i)}var C=(0,p.parseDER)(n.slice(d,d+2+n[d+1]));d+=74;var R=n.slice(d,d+20),B=c.default.buildEthRawTx(i,C,R),M=B.rawTx,L=B.sigWithV;return{tx:"0x".concat(M),txHash:"0x".concat(c.default.hashTransaction(M)),sig:{v:L.v,r:L.r.toString("hex"),s:L.s.toString("hex")},signer:R}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/functions/sign.js"}],[455,{},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),u=Math.pow(2,42),c=Math.pow(2,49),l=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<u?6:e<c?7:e<l?8:e<f?9:10}}}},{package:"@ensdomains/content-hash>multihashes>varint",file:"node_modules/@ensdomains/content-hash/node_modules/varint/length.js"}],[4550,{"./constants":4538,"./index":4551,"./protocol":4552,"./util":4560,buffer:4096,"hash.js/lib/hash/sha":4657,"js-sha3":4722},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.getEncodedPayload=r.parseGenericSigningResponse=r.buildGenericSigningMsgRequest=void 0;var n=e("hash.js/lib/hash/sha"),i=e("js-sha3"),o=e("./constants"),s=e("./index"),a=e("./protocol"),u=e("./util");r.buildGenericSigningMsgRequest=function(e){var c=e.signerPath,l=e.curveType,f=e.hashType,d=e.encodingType,h=void 0===d?null:d,p=e.decoder,b=void 0===p?null:p,m=e.omitPubkey,g=void 0!==m&&m,v=e.fwConstants,y=e.blsDst,w=void 0===y?s.Constants.SIGNING.BLS_DST.BLS_DST_NUL:y,k=v.extraDataFrameSz,j=v.extraDataMaxFrames,_=v.prehashAllowed,T=v.genericSigning,S=v.varAddrPathSzAllowed,x=T.curveTypes,E=T.encodingTypes,O=T.hashTypes,A=T.baseDataSz,P=T.baseReqSz,I=T.calldataDecoding,C=(0,r.getEncodedPayload)(e.payload,h,E),R=C.encoding,B=C.payloadBuf,M=B,L=B.length,N=A+j*k;if(!L)throw new Error("Payload could not be handled.");if(!(T&&k&&j&&_))throw new Error("Unsupported. Please update your Lattice firmware.");if(!(0,u.existsIn)(l,x))throw new Error("Unsupported curve type.");if(!(0,u.existsIn)(f,O))throw new Error("Unsupported hash type.");var D=b&&I&&b.length<=I.maxSz,F=D&&B.length+b.length<=N;if(D&&F){var U=t.alloc(8+b.length);U.writeUInt32LE(I.reserved,0),U.writeUInt32LE(b.length,4),t.from(b).copy(U,8),B=t.concat([B,U])}if(l===x.ED25519){if(f!==O.NONE)throw new Error("Signing on ed25519 requires unhashed message");c.forEach((function(e){if(e<o.HARDENED_OFFSET)throw new Error("Signing on ed25519 requires all signer path indices be hardened.")}))}else if(l===x.BLS12_381_G2){var H=t.alloc(4);H.writeUInt32LE(w),B=t.concat([H,B]),L+=H.length}var G=t.alloc(P),z=0;G.writeUInt32LE(R,z),z+=4,G.writeUInt8(f,z),z+=1,G.writeUInt8(l,z),z+=1;var W=(0,u.buildSignerPathBuf)(c,S);W.copy(G,z),z+=W.length,G.writeUInt8(g?1:0,z),z+=1;var q=[],V=null,K=!1;if(B.length>A)if(_&&B.length>N){G.writeUInt16LE(B.length,z),z+=2,K=!0;var $=B.slice(0,L);if(f===O.NONE)throw new Error("Message too large to send and could not be prehashed (hashType=NONE).");if(f===O.KECCAK256)V=t.from((0,i.keccak256)($),"hex");else{if(f!==O.SHA256)throw new Error("Unsupported hash type.");V=t.from((0,n.sha256)().update($).digest("hex"),"hex")}}else{(0,u.splitFrames)(B.slice(A),k).forEach((function(e){var r=t.alloc(4);r.writeUInt32LE(e.length,0),q.push(t.concat([r,e]))}))}return K||(G.writeUInt16LE(L,z),z+=2),(V||B).copy(G,z),{payload:G,extraDataPayloads:q,schema:a.LatticeSignSchema.generic,curveType:l,encodingType:h,hashType:f,omitPubkey:g,origPayloadBuf:M}};r.parseGenericSigningResponse=function(e,r,n){var i={pubkey:null,sig:null};if(n.curveType===s.Constants.SIGNING.CURVES.SECP256K1){if(n.omitPubkey)r+=65;else{var o=e.readUInt8(r);if(r+=1,2===o||3===o)i.pubkey=t.alloc(33),i.pubkey.writeUInt8(o,0),e.slice(r,r+32).copy(i.pubkey,1);else{if(4!==o)throw new Error("Bad compression byte in signing response.");i.pubkey=t.alloc(65),i.pubkey.writeUInt8(o,0),e.slice(r).copy(i.pubkey,1)}r+=64}if(i.sig=(0,u.parseDER)(e.slice(r,r+2+e[r+1])),i.sig.r=(0,u.fixLen)(i.sig.r,32),i.sig.s=(0,u.fixLen)(i.sig.s,32),n.encodingType===s.Constants.SIGNING.ENCODINGS.EVM){var a=(0,u.getV)(n.origPayloadBuf,i);i.sig.v=a.toArrayLike(t)}}else if(n.curveType===s.Constants.SIGNING.CURVES.ED25519)n.omitPubkey||(i.pubkey=t.alloc(32),e.slice(r,r+32).copy(i.pubkey)),r+=32,i.sig={r:e.slice(r,r+32),s:e.slice(r+32,r+64)};else{if(n.curveType!==s.Constants.SIGNING.CURVES.BLS12_381_G2)throw new Error("Unsupported curve.");n.omitPubkey||(i.pubkey=t.alloc(48),e.slice(r,r+48).copy(i.pubkey)),r+=48,i.sig=t.alloc(96),e.slice(r,r+96).copy(i.sig)}return i};r.getEncodedPayload=function(e,r,n){if(r||(r=s.Constants.SIGNING.ENCODINGS.NONE),!(0,u.existsIn)(r,n))throw new Error("Encoding not supported by Lattice firmware. You may want to update.");if(!e)throw new Error("No payload included");return{payloadBuf:"string"==typeof e&&"0x"===e.slice(0,2)?t.from(e.slice(2),"hex"):t.from(e),encoding:r}}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/genericSigning.js"}],[4551,{"./api":4530,"./calldata/index":4536,"./client":4537,"./constants":4538,"./util":4560},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.Utils=r.Constants=r.Client=r.Calldata=void 0;var o=e("./calldata/index");Object.defineProperty(r,"Calldata",{enumerable:!0,get:function(){return o.CALLDATA}});var s=e("./client");Object.defineProperty(r,"Client",{enumerable:!0,get:function(){return s.Client}});var a=e("./constants");Object.defineProperty(r,"Constants",{enumerable:!0,get:function(){return a.EXTERNAL}});var u=e("./util");Object.defineProperty(r,"Utils",{enumerable:!0,get:function(){return u.EXTERNAL}}),i(e("./api"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/index.js"}],[4552,{"./latticeConstants":4553,"./secureMessages":4554},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./latticeConstants"),r),i(e("./secureMessages"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/protocol/index.js"}],[4553,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i,o,s,a;Object.defineProperty(r,"__esModule",{value:!0}),r.ProtocolConstants=r.LatticeEncDataSchema=r.LatticeSignBlsDst=r.LatticeSignEncoding=r.LatticeSignCurve=r.LatticeSignHash=r.LatticeSignSchema=r.LatticeGetAddressesFlag=r.LatticeSecureEncryptedRequestType=r.LatticeMsgType=r.LatticeProtocolVersion=r.LatticeSecureMsgType=r.LatticeResponseCode=void 0,function(e){e[e.success=0]="success",e[e.invalidMsg=128]="invalidMsg",e[e.unsupportedVersion=129]="unsupportedVersion",e[e.deviceBusy=130]="deviceBusy",e[e.userTimeout=131]="userTimeout",e[e.userDeclined=132]="userDeclined",e[e.pairFailed=133]="pairFailed",e[e.pairDisabled=134]="pairDisabled",e[e.permissionDisabled=135]="permissionDisabled",e[e.internalError=136]="internalError",e[e.gceTimeout=137]="gceTimeout",e[e.wrongWallet=138]="wrongWallet",e[e.deviceLocked=139]="deviceLocked",e[e.disabled=140]="disabled",e[e.already=141]="already",e[e.invalidEphemId=142]="invalidEphemId"}(s=r.LatticeResponseCode||(r.LatticeResponseCode={})),function(e){e[e.connect=1]="connect",e[e.encrypted=2]="encrypted"}(r.LatticeSecureMsgType||(r.LatticeSecureMsgType={})),function(e){e[e.v1=1]="v1"}(r.LatticeProtocolVersion||(r.LatticeProtocolVersion={})),function(e){e[e.response=0]="response",e[e.secure=2]="secure"}(r.LatticeMsgType||(r.LatticeMsgType={})),function(e){e[e.finalizePairing=0]="finalizePairing",e[e.getAddresses=1]="getAddresses",e[e.sign=3]="sign",e[e.getWallets=4]="getWallets",e[e.getKvRecords=7]="getKvRecords",e[e.addKvRecords=8]="addKvRecords",e[e.removeKvRecords=9]="removeKvRecords",e[e.fetchEncryptedData=12]="fetchEncryptedData",e[e.test=13]="test"}(a=r.LatticeSecureEncryptedRequestType||(r.LatticeSecureEncryptedRequestType={})),function(e){e[e.none=0]="none",e[e.secp256k1Pubkey=3]="secp256k1Pubkey",e[e.ed25519Pubkey=4]="ed25519Pubkey",e[e.bls12_381Pubkey=5]="bls12_381Pubkey"}(r.LatticeGetAddressesFlag||(r.LatticeGetAddressesFlag={})),function(e){e[e.bitcoin=0]="bitcoin",e[e.ethereum=1]="ethereum",e[e.ethereumMsg=3]="ethereumMsg",e[e.extraData=4]="extraData",e[e.generic=5]="generic"}(r.LatticeSignSchema||(r.LatticeSignSchema={})),function(e){e[e.none=0]="none",e[e.keccak256=1]="keccak256",e[e.sha256=2]="sha256"}(r.LatticeSignHash||(r.LatticeSignHash={})),function(e){e[e.secp256k1=0]="secp256k1",e[e.ed25519=1]="ed25519",e[e.bls12_381=2]="bls12_381"}(r.LatticeSignCurve||(r.LatticeSignCurve={})),function(e){e[e.none=1]="none",e[e.solana=2]="solana",e[e.evm=4]="evm",e[e.eth_deposit=5]="eth_deposit"}(r.LatticeSignEncoding||(r.LatticeSignEncoding={})),function(e){e[e.NUL=1]="NUL",e[e.POP=2]="POP"}(r.LatticeSignBlsDst||(r.LatticeSignBlsDst={})),function(e){e[e.eip2335=0]="eip2335"}(r.LatticeEncDataSchema||(r.LatticeEncDataSchema={})),r.ProtocolConstants={aesIv:[109,121,115,101,99,114,101,116,112,97,115,115,119,111,114,100],addrStrLen:129,pairingStatus:{notPaired:0,paired:1},responseMsg:(n={},n[s.success]="",n[s.invalidMsg]="Invalid Request",n[s.unsupportedVersion]="Unsupported Version",n[s.deviceBusy]="Device Busy",n[s.userTimeout]="Timeout waiting for user",n[s.userDeclined]="Request declined by user",n[s.pairFailed]="Pairing failed",n[s.pairDisabled]="Pairing is currently disabled",n[s.permissionDisabled]="Automated signing is currently disabled",n[s.internalError]="Device Error",n[s.gceTimeout]="Device Timeout",n[s.wrongWallet]="Active wallet does not match request",n[s.deviceLocked]="Device Locked",n[s.disabled]="Feature Disabled",n[s.already]="Record already exists on device",n[s.invalidEphemId]="Request failed - needs resync",n),msgSizes:{header:8,checksum:4,secure:{payload:{request:{connect:66,encrypted:1733},response:{connect:215,encrypted:3457}},data:{request:{connect:65,encrypted:(i={encryptedData:1728},i[a.finalizePairing]=99,i[a.getAddresses]=54,i[a.sign]=1680,i[a.getWallets]=0,i[a.getKvRecords]=9,i[a.addKvRecords]=1391,i[a.removeKvRecords]=405,i[a.fetchEncryptedData]=1025,i[a.test]=506,i)},response:{encrypted:(o={encryptedData:1728},o[a.finalizePairing]=0,o[a.getAddresses]=1290,o[a.sign]=1090,o[a.getWallets]=142,o[a.getKvRecords]=1395,o[a.addKvRecords]=0,o[a.removeKvRecords]=0,o[a.fetchEncryptedData]=1608,o[a.test]=1646,o)}}}}}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/protocol/latticeConstants.js"}],[4554,{"../shared/functions":4556,"../shared/validators":4559,"../util":4560,"./latticeConstants":4553,buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.encryptedSecureRequest=r.connectSecureRequest=void 0;var o=e("./latticeConstants"),s=e("../util"),a=e("../shared/functions"),u=e("../shared/validators"),c=o.ProtocolConstants.msgSizes,l=c.secure;function f(e,r,n){if(4!==e.length)throw new Error("msgId must be four bytes");if(r!==o.LatticeSecureMsgType.connect&&r!==o.LatticeSecureMsgType.encrypted)throw new Error("Invalid Lattice secure request type");var i,a=r===o.LatticeSecureMsgType.connect&&n.length===l.payload.request.connect-1,u=r===o.LatticeSecureMsgType.encrypted&&n.length===l.payload.request.encrypted-1,f=c.header+c.checksum,d={requestType:r,data:n};if(a)i=l.payload.request.connect;else{if(!u)throw new Error("Invalid Lattice secure request payload size");i=l.payload.request.encrypted}f+=i;var h={header:{version:o.LatticeProtocolVersion.v1,type:o.LatticeMsgType.secure,id:e,len:i},payload:d},p=t.alloc(f),b=0;if(p.writeUInt8(h.header.version,b),b+=1,p.writeUInt8(h.header.type,b),b+=1,h.header.id.copy(p,b),b+=h.header.id.length,p.writeUInt16BE(h.header.len,b),b+=2,p.writeUInt8(h.payload.requestType,b),b+=1,h.payload.data.copy(p,b),b+=h.payload.data.length,p.writeUInt32BE((0,s.checksum)(p.slice(0,b)),b),(b+=4)!==f)throw new Error("Failed to build request message");return p}function d(e){var t=e.encPayloadData,r=e.requestType,n=e.sharedSecret,i=(0,s.aes256_decrypt)(t,n),o=65+l.data.response.encrypted[r],a={ephemeralPub:i.slice(0,65),data:i.slice(65,o),checksum:i.readUInt32BE(o)},u=(0,s.checksum)(i.slice(0,o));if(a.checksum!==u)throw new Error("Checksum mismatch in decrypted Lattice data");var c=l.data.response.encrypted[r];if(a.data.length!==c)throw new Error("Incorrect response data returned from Lattice");var f=(0,s.getP256KeyPairFromPub)(a.ephemeralPub);return{decryptedData:a.data,newEphemeralPub:f}}r.connectSecureRequest=function(e){var r=e.url,u=e.pubkey;return n(this,void 0,void 0,(function(){var e,n,c,d;return i(this,(function(i){switch(i.label){case 0:return e=function(e){var r=t.alloc(l.data.request.connect);return e.pubkey.copy(r,0),r}({pubkey:u}),n=(0,s.randomBytes)(4),c=f(n,o.LatticeSecureMsgType.connect,e),[4,(0,a.request)({url:r,payload:c})];case 1:if((d=i.sent()).length!==l.payload.response.connect-1)throw new Error("Wrong Lattice response message size.");return[2,d]}}))}))},r.encryptedSecureRequest=function(e){var r=e.data,c=e.requestType,h=e.sharedSecret,p=e.ephemeralPub,b=e.url;return n(this,void 0,void 0,(function(){var e,n,m,g;return i(this,(function(i){switch(i.label){case 0:return e=(0,s.randomBytes)(4),n=function(e){var r=e.data,n=e.requestType,i=e.ephemeralPub,o=e.sharedSecret;if(r.length>l.data.request.encrypted.encryptedData)throw new Error("Encrypted request data too large");(0,u.validateEphemeralPub)(i);var c=l.data.request.encrypted[n];if(r.length!==c)throw new Error("Invalid request datasize (wanted ".concat(c,", got ").concat(r.length,")"));var f=t.alloc(1+c);f[0]=n,r.copy(f,1);var d=(0,s.checksum)(f),h=t.alloc(l.data.request.encrypted.encryptedData);f.copy(h,0),h.writeUInt32LE(d,f.length);var p=(0,s.aes256_encrypt)(h,o),b=(0,a.getEphemeralId)(o),m=t.alloc(l.payload.request.encrypted-1);return m.writeUInt32LE(b),p.copy(m,4),m}({data:r,requestType:c,ephemeralPub:p,sharedSecret:h}),m=f(e,o.LatticeSecureMsgType.encrypted,n),[4,(0,a.request)({url:b,payload:m})];case 1:if((g=i.sent()).length!==l.payload.response.encrypted-1)throw new Error("Wrong Lattice response message size.");return[2,d({encPayloadData:g.slice(0,l.data.response.encrypted.encryptedData),requestType:c,sharedSecret:h})]}}))}))}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/protocol/secureMessages.js"}],[4555,{"../protocol":4552},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.LatticeResponseError=void 0;var o=e("../protocol"),s=function(e){function t(t,r){var n=this,i=function(e){var t=e.responseCode,r=e.errorMessage,n=[];return t&&n.push("".concat(o.ProtocolConstants.responseMsg[t])),r&&(n.push("Error Message: "),n.push(r)),n.join("\n")}({responseCode:t,errorMessage:r});return(n=e.call(this,i)||this).responseCode=t,n.errorMessage=r,n.name="LatticeResponseError",n.responseCode=t,n.errorMessage=r,n}return i(t,e),t}(Error);r.LatticeResponseError=s}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/shared/errors.js"}],[4556,{"../bitcoin":4534,"../constants":4538,"../ethereum":4539,"../genericSigning":4550,"../util":4560,"./errors":4555,"./predicates":4557,"./validators":4559,buffer:4096,"hash.js/lib/hash/sha":4657},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},o=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])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getEphemeralId=r.retryWrapper=r.buildRetryWrapper=r.request=r.buildTransaction=void 0;var a=e("hash.js/lib/hash/sha"),u=s(e("../bitcoin")),c=e("../constants"),l=s(e("../ethereum")),f=e("../genericSigning"),d=e("../util"),h=e("./errors"),p=e("./predicates"),b=e("./validators");r.buildTransaction=function(e){var t=e.data,r=e.currency,i=e.fwConstants;if("ETH"===r&&(0,p.shouldUseEVMLegacyConverter)(i)){console.log("Using the legacy ETH signing path. This will soon be deprecated. Please switch to general signing request.");var o=void 0;try{o=l.default.ethConvertLegacyToGenericReq(t)}catch(e){throw new Error("Could not convert legacy request. Please switch to a general signing request. See gridplus-sdk docs for more information.")}return t={fwConstants:i,encodingType:c.EXTERNAL.SIGNING.ENCODINGS.EVM,curveType:c.EXTERNAL.SIGNING.CURVES.SECP256K1,hashType:c.EXTERNAL.SIGNING.HASHES.KECCAK256,signerPath:t.signerPath,payload:o},{requestData:(0,f.buildGenericSigningMsgRequest)(n(n({},t),{fwConstants:i})),isGeneric:!0}}return"ETH"===r?{requestData:l.default.buildEthereumTxRequest(n(n({},t),{fwConstants:i})),isGeneric:!1}:"ETH_MSG"===r?{requestData:l.default.buildEthereumMsgRequest(n(n({},t),{fwConstants:i})),isGeneric:!1}:"BTC"===r?{requestData:u.default.buildBitcoinTxRequest(n(n({},t),{fwConstants:i})),isGeneric:!1}:{requestData:(0,f.buildGenericSigningMsgRequest)(n(n({},t),{fwConstants:i})),isGeneric:!0}};r.request=function(e){var t=e.url,r=e.payload,n=e.timeout,s=void 0===n?6e4:n;return i(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2,(0,d.fetchWithTimeout)(t,{method:"POST",body:JSON.stringify({data:r}),headers:{"Content-Type":"application/json"},timeout:s}).catch(b.validateRequestError).then((function(e){return e.json()})).then((function(e){if(!e||!e.message)throw new Error("Invalid response");if(200!==e.status)throw new Error("Error code ".concat(e.status,": ").concat(e.message));var t=(0,d.parseLattice1Response)(e.message),r=t.data,n=t.errorMessage,i=t.responseCode;if(n||i)throw new h.LatticeResponseError(i,n);return r}))]}))}))};r.buildRetryWrapper=function(e,t){return function(i,o){return(0,r.retryWrapper)({fn:i,params:n(n({},o),{client:e}),retries:t,client:e})}};r.retryWrapper=function(e){var t=e.fn,s=e.params,a=e.retries,u=e.client;return i(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2,t(n({},s)).catch((function(e){return i(void 0,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return n=e.errorMessage,i=e.responseCode,(n||i)&&a?(0,p.isDeviceBusy)(i)?[4,(c=3e3,new Promise((function(e){return setTimeout(e,c)})))]:[3,2]:[3,8];case 1:case 3:case 5:return o.sent(),[3,7];case 2:return!(0,p.isWrongWallet)(i)||u.skipRetryOnWrongWallet?[3,4]:[4,u.fetchActiveWallet()];case 4:return(0,p.isInvalidEphemeralId)(i)?[4,u.connect(u.deviceId)]:[3,6];case 6:case 8:throw e;case 7:return[2,(0,r.retryWrapper)({fn:t,params:s,retries:a-1,client:u})]}var c}))}))}))]}))}))};r.getEphemeralId=function(e){var r=t.from((0,a.sha256)().update(e).digest("hex"),"hex");return parseInt(r.slice(0,4).toString("hex"),16)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/shared/functions.js"}],[4557,{"../protocol":4552,"./utilities":4558},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shouldUseEVMLegacyConverter=r.doesFetchWalletsOnLoad=r.isInvalidEphemeralId=r.isWrongWallet=r.isDeviceBusy=void 0;var n=e("../protocol"),i=e("./utilities");r.isDeviceBusy=function(e){return e===n.LatticeResponseCode.deviceBusy||e===n.LatticeResponseCode.gceTimeout};r.isWrongWallet=function(e){return e===n.LatticeResponseCode.wrongWallet};r.isInvalidEphemeralId=function(e){return e===n.LatticeResponseCode.invalidEphemId};r.doesFetchWalletsOnLoad=function(e){return(0,i.isFWSupported)(e,{major:0,minor:14,fix:1})};r.shouldUseEVMLegacyConverter=function(e){return e.genericSigning&&e.genericSigning.encodingTypes&&e.genericSigning.encodingTypes.EVM}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/shared/predicates.js"}],[4558,{"../constants":4538,buffer:4096},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.getPathStr=r.isFWSupported=r.parseWallets=r.getSharedSecret=r.getPubKeyBytes=void 0;var n=e("../constants");r.getPubKeyBytes=function(e,r){void 0===r&&(r=!1);var n=e.getPublic().encode("hex"),i=t.from(n,"hex");if(!0===r){var o=i.slice(1,33).reverse(),s=i.slice(33,65).reverse();return t.concat([i[0],o,s])}return i};r.getSharedSecret=function(e,r){return t.from(e.derive(r.getPublic()).toArray("be",32))};r.parseWallets=function(e){var t=0,r={internal:{uid:undefined,capabilities:undefined,name:undefined,external:!1},external:{uid:undefined,capabilities:undefined,name:undefined,external:!0}};return r.internal.uid=e.slice(t,t+32),t+=71,r.external.uid=e.slice(t,t+32),r};r.isFWSupported=function(e,t){var r=e.major,n=e.minor,i=e.fix,o=t.major,s=t.minor,a=t.fix;return r>o||r>=o&&n>s||r>=o&&n>=s&&i>=a};r.getPathStr=function(e){var t="m";return e.forEach((function(e){e>=n.HARDENED_OFFSET?t+="/".concat(e-n.HARDENED_OFFSET,"'"):t+="/".concat(e)})),t}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/shared/utilities.js"}],[4559,{"../constants":4538,"../util":4560,"lodash/isEmpty":4881},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.isValid4ByteResponse=r.isValidBlockExplorerResponse=r.validateKvRecord=r.validateKvRecords=r.validateActiveWallets=r.validateKey=r.validateSharedSecret=r.validateEphemeralPub=r.validateConnectedClient=r.validateWallet=r.validateRequestError=r.validateFwVersion=r.validateFwConstants=r.validateBaseUrl=r.validateUrl=r.validateAppName=r.validateDeviceId=r.validateStartPath=r.validateNAddresses=r.validateIsUInt4=void 0;var i=e("../constants"),o=e("../util"),s=n(e("lodash/isEmpty"));r.validateIsUInt4=function(e){if("number"!=typeof e||!(0,o.isUInt4)(e))throw new Error("Must be an integer between 0 and 15 inclusive");return e};r.validateNAddresses=function(e){if(!e)throw new Error("The number of addresses is required.");if(e>i.MAX_ADDR)throw new Error("You may only request ".concat(i.MAX_ADDR," addresses at once."));return e};r.validateStartPath=function(e){if(!e)throw new Error("Start path is required");if(e.length<1||e.length>5)throw new Error("Path must include between 1 and 5 indices");return e};r.validateDeviceId=function(e){if(!e)throw new Error("No device ID has been stored. Please connect with your device ID first.");return e};r.validateAppName=function(e){if(!e)throw new Error("Name is required.");if(e.length<5||e.length>24)throw new Error("Invalid length for name provided. Must be 5-24 characters.");return e};r.validateUrl=function(e){if(!e)throw new Error("URL does not exist. Please reconnect.");try{new URL(e)}catch(e){throw new Error("Invalid URL provided. Please use a valid URL.")}return e};r.validateBaseUrl=function(e){if(!e)throw new Error("Base URL is required.");try{new URL(e)}catch(e){throw new Error("Invalid Base URL provided. Please use a valid URL.")}return e};r.validateFwConstants=function(e){if(!e)throw new Error("Firmware constants do not exist. Please reconnect.");return e};r.validateFwVersion=function(e){if(!e)throw new Error("Firmware version does not exist. Please reconnect.");if("number"!=typeof e.fix||"number"!=typeof e.minor||"number"!=typeof e.major)throw new Error("Firmware version improperly formatted. Please reconnect.");return e};r.validateRequestError=function(e){if("ECONNABORTED"===e.code&&"ETIME"===e.errno)throw new Error("Timeout waiting for device. Please ensure it is connected to the internet and try again in a minute.");throw new Error("Failed to make request to device:\n".concat(e.message))};r.validateWallet=function(e){if(!e||null===e)throw new Error("No active wallet.");return e};r.validateConnectedClient=function(e){return{appName:(0,r.validateAppName)(e.getAppName()),ephemeralPub:(0,r.validateEphemeralPub)(e.ephemeralPub),sharedSecret:(0,r.validateSharedSecret)(e.sharedSecret),url:(0,r.validateUrl)(e.url),fwConstants:(0,r.validateFwConstants)(e.getFwConstants()),fwVersion:(0,r.validateFwVersion)(e.getFwVersion()),key:(0,r.validateKey)(e.key)}};r.validateEphemeralPub=function(e){if(!e)throw new Error("`ephemeralPub` (ephemeral public key) is required. Please reconnect.");return e};r.validateSharedSecret=function(e){if(!e)throw new Error("Shared secret required. Please reconnect.");return e};r.validateKey=function(e){if(!e)throw new Error("Key is required. Please reconnect.");return e};r.validateActiveWallets=function(e){var t,r,n,o;if(!e||(null===(r=null===(t=null==e?void 0:e.internal)||void 0===t?void 0:t.uid)||void 0===r?void 0:r.equals(i.EMPTY_WALLET_UID))&&(null===(o=null===(n=null==e?void 0:e.external)||void 0===n?void 0:n.uid)||void 0===o?void 0:o.equals(i.EMPTY_WALLET_UID)))throw new Error("No active wallet.");return e};r.validateKvRecords=function(e,t){if(!t||!t.kvActionsAllowed)throw new Error("Unsupported. Please update firmware.");if("object"!=typeof e||Object.keys(e).length<1)throw new Error("One or more key-value mapping must be provided in `records` param.");if(Object.keys(e).length>t.kvActionMaxNum)throw new Error("Too many keys provided. Please only provide up to ".concat(t.kvActionMaxNum,"."));return e};r.validateKvRecord=function(e,t){var r=e.key,n=e.val;if("string"!=typeof r||String(r).length>t.kvKeyMaxStrSz)throw new Error("Key ".concat(r," too large. Must be <=").concat(t.kvKeyMaxStrSz," characters."));if("string"!=typeof n||String(n).length>t.kvValMaxStrSz)throw new Error("Value ".concat(n," too large. Must be <=").concat(t.kvValMaxStrSz," characters."));if(0===String(r).length||0===String(n).length)throw new Error("Keys and values must be >0 characters.");if(!i.ASCII_REGEX.test(r)||!i.ASCII_REGEX.test(n))throw new Error("Unicode characters are not supported.");return{key:r,val:n}};r.isValidBlockExplorerResponse=function(e){try{var t=JSON.parse(e.result);return!(0,s.default)(t)}catch(e){return!1}};r.isValid4ByteResponse=function(e){try{return!(0,s.default)(e.results)}catch(e){return!1}}}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/shared/validators.js"}],[456,{cids:4127},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("cids");r.cidForWeb=e=>{let t=new n(e);0===t.version&&(t=t.toV1());let r=t.toString("base32");if(r.length>63){const e=t.toString("base36");if(e.length<=63)return e;throw new TypeError("CID is longer than DNS limit of 63 characters and is not compatible with public gateways")}return r};r.cidV0ToV1Base32=e=>{let t=new n(e);return 0===t.version&&(t=t.toV1()),t.toString("base32")}}}},{package:"@ensdomains/content-hash",file:"node_modules/@ensdomains/content-hash/src/helpers.js"}],[4560,{".":4551,"./constants":4538,"./protocol":4552,"./shared/validators":4559,"@ethereumjs/tx":482,"aes-js":3835,"bignumber.js":4631,"bn.js":4035,buffer:4096,"crc-32":4172,elliptic:4278,"hash.js/lib/hash/sha":4657,"js-sha3":4722,"lodash/inRange":4875,"lodash/isInteger":4884,rlp:5349,secp256k1:5576},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},o=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])}}},s=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 __values?__values(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)}))}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.EXTERNAL=r.getV=r.generateAppSecret=r.fetchCalldataDecoder=r.fetchWithTimeout=r.selectDefFrom4byteABI=r.isUInt4=r.randomBytes=r.existsIn=r.isAsciiStr=r.buildSignerPathBuf=r.getP256KeyPairFromPub=r.getP256KeyPair=r.parseDER=r.aes256_decrypt=r.aes256_encrypt=r.fixLen=r.ensureHexBuffer=r.splitFrames=r.isValidAssetPath=r.toPaddedDER=r.checksum=r.parseLattice1Response=void 0;var u,c=e("@ethereumjs/tx"),l=a(e("aes-js")),f=a(e("bignumber.js")),d=e("bn.js"),h=a(e("crc-32")),p=a(e("elliptic")),b=e("hash.js/lib/hash/sha"),m=e("js-sha3"),g=a(e("lodash/inRange")),v=a(e("lodash/isInteger")),y=e("rlp"),w=e("secp256k1"),k=e("."),j=e("./constants"),_=e("./protocol"),T=e("./shared/validators"),S=j.BIP_CONSTANTS.COINS,x=j.BIP_CONSTANTS.PURPOSES,E=p.default.ec;r.parseLattice1Response=function(e){var n={errorMessage:null,data:null},i=t.from(e,"hex"),o=0,s=i.readUInt8(o);if(o++,s!==j.VERSION_BYTE)return n.errorMessage="Incorrect protocol version. Please update your SDK",n;var a=i.readUInt8(o);if(o++,0!==a)return n.errorMessage="Incorrect response from Lattice1",n;i.readUInt32BE(o),o+=4;var u=i.readUInt16BE(o);o+=2;var c=i.slice(o,o+u);o+=u;var l=c.readUInt8(0);if(l!==_.LatticeResponseCode.success){var f=_.ProtocolConstants.responseMsg[l];return n.errorMessage="[Lattice] ".concat(f||"Unknown Error"),n.responseCode=l,n}return n.data=c.slice(1,c.length),i.readUInt32BE(o)!==(0,r.checksum)(i.slice(0,i.length-4))?(n.errorMessage="Invalid checksum from device response",n.data=null,n):n};r.checksum=function(e){return h.default.buf(e)>>>0};r.toPaddedDER=function(e){var r=t.alloc(74);return t.from(e.toDER()).copy(r),r};r.isValidAssetPath=function(e,t){var r=[x.ETH,x.BTC_LEGACY,x.BTC_WRAPPED_SEGWIT,x.BTC_SEGWIT],n=[S.ETH,S.BTC,S.BTC_TESTNET];return!((e[1]===S.BTC||e[1]===S.BTC_TESTNET)&&e[0]!==x.BTC_WRAPPED_SEGWIT&&!t.allowBtcLegacyAndSegwitAddrs)&&(r.indexOf(e[0])>=0&&(n.indexOf(e[1])>=0||[60,61,966,700,9006,9e3,1007,553,178,137,37310,108,40,889,1987,820,6060,1620,1313114,76,246529,246785,1001,227,916,464,2221,344,73799,246].indexOf(e[1]-j.HARDENED_OFFSET)>0))};r.splitFrames=function(e,t){for(var r=[],n=Math.ceil(e.length/t),i=0,o=0;o<n;o++)r.push(e.slice(i,i+t)),i+=t;return r};r.ensureHexBuffer=function(e,r){void 0===r&&(r=!0);try{if(null===e||0===e&&!0===r)return t.alloc(0);var n="number"==typeof e||function(e){var t=new f.default(e).toFixed().split(".").join(""),r=new String(e);return t.slice(0,8)===r.slice(0,8)}(e);return(e=n?"".concat(new f.default(e).toString(16)):"string"==typeof e&&"0x"===e.slice(0,2)?e.slice(2):e.toString("hex")).length%2>0&&(e="0".concat(e)),"00"!==e||n?t.from(e,"hex"):t.alloc(0)}catch(t){throw new Error("Cannot convert ".concat(e.toString()," to hex buffer (").concat(t.toString(),")"))}};r.fixLen=function(e,r){var n=t.alloc(r);return e.length<r?(e.copy(n,r-e.length),n):e.slice(-r)};r.aes256_encrypt=function(e,r){var n=t.from(_.ProtocolConstants.aesIv),i=new l.default.ModeOfOperation.cbc(r,n),o=e.length%16==0?e:l.default.padding.pkcs7.pad(e);return t.from(i.encrypt(o))};r.aes256_decrypt=function(e,r){var n=t.from(_.ProtocolConstants.aesIv),i=new l.default.ModeOfOperation.cbc(r,n);return t.from(i.decrypt(e))};r.parseDER=function(e){if(48!==e[0]||2!==e[2])throw new Error("Failed to decode DER signature");var t=3,r=e[t];t++;var n=e.slice(t,t+r);if(2!==e[t+=r])throw new Error("Failed to decode DER signature");var i=e[++t];return t++,{r:n,s:e.slice(t,t+i)}};r.getP256KeyPair=function(e){return u===undefined&&(u=new E("p256")),u.keyFromPrivate(e,"hex")};r.getP256KeyPairFromPub=function(e){return u===undefined&&(u=new E("p256")),u.keyFromPublic(e,"hex")};r.buildSignerPathBuf=function(e,r){var n=t.alloc(24),i=0;if(r&&e.length>5)throw new Error("Signer path must be <=5 indices.");if(!r&&5!==e.length)throw new Error("Your Lattice firmware only supports 5-index derivation paths. Please upgrade.");n.writeUInt32LE(e.length,i),i+=4;for(var o=0;o<5;o++)o<e.length?n.writeUInt32LE(e[o],i):n.writeUInt32LE(0,i),i+=4;return n};r.isAsciiStr=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)return!1;for(var r=t?[32,10]:[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(r.indexOf(i)<0&&(i<32||i>127))return!1}return!0};r.existsIn=function(e,t){return Object.keys(t).some((function(r){return t[r]===e}))};r.randomBytes=function(e){for(var r=t.alloc(e),n=0;n<e;n++)r[n]=Math.round(255*Math.random());return r};function O(e){return i(this,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,fetch(j.EXTERNAL_NETWORKS_BY_CHAIN_ID_URL).then((function(e){return e.json()}))];case 1:return(t=n.sent())?[2,t[e]]:[2,undefined];case 2:return r=n.sent(),console.warn("Fetching external networks failed.\n",r),[3,3];case 3:return[2]}}))}))}function A(e,t){var r;if(e.length>1&&console.warn("WARNING: There are multiple results. Using the first one."),e.sort((function(e,t){return new Date(e.created_at).getTime()-new Date(t.created_at).getTime()})).find((function(e){try{return!!(r=k.Calldata.EVM.parsers.parseCanonicalName(t,e.text_signature))}catch(e){return!1}})),r)return r;throw new Error("Could not find definition for selector")}function P(e,t){return i(this,void 0,void 0,(function(){var r,n,i,s,a,u,c;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,11,,12]),globalThis.caches&&globalThis.Request?[4,caches.open("gp-calldata")]:[3,9];case 1:return r=o.sent(),n=new Request(e,t),[4,r.match(n)];case 2:return(i=o.sent())?[2,i]:[3,3];case 3:return[4,fetch(n,t)];case 4:return s=o.sent(),a=s.clone(),[4,s.json()];case 5:return u=o.sent(),s.ok&&((0,T.isValidBlockExplorerResponse)(u)||(0,T.isValid4ByteResponse)(u))?[4,r.put(n,a)]:[3,7];case 6:return o.sent(),[2,r.match(n,t)];case 7:return[2,s];case 8:return[3,10];case 9:return[2,fetch(e,t)];case 10:return[3,12];case 11:throw c=o.sent(),console.error(c),c;case 12:return[2]}}))}))}function I(e,t){return i(this,void 0,void 0,(function(){var r;return o(this,(function(n){return r=function(e){var t=e.supportedChain,r=e.address,n=t.baseUrl,i=t.apiRoute;return"".concat(n,"/").concat(i,"&address=").concat(r)+""}({address:e,supportedChain:t}),[2,P(r).then((function(e){return e.json()})).then((function(e){if(e&&e.result)return JSON.parse(e.result);throw new Error("Server response was malformed")})).catch((function(){throw new Error("Fetching data from external network failed")}))]}))}))}function C(e){return i(this,void 0,void 0,(function(){var t;return o(this,(function(r){switch(r.label){case 0:return t="https://www.4byte.directory/api/v1/signatures/?hex_signature=0x".concat(e),[4,fetch(t).then((function(e){return e.json()})).then((function(e){if(e&&e.results)return e.results;throw new Error("No results found")})).catch((function(e){throw new Error("Fetching data from 4byte failed: ".concat(e.message))}))];case 1:return[2,r.sent()]}}))}))}function R(e){return t.from((0,y.encode)(e))}function B(e,r){var n,a,u,c;return i(this,void 0,void 0,(function(){var i,l,f,d,h,p,b,m,g,v,y,w,j,_;return o(this,(function(o){switch(o.label){case 0:return[4,M(i=k.Calldata.EVM.processors.getNestedCalldata(e,r))];case 1:l=o.sent(),o.label=2;case 2:o.trys.push([2,22,23,28]),f=s(l.entries()),o.label=3;case 3:return[4,f.next()];case 4:if((d=o.sent()).done)return[3,21];if(h=d.value[0],!Array.isArray(l[h])||"string"==typeof l[h][0])return[3,18];o.label=5;case 5:o.trys.push([5,11,12,17]),u=void 0,p=s(l[h].entries()),o.label=6;case 6:return[4,p.next()];case 7:return(b=o.sent()).done?[3,10]:(m=b.value[0],null===l[h][m]?[3,9]:(g=l[h],v=m,[4,B(l[h][m],t.from(i[h][m].slice(2),"hex"))]));case 8:g[v]=o.sent(),o.label=9;case 9:return[3,6];case 10:return[3,17];case 11:return y=o.sent(),u={error:y},[3,17];case 12:return o.trys.push([12,,15,16]),b&&!b.done&&(c=p.return)?[4,c.call(p)]:[3,14];case 13:o.sent(),o.label=14;case 14:return[3,16];case 15:if(u)throw u.error;return[7];case 16:return[7];case 17:return[3,20];case 18:return null===l[h]?[3,20]:(w=l,j=h,[4,B(l[h],t.from(i[h].slice(2),"hex"))]);case 19:w[j]=o.sent(),o.label=20;case 20:return[3,3];case 21:return[3,28];case 22:return _=o.sent(),n={error:_},[3,28];case 23:return o.trys.push([23,,26,27]),d&&!d.done&&(a=f.return)?[4,a.call(f)]:[3,25];case 24:o.sent(),o.label=25;case 25:return[3,27];case 26:if(n)throw n.error;return[7];case 27:return[7];case 28:return[2,k.Calldata.EVM.processors.replaceNestedDefs(e,l)]}}))}))}function M(e){var t,r,n,a,u,c;return i(this,void 0,void 0,(function(){var i,l,f,d,h,p,b,m,g,v,y,w,k,j,_;return o(this,(function(o){switch(o.label){case 0:i=[],o.label=1;case 1:o.trys.push([1,26,27,32]),t=s(e),o.label=2;case 2:return[4,t.next()];case 3:if((r=o.sent()).done)return[3,25];if(null===(l=r.value))return[3,23];if(!Array.isArray(l))return[3,19];f=[],d=!0,o.label=4;case 4:o.trys.push([4,12,13,18]),u=void 0,h=s(l),o.label=5;case 5:return[4,h.next()];case 6:if((p=o.sent()).done)return[3,11];b=p.value,o.label=7;case 7:return o.trys.push([7,9,,10]),[4,C(m=b.slice(2,10))];case 8:return g=o.sent(),v=A(g,m),f.push(v),[3,10];case 9:return o.sent(),d=!1,f.push(null),[3,10];case 10:return[3,5];case 11:return[3,18];case 12:return y=o.sent(),u={error:y},[3,18];case 13:return o.trys.push([13,,16,17]),p&&!p.done&&(c=h.return)?[4,c.call(h)]:[3,15];case 14:o.sent(),o.label=15;case 15:return[3,17];case 16:if(u)throw u.error;return[7];case 17:return[7];case 18:return d?i.push(f):i.push(null),[3,22];case 19:return o.trys.push([19,21,,22]),[4,C(w=l.slice(2,10))];case 20:return k=o.sent(),j=A(k,w),i.push(j),[3,22];case 21:return o.sent(),i.push(null),[3,22];case 22:return[3,24];case 23:i.push(null),o.label=24;case 24:return[3,2];case 25:return[3,32];case 26:return _=o.sent(),n={error:_},[3,32];case 27:return o.trys.push([27,,30,31]),r&&!r.done&&(a=t.return)?[4,a.call(t)]:[3,29];case 28:o.sent(),o.label=29;case 29:return[3,31];case 30:if(n)throw n.error;return[7];case 31:return[7];case 32:return[2,i]}}))}))}function L(e,r,n,s){return void 0===s&&(s=!0),i(this,void 0,void 0,(function(){var i,a,u,c,l,f,d,h,p,b,m,g,v,y;return o(this,(function(o){switch(o.label){case 0:if(o.trys.push([0,15,,16]),!e||e.length<2)throw new Error("Data is either undefined or less than two bytes");if(i="string"==typeof e&&"0x"===e.slice(0,2),(a=i?t.from(e.slice(2),"hex"):t.from(e,"hex")).length<4)throw new Error("Data must contain at least 4 bytes of data to define the selector");return u=t.from(a.slice(0,4)).toString("hex"),c=Number(n),(l=j.NETWORKS_BY_CHAIN_ID[c])?(d=l,[3,3]):[3,1];case 1:return[4,O(c)];case 2:d=o.sent(),o.label=3;case 3:f=d,o.label=4;case 4:return o.trys.push([4,10,,11]),f?[4,I(r,f)]:[3,8];case 5:return h=o.sent(),p=k.Calldata.EVM.parsers.parseSolidityJSONABI(u,h),b=p.def,s?[4,B(b,a)]:[3,7];case 6:b=o.sent(),o.label=7;case 7:return[2,{abi:h,def:R(b)}];case 8:throw new Error("Chain (id: ".concat(c,") is not supported"));case 9:return[3,11];case 10:return m=o.sent(),console.warn(m.message,"\n","Falling back to 4byte"),[3,11];case 11:return[4,C(u)];case 12:return g=o.sent(),v=A(g,u),s?[4,B(v,a)]:[3,14];case 13:v=o.sent(),o.label=14;case 14:return[2,{abi:g,def:R(v)}];case 15:return y=o.sent(),console.warn("Fetching calldata failed: ".concat(y.message)),[3,16];case 16:return[2,{def:null,abi:null}]}}))}))}r.isUInt4=function(e){return(0,v.default)(e)&&(0,g.default)(e,0,16)},r.selectDefFrom4byteABI=A,r.fetchWithTimeout=function(e,t){return i(this,void 0,void 0,(function(){var r,i,s,a,u;return o(this,(function(o){switch(o.label){case 0:return r=t.timeout,i=void 0===r?8e3:r,s=new AbortController,a=setTimeout((function(){return s.abort()}),i),[4,fetch(e,n(n({},t),{signal:s.signal}))];case 1:return u=o.sent(),clearTimeout(a),[2,u]}}))}))},r.fetchCalldataDecoder=L;r.generateAppSecret=function(e,r,n){var i="string"==typeof e?t.from(e):e,o="string"==typeof r?t.from(r):r,s="string"==typeof n?t.from(n):n,a=t.concat([i,o,s]);return t.from((0,b.sha256)().update(a).digest("hex"),"hex")};r.getV=function(e,r){var n,i,o;if(t.isBuffer(e)){i=t.from((0,m.keccak256)(e),"hex");try{var s=(0,y.decode)(e);n=6===s.length?null:new d.BN(s[6]),o=0}catch(t){try{o=c.TransactionFactory.fromSerializedData(e)._type}catch(e){throw new Error("Could not recover V. Bad transaction data.")}}}else i=(o=e._type)?e.getMessageToSign(!0):(0,y.encode)(e.getMessageToSign(!1)),e.supports(c.Capability.EIP155ReplayProtection)&&(n=e.common.chainIdBN().toNumber());var a,u=new Uint8Array(t.concat([r.sig.r,r.sig.s])),l=new Uint8Array(r.pubkey),f=(0,w.ecdsaRecover)(u,0,i,!1),h=(0,w.ecdsaRecover)(u,1,i,!1),p=t.from(l).toString("hex"),b=t.from(f).toString("hex"),g=t.from(h).toString("hex");if(p===b)a=0;else{if(p!==g)throw new Error("Failed to recover V parameter. Bad signature or transaction data.");a=1}return o?new d.BN(a):n?n.muln(2).addn(35).addn(a):new d.BN(a).addn(27)},r.EXTERNAL={fetchCalldataDecoder:L,generateAppSecret:r.generateAppSecret,getV:r.getV}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk",file:"node_modules/gridplus-sdk/dist/util.js"}],[4561,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"goerli",chainId:5,networkId:5,defaultHardfork:"merge",consensus:{type:"poa",algorithm:"clique",clique:{period:15,epoch:3e4}},comment:"Cross-client PoA test network",url:"https://github.com/goerli/testnet",genesis:{timestamp:"0x5c51a607",gasLimit:10485760,difficulty:1,nonce:"0x0000000000000000",extraData:"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},hardforks:[{name:"chainstart",block:0,forkHash:"0xa3f5ab08"},{name:"homestead",block:0,forkHash:"0xa3f5ab08"},{name:"tangerineWhistle",block:0,forkHash:"0xa3f5ab08"},{name:"spuriousDragon",block:0,forkHash:"0xa3f5ab08"},{name:"byzantium",block:0,forkHash:"0xa3f5ab08"},{name:"constantinople",block:0,forkHash:"0xa3f5ab08"},{name:"petersburg",block:0,forkHash:"0xa3f5ab08"},{name:"istanbul",block:1561651,forkHash:"0xc25efa5c"},{name:"berlin",block:4460644,forkHash:"0x757a1c47"},{name:"london",block:5062605,forkHash:"0xb8c6299d"},{"//_comment":"The forkHash will remain same as mergeForkIdTransition is post merge, terminal block: https://goerli.etherscan.io/block/7382818",name:"merge",ttd:"10790000",block:7382819,forkHash:"0xb8c6299d"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,forkHash:null}],bootstrapNodes:[{ip:"51.141.78.53",port:30303,id:"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a",location:"",comment:"Upstream bootnode 1"},{ip:"13.93.54.137",port:30303,id:"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b",location:"",comment:"Upstream bootnode 2"},{ip:"94.237.54.114",port:30313,id:"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291",location:"",comment:"Upstream bootnode 3"},{ip:"18.218.250.66",port:30313,id:"b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949",location:"",comment:"Upstream bootnode 4"},{ip:"3.11.147.67",port:30303,id:"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91",location:"",comment:"Ethereum Foundation bootnode"},{ip:"51.15.116.226",port:30303,id:"a869b02cec167211fb4815a82941db2e7ed2936fd90e78619c53eb17753fcf0207463e3419c264e2a1dd8786de0df7e68cf99571ab8aeb7c4e51367ef186b1dd",location:"",comment:"Goerli Initiative bootnode"},{ip:"51.15.119.157",port:30303,id:"807b37ee4816ecf407e9112224494b74dd5933625f655962d892f2f0f02d7fbbb3e2a94cf87a96609526f30c998fd71e93e2f53015c558ffc8b03eceaf30ee33",location:"",comment:"Goerli Initiative bootnode"},{ip:"51.15.119.157",port:40303,id:"a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd",location:"",comment:"Goerli Initiative bootnode"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/chains/goerli.json"}],[4562,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"mainnet",chainId:1,networkId:1,defaultHardfork:"merge",consensus:{type:"pow",algorithm:"ethash",ethash:{}},comment:"The Ethereum main chain",url:"https://ethstats.net/",genesis:{gasLimit:5e3,difficulty:17179869184,nonce:"0x0000000000000042",extraData:"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa"},hardforks:[{name:"chainstart",block:0,forkHash:"0xfc64ec04"},{name:"homestead",block:115e4,forkHash:"0x97c2c34c"},{name:"dao",block:192e4,forkHash:"0x91d1f948"},{name:"tangerineWhistle",block:2463e3,forkHash:"0x7a64da13"},{name:"spuriousDragon",block:2675e3,forkHash:"0x3edd5b10"},{name:"byzantium",block:437e4,forkHash:"0xa00bc324"},{name:"constantinople",block:728e4,forkHash:"0x668db0af"},{name:"petersburg",block:728e4,forkHash:"0x668db0af"},{name:"istanbul",block:9069e3,forkHash:"0x879d6e30"},{name:"muirGlacier",block:92e5,forkHash:"0xe029e991"},{name:"berlin",block:12244e3,forkHash:"0x0eb440f6"},{name:"london",block:12965e3,forkHash:"0xb715077d"},{name:"arrowGlacier",block:13773e3,forkHash:"0x20c327fc"},{name:"grayGlacier",block:1505e4,forkHash:"0xf0afd0e3"},{"//_comment":"The forkHash will remain same as mergeForkIdTransition is post merge, terminal block: https://etherscan.io/block/15537393",name:"merge",ttd:"58750000000000000000000",block:15537394,forkHash:"0xf0afd0e3"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,forkHash:null}],bootstrapNodes:[{ip:"18.138.108.67",port:30303,id:"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666",location:"ap-southeast-1-001",comment:"bootnode-aws-ap-southeast-1-001"},{ip:"3.209.45.79",port:30303,id:"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de",location:"us-east-1-001",comment:"bootnode-aws-us-east-1-001"},{ip:"34.255.23.113",port:30303,id:"ca6de62fce278f96aea6ec5a2daadb877e51651247cb96ee310a318def462913b653963c155a0ef6c7d50048bba6e6cea881130857413d9f50a621546b590758",location:"eu-west-1-001",comment:"bootnode-aws-eu-west-1-001"},{ip:"35.158.244.151",port:30303,id:"279944d8dcd428dffaa7436f25ca0ca43ae19e7bcf94a8fb7d1641651f92d121e972ac2e8f381414b80cc8e5555811c2ec6e1a99bb009b3f53c4c69923e11bd8",location:"eu-central-1-001",comment:"bootnode-aws-eu-central-1-001"},{ip:"52.187.207.27",port:30303,id:"8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a",location:"australiaeast-001",comment:"bootnode-azure-australiaeast-001"},{ip:"191.234.162.198",port:30303,id:"103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1",location:"brazilsouth-001",comment:"bootnode-azure-brazilsouth-001"},{ip:"52.231.165.108",port:30303,id:"715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8",location:"koreasouth-001",comment:"bootnode-azure-koreasouth-001"},{ip:"104.42.217.25",port:30303,id:"5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f",location:"westus-001",comment:"bootnode-azure-westus-001"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net"]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/chains/mainnet.json"}],[4563,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"rinkeby",chainId:4,networkId:4,defaultHardfork:"london",consensus:{type:"poa",algorithm:"clique",clique:{period:15,epoch:3e4}},comment:"PoA test network",url:"https://www.rinkeby.io",genesis:{timestamp:"0x58ee40ba",gasLimit:47e5,difficulty:1,nonce:"0x0000000000000000",extraData:"0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},hardforks:[{name:"chainstart",block:0,forkHash:"0x3b8e0691"},{name:"homestead",block:1,forkHash:"0x60949295"},{name:"tangerineWhistle",block:2,forkHash:"0x8bde40dd"},{name:"spuriousDragon",block:3,forkHash:"0xcb3a64bb"},{name:"byzantium",block:1035301,forkHash:"0x8d748b57"},{name:"constantinople",block:3660663,forkHash:"0xe49cab14"},{name:"petersburg",block:4321234,forkHash:"0xafec6b27"},{name:"istanbul",block:5435345,forkHash:"0xcbdb8838"},{name:"berlin",block:8290928,forkHash:"0x6910c8bd"},{name:"london",block:8897988,forkHash:"0x8e29f2f3"},{name:"merge",block:null,forkHash:null},{name:"shanghai",block:null,forkHash:null}],bootstrapNodes:[{ip:"52.169.42.101",port:30303,id:"a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf",location:"",comment:"IE"},{ip:"52.3.158.184",port:30303,id:"343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8",location:"",comment:"INFURA"},{ip:"159.89.28.211",port:30303,id:"b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6",location:"",comment:"AKASHA"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.rinkeby.ethdisco.net"]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/chains/rinkeby.json"}],[4564,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"ropsten",chainId:3,networkId:3,defaultHardfork:"merge",consensus:{type:"pow",algorithm:"ethash",ethash:{}},comment:"PoW test network",url:"https://github.com/ethereum/ropsten",genesis:{gasLimit:16777216,difficulty:1048576,nonce:"0x0000000000000042",extraData:"0x3535353535353535353535353535353535353535353535353535353535353535"},hardforks:[{name:"chainstart",block:0,forkHash:"0x30c7ddbc"},{name:"homestead",block:0,forkHash:"0x30c7ddbc"},{name:"tangerineWhistle",block:0,forkHash:"0x30c7ddbc"},{name:"spuriousDragon",block:10,forkHash:"0x63760190"},{name:"byzantium",block:17e5,forkHash:"0x3ea159c7"},{name:"constantinople",block:423e4,forkHash:"0x97b544f3"},{name:"petersburg",block:4939394,forkHash:"0xd6e2149b"},{name:"istanbul",block:6485846,forkHash:"0x4bc66396"},{name:"muirGlacier",block:7117117,forkHash:"0x6727ef90"},{name:"berlin",block:9812189,forkHash:"0xa157d377"},{name:"london",block:10499401,forkHash:"0x7119b6b3"},{"//_comment":"The forkHash will remain same as mergeForkIdTransition is post merge",name:"merge",ttd:"50000000000000000",block:null,forkHash:"0x7119b6b3"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,forkHash:null}],bootstrapNodes:[{ip:"52.176.7.10",port:30303,id:"30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606",location:"",comment:"US-Azure geth"},{ip:"52.176.100.77",port:30303,id:"865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c",location:"",comment:"US-Azure parity"},{ip:"52.232.243.152",port:30303,id:"6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f",location:"",comment:"Parity"},{ip:"192.81.208.223",port:30303,id:"94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09",location:"",comment:"@gpip"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.ropsten.ethdisco.net"]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/chains/ropsten.json"}],[4565,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"sepolia",chainId:11155111,networkId:11155111,defaultHardfork:"merge",consensus:{type:"pow",algorithm:"ethash",ethash:{}},comment:"PoW test network to replace Ropsten",url:"https://github.com/ethereum/go-ethereum/pull/23730",genesis:{timestamp:"0x6159af19",gasLimit:3e7,difficulty:131072,nonce:"0x0000000000000000",extraData:"0x5365706f6c69612c20417468656e732c204174746963612c2047726565636521"},hardforks:[{name:"chainstart",block:0,forkHash:"0xfe3366e7"},{name:"homestead",block:0,forkHash:"0xfe3366e7"},{name:"tangerineWhistle",block:0,forkHash:"0xfe3366e7"},{name:"spuriousDragon",block:0,forkHash:"0xfe3366e7"},{name:"byzantium",block:0,forkHash:"0xfe3366e7"},{name:"constantinople",block:0,forkHash:"0xfe3366e7"},{name:"petersburg",block:0,forkHash:"0xfe3366e7"},{name:"istanbul",block:0,forkHash:"0xfe3366e7"},{name:"muirGlacier",block:0,forkHash:"0xfe3366e7"},{name:"berlin",block:0,forkHash:"0xfe3366e7"},{name:"london",block:0,forkHash:"0xfe3366e7"},{"//_comment":"The forkHash will remain same as mergeForkIdTransition is post merge, terminal block: https://sepolia.etherscan.io/block/1450408",name:"merge",ttd:"17000000000000000",block:1450409,forkHash:"0xfe3366e7"},{name:"mergeForkIdTransition",block:1735371,forkHash:"0xb96cbd13"},{name:"shanghai",block:null,timestamp:"1677557088",forkHash:"0xf7f9bc08"}],bootstrapNodes:[{ip:"18.168.182.86",port:30303,id:"9246d00bc8fd1742e5ad2428b80fc4dc45d786283e05ef6edbd9002cbc335d40998444732fbe921cb88e1d2c73d1b1de53bae6a2237996e9bfe14f871baf7066",location:"",comment:"geth"},{ip:"52.14.151.177",port:30303,id:"ec66ddcf1a974950bd4c782789a7e04f8aa7110a72569b6e65fcd51e937e74eed303b1ea734e4d19cfaec9fbff9b6ee65bf31dcb50ba79acce9dd63a6aca61c7",location:"",comment:"besu"},{ip:"165.22.196.173",port:30303,id:"ce970ad2e9daa9e14593de84a8b49da3d54ccfdf83cbc4fe519cb8b36b5918ed4eab087dedd4a62479b8d50756b492d5f762367c8d20329a7854ec01547568a6",location:"",comment:"EF"},{ip:"65.108.95.67",port:30303,id:"075503b13ed736244896efcde2a992ec0b451357d46cb7a8132c0384721742597fc8f0d91bbb40bb52e7d6e66728d36a1fda09176294e4a30cfac55dcce26bc6",location:"",comment:"lodestar"}],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.sepolia.ethdisco.net"]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/chains/sepolia.json"}],[4566,{"./chains/goerli.json":4561,"./chains/mainnet.json":4562,"./chains/rinkeby.json":4563,"./chains/ropsten.json":4564,"./chains/sepolia.json":4565,"./eips":4592,"./enums":4593,"./hardforks":4602,"./utils":4615,"@ethereumjs/util":4623,buffer:4096,"crc-32":4172,events:4433},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.Common=void 0;const n=e("@ethereumjs/util"),i=e("crc-32"),o=e("events"),s=e("./chains/goerli.json"),a=e("./chains/mainnet.json"),u=e("./chains/rinkeby.json"),c=e("./chains/ropsten.json"),l=e("./chains/sepolia.json"),f=e("./eips"),d=e("./enums"),h=e("./hardforks"),p=e("./utils");class b extends o.EventEmitter{constructor(e){super(),this._eips=[],this._customChains=e.customChains??[],this._chainParams=this.setChain(e.chain),this.DEFAULT_HARDFORK=this._chainParams.defaultHardfork??d.Hardfork.Merge,this.HARDFORK_CHANGES=this.hardforks().map((e=>[e.name,h.hardforks[e.name]])),this._hardfork=this.DEFAULT_HARDFORK,e.hardfork!==undefined&&this.setHardfork(e.hardfork),e.eips&&this.setEIPs(e.eips)}static custom(e,t={}){const r=t.baseChain??"mainnet",n={...b._getChainParams(r)};if(n.name="custom-chain","string"!=typeof e)return new b({chain:{...n,...e},...t});if(e===d.CustomChain.PolygonMainnet)return b.custom({name:d.CustomChain.PolygonMainnet,chainId:137,networkId:137},t);if(e===d.CustomChain.PolygonMumbai)return b.custom({name:d.CustomChain.PolygonMumbai,chainId:80001,networkId:80001},t);if(e===d.CustomChain.ArbitrumRinkebyTestnet)return b.custom({name:d.CustomChain.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611},t);if(e===d.CustomChain.ArbitrumOne)return b.custom({name:d.CustomChain.ArbitrumOne,chainId:42161,networkId:42161},t);if(e===d.CustomChain.xDaiChain)return b.custom({name:d.CustomChain.xDaiChain,chainId:100,networkId:100},t);if(e===d.CustomChain.OptimisticKovan)return b.custom({name:d.CustomChain.OptimisticKovan,chainId:69,networkId:69},{hardfork:d.Hardfork.Berlin,...t});if(e===d.CustomChain.OptimisticEthereum)return b.custom({name:d.CustomChain.OptimisticEthereum,chainId:10,networkId:10},{hardfork:d.Hardfork.Berlin,...t});throw new Error(`Custom chain ${e} not supported`)}static fromGethGenesis(e,{chain:t,eips:r,genesisHash:n,hardfork:i,mergeForkIdPostMerge:o}){const s=(0,p.parseGethGenesis)(e,t,o),a=new b({chain:s.name??"custom",customChains:[s],eips:r,hardfork:i??s.hardfork});return n!==undefined&&a.setForkHashes(n),a}static isSupportedChainId(e){const t=this._getInitializedChains();return Boolean(t.names[e.toString()])}static _getChainParams(e,t){const r=this._getInitializedChains(t);if("number"==typeof e||"bigint"==typeof e){if(e=e.toString(),r.names[e]){return r[r.names[e]]}throw new Error(`Chain with ID ${e} not supported`)}if(r[e]!==undefined)return r[e];throw new Error(`Chain with name ${e} not supported`)}setChain(e){if("number"==typeof e||"bigint"==typeof e||"string"==typeof e)this._chainParams=b._getChainParams(e,this._customChains);else{if("object"!=typeof e)throw new Error("Wrong input format");{if(this._customChains.length>0)throw new Error("Chain must be a string, number, or bigint when initialized with customChains passed in");const t=["networkId","genesis","hardforks","bootstrapNodes"];for(const r of t)if(!(r in e))throw new Error(`Missing required chain parameter: ${r}`);this._chainParams=e}}for(const e of this.hardforks())if(e.block===undefined)throw new Error("Hardfork cannot have undefined block number");return this._chainParams}setHardfork(e){let t=!1;for(const r of this.HARDFORK_CHANGES)r[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),t=!0);if(!t)throw new Error(`Hardfork with name ${e} not supported`)}getHardforkByBlockNumber(e,t,r){e=(0,n.toType)(e,n.TypeOutput.BigInt),t=(0,n.toType)(t,n.TypeOutput.BigInt),r=(0,n.toType)(r,n.TypeOutput.Number);const i=this.hardforks().filter((e=>null!==e.block||null!==e.ttd&&e.ttd!==undefined||e.timestamp!==undefined)),o=i.findIndex((e=>null!==e.ttd&&e.ttd!==undefined));if(i.slice(o+1).findIndex((e=>null!==e.ttd&&e.ttd!==undefined))>=0)throw Error("More than one merge hardforks found with ttd specified");let s=i.findIndex((t=>null!==t.block&&t.block>e||r!==undefined&&Number(t.timestamp)>r));if(-1===s)s=i.length;else if(0===s)throw Error("Must have at least one hardfork at block 0");if(r===undefined){s-=i.slice(0,s).reverse().findIndex((e=>null!==e.block||e.ttd!==undefined))}if(s-=1,null===i[s].block&&i[s].timestamp===undefined)(t===undefined||null===t||BigInt(i[s].ttd)>t)&&(s-=1);else if(o>=0&&t!==undefined&&null!==t){if(s>=o&&BigInt(i[o].ttd)>t)throw Error("Maximum HF determined by total difficulty is lower than the block number HF");if(s<o&&BigInt(i[o].ttd)<=t)throw Error("HF determined by block number is lower than the minimum total difficulty HF")}const a=s;for(;s<i.length-1&&(i[s].block===i[s+1].block&&i[s].timestamp===i[s+1].timestamp);s++);if(r){if(i.slice(0,a).reduce(((e,t)=>Math.max(Number(t.timestamp??"0"),e)),0)>r)throw Error("Maximum HF determined by timestamp is lower than the block number/ttd HF");if(i.slice(s+1).reduce(((e,t)=>Math.min(Number(t.timestamp??r),e)),r)<r)throw Error("Maximum HF determined by block number/ttd is lower than timestamp HF")}return i[s].name}setHardforkByBlockNumber(e,t,r){const n=this.getHardforkByBlockNumber(e,t,r);return this.setHardfork(n),n}_getHardfork(e){const t=this.hardforks();for(const r of t)if(r.name===e)return r;return null}setEIPs(e=[]){for(const t of e){if(!(t in f.EIPs))throw new Error(`${t} not supported`);const r=this.gteHardfork(f.EIPs[t].minimumHardfork);if(!r)throw new Error(`${t} cannot be activated on hardfork ${this.hardfork()}, minimumHardfork: ${r}`);if(f.EIPs[t].requiredEIPs!==undefined)for(const r of f.EIPs[t].requiredEIPs)if(!e.includes(r)&&!this.isActivatedEIP(r))throw new Error(`${t} requires EIP ${r}, but is not included in the EIP list`)}this._eips=e}param(e,t){let r;for(const n of this._eips)if(r=this.paramByEIP(e,t,n),r!==undefined)return r;return this.paramByHardfork(e,t,this._hardfork)}paramByHardfork(e,t,r){let n=null;for(const i of this.HARDFORK_CHANGES){if("eips"in i[1]){const r=i[1].eips;for(const i of r){const r=this.paramByEIP(e,t,i);n="bigint"==typeof r?r:n}}else{if(i[1][e]===undefined)throw new Error(`Topic ${e} not defined`);i[1][e][t]!==undefined&&(n=i[1][e][t].v)}if(i[0]===r)break}return BigInt(n??0)}paramByEIP(e,t,r){if(!(r in f.EIPs))throw new Error(`${r} not supported`);const n=f.EIPs[r];if(!(e in n))throw new Error(`Topic ${e} not defined`);if(n[e][t]===undefined)return undefined;const i=n[e][t].v;return BigInt(i)}paramByBlock(e,t,r,n,i){const o=this.getHardforkByBlockNumber(r,n,i);return this.paramByHardfork(e,t,o)}isActivatedEIP(e){if(this.eips().includes(e))return!0;for(const t of this.HARDFORK_CHANGES){const r=t[1];if(this.gteHardfork(r.name)&&"eips"in r&&r.eips.includes(e))return!0}return!1}hardforkIsActiveOnBlock(e,t){t=(0,n.toType)(t,n.TypeOutput.BigInt),e=e??this._hardfork;const r=this.hardforkBlock(e);return"bigint"==typeof r&&r!==BigInt(0)&&t>=r}activeOnBlock(e){return this.hardforkIsActiveOnBlock(null,e)}hardforkGteHardfork(e,t){e=e??this._hardfork;const r=this.hardforks();let n=-1,i=-1,o=0;for(const s of r)s.name===e&&(n=o),s.name===t&&(i=o),o+=1;return n>=i&&-1!==i}gteHardfork(e){return this.hardforkGteHardfork(null,e)}hardforkBlock(e){e=e??this._hardfork;const t=this._getHardfork(e)?.block;return t===undefined||null===t?null:BigInt(t)}hardforkTimestamp(e){e=e??this._hardfork;const t=this._getHardfork(e)?.timestamp;return t===undefined||null===t?null:BigInt(t)}eipBlock(e){for(const t of this.HARDFORK_CHANGES){const r=t[1];if("eips"in r&&r.eips.includes(e))return this.hardforkBlock(t[0])}return null}hardforkTTD(e){e=e??this._hardfork;const t=this._getHardfork(e)?.ttd;return t===undefined||null===t?null:BigInt(t)}isHardforkBlock(e,t){e=(0,n.toType)(e,n.TypeOutput.BigInt),t=t??this._hardfork;const r=this.hardforkBlock(t);return"bigint"==typeof r&&r!==BigInt(0)&&r===e}nextHardforkBlockOrTimestamp(e){e=e??this._hardfork;const t=this.hardforks();let r=t.findIndex((t=>t.name===e));if(e===d.Hardfork.Merge&&(r-=1),r<0)return null;let n=t[r].timestamp??t[r].block;n=null!==n&&n!==undefined?Number(n):null;const i=t.slice(r+1).find((e=>{let t=e.timestamp??e.block;return t=null!==t&&t!==undefined?Number(t):null,e.name!==d.Hardfork.Merge&&null!==t&&t!==undefined&&t!==n}));if(i===undefined)return null;const o=i.timestamp??i.block;return null===o||o===undefined?null:BigInt(o)}nextHardforkBlock(e){e=e??this._hardfork;let t=this.hardforkBlock(e);if(null===t&&e===d.Hardfork.Merge){const e=this.hardforks(),r=e.findIndex((e=>null!==e.ttd&&e.ttd!==undefined));if(r<0)throw Error("Merge hardfork should have been found");t=this.hardforkBlock(e[r-1].name)}if(null===t)return null;return this.hardforks().reduce(((e,r)=>{const n=BigInt(null===r.block||r.ttd!==undefined&&null!==r.ttd?0:r.block);return n>t&&null===e?n:e}),null)}isNextHardforkBlock(e,t){e=(0,n.toType)(e,n.TypeOutput.BigInt),t=t??this._hardfork;const r=this.nextHardforkBlock(t);return null!==r&&r===e}_calcForkHash(e,r){let o=t.alloc(0),s=0;for(const r of this.hardforks()){const{block:n,timestamp:i,name:a}=r;let u=i??n;if(u=null!==u?Number(u):null,"number"==typeof u&&0!==u&&u!==s&&a!==d.Hardfork.Merge){const e=t.from(u.toString(16).padStart(16,"0"),"hex");o=t.concat([o,e]),s=u}if(r.name===e)break}const a=t.concat([r,o]);return`0x${(0,n.intToBuffer)((0,i.buf)(a)>>>0).toString("hex")}`}forkHash(e,t){e=e??this._hardfork;const r=this._getHardfork(e);if(null===r||null===r?.block&&r?.timestamp===undefined&&r?.ttd===undefined){throw new Error("No fork hash calculation possible for future hardfork")}if(null!==r?.forkHash&&r?.forkHash!==undefined)return r.forkHash;if(!t)throw new Error("genesisHash required for forkHash calculation");return this._calcForkHash(e,t)}hardforkForForkHash(e){const t=this.hardforks().filter((t=>t.forkHash===e));return t.length>=1?t[t.length-1]:null}setForkHashes(e){for(const t of this.hardforks()){const r=t.timestamp??t.block;null!==t.forkHash&&t.forkHash!==undefined||(null===r||r===undefined)&&void 0===t.ttd||(t.forkHash=this.forkHash(t.name,e))}}genesis(){return this._chainParams.genesis}hardforks(){return this._chainParams.hardforks}bootstrapNodes(){return this._chainParams.bootstrapNodes}dnsNetworks(){return this._chainParams.dnsNetworks}hardfork(){return this._hardfork}chainId(){return BigInt(this._chainParams.chainId)}chainName(){return this._chainParams.name}networkId(){return BigInt(this._chainParams.networkId)}eips(){return this._eips}consensusType(){const e=this.hardfork();let t;for(const r of this.HARDFORK_CHANGES)if("consensus"in r[1]&&(t=r[1].consensus.type),r[0]===e)break;return t??this._chainParams.consensus.type}consensusAlgorithm(){const e=this.hardfork();let t;for(const r of this.HARDFORK_CHANGES)if("consensus"in r[1]&&(t=r[1].consensus.algorithm),r[0]===e)break;return t??this._chainParams.consensus.algorithm}consensusConfig(){const e=this.hardfork();let t;for(const r of this.HARDFORK_CHANGES)if("consensus"in r[1]&&(t=r[1].consensus[r[1].consensus.algorithm]),r[0]===e)break;return t??this._chainParams.consensus[this.consensusAlgorithm()]??{}}copy(){const e=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return e.removeAllListeners(),e}static _getInitializedChains(e){const t={};for(const[e,r]of Object.entries(d.Chain))t[r]=e.toLowerCase();const r={mainnet:a,ropsten:c,rinkeby:u,goerli:s,sepolia:l};if(e)for(const n of e){const{name:e}=n;t[n.chainId.toString()]=e,r[e]=n}return r.names=t,r}}r.Common=b}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/common.js"}],[4567,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-1153",number:1153,comment:"Transient Storage",url:"https://eips.ethereum.org/EIPS/eip-1153",status:"Review",minimumHardfork:"chainstart",requiredEIPs:[],gasConfig:{},gasPrices:{tstore:{v:100,d:"Base fee of the TSTORE opcode"},tload:{v:100,d:"Base fee of the TLOAD opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/1153.json"}],[4568,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-1559",number:1559,comment:"Fee market change for ETH 1.0 chain",url:"https://eips.ethereum.org/EIPS/eip-1559",status:"Final",minimumHardfork:"berlin",requiredEIPs:[2930],gasConfig:{baseFeeMaxChangeDenominator:{v:8,d:"Maximum base fee change denominator"},elasticityMultiplier:{v:2,d:"Maximum block gas target elasticity"},initialBaseFee:{v:1e9,d:"Initial base fee on first EIP1559 block"}},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/1559.json"}],[4569,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2315",number:2315,comment:"Simple subroutines for the EVM",url:"https://eips.ethereum.org/EIPS/eip-2315",status:"Draft",minimumHardfork:"istanbul",gasConfig:{},gasPrices:{beginsub:{v:2,d:"Base fee of the BEGINSUB opcode"},returnsub:{v:5,d:"Base fee of the RETURNSUB opcode"},jumpsub:{v:10,d:"Base fee of the JUMPSUB opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2315.json"}],[457,{"./helpers":456,"./profiles":458,multicodec:4968,multihashes:451},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("multicodec"),i=e("multihashes"),{hexStringToBuffer:o,profiles:s}=e("./profiles"),{cidForWeb:a,cidV0ToV1Base32:u}=e("./helpers");t.exports={helpers:{cidForWeb:a,cidV0ToV1Base32:u},decode:function(e){const t=o(e),r=n.getCodec(t),i=n.rmPrefix(t);let a=s[r];return a||(a=s.default),a.decode(i)},fromIpfs:function(e){return this.encode("ipfs-ns",e)},fromSkylink:function(e){return this.encode("skynet-ns",e)},fromSwarm:function(e){return this.encode("swarm-ns",e)},fromArweave:function(e){return this.encode("arweave-ns",e)},encode:function(e,t){let r=s[e];r||(r=s.default);const o=r.encode(t);return i.toHexString(n.addPrefix(e,o))},getCodec:function(e){let t=o(e);return n.getCodec(t)}}}}},{package:"@ensdomains/content-hash",file:"node_modules/@ensdomains/content-hash/src/index.js"}],[4570,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2537",number:2537,comment:"BLS12-381 precompiles",url:"https://eips.ethereum.org/EIPS/eip-2537",status:"Draft",minimumHardfork:"chainstart",gasConfig:{},gasPrices:{Bls12381G1AddGas:{v:600,d:"Gas cost of a single BLS12-381 G1 addition precompile-call"},Bls12381G1MulGas:{v:12e3,d:"Gas cost of a single BLS12-381 G1 multiplication precompile-call"},Bls12381G2AddGas:{v:4500,d:"Gas cost of a single BLS12-381 G2 addition precompile-call"},Bls12381G2MulGas:{v:55e3,d:"Gas cost of a single BLS12-381 G2 multiplication precompile-call"},Bls12381PairingBaseGas:{v:115e3,d:"Base gas cost of BLS12-381 pairing check"},Bls12381PairingPerPairGas:{v:23e3,d:"Per-pair gas cost of BLS12-381 pairing check"},Bls12381MapG1Gas:{v:5500,d:"Gas cost of BLS12-381 map field element to G1"},Bls12381MapG2Gas:{v:11e4,d:"Gas cost of BLS12-381 map field element to G2"},Bls12381MultiExpGasDiscount:{v:[[1,1200],[2,888],[3,764],[4,641],[5,594],[6,547],[7,500],[8,453],[9,438],[10,423],[11,408],[12,394],[13,379],[14,364],[15,349],[16,334],[17,330],[18,326],[19,322],[20,318],[21,314],[22,310],[23,306],[24,302],[25,298],[26,294],[27,289],[28,285],[29,281],[30,277],[31,273],[32,269],[33,268],[34,266],[35,265],[36,263],[37,262],[38,260],[39,259],[40,257],[41,256],[42,254],[43,253],[44,251],[45,250],[46,248],[47,247],[48,245],[49,244],[50,242],[51,241],[52,239],[53,238],[54,236],[55,235],[56,233],[57,232],[58,231],[59,229],[60,228],[61,226],[62,225],[63,223],[64,222],[65,221],[66,220],[67,219],[68,219],[69,218],[70,217],[71,216],[72,216],[73,215],[74,214],[75,213],[76,213],[77,212],[78,211],[79,211],[80,210],[81,209],[82,208],[83,208],[84,207],[85,206],[86,205],[87,205],[88,204],[89,203],[90,202],[91,202],[92,201],[93,200],[94,199],[95,199],[96,198],[97,197],[98,196],[99,196],[100,195],[101,194],[102,193],[103,193],[104,192],[105,191],[106,191],[107,190],[108,189],[109,188],[110,188],[111,187],[112,186],[113,185],[114,185],[115,184],[116,183],[117,182],[118,182],[119,181],[120,180],[121,179],[122,179],[123,178],[124,177],[125,176],[126,176],[127,175],[128,174]],d:"Discount gas costs of calls to the MultiExp precompiles with `k` (point, scalar) pair"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2537.json"}],[4571,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2565",number:2565,comment:"ModExp gas cost",url:"https://eips.ethereum.org/EIPS/eip-2565",status:"Final",minimumHardfork:"byzantium",gasConfig:{},gasPrices:{modexpGquaddivisor:{v:3,d:"Gquaddivisor from modexp precompile for gas calculation"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2565.json"}],[4572,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2718",comment:"Typed Transaction Envelope",url:"https://eips.ethereum.org/EIPS/eip-2718",status:"Final",minimumHardfork:"chainstart",gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2718.json"}],[4573,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2929",comment:"Gas cost increases for state access opcodes",url:"https://eips.ethereum.org/EIPS/eip-2929",status:"Final",minimumHardfork:"chainstart",gasConfig:{},gasPrices:{coldsload:{v:2100,d:"Gas cost of the first read of storage from a given location (per transaction)"},coldaccountaccess:{v:2600,d:"Gas cost of the first read of a given address (per transaction)"},warmstorageread:{v:100,d:"Gas cost of reading storage locations which have already loaded 'cold'"},sstoreCleanGasEIP2200:{v:2900,d:"Once per SSTORE operation from clean non-zero to something else"},sstoreNoopGasEIP2200:{v:100,d:"Once per SSTORE operation if the value doesn't change"},sstoreDirtyGasEIP2200:{v:100,d:"Once per SSTORE operation if a dirty value is changed"},sstoreInitRefundEIP2200:{v:19900,d:"Once per SSTORE operation for resetting to the original zero value"},sstoreCleanRefundEIP2200:{v:4900,d:"Once per SSTORE operation for resetting to the original non-zero value"},call:{v:0,d:"Base fee of the CALL opcode"},callcode:{v:0,d:"Base fee of the CALLCODE opcode"},delegatecall:{v:0,d:"Base fee of the DELEGATECALL opcode"},staticcall:{v:0,d:"Base fee of the STATICCALL opcode"},balance:{v:0,d:"Base fee of the BALANCE opcode"},extcodesize:{v:0,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:0,d:"Base fee of the EXTCODECOPY opcode"},extcodehash:{v:0,d:"Base fee of the EXTCODEHASH opcode"},sload:{v:0,d:"Base fee of the SLOAD opcode"},sstore:{v:0,d:"Base fee of the SSTORE opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2929.json"}],[4574,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-2930",comment:"Optional access lists",url:"https://eips.ethereum.org/EIPS/eip-2930",status:"Final",minimumHardfork:"istanbul",requiredEIPs:[2718,2929],gasConfig:{},gasPrices:{accessListStorageKeyCost:{v:1900,d:"Gas cost per storage key in an Access List transaction"},accessListAddressCost:{v:2400,d:"Gas cost per storage key in an Access List transaction"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/2930.json"}],[4575,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3074",number:3074,comment:"AUTH and AUTHCALL opcodes",url:"https://eips.ethereum.org/EIPS/eip-3074",status:"Review",minimumHardfork:"london",gasConfig:{},gasPrices:{auth:{v:3100,d:"Gas cost of the AUTH opcode"},authcall:{v:0,d:"Gas cost of the AUTHCALL opcode"},authcallValueTransfer:{v:6700,d:"Paid for CALL when the value transfer is non-zero"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3074.json"}],[4576,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3198",number:3198,comment:"BASEFEE opcode",url:"https://eips.ethereum.org/EIPS/eip-3198",status:"Final",minimumHardfork:"london",gasConfig:{},gasPrices:{basefee:{v:2,d:"Gas cost of the BASEFEE opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3198.json"}],[4577,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3529",comment:"Reduction in refunds",url:"https://eips.ethereum.org/EIPS/eip-3529",status:"Final",minimumHardfork:"berlin",requiredEIPs:[2929],gasConfig:{maxRefundQuotient:{v:5,d:"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},gasPrices:{selfdestructRefund:{v:0,d:"Refunded following a selfdestruct operation"},sstoreClearRefundEIP2200:{v:4800,d:"Once per SSTORE operation for clearing an originally existing storage slot"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3529.json"}],[4578,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3540",number:3540,comment:"EVM Object Format (EOF) v1",url:"https://eips.ethereum.org/EIPS/eip-3540",status:"Review",minimumHardfork:"london",requiredEIPs:[3541],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3540.json"}],[4579,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3541",comment:"Reject new contracts starting with the 0xEF byte",url:"https://eips.ethereum.org/EIPS/eip-3541",status:"Final",minimumHardfork:"berlin",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3541.json"}],[458,{buffer:4096,cids:4127,"js-base64":4721,multihashes:451},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){const n=e("cids"),i=e("multihashes"),o=e("js-base64"),s=e=>{let t=e.slice(0,2),r=e.slice(2),n="";return n="0x"===t?r:e,i.fromHexString(n)},a=e=>{try{const{multihash:t}=e;if(t.length<38){const e=i.decode(t);if("identity"===e.name&&e.length<36)return!1}return!0}catch(e){return!1}},u={skynet:e=>o.toUint8Array(e),swarm:e=>{const t=i.encode(s(e),"keccak-256");return new n(1,"swarm-manifest",t).bytes},ipfs:e=>new n(e).toV1().bytes,ipns:e=>{const t=new n(e);if(!a(t))throw Error("ipns-ns allows only valid cryptographic libp2p-key identifiers, try using ED25519 pubkey instead");return new n(1,"libp2p-key",t.multihash).bytes},utf8:e=>t.from(e,"utf8"),arweave:e=>o.toUint8Array(e)},c={hexMultiHash:e=>{const t=new n(e);return i.decode(t.multihash).digest.toString("hex")},ipfs:e=>{const t=new n(e).toV1();return t.toString("libp2p-key"===t.codec?"base36":"base32")},ipns:e=>{const t=new n(e).toV1();return a(t)?t.toString("base36"):(console.warn("[ensdomains/content-hash] use of non-cryptographic identifiers in ipns-ns is deprecated and will be removed, migrate to ED25519 libp2p-key"),String(i.decode(new n(e).multihash).digest))},utf8:e=>e.toString("utf8"),base64:e=>o.fromUint8Array(e,!0)},l={"skynet-ns":{encode:u.skynet,decode:c.base64},"swarm-ns":{encode:u.swarm,decode:c.hexMultiHash},"ipfs-ns":{encode:u.ipfs,decode:c.ipfs},"ipns-ns":{encode:u.ipns,decode:c.ipns},"arweave-ns":{encode:u.arweave,decode:c.base64},default:{encode:u.utf8,decode:c.utf8}};r.hexStringToBuffer=s,r.profiles=l}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@ensdomains/content-hash",file:"node_modules/@ensdomains/content-hash/src/profiles.js"}],[4580,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3554",comment:"Reduction in refunds",url:"Difficulty Bomb Delay to December 1st 2021",status:"Final",minimumHardfork:"muirGlacier",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{difficultyBombDelay:{v:95e5,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3554.json"}],[4581,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3607",number:3607,comment:"Reject transactions from senders with deployed code",url:"https://eips.ethereum.org/EIPS/eip-3607",status:"Final",minimumHardfork:"chainstart",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3607.json"}],[4582,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3651",number:3198,comment:"Warm COINBASE",url:"https://eips.ethereum.org/EIPS/eip-3651",status:"Review",minimumHardfork:"london",requiredEIPs:[2929],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3651.json"}],[4583,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3670",number:3670,comment:"EOF - Code Validation",url:"https://eips.ethereum.org/EIPS/eip-3670",status:"Review",minimumHardfork:"london",requiredEIPs:[3540],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3670.json"}],[4584,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3675",number:3675,comment:"Upgrade consensus to Proof-of-Stake",url:"https://eips.ethereum.org/EIPS/eip-3675",status:"Final",minimumHardfork:"london",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3675.json"}],[4585,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3855",number:3855,comment:"PUSH0 instruction",url:"https://eips.ethereum.org/EIPS/eip-3855",status:"Review",minimumHardfork:"chainstart",requiredEIPs:[],gasConfig:{},gasPrices:{push0:{v:2,d:"Base fee of the PUSH0 opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3855.json"}],[4586,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-3860",number:3860,comment:"Limit and meter initcode",url:"https://eips.ethereum.org/EIPS/eip-3860",status:"Review",minimumHardfork:"spuriousDragon",requiredEIPs:[],gasConfig:{},gasPrices:{initCodeWordCost:{v:2,d:"Gas to pay for each word (32 bytes) of initcode when creating a contract"}},vm:{maxInitCodeSize:{v:49152,d:"Maximum length of initialization code when creating a contract"}},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/3860.json"}],[4587,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-4345",number:4345,comment:"Difficulty Bomb Delay to June 2022",url:"https://eips.ethereum.org/EIPS/eip-4345",status:"Final",minimumHardfork:"london",gasConfig:{},gasPrices:{},vm:{},pow:{difficultyBombDelay:{v:107e5,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/4345.json"}],[4588,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-4399",number:4399,comment:"Supplant DIFFICULTY opcode with PREVRANDAO",url:"https://eips.ethereum.org/EIPS/eip-4399",status:"Review",minimumHardfork:"london",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/4399.json"}],[4589,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-4844",number:4844,comment:"Shard Blob Transactions",url:"https://eips.ethereum.org/EIPS/eip-4844",status:"Draft",minimumHardfork:"merge",requiredEIPs:[1559,2718,2930,4895],gasConfig:{dataGasPerBlob:{v:131072,d:"The base fee for data gas per blob"},targetDataGasPerBlock:{v:262144,d:"The target data gas consumed per block"},maxDataGasPerBlock:{v:524288,d:"The max data gas allowable per block"},dataGasPriceUpdateFraction:{v:2225652,d:"The denominator used in the exponential when calculating a data gas price"}},gasPrices:{simpleGasPerBlob:{v:12e3,d:"The basic gas fee for each blob"},minDataGasPrice:{v:1,d:"The minimum fee per data gas"},kzgPointEvaluationGasPrecompilePrice:{v:5e4,d:"The fee associated with the point evaluation precompile"},datahash:{v:3,d:"Base fee of the DATAHASH opcode"}},sharding:{blobCommitmentVersionKzg:{v:1,d:"The number indicated a versioned hash is a KZG commitment"},fieldElementsPerBlob:{v:4096,d:"The number of field elements allowed per blob"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/4844.json"}],[4590,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-4895",number:4895,comment:"Beacon chain push withdrawals as operations",url:"https://eips.ethereum.org/EIPS/eip-4895",status:"Review",minimumHardfork:"merge",requiredEIPs:[],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/4895.json"}],[4591,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"EIP-5133",number:5133,comment:"Delaying Difficulty Bomb to mid-September 2022",url:"https://eips.ethereum.org/EIPS/eip-5133",status:"Draft",minimumHardfork:"grayGlacier",gasConfig:{},gasPrices:{},vm:{},pow:{difficultyBombDelay:{v:114e5,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/5133.json"}],[4592,{"./1153.json":4567,"./1559.json":4568,"./2315.json":4569,"./2537.json":4570,"./2565.json":4571,"./2718.json":4572,"./2929.json":4573,"./2930.json":4574,"./3074.json":4575,"./3198.json":4576,"./3529.json":4577,"./3540.json":4578,"./3541.json":4579,"./3554.json":4580,"./3607.json":4581,"./3651.json":4582,"./3670.json":4583,"./3675.json":4584,"./3855.json":4585,"./3860.json":4586,"./4345.json":4587,"./4399.json":4588,"./4844.json":4589,"./4895.json":4590,"./5133.json":4591},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EIPs=void 0,r.EIPs={1153:e("./1153.json"),1559:e("./1559.json"),2315:e("./2315.json"),2537:e("./2537.json"),2565:e("./2565.json"),2718:e("./2718.json"),2929:e("./2929.json"),2930:e("./2930.json"),3074:e("./3074.json"),3198:e("./3198.json"),3529:e("./3529.json"),3540:e("./3540.json"),3541:e("./3541.json"),3554:e("./3554.json"),3607:e("./3607.json"),3651:e("./3651.json"),3670:e("./3670.json"),3675:e("./3675.json"),3855:e("./3855.json"),3860:e("./3860.json"),4345:e("./4345.json"),4399:e("./4399.json"),4844:e("./4844.json"),4895:e("./4895.json"),5133:e("./5133.json")}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/eips/index.js"}],[4593,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CustomChain=r.ConsensusAlgorithm=r.ConsensusType=r.Hardfork=r.Chain=void 0,function(e){e[e.Mainnet=1]="Mainnet",e[e.Ropsten=3]="Ropsten",e[e.Rinkeby=4]="Rinkeby",e[e.Goerli=5]="Goerli",e[e.Sepolia=11155111]="Sepolia"}(r.Chain||(r.Chain={})),function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.ArrowGlacier="arrowGlacier",e.GrayGlacier="grayGlacier",e.MergeForkIdTransition="mergeForkIdTransition",e.Merge="merge",e.Shanghai="shanghai",e.ShardingForkDev="shardingFork"}(r.Hardfork||(r.Hardfork={})),function(e){e.ProofOfStake="pos",e.ProofOfWork="pow",e.ProofOfAuthority="poa"}(r.ConsensusType||(r.ConsensusType={})),function(e){e.Ethash="ethash",e.Clique="clique",e.Casper="casper"}(r.ConsensusAlgorithm||(r.ConsensusAlgorithm={})),function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.ArbitrumOne="arbitrum-one",e.xDaiChain="x-dai-chain",e.OptimisticKovan="optimistic-kovan",e.OptimisticEthereum="optimistic-ethereum"}(r.CustomChain||(r.CustomChain={}))}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/enums.js"}],[4594,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"arrowGlacier",comment:"HF to delay the difficulty bomb",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md",status:"Final",eips:[4345],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/arrowGlacier.json"}],[4595,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"berlin",comment:"HF targeted for July 2020 following the Muir Glacier HF",url:"https://eips.ethereum.org/EIPS/eip-2070",status:"Final",eips:[2565,2929,2718,2930]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/berlin.json"}],[4596,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"byzantium",comment:"Hardfork with new precompiles, instructions and other protocol changes",url:"https://eips.ethereum.org/EIPS/eip-609",status:"Final",gasConfig:{},gasPrices:{modexpGquaddivisor:{v:20,d:"Gquaddivisor from modexp precompile for gas calculation"},ecAdd:{v:500,d:"Gas costs for curve addition precompile"},ecMul:{v:4e4,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:1e5,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:8e4,d:"Gas costs regarding curve pairing precompile input length"},revert:{v:0,d:"Base fee of the REVERT opcode"},staticcall:{v:700,d:"Base fee of the STATICCALL opcode"},returndatasize:{v:2,d:"Base fee of the RETURNDATASIZE opcode"},returndatacopy:{v:3,d:"Base fee of the RETURNDATACOPY opcode"}},vm:{},pow:{minerReward:{v:"3000000000000000000",d:"the amount a miner get rewarded for mining a block"},difficultyBombDelay:{v:3e6,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/byzantium.json"}],[4597,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"chainstart",comment:"Start of the Ethereum main chain",url:"",status:"",gasConfig:{minGasLimit:{v:5e3,d:"Minimum the gas limit may ever be"},gasLimitBoundDivisor:{v:1024,d:"The bound divisor of the gas limit, used in update calculations"},maxRefundQuotient:{v:2,d:"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},gasPrices:{base:{v:2,d:"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},tierStep:{v:[0,2,3,5,8,10,20],d:"Once per operation, for a selection of them"},exp:{v:10,d:"Base fee of the EXP opcode"},expByte:{v:10,d:"Times ceil(log256(exponent)) for the EXP instruction"},sha3:{v:30,d:"Base fee of the SHA3 opcode"},sha3Word:{v:6,d:"Once per word of the SHA3 operation's data"},sload:{v:50,d:"Base fee of the SLOAD opcode"},sstoreSet:{v:2e4,d:"Once per SSTORE operation if the zeroness changes from zero"},sstoreReset:{v:5e3,d:"Once per SSTORE operation if the zeroness does not change from zero"},sstoreRefund:{v:15e3,d:"Once per SSTORE operation if the zeroness changes to zero"},jumpdest:{v:1,d:"Base fee of the JUMPDEST opcode"},log:{v:375,d:"Base fee of the LOG opcode"},logData:{v:8,d:"Per byte in a LOG* operation's data"},logTopic:{v:375,d:"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},create:{v:32e3,d:"Base fee of the CREATE opcode"},call:{v:40,d:"Base fee of the CALL opcode"},callStipend:{v:2300,d:"Free gas given at beginning of call"},callValueTransfer:{v:9e3,d:"Paid for CALL when the value transfor is non-zero"},callNewAccount:{v:25e3,d:"Paid for CALL when the destination address didn't exist prior"},selfdestructRefund:{v:24e3,d:"Refunded following a selfdestruct operation"},memory:{v:3,d:"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},quadCoeffDiv:{v:512,d:"Divisor for the quadratic particle of the memory cost equation"},createData:{v:200,d:""},tx:{v:21e3,d:"Per transaction. NOTE: Not payable on data of calls between transactions"},txCreation:{v:32e3,d:"The cost of creating a contract via tx"},txDataZero:{v:4,d:"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},txDataNonZero:{v:68,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},copy:{v:3,d:"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},ecRecover:{v:3e3,d:""},sha256:{v:60,d:""},sha256Word:{v:12,d:""},ripemd160:{v:600,d:""},ripemd160Word:{v:120,d:""},identity:{v:15,d:""},identityWord:{v:3,d:""},stop:{v:0,d:"Base fee of the STOP opcode"},add:{v:3,d:"Base fee of the ADD opcode"},mul:{v:5,d:"Base fee of the MUL opcode"},sub:{v:3,d:"Base fee of the SUB opcode"},div:{v:5,d:"Base fee of the DIV opcode"},sdiv:{v:5,d:"Base fee of the SDIV opcode"},mod:{v:5,d:"Base fee of the MOD opcode"},smod:{v:5,d:"Base fee of the SMOD opcode"},addmod:{v:8,d:"Base fee of the ADDMOD opcode"},mulmod:{v:8,d:"Base fee of the MULMOD opcode"},signextend:{v:5,d:"Base fee of the SIGNEXTEND opcode"},lt:{v:3,d:"Base fee of the LT opcode"},gt:{v:3,d:"Base fee of the GT opcode"},slt:{v:3,d:"Base fee of the SLT opcode"},sgt:{v:3,d:"Base fee of the SGT opcode"},eq:{v:3,d:"Base fee of the EQ opcode"},iszero:{v:3,d:"Base fee of the ISZERO opcode"},and:{v:3,d:"Base fee of the AND opcode"},or:{v:3,d:"Base fee of the OR opcode"},xor:{v:3,d:"Base fee of the XOR opcode"},not:{v:3,d:"Base fee of the NOT opcode"},byte:{v:3,d:"Base fee of the BYTE opcode"},address:{v:2,d:"Base fee of the ADDRESS opcode"},balance:{v:20,d:"Base fee of the BALANCE opcode"},origin:{v:2,d:"Base fee of the ORIGIN opcode"},caller:{v:2,d:"Base fee of the CALLER opcode"},callvalue:{v:2,d:"Base fee of the CALLVALUE opcode"},calldataload:{v:3,d:"Base fee of the CALLDATALOAD opcode"},calldatasize:{v:2,d:"Base fee of the CALLDATASIZE opcode"},calldatacopy:{v:3,d:"Base fee of the CALLDATACOPY opcode"},codesize:{v:2,d:"Base fee of the CODESIZE opcode"},codecopy:{v:3,d:"Base fee of the CODECOPY opcode"},gasprice:{v:2,d:"Base fee of the GASPRICE opcode"},extcodesize:{v:20,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:20,d:"Base fee of the EXTCODECOPY opcode"},blockhash:{v:20,d:"Base fee of the BLOCKHASH opcode"},coinbase:{v:2,d:"Base fee of the COINBASE opcode"},timestamp:{v:2,d:"Base fee of the TIMESTAMP opcode"},number:{v:2,d:"Base fee of the NUMBER opcode"},difficulty:{v:2,d:"Base fee of the DIFFICULTY opcode"},gaslimit:{v:2,d:"Base fee of the GASLIMIT opcode"},pop:{v:2,d:"Base fee of the POP opcode"},mload:{v:3,d:"Base fee of the MLOAD opcode"},mstore:{v:3,d:"Base fee of the MSTORE opcode"},mstore8:{v:3,d:"Base fee of the MSTORE8 opcode"},sstore:{v:0,d:"Base fee of the SSTORE opcode"},jump:{v:8,d:"Base fee of the JUMP opcode"},jumpi:{v:10,d:"Base fee of the JUMPI opcode"},pc:{v:2,d:"Base fee of the PC opcode"},msize:{v:2,d:"Base fee of the MSIZE opcode"},gas:{v:2,d:"Base fee of the GAS opcode"},push:{v:3,d:"Base fee of the PUSH opcode"},dup:{v:3,d:"Base fee of the DUP opcode"},swap:{v:3,d:"Base fee of the SWAP opcode"},callcode:{v:40,d:"Base fee of the CALLCODE opcode"},return:{v:0,d:"Base fee of the RETURN opcode"},invalid:{v:0,d:"Base fee of the INVALID opcode"},selfdestruct:{v:0,d:"Base fee of the SELFDESTRUCT opcode"}},vm:{stackLimit:{v:1024,d:"Maximum size of VM stack allowed"},callCreateDepth:{v:1024,d:"Maximum depth of call/create stack"},maxExtraDataSize:{v:32,d:"Maximum size extra data may be after Genesis"}},pow:{minimumDifficulty:{v:131072,d:"The minimum that the difficulty may ever be"},difficultyBoundDivisor:{v:2048,d:"The bound divisor of the difficulty, used in the update calculations"},durationLimit:{v:13,d:"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},epochDuration:{v:3e4,d:"Duration between proof-of-work epochs"},timebombPeriod:{v:1e5,d:"Exponential difficulty timebomb period"},minerReward:{v:"5000000000000000000",d:"the amount a miner get rewarded for mining a block"},difficultyBombDelay:{v:0,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/chainstart.json"}],[4598,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"constantinople",comment:"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)",url:"https://eips.ethereum.org/EIPS/eip-1013",status:"Final",gasConfig:{},gasPrices:{netSstoreNoopGas:{v:200,d:"Once per SSTORE operation if the value doesn't change"},netSstoreInitGas:{v:2e4,d:"Once per SSTORE operation from clean zero"},netSstoreCleanGas:{v:5e3,d:"Once per SSTORE operation from clean non-zero"},netSstoreDirtyGas:{v:200,d:"Once per SSTORE operation from dirty"},netSstoreClearRefund:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},netSstoreResetRefund:{v:4800,d:"Once per SSTORE operation for resetting to the original non-zero value"},netSstoreResetClearRefund:{v:19800,d:"Once per SSTORE operation for resetting to the original zero value"},shl:{v:3,d:"Base fee of the SHL opcode"},shr:{v:3,d:"Base fee of the SHR opcode"},sar:{v:3,d:"Base fee of the SAR opcode"},extcodehash:{v:400,d:"Base fee of the EXTCODEHASH opcode"},create2:{v:32e3,d:"Base fee of the CREATE2 opcode"}},vm:{},pow:{minerReward:{v:"2000000000000000000",d:"The amount a miner gets rewarded for mining a block"},difficultyBombDelay:{v:5e6,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/constantinople.json"}],[4599,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"dao",comment:"DAO rescue hardfork",url:"https://eips.ethereum.org/EIPS/eip-779",status:"Final",gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/dao.json"}],[46,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getExecutionServiceMessenger=function(e){return e.getRestricted({name:"ExecutionService",allowedEvents:[],allowedActions:[]})}}}},{package:"$root$",file:"app/scripts/controller-init/messengers/snaps/execution-service-messenger.ts"}],[4600,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"grayGlacier",comment:"Delaying the difficulty bomb to Mid September 2022",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/gray-glacier.md",status:"Draft",eips:[5133],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/grayGlacier.json"}],[4601,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"homestead",comment:"Homestead hardfork with protocol and network changes",url:"https://eips.ethereum.org/EIPS/eip-606",status:"Final",gasConfig:{},gasPrices:{delegatecall:{v:40,d:"Base fee of the DELEGATECALL opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/homestead.json"}],[4602,{"./arrowGlacier.json":4594,"./berlin.json":4595,"./byzantium.json":4596,"./chainstart.json":4597,"./constantinople.json":4598,"./dao.json":4599,"./grayGlacier.json":4600,"./homestead.json":4601,"./istanbul.json":4603,"./london.json":4604,"./merge.json":4605,"./mergeForkIdTransition.json":4606,"./muirGlacier.json":4607,"./petersburg.json":4608,"./shanghai.json":4609,"./sharding.json":4610,"./spuriousDragon.json":4611,"./tangerineWhistle.json":4612},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hardforks=void 0,r.hardforks={chainstart:e("./chainstart.json"),homestead:e("./homestead.json"),dao:e("./dao.json"),tangerineWhistle:e("./tangerineWhistle.json"),spuriousDragon:e("./spuriousDragon.json"),byzantium:e("./byzantium.json"),constantinople:e("./constantinople.json"),petersburg:e("./petersburg.json"),istanbul:e("./istanbul.json"),muirGlacier:e("./muirGlacier.json"),berlin:e("./berlin.json"),london:e("./london.json"),shanghai:e("./shanghai.json"),arrowGlacier:e("./arrowGlacier.json"),grayGlacier:e("./grayGlacier.json"),mergeForkIdTransition:e("./mergeForkIdTransition.json"),merge:e("./merge.json"),shardingFork:e("./sharding.json")}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/index.js"}],[4603,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"istanbul",comment:"HF targeted for December 2019 following the Constantinople/Petersburg HF",url:"https://eips.ethereum.org/EIPS/eip-1679",status:"Final",gasConfig:{},gasPrices:{blake2Round:{v:1,d:"Gas cost per round for the Blake2 F precompile"},ecAdd:{v:150,d:"Gas costs for curve addition precompile"},ecMul:{v:6e3,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:45e3,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:34e3,d:"Gas costs regarding curve pairing precompile input length"},txDataNonZero:{v:16,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},sstoreSentryGasEIP2200:{v:2300,d:"Minimum gas required to be present for an SSTORE call, not consumed"},sstoreNoopGasEIP2200:{v:800,d:"Once per SSTORE operation if the value doesn't change"},sstoreDirtyGasEIP2200:{v:800,d:"Once per SSTORE operation if a dirty value is changed"},sstoreInitGasEIP2200:{v:2e4,d:"Once per SSTORE operation from clean zero to non-zero"},sstoreInitRefundEIP2200:{v:19200,d:"Once per SSTORE operation for resetting to the original zero value"},sstoreCleanGasEIP2200:{v:5e3,d:"Once per SSTORE operation from clean non-zero to something else"},sstoreCleanRefundEIP2200:{v:4200,d:"Once per SSTORE operation for resetting to the original non-zero value"},sstoreClearRefundEIP2200:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},balance:{v:700,d:"Base fee of the BALANCE opcode"},extcodehash:{v:700,d:"Base fee of the EXTCODEHASH opcode"},chainid:{v:2,d:"Base fee of the CHAINID opcode"},selfbalance:{v:5,d:"Base fee of the SELFBALANCE opcode"},sload:{v:800,d:"Base fee of the SLOAD opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/istanbul.json"}],[4604,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"london",comment:"HF targeted for July 2021 following the Berlin fork",url:"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md",status:"Final",eips:[1559,3198,3529,3541]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/london.json"}],[4605,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"merge",comment:"Hardfork to upgrade the consensus mechanism to Proof-of-Stake",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/merge.md",status:"Final",consensus:{type:"pos",algorithm:"casper",casper:{}},eips:[3675,4399]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/merge.json"}],[4606,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"mergeForkIdTransition",comment:"Pre-merge hardfork to fork off non-upgraded clients",url:"https://eips.ethereum.org/EIPS/eip-3675",status:"Draft",eips:[]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/mergeForkIdTransition.json"}],[4607,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"muirGlacier",comment:"HF to delay the difficulty bomb",url:"https://eips.ethereum.org/EIPS/eip-2384",status:"Final",gasConfig:{},gasPrices:{},vm:{},pow:{difficultyBombDelay:{v:9e6,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/muirGlacier.json"}],[4608,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"petersburg",comment:"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople",url:"https://eips.ethereum.org/EIPS/eip-1716",status:"Final",gasConfig:{},gasPrices:{netSstoreNoopGas:{v:null,d:"Removed along EIP-1283"},netSstoreInitGas:{v:null,d:"Removed along EIP-1283"},netSstoreCleanGas:{v:null,d:"Removed along EIP-1283"},netSstoreDirtyGas:{v:null,d:"Removed along EIP-1283"},netSstoreClearRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetClearRefund:{v:null,d:"Removed along EIP-1283"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/petersburg.json"}],[4609,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"shanghai",comment:"Next feature hardfork after the merge hardfork having withdrawals, warm coinbase, push0, limit/meter initcode",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md",status:"Final",eips:[3651,3855,3860,4895]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/shanghai.json"}],[4610,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"shardingFork",comment:"Internal hardfork to test proto-danksharding (do not use in production)",url:"https://eips.ethereum.org/EIPS/eip-4844",status:"Experimental",eips:[4844]}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/sharding.json"}],[4611,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"spuriousDragon",comment:"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit",url:"https://eips.ethereum.org/EIPS/eip-607",status:"Final",gasConfig:{},gasPrices:{expByte:{v:50,d:"Times ceil(log256(exponent)) for the EXP instruction"}},vm:{maxCodeSize:{v:24576,d:"Maximum length of contract code"}},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/spuriousDragon.json"}],[4612,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"tangerineWhistle",comment:"Hardfork with gas cost changes for IO-heavy operations",url:"https://eips.ethereum.org/EIPS/eip-608",status:"Final",gasConfig:{},gasPrices:{sload:{v:200,d:"Once per SLOAD operation"},call:{v:700,d:"Once per CALL operation & message call transaction"},extcodesize:{v:700,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:700,d:"Base fee of the EXTCODECOPY opcode"},balance:{v:400,d:"Base fee of the BALANCE opcode"},delegatecall:{v:700,d:"Base fee of the DELEGATECALL opcode"},callcode:{v:700,d:"Base fee of the CALLCODE opcode"},selfdestruct:{v:5e3,d:"Base fee of the SELFDESTRUCT opcode"}},vm:{},pow:{}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/hardforks/tangerineWhistle.json"}],[4613,{"./common":4566,"./enums":4593,"./types":4614,"./utils":4615},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./common"),r),i(e("./enums"),r),i(e("./types"),r),i(e("./utils"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/index.js"}],[4614,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/types.js"}],[4615,{"./enums":4593,"@ethereumjs/util":4623},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseGethGenesis=void 0;const n=e("@ethereumjs/util"),i=e("./enums");function o(e,t=!0){const{name:r,config:o,difficulty:s,mixHash:a,gasLimit:u,coinbase:c,baseFeePerGas:l}=e;let{extraData:f,timestamp:d,nonce:h}=e;const p=Number(d),{chainId:b}=o;if(""===f&&(f="0x"),(0,n.isHexPrefixed)(d)||(d=(0,n.intToHex)(parseInt(d))),18!==h.length&&(h=function(e){return e&&"0x0"!==e?(0,n.isHexPrefixed)(e)?"0x"+(0,n.stripHexPrefix)(e).padStart(16,"0"):"0x"+e.padStart(16,"0"):"0x0000000000000000"}(h)),o.eip155Block!==o.eip158Block)throw new Error("EIP155 block number must equal EIP 158 block number since both are part of SpuriousDragon hardfork and the client only supports activating the full hardfork");const m={name:r,chainId:b,networkId:b,genesis:{timestamp:d,gasLimit:parseInt(u),difficulty:parseInt(s),nonce:h,extraData:f,mixHash:a,coinbase:c,baseFeePerGas:l},hardfork:undefined,hardforks:[],bootstrapNodes:[],consensus:o.clique!==undefined?{type:"poa",algorithm:"clique",clique:{period:o.clique.period??o.clique.blockperiodseconds,epoch:o.clique.epoch??o.clique.epochlength}}:{type:"pow",algorithm:"ethash",ethash:{}}},g={[i.Hardfork.Homestead]:{name:"homesteadBlock"},[i.Hardfork.Dao]:{name:"daoForkBlock"},[i.Hardfork.TangerineWhistle]:{name:"eip150Block"},[i.Hardfork.SpuriousDragon]:{name:"eip155Block"},[i.Hardfork.Byzantium]:{name:"byzantiumBlock"},[i.Hardfork.Constantinople]:{name:"constantinopleBlock"},[i.Hardfork.Petersburg]:{name:"petersburgBlock"},[i.Hardfork.Istanbul]:{name:"istanbulBlock"},[i.Hardfork.MuirGlacier]:{name:"muirGlacierBlock"},[i.Hardfork.Berlin]:{name:"berlinBlock"},[i.Hardfork.London]:{name:"londonBlock"},[i.Hardfork.MergeForkIdTransition]:{name:"mergeForkBlock",postMerge:t},[i.Hardfork.Shanghai]:{name:"shanghaiTime",postMerge:!0,isTimestamp:!0},[i.Hardfork.ShardingForkDev]:{name:"shardingForkTime",postMerge:!0,isTimestamp:!0}},v=Object.keys(g).reduce(((e,t)=>(e[g[t].name]=t,e)),{}),y=Object.keys(o).filter((e=>v[e]!==undefined&&o[e]!==undefined&&null!==o[e]));if(m.hardforks=y.map((e=>({name:v[e],block:!0===g[v[e]].isTimestamp||"number"!=typeof o[e]?null:o[e],timestamp:!0===g[v[e]].isTimestamp&&"number"==typeof o[e]?o[e]:undefined}))).filter((e=>null!==e.block||e.timestamp!==undefined)),m.hardforks.sort((function(e,t){return(e.block??Infinity)-(t.block??Infinity)})),m.hardforks.sort((function(e,t){return(e.timestamp??p)-(t.timestamp??p)})),o.terminalTotalDifficulty!==undefined){const e={name:i.Hardfork.Merge,ttd:o.terminalTotalDifficulty,block:null},t=m.hardforks.findIndex((e=>!0===g[e.name]?.postMerge));-1!==t?m.hardforks.splice(t,0,e):m.hardforks.push(e)}const w=m.hardforks.length>0?m.hardforks.slice(-1)[0]:undefined;return m.hardfork=w?.name,m.hardforks.unshift({name:i.Hardfork.Chainstart,block:0}),m}r.parseGethGenesis=function(e,t,r){try{if(["config","difficulty","gasLimit","alloc"].some((t=>!(t in e))))throw new Error("Invalid format, expected geth genesis fields missing");return t!==undefined&&(e.name=t),o(e,r)}catch(e){throw new Error(`Error parsing parameters file: ${e.message}`)}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/common/dist/utils.js"}],[4616,{"./bytes":4619,"./constants":4620,"./helpers":4622,"./internal":4624,"@ethereumjs/rlp":469,buffer:4096,"ethereum-cryptography/keccak":4330,"ethereum-cryptography/secp256k1":4351,"ethereum-cryptography/utils":4353},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.accountBodyToRLP=r.accountBodyToSlim=r.accountBodyFromSlim=r.isZeroAddress=r.zeroAddress=r.importPublic=r.privateToAddress=r.privateToPublic=r.publicToAddress=r.pubToAddress=r.isValidPublic=r.isValidPrivate=r.generateAddress2=r.generateAddress=r.isValidChecksumAddress=r.toChecksumAddress=r.isValidAddress=r.Account=void 0;const n=e("@ethereumjs/rlp"),i=e("ethereum-cryptography/keccak"),o=e("ethereum-cryptography/secp256k1"),s=e("ethereum-cryptography/utils"),a=e("./bytes"),u=e("./constants"),c=e("./helpers"),l=e("./internal"),f=BigInt(0);class d{constructor(e=f,t=f,r=u.KECCAK256_RLP,n=u.KECCAK256_NULL){this.nonce=e,this.balance=t,this.storageRoot=r,this.codeHash=n,this._validate()}static fromAccountData(e){const{nonce:t,balance:r,storageRoot:n,codeHash:i}=e;return new d(t!==undefined?(0,a.bufferToBigInt)((0,a.toBuffer)(t)):undefined,r!==undefined?(0,a.bufferToBigInt)((0,a.toBuffer)(r)):undefined,n!==undefined?(0,a.toBuffer)(n):undefined,i!==undefined?(0,a.toBuffer)(i):undefined)}static fromRlpSerializedAccount(e){const t=(0,a.arrToBufArr)(n.RLP.decode(Uint8Array.from(e)));if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromValuesArray(e){const[t,r,n,i]=e;return new d((0,a.bufferToBigInt)(t),(0,a.bufferToBigInt)(r),n,i)}_validate(){if(this.nonce<f)throw new Error("nonce must be greater than zero");if(this.balance<f)throw new Error("balance must be greater than zero");if(32!==this.storageRoot.length)throw new Error("storageRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")}raw(){return[(0,a.bigIntToUnpaddedBuffer)(this.nonce),(0,a.bigIntToUnpaddedBuffer)(this.balance),this.storageRoot,this.codeHash]}serialize(){return t.from(n.RLP.encode((0,a.bufArrToArr)(this.raw())))}isContract(){return!this.codeHash.equals(u.KECCAK256_NULL)}isEmpty(){return this.balance===f&&this.nonce===f&&this.codeHash.equals(u.KECCAK256_NULL)}}r.Account=d;r.isValidAddress=function(e){try{(0,c.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};r.toChecksumAddress=function(e,r){(0,c.assertIsHexString)(e);const n=(0,l.stripHexPrefix)(e).toLowerCase();let o="";if(r!==undefined){o=(0,a.bufferToBigInt)((0,a.toBuffer)(r)).toString()+"0x"}const u=t.from(o+n,"utf8"),f=(0,s.bytesToHex)((0,i.keccak256)(u));let d="0x";for(let e=0;e<n.length;e++)parseInt(f[e],16)>=8?d+=n[e].toUpperCase():d+=n[e];return d};r.isValidChecksumAddress=function(e,t){return(0,r.isValidAddress)(e)&&(0,r.toChecksumAddress)(e,t)===e};r.generateAddress=function(e,r){return(0,c.assertIsBuffer)(e),(0,c.assertIsBuffer)(r),(0,a.bufferToBigInt)(r)===BigInt(0)?t.from((0,i.keccak256)(n.RLP.encode((0,a.bufArrToArr)([e,null])))).slice(-20):t.from((0,i.keccak256)(n.RLP.encode((0,a.bufArrToArr)([e,r])))).slice(-20)};r.generateAddress2=function(e,r,n){if((0,c.assertIsBuffer)(e),(0,c.assertIsBuffer)(r),(0,c.assertIsBuffer)(n),20!==e.length)throw new Error("Expected from to be of length 20");if(32!==r.length)throw new Error("Expected salt to be of length 32");const o=(0,i.keccak256)(t.concat([t.from("ff","hex"),e,r,(0,i.keccak256)(n)]));return(0,a.toBuffer)(o).slice(-20)};r.isValidPrivate=function(e){return o.secp256k1.utils.isValidPrivateKey(e)};r.isValidPublic=function(e,r=!1){if((0,c.assertIsBuffer)(e),64===e.length)try{return o.secp256k1.ProjectivePoint.fromHex(t.concat([t.from([4]),e])),!0}catch(e){return!1}if(!r)return!1;try{return o.secp256k1.ProjectivePoint.fromHex(e),!0}catch(e){return!1}};r.pubToAddress=function(e,r=!1){if((0,c.assertIsBuffer)(e),r&&64!==e.length&&(e=t.from(o.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),64!==e.length)throw new Error("Expected pubKey to be of length 64");return t.from((0,i.keccak256)(e)).slice(-20)},r.publicToAddress=r.pubToAddress;r.privateToPublic=function(e){return(0,c.assertIsBuffer)(e),t.from(o.secp256k1.ProjectivePoint.fromPrivateKey(e).toRawBytes(!1).slice(1))};r.privateToAddress=function(e){return(0,r.publicToAddress)((0,r.privateToPublic)(e))};r.importPublic=function(e){return(0,c.assertIsBuffer)(e),64!==e.length&&(e=t.from(o.secp256k1.ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1))),e};r.zeroAddress=function(){const e=(0,a.zeros)(20);return(0,a.bufferToHex)(e)};function h(e){const[t,r,n,i]=e;return[t,r,0===(0,a.arrToBufArr)(n).length?u.KECCAK256_RLP:n,0===(0,a.arrToBufArr)(i).length?u.KECCAK256_NULL:i]}r.isZeroAddress=function(e){try{(0,c.assertIsString)(e)}catch(e){return!1}return(0,r.zeroAddress)()===e},r.accountBodyFromSlim=h;const p=new Uint8Array(0);r.accountBodyToSlim=function(e){const[t,r,n,i]=e;return[t,r,(0,a.arrToBufArr)(n).equals(u.KECCAK256_RLP)?p:n,(0,a.arrToBufArr)(i).equals(u.KECCAK256_NULL)?p:i]},r.accountBodyToRLP=function(e,t=!0){const r=t?h(e):e;return(0,a.arrToBufArr)(n.RLP.encode(r))}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/account.js"}],[4617,{"./account":4616,"./bytes":4619,buffer:4096},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.Address=void 0;const n=e("./account"),i=e("./bytes");class o{constructor(e){if(20!==e.length)throw new Error("Invalid address length");this.buf=e}static zero(){return new o((0,i.zeros)(20))}static fromString(e){if(!(0,n.isValidAddress)(e))throw new Error("Invalid address");return new o((0,i.toBuffer)(e))}static fromPublicKey(e){if(!t.isBuffer(e))throw new Error("Public key should be Buffer");const r=(0,n.pubToAddress)(e);return new o(r)}static fromPrivateKey(e){if(!t.isBuffer(e))throw new Error("Private key should be Buffer");const r=(0,n.privateToAddress)(e);return new o(r)}static generate(e,t){if("bigint"!=typeof t)throw new Error("Expected nonce to be a bigint");return new o((0,n.generateAddress)(e.buf,(0,i.bigIntToBuffer)(t)))}static generate2(e,r,i){if(!t.isBuffer(r))throw new Error("Expected salt to be a Buffer");if(!t.isBuffer(i))throw new Error("Expected initCode to be a Buffer");return new o((0,n.generateAddress2)(e.buf,r,i))}equals(e){return this.buf.equals(e.buf)}isZero(){return this.equals(o.zero())}isPrecompileOrSystemAddress(){const e=(0,i.bufferToBigInt)(this.buf),t=BigInt(0),r=BigInt("0xffff");return e>=t&&e<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return t.from(this.buf)}}r.Address=o}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/address.js"}],[4618,{events:4433},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncEventEmitter=void 0;const n=e("events");class i extends n.EventEmitter{emit(e,...t){let[r,n]=t;const i=this;let o=i._events[e]??[];return n===undefined&&"function"==typeof r&&(n=r,r=undefined),"newListener"!==e&&"removeListener"!==e||(r={event:r,fn:n},n=undefined),o=Array.isArray(o)?o:[o],async function(e,t,r){let n;for await(const i of t)try{i.length<2?i.call(e,r):await new Promise(((t,n)=>{i.call(e,r,(e=>{e?n(e):t()}))}))}catch(e){n=e}if(n)throw n}(i,o.slice(),r).then(n).catch(n),i.listenerCount(e)>0}once(e,t){const r=this;let n;if("function"!=typeof t)throw new TypeError("listener must be a function");return n=t.length>=2?function(i,o){r.removeListener(e,n),t(i,o)}:function(i){r.removeListener(e,n),t(i,n)},r.on(e,n),r}first(e,t){let r=this._events[e]??[];if("function"!=typeof t)throw new TypeError("listener must be a function");return Array.isArray(r)||(this._events[e]=r=[r]),r.unshift(t),this}before(e,t,r){return this.beforeOrAfter(e,t,r)}after(e,t,r){return this.beforeOrAfter(e,t,r,"after")}beforeOrAfter(e,t,r,n){let i,o,s=this._events[e]??[];const a="after"===n?1:0;if("function"!=typeof r)throw new TypeError("listener must be a function");if("function"!=typeof t)throw new TypeError("target must be a function");for(Array.isArray(s)||(this._events[e]=s=[s]),o=s.length,i=s.length;i--;)if(s[i]===t){o=i+a;break}return s.splice(o,0,r),this}on(e,t){return super.on(e,t)}addListener(e,t){return super.addListener(e,t)}prependListener(e,t){return super.prependListener(e,t)}prependOnceListener(e,t){return super.prependOnceListener(e,t)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,t){return super.removeListener(e,t)}eventNames(){return super.eventNames()}listeners(e){return super.listeners(e)}listenerCount(e){return super.listenerCount(e)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(e){return super.setMaxListeners(e)}}r.AsyncEventEmitter=i}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/asyncEventEmitter.js"}],[4619,{"./helpers":4622,"./internal":4624,buffer:4096},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.intToUnpaddedBuffer=r.bigIntToUnpaddedBuffer=r.bigIntToHex=r.bufArrToArr=r.arrToBufArr=r.validateNoLeadingZeroes=r.baToJSON=r.toUtf8=r.short=r.addHexPrefix=r.toUnsigned=r.fromSigned=r.bufferToInt=r.bigIntToBuffer=r.bufferToBigInt=r.bufferToHex=r.toBuffer=r.unpadHexString=r.unpadArray=r.unpadBuffer=r.setLengthRight=r.setLengthLeft=r.zeros=r.intToBuffer=r.intToHex=void 0;const n=e("./helpers"),i=e("./internal");r.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`};r.intToBuffer=function(e){const n=(0,r.intToHex)(e);return t.from((0,i.padToEven)(n.slice(2)),"hex")};r.zeros=function(e){return t.allocUnsafe(e).fill(0)};const o=function(e,t,n){const i=(0,r.zeros)(t);return n?e.length<t?(e.copy(i),i):e.slice(0,t):e.length<t?(e.copy(i,t-e.length),i):e.slice(-t)};r.setLengthLeft=function(e,t){return(0,n.assertIsBuffer)(e),o(e,t,!1)};r.setLengthRight=function(e,t){return(0,n.assertIsBuffer)(e),o(e,t,!0)};const s=function(e){let t=e[0];for(;e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};r.unpadBuffer=function(e){return(0,n.assertIsBuffer)(e),s(e)};r.unpadArray=function(e){return(0,n.assertIsArray)(e),s(e)};r.unpadHexString=function(e){return(0,n.assertIsHexString)(e),e=(0,i.stripHexPrefix)(e),"0x"+s(e)};r.toBuffer=function(e){if(null===e||e===undefined)return t.allocUnsafe(0);if(t.isBuffer(e))return t.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return t.from(e);if("string"==typeof e){if(!(0,i.isHexString)(e))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${e}`);return t.from((0,i.padToEven)((0,i.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,r.intToBuffer)(e);if("bigint"==typeof e){if(e<BigInt(0))throw new Error(`Cannot convert negative bigint to buffer. Given: ${e}`);let r=e.toString(16);return r.length%2&&(r="0"+r),t.from(r,"hex")}if(e.toArray)return t.from(e.toArray());if(e.toBuffer)return t.from(e.toBuffer());throw new Error("invalid type")};function a(e){const t=(0,r.bufferToHex)(e);return"0x"===t?BigInt(0):BigInt(t)}function u(e){return(0,r.toBuffer)("0x"+e.toString(16))}r.bufferToHex=function(e){return"0x"+(e=(0,r.toBuffer)(e)).toString("hex")},r.bufferToBigInt=a,r.bigIntToBuffer=u;r.bufferToInt=function(e){const t=Number(a(e));if(!Number.isSafeInteger(t))throw new Error("Number exceeds 53 bits");return t};r.fromSigned=function(e){return BigInt.asIntN(256,a(e))};r.toUnsigned=function(e){return u(BigInt.asUintN(256,e))};r.addHexPrefix=function(e){return"string"!=typeof e||(0,i.isHexPrefixed)(e)?e:"0x"+e},r.short=function(e,r=50){const n=t.isBuffer(e)?e.toString("hex"):e;return n.length<=r?n:n.slice(0,r)+"…"};r.toUtf8=function(e){if((e=(0,i.stripHexPrefix)(e)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return t.from(e.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};r.baToJSON=function(e){if(t.isBuffer(e))return`0x${e.toString("hex")}`;if(e instanceof Array){const t=[];for(let n=0;n<e.length;n++)t.push((0,r.baToJSON)(e[n]));return t}};r.validateNoLeadingZeroes=function(e){for(const[t,r]of Object.entries(e))if(r!==undefined&&r.length>0&&0===r[0])throw new Error(`${t} cannot have leading zeroes, received: ${r.toString("hex")}`)},r.arrToBufArr=function e(r){return Array.isArray(r)?r.map((t=>e(t))):t.from(r)},r.bufArrToArr=function e(t){return Array.isArray(t)?t.map((t=>e(t))):Uint8Array.from(t??[])};r.bigIntToHex=e=>"0x"+e.toString(16),r.bigIntToUnpaddedBuffer=function(e){return(0,r.unpadBuffer)(u(e))},r.intToUnpaddedBuffer=function(e){return(0,r.unpadBuffer)((0,r.intToBuffer)(e))}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/bytes.js"}],[4620,{buffer:4096,"ethereum-cryptography/secp256k1":4351},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MAX_WITHDRAWALS_PER_PAYLOAD=r.RLP_EMPTY_STRING=r.KECCAK256_RLP=r.KECCAK256_RLP_S=r.KECCAK256_RLP_ARRAY=r.KECCAK256_RLP_ARRAY_S=r.KECCAK256_NULL=r.KECCAK256_NULL_S=r.TWO_POW256=r.SECP256K1_ORDER_DIV_2=r.SECP256K1_ORDER=r.MAX_INTEGER_BIGINT=r.MAX_INTEGER=r.MAX_UINT64=void 0;const n=e("buffer"),i=e("ethereum-cryptography/secp256k1");r.MAX_UINT64=BigInt("0xffffffffffffffff"),r.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),r.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),r.SECP256K1_ORDER=i.secp256k1.CURVE.n,r.SECP256K1_ORDER_DIV_2=i.secp256k1.CURVE.n/BigInt(2),r.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=n.Buffer.from(r.KECCAK256_NULL_S,"hex"),r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=n.Buffer.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=n.Buffer.from(r.KECCAK256_RLP_S,"hex"),r.RLP_EMPTY_STRING=n.Buffer.from([128]),r.MAX_WITHDRAWALS_PER_PAYLOAD=16}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/constants.js"}],[4621,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.compactBytesToNibbles=r.bytesToNibbles=r.nibblesToCompactBytes=r.nibblesToBytes=r.hasTerminator=void 0;r.hasTerminator=e=>e.length>0&&16===e[e.length-1];r.nibblesToBytes=(e,t)=>{for(let r=0,n=0;n<e.length;r+=1,n+=2)t[r]=e[n]<<4|e[n+1]};r.nibblesToCompactBytes=e=>{let t=0;(0,r.hasTerminator)(e)&&(t=1,e=e.subarray(0,e.length-1));const n=new Uint8Array(e.length/2+1);return n[0]=t<<5,1&~e.length||(n[0]|=16,n[0]|=e[0],e=e.subarray(1)),(0,r.nibblesToBytes)(e,n.subarray(1)),n};r.bytesToNibbles=e=>{const t=2*e.length+1,r=new Uint8Array(t);for(let t=0;t<e.length;t++){const n=e[t];r[2*t]=n/16,r[2*t+1]=n%16}return r[t-1]=16,r};r.compactBytesToNibbles=e=>{if(0===e.length)return e;let t=(0,r.bytesToNibbles)(e);t[0]<2&&(t=t.subarray(0,t.length-1));const n=2-(1&t[0]);return t.subarray(n)}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/encoding.js"}],[4622,{"../../../../../is-buffer/index.js":4694,"./internal":4624},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.assertIsString=r.assertIsArray=r.assertIsBuffer=r.assertIsHexString=void 0;const n=e("./internal");r.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){throw new Error(`This method only supports 0x-prefixed hex strings but input was: ${e}`)}};r.assertIsBuffer=function(e){if(!t.isBuffer(e)){throw new Error(`This method only supports Buffer but input was: ${e}`)}};r.assertIsArray=function(e){if(!Array.isArray(e)){throw new Error(`This method only supports number arrays but input was: ${e}`)}};r.assertIsString=function(e){if("string"!=typeof e){throw new Error(`This method only supports strings but input was: ${e}`)}}}).call(this)}).call(this,{isBuffer:e("../../../../../is-buffer/index.js")})}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/helpers.js"}],[4623,{"./account":4616,"./address":4617,"./asyncEventEmitter":4618,"./bytes":4619,"./constants":4620,"./encoding":4621,"./internal":4624,"./lock":4625,"./provider":4626,"./signature":4627,"./types":4628,"./units":4629,"./withdrawal":4630},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.toAscii=r.stripHexPrefix=r.padToEven=r.isHexString=r.isHexPrefixed=r.getKeys=r.getBinarySize=r.fromUtf8=r.fromAscii=r.arrayContainsArray=void 0,i(e("./constants"),r),i(e("./units"),r),i(e("./account"),r),i(e("./address"),r),i(e("./withdrawal"),r),i(e("./signature"),r),i(e("./bytes"),r),i(e("./types"),r),i(e("./encoding"),r),i(e("./asyncEventEmitter"),r);var o=e("./internal");Object.defineProperty(r,"arrayContainsArray",{enumerable:!0,get:function(){return o.arrayContainsArray}}),Object.defineProperty(r,"fromAscii",{enumerable:!0,get:function(){return o.fromAscii}}),Object.defineProperty(r,"fromUtf8",{enumerable:!0,get:function(){return o.fromUtf8}}),Object.defineProperty(r,"getBinarySize",{enumerable:!0,get:function(){return o.getBinarySize}}),Object.defineProperty(r,"getKeys",{enumerable:!0,get:function(){return o.getKeys}}),Object.defineProperty(r,"isHexPrefixed",{enumerable:!0,get:function(){return o.isHexPrefixed}}),Object.defineProperty(r,"isHexString",{enumerable:!0,get:function(){return o.isHexString}}),Object.defineProperty(r,"padToEven",{enumerable:!0,get:function(){return o.padToEven}}),Object.defineProperty(r,"stripHexPrefix",{enumerable:!0,get:function(){return o.stripHexPrefix}}),Object.defineProperty(r,"toAscii",{enumerable:!0,get:function(){return o.toAscii}}),i(e("./lock"),r),i(e("./provider"),r)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/index.js"}],[4624,{buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){function t(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof e);return"0"===e[0]&&"x"===e[1]}Object.defineProperty(r,"__esModule",{value:!0}),r.isHexString=r.getKeys=r.fromAscii=r.fromUtf8=r.toAscii=r.arrayContainsArray=r.getBinarySize=r.padToEven=r.stripHexPrefix=r.isHexPrefixed=void 0,r.isHexPrefixed=t;function n(e){let t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received "+typeof t);return t.length%2&&(t=`0${t}`),t}r.stripHexPrefix=e=>{if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof e);return t(e)?e.slice(2):e},r.padToEven=n,r.getBinarySize=function(t){if("string"!=typeof t)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof t);return e.byteLength(t,"utf8")},r.arrayContainsArray=function(e,t,r){if(!0!==Array.isArray(e))throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(!0!==Array.isArray(t))throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[!0===r?"some":"every"]((t=>e.indexOf(t)>=0))},r.toAscii=function(e){let t="",r=0;const n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){const n=parseInt(e.substr(r,2),16);t+=String.fromCharCode(n)}return t},r.fromUtf8=function(t){return`0x${n(e.from(t,"utf8").toString("hex")).replace(/^0+|0+$/g,"")}`},r.fromAscii=function(e){let t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r).toString(16);t+=n.length<2?`0${n}`:n}return`0x${t}`},r.getKeys=function(e,t,r){if(!Array.isArray(e))throw new Error("[getKeys] method expects input 'params' to be an array, got "+typeof e);if("string"!=typeof t)throw new Error("[getKeys] method expects input 'key' to be type 'string', got "+typeof e);const n=[];for(let i=0;i<e.length;i++){let o=e[i][t];if(!0!==r||o){if("string"!=typeof o)throw new Error("invalid abi - expected type 'string', received "+typeof o)}else o="";n.push(o)}return n},r.isHexString=function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&!(void 0!==t&&t>0&&e.length!==2+2*t)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/internal.js"}],[4625,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Lock=void 0;r.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise((e=>this.promiseResolverQueue.push(e)))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;const e=this.promiseResolverQueue.shift();e&&e(!0)}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/lock.js"}],[4626,{"micro-ftch":4951},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getProvider=r.fetchFromProvider=void 0;const n=e("micro-ftch");r.fetchFromProvider=async(e,t)=>(await(0,n.default)(e,{headers:{"content-type":"application/json"},type:"json",data:{method:t.method,params:t.params,jsonrpc:"2.0",id:1}})).result;r.getProvider=e=>{if("string"==typeof e)return e;if(e?.connection?.url!==undefined)return e.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/provider.js"}],[4627,{"./bytes":4619,"./constants":4620,"./helpers":4622,buffer:4096,"ethereum-cryptography/keccak":4330,"ethereum-cryptography/secp256k1":4351},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.hashPersonalMessage=r.isValidSignature=r.fromRpcSig=r.toCompactSig=r.toRpcSig=r.ecrecover=r.ecsign=void 0;const n=e("ethereum-cryptography/keccak"),i=e("ethereum-cryptography/secp256k1"),o=e("./bytes"),s=e("./constants"),a=e("./helpers");function u(e,t){return e===BigInt(0)||e===BigInt(1)?e:t===undefined?e-BigInt(27):e-(t*BigInt(2)+BigInt(35))}function c(e){return e===BigInt(0)||e===BigInt(1)}r.ecsign=function(e,r,n){const o=i.secp256k1.sign(e,r),s=o.toCompactRawBytes();return{r:t.from(s.slice(0,32)),s:t.from(s.slice(32,64)),v:n===undefined?BigInt(o.recovery+27):BigInt(o.recovery+35)+BigInt(n)*BigInt(2)}};r.ecrecover=function(e,r,n,s,a){const l=t.concat([(0,o.setLengthLeft)(n,32),(0,o.setLengthLeft)(s,32)],64),f=u(r,a);if(!c(f))throw new Error("Invalid signature v value");const d=i.secp256k1.Signature.fromCompact(l).addRecoveryBit(Number(f)).recoverPublicKey(e);return t.from(d.toRawBytes(!1).slice(1))};r.toRpcSig=function(e,r,n,i){if(!c(u(e,i)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(t.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(n,32),(0,o.toBuffer)(e)]))};r.toCompactSig=function(e,r,n,i){if(!c(u(e,i)))throw new Error("Invalid signature v value");let s=n;return(e>BigInt(28)&&e%BigInt(2)===BigInt(1)||e===BigInt(1)||e===BigInt(28))&&(s=t.from(n),s[0]|=128),(0,o.bufferToHex)(t.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(s,32)]))};r.fromRpcSig=function(e){const t=(0,o.toBuffer)(e);let r,n,i;if(t.length>=65)r=t.slice(0,32),n=t.slice(32,64),i=(0,o.bufferToBigInt)(t.slice(64));else{if(64!==t.length)throw new Error("Invalid signature length");r=t.slice(0,32),n=t.slice(32,64),i=BigInt((0,o.bufferToInt)(t.slice(32,33))>>7),n[0]&=127}return i<27&&(i+=BigInt(27)),{v:i,r:r,s:n}};r.isValidSignature=function(e,t,r,n=!0,i){if(32!==t.length||32!==r.length)return!1;if(!c(u(e,i)))return!1;const a=(0,o.bufferToBigInt)(t),l=(0,o.bufferToBigInt)(r);return!(a===BigInt(0)||a>=s.SECP256K1_ORDER||l===BigInt(0)||l>=s.SECP256K1_ORDER)&&!(n&&l>=s.SECP256K1_ORDER_DIV_2)};r.hashPersonalMessage=function(e){(0,a.assertIsBuffer)(e);const r=t.from(`Ethereum Signed Message:\n${e.length}`,"utf-8");return t.from((0,n.keccak256)(t.concat([r,e])))}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/signature.js"}],[4628,{"./bytes":4619,"./internal":4624},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toType=r.TypeOutput=void 0;const n=e("./bytes"),i=e("./internal");var o;!function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(o=r.TypeOutput||(r.TypeOutput={})),r.toType=function(e,t){if(null===e)return null;if(e===undefined)return undefined;if("string"==typeof e&&!(0,i.isHexString)(e))throw new Error(`A string must be provided with a 0x-prefix, given: ${e}`);if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const r=(0,n.toBuffer)(e);switch(t){case o.Buffer:return r;case o.BigInt:return(0,n.bufferToBigInt)(r);case o.Number:{const e=(0,n.bufferToBigInt)(r);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case o.PrefixedHexString:return(0,n.bufferToHex)(r);default:throw new Error("unknown outputType")}}}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/types.js"}],[4629,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.GWEI_TO_WEI=void 0,r.GWEI_TO_WEI=BigInt(1e9)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/units.js"}],[4630,{"./address":4617,"./bytes":4619,"./types":4628,buffer:4096},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.Withdrawal=void 0;const n=e("./address"),i=e("./bytes"),o=e("./types");class s{constructor(e,t,r,n){this.index=e,this.validatorIndex=t,this.address=r,this.amount=n}static fromWithdrawalData(e){const{index:t,validatorIndex:r,address:i,amount:a}=e,u=(0,o.toType)(t,o.TypeOutput.BigInt),c=(0,o.toType)(r,o.TypeOutput.BigInt),l=new n.Address((0,o.toType)(i,o.TypeOutput.Buffer)),f=(0,o.toType)(a,o.TypeOutput.BigInt);return new s(u,c,l,f)}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);const[t,r,n,i]=e;return s.fromWithdrawalData({index:t,validatorIndex:r,address:n,amount:i})}static toBufferArray(e){const{index:r,validatorIndex:i,address:s,amount:a}=e,u=(0,o.toType)(r,o.TypeOutput.BigInt)===BigInt(0)?t.alloc(0):(0,o.toType)(r,o.TypeOutput.Buffer),c=(0,o.toType)(i,o.TypeOutput.BigInt)===BigInt(0)?t.alloc(0):(0,o.toType)(i,o.TypeOutput.Buffer);let l;l=s instanceof n.Address?s.buf:(0,o.toType)(s,o.TypeOutput.Buffer);return[u,c,l,(0,o.toType)(a,o.TypeOutput.BigInt)===BigInt(0)?t.alloc(0):(0,o.toType)(a,o.TypeOutput.Buffer)]}raw(){return s.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,i.bigIntToHex)(this.index),validatorIndex:(0,i.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,i.bigIntToHex)(this.amount)}}}r.Withdrawal=s}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common>@ethereumjs/util",file:"node_modules/gridplus-sdk/node_modules/@ethereumjs/util/dist/withdrawal.js"}],[4631,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,s="[BigNumber Error] ",a=s+"Number primitive has more than 15 significant digits: ",u=1e14,c=14,l=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,h=1e9;function p(e){var t=0|e;return e>0||e===t?t:t-1}function b(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=c-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function m(e,t){var r,n,i=e.c,o=t.c,s=e.s,a=t.s,u=e.e,c=t.e;if(!s||!a)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-a:s;if(s!=a)return s;if(r=s<0,n=u==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>c^r?1:-1;for(a=(u=i.length)<(c=o.length)?u:c,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^r?1:-1;return u==c?0:u>c^r?1:-1}function g(e,t,r,n){if(e<t||e>r||e!==o(e))throw Error(s+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return p(e.e/c)==t&&e.c[t]%2!=0}function y(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function w(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}r=function e(t){var r,k,j,_,T,S,x,E,O,A,P=W.prototype={constructor:W,toString:null,valueOf:null},I=new W(1),C=20,R=4,B=-7,M=21,L=-1e7,N=1e7,D=!1,F=1,U=0,H={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},G="0123456789abcdefghijklmnopqrstuvwxyz",z=!0;function W(e,t){var r,i,s,u,f,d,h,p,b=this;if(!(b instanceof W))return new W(e,t);if(null==t){if(e&&!0===e._isBigNumber)return b.s=e.s,void(!e.c||e.e>N?b.c=b.e=null:e.e<L?b.c=[b.e=0]:(b.e=e.e,b.c=e.c.slice()));if((d="number"==typeof e)&&0*e==0){if(b.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,f=e;f>=10;f/=10,u++);return void(u>N?b.c=b.e=null:(b.e=u,b.c=[e]))}p=String(e)}else{if(!n.test(p=String(e)))return j(b,p,d);b.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(u=p.indexOf("."))>-1&&(p=p.replace(".","")),(f=p.search(/e/i))>0?(u<0&&(u=f),u+=+p.slice(f+1),p=p.substring(0,f)):u<0&&(u=p.length)}else{if(g(t,2,G.length,"Base"),10==t&&z)return $(b=new W(e),C+b.e+1,R);if(p=String(e),d="number"==typeof e){if(0*e!=0)return j(b,p,d,t);if(b.s=1/e<0?(p=p.slice(1),-1):1,W.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else b.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(r=G.slice(0,t),u=f=0,h=p.length;f<h;f++)if(r.indexOf(i=p.charAt(f))<0){if("."==i){if(f>u){u=h;continue}}else if(!s&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){s=!0,f=-1,u=0;continue}return j(b,String(e),d,t)}d=!1,(u=(p=k(p,t,10,b.s)).indexOf("."))>-1?p=p.replace(".",""):u=p.length}for(f=0;48===p.charCodeAt(f);f++);for(h=p.length;48===p.charCodeAt(--h););if(p=p.slice(f,++h)){if(h-=f,d&&W.DEBUG&&h>15&&(e>l||e!==o(e)))throw Error(a+b.s*e);if((u=u-f-1)>N)b.c=b.e=null;else if(u<L)b.c=[b.e=0];else{if(b.e=u,b.c=[],f=(u+1)%c,u<0&&(f+=c),f<h){for(f&&b.c.push(+p.slice(0,f)),h-=c;f<h;)b.c.push(+p.slice(f,f+=c));f=c-(p=p.slice(f)).length}else f-=h;for(;f--;p+="0");b.c.push(+p)}}else b.c=[b.e=0]}function q(e,t,r,n){var i,o,s,a,u;if(null==r?r=R:g(r,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)u=b(e.c),u=1==n||2==n&&(s<=B||s>=M)?y(u,s):w(u,s,"0");else if(o=(e=$(new W(e),t,r)).e,a=(u=b(e.c)).length,1==n||2==n&&(t<=o||o<=B)){for(;a<t;u+="0",a++);u=y(u,o)}else if(t-=s,u=w(u,o,"0"),o+1>a){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-a)>0)for(o+1==a&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function V(e,t){for(var r,n,i=1,o=new W(e[0]);i<e.length;i++)(!(n=new W(e[i])).s||(r=m(o,n))===t||0===r&&o.s===t)&&(o=n);return o}function K(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*c-1)>N?e.c=e.e=null:r<L?e.c=[e.e=0]:(e.e=r,e.c=t),e}function $(e,t,r,n){var s,a,l,d,h,p,b,m=e.c,g=f;if(m){e:{for(s=1,d=m[0];d>=10;d/=10,s++);if((a=t-s)<0)a+=c,l=t,h=m[p=0],b=o(h/g[s-l-1]%10);else if((p=i((a+1)/c))>=m.length){if(!n)break e;for(;m.length<=p;m.push(0));h=b=0,s=1,l=(a%=c)-c+1}else{for(h=d=m[p],s=1;d>=10;d/=10,s++);b=(l=(a%=c)-c+s)<0?0:o(h/g[s-l-1]%10)}if(n=n||t<0||null!=m[p+1]||(l<0?h:h%g[s-l-1]),n=r<4?(b||n)&&(0==r||r==(e.s<0?3:2)):b>5||5==b&&(4==r||n||6==r&&(a>0?l>0?h/g[s-l]:0:m[p-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,n?(t-=e.e+1,m[0]=g[(c-t%c)%c],e.e=-t||0):m[0]=e.e=0,e;if(0==a?(m.length=p,d=1,p--):(m.length=p+1,d=g[c-a],m[p]=l>0?o(h/g[s-l]%g[l])*d:0),n)for(;;){if(0==p){for(a=1,l=m[0];l>=10;l/=10,a++);for(l=m[0]+=d,d=1;l>=10;l/=10,d++);a!=d&&(e.e++,m[0]==u&&(m[0]=1));break}if(m[p]+=d,m[p]!=u)break;m[p--]=0,d=1}for(a=m.length;0===m[--a];m.pop());}e.e>N?e.c=e.e=null:e.e<L&&(e.c=[e.e=0])}return e}function Y(e){var t,r=e.e;return null===r?e.toString():(t=b(e.c),t=r<=B||r>=M?y(t,r):w(t,r,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(s+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(g(r=e[t],0,h,t),C=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(g(r=e[t],0,8,t),R=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(g(r[0],-h,0,t),g(r[1],0,h,t),B=r[0],M=r[1]):(g(r,-h,h,t),B=-(M=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)g(r[0],-h,-1,t),g(r[1],1,h,t),L=r[0],N=r[1];else{if(g(r,-h,h,t),!r)throw Error(s+t+" cannot be zero: "+r);L=-(N=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(s+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw D=!r,Error(s+"crypto unavailable");D=r}else D=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(g(r=e[t],0,9,t),F=r),e.hasOwnProperty(t="POW_PRECISION")&&(g(r=e[t],0,h,t),U=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(s+t+" not an object: "+r);H=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(s+t+" invalid: "+r);z="0123456789"==r.slice(0,10),G=r}}return{DECIMAL_PLACES:C,ROUNDING_MODE:R,EXPONENTIAL_AT:[B,M],RANGE:[L,N],CRYPTO:D,MODULO_MODE:F,POW_PRECISION:U,FORMAT:H,ALPHABET:G}},W.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!W.DEBUG)return!0;var t,r,n=e.c,i=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&i>=-h&&i<=h&&i===o(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%c)<1&&(t+=c),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=u||r!==o(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===a||1===a||-1===a))return!0;throw Error(s+"Invalid BigNumber: "+e)},W.maximum=W.max=function(){return V(arguments,-1)},W.minimum=W.min=function(){return V(arguments,1)},W.random=(_=9007199254740992,T=Math.random()*_&2097151?function(){return o(Math.random()*_)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,a,u,l=0,d=[],p=new W(I);if(null==e?e=C:g(e,0,h),a=i(e/c),D)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));l<a;)(u=131072*t[l]+(t[l+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(d.push(u%1e14),l+=2);l=a/2}else{if(!crypto.randomBytes)throw D=!1,Error(s+"crypto unavailable");for(t=crypto.randomBytes(a*=7);l<a;)(u=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?crypto.randomBytes(7).copy(t,l):(d.push(u%1e14),l+=7);l=a/7}if(!D)for(;l<a;)(u=T())<9e15&&(d[l++]=u%1e14);for(a=d[--l],e%=c,a&&e&&(u=f[c-e],d[l]=o(a/u)*u);0===d[l];d.pop(),l--);if(l<0)d=[n=0];else{for(n=-1;0===d[0];d.splice(0,1),n-=c);for(l=1,u=d[0];u>=10;u/=10,l++);l<c&&(n-=c-l)}return p.e=n,p.c=d,p}),W.sum=function(){for(var e=1,t=arguments,r=new W(t[0]);e<t.length;)r=r.plus(t[e++]);return r},k=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,s=[0],a=0,u=e.length;a<u;){for(o=s.length;o--;s[o]*=t);for(s[0]+=n.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>r-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/r|0,s[i]%=r)}return s.reverse()}return function(n,i,o,s,a){var u,c,l,f,d,h,p,m,g=n.indexOf("."),v=C,y=R;for(g>=0&&(f=U,U=0,n=n.replace(".",""),h=(m=new W(i)).pow(n.length-g),U=f,m.c=t(w(b(h.c),h.e,"0"),10,o,e),m.e=m.c.length),l=f=(p=t(n,i,o,a?(u=G,e):(u=e,G))).length;0==p[--f];p.pop());if(!p[0])return u.charAt(0);if(g<0?--l:(h.c=p,h.e=l,h.s=s,p=(h=r(h,m,v,y,o)).c,d=h.r,l=h.e),g=p[c=l+v+1],f=o/2,d=d||c<0||null!=p[c+1],d=y<4?(null!=g||d)&&(0==y||y==(h.s<0?3:2)):g>f||g==f&&(4==y||d||6==y&&1&p[c-1]||y==(h.s<0?8:7)),c<1||!p[0])n=d?w(u.charAt(1),-v,u.charAt(0)):u.charAt(0);else{if(p.length=c,d)for(--o;++p[--c]>o;)p[c]=0,c||(++l,p=[1].concat(p));for(f=p.length;!p[--f];);for(g=0,n="";g<=f;n+=u.charAt(p[g++]));n=w(n,l,u.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,o,s,a=0,u=e.length,c=t%d,l=t/d|0;for(e=e.slice();u--;)a=((i=c*(o=e[u]%d)+(n=l*o+(s=e[u]/d|0)*c)%d*d+a)/r|0)+(n/d|0)+l*s,e[u]=i%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,s,a,l){var f,d,h,b,m,g,v,y,w,k,j,_,T,S,x,E,O,A=n.s==i.s?1:-1,P=n.c,I=i.c;if(!(P&&P[0]&&I&&I[0]))return new W(n.s&&i.s&&(P?!I||P[0]!=I[0]:I)?P&&0==P[0]||!I?0*A:A/0:NaN);for(w=(y=new W(A)).c=[],A=s+(d=n.e-i.e)+1,l||(l=u,d=p(n.e/c)-p(i.e/c),A=A/c|0),h=0;I[h]==(P[h]||0);h++);if(I[h]>(P[h]||0)&&d--,A<0)w.push(1),b=!0;else{for(S=P.length,E=I.length,h=0,A+=2,(m=o(l/(I[0]+1)))>1&&(I=e(I,m,l),P=e(P,m,l),E=I.length,S=P.length),T=E,j=(k=P.slice(0,E)).length;j<E;k[j++]=0);O=I.slice(),O=[0].concat(O),x=I[0],I[1]>=l/2&&x++;do{if(m=0,(f=t(I,k,E,j))<0){if(_=k[0],E!=j&&(_=_*l+(k[1]||0)),(m=o(_/x))>1)for(m>=l&&(m=l-1),v=(g=e(I,m,l)).length,j=k.length;1==t(g,k,v,j);)m--,r(g,E<v?O:I,v,l),v=g.length,f=1;else 0==m&&(f=m=1),v=(g=I.slice()).length;if(v<j&&(g=[0].concat(g)),r(k,g,j,l),j=k.length,-1==f)for(;t(I,k,E,j)<1;)m++,r(k,E<j?O:I,j,l),j=k.length}else 0===f&&(m++,k=[0]);w[h++]=m,k[0]?k[j++]=P[T]||0:(k=[P[T]],j=1)}while((T++<S||null!=k[0])&&A--);b=null!=k[0],w[0]||w.splice(0,1)}if(l==u){for(h=1,A=w[0];A>=10;A/=10,h++);$(y,s+(y.e=h+d*c-1)+1,a,b)}else y.e=d,y.r=+b;return y}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,x=/^([^.]+)\.$/,E=/^\.([^.]+)$/,O=/^-?(Infinity|NaN)$/,A=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(e,t,r,n){var i,o=r?t:t.replace(A,"");if(O.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(S,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(x,"$1").replace(E,"0.$1")),t!=o))return new W(o,i);if(W.DEBUG)throw Error(s+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},P.absoluteValue=P.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},P.comparedTo=function(e,t){return m(this,new W(e,t))},P.decimalPlaces=P.dp=function(e,t){var r,n,i,o=this;if(null!=e)return g(e,0,h),null==t?t=R:g(t,0,8),$(new W(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-p(this.e/c))*c,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},P.dividedBy=P.div=function(e,t){return r(this,new W(e,t),C,R)},P.dividedToIntegerBy=P.idiv=function(e,t){return r(this,new W(e,t),0,1)},P.exponentiatedBy=P.pow=function(e,t){var r,n,a,u,l,f,d,h,p=this;if((e=new W(e)).c&&!e.isInteger())throw Error(s+"Exponent not an integer: "+Y(e));if(null!=t&&(t=new W(t)),l=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new W(Math.pow(+Y(p),l?e.s*(2-v(e)):+Y(e))),t?h.mod(t):h;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(n=!f&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||l&&p.c[1]>=24e7:p.c[0]<8e13||l&&p.c[0]<=9999975e7)))return u=p.s<0&&v(e)?-0:0,p.e>-1&&(u=1/u),new W(f?1/u:u);U&&(u=i(U/c+2))}for(l?(r=new W(.5),f&&(e.s=1),d=v(e)):d=(a=Math.abs(+Y(e)))%2,h=new W(I);;){if(d){if(!(h=h.times(p)).c)break;u?h.c.length>u&&(h.c.length=u):n&&(h=h.mod(t))}if(a){if(0===(a=o(a/2)))break;d=a%2}else if($(e=e.times(r),e.e+1,1),e.e>14)d=v(e);else{if(0===(a=+Y(e)))break;d=a%2}p=p.times(p),u?p.c&&p.c.length>u&&(p.c.length=u):n&&(p=p.mod(t))}return n?h:(f&&(h=I.div(h)),t?h.mod(t):u?$(h,U,R,undefined):h)},P.integerValue=function(e){var t=new W(this);return null==e?e=R:g(e,0,8),$(t,t.e+1,e)},P.isEqualTo=P.eq=function(e,t){return 0===m(this,new W(e,t))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(e,t){return m(this,new W(e,t))>0},P.isGreaterThanOrEqualTo=P.gte=function(e,t){return 1===(t=m(this,new W(e,t)))||0===t},P.isInteger=function(){return!!this.c&&p(this.e/c)>this.c.length-2},P.isLessThan=P.lt=function(e,t){return m(this,new W(e,t))<0},P.isLessThanOrEqualTo=P.lte=function(e,t){return-1===(t=m(this,new W(e,t)))||0===t},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(e,t){var r,n,i,o,s=this,a=s.s;if(t=(e=new W(e,t)).s,!a||!t)return new W(NaN);if(a!=t)return e.s=-t,s.plus(e);var l=s.e/c,f=e.e/c,d=s.c,h=e.c;if(!l||!f){if(!d||!h)return d?(e.s=-t,e):new W(h?s:NaN);if(!d[0]||!h[0])return h[0]?(e.s=-t,e):new W(d[0]?s:3==R?-0:0)}if(l=p(l),f=p(f),d=d.slice(),a=l-f){for((o=a<0)?(a=-a,i=d):(f=l,i=h),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=d.length)<(t=h.length))?a:t,a=t=0;t<n;t++)if(d[t]!=h[t]){o=d[t]<h[t];break}if(o&&(i=d,d=h,h=i,e.s=-e.s),(t=(n=h.length)-(r=d.length))>0)for(;t--;d[r++]=0);for(t=u-1;n>a;){if(d[--n]<h[n]){for(r=n;r&&!d[--r];d[r]=t);--d[r],d[n]+=u}d[n]-=h[n]}for(;0==d[0];d.splice(0,1),--f);return d[0]?K(e,d,f):(e.s=3==R?-1:1,e.c=[e.e=0],e)},P.modulo=P.mod=function(e,t){var n,i,o=this;return e=new W(e,t),!o.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||o.c&&!o.c[0]?new W(o):(9==F?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,F),(e=o.minus(n.times(e))).c[0]||1!=F||(e.s=o.s),e)},P.multipliedBy=P.times=function(e,t){var r,n,i,o,s,a,l,f,h,b,m,g,v,y,w,k=this,j=k.c,_=(e=new W(e,t)).c;if(!(j&&_&&j[0]&&_[0]))return!k.s||!e.s||j&&!j[0]&&!_||_&&!_[0]&&!j?e.c=e.e=e.s=null:(e.s*=k.s,j&&_?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=p(k.e/c)+p(e.e/c),e.s*=k.s,(l=j.length)<(b=_.length)&&(v=j,j=_,_=v,i=l,l=b,b=i),i=l+b,v=[];i--;v.push(0));for(y=u,w=d,i=b;--i>=0;){for(r=0,m=_[i]%w,g=_[i]/w|0,o=i+(s=l);o>i;)r=((f=m*(f=j[--s]%w)+(a=g*f+(h=j[s]/w|0)*m)%w*w+v[o]+r)/y|0)+(a/w|0)+g*h,v[o--]=f%y;v[o]=r}return r?++n:v.splice(0,1),K(e,v,n)},P.negated=function(){var e=new W(this);return e.s=-e.s||null,e},P.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new W(e,t)).s,!i||!t)return new W(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/c,s=e.e/c,a=n.c,l=e.c;if(!o||!s){if(!a||!l)return new W(i/0);if(!a[0]||!l[0])return l[0]?e:new W(a[0]?n:0*i)}if(o=p(o),s=p(s),a=a.slice(),i=o-s){for(i>0?(s=o,r=l):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(t=l.length)<0&&(r=l,l=a,a=r,t=i),i=0;t;)i=(a[--t]=a[t]+l[t]+i)/u|0,a[t]=u===a[t]?0:a[t]%u;return i&&(a=[i].concat(a),++s),K(e,a,s)},P.precision=P.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return g(e,1,h),null==t?t=R:g(t,0,8),$(new W(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*c+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},P.shiftedBy=function(e){return g(e,-9007199254740991,l),this.times("1e"+e)},P.squareRoot=P.sqrt=function(){var e,t,n,i,o,s=this,a=s.c,u=s.s,c=s.e,l=C+4,f=new W("0.5");if(1!==u||!a||!a[0])return new W(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(u=Math.sqrt(+Y(s)))||u==1/0?(((t=b(a)).length+c)%2==0&&(t+="0"),u=Math.sqrt(+t),c=p((c+1)/2)-(c<0||c%2),n=new W(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new W(u+""),n.c[0])for((u=(c=n.e)+l)<3&&(u=0);;)if(o=n,n=f.times(o.plus(r(s,o,l,1))),b(o.c).slice(0,u)===(t=b(n.c)).slice(0,u)){if(n.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||($(n,n.e+C+2,1),e=!n.times(n).eq(s));break}if(!i&&($(o,o.e+C+2,0),o.times(o).eq(s))){n=o;break}l+=4,u+=4,i=1}return $(n,n.e+C+1,R,e)},P.toExponential=function(e,t){return null!=e&&(g(e,0,h),e++),q(this,e,t,1)},P.toFixed=function(e,t){return null!=e&&(g(e,0,h),e=e+this.e+1),q(this,e,t)},P.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=H;else if("object"!=typeof r)throw Error(s+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,a=n.split("."),u=+r.groupSize,c=+r.secondaryGroupSize,l=r.groupSeparator||"",f=a[0],d=a[1],h=i.s<0,p=h?f.slice(1):f,b=p.length;if(c&&(o=u,u=c,c=o,b-=o),u>0&&b>0){for(o=b%u||u,f=p.substr(0,o);o<b;o+=u)f+=l+p.substr(o,u);c>0&&(f+=l+p.slice(o)),h&&(f="-"+f)}n=d?f+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):f}return(r.prefix||"")+n+(r.suffix||"")},P.toFraction=function(e){var t,n,i,o,a,u,l,d,h,p,m,g,v=this,y=v.c;if(null!=e&&(!(l=new W(e)).isInteger()&&(l.c||1!==l.s)||l.lt(I)))throw Error(s+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+Y(l));if(!y)return new W(v);for(t=new W(I),h=n=new W(I),i=d=new W(I),g=b(y),a=t.e=g.length-v.e-1,t.c[0]=f[(u=a%c)<0?c+u:u],e=!e||l.comparedTo(t)>0?a>0?t:h:l,u=N,N=1/0,l=new W(g),d.c[0]=0;p=r(l,t,0,1),1!=(o=n.plus(p.times(i))).comparedTo(e);)n=i,i=o,h=d.plus(p.times(o=h)),d=o,t=l.minus(p.times(o=t)),l=o;return o=r(e.minus(n),i,0,1),d=d.plus(o.times(h)),n=n.plus(o.times(i)),d.s=h.s=v.s,m=r(h,i,a*=2,R).minus(v).abs().comparedTo(r(d,n,a,R).minus(v).abs())<1?[h,i]:[d,n],N=u,m},P.toNumber=function(){return+Y(this)},P.toPrecision=function(e,t){return null!=e&&g(e,1,h),q(this,e,t,2)},P.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=B||i>=M?y(b(r.c),i):w(b(r.c),i,"0"):10===e&&z?t=w(b((r=$(new W(r),C+i+1,R)).c),r.e,"0"):(g(e,2,G.length,"Base"),t=k(w(b(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},P.valueOf=P.toJSON=function(){return Y(this)},P._isBigNumber=!0,null!=t&&W.set(t),W}(),r.default=r.BigNumber=r,"function"==typeof define&&define.amd?define((function(){return r})):void 0!==t&&t.exports?t.exports=r:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=r)}(this)}}},{package:"eth-lattice-keyring>gridplus-sdk>bignumber.js",file:"node_modules/gridplus-sdk/node_modules/bignumber.js/bignumber.js"}],[4632,{"./nil.js":4635,"./parse.js":4636,"./stringify.js":4640,"./v1.js":4641,"./v3.js":4642,"./v4.js":4644,"./v5.js":4645,"./validate.js":4646,"./version.js":4647},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return u.default}});var n=d(e("./v1.js")),i=d(e("./v3.js")),o=d(e("./v4.js")),s=d(e("./v5.js")),a=d(e("./nil.js")),u=d(e("./version.js")),c=d(e("./validate.js")),l=d(e("./stringify.js")),f=d(e("./parse.js"));function d(e){return e&&e.__esModule?e:{default:e}}}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/index.js"}],[4633,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return 14+(e+64>>>9<<4)+1}function i(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,n,o,s){return i((a=i(i(t,e),i(n,s)))<<(u=o)|a>>>32-u,r);var a,u}function s(e,t,r,n,i,s,a){return o(t&r|~t&n,e,t,i,s,a)}function a(e,t,r,n,i,s,a){return o(t&n|r&~n,e,t,i,s,a)}function u(e,t,r,n,i,s,a){return o(t^r^n,e,t,i,s,a)}function c(e,t,r,n,i,s,a){return o(r^(t|~n),e,t,i,s,a)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var l=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let i=0;i<r;i+=8){const r=e[i>>5]>>>i%32&255,o=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let r=1732584193,o=-271733879,l=-1732584194,f=271733878;for(let t=0;t<e.length;t+=16){const n=r,d=o,h=l,p=f;r=s(r,o,l,f,e[t],7,-680876936),f=s(f,r,o,l,e[t+1],12,-389564586),l=s(l,f,r,o,e[t+2],17,606105819),o=s(o,l,f,r,e[t+3],22,-1044525330),r=s(r,o,l,f,e[t+4],7,-176418897),f=s(f,r,o,l,e[t+5],12,1200080426),l=s(l,f,r,o,e[t+6],17,-1473231341),o=s(o,l,f,r,e[t+7],22,-45705983),r=s(r,o,l,f,e[t+8],7,1770035416),f=s(f,r,o,l,e[t+9],12,-1958414417),l=s(l,f,r,o,e[t+10],17,-42063),o=s(o,l,f,r,e[t+11],22,-1990404162),r=s(r,o,l,f,e[t+12],7,1804603682),f=s(f,r,o,l,e[t+13],12,-40341101),l=s(l,f,r,o,e[t+14],17,-1502002290),o=s(o,l,f,r,e[t+15],22,1236535329),r=a(r,o,l,f,e[t+1],5,-165796510),f=a(f,r,o,l,e[t+6],9,-1069501632),l=a(l,f,r,o,e[t+11],14,643717713),o=a(o,l,f,r,e[t],20,-373897302),r=a(r,o,l,f,e[t+5],5,-701558691),f=a(f,r,o,l,e[t+10],9,38016083),l=a(l,f,r,o,e[t+15],14,-660478335),o=a(o,l,f,r,e[t+4],20,-405537848),r=a(r,o,l,f,e[t+9],5,568446438),f=a(f,r,o,l,e[t+14],9,-1019803690),l=a(l,f,r,o,e[t+3],14,-187363961),o=a(o,l,f,r,e[t+8],20,1163531501),r=a(r,o,l,f,e[t+13],5,-1444681467),f=a(f,r,o,l,e[t+2],9,-51403784),l=a(l,f,r,o,e[t+7],14,1735328473),o=a(o,l,f,r,e[t+12],20,-1926607734),r=u(r,o,l,f,e[t+5],4,-378558),f=u(f,r,o,l,e[t+8],11,-2022574463),l=u(l,f,r,o,e[t+11],16,1839030562),o=u(o,l,f,r,e[t+14],23,-35309556),r=u(r,o,l,f,e[t+1],4,-1530992060),f=u(f,r,o,l,e[t+4],11,1272893353),l=u(l,f,r,o,e[t+7],16,-155497632),o=u(o,l,f,r,e[t+10],23,-1094730640),r=u(r,o,l,f,e[t+13],4,681279174),f=u(f,r,o,l,e[t],11,-358537222),l=u(l,f,r,o,e[t+3],16,-722521979),o=u(o,l,f,r,e[t+6],23,76029189),r=u(r,o,l,f,e[t+9],4,-640364487),f=u(f,r,o,l,e[t+12],11,-421815835),l=u(l,f,r,o,e[t+15],16,530742520),o=u(o,l,f,r,e[t+2],23,-995338651),r=c(r,o,l,f,e[t],6,-198630844),f=c(f,r,o,l,e[t+7],10,1126891415),l=c(l,f,r,o,e[t+14],15,-1416354905),o=c(o,l,f,r,e[t+5],21,-57434055),r=c(r,o,l,f,e[t+12],6,1700485571),f=c(f,r,o,l,e[t+3],10,-1894986606),l=c(l,f,r,o,e[t+10],15,-1051523),o=c(o,l,f,r,e[t+1],21,-2054922799),r=c(r,o,l,f,e[t+8],6,1873313359),f=c(f,r,o,l,e[t+15],10,-30611744),l=c(l,f,r,o,e[t+6],15,-1560198380),o=c(o,l,f,r,e[t+13],21,1309151649),r=c(r,o,l,f,e[t+4],6,-145523070),f=c(f,r,o,l,e[t+11],10,-1120210379),l=c(l,f,r,o,e[t+2],15,718787259),o=c(o,l,f,r,e[t+9],21,-343485551),r=i(r,n),o=i(o,d),l=i(l,h),f=i(f,p)}return[r,o,l,f]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))};r.default=l}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/md5-browser.js"}],[4634,{},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;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};r.default=n}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/native-browser.js"}],[4635,{},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;r.default="00000000-0000-0000-0000-000000000000"}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/nil.js"}],[4636,{"./validate.js":4646},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;var n,i=(n=e("./validate.js"))&&n.__esModule?n:{default:n};var o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};r.default=o}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/parse.js"}],[4637,{},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;r.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/regex.js"}],[4638,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){let n;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)};const i=new Uint8Array(16)}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/rng-browser.js"}],[4639,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s);for(let t=0;t<s;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];a[t]=r}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<s;++e){const o=new Uint32Array(80);for(let t=0;t<16;++t)o[t]=a[e][t];for(let e=16;e<80;++e)o[e]=i(o[e-3]^o[e-8]^o[e-14]^o[e-16],1);let s=r[0],u=r[1],c=r[2],l=r[3],f=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),a=i(s,5)+n(r,u,c,l)+f+t[r]+o[e]>>>0;f=l,l=c,c=i(u,30)>>>0,u=s,s=a}r[0]=r[0]+s>>>0,r[1]=r[1]+u>>>0,r[2]=r[2]+c>>>0,r[3]=r[3]+l>>>0,r[4]=r[4]+f>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]};r.default=o}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/sha1-browser.js"}],[4640,{"./validate.js":4646},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,r.unsafeStringify=s;var n,i=(n=e("./validate.js"))&&n.__esModule?n:{default:n};const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function s(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}var a=function(e,t=0){const r=s(e,t);if(!(0,i.default)(r))throw TypeError("Stringified UUID is invalid");return r};r.default=a}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/stringify.js"}],[4641,{"./rng.js":4638,"./stringify.js":4640},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;var n,i=(n=e("./rng.js"))&&n.__esModule?n:{default:n},o=e("./stringify.js");let s,a,u=0,c=0;var l=function(e,t,r){let n=t&&r||0;const l=t||new Array(16);let f=(e=e||{}).node||s,d=e.clockseq!==undefined?e.clockseq:a;if(null==f||null==d){const t=e.random||(e.rng||i.default)();null==f&&(f=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==d&&(d=a=16383&(t[6]<<8|t[7]))}let h=e.msecs!==undefined?e.msecs:Date.now(),p=e.nsecs!==undefined?e.nsecs:c+1;const b=h-u+(p-c)/1e4;if(b<0&&e.clockseq===undefined&&(d=d+1&16383),(b<0||h>u)&&e.nsecs===undefined&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=h,c=p,a=d,h+=122192928e5;const m=(1e4*(268435455&h)+p)%4294967296;l[n++]=m>>>24&255,l[n++]=m>>>16&255,l[n++]=m>>>8&255,l[n++]=255&m;const g=h/4294967296*1e4&268435455;l[n++]=g>>>8&255,l[n++]=255&g,l[n++]=g>>>24&15|16,l[n++]=g>>>16&255,l[n++]=d>>>8|128,l[n++]=255&d;for(let e=0;e<6;++e)l[n+e]=f[e];return t||(0,o.unsafeStringify)(l)};r.default=l}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/v1.js"}],[4642,{"./md5.js":4633,"./v35.js":4643},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;var n=o(e("./v35.js")),i=o(e("./md5.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v3",48,i.default);r.default=s}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/v3.js"}],[4643,{"./parse.js":4636,"./stringify.js":4640},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.URL=r.DNS=void 0,r.default=function(e,t,r){function n(e,n,s,a){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=(0,o.default)(n)),16!==(null===(u=n)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(n),c.set(e,n.length),c=r(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,s){a=a||0;for(let e=0;e<16;++e)s[a+e]=c[e];return s}return(0,i.unsafeStringify)(c)}try{n.name=e}catch(e){}return n.DNS=s,n.URL=a,n};var n,i=e("./stringify.js"),o=(n=e("./parse.js"))&&n.__esModule?n:{default:n};const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=a}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/v35.js"}],[4644,{"./native.js":4634,"./rng.js":4638,"./stringify.js":4640},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;var n=s(e("./native.js")),i=s(e("./rng.js")),o=e("./stringify.js");function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();const s=(e=e||{}).random||(e.rng||i.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=s[e];return t}return(0,o.unsafeStringify)(s)};r.default=a}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/v4.js"}],[4645,{"./sha1.js":4639,"./v35.js":4643},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;var n=o(e("./v35.js")),i=o(e("./sha1.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v5",80,i.default);r.default=s}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/v5.js"}],[4646,{"./regex.js":4637},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;var n,i=(n=e("./regex.js"))&&n.__esModule?n:{default:n};var o=function(e){return"string"==typeof e&&i.default.test(e)};r.default=o}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/validate.js"}],[4647,{"./validate.js":4646},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;var n,i=(n=e("./validate.js"))&&n.__esModule?n:{default:n};var o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};r.default=o}}},{package:"eth-lattice-keyring>gridplus-sdk>uuid",file:"node_modules/gridplus-sdk/node_modules/uuid/dist/version.js"}],[4679,{"./wrap-idb-value.cjs":4680},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("./wrap-idb-value.cjs");const i=["get","getKey","getAll","getAllKeys","count"],o=["put","add","delete","clear"],s=new Map;function a(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(s.get(t))return s.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,a=o.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!i.includes(r))return;const u=async function(e,...t){const i=this.transaction(e,a?"readwrite":"readonly");let o=i.store;return n&&(o=o.index(t.shift())),(await Promise.all([o[r](...t),a&&i.done]))[0]};return s.set(t,u),u}n.replaceTraps((e=>({...e,get:(t,r,n)=>a(t,r)||e.get(t,r,n),has:(t,r)=>!!a(t,r)||e.has(t,r)}))),r.unwrap=n.unwrap,r.wrap=n.wrap,r.deleteDB=function(e,{blocked:t}={}){const r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",(e=>t(e.oldVersion,e))),n.wrap(r).then((()=>undefined))},r.openDB=function(e,t,{blocked:r,upgrade:i,blocking:o,terminated:s}={}){const a=indexedDB.open(e,t),u=n.wrap(a);return i&&a.addEventListener("upgradeneeded",(e=>{i(n.wrap(a.result),e.oldVersion,e.newVersion,n.wrap(a.transaction),e)})),r&&a.addEventListener("blocked",(e=>r(e.oldVersion,e.newVersion,e))),u.then((e=>{s&&e.addEventListener("close",(()=>s())),o&&e.addEventListener("versionchange",(e=>o(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),u}}}},{package:"@metamask/notification-services-controller>firebase>@firebase/app>idb",file:"node_modules/idb/build/index.cjs"}],[4680,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=(e,t)=>t.some((t=>e instanceof t));let i,o;const s=new WeakMap,a=new WeakMap,u=new WeakMap,c=new WeakMap,l=new WeakMap;let f={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return a.get(e);if("objectStoreNames"===t)return e.objectStoreNames||u.get(e);if("store"===t)return r.objectStoreNames[1]?undefined:r.objectStore(r.objectStoreNames[0])}return p(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function d(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(b(this),t),p(s.get(this))}:function(...t){return p(e.apply(b(this),t))}:function(t,...r){const n=e.call(b(this),t,...r);return u.set(n,t.sort?t.sort():[t]),p(n)}}function h(e){return"function"==typeof e?d(e):(e instanceof IDBTransaction&&function(e){if(a.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));a.set(e,t)}(e),n(e,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,f):e)}function p(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(p(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&s.set(t,e)})).catch((()=>{})),l.set(t,e),t}(e);if(c.has(e))return c.get(e);const t=h(e);return t!==e&&(c.set(e,t),l.set(t,e)),t}const b=e=>l.get(e);r.instanceOfAny=n,r.replaceTraps=function(e){f=e(f)},r.reverseTransformCache=l,r.unwrap=b,r.wrap=p}}},{package:"@metamask/notification-services-controller>firebase>@firebase/app>idb",file:"node_modules/idb/build/wrap-idb-value.cjs"}],[47,{"./cronjob-controller-messenger":45,"./execution-service-messenger":46,"./rate-limit-controller-messenger":48,"./snap-controller-messenger":49,"./snap-insights-controller-messenger":50,"./snap-interface-controller-messenger":51,"./snaps-registry-messenger":52},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getCronjobControllerMessenger",{enumerable:!0,get:function(){return n.getCronjobControllerMessenger}}),Object.defineProperty(r,"getExecutionServiceMessenger",{enumerable:!0,get:function(){return i.getExecutionServiceMessenger}}),Object.defineProperty(r,"getRateLimitControllerInitMessenger",{enumerable:!0,get:function(){return o.getRateLimitControllerInitMessenger}}),Object.defineProperty(r,"getRateLimitControllerMessenger",{enumerable:!0,get:function(){return o.getRateLimitControllerMessenger}}),Object.defineProperty(r,"getSnapControllerInitMessenger",{enumerable:!0,get:function(){return s.getSnapControllerInitMessenger}}),Object.defineProperty(r,"getSnapControllerMessenger",{enumerable:!0,get:function(){return s.getSnapControllerMessenger}}),Object.defineProperty(r,"getSnapInsightsControllerMessenger",{enumerable:!0,get:function(){return a.getSnapInsightsControllerMessenger}}),Object.defineProperty(r,"getSnapInterfaceControllerMessenger",{enumerable:!0,get:function(){return u.getSnapInterfaceControllerMessenger}}),Object.defineProperty(r,"getSnapsRegistryMessenger",{enumerable:!0,get:function(){return c.getSnapsRegistryMessenger}});var n=e("./cronjob-controller-messenger"),i=e("./execution-service-messenger"),o=e("./rate-limit-controller-messenger"),s=e("./snap-controller-messenger"),a=e("./snap-insights-controller-messenger"),u=e("./snap-interface-controller-messenger"),c=e("./snaps-registry-messenger")}}},{package:"$root$",file:"app/scripts/controller-init/messengers/snaps/index.ts"}],[4705,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);t.exports=e=>!n.has(e&&e.code)}}},{package:"is-retry-allowed",file:"node_modules/is-retry-allowed/index.js"}],[4712,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){if("string"!=typeof e)return!1;var t=e.match(n);if(!t)return!1;var r=t[1];if(!r)return!1;if(i.test(r)||o.test(r))return!0;return!1};var n=/^(?:\w+:)?\/\/(\S+)$/,i=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,o=/^[^\s\.]+\.\S{2,}$/}}},{package:"@open-rpc/schema-utils-js>is-url",file:"node_modules/is-url/index.js"}],[4716,{"./src/relative":4717,"./src/url":4718},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{URLWithLegacySupport:n,format:i,URLSearchParams:o,defaultBase:s}=e("./src/url"),a=e("./src/relative");t.exports={URL:n,URLSearchParams:o,format:i,relative:a,defaultBase:s}}}},{package:"eth-lattice-keyring>gridplus-sdk>borc>iso-url",file:"node_modules/iso-url/index.js"}],[4717,{"./url":4718},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{URLWithLegacySupport:n,format:i}=e("./url");t.exports=(e,t={},r={},o)=>{let s,a=t.protocol?t.protocol.replace(":",""):"http";a=(r[a]||o||a)+":";try{s=new n(e)}catch(e){s={}}const u=Object.assign({},t,{protocol:a||s.protocol,host:t.host||s.host});return new n(e,i(u)).toString()}}}},{package:"eth-lattice-keyring>gridplus-sdk>borc>iso-url",file:"node_modules/iso-url/src/relative.js"}],[4718,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=self.location?self.location.protocol+"//"+self.location.host:"",i=self.URL;t.exports={URLWithLegacySupport:class{constructor(e="",t=n){this.super=new i(e,t),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}get hash(){return this.super.hash}get host(){return this.super.host}get hostname(){return this.super.hostname}get href(){return this.super.href}get origin(){return this.super.origin}get password(){return this.super.password}get pathname(){return this.super.pathname}get port(){return this.super.port}get protocol(){return this.super.protocol}get search(){return this.super.search}get searchParams(){return this.super.searchParams}get username(){return this.super.username}set hash(e){this.super.hash=e}set host(e){this.super.host=e}set hostname(e){this.super.hostname=e}set href(e){this.super.href=e}set origin(e){this.super.origin=e}set password(e){this.super.password=e}set pathname(e){this.super.pathname=e}set port(e){this.super.port=e}set protocol(e){this.super.protocol=e}set search(e){this.super.search=e}set searchParams(e){this.super.searchParams=e}set username(e){this.super.username=e}createObjectURL(e){return this.super.createObjectURL(e)}revokeObjectURL(e){this.super.revokeObjectURL(e)}toJSON(){return this.super.toJSON()}toString(){return this.super.toString()}format(){return this.toString()}},URLSearchParams:self.URLSearchParams,defaultBase:n,format:function(e){if("string"==typeof e){return new i(e).toString()}if(!(e instanceof i)){const t=e.username&&e.password?`${e.username}:${e.password}@`:"",r=e.auth?e.auth+"@":"",n=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",o=e.host||"",s=e.hostname||"",a=e.search||(e.query?"?"+e.query:""),u=e.hash||"",c=e.pathname||"";return`${i}${t||r}${o||s+n}${e.path||c+a}${u}`}}}}}},{package:"eth-lattice-keyring>gridplus-sdk>borc>iso-url",file:"node_modules/iso-url/src/url-browser.js"}],[4719,{"whatwg-fetch":5757},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){e("whatwg-fetch"),t.exports=self.fetch.bind(self)}}},{package:"@open-rpc/test-coverage>isomorphic-fetch",file:"node_modules/isomorphic-fetch/fetch-npm-browserify.js"}],[4720,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t,r){return t=t||"and",r=r||", ",e.length<2?e[0]||"":(t.slice(0,2)===r?2==e.length&&(t=t.slice(1)):t=" "+t,e.slice(0,-1).join(r)+t+" "+e[e.length-1])}}}},{package:"@segment/loosely-validate-event>join-component",file:"node_modules/join-component/index.js"}],[4721,{buffer:4096},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){!function(e,n){var i,o;"object"==typeof r&&void 0!==t?t.exports=n():"function"==typeof define&&define.amd?define(n):(i=e.Base64,(o=n()).noConflict=function(){return e.Base64=i,o},e.Meteor&&(Base64=o),e.Base64=o)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,(function(){var t,r="3.7.7",n=r,i="function"==typeof e,o="function"==typeof TextDecoder?new TextDecoder:undefined,s="function"==typeof TextEncoder?new TextEncoder:undefined,a=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),u=(t={},a.forEach((function(e,r){return t[e]=r})),t),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,l=String.fromCharCode.bind(String),f="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},d=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},h=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},p=function(e){for(var t,r,n,i,o="",s=e.length%3,u=0;u<e.length;){if((r=e.charCodeAt(u++))>255||(n=e.charCodeAt(u++))>255||(i=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");o+=a[(t=r<<16|n<<8|i)>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o},b="function"==typeof btoa?function(e){return btoa(e)}:i?function(t){return e.from(t,"binary").toString("base64")}:p,m=i?function(t){return e.from(t).toString("base64")}:function(e){for(var t=[],r=0,n=e.length;r<n;r+=4096)t.push(l.apply(null,e.subarray(r,r+4096)));return b(t.join(""))},g=function(e,t){return void 0===t&&(t=!1),t?d(m(e)):m(e)},v=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|63&t)},y=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=function(e){return e.replace(y,v)},k=i?function(t){return e.from(t,"utf8").toString("base64")}:s?function(e){return m(s.encode(e))}:function(e){return b(w(e))},j=function(e,t){return void 0===t&&(t=!1),t?d(k(e)):k(e)},_=function(e){return j(e,!0)},T=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,S=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return l(55296+(t>>>10))+l(56320+(1023&t));case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},x=function(e){return e.replace(T,S)},E=function(e){if(e=e.replace(/\s+/g,""),!c.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,r,n,i="",o=0;o<e.length;)t=u[e.charAt(o++)]<<18|u[e.charAt(o++)]<<12|(r=u[e.charAt(o++)])<<6|(n=u[e.charAt(o++)]),i+=64===r?l(t>>16&255):64===n?l(t>>16&255,t>>8&255):l(t>>16&255,t>>8&255,255&t);return i},O="function"==typeof atob?function(e){return atob(h(e))}:i?function(t){return e.from(t,"base64").toString("binary")}:E,A=i?function(t){return f(e.from(t,"base64"))}:function(e){return f(O(e).split("").map((function(e){return e.charCodeAt(0)})))},P=function(e){return A(C(e))},I=i?function(t){return e.from(t,"base64").toString("utf8")}:o?function(e){return o.decode(A(e))}:function(e){return x(O(e))},C=function(e){return h(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},R=function(e){return I(C(e))},B=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},M=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,B(t))};e("fromBase64",(function(){return R(this)})),e("toBase64",(function(e){return j(this,e)})),e("toBase64URI",(function(){return j(this,!0)})),e("toBase64URL",(function(){return j(this,!0)})),e("toUint8Array",(function(){return P(this)}))},L=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,B(t))};e("toBase64",(function(e){return g(this,e)})),e("toBase64URI",(function(){return g(this,!0)})),e("toBase64URL",(function(){return g(this,!0)}))},N={version:r,VERSION:n,atob:O,atobPolyfill:E,btoa:b,btoaPolyfill:p,fromBase64:R,toBase64:j,encode:j,encodeURI:_,encodeURL:_,utob:w,btou:x,decode:R,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:g,toUint8Array:P,extendString:M,extendUint8Array:L,extendBuiltins:function(){M(),L()},Base64:{}};return Object.keys(N).forEach((function(e){return N.Base64[e]=N[e]})),N}))}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@ensdomains/content-hash>js-base64",file:"node_modules/js-base64/base64.js"}],[4725,{"./lib/parse":4726,"./lib/stringify":4727},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r.parse=e("./lib/parse"),r.stringify=e("./lib/stringify")}}},{package:"@lavamoat/lavapack>json-stable-stringify>jsonify",file:"node_modules/jsonify/index.js"}],[4726,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i,o,s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function a(e){throw{name:"SyntaxError",message:e,at:n,text:o}}function u(e){return e&&e!==i&&a("Expected '"+e+"' instead of '"+i+"'"),i=o.charAt(n),n+=1,i}function c(){var e,t="";for("-"===i&&(t="-",u("-"));i>="0"&&i<="9";)t+=i,u();if("."===i)for(t+=".";u()&&i>="0"&&i<="9";)t+=i;if("e"===i||"E"===i)for(t+=i,u(),"-"!==i&&"+"!==i||(t+=i,u());i>="0"&&i<="9";)t+=i,u();return e=Number(t),isFinite(e)||a("Bad number"),e}function l(){var e,t,r,n="";if('"'===i)for(;u();){if('"'===i)return u(),n;if("\\"===i)if(u(),"u"===i){for(r=0,t=0;t<4&&(e=parseInt(u(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof s[i])break;n+=s[i]}else n+=i}a("Bad string")}function f(){for(;i&&i<=" ";)u()}function d(){switch(f(),i){case"{":return function(){var e,t={};if("{"===i){if(u("{"),f(),"}"===i)return u("}"),t;for(;i;){if(e=l(),f(),u(":"),Object.prototype.hasOwnProperty.call(t,e)&&a('Duplicate key "'+e+'"'),t[e]=d(),f(),"}"===i)return u("}"),t;u(","),f()}}a("Bad object")}();case"[":return function(){var e=[];if("["===i){if(u("["),f(),"]"===i)return u("]"),e;for(;i;){if(e.push(d()),f(),"]"===i)return u("]"),e;u(","),f()}}a("Bad array")}();case'"':return l();case"-":return c();default:return i>="0"&&i<="9"?c():function(){switch(i){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null;default:a("Unexpected '"+i+"'")}}()}}t.exports=function(e,t){var r;return o=e,n=0,i=" ",r=d(),f(),i&&a("Syntax error"),"function"==typeof t?function e(r,n){var i,o,s=r[n];if(s&&"object"==typeof s)for(i in d)Object.prototype.hasOwnProperty.call(s,i)&&(void 0===(o=e(s,i))?delete s[i]:s[i]=o);return t.call(r,n,s)}({"":r},""):r}}}},{package:"@lavamoat/lavapack>json-stable-stringify>jsonify",file:"node_modules/jsonify/lib/parse.js"}],[4727,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,i,o,s=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function u(e){return s.lastIndex=0,s.test(e)?'"'+e.replace(s,(function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function c(e,t){var r,s,a,l,f,d=n,h=t[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),"function"==typeof o&&(h=o.call(t,e,h)),typeof h){case"string":return u(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(n+=i,f=[],"[object Array]"===Object.prototype.toString.apply(h)){for(l=h.length,r=0;r<l;r+=1)f[r]=c(r,h)||"null";return a=0===f.length?"[]":n?"[\n"+n+f.join(",\n"+n)+"\n"+d+"]":"["+f.join(",")+"]",n=d,a}if(o&&"object"==typeof o)for(l=o.length,r=0;r<l;r+=1)"string"==typeof(s=o[r])&&(a=c(s,h))&&f.push(u(s)+(n?": ":":")+a);else for(s in h)Object.prototype.hasOwnProperty.call(h,s)&&(a=c(s,h))&&f.push(u(s)+(n?": ":":")+a);return a=0===f.length?"{}":n?"{\n"+n+f.join(",\n"+n)+"\n"+d+"}":"{"+f.join(",")+"}",n=d,a}}t.exports=function(e,t,r){var s;if(n="",i="","number"==typeof r)for(s=0;s<r;s+=1)i+=" ";else"string"==typeof r&&(i=r);if(o=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return c("",{"":e})}}}},{package:"@lavamoat/lavapack>json-stable-stringify>jsonify",file:"node_modules/jsonify/lib/stringify.js"}],[4764,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}}}},{package:"lodash",file:"node_modules/lodash/_arrayEach.js"}],[4772,{"./_copyObject":4805,"./keys":4893},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_copyObject"),i=e("./keys");t.exports=function(e,t){return e&&n(t,i(t),e)}}}},{package:"lodash",file:"node_modules/lodash/_baseAssign.js"}],[4773,{"./_copyObject":4805,"./keysIn":4894},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_copyObject"),i=e("./keysIn");t.exports=function(e,t){return e&&n(t,i(t),e)}}}},{package:"lodash",file:"node_modules/lodash/_baseAssignIn.js"}],[4775,{"./_Stack":4759,"./_arrayEach":4764,"./_assignValue":4770,"./_baseAssign":4772,"./_baseAssignIn":4773,"./_cloneBuffer":4799,"./_copyArray":4804,"./_copySymbols":4806,"./_copySymbolsIn":4807,"./_getAllKeys":4816,"./_getAllKeysIn":4817,"./_getTag":4824,"./_initCloneArray":4831,"./_initCloneByTag":4832,"./_initCloneObject":4833,"./isArray":4877,"./isBuffer":4880,"./isMap":4886,"./isObject":4887,"./isSet":4890,"./keys":4893,"./keysIn":4894},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_Stack"),i=e("./_arrayEach"),o=e("./_assignValue"),s=e("./_baseAssign"),a=e("./_baseAssignIn"),u=e("./_cloneBuffer"),c=e("./_copyArray"),l=e("./_copySymbols"),f=e("./_copySymbolsIn"),d=e("./_getAllKeys"),h=e("./_getAllKeysIn"),p=e("./_getTag"),b=e("./_initCloneArray"),m=e("./_initCloneByTag"),g=e("./_initCloneObject"),v=e("./isArray"),y=e("./isBuffer"),w=e("./isMap"),k=e("./isObject"),j=e("./isSet"),_=e("./keys"),T=e("./keysIn"),S="[object Arguments]",x="[object Function]",E="[object Object]",O={};O[S]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[E]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[x]=O["[object WeakMap]"]=!1,t.exports=function e(t,r,A,P,I,C){var R,B=1&r,M=2&r,L=4&r;if(A&&(R=I?A(t,P,I,C):A(t)),R!==undefined)return R;if(!k(t))return t;var N=v(t);if(N){if(R=b(t),!B)return c(t,R)}else{var D=p(t),F=D==x||"[object GeneratorFunction]"==D;if(y(t))return u(t,B);if(D==E||D==S||F&&!I){if(R=M||F?{}:g(t),!B)return M?f(t,a(R,t)):l(t,s(R,t))}else{if(!O[D])return I?t:{};R=m(t,D,B)}}C||(C=new n);var U=C.get(t);if(U)return U;C.set(t,R),j(t)?t.forEach((function(n){R.add(e(n,r,A,n,t,C))})):w(t)&&t.forEach((function(n,i){R.set(i,e(n,r,A,i,t,C))}));var H=N?undefined:(L?M?h:d:M?T:_)(t);return i(H||t,(function(n,i){H&&(n=t[i=n]),o(R,i,e(n,r,A,i,t,C))})),R}}}},{package:"lodash",file:"node_modules/lodash/_baseClone.js"}],[4780,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=Math.max,i=Math.min;t.exports=function(e,t,r){return e>=i(t,r)&&e<n(t,r)}}}},{package:"lodash",file:"node_modules/lodash/_baseInRange.js"}],[4784,{"./_getTag":4824,"./isObjectLike":4888},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_getTag"),i=e("./isObjectLike");t.exports=function(e){return i(e)&&"[object Map]"==n(e)}}}},{package:"lodash",file:"node_modules/lodash/_baseIsMap.js"}],[4786,{"./_getTag":4824,"./isObjectLike":4888},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_getTag"),i=e("./isObjectLike");t.exports=function(e){return i(e)&&"[object Set]"==n(e)}}}},{package:"lodash",file:"node_modules/lodash/_baseIsSet.js"}],[4795,{"./_trimmedEndIndex":4870},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_trimmedEndIndex"),i=/^\s+/;t.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}}}},{package:"lodash",file:"node_modules/lodash/_baseTrim.js"}],[48,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getRateLimitControllerInitMessenger=function(e){return e.getRestricted({name:"RateLimitController",allowedActions:["SubjectMetadataController:getState","NotificationServicesController:updateMetamaskNotificationsList"],allowedEvents:[]})},r.getRateLimitControllerMessenger=function(e){return e.getRestricted({name:"RateLimitController",allowedEvents:[],allowedActions:[]})}}}},{package:"$root$",file:"app/scripts/controller-init/messengers/snaps/rate-limit-controller-messenger.ts"}],[4800,{"./_cloneArrayBuffer":4798},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_cloneArrayBuffer");t.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}}}},{package:"lodash",file:"node_modules/lodash/_cloneDataView.js"}],[4801,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=/\w*$/;t.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}}}},{package:"lodash",file:"node_modules/lodash/_cloneRegExp.js"}],[4802,{"./_Symbol":4760},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_Symbol"),i=n?n.prototype:undefined,o=i?i.valueOf:undefined;t.exports=function(e){return o?Object(o.call(e)):{}}}}},{package:"lodash",file:"node_modules/lodash/_cloneSymbol.js"}],[4806,{"./_copyObject":4805,"./_getSymbols":4822},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_copyObject"),i=e("./_getSymbols");t.exports=function(e,t){return n(e,i(e),t)}}}},{package:"lodash",file:"node_modules/lodash/_copySymbols.js"}],[4807,{"./_copyObject":4805,"./_getSymbolsIn":4823},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_copyObject"),i=e("./_getSymbolsIn");t.exports=function(e,t){return n(e,i(e),t)}}}},{package:"lodash",file:"node_modules/lodash/_copySymbolsIn.js"}],[4817,{"./_baseGetAllKeys":4778,"./_getSymbolsIn":4823,"./keysIn":4894},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseGetAllKeys"),i=e("./_getSymbolsIn"),o=e("./keysIn");t.exports=function(e){return n(e,o,i)}}}},{package:"lodash",file:"node_modules/lodash/_getAllKeysIn.js"}],[4823,{"./_arrayPush":4767,"./_getPrototype":4820,"./_getSymbols":4822,"./stubArray":4897},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_arrayPush"),i=e("./_getPrototype"),o=e("./_getSymbols"),s=e("./stubArray"),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:s;t.exports=a}}},{package:"lodash",file:"node_modules/lodash/_getSymbolsIn.js"}],[4831,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=Object.prototype.hasOwnProperty;t.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}}}},{package:"lodash",file:"node_modules/lodash/_initCloneArray.js"}],[4832,{"./_cloneArrayBuffer":4798,"./_cloneDataView":4800,"./_cloneRegExp":4801,"./_cloneSymbol":4802,"./_cloneTypedArray":4803},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_cloneArrayBuffer"),i=e("./_cloneDataView"),o=e("./_cloneRegExp"),s=e("./_cloneSymbol"),a=e("./_cloneTypedArray");t.exports=function(e,t,r){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(e,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return o(e);case"[object Symbol]":return s(e)}}}}},{package:"lodash",file:"node_modules/lodash/_initCloneByTag.js"}],[4870,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=/\s/;t.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}}}},{package:"lodash",file:"node_modules/lodash/_trimmedEndIndex.js"}],[4871,{"./_baseClone":4775},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseClone");t.exports=function(e){return n(e,5)}}}},{package:"lodash",file:"node_modules/lodash/cloneDeep.js"}],[4875,{"./_baseInRange":4780,"./toFinite":4899,"./toNumber":4901},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseInRange"),i=e("./toFinite"),o=e("./toNumber");t.exports=function(e,t,r){return t=i(t),r===undefined?(r=t,t=0):r=i(r),e=o(e),n(e,t,r)}}}},{package:"lodash",file:"node_modules/lodash/inRange.js"}],[4881,{"./_baseKeys":4788,"./_getTag":4824,"./_isPrototype":4838,"./isArguments":4876,"./isArray":4877,"./isArrayLike":4878,"./isBuffer":4880,"./isTypedArray":4892},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseKeys"),i=e("./_getTag"),o=e("./isArguments"),s=e("./isArray"),a=e("./isArrayLike"),u=e("./isBuffer"),c=e("./_isPrototype"),l=e("./isTypedArray"),f=Object.prototype.hasOwnProperty;t.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(f.call(e,r))return!1;return!0}}}},{package:"lodash",file:"node_modules/lodash/isEmpty.js"}],[4884,{"./toInteger":4900},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./toInteger");t.exports=function(e){return"number"==typeof e&&e==n(e)}}}},{package:"lodash",file:"node_modules/lodash/isInteger.js"}],[4886,{"./_baseIsMap":4784,"./_baseUnary":4796,"./_nodeUtil":4853},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseIsMap"),i=e("./_baseUnary"),o=e("./_nodeUtil"),s=o&&o.isMap,a=s?i(s):n;t.exports=a}}},{package:"lodash",file:"node_modules/lodash/isMap.js"}],[4890,{"./_baseIsSet":4786,"./_baseUnary":4796,"./_nodeUtil":4853},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseIsSet"),i=e("./_baseUnary"),o=e("./_nodeUtil"),s=o&&o.isSet,a=s?i(s):n;t.exports=a}}},{package:"lodash",file:"node_modules/lodash/isSet.js"}],[4891,{"./_baseGetTag":4779,"./isObjectLike":4888},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseGetTag"),i=e("./isObjectLike");t.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}}}},{package:"lodash",file:"node_modules/lodash/isSymbol.js"}],[4899,{"./toNumber":4901},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./toNumber"),i=1/0;t.exports=function(e){return e?(e=n(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}}}},{package:"lodash",file:"node_modules/lodash/toFinite.js"}],[49,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getSnapControllerInitMessenger=function(e){return e.getRestricted({name:"SnapControllerInit",allowedEvents:[],allowedActions:["KeyringController:getKeyringsByType","PreferencesController:getState"]})},r.getSnapControllerMessenger=function(e){return e.getRestricted({name:"SnapController",allowedEvents:["ExecutionService:unhandledError","ExecutionService:outboundRequest","ExecutionService:outboundResponse","KeyringController:lock"],allowedActions:["PermissionController:getEndowments","PermissionController:getPermissions","PermissionController:hasPermission","PermissionController:hasPermissions","PermissionController:requestPermissions","PermissionController:revokeAllPermissions","PermissionController:revokePermissions","PermissionController:revokePermissionForAllSubjects","PermissionController:getSubjectNames","PermissionController:updateCaveat","ApprovalController:addRequest","ApprovalController:updateRequestState","PermissionController:grantPermissions","SubjectMetadataController:getSubjectMetadata","SubjectMetadataController:addSubjectMetadata","ExecutionService:executeSnap","ExecutionService:terminateSnap","ExecutionService:terminateAllSnaps","ExecutionService:handleRpcRequest","NetworkController:getNetworkClientById","SelectedNetworkController:getNetworkClientIdForDomain","SnapsRegistry:get","SnapsRegistry:getMetadata","SnapsRegistry:update","SnapsRegistry:resolveVersion","SnapInterfaceController:createInterface","SnapInterfaceController:getInterface"]})}}}},{package:"$root$",file:"app/scripts/controller-init/messengers/snaps/snap-controller-messenger.ts"}],[4900,{"./toFinite":4899},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./toFinite");t.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}}}},{package:"lodash",file:"node_modules/lodash/toInteger.js"}],[4901,{"./_baseTrim":4795,"./isObject":4887,"./isSymbol":4891},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./_baseTrim"),i=e("./isObject"),o=e("./isSymbol"),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(o(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):a.test(e)?s:+e}}}},{package:"lodash",file:"node_modules/lodash/toNumber.js"}],[4956,{"./util":4960},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"}],[4957,{"./base.js":4956,"./rfc4648":4959,"./util":4960,"@multiformats/base-x":2983},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"),u=[["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-_="]],c=u.reduce(((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e)),{}),l=u.reduce(((e,t)=>(e[t[1]]=c[t[0]],e)),{});t.exports={names:c,codes:l}}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/constants.js"}],[4958,{"./constants":4957,"./util":4960},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 u=Object.freeze(n.names),c=Object.freeze(n.codes);r.names=u,r.codes=c}}},{package:"@ensdomains/content-hash>cids>multibase",file:"node_modules/multibase/src/index.js"}],[4959,{},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,u=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[u++]=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"}],[4960,{},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"}],[4961,{"./util/as-uint8array.js":4965},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"}],[4962,{"./alloc.js":4961,"./util/as-uint8array.js":4965},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"}],[4963,{"./util/as-uint8array.js":4965,"./util/bases.js":4966},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"}],[4964,{"./util/bases.js":4966},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"}],[4965,{},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"}],[4966,{"../alloc.js":4961,"multiformats/basics":4982},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})),u={utf8:s,"utf-8":s,hex:n.bases.base16,latin1:a,ascii:a,binary:a,...n.bases};t.exports=u}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays",file:"node_modules/multicodec/node_modules/uint8arrays/cjs/src/util/bases.js"}],[4967,{},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"}],[4968,{"./maps":4969,"./util":4970,"uint8arrays/concat":4962,varint:5745},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:u,codeToName:c}=e("./maps");function l(e){const t=n.decode(e),r=c[t];if(r===undefined)throw new Error(`Code "${t}" not found`);return r}function f(e){return c[e]}function d(e){const t=u[e];if(t===undefined)throw new Error(`Codec "${e}" not found`);return t}function h(e){return n.decode(e)}function p(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:l,getNameFromCode:f,getCodeFromName:d,getCodeFromData:h,getVarintFromName:p,getVarintFromCode:b,getCodec:function(e){return l(e)},getName:function(e){return f(e)},getNumber:function(e){return d(e)},getCode:function(e){return h(e)},getCodeVarint:function(e){return p(e)},getVarint:function(e){return Array.from(b(e))},...a,nameToVarint:s,nameToCode:u,codeToName:c}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/index.js"}],[4969,{"./generated-table":4967,"./util":4970},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 u=Object.freeze(n);t.exports={nameToVarint:o,constantToCode:s,nameToCode:u,codeToName:a}}}},{package:"@ensdomains/content-hash>multicodec",file:"node_modules/multicodec/src/maps.js"}],[4970,{"uint8arrays/from-string":4963,"uint8arrays/to-string":4964,varint:5745},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"}],[4972,{"./base.js":4971},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base10.js"}],[4973,{"./base.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("./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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base16.js"}],[4974,{"./base.js":4971},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base2.js"}],[4975,{"./base.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("./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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base256emoji.js"}],[4977,{"./base.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("./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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base36.js"}],[4979,{"./base.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("./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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base64.js"}],[4980,{"./base.js":4971},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/base8.js"}],[4981,{"../bytes.js":4983,"./base.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("./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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/bases/identity.js"}],[4982,{"./bases/base10.js":4972,"./bases/base16.js":4973,"./bases/base2.js":4974,"./bases/base256emoji.js":4975,"./bases/base32.js":4976,"./bases/base36.js":4977,"./bases/base58.js":4978,"./bases/base64.js":4979,"./bases/base8.js":4980,"./bases/identity.js":4981,"./bytes.js":4983,"./cid.js":4984,"./codecs/json.js":4985,"./codecs/raw.js":4986,"./hashes/digest.js":4987,"./hashes/hasher.js":4988,"./hashes/identity.js":4989,"./hashes/sha2.js":4990,"./index.js":4991,"./varint.js":4992},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"),u=e("./bases/base32.js"),c=e("./bases/base36.js"),l=e("./bases/base58.js"),f=e("./bases/base64.js"),d=e("./bases/base256emoji.js"),h=e("./hashes/sha2.js"),p=e("./hashes/identity.js"),b=e("./codecs/raw.js"),m=e("./codecs/json.js");e("./index.js");var g=e("./cid.js"),v=e("./hashes/hasher.js"),y=e("./hashes/digest.js"),w=e("./varint.js"),k=e("./bytes.js");const j={...n,...i,...o,...s,...a,...u,...c,...l,...f,...d},_={...h,...p},T={raw:b,json:m};r.CID=g.CID,r.hasher=v,r.digest=y,r.varint=w,r.bytes=k,r.bases=j,r.codecs=T,r.hashes=_}}},{package:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/basics.js"}],[4985,{},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/codecs/json.js"}],[4986,{"../bytes.js":4983},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/codecs/raw.js"}],[4989,{"../bytes.js":4983,"./digest.js":4987},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/hashes/identity.js"}],[4990,{"./hasher.js":4988},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:"@ensdomains/content-hash>multicodec>uint8arrays>multiformats",file:"node_modules/multiformats/cjs/src/hashes/sha2-browser.js"}],[4995,{},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"}],[4996,{multibase:4958},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"}],[4997,{multibase:4958},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"}],[4998,{},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,u=r=r||0,c=t.length;do{if(u>=c)throw e.bytes=0,new RangeError("Could not decode varint");o=t[u++],s+=a<28?(o&i)<<a:(o&i)*Math.pow(2,a),a+=7}while(o>=n);return e.bytes=u-r,s};var n=128,i=127}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/decode.js"}],[4999,{},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"}],[5,{"../../../shared/constants/network":5790},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SINGLE_CALL_BALANCES_ADDRESSES=void 0;var n=e("../../../shared/constants/network");r.SINGLE_CALL_BALANCES_ADDRESSES={[n.CHAIN_IDS.MAINNET]:"0xb1f8e55c7f64d203c1400b9d8555d050f94adf39",[n.CHAIN_IDS.GOERLI]:"0x9788C4E93f9002a7ad8e72633b11E8d1ecd51f9b",[n.CHAIN_IDS.BSC]:"0x2352c63A83f9Fd126af8676146721Fa00924d7e4",[n.CHAIN_IDS.OPTIMISM]:"0xB1c568e9C3E6bdaf755A60c7418C269eb11524FC",[n.CHAIN_IDS.POLYGON]:"0x2352c63A83f9Fd126af8676146721Fa00924d7e4",[n.CHAIN_IDS.AVALANCHE]:"0xD023D153a0DFa485130ECFdE2FAA7e612EF94818",[n.CHAIN_IDS.FANTOM]:"0x07f697424ABe762bB808c109860c04eA488ff92B",[n.CHAIN_IDS.ARBITRUM]:"0x151E24A486D7258dd7C33Fb67E4bB01919B7B32c",[n.CHAIN_IDS.BLAST]:"0xfd5730e96f9dffae40d99b77015bd42816280998",[n.CHAIN_IDS.LINEA_GOERLI]:"0x10dAd7Ca3921471f616db788D9300DC97Db01783",[n.CHAIN_IDS.LINEA_MAINNET]:"0xF62e6a41561b3650a69Bb03199C735e3E3328c0D",[n.CHAIN_IDS.AURORA]:"0x1286415D333855237f89Df27D388127181448538",[n.CHAIN_IDS.BASE]:"0x6AA75276052D96696134252587894ef5FFA520af",[n.CHAIN_IDS.ZKSYNC_ERA]:"0x458fEd3144680a5b8bcfaa0F9594aa19B4Ea2D34"}}}},{package:"$root$",file:"app/scripts/constants/contracts.ts"}],[50,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getSnapInsightsControllerMessenger=function(e){return e.getRestricted({name:"SnapInsightsController",allowedActions:["SnapController:handleRequest","SnapController:getAll","PermissionController:getPermissions","SnapInterfaceController:deleteInterface"],allowedEvents:["TransactionController:unapprovedTransactionAdded","TransactionController:transactionStatusUpdated","SignatureController:stateChange"]})}}}},{package:"$root$",file:"app/scripts/controller-init/messengers/snaps/snap-insights-controller-messenger.ts"}],[5e3,{"./decode.js":4998,"./encode.js":4999,"./length.js":5001},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"}],[5001,{},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),u=Math.pow(2,42),c=Math.pow(2,49),l=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<u?6:e<c?7:e<l?8:e<f?9:10}}}},{package:"@ensdomains/content-hash>cids>multihashes>varint",file:"node_modules/multihashes/node_modules/varint/length.js"}],[5002,{},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"}],[5003,{"./constants":5002,multibase:4958,"uint8arrays/concat":4995,"uint8arrays/from-string":4996,"uint8arrays/to-string":4997,varint:5e3},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"),u=e("uint8arrays/concat"),c={};for(const e in o){const t=e;c[o[t]]=t}function l(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(!h(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:c[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(c[t]===undefined&&!d(t))throw new Error(`Unrecognized function code: ${t}`);return t}function d(e){return e>0&&e<16}function h(e){return!!d(e)||!!c[e]}function p(e){l(e)}Object.freeze(c),t.exports={names:o,codes:c,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:l,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 u([o,s,e],o.length+s.length+e.length)},coerceCode:f,isAppCode:d,validate:p,prefix:function(e){return p(e),e.subarray(0,2)},isValidCode:h}}}},{package:"@ensdomains/content-hash>cids>multihashes",file:"node_modules/multihashes/src/index.js"}],[5084,{"./src/index-light":5090},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"}],[5085,{"./enum":5088,"./util":5107},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),u=0;u<a.length;++u)s[a[u]]!==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[u])("case %i:",s[a[u]])("m%s=%j",n,s[a[u]])("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 c=!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":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('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,c?"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(),u=o.safeProp(a.name);a.map?(r("if(d%s){",u)('if(typeof d%s!=="object")',u)("throw TypeError(%j)",a.fullName+": object expected")("m%s={}",u)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",u),s(r,a,n,u+"[ks[i]]")("}")("}")):a.repeated?(r("if(d%s){",u)("if(!Array.isArray(d%s))",u)("throw TypeError(%j)",a.fullName+": array expected")("m%s=[]",u)("for(var i=0;i<d%s.length;++i){",u),s(r,a,n,u+"[i]")("}")("}")):(a.resolvedType instanceof i||r("if(d%s!=null){",u),s(r,a,n,u),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=[],u=[],c=0;c<t.length;++c)t[c].partOf||(t[c].resolve().repeated?n:t[c].map?s:u).push(t[c]);if(n.length){for(r("if(o.arrays||o.defaults){"),c=0;c<n.length;++c)r("d%s=[]",o.safeProp(n[c].name));r("}")}if(s.length){for(r("if(o.objects||o.defaults){"),c=0;c<s.length;++c)r("d%s={}",o.safeProp(s[c].name));r("}")}if(u.length){for(r("if(o.defaults){"),c=0;c<u.length;++c){var l=u[c],f=o.safeProp(l.name);if(l.resolvedType instanceof i)r("d%s=o.enums===String?%j:%j",f,l.resolvedType.valuesById[l.typeDefault],l.typeDefault);else if(l.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.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,l.typeDefault.toString(),l.typeDefault.toNumber());else if(l.bytes){var d="["+Array.prototype.slice.call(l.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",f,String.fromCharCode.apply(String,l.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,l.typeDefault)}r("}")}var h=!1;for(c=0;c<t.length;++c){l=t[c];var p=e._fieldsArray.indexOf(l);f=o.safeProp(l.name);l.map?(h||(h=!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,l,p,f+"[ks2[j]]")("}")):l.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,l,p,f+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",f,l.name),a(r,l,p,f),l.partOf&&r("if(o.oneofs)")("d%s=%j",o.safeProp(l.partOf.name),l.name)),r("}")}return r("return d")}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/converter.js"}],[5086,{"./enum":5088,"./types":5106,"./util":5107},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(),u=a.resolvedType instanceof n?"int32":a.type,c="m"+o.safeProp(a.name);t("case %i: {",a.id),a.map?(t("if(%s===util.emptyObject)",c)("%s={}",c)("var c2 = r.uint32()+r.pos"),i.defaults[a.keyType]!==undefined?t("k=%j",i.defaults[a.keyType]):t("k=null"),i.defaults[u]!==undefined?t("value=%j",i.defaults[u]):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[u]===undefined?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),i.long[a.keyType]!==undefined?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):t("%s[k]=value",c)):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),i.packed[u]!==undefined&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",c,u)("}else"),i.basic[u]===undefined?t(a.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",c,r):t("%s.push(r.%s())",c,u)):i.basic[u]===undefined?t(a.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",c,r):t("%s=r.%s()",c,u),t("break")("}")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var l=e._fieldsArray[r];l.required&&t("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",s(l))}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"}],[5087,{"./enum":5088,"./types":5106,"./util":5107},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),u=0;u<a.length;++u){var c=a[u].resolve(),l=e._fieldsArray.indexOf(c),f=c.resolvedType instanceof n?"int32":c.type,d=i.basic[f];t="m"+o.safeProp(c.name),c.map?(r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",t,c.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",t)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(c.id<<3|2)>>>0,8|i.mapKey[c.keyType],c.keyType),d===undefined?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|d,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&i.packed[f]!==undefined?r("w.uint32(%i).fork()",(c.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,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|d)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),d===undefined?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.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"}],[5088,{"./namespace":5095,"./object":5096,"./util":5107},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),u=0;u<a.length;++u)"number"==typeof t[a[u]]&&(this.valuesById[this.values[a[u]]=t[a[u]]]=a[u])}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"}],[5089,{"./enum":5088,"./object":5096,"./types":5106,"./util":5107},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=c;var n=e("./object");((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var i,o=e("./enum"),s=e("./types"),a=e("./util"),u=/^required|optional|repeated$/;function c(e,t,r,i,o,c,l){if(a.isObject(i)?(l=o,c=i,i=o=undefined):a.isObject(o)&&(l=c,c=o,o=undefined),n.call(this,e,c),!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&&!u.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=l}c.fromJSON=function(e,t){return new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(c.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),c.prototype.setOption=function(e,t,r){return"packed"===e&&(this._packed=null),n.prototype.setOption.call(this,e,t,r)},c.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])},c.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)},c.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 c(o,e,t,r,{default:n}))}},c._configure=function(e){i=e}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/field.js"}],[5090,{"./converter":5085,"./decoder":5086,"./encoder":5087,"./enum":5088,"./field":5089,"./index-minimal":5091,"./mapfield":5092,"./message":5093,"./method":5094,"./namespace":5095,"./object":5096,"./oneof":5097,"./root":5100,"./service":5104,"./type":5105,"./types":5106,"./util":5107,"./verifier":5110,"./wrappers":5111},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"}],[5091,{"./reader":5098,"./reader_buffer":5099,"./roots":5101,"./rpc":5102,"./util/minimal":5109,"./writer":5112,"./writer_buffer":5113},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"}],[5092,{"./field":5089,"./types":5106,"./util":5107},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"}],[5093,{"./util/minimal":5109},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"}],[5094,{"./object":5096,"./util":5107},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,u,c,l){if(i.isObject(s)?(u=s,s=a=undefined):i.isObject(a)&&(u=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,u),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=c,this.parsedOptions=l}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"}],[5095,{"./field":5089,"./object":5096,"./oneof":5097,"./util":5107},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"),u=e("./util"),c=e("./oneof");function l(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=l,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=u.toArray(this.nested))}}),f.prototype.toJSON=function(e){return u.toObject(["options",this.options,"nested",l(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 c||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(u.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]),u.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"}],[5096,{"./util":5107},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"}],[5097,{"./field":5089,"./object":5096,"./util":5107},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"}],[5098,{"./util/minimal":5109},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=u;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 u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return i.Buffer?function(e){return(u.create=function(e){return i.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};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 h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw a(this,8);return new o(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.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},u.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},u.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)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.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},u.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},u._configure=function(e){n=e,u.create=f(),n._configure();var t=i.Long?"toLong":"toNumber";i.merge(u.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 p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}}}},{package:"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",file:"node_modules/protobufjs/src/reader.js"}],[5099,{"./reader":5098,"./util/minimal":5109},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"}],[51,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getSnapInterfaceControllerMessenger=function(e){return e.getRestricted({name:"SnapInterfaceController",allowedActions:["PhishingController:maybeUpdateState","PhishingController:testOrigin","ApprovalController:hasRequest","ApprovalController:acceptRequest","SnapController:get","MultichainAssetsController:getState","AccountsController:getSelectedMultichainAccount","AccountsController:getAccountByAddress","AccountsController:listMultichainAccounts"],allowedEvents:["NotificationServicesController:notificationsListUpdated"]})}}}},{package:"$root$",file:"app/scripts/controller-init/messengers/snaps/snap-interface-controller-messenger.ts"}],[5100,{"./enum":5088,"./field":5089,"./namespace":5095,"./oneof":5097,"./util":5107},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"),u=e("./enum"),c=e("./oneof"),l=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=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=undefined);var i=this;if(!n)return l.asPromise(e,i,t,r);var a=n===d;function u(e,t){if(n){if(a)throw e;var r=n;n=null,r(e,t)}}function c(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(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){o.filename=e;var n,s=o(t,i,r),f=0;if(s.imports)for(;f<s.imports.length;++f)(n=c(s.imports[f])||i.resolvePath(e,s.imports[f]))&&h(n);if(s.weakImports)for(f=0;f<s.weakImports.length;++f)(n=c(s.weakImports[f])||i.resolvePath(e,s.weakImports[f]))&&h(n,!0)}else i.setOptions(t.options).addJSON(t.nested)}catch(e){u(e)}a||p||u(null,i)}function h(e,t){if(e=c(e)||e,!(i.files.indexOf(e)>-1))if(i.files.push(e),e in s)a?f(e,s[e]):(++p,setTimeout((function(){--p,f(e,s[e])})));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++p,i.fetch(e,(function(r,o){--p,n&&(r?t?p||u(null,i):u(r):f(e,o))}))}var p=0;l.isString(t)&&(t=[t]);for(var b,m=0;m<t.length;++m)(b=i.resolvePath("",t[m]))&&h(b);return a?i:(p||u(null,i),undefined)},f.prototype.loadSync=function(e,t){if(!l.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 h=/^[A-Z]/;function p(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||p(0,e)||this.deferred.push(e);else if(e instanceof u)h.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof c)){if(e instanceof i)for(var t=0;t<this.deferred.length;)p(0,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);h.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 u)h.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]);h.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"}],[5101,{},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"}],[5102,{"./rpc/service":5103},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"}],[5103,{"../util/minimal":5109},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"}],[5104,{"./method":5094,"./namespace":5095,"./rpc":5102,"./util":5107},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 u(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,u(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,u(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 u=o.lcFirst((n=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"");i[u]=o.codegen(["r","c"],o.isReserved(u)?u+"_":u)("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"}],[5105,{"./converter":5085,"./decoder":5086,"./encoder":5087,"./enum":5088,"./field":5089,"./mapfield":5092,"./message":5093,"./namespace":5095,"./oneof":5097,"./reader":5098,"./service":5104,"./util":5107,"./verifier":5110,"./wrappers":5111,"./writer":5112},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=v;var n=e("./namespace");((v.prototype=Object.create(n.prototype)).constructor=v).className="Type";var i=e("./enum"),o=e("./oneof"),s=e("./field"),a=e("./mapfield"),u=e("./service"),c=e("./message"),l=e("./reader"),f=e("./writer"),d=e("./util"),h=e("./encoder"),p=e("./decoder"),b=e("./verifier"),m=e("./converter"),g=e("./wrappers");function v(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 y(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(v.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=v.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof c||((e.prototype=new c).constructor=e,d.merge(e.prototype,t)),e.$type=e.prototype.$type=this,d.merge(e,c,!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)}}}),v.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]]")},v.fromJSON=function(e,t){var r=new v(e,t.options);r.extensions=t.extensions,r.reserved=t.reserved;for(var c=Object.keys(t.fields),l=0;l<c.length;++l)r.add((void 0!==t.fields[c[l]].keyType?a.fromJSON:s.fromJSON)(c[l],t.fields[c[l]]));if(t.oneofs)for(c=Object.keys(t.oneofs),l=0;l<c.length;++l)r.add(o.fromJSON(c[l],t.oneofs[c[l]]));if(t.nested)for(c=Object.keys(t.nested),l=0;l<c.length;++l){var f=t.nested[c[l]];r.add((f.id!==undefined?s.fromJSON:f.fields!==undefined?v.fromJSON:f.values!==undefined?i.fromJSON:f.methods!==undefined?u.fromJSON:n.fromJSON)(c[l],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},v.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])},v.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)},v.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},v.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),y(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),y(this)):n.prototype.add.call(this,e)},v.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),y(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),y(this)}return n.prototype.remove.call(this,e)},v.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},v.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},v.prototype.create=function(e){return new this.ctor(e)},v.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=h(this)({Writer:f,types:t,util:d}),this.decode=p(this)({Reader:l,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=g[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},v.prototype.encode=function(e,t){return this.setup().encode(e,t)},v.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},v.prototype.decode=function(e,t){return this.setup().decode(e,t)},v.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},v.prototype.verify=function(e){return this.setup().verify(e)},v.prototype.fromObject=function(e){return this.setup().fromObject(e)},v.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},v.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"}],[5106,{"./util":5107},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"}],[5107,{"./enum":5088,"./root":5100,"./roots":5101,"./type":5105,"./util/minimal":5109,"@protobufjs/codegen":3028,"@protobufjs/fetch":3030,"@protobufjs/path":3033},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,u=/"/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(u,'\\"')+'"]':"."+e},o.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var c=/_([a-z])/g;o.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(c,(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 l=0;o.decorateEnum=function(t){if(t.$type)return t.$type;i||(i=e("./enum"));var r=new i("Enum"+l++,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"}],[5108,{"../util/minimal":5109},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"}],[5109,{"./longbits":5108,"@protobufjs/aspromise":3026,"@protobufjs/base64":3027,"@protobufjs/eventemitter":3029,"@protobufjs/float":3031,"@protobufjs/inquire":3032,"@protobufjs/pool":3034,"@protobufjs/utf8":3035},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"}],[5110,{"./enum":5088,"./util":5107},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 u=0;u<e.fieldsArray.length;++u){var c=e._fieldsArray[u].resolve(),l="m"+i.safeProp(c.name);if(c.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",l,c.name),c.map)t("if(!util.isObject(%s))",l)("return%j",o(c,"object"))("var k=Object.keys(%s)",l)("for(var i=0;i<k.length;++i){"),a(t,c,"k[i]"),s(t,c,u,l+"[k[i]]")("}");else if(c.repeated)t("if(!Array.isArray(%s))",l)("return%j",o(c,"array"))("for(var i=0;i<%s.length;++i){",l),s(t,c,u,l+"[i]")("}");else{if(c.partOf){var f=i.safeProp(c.partOf.name);1===n[c.partOf.name]&&t("if(p%s===1)",f)("return%j",c.partOf.name+": multiple values"),n[c.partOf.name]=1,t("p%s=1",f)}s(t,c,u,l)}c.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"}],[5111,{"./message":5093},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"}],[5112,{"./util/minimal":5109},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 u(e,t,r){this.fn=e,this.len=t,this.next=undefined,this.val=r}function c(){}function l(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 u(c,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 h(e,t,r){t[r]=255&e}function p(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 u(e,t,r),this.len+=t,this},p.prototype=Object.create(u.prototype),p.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 p((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(h,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 g=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(h,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(g,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,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 u(c,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"}],[5113,{"./util/minimal":5109,"./writer":5112},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"}],[5128,{},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"}],[52,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getSnapsRegistryMessenger=function(e){return e.getRestricted({name:"SnapsRegistry",allowedEvents:[],allowedActions:[]})}}}},{package:"$root$",file:"app/scripts/controller-init/messengers/snaps/snaps-registry-messenger.ts"}],[5257,{"readable-stream":5256},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"}],[53,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getTransactionControllerInitMessenger=function(e){return e.getRestricted({name:"TransactionControllerInit",allowedEvents:["TransactionController:transactionApproved","TransactionController:transactionConfirmed","TransactionController:transactionDropped","TransactionController:transactionFailed","TransactionController:transactionNewSwapApproval","TransactionController:transactionNewSwap","TransactionController:transactionRejected","TransactionController:transactionSubmitted","TransactionController:postTransactionBalanceUpdated","TransactionController:unapprovedTransactionAdded","SmartTransactionsController:smartTransaction"],allowedActions:["ApprovalController:acceptRequest","ApprovalController:addRequest","ApprovalController:endFlow","ApprovalController:startFlow","ApprovalController:updateRequestState","InstitutionalSnapController:beforeCheckPendingTransactionHook","InstitutionalSnapController:publishHook","KeyringController:signEip7702Authorization","KeyringController:signTypedMessage","NetworkController:getEIP1559Compatibility","RemoteFeatureFlagController:getState","SwapsController:setApproveTxId","SwapsController:setTradeTxId"]})},r.getTransactionControllerMessenger=function(e){return e.getRestricted({name:"TransactionController",allowedActions:["AccountsController:getSelectedAccount","AccountsController:getState","ApprovalController:addRequest","KeyringController:signEip7702Authorization","NetworkController:findNetworkClientIdByChainId","NetworkController:getNetworkClientById","RemoteFeatureFlagController:getState"],allowedEvents:["NetworkController:stateChange"]})}}}},{package:"$root$",file:"app/scripts/controller-init/messengers/transaction-controller-messenger.ts"}],[5341,{},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"}],[5349,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++)t.push(n(e[r]));const r=h(...t);return h(s(r.length,192),r)}const t=g(e);return 1===t.length&&t[0]<128?t:h(s(t.length,128),t)}function i(e,t,r){if(r>e.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,r)}function o(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return f(l(e))}function s(e,t){if(e<56)return Uint8Array.from([e+t]);const r=b(e),n=b(t+55+r.length/2);return Uint8Array.from(d(n+r))}function a(e,t=!1){if(!e||0===e.length)return Uint8Array.from([]);const r=u(g(e));if(t)return r;if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function u(e){let t,r,n,s,a;const c=[],l=e[0];if(l<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(l<=183){if(t=l-127,n=128===l?Uint8Array.from([]):i(e,1,t),2===t&&n[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:n,remainder:e.slice(t)}}if(l<=191){if(r=l-182,e.length-1<r)throw new Error("invalid RLP: not enough bytes for string length");if(t=o(i(e,1,r)),t<=55)throw new Error("invalid RLP: expected string length to be greater than 55");return n=i(e,r,t+r),{data:n,remainder:e.slice(t+r)}}if(l<=247){for(t=l-191,s=i(e,1,t);s.length;)a=u(s),c.push(a.data),s=a.remainder;return{data:c,remainder:e.slice(t)}}{if(r=l-246,t=o(i(e,1,r)),t<56)throw new Error("invalid RLP: encoded list too short");const n=r+t;if(n>e.length)throw new Error("invalid RLP: total length is larger than the data");for(s=i(e,r,n);s.length;)a=u(s),c.push(a.data),s=a.remainder;return{data:c,remainder:e.slice(n)}}}Object.defineProperty(r,"__esModule",{value:!0}),r.utils=r.decode=r.encode=void 0,r.encode=n,r.decode=a;const c=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function l(e){let t="";for(let r=0;r<e.length;r++)t+=c[e[r]];return t}function f(e){const t=Number.parseInt(e,16);if(Number.isNaN(t))throw new Error("Invalid byte sequence");return t}function d(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r;t[r]=f(e.slice(n,n+2))}return t}function h(...e){if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r}function p(e){return(new TextEncoder).encode(e)}function b(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");const t=e.toString(16);return t.length%2?`0${t}`:t}function m(e){return e.length>=2&&"0"===e[0]&&"x"===e[1]}function g(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return m(e)?d((t="string"!=typeof(r=e)?r:m(r)?r.slice(2):r).length%2?`0${t}`:t):p(e);var t,r;if("number"==typeof e||"bigint"==typeof e)return e?d(b(e)):Uint8Array.from([]);if(null===e||e===undefined)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}r.utils={bytesToHex:l,concatBytes:h,hexToBytes:d,utf8ToBytes:p};const v={encode:n,decode:a};r.default=v}}},{package:"eth-lattice-keyring>rlp",file:"node_modules/rlp/dist/index.js"}],[5350,{"./internal/AsyncSubject":5351,"./internal/BehaviorSubject":5352,"./internal/Notification":5353,"./internal/Observable":5355,"./internal/ReplaySubject":5356,"./internal/Scheduler":5357,"./internal/Subject":5358,"./internal/Subscriber":5359,"./internal/Subscription":5360,"./internal/config":5361,"./internal/firstValueFrom":5362,"./internal/lastValueFrom":5363,"./internal/observable/ConnectableObservable":5364,"./internal/observable/bindCallback":5365,"./internal/observable/bindNodeCallback":5367,"./internal/observable/combineLatest":5368,"./internal/observable/concat":5369,"./internal/observable/connectable":5370,"./internal/observable/defer":5371,"./internal/observable/dom/animationFrames":5372,"./internal/observable/empty":5373,"./internal/observable/forkJoin":5374,"./internal/observable/from":5375,"./internal/observable/fromEvent":5376,"./internal/observable/fromEventPattern":5377,"./internal/observable/generate":5379,"./internal/observable/iif":5380,"./internal/observable/interval":5382,"./internal/observable/merge":5383,"./internal/observable/never":5384,"./internal/observable/of":5385,"./internal/observable/onErrorResumeNext":5386,"./internal/observable/pairs":5387,"./internal/observable/partition":5388,"./internal/observable/race":5389,"./internal/observable/range":5390,"./internal/observable/throwError":5391,"./internal/observable/timer":5392,"./internal/observable/using":5393,"./internal/observable/zip":5394,"./internal/operators/audit":5396,"./internal/operators/auditTime":5397,"./internal/operators/buffer":5398,"./internal/operators/bufferCount":5399,"./internal/operators/bufferTime":5400,"./internal/operators/bufferToggle":5401,"./internal/operators/bufferWhen":5402,"./internal/operators/catchError":5403,"./internal/operators/combineAll":5404,"./internal/operators/combineLatestAll":5406,"./internal/operators/combineLatestWith":5407,"./internal/operators/concatAll":5409,"./internal/operators/concatMap":5410,"./internal/operators/concatMapTo":5411,"./internal/operators/concatWith":5412,"./internal/operators/connect":5413,"./internal/operators/count":5414,"./internal/operators/debounce":5415,"./internal/operators/debounceTime":5416,"./internal/operators/defaultIfEmpty":5417,"./internal/operators/delay":5418,"./internal/operators/delayWhen":5419,"./internal/operators/dematerialize":5420,"./internal/operators/distinct":5421,"./internal/operators/distinctUntilChanged":5422,"./internal/operators/distinctUntilKeyChanged":5423,"./internal/operators/elementAt":5424,"./internal/operators/endWith":5425,"./internal/operators/every":5426,"./internal/operators/exhaust":5427,"./internal/operators/exhaustAll":5428,"./internal/operators/exhaustMap":5429,"./internal/operators/expand":5430,"./internal/operators/filter":5431,"./internal/operators/finalize":5432,"./internal/operators/find":5433,"./internal/operators/findIndex":5434,"./internal/operators/first":5435,"./internal/operators/flatMap":5436,"./internal/operators/groupBy":5437,"./internal/operators/ignoreElements":5438,"./internal/operators/isEmpty":5439,"./internal/operators/last":5441,"./internal/operators/map":5442,"./internal/operators/mapTo":5443,"./internal/operators/materialize":5444,"./internal/operators/max":5445,"./internal/operators/mergeAll":5447,"./internal/operators/mergeMap":5449,"./internal/operators/mergeMapTo":5450,"./internal/operators/mergeScan":5451,"./internal/operators/mergeWith":5452,"./internal/operators/min":5453,"./internal/operators/multicast":5454,"./internal/operators/observeOn":5455,"./internal/operators/onErrorResumeNextWith":5456,"./internal/operators/pairwise":5457,"./internal/operators/pluck":5458,"./internal/operators/publish":5459,"./internal/operators/publishBehavior":5460,"./internal/operators/publishLast":5461,"./internal/operators/publishReplay":5462,"./internal/operators/raceWith":5463,"./internal/operators/reduce":5464,"./internal/operators/refCount":5465,"./internal/operators/repeat":5466,"./internal/operators/repeatWhen":5467,"./internal/operators/retry":5468,"./internal/operators/retryWhen":5469,"./internal/operators/sample":5470,"./internal/operators/sampleTime":5471,"./internal/operators/scan":5472,"./internal/operators/sequenceEqual":5474,"./internal/operators/share":5475,"./internal/operators/shareReplay":5476,"./internal/operators/single":5477,"./internal/operators/skip":5478,"./internal/operators/skipLast":5479,"./internal/operators/skipUntil":5480,"./internal/operators/skipWhile":5481,"./internal/operators/startWith":5482,"./internal/operators/subscribeOn":5483,"./internal/operators/switchAll":5484,"./internal/operators/switchMap":5485,"./internal/operators/switchMapTo":5486,"./internal/operators/switchScan":5487,"./internal/operators/take":5488,"./internal/operators/takeLast":5489,"./internal/operators/takeUntil":5490,"./internal/operators/takeWhile":5491,"./internal/operators/tap":5492,"./internal/operators/throttle":5493,"./internal/operators/throttleTime":5494,"./internal/operators/throwIfEmpty":5495,"./internal/operators/timeInterval":5496,"./internal/operators/timeout":5497,"./internal/operators/timeoutWith":5498,"./internal/operators/timestamp":5499,"./internal/operators/toArray":5500,"./internal/operators/window":5501,"./internal/operators/windowCount":5502,"./internal/operators/windowTime":5503,"./internal/operators/windowToggle":5504,"./internal/operators/windowWhen":5505,"./internal/operators/withLatestFrom":5506,"./internal/operators/zipAll":5508,"./internal/operators/zipWith":5509,"./internal/scheduled/scheduled":5516,"./internal/scheduler/VirtualTimeScheduler":5526,"./internal/scheduler/animationFrame":5527,"./internal/scheduler/asap":5529,"./internal/scheduler/async":5530,"./internal/scheduler/queue":5535,"./internal/symbol/observable":5538,"./internal/types":5539,"./internal/util/ArgumentOutOfRangeError":5540,"./internal/util/EmptyError":5541,"./internal/util/NotFoundError":5543,"./internal/util/ObjectUnsubscribedError":5544,"./internal/util/SequenceError":5545,"./internal/util/UnsubscriptionError":5546,"./internal/util/identity":5555,"./internal/util/isObservable":5562,"./internal/util/noop":5568,"./internal/util/pipe":5570},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 u=e("./internal/observable/dom/animationFrames");Object.defineProperty(r,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var c=e("./internal/Subject");Object.defineProperty(r,"Subject",{enumerable:!0,get:function(){return c.Subject}});var l=e("./internal/BehaviorSubject");Object.defineProperty(r,"BehaviorSubject",{enumerable:!0,get:function(){return l.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 h=e("./internal/scheduler/asap");Object.defineProperty(r,"asap",{enumerable:!0,get:function(){return h.asap}}),Object.defineProperty(r,"asapScheduler",{enumerable:!0,get:function(){return h.asapScheduler}});var p=e("./internal/scheduler/async");Object.defineProperty(r,"async",{enumerable:!0,get:function(){return p.async}}),Object.defineProperty(r,"asyncScheduler",{enumerable:!0,get:function(){return p.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 g=e("./internal/scheduler/VirtualTimeScheduler");Object.defineProperty(r,"VirtualTimeScheduler",{enumerable:!0,get:function(){return g.VirtualTimeScheduler}}),Object.defineProperty(r,"VirtualAction",{enumerable:!0,get:function(){return g.VirtualAction}});var v=e("./internal/Scheduler");Object.defineProperty(r,"Scheduler",{enumerable:!0,get:function(){return v.Scheduler}});var y=e("./internal/Subscription");Object.defineProperty(r,"Subscription",{enumerable:!0,get:function(){return y.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 T=e("./internal/util/identity");Object.defineProperty(r,"identity",{enumerable:!0,get:function(){return T.identity}});var S=e("./internal/util/isObservable");Object.defineProperty(r,"isObservable",{enumerable:!0,get:function(){return S.isObservable}});var x=e("./internal/lastValueFrom");Object.defineProperty(r,"lastValueFrom",{enumerable:!0,get:function(){return x.lastValueFrom}});var E=e("./internal/firstValueFrom");Object.defineProperty(r,"firstValueFrom",{enumerable:!0,get:function(){return E.firstValueFrom}});var O=e("./internal/util/ArgumentOutOfRangeError");Object.defineProperty(r,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return O.ArgumentOutOfRangeError}});var A=e("./internal/util/EmptyError");Object.defineProperty(r,"EmptyError",{enumerable:!0,get:function(){return A.EmptyError}});var P=e("./internal/util/NotFoundError");Object.defineProperty(r,"NotFoundError",{enumerable:!0,get:function(){return P.NotFoundError}});var I=e("./internal/util/ObjectUnsubscribedError");Object.defineProperty(r,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return I.ObjectUnsubscribedError}});var C=e("./internal/util/SequenceError");Object.defineProperty(r,"SequenceError",{enumerable:!0,get:function(){return C.SequenceError}});var R=e("./internal/operators/timeout");Object.defineProperty(r,"TimeoutError",{enumerable:!0,get:function(){return R.TimeoutError}});var B=e("./internal/util/UnsubscriptionError");Object.defineProperty(r,"UnsubscriptionError",{enumerable:!0,get:function(){return B.UnsubscriptionError}});var M=e("./internal/observable/bindCallback");Object.defineProperty(r,"bindCallback",{enumerable:!0,get:function(){return M.bindCallback}});var L=e("./internal/observable/bindNodeCallback");Object.defineProperty(r,"bindNodeCallback",{enumerable:!0,get:function(){return L.bindNodeCallback}});var N=e("./internal/observable/combineLatest");Object.defineProperty(r,"combineLatest",{enumerable:!0,get:function(){return N.combineLatest}});var D=e("./internal/observable/concat");Object.defineProperty(r,"concat",{enumerable:!0,get:function(){return D.concat}});var F=e("./internal/observable/connectable");Object.defineProperty(r,"connectable",{enumerable:!0,get:function(){return F.connectable}});var U=e("./internal/observable/defer");Object.defineProperty(r,"defer",{enumerable:!0,get:function(){return U.defer}});var H=e("./internal/observable/empty");Object.defineProperty(r,"empty",{enumerable:!0,get:function(){return H.empty}});var G=e("./internal/observable/forkJoin");Object.defineProperty(r,"forkJoin",{enumerable:!0,get:function(){return G.forkJoin}});var z=e("./internal/observable/from");Object.defineProperty(r,"from",{enumerable:!0,get:function(){return z.from}});var W=e("./internal/observable/fromEvent");Object.defineProperty(r,"fromEvent",{enumerable:!0,get:function(){return W.fromEvent}});var q=e("./internal/observable/fromEventPattern");Object.defineProperty(r,"fromEventPattern",{enumerable:!0,get:function(){return q.fromEventPattern}});var V=e("./internal/observable/generate");Object.defineProperty(r,"generate",{enumerable:!0,get:function(){return V.generate}});var K=e("./internal/observable/iif");Object.defineProperty(r,"iif",{enumerable:!0,get:function(){return K.iif}});var $=e("./internal/observable/interval");Object.defineProperty(r,"interval",{enumerable:!0,get:function(){return $.interval}});var Y=e("./internal/observable/merge");Object.defineProperty(r,"merge",{enumerable:!0,get:function(){return Y.merge}});var J=e("./internal/observable/never");Object.defineProperty(r,"never",{enumerable:!0,get:function(){return J.never}});var X=e("./internal/observable/of");Object.defineProperty(r,"of",{enumerable:!0,get:function(){return X.of}});var Q=e("./internal/observable/onErrorResumeNext");Object.defineProperty(r,"onErrorResumeNext",{enumerable:!0,get:function(){return Q.onErrorResumeNext}});var Z=e("./internal/observable/pairs");Object.defineProperty(r,"pairs",{enumerable:!0,get:function(){return Z.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 ue=e("./internal/observable/empty");Object.defineProperty(r,"EMPTY",{enumerable:!0,get:function(){return ue.EMPTY}});var ce=e("./internal/observable/never");Object.defineProperty(r,"NEVER",{enumerable:!0,get:function(){return ce.NEVER}}),i(e("./internal/types"),r);var le=e("./internal/config");Object.defineProperty(r,"config",{enumerable:!0,get:function(){return le.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 he=e("./internal/operators/buffer");Object.defineProperty(r,"buffer",{enumerable:!0,get:function(){return he.buffer}});var pe=e("./internal/operators/bufferCount");Object.defineProperty(r,"bufferCount",{enumerable:!0,get:function(){return pe.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 ge=e("./internal/operators/bufferWhen");Object.defineProperty(r,"bufferWhen",{enumerable:!0,get:function(){return ge.bufferWhen}});var ve=e("./internal/operators/catchError");Object.defineProperty(r,"catchError",{enumerable:!0,get:function(){return ve.catchError}});var ye=e("./internal/operators/combineAll");Object.defineProperty(r,"combineAll",{enumerable:!0,get:function(){return ye.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 Te=e("./internal/operators/concatMapTo");Object.defineProperty(r,"concatMapTo",{enumerable:!0,get:function(){return Te.concatMapTo}});var Se=e("./internal/operators/concatWith");Object.defineProperty(r,"concatWith",{enumerable:!0,get:function(){return Se.concatWith}});var xe=e("./internal/operators/connect");Object.defineProperty(r,"connect",{enumerable:!0,get:function(){return xe.connect}});var Ee=e("./internal/operators/count");Object.defineProperty(r,"count",{enumerable:!0,get:function(){return Ee.count}});var Oe=e("./internal/operators/debounce");Object.defineProperty(r,"debounce",{enumerable:!0,get:function(){return Oe.debounce}});var Ae=e("./internal/operators/debounceTime");Object.defineProperty(r,"debounceTime",{enumerable:!0,get:function(){return Ae.debounceTime}});var Pe=e("./internal/operators/defaultIfEmpty");Object.defineProperty(r,"defaultIfEmpty",{enumerable:!0,get:function(){return Pe.defaultIfEmpty}});var Ie=e("./internal/operators/delay");Object.defineProperty(r,"delay",{enumerable:!0,get:function(){return Ie.delay}});var Ce=e("./internal/operators/delayWhen");Object.defineProperty(r,"delayWhen",{enumerable:!0,get:function(){return Ce.delayWhen}});var Re=e("./internal/operators/dematerialize");Object.defineProperty(r,"dematerialize",{enumerable:!0,get:function(){return Re.dematerialize}});var Be=e("./internal/operators/distinct");Object.defineProperty(r,"distinct",{enumerable:!0,get:function(){return Be.distinct}});var Me=e("./internal/operators/distinctUntilChanged");Object.defineProperty(r,"distinctUntilChanged",{enumerable:!0,get:function(){return Me.distinctUntilChanged}});var Le=e("./internal/operators/distinctUntilKeyChanged");Object.defineProperty(r,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Le.distinctUntilKeyChanged}});var Ne=e("./internal/operators/elementAt");Object.defineProperty(r,"elementAt",{enumerable:!0,get:function(){return Ne.elementAt}});var De=e("./internal/operators/endWith");Object.defineProperty(r,"endWith",{enumerable:!0,get:function(){return De.endWith}});var Fe=e("./internal/operators/every");Object.defineProperty(r,"every",{enumerable:!0,get:function(){return Fe.every}});var Ue=e("./internal/operators/exhaust");Object.defineProperty(r,"exhaust",{enumerable:!0,get:function(){return Ue.exhaust}});var He=e("./internal/operators/exhaustAll");Object.defineProperty(r,"exhaustAll",{enumerable:!0,get:function(){return He.exhaustAll}});var Ge=e("./internal/operators/exhaustMap");Object.defineProperty(r,"exhaustMap",{enumerable:!0,get:function(){return Ge.exhaustMap}});var ze=e("./internal/operators/expand");Object.defineProperty(r,"expand",{enumerable:!0,get:function(){return ze.expand}});var We=e("./internal/operators/filter");Object.defineProperty(r,"filter",{enumerable:!0,get:function(){return We.filter}});var qe=e("./internal/operators/finalize");Object.defineProperty(r,"finalize",{enumerable:!0,get:function(){return qe.finalize}});var Ve=e("./internal/operators/find");Object.defineProperty(r,"find",{enumerable:!0,get:function(){return Ve.find}});var Ke=e("./internal/operators/findIndex");Object.defineProperty(r,"findIndex",{enumerable:!0,get:function(){return Ke.findIndex}});var $e=e("./internal/operators/first");Object.defineProperty(r,"first",{enumerable:!0,get:function(){return $e.first}});var Ye=e("./internal/operators/groupBy");Object.defineProperty(r,"groupBy",{enumerable:!0,get:function(){return Ye.groupBy}});var Je=e("./internal/operators/ignoreElements");Object.defineProperty(r,"ignoreElements",{enumerable:!0,get:function(){return Je.ignoreElements}});var Xe=e("./internal/operators/isEmpty");Object.defineProperty(r,"isEmpty",{enumerable:!0,get:function(){return Xe.isEmpty}});var Qe=e("./internal/operators/last");Object.defineProperty(r,"last",{enumerable:!0,get:function(){return Qe.last}});var Ze=e("./internal/operators/map");Object.defineProperty(r,"map",{enumerable:!0,get:function(){return Ze.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 ut=e("./internal/operators/mergeWith");Object.defineProperty(r,"mergeWith",{enumerable:!0,get:function(){return ut.mergeWith}});var ct=e("./internal/operators/min");Object.defineProperty(r,"min",{enumerable:!0,get:function(){return ct.min}});var lt=e("./internal/operators/multicast");Object.defineProperty(r,"multicast",{enumerable:!0,get:function(){return lt.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 ht=e("./internal/operators/pairwise");Object.defineProperty(r,"pairwise",{enumerable:!0,get:function(){return ht.pairwise}});var pt=e("./internal/operators/pluck");Object.defineProperty(r,"pluck",{enumerable:!0,get:function(){return pt.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 gt=e("./internal/operators/publishLast");Object.defineProperty(r,"publishLast",{enumerable:!0,get:function(){return gt.publishLast}});var vt=e("./internal/operators/publishReplay");Object.defineProperty(r,"publishReplay",{enumerable:!0,get:function(){return vt.publishReplay}});var yt=e("./internal/operators/raceWith");Object.defineProperty(r,"raceWith",{enumerable:!0,get:function(){return yt.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 Tt=e("./internal/operators/retryWhen");Object.defineProperty(r,"retryWhen",{enumerable:!0,get:function(){return Tt.retryWhen}});var St=e("./internal/operators/refCount");Object.defineProperty(r,"refCount",{enumerable:!0,get:function(){return St.refCount}});var xt=e("./internal/operators/sample");Object.defineProperty(r,"sample",{enumerable:!0,get:function(){return xt.sample}});var Et=e("./internal/operators/sampleTime");Object.defineProperty(r,"sampleTime",{enumerable:!0,get:function(){return Et.sampleTime}});var Ot=e("./internal/operators/scan");Object.defineProperty(r,"scan",{enumerable:!0,get:function(){return Ot.scan}});var At=e("./internal/operators/sequenceEqual");Object.defineProperty(r,"sequenceEqual",{enumerable:!0,get:function(){return At.sequenceEqual}});var Pt=e("./internal/operators/share");Object.defineProperty(r,"share",{enumerable:!0,get:function(){return Pt.share}});var It=e("./internal/operators/shareReplay");Object.defineProperty(r,"shareReplay",{enumerable:!0,get:function(){return It.shareReplay}});var Ct=e("./internal/operators/single");Object.defineProperty(r,"single",{enumerable:!0,get:function(){return Ct.single}});var Rt=e("./internal/operators/skip");Object.defineProperty(r,"skip",{enumerable:!0,get:function(){return Rt.skip}});var Bt=e("./internal/operators/skipLast");Object.defineProperty(r,"skipLast",{enumerable:!0,get:function(){return Bt.skipLast}});var Mt=e("./internal/operators/skipUntil");Object.defineProperty(r,"skipUntil",{enumerable:!0,get:function(){return Mt.skipUntil}});var Lt=e("./internal/operators/skipWhile");Object.defineProperty(r,"skipWhile",{enumerable:!0,get:function(){return Lt.skipWhile}});var Nt=e("./internal/operators/startWith");Object.defineProperty(r,"startWith",{enumerable:!0,get:function(){return Nt.startWith}});var Dt=e("./internal/operators/subscribeOn");Object.defineProperty(r,"subscribeOn",{enumerable:!0,get:function(){return Dt.subscribeOn}});var Ft=e("./internal/operators/switchAll");Object.defineProperty(r,"switchAll",{enumerable:!0,get:function(){return Ft.switchAll}});var Ut=e("./internal/operators/switchMap");Object.defineProperty(r,"switchMap",{enumerable:!0,get:function(){return Ut.switchMap}});var Ht=e("./internal/operators/switchMapTo");Object.defineProperty(r,"switchMapTo",{enumerable:!0,get:function(){return Ht.switchMapTo}});var Gt=e("./internal/operators/switchScan");Object.defineProperty(r,"switchScan",{enumerable:!0,get:function(){return Gt.switchScan}});var zt=e("./internal/operators/take");Object.defineProperty(r,"take",{enumerable:!0,get:function(){return zt.take}});var Wt=e("./internal/operators/takeLast");Object.defineProperty(r,"takeLast",{enumerable:!0,get:function(){return Wt.takeLast}});var qt=e("./internal/operators/takeUntil");Object.defineProperty(r,"takeUntil",{enumerable:!0,get:function(){return qt.takeUntil}});var Vt=e("./internal/operators/takeWhile");Object.defineProperty(r,"takeWhile",{enumerable:!0,get:function(){return Vt.takeWhile}});var Kt=e("./internal/operators/tap");Object.defineProperty(r,"tap",{enumerable:!0,get:function(){return Kt.tap}});var $t=e("./internal/operators/throttle");Object.defineProperty(r,"throttle",{enumerable:!0,get:function(){return $t.throttle}});var Yt=e("./internal/operators/throttleTime");Object.defineProperty(r,"throttleTime",{enumerable:!0,get:function(){return Yt.throttleTime}});var Jt=e("./internal/operators/throwIfEmpty");Object.defineProperty(r,"throwIfEmpty",{enumerable:!0,get:function(){return Jt.throwIfEmpty}});var Xt=e("./internal/operators/timeInterval");Object.defineProperty(r,"timeInterval",{enumerable:!0,get:function(){return Xt.timeInterval}});var Qt=e("./internal/operators/timeout");Object.defineProperty(r,"timeout",{enumerable:!0,get:function(){return Qt.timeout}});var Zt=e("./internal/operators/timeoutWith");Object.defineProperty(r,"timeoutWith",{enumerable:!0,get:function(){return Zt.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 ur=e("./internal/operators/zipAll");Object.defineProperty(r,"zipAll",{enumerable:!0,get:function(){return ur.zipAll}});var cr=e("./internal/operators/zipWith");Object.defineProperty(r,"zipWith",{enumerable:!0,get:function(){return cr.zipWith}})}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/index.js"}],[5351,{"./Subject":5358},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"}],[5352,{"./Subject":5358},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"}],[5353,{"./observable/empty":5373,"./observable/of":5385,"./observable/throwError":5391,"./util/isFunction":5559},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 u(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 u(e,t){var r,n,i,o=e,s=o.kind,a=o.value,u=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,u):null===(i=t.complete)||void 0===i||i.call(t)}r.Notification=a,r.observeNotification=u}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Notification.js"}],[5354,{},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"}],[5355,{"./Subscriber":5359,"./Subscription":5360,"./config":5361,"./symbol/observable":5538,"./util/errorContext":5553,"./util/isFunction":5559,"./util/pipe":5570},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"),u=e("./util/isFunction"),c=e("./util/errorContext"),l=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&&u.isFunction(e.next)&&u.isFunction(e.error)&&u.isFunction(e.complete)}(o)&&i.isSubscription(o)?e:new n.SafeSubscriber(e,t,r);return c.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=l}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Observable.js"}],[5356,{"./Subject":5358,"./scheduler/dateTimestampProvider":5531},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,u=1;u<n.length&&n[u]<=s;u+=2)a=u;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"}],[5357,{"./scheduler/dateTimestampProvider":5531},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"}],[5358,{"./Observable":5355,"./Subscription":5360,"./util/ObjectUnsubscribedError":5544,"./util/arrRemove":5550,"./util/errorContext":5553},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"),u=e("./util/ObjectUnsubscribedError"),c=e("./util/arrRemove"),l=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 u.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;l.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;l.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;l.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,c.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"}],[5359,{"./NotificationFactories":5354,"./Subscription":5360,"./config":5361,"./scheduler/timeoutProvider":5536,"./util/errorContext":5553,"./util/isFunction":5559,"./util/noop":5568,"./util/reportUnhandledError":5571},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"),u=e("./util/reportUnhandledError"),c=e("./util/noop"),l=e("./NotificationFactories"),f=e("./scheduler/timeoutProvider"),d=e("./util/errorContext"),h=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 g(e,t,r)},t.prototype.next=function(e){this.isStopped?y(l.nextNotification(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?y(l.errorNotification(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?y(l.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=h;var p=Function.prototype.bind;function b(e,t){return p.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){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),g=function(e){function t(t,r,n){var i,s,u=e.call(this)||this;o.isFunction(t)||!t?i={next:null!=t?t:undefined,error:null!=r?r:undefined,complete:null!=n?n:undefined}:u&&a.config.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return u.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 u.destination=new m(i),u}return i(t,e),t}(h);function v(e){a.config.useDeprecatedSynchronousErrorHandling?d.captureError(e):u.reportUnhandledError(e)}function y(e,t){var r=a.config.onStoppedNotification;r&&f.timeoutProvider.setTimeout((function(){return r(e,t)}))}r.SafeSubscriber=g,r.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function(e){throw e},complete:c.noop}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/Subscriber.js"}],[5360,{"./util/UnsubscriptionError":5546,"./util/arrRemove":5550,"./util/isFunction":5559},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"),u=e("./util/arrRemove"),c=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,u,c;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),h=d.next();!h.done;h=d.next()){h.value.remove(this)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}else f.remove(this);var p=this.initialTeardown;if(s.isFunction(p))try{p()}catch(e){c=e instanceof a.UnsubscriptionError?e.errors:[e]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var m=n(b),g=m.next();!g.done;g=m.next()){var v=g.value;try{l(v)}catch(e){c=null!=c?c:[],e instanceof a.UnsubscriptionError?c=o(o([],i(c)),i(e.errors)):c.push(e)}}}catch(e){r={error:e}}finally{try{g&&!g.done&&(u=m.return)&&u.call(m)}finally{if(r)throw r.error}}}if(c)throw new a.UnsubscriptionError(c)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)l(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)&&u.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&u.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function l(e){s.isFunction(e)?e():e.unsubscribe()}r.Subscription=c,r.EMPTY_SUBSCRIPTION=c.EMPTY,r.isSubscription=function(e){return e instanceof c||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"}],[5361,{},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"}],[5362,{"./Subscriber":5359,"./util/EmptyError":5541},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"}],[5363,{"./util/EmptyError":5541},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"}],[5364,{"../Observable":5355,"../Subscription":5360,"../operators/OperatorSubscriber":5395,"../operators/refCount":5465,"../util/lift":5566},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"),u=e("../operators/OperatorSubscriber"),c=e("../util/lift"),l=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,c.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(u.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=l}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js"}],[5365,{"./bindCallbackInternals":5366},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"}],[5366,{"../AsyncSubject":5351,"../Observable":5355,"../operators/observeOn":5455,"../operators/subscribeOn":5483,"../util/isScheduler":5565,"../util/mapOneOrManyArgs":5567},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"),u=e("../util/mapOneOrManyArgs"),c=e("../operators/observeOn"),l=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(u.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),c.observeOn(d))}:function(){for(var e=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=new l.AsyncSubject,c=!0;return new s.Observable((function(s){var a=u.subscribe(s);if(c){c=!1;var l=!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 u.error(n)}u.next(1<e.length?e:e[0]),f=!0,l&&u.complete()}])),f&&u.complete(),l=!0}return a}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js"}],[5367,{"./bindCallbackInternals":5366},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"}],[5368,{"../Observable":5355,"../operators/OperatorSubscriber":5395,"../util/args":5547,"../util/argsArgArrayOrObject":5548,"../util/createObject":5552,"../util/executeSchedule":5554,"../util/identity":5555,"../util/mapOneOrManyArgs":5567,"./from":5375},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"),u=e("../util/args"),c=e("../util/createObject"),l=e("../operators/OperatorSubscriber"),f=e("../util/executeSchedule");function d(e,t,r){return void 0===r&&(r=s.identity),function(n){h(t,(function(){for(var i=e.length,s=new Array(i),a=i,u=i,c=function(i){h(t,(function(){var c=o.from(e[i],t),f=!1;c.subscribe(l.createOperatorSubscriber(n,(function(e){s[i]=e,f||(f=!0,u--),u||n.next(r(s.slice()))}),(function(){--a||n.complete()})))}),n)},f=0;f<i;f++)c(f)}),n)}}function h(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=u.popScheduler(e),l=u.popResultSelector(e),f=i.argsArgArrayOrObject(e),h=f.args,p=f.keys;if(0===h.length)return o.from([],r);var b=new n.Observable(d(h,r,p?function(e){return c.createObject(p,e)}:s.identity));return l?b.pipe(a.mapOneOrManyArgs(l)):b},r.combineLatestInit=d}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"}],[5369,{"../operators/concatAll":5409,"../util/args":5547,"./from":5375},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"}],[5370,{"../Observable":5355,"../Subject":5358,"./defer":5371},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,u=void 0===a||a,c=n(),l=new i.Observable((function(e){return c.subscribe(e)}));return l.connect=function(){return r&&!r.closed||(r=o.defer((function(){return e})).subscribe(c),u&&r.add((function(){return c=n()}))),r},l}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/connectable.js"}],[5371,{"../Observable":5355,"./innerFrom":5381},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"}],[5372,{"../../Observable":5355,"../../scheduler/animationFrameProvider":5528,"../../scheduler/performanceTimestampProvider":5534},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"}],[5373,{"../Observable":5355},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"}],[5374,{"../Observable":5355,"../operators/OperatorSubscriber":5395,"../util/args":5547,"../util/argsArgArrayOrObject":5548,"../util/createObject":5552,"../util/mapOneOrManyArgs":5567,"./innerFrom":5381},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"),u=e("../util/mapOneOrManyArgs"),c=e("../util/createObject");r.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popResultSelector(e),l=i.argsArgArrayOrObject(e),f=l.args,d=l.keys,h=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?c.createObject(d,r):r),e.complete())})))},u=0;u<t;u++)s(u);else e.complete()}));return r?h.pipe(u.mapOneOrManyArgs(r)):h}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js"}],[5375,{"../scheduled/scheduled":5516,"./innerFrom":5381},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"}],[5376,{"../Observable":5355,"../observable/innerFrom":5381,"../operators/mergeMap":5449,"../util/isArrayLike":5556,"../util/isFunction":5559,"../util/mapOneOrManyArgs":5567},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"),u=e("../util/isFunction"),c=e("../util/mapOneOrManyArgs"),l=["addListener","removeListener"],f=["addEventListener","removeEventListener"],d=["on","off"];function h(e,t){return function(r){return function(n){return e[r](t,n)}}}r.fromEvent=function e(t,r,p,b){if(u.isFunction(p)&&(b=p,p=undefined),b)return e(t,r,p).pipe(c.mapOneOrManyArgs(b));var m=n(function(e){return u.isFunction(e.addEventListener)&&u.isFunction(e.removeEventListener)}(t)?f.map((function(e){return function(n){return t[e](r,n,p)}})):function(e){return u.isFunction(e.addListener)&&u.isFunction(e.removeListener)}(t)?l.map(h(t,r)):function(e){return u.isFunction(e.on)&&u.isFunction(e.off)}(t)?d.map(h(t,r)):[],2),g=m[0],v=m[1];if(!g&&a.isArrayLike(t))return s.mergeMap((function(t){return e(t,r,p)}))(i.innerFrom(t));if(!g)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 g(t),function(){return v(t)}}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js"}],[5377,{"../Observable":5355,"../util/isFunction":5559,"../util/mapOneOrManyArgs":5567},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"}],[5378,{"../Observable":5355},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"}],[5379,{"../scheduled/scheduleIterable":5512,"../util/identity":5555,"../util/isScheduler":5565,"./defer":5371},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,u,c){var l,f,d,h;function p(){var e;return n(this,(function(n){switch(n.label){case 0:e=h,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?(h=(l=e).initialState,t=l.condition,r=l.iterate,f=l.resultSelector,d=void 0===f?i.identity:f,c=l.scheduler):(h=e,!u||o.isScheduler(u)?(d=i.identity,c=u):d=u),s.defer(c?function(){return a.scheduleIterable(p(),c)}:p)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/generate.js"}],[5380,{"./defer":5371},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"}],[5381,{"../Observable":5355,"../symbol/observable":5538,"../util/isArrayLike":5556,"../util/isAsyncIterable":5557,"../util/isFunction":5559,"../util/isInteropObservable":5560,"../util/isIterable":5561,"../util/isPromise":5563,"../util/isReadableStreamLike":5564,"../util/reportUnhandledError":5571,"../util/throwUnobservableError":5572},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{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((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"),u=e("../util/isPromise"),c=e("../Observable"),l=e("../util/isInteropObservable"),f=e("../util/isAsyncIterable"),d=e("../util/throwUnobservableError"),h=e("../util/isIterable"),p=e("../util/isReadableStreamLike"),b=e("../util/isFunction"),m=e("../util/reportUnhandledError"),g=e("../symbol/observable");function v(e){return new c.Observable((function(t){var r=e[g.observable]();if(b.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function y(e){return new c.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function w(e){return new c.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 c.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 c.Observable((function(t){(function(e,t){var r,s,a,u;return n(this,void 0,void 0,(function(){var n,c;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 c=i.sent(),a={error:c},[3,11];case 6:return i.trys.push([6,,9,10]),s&&!s.done&&(u=r.return)?[4,u.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(p.readableStreamLikeToAsyncGenerator(e))}r.innerFrom=function(e){if(e instanceof c.Observable)return e;if(null!=e){if(l.isInteropObservable(e))return v(e);if(a.isArrayLike(e))return y(e);if(u.isPromise(e))return w(e);if(f.isAsyncIterable(e))return j(e);if(h.isIterable(e))return k(e);if(p.isReadableStreamLike(e))return _(e)}throw d.createInvalidObservableTypeError(e)},r.fromInteropObservable=v,r.fromArrayLike=y,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"}],[5382,{"../scheduler/async":5530,"./timer":5392},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"}],[5383,{"../operators/mergeAll":5447,"../util/args":5547,"./empty":5373,"./from":5375,"./innerFrom":5381},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),u=s.popNumber(e,Infinity),c=e;return c.length?1===c.length?i.innerFrom(c[0]):n.mergeAll(u)(a.from(c,r)):o.EMPTY}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/merge.js"}],[5384,{"../Observable":5355,"../util/noop":5568},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"}],[5385,{"../util/args":5547,"./from":5375},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"}],[5386,{"../Observable":5355,"../operators/OperatorSubscriber":5395,"../util/argsOrArgArray":5549,"../util/noop":5568,"./innerFrom":5381},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 u=new o.OperatorSubscriber(e,undefined,s.noop,s.noop);i.subscribe(u),u.add(n)}else e.complete()};n()}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js"}],[5387,{"./from":5375},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"}],[5388,{"../operators/filter":5431,"../util/not":5569,"./innerFrom":5381},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"}],[5389,{"../Observable":5355,"../operators/OperatorSubscriber":5395,"../util/argsOrArgArray":5549,"./innerFrom":5381},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"}],[5390,{"../Observable":5355,"./empty":5373},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"}],[5391,{"../Observable":5355,"../util/isFunction":5559},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"}],[5392,{"../Observable":5355,"../scheduler/async":5530,"../util/isDate":5558,"../util/isScheduler":5565},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"}],[5393,{"../Observable":5355,"./empty":5373,"./innerFrom":5381},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"}],[5394,{"../Observable":5355,"../operators/OperatorSubscriber":5395,"../util/args":5547,"../util/argsOrArgArray":5549,"./empty":5373,"./innerFrom":5381},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"),u=e("./empty"),c=e("../operators/OperatorSubscriber"),l=e("../util/args");r.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=l.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(c.createOperatorSubscriber(e,(function(s){if(t[a].push(s),t.every((function(e){return e.length}))){var u=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,i([],n(u))):u),t.some((function(e,t){return!e.length&&o[t]}))&&e.complete()}}),(function(){o[a]=!0,!t[a].length&&e.complete()})))},u=0;!e.closed&&u<f.length;u++)a(u);return function(){t=o=null}})):u.EMPTY}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/observable/zip.js"}],[5395,{"../Subscriber":5359},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"}],[5396,{"../observable/innerFrom":5381,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=!1,c=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var e=s;s=null,r.next(e)}u&&r.complete()},l=function(){a=null,u&&r.complete()};t.subscribe(o.createOperatorSubscriber(r,(function(t){n=!0,s=t,a||i.innerFrom(e(t)).subscribe(a=o.createOperatorSubscriber(r,c,l))}),(function(){u=!0,(!n||!a||a.closed)&&r.complete()})))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/audit.js"}],[5397,{"../observable/timer":5392,"../scheduler/async":5530,"./audit":5396},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"}],[5398,{"../observable/innerFrom":5381,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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"}],[5399,{"../util/arrRemove":5550,"../util/lift":5566,"./OperatorSubscriber":5395},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=[],u=0;r.subscribe(o.createOperatorSubscriber(i,(function(r){var o,c,l,f,d=null;u++%t==0&&a.push([]);try{for(var h=n(a),p=h.next();!p.done;p=h.next()){(g=p.value).push(r),e<=g.length&&(d=null!=d?d:[]).push(g)}}catch(e){o={error:e}}finally{try{p&&!p.done&&(c=h.return)&&c.call(h)}finally{if(o)throw o.error}}if(d)try{for(var b=n(d),m=b.next();!m.done;m=b.next()){var g=m.value;s.arrRemove(a,g),i.next(g)}}catch(e){l={error:e}}finally{try{m&&!m.done&&(f=b.return)&&f.call(b)}finally{if(l)throw l.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"}],[54,{"./multichain-assets-controller-init":55,"./multichain-balances-controller-init":56,"./multichain-network-controller-init":57,"./multichain-rates-assets-controller-init":59,"./multichain-transactions-controller-init":60},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"MultichainAssetsControllerInit",{enumerable:!0,get:function(){return n.MultichainAssetsControllerInit}}),Object.defineProperty(r,"MultichainAssetsRatesControllerInit",{enumerable:!0,get:function(){return a.MultichainAssetsRatesControllerInit}}),Object.defineProperty(r,"MultichainBalancesControllerInit",{enumerable:!0,get:function(){return i.MultichainBalancesControllerInit}}),Object.defineProperty(r,"MultichainNetworkControllerInit",{enumerable:!0,get:function(){return s.MultichainNetworkControllerInit}}),Object.defineProperty(r,"MultichainTransactionsControllerInit",{enumerable:!0,get:function(){return o.MultichainTransactionsControllerInit}});var n=e("./multichain-assets-controller-init"),i=e("./multichain-balances-controller-init"),o=e("./multichain-transactions-controller-init"),s=e("./multichain-network-controller-init"),a=e("./multichain-rates-assets-controller-init")}}},{package:"$root$",file:"app/scripts/controller-init/multichain/index.ts"}],[5400,{"../Subscription":5360,"../scheduler/async":5530,"../util/args":5547,"../util/arrRemove":5550,"../util/executeSchedule":5554,"../util/lift":5566,"./OperatorSubscriber":5395},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"),u=e("../scheduler/async"),c=e("../util/args"),l=e("../util/executeSchedule");r.bufferTime=function(e){for(var t,r,f=[],d=1;d<arguments.length;d++)f[d-1]=arguments[d];var h=null!==(t=c.popScheduler(f))&&void 0!==t?t:u.asyncScheduler,p=null!==(r=f[0])&&void 0!==r?r:null,b=f[1]||Infinity;return o.operate((function(t,r){var o=[],u=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),a.arrRemove(o,e),r.next(t),u&&f()},f=function(){if(o){var t=new i.Subscription;r.add(t);var n={buffer:[],subs:t};o.push(n),l.executeSchedule(t,h,(function(){return c(n)}),e)}};null!==p&&p>=0?l.executeSchedule(r,h,f,p,!0):u=!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 u=a.value,l=u.buffer;l.push(e),b<=l.length&&c(u)}}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"}],[5401,{"../Subscription":5360,"../observable/innerFrom":5381,"../util/arrRemove":5550,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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"),u=e("../util/noop"),c=e("../util/arrRemove");r.bufferToggle=function(e,t){return o.operate((function(r,o){var l=[];s.innerFrom(e).subscribe(a.createOperatorSubscriber(o,(function(e){var r=[];l.push(r);var n=new i.Subscription;n.add(s.innerFrom(t(e)).subscribe(a.createOperatorSubscriber(o,(function(){c.arrRemove(l,r),o.next(r),n.unsubscribe()}),u.noop)))}),u.noop)),r.subscribe(a.createOperatorSubscriber(o,(function(e){var t,r;try{for(var i=n(l),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(;l.length>0;)o.next(l.shift());o.complete()})))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js"}],[5402,{"../observable/innerFrom":5381,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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,u=function(){null==a||a.unsubscribe();var t=n;n=[],t&&r.next(t),s.innerFrom(e()).subscribe(a=o.createOperatorSubscriber(r,u,i.noop))};u(),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"}],[5403,{"../observable/innerFrom":5381,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=!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)):u=!0}))),u&&(a.unsubscribe(),a=null,s.subscribe(o))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/catchError.js"}],[5404,{"./combineLatestAll":5406},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"}],[5405,{"../observable/combineLatest":5368,"../util/args":5547,"../util/argsOrArgArray":5549,"../util/lift":5566,"../util/mapOneOrManyArgs":5567,"../util/pipe":5570},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"),u=e("../util/mapOneOrManyArgs"),c=e("../util/pipe"),l=e("../util/args");r.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var f=l.popResultSelector(t);return f?c.pipe(e.apply(void 0,i([],n(t))),u.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"}],[5406,{"../observable/combineLatest":5368,"./joinAllInternals":5440},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"}],[5407,{"./combineLatest":5405},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"}],[5408,{"../observable/from":5375,"../util/args":5547,"../util/lift":5566,"./concatAll":5409},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"),u=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()(u.from(i([t],n(e)),r)).subscribe(o)}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/concat.js"}],[5409,{"./mergeAll":5447},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"}],[5410,{"../util/isFunction":5559,"./mergeMap":5449},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"}],[5411,{"../util/isFunction":5559,"./concatMap":5410},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"}],[5412,{"./concat":5408},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"}],[5413,{"../Subject":5358,"../observable/fromSubscribable":5378,"../observable/innerFrom":5381,"../util/lift":5566},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"}],[5414,{"./reduce":5464},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"}],[5415,{"../observable/innerFrom":5381,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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,u=null,c=function(){if(null==u||u.unsubscribe(),u=null,n){n=!1;var e=a;a=null,r.next(e)}};t.subscribe(o.createOperatorSubscriber(r,(function(t){null==u||u.unsubscribe(),n=!0,a=t,u=o.createOperatorSubscriber(r,c,i.noop),s.innerFrom(e(t)).subscribe(u)}),(function(){c(),r.complete()}),undefined,(function(){a=u=null})))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/debounce.js"}],[5416,{"../scheduler/async":5530,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=function(){if(i){i.unsubscribe(),i=null;var e=s;s=null,n.next(e)}};function c(){var r=a+e,o=t.now();if(o<r)return i=this.schedule(undefined,r-o),void n.add(i);u()}r.subscribe(o.createOperatorSubscriber(n,(function(r){s=r,a=t.now(),i||(i=t.schedule(c,e),n.add(i))}),(function(){u(),n.complete()}),undefined,(function(){s=i=null})))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js"}],[5417,{"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5418,{"../observable/timer":5392,"../scheduler/async":5530,"./delayWhen":5419},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"}],[5419,{"../observable/concat":5369,"../observable/innerFrom":5381,"./ignoreElements":5438,"./mapTo":5443,"./mergeMap":5449,"./take":5488},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"),u=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 u.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"}],[5420,{"../Notification":5353,"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5421,{"../observable/innerFrom":5381,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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"}],[5422,{"../util/identity":5555,"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5423,{"./distinctUntilChanged":5422},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"}],[5424,{"../util/ArgumentOutOfRangeError":5540,"./defaultIfEmpty":5417,"./filter":5431,"./take":5488,"./throwIfEmpty":5495},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(u){return u.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"}],[5425,{"../observable/concat":5369,"../observable/of":5385},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"}],[5426,{"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5427,{"./exhaustAll":5428},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"}],[5428,{"../util/identity":5555,"./exhaustMap":5429},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"}],[5429,{"../observable/innerFrom":5381,"../util/lift":5566,"./OperatorSubscriber":5395,"./map":5442},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"}],[5430,{"../util/lift":5566,"./mergeInternals":5448},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"}],[5431,{"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5432,{"../util/lift":5566},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"}],[5433,{"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5434,{"../util/lift":5566,"./find":5433},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"}],[5435,{"../util/EmptyError":5541,"../util/identity":5555,"./defaultIfEmpty":5417,"./filter":5431,"./take":5488,"./throwIfEmpty":5495},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"),u=e("../util/identity");r.first=function(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?i.filter((function(t,r){return e(t,r,c)})):u.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"}],[5436,{"./mergeMap":5449},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"}],[5437,{"../Observable":5355,"../Subject":5358,"../observable/innerFrom":5381,"../util/lift":5566,"./OperatorSubscriber":5395},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,u){return s.operate((function(s,c){var l;t&&"function"!=typeof t?(r=t.duration,l=t.element,u=t.connector):l=t;var f=new Map,d=function(e){f.forEach(e),e(c)},h=function(e){return d((function(t){return t.error(e)}))},p=0,b=!1,m=new a.OperatorSubscriber(c,(function(t){try{var s=e(t),d=f.get(s);if(!d){f.set(s,d=u?u():new o.Subject);var g=(y=s,w=d,(k=new n.Observable((function(e){p++;var t=w.subscribe(e);return function(){t.unsubscribe(),0==--p&&b&&m.unsubscribe()}}))).key=y,k);if(c.next(g),r){var v=a.createOperatorSubscriber(d,(function(){d.complete(),null==v||v.unsubscribe()}),undefined,undefined,(function(){return f.delete(s)}));m.add(i.innerFrom(r(g)).subscribe(v))}}d.next(l?l(t):t)}catch(e){h(e)}var y,w,k}),(function(){return d((function(e){return e.complete()}))}),h,(function(){return f.clear()}),(function(){return b=!0,0===p}));s.subscribe(m)}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/groupBy.js"}],[5438,{"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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"}],[5439,{"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5440,{"../util/identity":5555,"../util/mapOneOrManyArgs":5567,"../util/pipe":5570,"./mergeMap":5449,"./toArray":5500},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"}],[5441,{"../util/EmptyError":5541,"../util/identity":5555,"./defaultIfEmpty":5417,"./filter":5431,"./takeLast":5489,"./throwIfEmpty":5495},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"),u=e("../util/identity");r.last=function(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?i.filter((function(t,r){return e(t,r,c)})):u.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"}],[5442,{"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5443,{"./map":5442},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"}],[5444,{"../Notification":5353,"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5445,{"../util/isFunction":5559,"./reduce":5464},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"}],[5446,{"../observable/from":5375,"../util/args":5547,"../util/argsOrArgArray":5549,"../util/lift":5566,"./mergeAll":5447},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"),u=e("../util/args"),c=e("../observable/from");r.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popScheduler(e),l=u.popNumber(e,Infinity);return e=s.argsOrArgArray(e),o.operate((function(t,o){a.mergeAll(l)(c.from(i([t],n(e)),r)).subscribe(o)}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/merge.js"}],[5447,{"../util/identity":5555,"./mergeMap":5449},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"}],[5448,{"../observable/innerFrom":5381,"../util/executeSchedule":5554,"./OperatorSubscriber":5395},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,u,c,l){var f=[],d=0,h=0,p=!1,b=function(){!p||f.length||d||t.complete()},m=function(e){return d<s?g(e):f.push(e)},g=function(e){u&&t.next(e),d++;var l=!1;n.innerFrom(r(e,h++)).subscribe(o.createOperatorSubscriber(t,(function(e){null==a||a(e),u?m(e):t.next(e)}),(function(){l=!0}),undefined,(function(){if(l)try{d--;for(var e=function(){var e=f.shift();c?i.executeSchedule(t,c,(function(){return g(e)})):g(e)};f.length&&d<s;)e();b()}catch(e){t.error(e)}})))};return e.subscribe(o.createOperatorSubscriber(t,m,(function(){p=!0,b()}))),function(){null==l||l()}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js"}],[5449,{"../observable/innerFrom":5381,"../util/isFunction":5559,"../util/lift":5566,"./map":5442,"./mergeInternals":5448},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,u){return void 0===u&&(u=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)))}),u):("number"==typeof r&&(u=r),o.operate((function(e,r){return s.mergeInternals(e,r,t,u)})))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"}],[5450,{"../util/isFunction":5559,"./mergeMap":5449},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"}],[5451,{"../util/lift":5566,"./mergeInternals":5448},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"}],[5452,{"./merge":5446},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"}],[5453,{"../util/isFunction":5559,"./reduce":5464},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"}],[5454,{"../observable/ConnectableObservable":5364,"../util/isFunction":5559,"./connect":5413},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"}],[5455,{"../util/executeSchedule":5554,"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5456,{"../observable/onErrorResumeNext":5386,"../util/argsOrArgArray":5549},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"}],[5457,{"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5458,{"./map":5442},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"}],[5459,{"../Subject":5358,"./connect":5413,"./multicast":5454},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"}],[5460,{"../BehaviorSubject":5352,"../observable/ConnectableObservable":5364},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"}],[5461,{"../AsyncSubject":5351,"../observable/ConnectableObservable":5364},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"}],[5462,{"../ReplaySubject":5356,"../util/isFunction":5559,"./multicast":5454},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"}],[5463,{"../observable/race":5389,"../util/identity":5555,"../util/lift":5566},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"}],[5464,{"../util/lift":5566,"./scanInternals":5473},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"}],[5465,{"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5466,{"../observable/empty":5373,"../observable/innerFrom":5381,"../observable/timer":5392,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=Infinity;return null!=e&&("object"==typeof e?(t=e.count,u=void 0===t?Infinity:t,r=e.delay):u=e),u<=0?function(){return n.EMPTY}:i.operate((function(e,t){var n,i=0,c=function(){if(null==n||n.unsubscribe(),n=null,null!=r){var e="number"==typeof r?a.timer(r):s.innerFrom(r(i)),u=o.createOperatorSubscriber(t,(function(){u.unsubscribe(),l()}));e.subscribe(u)}else l()},l=function(){var r=!1;n=e.subscribe(o.createOperatorSubscriber(t,undefined,(function(){++i<u?n?c():r=!0:t.complete()}))),r&&c()};l()}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/repeat.js"}],[5467,{"../Subject":5358,"../observable/innerFrom":5381,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=!1,c=!1,l=!1,f=function(){return l&&c&&(r.complete(),!0)},d=function(){l=!1,o=t.subscribe(s.createOperatorSubscriber(r,undefined,(function(){l=!0,!f()&&(a||(a=new i.Subject,n.innerFrom(e(a)).subscribe(s.createOperatorSubscriber(r,(function(){o?d():u=!0}),(function(){c=!0,f()})))),a).next()}))),u&&(o.unsubscribe(),o=null,u=!1,d())};d()}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js"}],[5468,{"../observable/innerFrom":5381,"../observable/timer":5392,"../util/identity":5555,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=void 0===r?Infinity:r,c=t.delay,l=t.resetOnSuccess,f=void 0!==l&&l;return u<=0?o.identity:n.operate((function(e,t){var r,n=0,o=function(){var l=!1;r=e.subscribe(i.createOperatorSubscriber(t,(function(e){f&&(n=0),t.next(e)}),undefined,(function(e){if(n++<u){var f=function(){r?(r.unsubscribe(),r=null,o()):l=!0};if(null!=c){var d="number"==typeof c?s.timer(c):a.innerFrom(c(e,n)),h=i.createOperatorSubscriber(t,(function(){h.unsubscribe(),f()}),(function(){t.complete()}));d.subscribe(h)}else f()}else t.error(e)}))),l&&(r.unsubscribe(),r=null,o())};o()}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/retry.js"}],[5469,{"../Subject":5358,"../observable/innerFrom":5381,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=!1,c=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?c():u=!0})))),a&&a.next(t)}))),u&&(o.unsubscribe(),o=null,u=!1,c())};c()}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js"}],[5470,{"../observable/innerFrom":5381,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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"}],[5471,{"../observable/interval":5382,"../scheduler/async":5530,"./sample":5470},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"}],[5472,{"../util/lift":5566,"./scanInternals":5473},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"}],[5473,{"./OperatorSubscriber":5395},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 u=r,c=t,l=0;s.subscribe(n.createOperatorSubscriber(a,(function(t){var r=l++;c=u?e(c,t,r):(u=!0,t),i&&a.next(c)}),o&&function(){u&&a.next(c),a.complete()}))}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"}],[5474,{"../observable/innerFrom":5381,"../util/lift":5566,"./OperatorSubscriber":5395},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},u=function(e){n.next(e),n.complete()},c=function(e,r){var o=i.createOperatorSubscriber(n,(function(n){var i=r.buffer,o=r.complete;0===i.length?o?u(!1):e.buffer.push(n):!t(n,i.shift())&&u(!1)}),(function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&u(0===n.length),null==o||o.unsubscribe()}));return o};r.subscribe(c(s,a)),o.innerFrom(e).subscribe(c(a,s))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js"}],[5475,{"../Subject":5358,"../Subscriber":5359,"../observable/innerFrom":5381,"../util/lift":5566},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"),u=e("../util/lift");function c(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(!0!==t){if(!1!==t){var u=new a.SafeSubscriber({next:function(){u.unsubscribe(),e()}});return o.innerFrom(t.apply(void 0,i([],n(r)))).subscribe(u)}}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,l=e.resetOnComplete,f=void 0===l||l,d=e.resetOnRefCountZero,h=void 0===d||d;return function(e){var t,n,s,l=0,d=!1,p=!1,b=function(){null==n||n.unsubscribe(),n=undefined},m=function(){b(),t=s=undefined,d=p=!1},g=function(){var e=t;m(),null==e||e.unsubscribe()};return u.operate((function(e,u){l++,p||d||b();var v=s=null!=s?s:r();u.add((function(){0!==--l||p||d||(n=c(g,h))})),v.subscribe(u),!t&&l>0&&(t=new a.SafeSubscriber({next:function(e){return v.next(e)},error:function(e){p=!0,b(),n=c(m,i,e),v.error(e)},complete:function(){d=!0,b(),n=c(m,f),v.complete()}}),o.innerFrom(e).subscribe(t))}))(e)}}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/share.js"}],[5476,{"../ReplaySubject":5356,"./share":5475},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,u,c=!1;return e&&"object"==typeof e?(o=e.bufferSize,u=void 0===o?Infinity:o,s=e.windowTime,t=void 0===s?Infinity:s,c=void 0!==(a=e.refCount)&&a,r=e.scheduler):u=null!=e?e:Infinity,i.share({connector:function(){return new n.ReplaySubject(u,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js"}],[5477,{"../util/EmptyError":5541,"../util/NotFoundError":5543,"../util/SequenceError":5545,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=!1,c=!1,l=0;t.subscribe(a.createOperatorSubscriber(r,(function(n){c=!0,e&&!e(n,l++,t)||(u&&r.error(new i.SequenceError("Too many matching values")),u=!0,s=n)}),(function(){u?(r.next(s),r.complete()):r.error(c?new o.NotFoundError("No matching values"):new n.EmptyError)})))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/single.js"}],[5478,{"./filter":5431},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"}],[5479,{"../util/identity":5555,"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5480,{"../observable/innerFrom":5381,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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"}],[5481,{"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5482,{"../observable/concat":5369,"../util/args":5547,"../util/lift":5566},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"}],[5483,{"../util/lift":5566},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"}],[5484,{"../util/identity":5555,"./switchMap":5485},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"}],[5485,{"../observable/innerFrom":5381,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=!1,c=function(){return u&&!s&&i.complete()};r.subscribe(o.createOperatorSubscriber(i,(function(r){null==s||s.unsubscribe();var u=0,l=a++;n.innerFrom(e(r,l)).subscribe(s=o.createOperatorSubscriber(i,(function(e){return i.next(t?t(r,e,l,u++):e)}),(function(){s=null,c()})))}),(function(){u=!0,c()})))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"}],[5486,{"../util/isFunction":5559,"./switchMap":5485},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"}],[5487,{"../util/lift":5566,"./switchMap":5485},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"}],[5488,{"../observable/empty":5373,"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5489,{"../observable/empty":5373,"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5490,{"../observable/innerFrom":5381,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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"}],[5491,{"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5492,{"../util/identity":5555,"../util/isFunction":5559,"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5493,{"../observable/innerFrom":5381,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=void 0===a||a,c=s.trailing,l=void 0!==c&&c,f=!1,d=null,h=null,p=!1,b=function(){null==h||h.unsubscribe(),h=null,l&&(v(),p&&n.complete())},m=function(){h=null,p&&n.complete()},g=function(t){return h=o.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(n,b,m))},v=function(){if(f){f=!1;var e=d;d=null,n.next(e),!p&&g(e)}};r.subscribe(i.createOperatorSubscriber(n,(function(e){f=!0,d=e,(!h||h.closed)&&(u?v():g(e))}),(function(){p=!0,(!(l&&f&&h)||h.closed)&&n.complete()})))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/throttle.js"}],[5494,{"../observable/timer":5392,"../scheduler/async":5530,"./throttle":5493},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"}],[5495,{"../util/EmptyError":5541,"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5496,{"../scheduler/async":5530,"../util/lift":5566,"./OperatorSubscriber":5395},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"}],[5497,{"../observable/innerFrom":5381,"../scheduler/async":5530,"../util/createErrorClass":5551,"../util/executeSchedule":5554,"../util/isDate":5558,"../util/lift":5566,"./OperatorSubscriber":5395},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"),u=e("./OperatorSubscriber"),c=e("../util/executeSchedule");function l(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,h=void 0===d?l:d,p=r.scheduler,b=void 0===p?null!=t?t:n.asyncScheduler:p,m=r.meta,g=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,l=function(e){n=c.executeSchedule(t,b,(function(){try{r.unsubscribe(),s.innerFrom(h({meta:g,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(u.createOperatorSubscriber(t,(function(e){null==n||n.unsubscribe(),o++,t.next(i=e),f>0&&l(f)}),undefined,undefined,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null}))),!o&&l(null!=a?"number"==typeof a?a:+a-b.now():f)}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timeout.js"}],[5498,{"../scheduler/async":5530,"../util/isDate":5558,"./timeout":5497},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,u;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(u=function(){return t},null==s&&null==a)throw new TypeError("No timeout provided.");return o.timeout({first:s,each:a,scheduler:r,with:u})}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js"}],[5499,{"../scheduler/dateTimestampProvider":5531,"./map":5442},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"}],[55,{"@metamask/assets-controllers":1371},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MultichainAssetsControllerInit=void 0;var n=e("@metamask/assets-controllers");r.MultichainAssetsControllerInit=({controllerMessenger:e,persistedState:t})=>({controller:new n.MultichainAssetsController({messenger:e,state:t.MultichainAssetsController})})}}},{package:"$root$",file:"app/scripts/controller-init/multichain/multichain-assets-controller-init.ts"}],[5500,{"../util/lift":5566,"./reduce":5464},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"}],[5501,{"../Subject":5358,"../observable/innerFrom":5381,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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 u=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()}),u)),a.innerFrom(e).subscribe(o.createOperatorSubscriber(r,(function(){i.complete(),r.next(i=new n.Subject)}),s.noop,u)),function(){null==i||i.unsubscribe(),i=null}}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/window.js"}],[5502,{"../Subject":5358,"../util/lift":5566,"./OperatorSubscriber":5395},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],u=0;o.next(a[0].asObservable()),t.subscribe(s.createOperatorSubscriber(o,(function(t){var s,c;try{for(var l=n(a),f=l.next();!f.done;f=l.next()){f.value.next(t)}}catch(e){s={error:e}}finally{try{f&&!f.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}var d=u-e+1;if(d>=0&&d%r==0&&a.shift().complete(),++u%r==0){var h=new i.Subject;a.push(h),o.next(h.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(){null,a=null})))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowCount.js"}],[5503,{"../Subject":5358,"../Subscription":5360,"../scheduler/async":5530,"../util/args":5547,"../util/arrRemove":5550,"../util/executeSchedule":5554,"../util/lift":5566,"./OperatorSubscriber":5395},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"),u=e("../util/arrRemove"),c=e("../util/args"),l=e("../util/executeSchedule");r.windowTime=function(e){for(var t,r,f=[],d=1;d<arguments.length;d++)f[d-1]=arguments[d];var h=null!==(t=c.popScheduler(f))&&void 0!==t?t:i.asyncScheduler,p=null!==(r=f[0])&&void 0!==r?r:null,b=f[1]||Infinity;return s.operate((function(t,r){var i=[],s=!1,c=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),u.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()),l.executeSchedule(t,h,(function(){return c(a)}),e)}};null!==p&&p>=0?l.executeSchedule(r,h,f,p,!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&&c(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"}],[5504,{"../Subject":5358,"../Subscription":5360,"../observable/innerFrom":5381,"../util/arrRemove":5550,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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"),u=e("./OperatorSubscriber"),c=e("../util/noop"),l=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(u.createOperatorSubscriber(s,(function(e){var r=new i.Subject;f.push(r);var n,h=new o.Subscription;try{n=a.innerFrom(t(e))}catch(e){return void d(e)}s.next(r.asObservable()),h.add(n.subscribe(u.createOperatorSubscriber(s,(function(){l.arrRemove(f,r),r.complete(),h.unsubscribe()}),c.noop,d)))}),c.noop)),r.subscribe(u.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"}],[5505,{"../Subject":5358,"../observable/innerFrom":5381,"../util/lift":5566,"./OperatorSubscriber":5395},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,u=function(e){i.error(e),r.error(e)},c=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 u(e)}t.subscribe(a=o.createOperatorSubscriber(r,c,c,u))};c(),t.subscribe(o.createOperatorSubscriber(r,(function(e){return i.next(e)}),(function(){i.complete(),r.complete()}),u,(function(){null==a||a.unsubscribe(),i=null})))}))}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js"}],[5506,{"../observable/innerFrom":5381,"../util/args":5547,"../util/identity":5555,"../util/lift":5566,"../util/noop":5568,"./OperatorSubscriber":5395},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"),u=e("../util/identity"),c=e("../util/noop"),l=e("../util/args");r.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=l.popResultSelector(e);return o.operate((function(t,o){for(var l=e.length,f=new Array(l),d=e.map((function(){return!1})),h=!1,p=function(t){a.innerFrom(e[t]).subscribe(s.createOperatorSubscriber(o,(function(e){f[t]=e,h||d[t]||(d[t]=!0,(h=d.every(u.identity))&&(d=null))}),c.noop))},b=0;b<l;b++)p(b);t.subscribe(s.createOperatorSubscriber(o,(function(e){if(h){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"}],[5507,{"../observable/zip":5394,"../util/lift":5566},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"}],[5508,{"../observable/zip":5394,"./joinAllInternals":5440},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"}],[5509,{"./zip":5507},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"}],[5510,{"../Observable":5355},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"}],[5511,{"../Observable":5355,"../util/executeSchedule":5554},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"}],[5512,{"../Observable":5355,"../symbol/iterator":5537,"../util/executeSchedule":5554,"../util/isFunction":5559},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"}],[5513,{"../observable/innerFrom":5381,"../operators/observeOn":5455,"../operators/subscribeOn":5483},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"}],[5514,{"../observable/innerFrom":5381,"../operators/observeOn":5455,"../operators/subscribeOn":5483},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"}],[5515,{"../util/isReadableStreamLike":5564,"./scheduleAsyncIterable":5511},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"}],[5516,{"../util/isArrayLike":5556,"../util/isAsyncIterable":5557,"../util/isInteropObservable":5560,"../util/isIterable":5561,"../util/isPromise":5563,"../util/isReadableStreamLike":5564,"../util/throwUnobservableError":5572,"./scheduleArray":5510,"./scheduleAsyncIterable":5511,"./scheduleIterable":5512,"./scheduleObservable":5513,"./schedulePromise":5514,"./scheduleReadableStreamLike":5515},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"),u=e("../util/isInteropObservable"),c=e("../util/isPromise"),l=e("../util/isArrayLike"),f=e("../util/isIterable"),d=e("../util/isAsyncIterable"),h=e("../util/throwUnobservableError"),p=e("../util/isReadableStreamLike"),b=e("./scheduleReadableStreamLike");r.scheduled=function(e,t){if(null!=e){if(u.isInteropObservable(e))return n.scheduleObservable(e,t);if(l.isArrayLike(e))return o.scheduleArray(e,t);if(c.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(p.isReadableStreamLike(e))return b.scheduleReadableStreamLike(e,t)}throw h.createInvalidObservableTypeError(e)}}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js"}],[5517,{"../Subscription":5360},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"}],[5518,{"./AsyncAction":5522,"./animationFrameProvider":5528},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"}],[5519,{"./AsyncScheduler":5523},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"}],[5520,{"./AsyncAction":5522,"./immediateProvider":5532},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"}],[5521,{"./AsyncScheduler":5523},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"}],[5522,{"../util/arrRemove":5550,"./Action":5517,"./intervalProvider":5533},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"),u=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=u}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"}],[5523,{"../Scheduler":5357},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"}],[5524,{"./AsyncAction":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.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"}],[5525,{"./AsyncScheduler":5523},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"}],[5526,{"../Subscription":5360,"./AsyncAction":5522,"./AsyncScheduler":5523},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=u),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 u=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=u}}},{package:"wait-on>rxjs",file:"node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js"}],[5527,{"./AnimationFrameAction":5518,"./AnimationFrameScheduler":5519},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"}],[5528,{"../Subscription":5360},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"}],[5529,{"./AsapAction":5520,"./AsapScheduler":5521},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"}],[5530,{"./AsyncAction":5522,"./AsyncScheduler":5523},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"}],[5531,{},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"}],[5532,{"../util/Immediate":5542},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"}],[5533,{},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"}],[5534,{},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"}],[5535,{"./QueueAction":5524,"./QueueScheduler":5525},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"}],[5536,{},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"}],[5537,{},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"}],[5538,{},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"}],[5539,{},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"}],[5540,{"./createErrorClass":5551},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"}],[5541,{"./createErrorClass":5551},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"}],[5542,{},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"}],[5543,{"./createErrorClass":5551},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"}],[5544,{"./createErrorClass":5551},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"}],[5545,{"./createErrorClass":5551},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"}],[5546,{"./createErrorClass":5551},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"}],[5547,{"./isFunction":5559,"./isScheduler":5565},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"}],[5548,{},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"}],[5549,{},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"}],[5550,{},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"}],[5551,{},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"}],[5552,{},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"}],[5553,{"../config":5361},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"}],[5554,{},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"}],[5555,{},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"}],[5556,{},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"}],[5557,{"./isFunction":5559},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"}],[5558,{},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"}],[5559,{},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"}],[5560,{"../symbol/observable":5538,"./isFunction":5559},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"}],[5561,{"../symbol/iterator":5537,"./isFunction":5559},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"}],[5562,{"../Observable":5355,"./isFunction":5559},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"}],[5563,{"./isFunction":5559},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"}],[5564,{"./isFunction":5559},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||u(e,t)}))})}function u(e,t){try{(r=o[e](t)).value instanceof i?Promise.resolve(r.value.v).then(c,l):f(s[0][2],r)}catch(e){f(s[0][3],e)}var r}function c(e){u("next",e)}function l(e){u("throw",e)}function f(e,t){e(t),s.shift(),s.length&&u(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"}],[5565,{"./isFunction":5559},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"}],[5566,{"./isFunction":5559},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"}],[5567,{"../operators/map":5442},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"}],[5568,{},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"}],[5569,{},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"}],[5570,{"./identity":5555},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"}],[5571,{"../config":5361,"../scheduler/timeoutProvider":5536},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"}],[5572,{},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"}],[56,{"@metamask/assets-controllers":1371},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MultichainBalancesControllerInit=void 0;var n=e("@metamask/assets-controllers");r.MultichainBalancesControllerInit=({controllerMessenger:e,persistedState:t})=>({controller:new n.MultichainBalancesController({messenger:e,state:t.MultichainBalancesController})})}}},{package:"$root$",file:"app/scripts/controller-init/multichain/multichain-balances-controller-init.ts"}]],[],{});